/* ============================================
   SCROLL STORYTELLING - CSS
   PresenzaInRete Homepage v2.0
   ============================================ */

/* Variables - Brand Extension */
:root {
    --ink: #1A1D26;
    --ink-soft: #2D3142;
    --ink-muted: #5C6378;
    --paper: #FAFAF9;
    --paper-warm: #F5F4F1;
    --paper-dark: #EBEAE6;
    --accent: #D4A84B;
    --accent-light: #E0BE6F;
    --accent-glow: rgba(212, 168, 75, 0.2);
    --warm: #8B7355;
    --warm-light: #A6926F;
    --white: #FFFFFF;
    --success: #2D6A4F;
    --gradient-warm: linear-gradient(135deg, var(--paper) 0%, var(--paper-warm) 100%);

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Source Sans 3', -apple-system, sans-serif;

    --scene-height: 100vh;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   BASE SCENE STRUCTURE
   ============================================ */
.scene {
    position: relative;
    min-height: var(--scene-height);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.scene-inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
    position: relative;
    z-index: 2;
}

.scene-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 8vw, 8rem);
    align-items: center;
}

.scene-text {
    max-width: 580px;
}

.scene-visual {
    position: relative;
    aspect-ratio: 1;
    max-width: 600px;
    margin: 0 auto;
}

/* Scene backgrounds */
.scene--dark {
    background: var(--ink);
    color: var(--paper);
}

.scene--light {
    background: var(--paper);
    color: var(--ink);
}

.scene--warm {
    background: var(--paper-warm);
    color: var(--ink);
}

.scene--accent {
    background: var(--accent);
    color: var(--paper);
}

/* ============================================
   TYPOGRAPHY - Dramatic Scale
   ============================================ */
.scene-eyebrow {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--accent);
    margin-bottom: 1.5rem;
    opacity: 0;
}

.scene--dark .scene-eyebrow {
    color: var(--accent-light);
}

.scene-headline {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    opacity: 0;
}

.scene-headline em {
    font-style: italic;
    color: var(--accent);
}

.scene--dark .scene-headline em {
    color: var(--accent-light);
}

.scene-subhead {
    font-family: var(--font-body);
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    font-weight: 400;
    line-height: 1.7;
    color: var(--ink-muted);
    max-width: 480px;
    opacity: 0;
}

.scene--dark .scene-subhead {
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   PROGRESS INDICATOR
   ============================================ */
.progress-track {
    position: fixed;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.progress-track.visible {
    opacity: 1;
}

.progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--paper-dark);
    border: 2px solid transparent;
    transition: all 0.4s var(--transition-smooth);
    cursor: pointer;
}

.progress-dot.active {
    background: var(--accent);
    transform: scale(1.3);
}

.progress-dot.passed {
    background: var(--accent);
    opacity: 0.5;
}

.progress-line {
    position: absolute;
    left: 5px;
    top: 12px;
    width: 2px;
    height: calc(100% - 24px);
    background: var(--paper-dark);
}

.progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 0%;
    background: var(--accent);
    transition: height 0.3s ease;
}

/* ============================================
   SCROLL INDICATOR
   ============================================ */
.scroll-indicator {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    opacity: 1;
    transition: opacity 0.5s ease;
    z-index: 100;
}

.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

.scroll-indicator-text {
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-light);
}

.scroll-indicator-arrow {
    width: 24px;
    height: 24px;
    color: var(--accent-light);
    animation: scroll-bounce 2s ease-in-out infinite;
}

.scroll-indicator-arrow svg {
    width: 100%;
    height: 100%;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ============================================
   SCENE 0: HERO - "Il Business Invisibile"
   ============================================ */
.scene-hero {
    background: var(--ink);
    color: var(--paper);
    position: relative;
}


/* Hero text visible by default */
.scene-hero .scene-eyebrow,
.scene-hero .scene-headline,
.scene-hero .scene-subhead {
    opacity: 1;
}

.hero-visual {
    position: relative;
}

/* Illustrazione: Laptop + Coffee */
.hero-illustration {
    width: 100%;
    aspect-ratio: 1;
    position: relative;
    filter: grayscale(30%);
    opacity: 0.9;
    transition: filter 1.5s ease, opacity 1.5s ease;
}

.hero-illustration.colored {
    filter: grayscale(0%);
    opacity: 1;
}

/* Workspace container */
.hero-workspace {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: flex-end;
    gap: 2rem;
}

/* Laptop */
.hero-laptop {
    position: relative;
}

.laptop-screen {
    width: 280px;
    height: 180px;
    background: linear-gradient(145deg, #2a2d38 0%, #1f222b 100%);
    border-radius: 12px 12px 0 0;
    border: 3px solid #3d4252;
    padding: 1rem;
    position: relative;
}

.laptop-screen::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #3d4252;
    border-radius: 50%;
}

.laptop-screen-content {
    background: var(--paper);
    border-radius: 4px;
    height: 100%;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.screen-line {
    height: 8px;
    background: var(--paper-dark);
    border-radius: 4px;
}

.screen-line--title {
    width: 60%;
    height: 12px;
    background: var(--ink);
    margin-bottom: 0.5rem;
}

.screen-line--short { width: 40%; }
.screen-line--long { width: 90%; }
.screen-line--medium { width: 65%; }

.laptop-base {
    width: 320px;
    height: 14px;
    background: linear-gradient(180deg, #4a4f61 0%, #3d4252 100%);
    border-radius: 0 0 8px 8px;
    margin-left: -20px;
    position: relative;
}

.laptop-base::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #2a2d38;
    border-radius: 0 0 4px 4px;
}

/* Keyboard removed - cleaner look */

/* Coffee Cup */
.hero-coffee {
    width: 60px;
    height: 70px;
    background: var(--accent);
    border-radius: 6px 6px 12px 12px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    margin-bottom: 14px;
}

/* Coffee liquid surface - same color as cup */
.hero-coffee::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    height: 18px;
    background: radial-gradient(ellipse at center, var(--accent-light) 0%, var(--accent) 100%);
    border-radius: 50%;
}

/* Handle */
.hero-coffee::after {
    content: '';
    position: absolute;
    right: -16px;
    top: 18px;
    width: 16px;
    height: 32px;
    border: 5px solid var(--accent);
    border-left: none;
    border-radius: 0 10px 10px 0;
    background: transparent;
}

/* Steam - more visible and sinuous */
.coffee-steam {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 30px;
}

.coffee-steam::before,
.coffee-steam::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 3px;
    height: 22px;
    background: linear-gradient(to top, rgba(255,255,255,0.7), rgba(255,255,255,0.1));
    border-radius: 3px;
    animation: steam-wave 3s ease-in-out infinite;
}

.coffee-steam::before { left: 10px; animation-delay: 0s; }
.coffee-steam::after { right: 10px; animation-delay: 1s; }

@keyframes steam-wave {
    0% {
        transform: translateY(0) translateX(0) scaleY(1);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-6px) translateX(4px) scaleY(1.1);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-12px) translateX(-2px) scaleY(1.2);
        opacity: 0.3;
    }
    75% {
        transform: translateY(-18px) translateX(3px) scaleY(1.1);
        opacity: 0.15;
    }
    100% {
        transform: translateY(-24px) translateX(0) scaleY(1);
        opacity: 0;
    }
}

/* Floating stats (appear on scroll) */
.hero-stat-float {
    position: absolute;
    padding: 1rem 1.5rem;
    background: rgba(26, 29, 38, 0.95);
    border: 1px solid rgba(139, 115, 85, 0.4);
    border-radius: 8px;
    font-family: var(--font-body);
    color: var(--paper);
    opacity: 0;
    transform: translateY(20px);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero-stat-float--visitors {
    top: 5%;
    right: 10%;
}

.hero-stat-float--leads {
    bottom: 20%;
    left: 5%;
}

.hero-stat-float .stat-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--accent-light);
    display: block;
    line-height: 1;
}

.hero-stat-float .stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.25rem;
}

/* ============================================
   SCENE 1: "Nasce il Sito"
   ============================================ */
.scene-website {
    background: var(--paper);
}

.website-visual {
    position: relative;
}

/* Browser mockup animato */
.browser-mockup {
    width: 100%;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 25px 80px rgba(26, 29, 38, 0.15);
    overflow: hidden;
    opacity: 0;
    transform: scale(0.95);
}

.browser-chrome {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    background: var(--paper-warm);
    border-bottom: 1px solid var(--paper-dark);
}

.browser-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.browser-dot--red { background: #FF5F56; }
.browser-dot--yellow { background: #FFBD2E; }
.browser-dot--green { background: #27C93F; }

.browser-address {
    flex: 1;
    margin-left: 1rem;
    padding: 0.5rem 1rem;
    background: var(--paper);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: var(--ink-muted);
}

.browser-content {
    padding: 2rem;
    min-height: 300px;
    position: relative;
}

/* Realistic website mockup */
.mockup-site {
    opacity: 0;
    transform: translateY(20px);
}

.mockup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--ink);
    border-radius: 4px 4px 0 0;
}

.mockup-logo {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--paper);
}

.mockup-nav {
    display: flex;
    gap: 0.75rem;
}

.mockup-nav span {
    width: 40px;
    height: 6px;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
}

.mockup-hero {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 1rem;
    background: var(--paper);
}

.mockup-hero-text {
    flex: 1;
}

.mockup-hero-title {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.5rem;
}

.mockup-hero-sub {
    width: 80%;
    height: 6px;
    background: var(--paper-dark);
    border-radius: 3px;
    margin-bottom: 0.75rem;
}

.mockup-hero-btn {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    background: var(--accent);
    color: var(--white);
    font-size: 0.6rem;
    font-weight: 600;
    border-radius: 4px;
}

.mockup-hero-img {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
    border-radius: 50%;
    flex-shrink: 0;
}

.mockup-services {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--paper-warm);
}

.mockup-service {
    flex: 1;
    background: var(--white);
    border-radius: 6px;
    padding: 0.75rem;
    text-align: center;
}

.mockup-service-icon {
    width: 24px;
    height: 24px;
    background: var(--accent-glow);
    border-radius: 50%;
    margin: 0 auto 0.5rem;
}

.mockup-service-title {
    font-size: 0.55rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.35rem;
}

.mockup-service-desc {
    height: 4px;
    background: var(--paper-dark);
    border-radius: 2px;
}

/* Lucide Icons Styling */
.ai-trend-icon,
.notification-icon,
.pmax-icon,
.cta-icon,
.trust-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.ai-trend-icon {
    color: var(--success);
}

.notification-icon {
    width: 20px;
    height: 20px;
    color: var(--white);
}

.pmax-icon {
    width: 18px;
    height: 18px;
}

.cta-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.cta-button:hover .cta-icon {
    transform: translateX(4px);
}

.trust-icon {
    width: 18px;
    height: 18px;
    color: var(--success);
}

/* ============================================
   SCENE 2: "SEO - Ti Trovano"
   ============================================ */
.scene-seo {
    background: var(--paper-warm);
}

.seo-visual {
    position: relative;
    min-height: 400px;
}

/* Hide mobile-only elements on desktop */
.seo-mobile-card,
.analytics-mobile-card,
.mobile-scroll-hint,
.sticky-cta-mobile {
    display: none;
}

/* Keywords floating - positioned for scroll reveal */
.keyword-cloud {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    padding: 1rem;
}

.keyword-bubble {
    padding: 0.625rem 1.25rem;
    background: var(--white);
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ink);
    box-shadow: 0 4px 20px rgba(26, 29, 38, 0.08);
    opacity: 0;
    transform: scale(0.8) rotateX(30deg);
    white-space: nowrap;
}

.keyword-bubble--primary {
    background: var(--accent);
    color: var(--white);
    font-weight: 600;
}

/* SERP mockup */
.serp-mockup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 500px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 25px 80px rgba(26, 29, 38, 0.12);
    opacity: 0;
    overflow: hidden;
}

.serp-search {
    padding: 1.25rem;
    border-bottom: 1px solid var(--paper-dark);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.serp-search-icon {
    width: 24px;
    height: 24px;
    color: var(--ink-muted);
}

.serp-search-text {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
}

.serp-results {
    padding: 1rem;
}

.serp-result {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.5s ease;
    position: relative;
    background: var(--paper);
}

.serp-result--you {
    background: var(--paper-warm);
    border: 2px solid var(--accent);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.serp-result-url {
    font-size: 0.75rem;
    color: var(--success);
    margin-bottom: 0.25rem;
}

.serp-result-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    color: var(--ink);
    margin-bottom: 0.25rem;
}

.serp-result-desc {
    font-size: 0.8125rem;
    color: var(--ink-muted);
    line-height: 1.5;
}

.serp-position {
    position: absolute;
    left: -50px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent);
}

.serp-position--competitor {
    color: var(--ink-muted);
}

.serp-result--competitor {
    background: var(--paper);
}

/* Traffic counter */
.traffic-counter {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    text-align: center;
    opacity: 0;
    padding: 1rem;
}

.traffic-value {
    font-family: var(--font-display);
    font-size: clamp(4rem, 10vw, 7rem);
    font-weight: 600;
    color: var(--accent);
    line-height: 1;
}

.traffic-label {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* ============================================
   SCENE 3: "AI Crea Contenuti"
   ============================================ */
.scene-ai {
    background: var(--ink);
    color: var(--paper);
}

.ai-visual {
    position: relative;
}

/* AI Processing visualization */
.ai-processor {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
}

.ai-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid transparent;
    opacity: 0;
}

.ai-ring--1 {
    width: 100%;
    height: 100%;
    border-color: var(--accent);
    animation: ai-pulse 3s ease-in-out infinite;
}

.ai-ring--2 {
    width: 70%;
    height: 70%;
    border-color: var(--accent-light);
    animation: ai-pulse 3s ease-in-out infinite 0.5s;
}

.ai-ring--3 {
    width: 40%;
    height: 40%;
    border-color: var(--accent);
    animation: ai-pulse 3s ease-in-out infinite 1s;
}

@keyframes ai-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

.ai-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 30px var(--accent), 0 0 60px rgba(139, 115, 85, 0.5);
}

/* Article being written */
.ai-article {
    position: absolute;
    top: 10%;
    right: -10%;
    width: 320px;
    background: var(--paper);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateX(50px);
}

.ai-article-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--ink);
    margin-bottom: 1rem;
}

.ai-article-lines {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ai-article-line {
    height: 8px;
    background: var(--paper-dark);
    border-radius: 4px;
    transform-origin: left;
    transform: scaleX(0);
}

.ai-article-line--short { width: 60%; }
.ai-article-line--medium { width: 80%; }
.ai-article-line--long { width: 100%; }

/* Trend keywords input */
.ai-trends {
    position: absolute;
    bottom: 15%;
    left: -10%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transform: translateX(-50px);
}

.ai-trend {
    padding: 0.5rem 1rem;
    background: rgba(139, 115, 85, 0.2);
    border: 1px solid var(--accent);
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: var(--accent-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Removed - using Lucide icons instead */

/* ============================================
   SCENE 4: "Lead Conversion"
   ============================================ */
.scene-leads {
    background: var(--paper);
}

.leads-visual {
    position: relative;
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 520px;
}

/* Mini slider demo */
.mini-slider {
    width: 100%;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(26, 29, 38, 0.12);
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.mini-slider-header {
    padding: 1.25rem 1.5rem;
    background: var(--ink);
    color: var(--paper);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mini-slider-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
}

.mini-slider-step {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.mini-slider-body {
    padding: 1.5rem;
}

.mini-slider-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.mini-slider-option {
    padding: 0.875rem 1rem;
    background: var(--paper);
    border: 2px solid var(--paper-dark);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.25s ease;
    opacity: 0;
    transform: translateX(-20px);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

.mini-slider-option:hover,
.mini-slider-option.selected {
    border: 2px solid var(--accent);
    background: rgba(212, 168, 75, 0.15);
    box-shadow: 0 0 0 2px rgba(212, 168, 75, 0.1);
}

/* Lead notification popup */
.lead-notification {
    background: var(--white);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 15px 50px rgba(26, 29, 38, 0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
    align-self: flex-start;
}

.lead-notification-icon {
    width: 40px;
    height: 40px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.lead-notification-text {
    font-family: var(--font-body);
}

.lead-notification-title {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--ink);
}

.lead-notification-name {
    font-size: 0.8125rem;
    color: var(--ink-muted);
}

/* Google Ads mention */
.pmax-badge {
    padding: 0.75rem 1.25rem;
    background: var(--ink);
    color: var(--paper);
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(20px);
    align-self: flex-start;
    white-space: nowrap;
}

.pmax-badge svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ============================================
   SCENE 5: "Risultati"
   ============================================ */
.scene-results {
    background: var(--ink);
    color: var(--paper);
}

.results-visual {
    position: relative;
}

/* Dashboard mockup */
.dashboard-mockup {
    width: 100%;
    background: var(--ink-soft);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
    opacity: 0;
    transform: scale(0.9);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.dashboard-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
}

.dashboard-period {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
}

.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-metric {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.dashboard-metric-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--accent-light);
    margin-bottom: 0.25rem;
}

.dashboard-metric-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Animated chart */
.dashboard-chart {
    height: 150px;
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    overflow: hidden;
}

.chart-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.chart-path {
    fill: none;
    stroke: var(--accent);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

.chart-fill {
    fill: url(#chart-gradient);
    opacity: 0.3;
}

/* ============================================
   SCENE 6: CTA Finale
   ============================================ */
.scene-cta {
    background: var(--paper);
    min-height: auto;
    padding: 8rem 0;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-headline {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
}

.cta-subhead {
    font-size: 1.25rem;
    color: var(--ink-muted);
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    background: var(--accent);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.cta-button:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 168, 75, 0.3);
}

.cta-button svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.cta-button:hover svg {
    transform: translateX(4px);
}

.cta-trust {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
}

.cta-trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--ink-muted);
}

.cta-trust-item svg {
    width: 18px;
    height: 18px;
    color: var(--success);
}

/* ============================================
   HEADER (Overlay during scenes)
   ============================================ */
.header-storytelling {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s ease;
}

.header-storytelling.scrolled {
    background: rgba(250, 250, 249, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    box-shadow: 0 1px 0 var(--paper-dark);
}

.header-storytelling.dark-section {
    color: var(--paper);
}

.header-storytelling.dark-section.scrolled {
    background: rgba(26, 29, 38, 0.95);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1);
}

.logo-storytelling {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: inherit;
}

.logo-icon {
    height: 32px;
    width: auto;
}

/* Logo swap for light/dark sections */
.logo-icon--dark {
    display: none;
}

.header-storytelling.dark-section .logo-icon--light {
    display: none;
}

.header-storytelling.dark-section .logo-icon--dark {
    display: block;
}

.logo-text {
    letter-spacing: -0.02em;
}

.logo-accent {
    color: var(--accent);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-nav a {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.25s ease;
}

.header-nav a:hover {
    opacity: 1;
}

.header-cta {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #E8C96B 0%, #D4A84B 100%);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.25s ease;
    box-shadow: 0 0 15px rgba(212, 168, 75, 0.5), 0 0 30px rgba(212, 168, 75, 0.25);
    animation: header-cta-glow 2s ease-in-out infinite;
}

@keyframes header-cta-glow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(212, 168, 75, 0.5), 0 0 30px rgba(212, 168, 75, 0.25);
    }
    50% {
        box-shadow: 0 0 20px rgba(212, 168, 75, 0.7), 0 0 40px rgba(212, 168, 75, 0.35);
    }
}

.header-cta:hover {
    background: linear-gradient(135deg, #F0D47A 0%, #E0BE6F 100%);
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(212, 168, 75, 0.8), 0 0 50px rgba(212, 168, 75, 0.4);
    animation: none;
}

/* Dark section CTA stays visible */
.header-storytelling.dark-section .header-cta {
    background: linear-gradient(135deg, #E8C96B 0%, #D4A84B 100%);
    color: var(--ink);
}

/* ============================================
   FOOTER
   ============================================ */
.footer-storytelling {
    background: var(--ink);
    color: var(--paper);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.25rem;
}

.footer-brand span {
    color: var(--accent);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.25s ease;
}

.footer-links a:hover {
    color: var(--paper);
}

.footer-copy {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   SCROLL ASSIST BUTTON
   ============================================ */
.scroll-assist-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    z-index: 900;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(26, 29, 38, 0.2);
    min-height: 48px;
}

.scroll-assist-btn:hover {
    background: var(--ink-soft);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(26, 29, 38, 0.25);
}

.scroll-assist-btn:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.scroll-assist-btn.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

.scroll-assist-btn[data-scrolling="true"] {
    pointer-events: none;
}

.scroll-assist-icon {
    width: 18px;
    height: 18px;
    animation: scroll-hint-bounce 1.5s ease-in-out infinite;
}

@keyframes scroll-hint-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(4px);
    }
}

.scroll-assist-text {
    opacity: 0.8;
}

/* Hide on very small screens to avoid overlap */
@media (max-width: 374px) {
    .scroll-assist-btn {
        right: 1rem;
        bottom: 1rem;
        padding: 0.75rem 1rem;
        font-size: 0.75rem;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .scroll-assist-btn {
        right: 1.5rem;
        bottom: 1.5rem;
    }
}

/* ============================================
   HAMBURGER MENU (Mobile Navigation)
   ============================================ */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    position: relative;
    z-index: 1100;
    border: none;
    cursor: pointer;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: all 0.3s var(--transition-smooth);
    transform-origin: center;
}

/* Hamburger to X animation - fix z-index by making it fixed when active */
.hamburger-menu.active {
    display: flex !important;
    position: fixed;
    top: 1rem;
    right: 1.25rem;
    z-index: 1100;
    color: var(--paper);
}

.hamburger-menu.active .hamburger-line {
    background: var(--paper);
    height: 3px;
    width: 28px;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation Overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--ink);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-nav.open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav a {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    color: var(--paper);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease;
}

.mobile-nav.open a {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav.open a:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav.open a:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav.open a:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav.open a:nth-child(4) { transition-delay: 0.25s; }

.mobile-nav a:hover {
    color: var(--accent);
}

.mobile-nav .mobile-cta {
    margin-top: 1rem;
    padding: 1rem 2rem;
    background: var(--accent);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 6px;
    transition: background 0.25s ease, transform 0.25s ease;
}

.mobile-nav .mobile-cta:hover {
    background: var(--accent-light);
    transform: scale(1.02);
}

/* ============================================
   TABLET RESPONSIVE (768px - 1024px)
   ============================================ */
@media (max-width: 1024px) {
    .scene-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .scene-text {
        max-width: 600px;
        margin: 0 auto;
    }

    .scene-visual {
        max-width: 400px;
    }

    /* Progress indicator repositioned on tablet */
    .progress-track {
        left: 1rem;
    }

    /* Hero workspace adjustments */
    .hero-workspace {
        transform: translate(-50%, -50%) scale(0.85);
    }

    /* SERP mockup sizing */
    .serp-mockup {
        max-width: 90%;
    }

    /* AI visual positioning */
    .ai-trends {
        left: 0;
        bottom: 5%;
    }

    .ai-article {
        right: 0;
        top: 5%;
        width: 280px;
    }

    /* Mini slider full width */
    .mini-slider {
        max-width: 90%;
    }

    /* Lead notification positioning */
    .lead-notification {
        right: 0;
        top: 10%;
    }
}

/* ============================================
   MOBILE RESPONSIVE (< 768px)
   ============================================ */
@media (max-width: 767px) {
    /* Show hamburger, hide desktop nav */
    .hamburger-menu {
        display: flex;
    }

    .header-nav {
        display: none;
    }

    /* Hide progress indicator on mobile */
    .progress-track {
        display: none;
    }

    /* Hide scroll-assist button on mobile (scenes not pinned) */
    .scroll-assist-btn {
        display: none !important;
    }

    /* Header adjustments */
    .header-storytelling {
        padding: 1rem 1.25rem;
    }

    .header-storytelling.scrolled {
        padding: 0.75rem 1.25rem;
    }

    .logo-storytelling {
        font-size: 1.25rem;
    }

    .logo-icon {
        height: 28px;
    }

    /* Scene base adjustments */
    .scene {
        min-height: auto;
        padding: 5rem 0 4rem;
    }

    .scene-inner {
        padding: 0 1.25rem;
    }

    /* Typography scaling - min 28px for readability */
    .scene-headline {
        font-size: clamp(1.875rem, 7vw, 2.5rem);
        margin-bottom: 1rem;
    }

    .scene-subhead {
        font-size: 1.0625rem;
        line-height: 1.6;
        color: var(--ink-soft);
    }

    .scene--dark .scene-subhead {
        color: rgba(255, 255, 255, 0.75);
    }

    .scene-eyebrow {
        font-size: 0.6875rem;
        margin-bottom: 1rem;
    }

    /* Scene visual sizing */
    .scene-visual {
        max-width: 320px;
        margin-top: 2rem;
    }

    /* Hero scene */
    .scene-hero {
        padding-top: 6rem;
        padding-bottom: 3rem;
    }

    /* FIX: Hero text smaller on mobile */
    .scene-hero .scene-subhead {
        font-size: 0.9375rem;
        line-height: 1.5;
    }

    /* FIX: Hero illustration - show laptop+coffee below text */
    .hero-illustration {
        aspect-ratio: auto;
        min-height: 180px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hero-workspace {
        position: relative;
        top: auto;
        left: auto;
        transform: scale(0.55);
        transform-origin: center center;
        justify-content: center;
        margin: 0 auto;
        gap: 1rem;
    }

    /* Hide floating stats on mobile - confusing without animation */
    .hero-stat-float {
        display: none;
    }

    /* Hide scroll indicator on mobile - users naturally scroll */
    .scroll-indicator {
        display: none;
    }

    /* Mobile Scroll Hint - fixed at bottom of viewport */
    .mobile-scroll-hint {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.375rem;
        position: fixed;
        bottom: 2rem;
        left: 50%;
        transform: translateX(-50%);
        z-index: 100;
        padding: 0.75rem 1.5rem;
        background: rgba(30, 32, 34, 0.9);
        border-radius: 2rem;
        backdrop-filter: blur(8px);
        animation: hintBounce 2s ease-in-out infinite;
    }

    .mobile-scroll-hint span {
        font-family: var(--font-body);
        font-size: 0.8125rem;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.6);
        letter-spacing: 0.02em;
    }

    .mobile-scroll-hint svg {
        color: var(--accent);
        opacity: 0.8;
    }

    @keyframes hintBounce {
        0%, 100% { transform: translateX(-50%) translateY(0); }
        50% { transform: translateX(-50%) translateY(6px); }
    }

    /* MOBILE: Show elements immediately (animations are simpler fade-ins) */
    .browser-mockup,
    .mockup-site,
    .mini-slider,
    .mini-slider-option,
    .dashboard-mockup,
    .lead-notification,
    .pmax-badge,
    .ai-article,
    .ai-article-line,
    .cta-headline,
    .cta-subhead,
    .cta-button,
    .cta-trust {
        opacity: 1 !important;
        transform: none !important;
    }

    .ai-article-line {
        transform: scaleX(1) !important;
    }

    .chart-path {
        stroke-dashoffset: 0 !important;
    }

    /* Hide complex visuals that don't work on mobile */
    .keyword-cloud,
    .serp-mockup,
    .ai-processor,
    .ai-trends,
    .traffic-counter {
        display: none;
    }

    /* FIX: Hide gold circle in website mockup on mobile */
    .mockup-hero-img {
        display: none;
    }

    /* ================================================
       MOBILE SEO ILLUSTRATION - Frontend Design Style
       Distinctive card with warm paper aesthetic
       ================================================ */
    .seo-visual {
        min-height: 200px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Hide desktop elements */
    .seo-visual::before,
    .seo-visual::after {
        display: none;
    }

    /* Mobile SERP Card - Elegant minimal design */
    .seo-mobile-card {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        width: 280px;
        padding: 1.25rem;
        background: var(--paper);
        border-radius: 16px;
        box-shadow:
            0 2px 8px rgba(0,0,0,0.06),
            0 8px 32px rgba(0,0,0,0.12);
        position: relative;
        overflow: hidden;
    }

    /* Subtle accent gradient at top */
    .seo-mobile-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
    }

    /* Search bar */
    .seo-mobile-search {
        display: flex;
        align-items: center;
        gap: 0.625rem;
        padding: 0.625rem 0.875rem;
        background: var(--paper-warm);
        border-radius: 8px;
        font-family: var(--font-body);
        font-size: 0.8125rem;
        color: var(--ink-muted);
    }

    .seo-mobile-search svg {
        color: var(--ink-muted);
        flex-shrink: 0;
    }

    /* Search result */
    .seo-mobile-result {
        display: flex;
        align-items: flex-start;
        gap: 0.875rem;
        padding: 0.875rem;
        background: linear-gradient(135deg, rgba(212,168,75,0.08) 0%, rgba(212,168,75,0.02) 100%);
        border: 1px solid rgba(212,168,75,0.2);
        border-radius: 10px;
    }

    /* #1 Rank Badge - Hero element */
    .seo-mobile-rank {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 36px;
        height: 36px;
        background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
        color: var(--ink);
        font-family: var(--font-display);
        font-size: 0.9375rem;
        font-weight: 700;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(212,168,75,0.3);
    }

    .seo-mobile-info {
        flex: 1;
        min-width: 0;
    }

    .seo-mobile-url {
        font-family: var(--font-body);
        font-size: 0.6875rem;
        color: var(--accent);
        margin-bottom: 0.25rem;
        letter-spacing: 0.02em;
    }

    .seo-mobile-title {
        font-family: var(--font-display);
        font-size: 0.9375rem;
        font-weight: 600;
        color: var(--ink);
        line-height: 1.3;
    }

    /* ================================================
       MOBILE ANALYTICS - Minimal Rising Chart
       Clean, elegant visualization
       ================================================ */
    .analytics-mobile-card {
        display: flex;
        flex-direction: column;
        width: 280px;
        padding: 1.25rem;
        background: var(--ink);
        border-radius: 16px;
        box-shadow:
            0 4px 16px rgba(0,0,0,0.2),
            0 12px 48px rgba(0,0,0,0.25);
    }

    .analytics-mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        margin-bottom: 1rem;
    }

    .analytics-mobile-label {
        font-family: var(--font-body);
        font-size: 0.75rem;
        font-weight: 500;
        color: rgba(255,255,255,0.6);
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .analytics-mobile-trend {
        font-family: var(--font-display);
        font-size: 1.125rem;
        font-weight: 700;
        color: var(--accent);
    }

    .analytics-mobile-chart {
        width: 100%;
        height: 80px;
        margin-bottom: 0.75rem;
    }

    .analytics-mobile-line {
        stroke-dasharray: 400;
        stroke-dashoffset: 0;
    }

    .analytics-mobile-dot {
        filter: drop-shadow(0 0 8px var(--accent));
    }

    .analytics-mobile-months {
        display: flex;
        justify-content: space-between;
        font-family: var(--font-body);
        font-size: 0.6875rem;
        color: rgba(255,255,255,0.4);
    }

    /* Hide desktop dashboard on mobile */
    .dashboard-mockup {
        display: none !important;
    }

    /* Website scene - browser mockup */
    .browser-mockup {
        border-radius: 8px;
    }

    .browser-chrome {
        padding: 0.75rem 1rem;
    }

    .browser-dot {
        width: 8px;
        height: 8px;
    }

    .browser-address {
        font-size: 0.6875rem;
        padding: 0.375rem 0.75rem;
    }

    .browser-content {
        padding: 1rem;
        min-height: 200px;
    }

    .mockup-header {
        padding: 0.5rem 0.75rem;
    }

    .mockup-logo {
        font-size: 0.75rem;
    }

    .mockup-nav span {
        width: 24px;
        height: 4px;
    }

    .mockup-hero {
        padding: 0.75rem;
        flex-direction: column;
        gap: 0.75rem;
    }

    .mockup-hero-title {
        font-size: 0.75rem;
    }

    .mockup-hero-img {
        width: 50px;
        height: 50px;
    }

    .mockup-services {
        padding: 0.75rem;
        gap: 0.5rem;
        flex-direction: column;
    }

    .mockup-service {
        padding: 0.5rem;
    }

    .mockup-service-icon {
        width: 18px;
        height: 18px;
    }

    .mockup-service-title {
        font-size: 0.5rem;
    }

    /* SEO scene */
    .seo-visual {
        min-height: 300px;
    }

    .keyword-cloud {
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .keyword-bubble {
        padding: 0.5rem 0.875rem;
        font-size: 0.75rem;
    }

    /* SERP mockup - CRITICAL FIX for test */
    .serp-mockup {
        max-width: calc(100% - 2rem);
        width: 100%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .serp-search {
        padding: 0.875rem;
    }

    .serp-search-icon {
        width: 18px;
        height: 18px;
    }

    .serp-search-text {
        font-size: 0.8125rem;
    }

    .serp-results {
        padding: 0.75rem;
    }

    .serp-result {
        padding: 0.75rem;
        margin-bottom: 0.375rem;
    }

    .serp-result-title {
        font-size: 0.9375rem;
    }

    .serp-result-desc {
        font-size: 0.75rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Hide position badges on mobile - they overflow */
    .serp-position {
        display: none;
    }

    /* Traffic counter */
    .traffic-counter {
        padding: 0.75rem;
    }

    .traffic-value {
        font-size: clamp(3rem, 12vw, 5rem);
    }

    .traffic-label {
        font-size: 0.8125rem;
    }

    /* AI scene */
    .ai-visual {
        min-height: 280px;
    }

    .ai-processor {
        width: 120px;
        height: 120px;
    }

    .ai-trends {
        position: relative;
        left: 0;
        bottom: 0;
        margin-top: 1.5rem;
        align-items: center;
    }

    .ai-trend {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }

    .ai-article {
        position: relative;
        right: 0;
        top: 0;
        width: 100%;
        max-width: 280px;
        margin: 1.5rem auto 0;
        padding: 1rem;
    }

    .ai-article-title {
        font-size: 1rem;
    }

    .ai-article-line {
        height: 6px;
    }

    /* Leads scene */
    .leads-visual {
        max-width: 100%;
        gap: 1rem;
    }

    .mini-slider {
        max-width: 100%;
    }

    .mini-slider-header {
        padding: 1rem;
        flex-direction: column;
        gap: 0.25rem;
        align-items: flex-start;
    }

    .mini-slider-title {
        font-size: 1.0625rem;
    }

    .mini-slider-body {
        padding: 1.25rem;
    }

    .mini-slider-options {
        grid-template-columns: 1fr;
    }

    .mini-slider-option {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
        min-height: 44px;
        text-align: left;
    }

    .lead-notification {
        max-width: 280px;
        align-self: center;
    }

    .lead-notification-icon {
        width: 36px;
        height: 36px;
    }

    .lead-notification-title {
        font-size: 0.875rem;
    }

    .lead-notification-name {
        font-size: 0.75rem;
    }

    .pmax-badge {
        font-size: 0.75rem;
        padding: 0.625rem 1rem;
        align-self: center;
        white-space: normal;
        text-align: center;
    }

    /* FIX: Results scene - redesigned dashboard for mobile */
    .results-visual {
        display: flex;
        justify-content: center;
    }

    .dashboard-mockup {
        padding: 1.25rem;
        margin-top: 1.5rem;
        max-width: 280px;
        background: rgba(255,255,255,0.05);
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 16px;
    }

    /* Simplified header */
    .dashboard-header {
        flex-direction: row;
        justify-content: space-between;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .dashboard-title {
        font-size: 0.875rem;
        color: var(--paper);
    }

    .dashboard-period {
        font-size: 0.6875rem;
        color: rgba(255,255,255,0.5);
    }

    /* Compact metrics - horizontal */
    .dashboard-metrics {
        display: flex;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .dashboard-metric {
        flex: 1;
        padding: 0.625rem 0.5rem;
        background: rgba(255,255,255,0.03);
        border-radius: 8px;
        text-align: center;
    }

    .dashboard-metric-value {
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--accent);
    }

    .dashboard-metric-label {
        font-size: 0.5625rem;
        color: rgba(255,255,255,0.5);
        text-transform: uppercase;
        letter-spacing: 0.03em;
        margin-top: 0.125rem;
    }

    /* Chart remains */
    .dashboard-chart {
        height: 80px;
        margin-top: 0;
    }

    /* CTA scene */
    .scene-cta {
        padding: 4rem 0;
    }

    .cta-headline {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .cta-subhead {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .cta-button {
        padding: 1rem 1.75rem;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
        /* Touch-friendly minimum height */
        min-height: 48px;
    }

    .cta-trust {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1.5rem;
    }

    .cta-trust-item {
        font-size: 0.8125rem;
    }

    /* Footer */
    .footer-storytelling {
        padding: 2.5rem 1.25rem 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-brand {
        font-size: 1.125rem;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.25rem;
    }

    .footer-links a {
        font-size: 0.8125rem;
        /* Touch-friendly */
        padding: 0.25rem;
    }

    .footer-copy {
        font-size: 0.75rem;
    }

    /* FIX: Sticky CTA for mobile */
    .sticky-cta-mobile {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(to top, var(--ink) 0%, var(--ink) 85%, transparent 100%);
        padding: 1.5rem 1.25rem 1rem;
        z-index: 100;
        justify-content: center;
        transform: translateY(100%);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .sticky-cta-mobile.visible {
        transform: translateY(0);
        opacity: 1;
    }

    .sticky-cta-mobile a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
        max-width: 320px;
        padding: 0.875rem 1.5rem;
        background: var(--accent);
        color: var(--ink);
        font-family: var(--font-display);
        font-size: 0.9375rem;
        font-weight: 600;
        text-decoration: none;
        border-radius: 2rem;
        box-shadow: 0 4px 20px rgba(212, 168, 75, 0.3);
        transition: transform 0.2s, box-shadow 0.2s;
    }

    .sticky-cta-mobile a:active {
        transform: scale(0.98);
    }

    /* Hide when near footer or CTA section */
    .sticky-cta-mobile.hidden {
        transform: translateY(100%);
        opacity: 0;
        pointer-events: none;
    }

    /* Add padding to footer to account for sticky CTA */
    .footer-storytelling {
        padding-bottom: 5rem;
    }
}

/* ============================================
   SMALL MOBILE (< 375px)
   ============================================ */
@media (max-width: 374px) {
    .scene-headline {
        font-size: 1.5rem;
    }

    .hero-workspace {
        transform: scale(0.5);
    }

    .serp-mockup {
        max-width: calc(100% - 1rem);
    }

    .cta-headline {
        font-size: 1.375rem;
    }

    .sticky-cta-mobile a {
        font-size: 0.875rem;
        padding: 0.75rem 1.25rem;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .scene *,
    .scene *::before,
    .scene *::after {
        animation: none !important;
        transition: none !important;
    }

    .scene-eyebrow,
    .scene-headline,
    .scene-subhead,
    .browser-mockup,
    .keyword-bubble,
    .serp-mockup,
    .ai-article,
    .mini-slider,
    .dashboard-mockup,
    .cta-headline,
    .cta-subhead,
    .cta-button,
    .cta-trust {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ============================================
   INLINE BLOG LINKS
   Editorial style with animated underline
   ============================================ */
.blog-link {
    position: relative;
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 85%,
        var(--accent) 85%,
        var(--accent) 100%
    );
    background-size: 100% 100%;
    transition: all 0.3s var(--transition-smooth);
}

/* Ensure no space reserved for arrow when not hovering */
.blog-link::after {
    content: none;
}

.blog-link:hover {
    color: var(--accent);
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 88%,
        var(--accent) 88%,
        var(--accent) 100%
    );
}

/* Arrow on hover only - inherits color from parent */
.blog-link:hover::after {
    content: ' \2192';
}

/* Dark scene arrow needs explicit color */
.scene--dark .blog-link:hover::after {
    content: ' \2192';
    color: var(--accent-light);
}

/* Dark scene variant */
.scene--dark .blog-link {
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 85%,
        var(--accent-light) 85%,
        var(--accent-light) 100%
    );
}

.scene--dark .blog-link:hover {
    color: var(--accent-light);
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 88%,
        var(--accent-light) 88%,
        var(--accent-light) 100%
    );
}

/* Warm scene variant */
.scene--warm .blog-link:hover {
    color: var(--warm);
}
