/* ============================================
   AUTOMATED CONTRACTS — Landing Page Styles
   Design System: Dark Navy / White / Gold Accent
   ============================================ */

/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --navy-900: #060E1A;
    --navy-800: #0B1A2E;
    --navy-700: #0F2440;
    --navy-600: #152E50;
    --navy-500: #1C3D6A;
    --navy-400: #2A5080;
    --slate-400: #8494A7;
    --slate-300: #A0AEC0;
    --slate-200: #CBD5E0;
    --white: #FFFFFF;
    --white-90: rgba(255,255,255,0.9);
    --white-70: rgba(255,255,255,0.7);
    --white-50: rgba(255,255,255,0.5);
    --white-20: rgba(255,255,255,0.2);
    --white-10: rgba(255,255,255,0.1);
    --white-05: rgba(255,255,255,0.05);
    --gold: #C9A84C;
    --gold-light: #E8D48B;
    --gold-dim: rgba(201,168,76,0.15);
    --gold-dimmer: rgba(201,168,76,0.08);
    --green: #34D399;
    --blue: #60A5FA;
    --red: #F87171;

    /* Typography */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --section-py: 120px;
    --container-px: 24px;
    --max-width: 1200px;

    /* Transitions */
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    background: var(--navy-900);
    color: var(--white-90);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* === Layout === */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-px);
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s var(--ease);
    white-space: nowrap;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--navy-900);
    padding: 14px 32px;
    box-shadow: 0 4px 24px rgba(201,168,76,0.25);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(201,168,76,0.35);
}

.btn-outline {
    background: transparent;
    color: var(--white-90);
    padding: 14px 32px;
    border: 1.5px solid var(--white-20);
}
.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

.btn-nav {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--navy-900);
    font-size: 0.875rem;
}
.btn-nav:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(201,168,76,0.3);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.05rem;
}

/* === Section Helpers === */
.section-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
    text-align: center;
}

.section-heading {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    color: var(--white);
    margin-bottom: 56px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* === Navigation === */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s var(--ease);
    background: transparent;
}
.nav.scrolled {
    background: rgba(6,14,26,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--white-10);
    padding: 12px 0;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-px);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--white);
}
.nav-logo-icon {
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-links a:not(.btn) {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--white-70);
    transition: color 0.2s;
}
.nav-links a:not(.btn):hover {
    color: var(--white);
}

.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s;
}

/* === Hero === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background: linear-gradient(165deg, var(--navy-800) 0%, var(--navy-900) 50%, #080D18 100%);
    overflow: hidden;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--white-05) 1px, transparent 1px),
        linear-gradient(90deg, var(--white-05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-headline {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 24px;
}
.hero-headline-accent {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--slate-300);
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.hero-proof {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-proof-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(201,168,76,0.08);
    border: 1px solid rgba(201,168,76,0.18);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--slate-300);
    white-space: nowrap;
}
.hero-proof-pill svg {
    flex-shrink: 0;
}
.hero-proof-pill strong {
    color: var(--gold);
    font-weight: 700;
}

.hero-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--navy-900));
    z-index: 1;
}

/* Hero Dashboard Visual */
.hero-visual {
    display: flex;
    justify-content: flex-end;
}

.hero-dashboard {
    width: 100%;
    max-width: 480px;
    background: rgba(15,36,64,0.6);
    border: 1px solid var(--white-10);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow:
        0 32px 64px rgba(0,0,0,0.4),
        0 0 0 1px rgba(255,255,255,0.05) inset;
    animation: dashboardFloat 6s ease-in-out infinite;
}

@keyframes dashboardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.dashboard-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--white-10);
    background: rgba(255,255,255,0.03);
}
.dashboard-dots {
    display: flex;
    gap: 6px;
}
.dashboard-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.dashboard-dots span:nth-child(1) { background: #F87171; }
.dashboard-dots span:nth-child(2) { background: #FBBF24; }
.dashboard-dots span:nth-child(3) { background: #34D399; }
.dashboard-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--white-50);
    letter-spacing: 0.03em;
}

.dashboard-body {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dashboard-stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.dashboard-stat {
    text-align: center;
}
.dashboard-stat-value {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 4px;
}
.dashboard-stat-label {
    font-size: 0.65rem;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dashboard-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.dashboard-bar-item {
    display: flex;
    align-items: center;
    gap: 12px;
}
.bar-label {
    font-size: 0.72rem;
    color: var(--slate-400);
    width: 65px;
    flex-shrink: 0;
}
.bar-track {
    flex: 1;
    height: 6px;
    background: var(--white-10);
    border-radius: 3px;
    overflow: hidden;
}
.bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 3px;
    transition: width 1.2s var(--ease-out);
}
.bar-fill.animate {
    width: var(--bar-width);
}

.dashboard-activity {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.activity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--white-05);
    border-radius: 6px;
    font-size: 0.72rem;
    color: var(--slate-300);
}
.activity-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.activity-dot--green { background: var(--green); }
.activity-dot--gold { background: var(--gold); }
.activity-dot--blue { background: var(--blue); }
.activity-time {
    margin-left: auto;
    color: var(--slate-400);
    flex-shrink: 0;
}

/* === Pain Section === */
.pain {
    padding: var(--section-py) 0;
    background: var(--navy-900);
}

.pain-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.pain-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--slate-300);
    margin-bottom: 20px;
}
.pain-text p:last-child {
    margin-bottom: 0;
    color: var(--white-70);
    font-weight: 500;
}

.pain-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pain-stat {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--white-05);
    border-radius: 10px;
    border: 1px solid var(--white-10);
    transition: border-color 0.3s;
}
.pain-stat:hover {
    border-color: var(--gold-dim);
}

.pain-stat-icon {
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 2px;
}

.pain-stat strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 2px;
}
.pain-stat span {
    font-size: 0.85rem;
    color: var(--slate-400);
}

/* === How It Works === */
.how {
    padding: var(--section-py) 0;
    background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
}

.how-steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
    justify-content: center;
}

.how-step {
    flex: 1;
    max-width: 340px;
    padding: 36px 28px;
    background: var(--white-05);
    border: 1px solid var(--white-10);
    border-radius: 12px;
    text-align: center;
    transition: all 0.35s var(--ease);
    position: relative;
}
.how-step:hover {
    border-color: rgba(201,168,76,0.3);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.how-step-number {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.how-step-icon {
    width: 56px;
    height: 56px;
    background: var(--gold-dim);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--gold);
}

.how-step h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.how-step p {
    font-size: 0.9rem;
    color: var(--slate-300);
    line-height: 1.65;
}

.how-connector {
    display: flex;
    align-items: center;
    padding-top: 80px;
    flex-shrink: 0;
    margin: 0 8px;
}

/* === Results === */
.results {
    padding: var(--section-py) 0;
    background: var(--navy-800);
    position: relative;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.result-card {
    text-align: center;
    padding: 40px 24px;
    background: linear-gradient(160deg, rgba(201,168,76,0.06) 0%, rgba(201,168,76,0.02) 100%);
    border: 1px solid var(--white-10);
    border-radius: 12px;
    transition: all 0.35s var(--ease);
}
.result-card:hover {
    border-color: rgba(201,168,76,0.25);
    transform: translateY(-4px);
}

.result-value {
    display: block;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 12px;
}

.result-label {
    font-size: 0.85rem;
    color: var(--slate-300);
    font-weight: 500;
}

.results-footnote {
    text-align: center;
    font-size: 0.95rem;
    color: var(--slate-400);
    max-width: 680px;
    margin: 0 auto;
}

/* === Why Section === */
.why {
    padding: var(--section-py) 0;
    background: linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.why-card {
    padding: 36px;
    background: var(--white-05);
    border: 1px solid var(--white-10);
    border-radius: 12px;
    transition: all 0.35s var(--ease);
}
.why-card:hover {
    border-color: rgba(201,168,76,0.2);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.2);
}

.why-card-icon {
    width: 48px;
    height: 48px;
    background: var(--gold-dim);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    margin-bottom: 20px;
}

.why-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.why-card p {
    font-size: 0.9rem;
    color: var(--slate-300);
    line-height: 1.65;
}

/* === Social Proof === */
.proof {
    padding: var(--section-py) 0;
    background: var(--navy-900);
}

.proof-card {
    max-width: 740px;
    margin: 0 auto;
    padding: 48px;
    background: linear-gradient(145deg, rgba(201,168,76,0.06) 0%, rgba(201,168,76,0.02) 100%);
    border: 1px solid rgba(201,168,76,0.15);
    border-radius: 16px;
    position: relative;
    text-align: center;
}

.proof-quote {
    margin: 0 auto 24px;
}

.proof-card blockquote p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--white-90);
    font-style: italic;
}
.proof-card blockquote strong {
    color: var(--gold);
    font-style: normal;
}

.proof-source {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}
.proof-source strong {
    display: block;
    font-size: 0.875rem;
    color: var(--white-90);
}
.proof-source span {
    font-size: 0.8rem;
    color: var(--slate-400);
}

/* === Audience === */
.audience {
    padding: var(--section-py) 0;
    background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
}

.audience-desc {
    text-align: center;
    font-size: 1.05rem;
    color: var(--slate-300);
    max-width: 640px;
    margin: -32px auto 56px;
    line-height: 1.7;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.audience-card {
    padding: 36px 28px;
    background: var(--white-05);
    border: 1px solid var(--white-10);
    border-radius: 12px;
    text-align: center;
    transition: all 0.35s var(--ease);
}
.audience-card:hover {
    border-color: rgba(201,168,76,0.2);
    transform: translateY(-4px);
}

.audience-icon {
    width: 56px;
    height: 56px;
    background: var(--gold-dim);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    margin: 0 auto 20px;
}

.audience-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}
.audience-card p {
    font-size: 0.9rem;
    color: var(--slate-300);
    line-height: 1.6;
}

/* === CTA Section === */
.cta-section {
    padding: var(--section-py) 0;
    background: var(--navy-800);
}

.cta-card {
    text-align: center;
    padding: 72px 48px;
    background: linear-gradient(145deg, rgba(201,168,76,0.08) 0%, rgba(201,168,76,0.03) 100%);
    border: 1px solid rgba(201,168,76,0.15);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}
.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(201,168,76,0.06) 0%, transparent 50%);
    animation: ctaGlow 8s ease-in-out infinite;
}

@keyframes ctaGlow {
    0%, 100% { transform: translate(0,0); }
    25% { transform: translate(5%, 5%); }
    50% { transform: translate(-5%, 3%); }
    75% { transform: translate(3%, -5%); }
}

.cta-card h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    position: relative;
}

.cta-card p {
    font-size: 1.1rem;
    color: var(--slate-300);
    margin-bottom: 36px;
    position: relative;
}

.cta-card .btn {
    position: relative;
}

/* === Footer === */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--white-10);
    background: var(--navy-900);
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-tagline {
    font-size: 0.8rem;
    color: var(--slate-400);
    margin-top: 8px;
}

.footer-right p {
    font-size: 0.8rem;
    color: var(--slate-400);
}

/* === Scroll Animations === */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 100ms; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 200ms; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 300ms; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 400ms; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 500ms; }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 600ms; }
.reveal-stagger.visible > * {
    opacity: 0;
    transform: translateY(20px);
}
.reveal-stagger.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* === Responsive === */
@media (max-width: 1024px) {
    :root {
        --section-py: 80px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-visual {
        justify-content: center;
    }

    .hero-dashboard {
        max-width: 420px;
    }

    .pain-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .how-steps {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .how-connector {
        transform: rotate(90deg);
        padding-top: 0;
        margin: 0;
    }

    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .audience-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-py: 64px;
        --container-px: 20px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(6,14,26,0.97);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--white-10);
    }
    .nav-links.open {
        display: flex;
    }

    .nav-mobile-toggle {
        display: flex;
    }

    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero-headline {
        font-size: 1.75rem;
    }

    .hero-sub {
        font-size: 1rem;
    }

    .hero-ctas {
        flex-direction: column;
    }
    .hero-ctas .btn {
        width: 100%;
        text-align: center;
    }

    .hero-dashboard {
        max-width: 100%;
    }

    .results-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .result-card {
        padding: 28px 16px;
    }

    .proof-card {
        padding: 32px 24px;
    }

    .cta-card {
        padding: 48px 24px;
    }

    .footer-container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .result-value {
        font-size: 1.75rem;
    }
}
