:root {
    /* ── User-defined palette ── */
    --text: #f5f7f2;
    --background: #050605;
    --primary: #63AE01;
    --secondary: #f5f7f2;
    --accent: #4c7651;

    /* ── Derived tokens ── */
    --navy: var(--text);
    --navy-mid: #0c100c;
    --navy-light: #141a14;
    --teal: var(--primary);
    --teal-glow: #7ccf12;
    --teal-dark: #569903;
    --teal-muted: rgba(99, 174, 1, 0.1);
    --cream: var(--background);
    --cream-dark: #0c100c;
    --text-primary: var(--text);
    --text-secondary: #b8bdb3;
    --text-light: #7a8175;
    --white: var(--secondary);
    --red-soft: rgba(239, 68, 68, 0.1);
    --red: #ef4444;
    --green-soft: rgba(99, 174, 1, 0.12);
    --green: var(--primary);
    --surface: #0e120e;
    --surface-light: #141a14;
    --font-display: 'Instrument Serif', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--cream);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── NAV ─── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    background: rgba(5, 6, 5, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(245, 247, 242, 0.06);
    transition: all 0.3s ease;
}

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

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--navy);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-logo span {
    color: var(--teal);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--primary);
    color: var(--background);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 100px;
    transition: all 0.3s ease;
    letter-spacing: 0.01em;
}

.nav-cta:hover {
    background: var(--teal);
    transform: translateY(-1px);
}

/* ─── HERO ─── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(99, 174, 1, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(76, 118, 81, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--teal-dark);
    margin-bottom: 28px;
    animation: fadeUp 0.8s ease both;
}

.hero-eyebrow::before {
    content: '';
    display: block;
    width: 32px;
    height: 2px;
    background: var(--teal);
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 4.2rem);
    line-height: 1.08;
    color: var(--navy);
    margin-bottom: 28px;
    letter-spacing: -0.03em;
    animation: fadeUp 0.8s ease 0.1s both;
}

.hero h1 em {
    font-style: italic;
    color: var(--teal-dark);
}

.hero-sub {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 44px;
    animation: fadeUp 0.8s ease 0.2s both;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    animation: fadeUp 0.8s ease 0.3s both;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: var(--teal);
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 100px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(99, 174, 1, 0.3);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 174, 1, 0.45);
    background: var(--teal-glow);
}

.btn-primary svg {
    transition: transform 0.3s ease;
}

.btn-primary:hover svg {
    transform: translateX(3px);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 28px;
    background: transparent;
    color: var(--navy);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 100px;
    border: 1.5px solid rgba(245, 247, 242, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-ghost:hover {
    border-color: var(--teal);
    color: var(--teal-dark);
}

.hero-proof {
    margin-top: 64px;
    display: flex;
    align-items: center;
    gap: 32px;
    animation: fadeUp 0.8s ease 0.5s both;
    flex-wrap: wrap;
}

.proof-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.proof-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--green-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.proof-icon svg {
    width: 12px;
    height: 12px;
    color: var(--green);
}

/* ─── DEMO SECTION ─── */
.demo-section {
    padding: 100px 0;
    position: relative;
    background: linear-gradient(180deg, var(--cream) 0%, var(--navy-light) 50%, var(--cream) 100%);
}

.demo-content {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.demo-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.15;
    color: var(--navy);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.demo-content h2 em {
    font-style: italic;
    color: var(--teal-dark);
}

.demo-sub {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 36px;
}

.demo-steps-preview {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.demo-step-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.demo-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--teal-muted);
    color: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(99, 174, 1, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(99, 174, 1, 0.5);
    }
}

@keyframes grain {

    0%,
    100% {
        transform: translate(0, 0);
    }

    10% {
        transform: translate(-5%, -10%);
    }

    30% {
        transform: translate(3%, -15%);
    }

    50% {
        transform: translate(-8%, 5%);
    }

    70% {
        transform: translate(10%, 10%);
    }

    90% {
        transform: translate(-3%, 8%);
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes drawLine {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

/* ─── REVEAL ─── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* ─── PROBLEM SECTION ─── */
.problem {
    padding: 120px 0;
    background: var(--surface);
    color: var(--text);
    position: relative;
    overflow: hidden;
}

.problem::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    animation: grain 8s steps(10) infinite;
    pointer-events: none;
}

.problem-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 72px;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--teal-glow);
    margin-bottom: 20px;
}

.section-eyebrow::before,
.section-eyebrow::after {
    content: '';
    display: block;
    width: 20px;
    height: 1px;
    background: var(--teal);
}

.problem h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.problem h2 em {
    font-style: italic;
    color: var(--teal-glow);
}

.problem-sub {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-light);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.problem-card {
    padding: 36px 32px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), transparent);
    opacity: 0.6;
}

.problem-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--teal-glow);
    transform: translateY(-4px);
}

.problem-card-number {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--teal-glow);
    line-height: 1;
    margin-bottom: 16px;
}

.problem-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--white);
}

.problem-card p {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--text-light);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
    .hero {
        padding: 100px 0 60px;
    }

    .hero-proof {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}