:root {
    /* Brand Colors (from padrao_marca v1.1) */
    --bg-light: #F6F3EC;
    --bg-dark: #0F3632;
    --bg-card: #FFFFFF;
    --text-primary: #112028;
    --text-secondary: #51616A;
    --brand-900: #0F3632;
    --brand-700: #1F5F57;
    --brand-500: #2F8F82;
    --accent-500: #BF9150;
    --accent-100: #F6EAD7;
    --border-neutral: #D9E0DC;
    --success: #2A7B5F;

    /* Semantic aliases */
    --brand-green: var(--brand-700);
    --brand-light: var(--brand-500);
    --accent-gold: var(--accent-500);

    /* Fonts (with brand fallbacks) */
    --font-heading: 'Bricolage Grotesque', 'Trebuchet MS', sans-serif;
    --font-body: 'Manrope', 'Segoe UI', sans-serif;
    --font-accent: 'Playfair Display', Georgia, serif;

    /* Brand Radius */
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 26px;

    /* Brand Shadow */
    --shadow-brand: 0 15px 40px rgba(15, 54, 50, 0.08);
    --shadow-elevated: 0 20px 60px rgba(0, 0, 0, 0.15);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    background-color: var(--bg-light);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    height: 800vh;
    line-height: 1.6;
    opacity: 0;
}

body.loaded {
    opacity: 1;
    transition: opacity 0.4s ease;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ============================================
   FIXED STAGE
   ============================================ */
.stage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    z-index: 1;
    perspective: 1000px;
}

/* ============================================
   BACKGROUND LAYER
   ============================================ */
.bg-layer {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.bg-gradient {
    position: absolute;
    inset: 0;
    will-change: opacity;
}

.bg-light {
    background: var(--bg-light);
    opacity: 1;
}

.bg-dark {
    background: radial-gradient(ellipse at 30% 50%, var(--brand-700) 0%, var(--brand-900) 100%);
    opacity: 0;
    will-change: opacity;
}

/* Glow Effects (ambient light) */
.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    opacity: 0;
    will-change: opacity;
}

.bg-glow-green {
    width: 600px;
    height: 600px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(47, 143, 130, 0.3), transparent 70%);
}

.bg-glow-gold {
    width: 500px;
    height: 500px;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(191, 145, 80, 0.25), transparent 70%);
}

/* ============================================
   GRAIN TEXTURE
   ============================================ */
.grain {
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    opacity: 0.045;
    z-index: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    animation: grain 0.4s steps(1) infinite;
}

@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    10%  { transform: translate(-3%, -3%); }
    20%  { transform: translate(4%, -1%); }
    30%  { transform: translate(-2%, 4%); }
    40%  { transform: translate(3%, 2%); }
    50%  { transform: translate(-4%, 1%); }
    60%  { transform: translate(2%, -4%); }
    70%  { transform: translate(-1%, 3%); }
    80%  { transform: translate(4%, 1%); }
    90%  { transform: translate(-3%, 2%); }
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    color: var(--text-primary);
    transition: color 0.4s ease;
}

/* Dark sections: invert nav to white */
.nav-bar.nav-dark {
    color: #fff;
}

.nav-bar .logo img {
    transition: opacity 0.4s ease;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    transition: filter 0.4s ease;
}

.nav-cta {
    font-family: var(--font-body);
    font-weight: 700;
    text-decoration: none;
    color: inherit;
    border: 1px solid currentColor;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.nav-cta:hover {
    background: rgba(17, 32, 40, 0.06);
}

.nav-bar.nav-dark .nav-cta:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   PROGRESS DOTS (vertical nav)
   ============================================ */
.progress-dots {
    position: fixed;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100;
    list-style: none;
}

.p-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(17, 32, 40, 0.2);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.4s, transform 0.4s;
}

.p-dot.active {
    background: rgba(17, 32, 40, 0.8);
    transform: scale(1.5);
}

.p-dot.dark-mode {
    background: rgba(255, 255, 255, 0.25);
}

.p-dot.dark-mode.active {
    background: rgba(255, 255, 255, 0.9);
}

/* ============================================
   SCROLL INDICATOR (line style)
   ============================================ */
.scroll-indicator {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 50;
    opacity: 0;
    transition: opacity 0.4s;
}

.scroll-text {
    font-family: var(--font-body);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.6s ease;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--text-secondary), transparent);
    animation: scrollLine 1.8s ease infinite;
    transition: background 0.6s ease;
}

@keyframes scrollLine {
    0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
    50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
    51%  { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ============================================
   SCENES (GENERIC)
   ============================================ */
.scene {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    padding: 24px;
    text-align: center;
    transform-style: preserve-3d;
    will-change: opacity, transform, filter;
}

.content-box {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Scene 1: text readability halo (clears particle noise behind headline) */
.scene-1 .content-box {
    position: relative;
    z-index: 3;
}

.scene-1 .content-box::before {
    content: '';
    position: absolute;
    inset: -60px -100px;
    background: radial-gradient(ellipse at center,
        rgba(246, 243, 236, 0.82) 0%,
        rgba(246, 243, 236, 0.50) 30%,
        rgba(246, 243, 236, 0.18) 55%,
        transparent 72%
    );
    z-index: -1;
    pointer-events: none;
    border-radius: 50%;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.hero-text {
    font-family: var(--font-heading);
    font-size: clamp(2.6rem, 5.5vw, 5rem);
    line-height: 1.06;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    letter-spacing: -0.03em;
}

/* Scene 1: third line — serif italic for emotional contrast */
.hero-text .line-3 {
    font-family: var(--font-accent);
    font-style: italic;
    font-weight: 400;
    font-size: 0.82em;
    letter-spacing: 0;
    color: var(--text-secondary);
}

.reveal-text {
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transform: translateY(20px);
    opacity: 0;
    will-change: opacity, transform, filter;
}

.sub-text {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    margin-top: 28px;
    color: var(--text-secondary);
    max-width: 520px;
    line-height: 1.8;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.sub-text-light {
    color: rgba(255, 255, 255, 0.6);
    text-shadow: 0 0 16px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Scene 2: "dicas" vs "Engenharia" contrast */
.impact-text {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4.8vw, 4.2rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.accent-text {
    color: var(--brand-green);
    display: block;
    font-size: 1.15em;
    letter-spacing: -0.04em;
}

/* Scene 2 sub-text: serif for rhetorical question → warmth */
.scene-2 .sub-text {
    font-family: var(--font-accent);
    font-style: italic;
    font-size: clamp(1.1rem, 2.2vw, 1.35rem);
    line-height: 1.7;
    color: var(--text-secondary);
    opacity: 0;
    transform: translateY(20px);
}

/* Scene 4 headline */
.final-headline {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4.8vw, 4.2rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.08;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
    will-change: opacity, transform, filter;
}

.serif-accent {
    font-family: var(--font-accent);
    font-style: italic;
    font-weight: 400;
    color: var(--accent-gold);
    font-size: 1.08em;
    letter-spacing: 0;
}

/* ============================================
   SCENE 1: CHAOS TUNNEL
   ============================================ */
.chaos-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    perspective: 500px;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    will-change: transform, opacity;
}

.shape-1 { width: 250px; height: 250px; background: rgba(31, 95, 87, 0.35); }
.shape-2 { width: 350px; height: 350px; background: rgba(191, 145, 80, 0.25); }
.shape-3 { width: 180px; height: 180px; background: rgba(47, 143, 130, 0.4); }
.shape-4 { width: 120px; height: 120px; background: rgba(255, 255, 255, 0.08); }

/* ============================================
   SCENE 3: CARD STACK
   ============================================ */
.card-stack-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 380px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.96);
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    text-align: left;
    box-shadow: var(--shadow-elevated);
    border: 1px solid var(--border-neutral);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform-origin: center bottom;
    opacity: 0;
    transform: translateY(100px) scale(0.9);
    will-change: transform, opacity, filter;
}

.card-accent-bar {
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 3px;
    background: linear-gradient(180deg, var(--brand-500), var(--accent-gold));
    border-radius: 0 2px 2px 0;
    opacity: 0.6;
}

.card-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--brand-green);
    opacity: 0.15;
    position: absolute;
    top: 20px;
    right: 28px;
    line-height: 1;
}

.card h3 {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    margin-bottom: 16px;
    color: var(--text-primary);
    line-height: 1.06;
    letter-spacing: -0.025em;
    font-weight: 800;
}

.card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.75;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* ============================================
   SCENE 4: BACKGROUND PHOTO + SOCIAL PROOF
   ============================================ */
.scene-4-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.scene-4-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% center;
    filter: grayscale(1) brightness(0.55) contrast(1.1);
    opacity: 0.75;
    will-change: filter;
}

.scene-4-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(15, 54, 50, 0.35) 0%, rgba(15, 54, 50, 0.75) 70%);
    pointer-events: none;
}

.scene-4 .content-box {
    position: relative;
    z-index: 1;
}

/* Social Proof Bar */
.proof-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    margin-top: 36px;
    padding: 24px 40px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(8px);
    column-gap: 24px;
    /* Initial hidden state — GSAP fromTo animates in at s4op > 0.5.
       Without this, the bar flashes visible before GSAP snaps it to 0. */
    opacity: 0;
    transform: translateY(20px);
}

.proof-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 4px;
}

.proof-number {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    color: var(--accent-gold);
    white-space: nowrap;
    letter-spacing: -0.02em;
    line-height: 1;
}

.proof-label {
    font-family: var(--font-body);
    font-size: clamp(0.6rem, 0.9vw, 0.72rem);
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
}

.proof-divider {
    width: 1px;
    align-self: stretch;
    margin: 4px 0;
    background: rgba(255, 255, 255, 0.12);
    justify-self: center;
}

/* ============================================
   TESTIMONIALS (WhatsApp prints)
   ============================================ */
.testimonials-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    justify-content: center;
    max-width: 720px;
    width: 100%;
    margin-top: 28px;
    opacity: 0;
    transform: translateY(20px);
}

.testimonial-card {
    flex: 1;
    max-width: 230px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.testimonial-card img {
    width: 100%;
    display: block;
    border-radius: 14px;
    max-height: 160px;
    object-fit: cover;
    object-position: top center;
}

.t-card-1 { transform: rotate(-1.8deg) translateY(8px); }
.t-card-2 { transform: rotate(0.4deg); flex: 1.1; max-width: 250px; }
.t-card-3 { transform: rotate(1.5deg) translateY(12px); }

.testimonial-card {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

/* Reset hover rotation for rotated cards */
.t-card-1:hover { transform: rotate(-1.8deg) translateY(8px) scale(1.05); }
.t-card-2:hover { transform: rotate(0.4deg) scale(1.05); }
.t-card-3:hover { transform: rotate(1.5deg) translateY(12px) scale(1.05); }

/* ============================================
   LIGHTBOX (testimonial expand)
   ============================================ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.lightbox.is-open {
    opacity: 1;
    pointer-events: all;
}

.lightbox-img {
    max-width: 420px;
    max-height: 85vh;
    width: auto;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.35s ease;
    object-fit: contain;
}

.lightbox.is-open .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 8px;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: #fff;
}

/* ============================================
   SCENE 5: CTA (AUTHORITY LAYOUT)
   ============================================ */
.cta-container {
    width: 100%;
    max-width: 820px;
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.cta-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    text-align: center;
    width: 100%;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    /* Initial hidden state — GSAP fromTo animates in at pct > 0.85.
       Without this, the card flashes visible before GSAP snaps it to 0. */
    opacity: 0;
    transform: scale(0.88) translateY(40px);
    filter: blur(8px);
}

.cta-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    min-height: 360px;
}

/* Photo Column */
.cta-photo-col {
    position: relative;
    overflow: visible;
}

.cta-photo-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 340px;
    overflow: hidden;
}

.cta-hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    display: block;
}

.photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent 60%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

/* Certification Badge */
.cert-badge {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid var(--border-neutral);
    border-radius: 100px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(15, 54, 50, 0.1);
    white-space: nowrap;
    z-index: 10;
}

.badge-dot-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: badgePulse 2s ease infinite;
    flex-shrink: 0;
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.badge-text {
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--brand-700);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Content Column */
.cta-content-col {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.cta-eyebrow {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--brand-light);
    margin-bottom: 6px;
}

.cta-content-col h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.08;
    letter-spacing: -0.03em;
    font-weight: 800;
}

.cta-content-col p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.cta-checklist {
    list-style: none;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cta-checklist li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding-left: 22px;
    position: relative;
    line-height: 1.5;
    font-weight: 500;
    letter-spacing: 0.005em;
}

.cta-checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(140deg, var(--brand-700), var(--brand-500));
    opacity: 0.7;
}

.main-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(140deg, var(--brand-700), var(--brand-500));
    color: white;
    padding: 13px 28px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 8px 24px rgba(31, 95, 87, 0.3);
    align-self: flex-start;
}

.main-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(31, 95, 87, 0.4);
}

.main-cta-button:active {
    transform: translateY(0);
}

.sub-cta {
    display: block;
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 8px;
    opacity: 0.7;
}

/* CTA Button Pulse */
@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(31, 95, 87, 0.3); }
    50% { box-shadow: 0 8px 36px rgba(31, 95, 87, 0.5), 0 0 0 8px rgba(31, 95, 87, 0.08); }
}

.scene-5.is-active .main-cta-button {
    animation: ctaPulse 3s ease-in-out 1s infinite;
}

.scene-5.is-active .main-cta-button:hover {
    animation: none;
}

/* Trust Footer */
.cta-trust-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 20px;
    background: var(--bg-light);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-top: 1px solid var(--border-neutral);
}

.trust-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--border-neutral);
    flex-shrink: 0;
}

/* ============================================
   PROGRESS BAR
   ============================================ */
.progress-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: rgba(0, 0, 0, 0.04);
    z-index: 200;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--brand-700), var(--accent-gold));
    will-change: width;
}

/* ============================================
   TOUCH DEVICES: lock native scroll (JS drives progress)
   ============================================ */
@media (hover: none) and (pointer: coarse) {
    html, body { overflow: hidden; }
}

/* ============================================
   RESPONSIVE: TABLET (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {

    body {
        height: 800vh;
    }

    .nav-bar {
        padding: 16px 20px;
    }

    .logo img {
        width: 100px;
        height: 28px;
    }

    .nav-cta {
        font-size: 0.78rem;
        padding: 6px 16px;
    }

    .scene {
        padding: 20px 20px;
    }

    .hero-text {
        font-size: clamp(1.8rem, 7vw, 2.8rem);
        gap: 6px;
    }

    .sub-text {
        font-size: clamp(0.9rem, 3.5vw, 1.05rem);
        max-width: 90%;
        margin-top: 16px;
    }

    .impact-text {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
    }

    .final-headline {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
    }

    /* Card Stack */
    .card-stack-container {
        max-width: 320px;
        height: 340px;
    }

    .card {
        padding: 28px 22px;
    }

    .card-number {
        font-size: 2.5rem;
        top: 14px;
        right: 20px;
    }

    .card h3 {
        font-size: 1.4rem;
    }

    .card p {
        font-size: 0.9rem;
    }

    /* Social Proof */
    .proof-bar {
        padding: 18px 16px;
    }

    /* Scene 4 photo on mobile */
    .scene-4-photo {
        object-position: 60% center;
        filter: grayscale(1) brightness(0.5) contrast(1.1);
        opacity: 0.65;
    }

    .proof-number {
        font-size: clamp(0.95rem, 3vw, 1.2rem);
    }

    .proof-label {
        font-size: 0.6rem;
    }

    .proof-divider {
        height: 28px;
    }

    /* Testimonials — grid 2+1 on mobile */
    .testimonials-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-top: 20px;
        max-width: 400px;
    }

    .testimonial-card {
        max-width: 100%;
    }

    .testimonial-card img {
        max-height: 140px;
    }

    .t-card-1 { transform: rotate(-1.5deg); }
    .t-card-2 { transform: rotate(1.2deg); }

    /* Third card centered spanning full width */
    .t-card-3 {
        grid-column: 1 / -1;
        max-width: 55%;
        justify-self: center;
        transform: rotate(-0.8deg);
    }

    .t-card-2 {
        flex: unset;
        max-width: 100%;
    }

    /* CTA - Stack vertically on tablet */
    .cta-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .cta-photo-wrapper {
        min-height: 190px;
        max-height: 220px;
    }

    /* Hide on mobile: description paragraph is redundant with checklist,
       sub-cta is redundant with trust footer — saves ~65px vertical */
    .cta-content-col > p:not(.urgency-line) { display: none; }
    .sub-cta { display: none; }

    .cta-hero-photo {
        object-position: center 20%;
    }

    .cert-badge {
        bottom: -12px;
        padding: 8px 14px;
    }

    .cta-content-col {
        padding: 20px 22px 24px;
        text-align: center;
        align-items: center;
    }

    .cta-eyebrow {
        margin-bottom: 6px;
    }

    .cta-content-col h3 {
        margin-bottom: 10px;
    }

    .cta-content-col p {
        margin-bottom: 14px;
        font-size: 0.92rem;
    }

    .cta-checklist {
        align-items: flex-start;
        text-align: left;
        margin-left: auto;
        margin-right: auto;
        width: fit-content;
        margin-bottom: 18px;
        gap: 6px;
    }

    .cta-checklist li {
        font-size: 0.84rem;
    }

    .main-cta-button {
        align-self: center;
        padding: 14px 28px;
        font-size: 0.95rem;
    }

    .sub-cta {
        text-align: center;
        margin-top: 10px;
        font-size: 0.72rem;
    }

    .cta-trust-footer {
        padding: 10px 16px;
        font-size: 0.65rem;
        gap: 8px;
    }

    /* Progress dots */
    .progress-dots {
        right: 6px;
    }

    /* Nav arrows */
    .nav-arrows {
        right: 6px;
        bottom: 20px;
    }

    .nav-arrow {
        width: 32px;
        height: 32px;
    }

    /* Quiz */
    .quiz-card {
        padding: 32px 22px;
    }

    .quiz-question {
        font-size: 18px;
    }

    .quiz-opt {
        font-size: 14px;
        padding: 12px 14px;
    }

    /* Scroll indicator */
    .scroll-indicator {
        bottom: 24px;
    }

    /* Glow - smaller on mobile */
    .bg-glow-green { width: 350px; height: 350px; }
    .bg-glow-gold { width: 300px; height: 300px; }

    /* Shapes - reduce to save memory */
    .shape-1 { width: 150px; height: 150px; }
    .shape-2 { width: 200px; height: 200px; }
    .shape-3 { width: 100px; height: 100px; }
    .shape-4 { width: 80px; height: 80px; }
}

/* ============================================
   RESPONSIVE: SMALL MOBILE (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {

    body {
        height: 800vh;
    }

    .scene {
        padding: 20px 16px;
    }

    .nav-bar {
        padding: 12px 16px;
    }

    .hero-text {
        font-size: clamp(1.6rem, 8vw, 2.2rem);
    }

    .impact-text,
    .final-headline {
        font-size: clamp(1.4rem, 7vw, 1.8rem);
    }

    .card-stack-container {
        max-width: 280px;
        height: 310px;
    }

    .card {
        padding: 24px 18px;
        border-radius: var(--radius-md);
    }

    .card h3 {
        font-size: 1.2rem;
    }

    .card p {
        font-size: 0.85rem;
    }

    /* CTA — very compact for small phones */
    .cta-card {
        border-radius: var(--radius-md);
    }

    .cta-photo-wrapper {
        min-height: 180px;
        max-height: 200px;
    }

    .cta-content-col {
        padding: 16px 18px 20px;
    }

    .cta-content-col h3 {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }

    .cta-content-col p {
        font-size: 0.88rem;
        margin-bottom: 12px;
    }

    .cta-checklist {
        margin-bottom: 14px;
    }

    .main-cta-button {
        width: 100%;
        justify-content: center;
        padding: 13px 22px;
        font-size: 0.9rem;
    }

    .sub-cta {
        margin-top: 8px;
    }

    .cta-trust-footer {
        padding: 8px 12px;
        font-size: 0.6rem;
    }

    .cert-badge {
        bottom: -10px;
        padding: 6px 12px;
    }

    .badge-text {
        font-size: 0.6rem;
    }

    .proof-bar {
        padding: 14px 10px;
        border-radius: var(--radius-md);
    }

    .proof-label {
        font-size: 0.55rem;
    }

    /* Testimonials — smaller grid on very small screens */
    .testimonials-row {
        gap: 8px;
        margin-top: 14px;
        max-width: 320px;
    }

    .testimonial-card {
        border-radius: 10px;
    }

    .testimonial-card img {
        max-height: 110px;
        border-radius: 10px;
    }
}

/* ============================================
   RESPONSIVE: LANDSCAPE MOBILE
   ============================================ */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-text {
        font-size: clamp(1.2rem, 4vw, 1.8rem);
        gap: 4px;
    }

    .sub-text {
        font-size: 0.8rem;
        margin-top: 8px;
    }

    .impact-text,
    .final-headline {
        font-size: clamp(1.2rem, 4vw, 1.6rem);
    }

    .card-stack-container {
        max-width: 300px;
        height: 260px;
    }

    .card {
        padding: 20px 18px;
    }

    .card h3 {
        font-size: 1.1rem;
    }

    .card p {
        font-size: 0.8rem;
    }

    .proof-bar {
        margin-top: 16px;
        padding: 10px 16px;
    }

    .testimonials-row {
        display: none;
    }

    .cta-layout {
        min-height: 320px;
    }

    .cta-content-col {
        padding: 20px 24px;
    }

    .nav-bar {
        padding: 8px 16px;
    }

    .scroll-indicator {
        display: none;
    }
}

/* ============================================
   PARTICLE CANVAS
   ============================================ */
.particle-canvas {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

/* ============================================
   WORD REVEAL (hero entrance)
   ============================================ */
.word-reveal {
    overflow: hidden;
    display: inline-block;
    /* Extra space for descenders (g, j, p, q, y) — line-height 1.06 is too tight
       and overflow:hidden clips them. Negative margin neutralizes layout shift. */
    padding-bottom: 0.12em;
    margin-bottom: -0.12em;
}

.word-reveal .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(60%) rotate(2deg);
    animation: wordRise 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes wordRise {
    to { opacity: 1; transform: translateY(0) rotate(0deg); }
}

/* ============================================
   NAVIGATION ARROWS
   ============================================ */
.nav-arrows {
    position: fixed;
    bottom: 28px;
    right: 24px;
    display: flex;
    gap: 6px;
    z-index: 100;
}

.nav-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(17, 32, 40, 0.15);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    padding: 0;
}

.nav-arrow:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--brand-700);
    color: var(--brand-700);
}

.nav-arrow.dark-mode {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
}

.nav-arrow.dark-mode:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.nav-arrow.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ============================================
   URGENCY LINE
   ============================================ */
.urgency-line {
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--brand-700);
    margin-bottom: 10px;
    font-weight: 500;
}

.urgency-line strong {
    font-weight: 800;
}

/* ============================================
   QUIZ MODAL
   ============================================ */
.quiz-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 15, 13, 0.93);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.quiz-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.quiz-card {
    background: #0d2420;
    border: 1px solid rgba(47, 143, 130, 0.35);
    border-radius: 20px;
    padding: 40px 36px;
    max-width: 460px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.quiz-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

.quiz-close:hover {
    color: rgba(255, 255, 255, 0.85);
}

.quiz-step-label {
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-500);
    margin-bottom: 12px;
}

.quiz-question {
    font-family: var(--font-heading);
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 24px;
    line-height: 1.3;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-opt {
    background: rgba(47, 143, 130, 0.08);
    border: 1.5px solid rgba(47, 143, 130, 0.3);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.78);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    padding: 14px 18px;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    line-height: 1.4;
}

.quiz-opt:hover {
    border-color: var(--brand-500);
    background: rgba(47, 143, 130, 0.18);
    color: #fff;
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .grain { animation: none; }
    .word-reveal .word { animation: none; opacity: 1; transform: none; }
    .particle-canvas { display: none; }
}

/* ============================================
   PERFORMANCE: GPU HINTS
   ============================================ */
.scene,
.card,
.cta-card,
.floating-shape,
.bg-gradient {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
