/* ============ PAGE-SPECIFIC HEADER VISIBLE ============ */
.header.page-header {
    opacity: 1;
    transform: translateY(0);
    z-index: 100;
}

/* ============ SMARTMEALS BRAND COLORS ============ */
:root {
    --sm-red: #C41E3A;
    --sm-red-dark: #9B1B30;
    --sm-blue: #1E5AA8;
    --sm-blue-dark: #14407A;
}

/* ============ HERO SECTION ============ */
.smartmeals-hero {
    min-height: 100vh;
    padding: 8rem 2rem 4rem;
    padding-bottom: clamp(80px, 6vh, 240px);
    position: relative;
    overflow: hidden;
    background: var(--cream);
    align-items: flex-start;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-content {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Hero Text */
.hero-text {
    max-width: 560px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem 0.5rem 0.75rem;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.1) 0%, rgba(30, 90, 168, 0.1) 100%);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--sm-red);
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--sm-red);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

/* Single unified keyframes for pulse-dot */
@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

.hero-logo {
    margin-bottom: 1.5rem;
}

.hero-logo img {
    max-width: 340px;
    height: auto;
}

.hero-tagline {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--sm-blue);
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Hero Actions */
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.75rem;
    background: linear-gradient(135deg, var(--sm-red) 0%, var(--sm-red-dark) 100%);
    color: white;
    text-decoration: none;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(196, 30, 58, 0.35);
}

.btn-hero-primary svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.btn-hero-primary:hover svg {
    transform: translateX(4px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    border: 2px solid rgba(61, 52, 40, 0.15);
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--white);
    border-color: var(--sm-blue);
    color: var(--sm-blue);
}

.btn-secondary svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.btn-secondary:hover svg {
    transform: translateY(3px);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image-container {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.hero-image-stack {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
}

.hero-shot {
    position: absolute;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, var(--cream-dark) 0%, var(--peach) 100%);
}

.hero-shot-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.hero-shot--desktop {
    width: 93.7%;
    height: 100%;
    left: 56%;
    top: 58%;
    transform: translate(-40%, -30%);
    z-index: 1;
}

.hero-shot--phone {
    width: 42%;
    height: 100%;
    left: 30%;
    top: 36%;
    transform: translate(-100%, -50%);
    z-index: 2;
}

.hero-shot--phone::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(196, 30, 58, 0.1);
    pointer-events: none;
}

/* =====================================================
   SCROLL INDICATOR
   ===================================================== */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.scroll-text {
    font-family: var(--sm-red);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--sm-red);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: var(--cream-dark);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--sm-red);
    border-radius: 2px;
    animation: scrollPulse 1.5s ease-in-out infinite;
}

@keyframes scrollPulse {
    0% { transform: translateY(-100%); }
    50% { transform: translateY(100%); }
    100% { transform: translateY(200%); }
}

/* ============ SCROLL-DRIVEN SHOWCASE ============ */
.scroll-showcase .scroll-showcase__track {
    height: 250vh;
    position: relative;
}

.scroll-showcase .scroll-showcase__pinned {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--cream);
}

.scroll-showcase .scroll-showcase__pinned.is-pinned {
    position: fixed;
    top: 0;
    z-index: 10;
}

/* When scrolled past - stick to bottom of track */
.scroll-showcase .scroll-showcase__pinned.is-complete {
    position: absolute;
    top: auto;
    bottom: 0;
}

/* Override hero padding when in scroll showcase mode */
.scroll-showcase.smartmeals-hero {
    min-height: auto;
    padding: 0;
}

.scroll-showcase .hero-content {
    padding: 6rem 2rem 2rem;
}

/* Hero visual container for scroll showcase */
.scroll-showcase .hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 550px;
    height: 70vh;
    max-height: 650px;
}

.scroll-showcase .hero-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dynamic scene text */
.showcase-dynamic {
    position: relative;
    min-height: 100px;
    margin-bottom: 0.5rem;
}

.scene-text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.scene-text.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
}

.scene-text .hero-description {
    margin-bottom: 0;
}

/* Hero image stack for scroll showcase - center devices */
.scroll-showcase .hero-image-stack {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
}

/* Device animation states */
.hero-shot.device {
    position: absolute;
    top: 50%;
    left: 50%;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
    background: none !important;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2), 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    overflow: hidden;
}

.hero-shot.device:not(.active) {
    opacity: 0;
    pointer-events: none;
}

.hero-shot.device.future {
    transform: translate(-50%, -50%) translate(120%, 60%) scale(0.6) rotateY(-25deg) rotateX(10deg) !important;
}

.hero-shot.device.past {
    transform: translate(-50%, -50%) translate(-100%, -50%) scale(0.5) rotateY(20deg) rotateX(-10deg) !important;
}

.hero-shot.device.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotateY(0) rotateX(0) !important;
}

/* Ensure images fill container completely */
.scroll-showcase .hero-shot-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}

/* Phone device - tall and narrow */
.scroll-showcase .hero-shot--phone {
    width: auto;
    height: 85%;
    max-height: 520px;
    min-height: 400px;
    aspect-ratio: 9/19.5;
    z-index: 3;
    border-radius: 24px;
}

/* Remove the border overlay on phone in scroll showcase */
.scroll-showcase .hero-shot--phone::after {
    display: none;
}

/* Tablet device - more square */
.scroll-showcase .hero-shot--tablet {
    width: auto;
    height: 80%;
    max-height: 500px;
    min-height: 380px;
    aspect-ratio: 3/4;
    z-index: 2;
    border-radius: 16px;
}

/* Desktop device - wide */
.scroll-showcase .hero-shot--desktop {
    width: 95%;
    max-width: 600px;
    min-width: 450px;
    height: auto;
    aspect-ratio: 16/10;
    z-index: 1;
    border-radius: 8px;
}

/* Device glows */
.device-glow {
    position: absolute;
    width: 150%;
    height: 150%;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero-shot.device.active .device-glow {
    opacity: 0.5;
    animation: glow-pulse 3s ease-in-out infinite;
}

.device-glow--red {
    background: radial-gradient(circle, rgba(196, 30, 58, 0.4) 0%, transparent 70%);
}

.device-glow--blue {
    background: radial-gradient(circle, rgba(30, 90, 168, 0.4) 0%, transparent 70%);
}

.device-glow--gradient {
    background: radial-gradient(circle, rgba(196, 30, 58, 0.3) 0%, rgba(30, 90, 168, 0.3) 50%, transparent 70%);
}

@keyframes glow-pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.4;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.6;
    }
}

/* Progress dots */
.stage-progress {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 20;
}

.progress-dot {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(61, 52, 40, 0.15);
    background: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.progress-dot svg {
    width: 22px;
    height: 22px;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.progress-dot:hover {
    border-color: var(--sm-blue);
    transform: scale(1.08);
}

.progress-dot:hover svg {
    color: var(--sm-blue);
}

.progress-dot.active {
    border-color: var(--sm-red);
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.1), rgba(30, 90, 168, 0.1));
    box-shadow: 0 4px 20px rgba(196, 30, 58, 0.2);
}

.progress-dot.active svg {
    color: var(--sm-red);
}

.progress-dot.complete {
    border-color: var(--sm-blue);
    background: rgba(30, 90, 168, 0.08);
}

.progress-dot.complete svg {
    color: var(--sm-blue);
}

/* ============ STATS BAR ============ */
.stats-bar {
    background: linear-gradient(135deg, var(--sm-red) 0%, var(--sm-red-dark) 100%);
    padding: 3rem 2rem;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: white;
    flex: 1;
    min-width: 150px;
}

.stat-number {
    font-family: 'Fraunces', serif;
    font-size: 3rem;
    font-weight: 600;
    line-height: 1;
}

.stat-unit {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.9;
    margin-top: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
}

/* ============ PROBLEM/SOLUTION SECTION ============ */
.problem-section {
    padding: 6rem 2rem;
    background: var(--cream-dark);
}

.problem-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.problem-visual {
    display: flex;
    align-items: stretch;
    gap: 1.5rem;
}

.problem-card,
.solution-card {
    flex: 1;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.solution-card {
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.08) 0%, rgba(30, 90, 168, 0.08) 100%);
    border: 2px solid rgba(196, 30, 58, 0.15);
}

.problem-card:hover,
.solution-card:hover {
    transform: translateY(-5px);
}

.problem-icon,
.solution-icon {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.problem-card h3,
.solution-card h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.problem-card p,
.solution-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.solution-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.solution-arrow svg {
    width: 32px;
    height: 32px;
    color: var(--text-primary);
}

.problem-content {
    max-width: 500px;
}

.section-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--sm-red);
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.25;
    margin-bottom: 1.25rem;
}

.section-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.section-description.highlight {
    color: var(--text-primary);
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.06) 0%, rgba(30, 90, 168, 0.06) 100%);
    padding: 1.25rem;
    border-radius: 12px;
    border-left: 4px solid var(--sm-red);
}

/* ============ FEATURES SECTION ============ */
.features-section {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, var(--cream-dark) 0%, var(--cream) 100%);
}

.features-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--sm-red) 0%, var(--sm-blue) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.1) 0%, rgba(30, 90, 168, 0.1) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: var(--sm-red);
}

.feature-card h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============ HOW IT WORKS SECTION ============ */
.how-section {
    padding: 6rem 2rem;
    background: var(--cream);
}

.how-header {
    text-align: center;
    margin-bottom: 4rem;
}

.how-steps {
    max-width: 700px;
    margin: 0 auto;
}

.how-step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 2rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

.step-number {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--sm-red) 0%, var(--sm-red-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

.step-content h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.step-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.how-connector {
    width: 2px;
    height: 40px;
    background: linear-gradient(180deg, var(--sm-red) 0%, rgba(196, 30, 58, 0.2) 100%);
    margin: 0 auto;
}

/* ============ V2.0 COMING SOON SECTION ============ */
.v2-section {
    position: relative;
    overflow: hidden;
    padding: clamp(64px, 8vw, 96px) 24px;
    background: var(--cream, #f6f1ea);
    color: var(--text-primary, #2a2a2a);
}

.v2-section::before {
    content: "";
    position: absolute;
    inset: -40px;
    background:
        radial-gradient(circle at 18% 28%, rgba(255, 140, 80, 0.22) 0%, transparent 46%),
        radial-gradient(circle at 82% 70%, rgba(60, 120, 255, 0.16) 0%, transparent 46%),
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.55) 0%, transparent 60%);
    filter: blur(2px);
    pointer-events: none;
}

.v2-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

.v2-content {
    max-width: 560px;
}

.v2-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--sm-blue-dark);
    background: rgba(165, 155, 254, 0.14);
    border: 1px solid var(--sm-blue-dark);
    backdrop-filter: blur(6px);
    margin-bottom: 18px;
}

.v2-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sm-blue-dark);
    animation: pulse-dot 2s ease-in-out infinite;
}

.v2-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(2.1rem, 4vw, 2.85rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    margin: 0 0 10px 0;
}

.v2-subtitle {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--sm-blue-dark);
    margin: 0 0 18px 0;
}

.v2-description {
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0 0 26px 0;
    color: color-mix(in srgb, var(--text-primary, #2a2a2a) 88%, #000 12%);
    max-width: 52ch;
}

/* V2 Visual / Card Wrapper */
.v2-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.v2-image-wrapper {
    width: 100%;
    max-width: 370px;
    border-radius: 26px;
    padding: clamp(16px, 2.3vw, 26px);
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(60, 50, 35, 0.10);
    box-shadow: 0 28px 70px rgba(33, 28, 20, 0.18);
    backdrop-filter: blur(14px);
}

/* ============ IMAGE COMPARISON SLIDER ============ */
.image-comparison-slider {
    --pos: 50;
    position: relative;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    aspect-ratio: 7 / 12;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(60, 50, 35, 0.12);
    box-shadow: 0 16px 46px rgba(61, 52, 40, 0.16);
    cursor: ew-resize;
    user-select: none;
    touch-action: none;
}

/* Layers */
.comparison-before,
.comparison-after {
    position: absolute;
    inset: 0;
}

.comparison-after {
    z-index: 1;
}

.comparison-before {
    z-index: 2;
    clip-path: inset(0 calc(100% - var(--pos) * 1%) 0 0);
}

.comparison-before img,
.comparison-after img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #fff;
    display: block;
}

/* Labels */
.comparison-label {
    position: absolute;
    bottom: 14px;
    z-index: 5;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--white, #fff);
    background: rgba(33, 28, 20, 0.80);
    backdrop-filter: blur(6px);
    pointer-events: none;
}

.comparison-label-before {
    left: 14px;
}

.comparison-label-after {
    right: 14px;
}

/* Handle */
.comparison-slider-handle {
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: calc(var(--pos) * 1%);
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}

.comparison-slider-line {
    flex: 1;
    width: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
}

.comparison-slider-button {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(60, 50, 35, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease;
}

.image-comparison-slider:hover .comparison-slider-button {
    transform: scale(1.06);
}

.comparison-slider-button svg {
    width: 16px;
    height: 16px;
    color: var(--orange-dark, #c7771f);
}

.comparison-slider-button svg:first-child {
    margin-right: -4px;
}

.comparison-slider-button svg:last-child {
    margin-left: -4px;
}

/* ============ USE CASE SECTION ============ */
.use-case-section {
    padding: 6rem 1rem;
    background: linear-gradient(135deg, var(--sm-blue) 0%, var(--sm-blue-dark) 100%);
}

.use-case-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.use-case-content {
    color: white;
}

.use-case-content .section-label {
    color: rgba(255, 255, 255, 0.8);
}

.use-case-content .section-title {
    color: white;
}

.use-case-quote {
    font-family: 'Fraunces', serif;
    font-size: 1.35rem;
    font-style: italic;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    padding-left: 1.5rem;
    border-left: 3px solid rgba(255, 255, 255, 0.3);
}

.use-case-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.benefit-item svg {
    width: 20px;
    height: 20px;
    color: var(--peach);
    flex-shrink: 0;
}

.use-case-visual {
    display: flex;
    justify-content: center;
}

.visual-card {
    background: var(--white);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    max-width: 360px;
}

.visual-stat {
    text-align: center;
    padding: 1rem 0;
}

.visual-number {
    display: block;
    font-family: 'Fraunces', serif;
    font-size: 3.5rem;
    font-weight: 600;
    color: var(--sm-blue-dark);
    line-height: 1;
}

.visual-text {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: 0.5rem;
}

.visual-divider {
    height: 1px;
    background: rgba(61, 52, 40, 0.1);
    margin: 1rem 0;
}

/* ============ CTA SECTION ============ */
.cta-section {
    padding: 7rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--sm-blue) 0%, var(--sm-blue-dark) 100%);
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: white;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--sm-blue-dark);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
}

.cta-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 400;
    color: var(--cream);
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.cta-description {
    font-size: 1.15rem;
    color: var(--cream-dark);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* CTA Button - Styled for blue background */
.cta-section .btn-demo {
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
}

.cta-section .btn-demo .btn-demo-bg {
    background: linear-gradient(135deg, var(--sm-red-dark) 0%, var(--sm-red) 100%);
}

.cta-section .btn-demo .btn-demo-spotlight {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: radial-gradient(
        circle at 20% 50%,
        rgba(255, 255, 255, 0.25) 0%,
        rgba(255, 255, 255, 0.1) 35%,
        transparent 60%
    );
}

.cta-section .btn-demo:hover .btn-demo-spotlight {
    opacity: 1;
    animation: cta-spotlight-move 0.3s ease forwards;
}

@keyframes cta-spotlight-move {
    0% {
        background: radial-gradient(
            circle at 20% 50%,
            rgba(255, 255, 255, 0.25) 0%,
            rgba(255, 255, 255, 0.1) 35%,
            transparent 60%
        );
    }
    100% {
        background: radial-gradient(
            circle at 80% 50%,
            rgba(255, 255, 255, 0.25) 0%,
            rgba(255, 255, 255, 0.1) 35%,
            transparent 60%
        );
    }
}

.cta-section .btn-demo .btn-demo-content {
    color: white;
}

.cta-section .btn-demo .btn-demo-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.cta-section .btn-demo .btn-demo-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.cta-section .btn-demo .btn-demo-icon svg {
    width: 18px;
    height: 18px;
}

/* Secondary CTA button */
.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background: var(--white);
    color: var(--orange-dark);
    text-decoration: none;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.btn-cta-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    color: var(--sm-blue);
}

.btn-cta-secondary svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.btn-cta-secondary:hover svg {
    transform: translateX(4px);
}

/* ============ REVEAL ANIMATIONS ============ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }
.reveal.delay-5 { transition-delay: 0.5s; }

/* ============ RESPONSIVE - Consolidated Media Queries ============ */

/* Large screens - only for non-scroll-showcase hero */
@media (max-width: 1250px) {
    .smartmeals-hero:not(.scroll-showcase) .hero-image-container {
        max-width: 640px;
    }

    .smartmeals-hero:not(.scroll-showcase) .hero-image-stack {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
        aspect-ratio: auto;
    }

    .smartmeals-hero:not(.scroll-showcase) .hero-shot {
        position: relative;
        width: 100%;
        height: auto;
        left: auto;
        top: auto;
        transform: none;
    }

    .smartmeals-hero:not(.scroll-showcase) .hero-shot-img {
        object-fit: cover;
    }

    .smartmeals-hero:not(.scroll-showcase) .hero-shot--phone {
        display: none;
    }

    .smartmeals-hero:not(.scroll-showcase) .hero-shot--desktop {
        border-radius: 24px;
        min-height: 360px;
    }
}

/* Medium-large screens - only for non-scroll-showcase hero */
@media (max-width: 1100px) {
    .smartmeals-hero:not(.scroll-showcase) .hero-image-container {
        max-width: 560px;
    }

    .smartmeals-hero:not(.scroll-showcase) .hero-shot--desktop {
        display: none;
    }

    .smartmeals-hero:not(.scroll-showcase) .hero-shot--phone {
        display: block;
        position: relative;
        width: 100%;
        max-width: 300px;
        height: auto;
        aspect-ratio: 9/16;
        transform: none;
        border-radius: 1rem;
    }

    .smartmeals-hero:not(.scroll-showcase) .hero-image-stack {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: clamp(18px, 4vw, 34px);
        aspect-ratio: auto;
    }

    .hero-shot-img {
        object-fit: contain;
    }
}

/* Tablet screens */
@media (max-width: 1000px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-text {
        max-width: 100%;
        margin: 0 auto;
    }

    .hero-logo img {
        max-width: 280px;
    }

    .hero-actions {
        justify-content: center;
    }
}

/* Medium screens */
@media (max-width: 900px) {
    .stats-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .stat-divider {
        display: none;
    }

    .problem-container,
    .use-case-container,
    .v2-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .problem-content {
        max-width: 100%;
        text-align: center;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .v2-container {
        gap: 40px;
    }
}

/* Small-medium screens */
@media (max-width: 768px) {
    .smartmeals-hero {
        padding: 6rem 1.5rem 3rem;
    }

    .stats-bar {
        padding: 2rem 1.5rem;
    }

    .stat-number {
        font-size: 2.25rem;
    }

    .problem-section,
    .features-section,
    .how-section,
    .v2-section,
    .use-case-section,
    .cta-section {
        padding: 4rem 1.5rem;
    }
}

/* Small screens */
@media (max-width: 600px) {
    .problem-visual {
        flex-direction: column;
    }

    .solution-arrow svg {
        transform: rotate(90deg);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .how-step {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

/* Extra small screens */
@media (max-width: 520px) {
    .hero-shot--phone {
        display: none;
    }
}

@media (max-width: 500px) {
    .use-case-benefits {
        grid-template-columns: 1fr;
    }
}

/* ============ SCROLL SHOWCASE RESPONSIVE ============ */

/* Extra large screens - push progress dots out more */
@media (min-width: 1400px) {
    .stage-progress {
        right: 2rem;
    }
}

/* Large screens */
@media (max-width: 1200px) {
    .scroll-showcase .scroll-showcase__track {
        height: 240vh;
    }
    
    .scroll-showcase .hero-shot--desktop {
        max-width: 520px;
        min-width: 380px;
    }
}

/* Tablet screens */
@media (max-width: 1000px) {
    .scroll-showcase .scroll-showcase__track {
        height: 220vh;
    }

    .showcase-dynamic {
        min-height: 80px;
    }
    
    .scroll-showcase .hero-image-stack {
        min-height: 400px;
    }
    
    .scroll-showcase .hero-visual {
        min-height: 450px;
        height: 60vh;
    }
    
    .scroll-showcase .hero-shot--phone {
        max-height: 450px;
        min-height: 350px;
    }
    
    .scroll-showcase .hero-shot--tablet {
        max-height: 420px;
        min-height: 320px;
    }
    
    .scroll-showcase .hero-shot--desktop {
        max-width: 450px;
        min-width: 320px;
    }
}

/* Small-medium screens */
@media (max-width: 768px) {
    .scroll-showcase .scroll-showcase__track {
        height: 200vh;
    }

    .scroll-showcase .hero-content {
        padding: 5rem 1.5rem 2rem;
    }

    .progress-dot {
        width: 40px;
        height: 40px;
    }

    .progress-dot svg {
        width: 18px;
        height: 18px;
    }

    .showcase-dynamic {
        min-height: 90px;
    }
    
    .scroll-showcase .hero-visual {
        min-height: 380px;
        height: 50vh;
    }
    
    .scroll-showcase .hero-shot--phone {
        max-height: 380px;
        min-height: 300px;
    }
    
    .scroll-showcase .hero-shot--tablet {
        max-height: 340px;
        min-height: 260px;
    }
    
    .scroll-showcase .hero-shot--desktop {
        max-width: 380px;
        min-width: 280px;
    }
}

/* Small screens */
@media (max-width: 600px) {
    .scroll-showcase .scroll-showcase__track {
        height: 180vh;
    }

    .showcase-dynamic {
        min-height: 100px;
    }
    
    .scroll-showcase .hero-visual {
        min-height: 320px;
        height: 45vh;
    }
    
    .scroll-showcase .hero-shot--phone {
        max-height: 320px;
        min-height: 250px;
    }
    
    .scroll-showcase .hero-shot--tablet {
        max-height: 280px;
        min-height: 220px;
    }
    
    .scroll-showcase .hero-shot--desktop {
        max-width: 320px;
        min-width: 240px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .scroll-showcase .scroll-showcase__track {
        height: 160vh;
    }

    .progress-dot {
        width: 36px;
        height: 36px;
    }

    .progress-dot svg {
        width: 16px;
        height: 16px;
    }

    .showcase-dynamic {
        min-height: 120px;
    }
    
    .scroll-showcase .hero-visual {
        min-height: 280px;
        height: 40vh;
    }
    
    .scroll-showcase .hero-shot--phone {
        max-height: 280px;
        min-height: 220px;
        border-radius: 16px;
    }
    
    .scroll-showcase .hero-shot--tablet {
        max-height: 240px;
        min-height: 180px;
        border-radius: 12px;
    }
    
    .scroll-showcase .hero-shot--desktop {
        max-width: 280px;
        min-width: 220px;
        border-radius: 6px;
    }
}
/* ============ MOBILE HERO SECTION ADJUSTMENTS ============ */
@media (max-width: 1001px) {
    /* Disable the scroll showcase behavior */
    .smartmeals-hero.scroll-showcase {
        min-height: auto !important;
        padding: 7rem 1.5rem 3rem !important;
    }

    .scroll-showcase .scroll-showcase__track {
        height: auto !important;
        min-height: auto !important;
    }

    .scroll-showcase .scroll-showcase__pinned {
        position: relative !important;
        height: auto !important;
        min-height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .scroll-showcase .scroll-showcase__pinned.is-pinned,
    .scroll-showcase .scroll-showcase__pinned.is-complete {
        position: relative !important;
    }

    /* Make hero content single column */
    .scroll-showcase .hero-content {
        display: block !important;
        padding: 0 !important;
        text-align: center;
        width: 100% !important;
    }

    .hero-text {
        max-width: 100% !important;
        margin: 0 auto;
    }

    /* Hide device showcase elements */
    .hero-visual,
    .stage-progress,
    .hero-image-container,
    .hero-image-stack,
    .hero-shot,
    .hero-shot--phone,
    .hero-shot--tablet,
    .hero-shot--desktop,
    .device-glow {
        display: none !important;
    }

    /* Show only the first scene text (mobile description) */
    .showcase-dynamic {
        position: relative !important;
        min-height: auto !important;
    }

    .scene-text {
        position: relative !important;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
    }

    .scene-text[data-scene="mobile"] {
        display: block !important;
    }

    .scene-text[data-scene="tablet"],
    .scene-text[data-scene="desktop"] {
        display: none !important;
    }

    /* Center hero actions */
    .hero-actions {
        justify-content: center;
    }

    /* Position scroll indicator properly - centered at bottom */
    .scroll-indicator {
        position: relative !important;
        margin-top: 2.5rem;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .scroll-indicator .scroll-text {
        text-align: center;
    }

    /* Ensure hero logo doesn't get cut off */
    .hero-logo {
        margin-top: 0.5rem;
    }

    .hero-logo img {
        max-width: 260px;
        height: auto;
    }
}

/* Even smaller mobile screens */
@media (max-width: 480px) {
    .smartmeals-hero.scroll-showcase {
        padding: 6rem 1rem 2.5rem !important;
    }

    .hero-logo img {
        max-width: 220px;
    }

    .hero-tagline {
        font-size: 1.25rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .btn-hero-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}