:root {
    --primary-color: #ffffff;
    --secondary-color: #a1a1a1;
    --bg-color: #000000;
    --card-bg: #111111;
    --accent-color: #3d3d3d;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --glow-color: rgba(0, 102, 255, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.6) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    color: #fff;
}

p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    height: 100%;
}

/* Header & Footer Container Flex */
header .container,
footer .container,
.features .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.features .container {
    display: block;
    /* Features container shouldn't be flex row/space-between */
}

/* Header */
/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent;
    border-bottom: 1px solid transparent;
    transform: translateY(-100%);
    /* Hidden initially */
}

header.header-visible {
    transform: translateY(0);
}

header.scrolled {
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.8rem 0;
    /* Shrink on scroll */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
    text-decoration: none;
    color: #fff;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 3rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.6rem 2rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

nav a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.header-btn {
    background: #fff;
    color: #000;
    padding: 0.6rem 1.4rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.header-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* Base btn-download style (used in footer/download section) */
.btn-download {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 4px 15px rgba(0, 0, 0, 0.2);
    color: #fff;
    padding: 0.85rem 1.8rem;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-download:hover {
    transform: translateY(-2px) scale(1.02);
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.3) 0%,
            rgba(255, 255, 255, 0.1) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-download:active {
    transform: translateY(0) scale(0.98);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

#heroVideo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Combine radial gradient for vignette with linear gradient at bottom for seamless transition */
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 1) 100%),
        radial-gradient(circle, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 2;
}

.hero-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    padding: 0;
}

.hero-content-wrapper {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
}

.badge {
    position: absolute;
    top: 75%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.6rem 1.2rem;

    /* Liquid Glass SVG Style */
    isolation: isolate;
    border-radius: 100px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;

    /* Base Styling */
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.95);

    opacity: 0;
    transition: opacity 1s ease, transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 5;
}

.badge::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.15) 0%,
            rgba(255, 255, 255, 0.05) 50%,
            rgba(255, 255, 255, 0.02) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1),
        0 4px 15px rgba(0, 0, 0, 0.2);
}

.badge::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    border-radius: inherit;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    filter: url(#glass-distortion);
    -webkit-filter: url(#glass-distortion);
    opacity: 0.9;

    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.95);

    opacity: 0;
    transition: opacity 1s ease, transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 5;
}

.badge:hover {
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.5),
        inset 0 -1px 1px rgba(255, 255, 255, 0.15),
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    transform: translateX(-50%) scale(1.02);
}

.hero.hero-split .badge {
    opacity: 1;
}

/* 
   Center Titles Configuration 
   Visible initially (0-3s), then blurred out 
*/
.hero-center-titles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.title-top,
.title-bottom {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.title-top {
    top: 46%;
}

.title-bottom {
    top: 54%;
}

.hero.fade-in-active .title-top {
    opacity: 1;
    top: 44%;
}

.hero.fade-in-active .title-bottom {
    opacity: 1;
    top: 56%;
}

/* Hide center titles on split */
.hero.hero-split .title-top {
    opacity: 0;
    transform: translate(-50%, -60%);
}

.hero.hero-split .title-bottom {
    opacity: 0;
    transform: translate(-50%, 70%);
}

/* 
   Side Titles Configuration
   Hidden initially, fade in at edges after 3s
*/
.hero-side-titles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.side-left,
.side-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-align: center;
    /* Center align for multi-line */
    line-height: 1.2;
}

/* Specific font size for side titles to fit */
.side-left,
.side-right {
    font-size: clamp(3.5rem, 6vw, 6.5rem);
}

/* Initial state: slightly offset outwards */
.side-left {
    left: 5%;
    transform: translate(-20px, -50%);
}

.side-right {
    right: 5%;
    transform: translate(20px, -50%);
}

/* Active split state: show and settle */
.hero.hero-split .side-left {
    opacity: 1;
    transform: translate(0, -50%);
}

.hero.hero-split .side-right {
    opacity: 1;
    transform: translate(0, -50%);
}

/* Description at bottom */
/* Description at bottom */
/* Description at bottom */
.hero-description {
    position: absolute;
    top: 83%;
    left: 0;
    right: 0;
    margin: 0 auto;
    /* Robust centering */
    width: 90%;
    max-width: 800px;

    transform: translateY(20px);

    text-align: center;
    opacity: 0;
    transition: all 1s ease;
    z-index: 4;

    /* Better Typography */
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero.hero-split .hero-description {
    opacity: 1;
    transform: translateY(0);
}


/* Features Section */
.features {
    padding: 8rem 0;
    background: #000;
    /* Ensure base is black */
    position: relative;
    overflow: hidden;
}



/* Features Flow Layout System */
.features-flow {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    /* Vertical Rhythm */
    margin-top: 4rem;
}

/* Row Layouts */
.feature-row {
    width: 100%;
}

.feature-row.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.feature-row.three-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Card Styling Updates */
/* Hero Card (Full Width) */
.full-width-card {
    height: 560px;
    /* Tall hero section */
    overflow: hidden;
}

.card-content-wrapper.horizontal-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    height: 100%;
    padding: 2rem 1rem;
}

.horizontal-hero .text-group {
    max-width: 45%;
    z-index: 5;
    margin-top: 3rem;
    margin-left: 2rem;
}

.horizontal-hero h3 {
    font-size: 2.8rem;
    /* Big Title */
    margin-bottom: 1rem;
}

.horizontal-hero p {
    font-size: 1.2rem;
    opacity: 0.7;
}

/* Secondary Cards */
.feature-row.two-col .feature-card {
    height: 500px;
    overflow: hidden;
}

.card-content-wrapper.vertical-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    padding-top: 3rem;
    position: relative;
    z-index: 2;
}

.centered-text h3 {
    font-size: 2rem;
}

.center-icon {
    margin: 0 auto 1.5rem auto !important;
}

/* Tertiary Cards (Small) */
.small-card {
    height: 280px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 2rem;
}

.small-card h3 {
    font-size: 1.4rem;
}

/* Updated Mockup Positions */
.hero-mockup {
    position: absolute;
    right: 5%;
    bottom: -150px;
    width: 330px;
    height: 660px;
    transform: rotate(-10deg);
}

.feature-card:hover .hero-mockup {
    transform: rotate(-8deg) translateY(-20px);
}

.secondary-mockup {
    position: absolute;
    bottom: -100px;
    /* Peek form bottom */
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    height: 520px;
}

.feature-card:hover .secondary-mockup {
    transform: translateX(-50%) translateY(-20px);
}

/* Responsive */
@media (max-width: 1024px) {
    .feature-row.three-col {
        grid-template-columns: repeat(2, 1fr);
        /* 2x2 for small cards */
    }

    .feature-row.three-col> :last-child {
        grid-column: span 2;
        /* Last one spans */
    }
}

@media (max-width: 768px) {

    .feature-row.two-col,
    .feature-row.three-col {
        grid-template-columns: 1fr;
    }

    .feature-row.three-col> :last-child {
        grid-column: auto;
    }

    .full-width-card {
        height: auto;
        min-height: 500px;
    }

    .horizontal-hero {
        flex-direction: column;
    }

    .horizontal-hero .text-group {
        max-width: 100%;
        margin: 0;
        text-align: center;
    }

    .hero-mockup {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: 2rem;
        transform: rotate(0);
        width: 240px;
        height: 480px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Content Layouts */
.card-content-wrapper {
    height: 100%;
    position: relative;
    z-index: 10;
}

.card-content-wrapper.horizontal {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.horizontal .text-group {
    max-width: 60%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* iPhone Mockup Styles */
.mockup-container {
    position: absolute;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.feature-card:hover .mockup-container {
    transform: translateY(-10px) scale(1.02);
}

/* Feature 1: Wide Card - Phone on right, tilted */
.wide-showcase {
    right: 20px;
    bottom: -80px;
    width: 240px;
    height: 480px;
    transform: rotate(-8deg);
    /* Tilted look */
    transform-origin: bottom right;
}

/* Feature 2: Tall Card - Phone at bottom, centered */
.tall-showcase {
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 440px;
}

/* Device Frame */
.iphone-mockup {
    width: 100%;
    height: 100%;
    background: #111;
    border-radius: 36px;
    border: 6px solid #2d2d2d;
    box-shadow:
        0 0 0 1px #4a4a4a,
        inset 0 0 0 2px #000,
        0 30px 60px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
}

/* Dynamic Island */
.notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 20px;
    background: #000;
    border-radius: 12px;
    z-index: 20;
}

.screen-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1c1c1e 0%, #000000 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 0.75rem;
    font-weight: 500;
}

.card-content-wrapper.vertical-stretch {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.vertical-stretch h3 {
    font-size: 2.2rem;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

/* Icon Updates */
/* Icon Refined */
.small-icon {
    width: auto;
    height: auto;
    margin-bottom: 1rem;
    display: inline-flex;
    background: transparent !important;
    padding: 0;
    box-shadow: none !important;
}

.small-icon svg {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    box-shadow: none;
}

/* Typography Refined */
.feature-card h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    letter-spacing: -0.02em;
}

.feature-card p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
}

/* Cleanup */
.waveform-visual {
    display: none !important;
}

.feature-icon.large {
    display: none;
}

/* Waveform Animation */
.waveform-visual {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 60px;
    z-index: 2;
}

.waveform-visual span {
    display: block;
    width: 6px;
    background: linear-gradient(180deg, #A855F7 0%, #3B82F6 100%);
    border-radius: 10px;
    animation: wave 1.2s ease-in-out infinite;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
}

.waveform-visual span:nth-child(1) {
    height: 20px;
    animation-delay: 0.1s;
}

.waveform-visual span:nth-child(2) {
    height: 40px;
    animation-delay: 0.2s;
}

.waveform-visual span:nth-child(3) {
    height: 30px;
    animation-delay: 0.0s;
}

.waveform-visual span:nth-child(4) {
    height: 50px;
    animation-delay: 0.3s;
}

.waveform-visual span:nth-child(5) {
    height: 25px;
    animation-delay: 0.1s;
}

@keyframes wave {

    0%,
    100% {
        transform: scaleY(0.5);
        opacity: 0.5;
    }

    50% {
        transform: scaleY(1);
        opacity: 1;
    }
}

/* Improved Typography */
.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
    letter-spacing: -0.01em;
}

.feature-card p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

/* Specific styling for item 5 (optional asymmetry) */
.features-grid> :nth-child(5) {
    grid-column: span 1;
    /* Reset to 1 for now, or make 2 if layout fits */
}

/* Tablet Responsive */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid>.grid-col-2 {
        grid-column: span 2;
    }

    .features-grid>.grid-row-2 {
        grid-column: span 1;
        grid-row: auto;
        /* Reset tall card on tablet if needed, or keep span 2 rows */
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .features-grid {
        display: flex;
        flex-direction: column;
    }

    .features-grid>* {
        width: 100%;
        min-height: auto;
    }
}

/* Liquid Glass Utility (Replaces old glass-effect) */
.glass-panel {
    position: relative;
    border-radius: 24px;
    isolation: isolate;
    background: transparent;
    cursor: default;
    /* Optional edge border */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Tint, Inner Shadow, and Shine */
.glass-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    /* Behind content */
    border-radius: inherit;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0.05) 50%,
            rgba(255, 255, 255, 0.01) 100%);
    box-shadow:
        inset 0 0 15px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

/* Distortion and Blur Layer */
.glass-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    /* Behind tint layer */
    border-radius: inherit;

    /* The Core Effect */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    filter: url(#glass-distortion);
    -webkit-filter: url(#glass-distortion);

    pointer-events: none;
}

.feature-card {
    position: relative;
    border-radius: 24px;
    isolation: isolate;
    padding: 2.5rem;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);

    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
    pointer-events: none;
    transition: opacity 0.4s;
}

.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    border-radius: 24px;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    filter: url(#glass-distortion);
    -webkit-filter: url(#glass-distortion);
    pointer-events: none;
    opacity: 0.8;
    /* Tune intensity */
}

/* Spotlight integration (Optional, overlay on top of glass) */
.feature-card .spotlight-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(255, 255, 255, 0.08),
            transparent 40%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    border-radius: 24px;
}

.feature-card:hover .spotlight-overlay,
.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Ensure content is above glass layers */
.feature-card>* {
    position: relative;
    z-index: 10;
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    stroke-width: 1.5;
}

.feature-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.8rem;
    color: #fff;
    font-weight: 600;
}

.feature-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* Footer */
footer {
    padding: 5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Tablet Responsive */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    nav {
        display: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.5rem;
    }

    .side-left {
        top: 20%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .side-right {
        top: 80%;
        right: auto;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .hero.hero-split .side-left {
        left: 50% !important;
        top: 25% !important;
        transform: translate(-50%, -50%);
    }

    .hero.hero-split .side-right {
        left: 50% !important;
        top: 75% !important;
        transform: translate(-50%, -50%);
    }
}

/* Animation Utilities (Enhanced) */
.reveal {
    opacity: 0;
    transition: all 1s cubic-bezier(0.17, 0.67, 0.83, 0.67);
    will-change: transform, opacity;
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-down {
    transform: translateY(-40px);
}

.reveal-left {
    transform: translateX(40px);
}

.reveal-right {
    transform: translateX(-40px);
}

.reveal-scale {
    transform: scale(0.9);
}

.reveal.active {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* Stagger Delays */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.5s;
}

/* Keep existing fade-in for compatibility */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in.fade-in-active {
    opacity: 1;
    transform: translateY(0);
}


/* --- Visual Richness Upgrade (Appended) --- */
/* 1. Card Ambient Gradients (Subtle & Premium) */
/* Hero Card: Deep Indigo Intelligence */
.full-width-card {
    background: radial-gradient(100% 100% at 80% 80%, rgba(88, 86, 214, 0.2) 0%, rgba(0, 0, 0, 0) 70%),
        rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Secondary (Left): Efficiency Blue */
.feature-row.two-col .feature-card:nth-child(1) {
    background: radial-gradient(80% 80% at 50% 100%, rgba(0, 122, 255, 0.15) 0%, rgba(0, 0, 0, 0) 70%),
        rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Secondary (Right): Focus Orange */
.feature-row.two-col .feature-card:nth-child(2) {
    background: radial-gradient(80% 80% at 50% 100%, rgba(255, 149, 0, 0.15) 0%, rgba(0, 0, 0, 0) 70%),
        rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Tertiary: Glossy */
.small-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}

.small-card:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-5px);
}

/* 2. Realistic iPhone Mockup (Metal & Glass) */
.iphone-mockup {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 40px;
    border: 4px solid #333;
    box-shadow:
        0 0 0 2px #1a1a1a,
        /* Inner dark seal */
        0 0 0 4px #666,
        /* Outer polished metal */
        inset 0 0 20px rgba(255, 255, 255, 0.15),
        /* Bezel reflection */
        0 30px 80px rgba(0, 0, 0, 0.7);
    /* Deep ambient shadow */
    position: relative;
    overflow: hidden;
    z-index: 10;
}

/* Dynamic Island / Notch Polish */
.notch {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 26px;
    background: #000;
    border-radius: 20px;
    z-index: 20;
    box-shadow: 0 1px 2px rgba(255, 255, 255, 0.15);
}

/* Screen Placeholder: Default Wallpaper Look */
.screen-placeholder {
    width: 100%;
    height: 100%;
    /* Abstract Wallpaper Gradient representing Depth */
    background: linear-gradient(160deg, #3a3a3c 0%, #1c1c1e 50%, #000000 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
}

.screen-placeholder::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

/* --- BORDERLESS LAYOUT UPDATE (Appended) --- */
/* Remove box styling for Hero & Secondary rows to create floating immersive look */
.full-width-card,
.feature-row.two-col .feature-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
    /* Allow glows to breathe (bleeds out) */
    backdrop-filter: none !important;
}

/* Hide spotlight on borderless areas */
.full-width-card .spotlight-overlay,
.feature-row.two-col .feature-card .spotlight-overlay {
    display: none !important;
}

/* Add Atmospheric Backlight BEHIND the Phones */
.hero-mockup::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 120%;
    /* Indigo Glow for AI */
    background: radial-gradient(circle, rgba(94, 92, 230, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

/* Blue Glow for Task */
.feature-row.two-col .feature-card:nth-child(1) .secondary-mockup::before {
    content: "";
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 100%;
    background: radial-gradient(circle, rgba(10, 132, 255, 0.18) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(60px);
    z-index: -1;
    pointer-events: none;
}

/* Orange Glow for Focus */
.feature-row.two-col .feature-card:nth-child(2) .secondary-mockup::before {
    content: "";
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 159, 10, 0.18) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(60px);
    z-index: -1;
    pointer-events: none;
}

/* Adjust Text for Borderless Context */
/* Make Hero text pop more on pure black */
.horizontal-hero .text-group {
    margin-top: 4rem;
}

.horizontal-hero h3 {
    font-size: 3.5rem;
    /* Even bigger title */
    background: linear-gradient(180deg, #fff 0%, #bbb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

/* Align secondary text better */
.card-content-wrapper.vertical-centered {
    padding-top: 0;
    justify-content: flex-start;
}

.centered-text {
    margin-top: 2rem;
}

/* Tertiary Cards Matrix - Keep Minimal */
.small-card {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 24px;
}

/* --- STORYTELLING LAYOUT CSS (Zig-Zag) --- */
.features-container {
    width: 100%;
    max-width: 1100px;
    margin: 6rem auto;
    display: flex;
    flex-direction: column;
    gap: 12rem;
    /* Massive breathing space */
    padding: 0 2rem;
}

/* Common Block Styling */
.feature-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    min-height: 500px;
}

.block-content h2,
.block-content h3 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(180deg, #fff 0%, #888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.block-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    max-width: 480px;
}

/* 1. Center Hero Block */
.center-hero {
    flex-direction: column;
    text-align: center;
    gap: 4rem;
}

.center-hero h2 {
    font-size: 4.5rem;
    /* Hero Header Size */
}

.center-hero p {
    margin: 0 auto;
}

.center-stage {
    width: 80%;
    height: 600px;
    position: relative;
    margin-top: 2rem;
    /* Indigo Backlight */
}

.center-stage::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(94, 92, 230, 0.2) 0%, transparent 60%);
    filter: blur(120px);
    z-index: -1;
}

/* 2. Zig & Zag Layouts */
.zig-layout {
    flex-direction: row;
}

.zag-layout {
    flex-direction: row-reverse;
}

.block-content.side-text {
    flex: 0 0 45%;
    /* Text takes 45% */
}

.visual-stage.side-stage {
    flex: 0 0 50%;
    /* Image takes 50% */
    display: flex;
    justify-content: center;
    position: relative;
    height: 700px;
    /* Taller area for phones */
}

/* Side Backlights */
.side-stage.right::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 80%;
    background: radial-gradient(circle, rgba(10, 132, 255, 0.15) 0%, transparent 60%);
    filter: blur(80px);
    z-index: -1;
}

.side-stage.left::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 80%;
    background: radial-gradient(circle, rgba(255, 159, 10, 0.15) 0%, transparent 60%);
    filter: blur(80px);
    z-index: -1;
}

/* Icon Box */
.icon-box {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.center-hero .icon-box {
    display: none;
}

/* No icon for hero */

/* 3. Feature Matrix (Bottom) */
.feature-matrix {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 0;
    padding-top: 6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.matrix-item {
    padding: 3rem;
    background: transparent;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    /* Minimal vertical lines */
    transition: transform 0.3s ease;
}

.matrix-item:first-child {
    border-left: none;
}

.matrix-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.matrix-item h4 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    color: #fff;
}

.matrix-item p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.5);
}

.icon-box.small {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    background: transparent;
    padding: 0;
    border: none;
}

.icon-box.small svg {
    width: 36px;
    height: 36px;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {

    .block-content h2,
    .block-content h3 {
        font-size: 2.5rem;
    }

    .center-hero h2 {
        font-size: 3rem;
    }

    .center-stage {
        height: 400px;
        width: 100%;
    }

    .features-container {
        gap: 8rem;
    }
}

@media (max-width: 768px) {
    .features-container {
        gap: 6rem;
        margin-top: 4rem;
    }

    .center-hero h2 {
        font-size: 2.5rem;
    }

    .center-stage {
        height: 350px;
        width: 100%;
    }

    .zig-layout,
    .zag-layout {
        flex-direction: column !important;
        gap: 3rem;
        text-align: center;
    }

    .block-content p {
        margin: 0 auto;
    }

    .block-content.side-text {
        flex: auto;
        max-width: 100%;
    }

    .icon-box {
        margin: 0 auto 1.5rem auto;
    }

    .visual-stage.side-stage {
        height: 450px;
        width: 100%;
    }

    .feature-matrix {
        grid-template-columns: 1fr;
        padding-top: 3rem;
    }

    .matrix-item {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .matrix-item:first-child {
        border-top: none;
    }
}

/* Mockup Adjustments for New Layout */
.hero-device {
    /* Larger, wider device for hero */
    width: 360px;
    height: 720px;
    max-width: 100%;
    margin: 0 auto;
    position: relative !important;
    /* Reset absolute */
    right: auto !important;
    bottom: auto !important;
    transform: rotate(0) !important;
}

/* Adjust side phones */
.side-stage .iphone-mockup {
    width: 320px;
    height: 640px;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
}

/* --- UI VISUAL PLACEHOLDERS (Modern Windows) --- */
/* Base Window Style */
.ui-window {
    background: #0d0d0d;
    /* Pure dark base */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    /* Deep shadow */
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.4s ease;
}

.ui-window:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.7);
}

/* Window Content Area */
.window-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Removed text color/font styles as we use images now */
    background: #000;
}

.screen-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Glassy Gradient Overlay */
.glass-gradient {
    /* Looks like a dark, sophisticated screen off or empty state */
    background: linear-gradient(180deg, rgba(30, 30, 32, 1) 0%, #000 100%);
}

.glass-gradient::after {
    content: "";
    /* Top gloss */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

/* Sizes */
.hero-size {
    width: 100%;
    max-width: 900px;
    /* Wide cinematic ratio */
    height: 100%;
    margin: 0 auto;
}

/* --- VERTICAL PHONE MOCKUP (Global 1179x2556 Ratio) --- */
.vertical-size {
    width: 320px;
    /* Base width, height auto-calculated by ratio */
    aspect-ratio: 1179 / 2556;
    height: auto;
    border-radius: 46px;
    /* Match standard modern radius */
    border: 8px solid #1a1a1a;
    /* Frame border */
    /* Dynamic Island (Pseudo-element) */
}

.vertical-size::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 30px;
    background: #000;
    border-radius: 20px;
    z-index: 20;
}

.vertical-size.no-island::before {
    display: none;
}

/* Responsive Sizing */
@media (max-width: 768px) {
    .vertical-size {
        width: 280px;
    }
}

/* --- POKER HAND LAYOUT (Feature 1) --- */
.poker-hand {
    position: relative;
    width: 100%;
    height: 700px;
    /* Increased height for taller phones */
    min-height: 80vh;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
}

.iphone-card {
    width: 300px;
    aspect-ratio: 1179 / 2556;
    height: auto;
    background: #050505;
    /* Device Frame */
    border: 6px solid #222;
    border-radius: 46px;
    position: absolute;
    /* Bottom Shadow */
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    background: #050505;
    overflow: hidden;
}

/* Dynamic Island Style Notch */
.iphone-card .notch {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 96px;
    height: 28px;
    background: #000;
    border-radius: 20px;
    z-index: 10;
}

/* Glassy reflection for cards */
.iphone-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
    pointer-events: none;
    z-index: 2;
}

/* Screen Content Placeholders */
.screen-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    font-size: 0.8rem;
    font-weight: 500;
    background: #0a0a0a;
}

.active-screen {
    color: #fff;
    background: linear-gradient(180deg, #18181b 0%, #000 100%);
}

/* Stacking Logic */
.card-center {
    z-index: 10;
    transform: translateY(0) scale(1);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.8);
    border-color: #444;
    /* Highlight center card */
}

.card-left {
    z-index: 5;
    /* Fan left and tilt */
    transform: translateX(-110px) translateY(20px) rotate(-12deg) scale(0.92);
    opacity: 0.9;
    filter: brightness(0.7);
    /* Depth effect */
}

.card-right {
    z-index: 5;
    /* Fan right and tilt */
    transform: translateX(110px) translateY(20px) rotate(12deg) scale(0.92);
    opacity: 0.9;
    filter: brightness(0.7);
}

/* Hover Interaction: Semantic Fan Out */
.poker-hand:hover .card-left {
    transform: translateX(-160px) translateY(40px) rotate(-18deg) scale(0.92);
    filter: brightness(1);
    /* Light up on hover */
    opacity: 1;
}

.poker-hand:hover .card-right {
    transform: translateX(160px) translateY(40px) rotate(18deg) scale(0.92);
    filter: brightness(1);
    opacity: 1;
}

.poker-hand:hover .card-center {
    transform: translateY(-20px) scale(1.05);
    /* Lift up center */
}

/* Notch for these cards */
.poker-hand .notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 22px;
    background: #000;
    border-radius: 12px;
    z-index: 20;
    box-shadow: 0 1px 2px rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .poker-hand {
        transform: scale(0.7);
        /* Scale down entire hand on mobile */
        height: 450px;
    }
}

/* --- OVERRIDES: Wider Poker Hand --- */
.card-left {
    transform: translateX(-190px) translateY(30px) rotate(-20deg) scale(0.92) !important;
}

.card-right {
    transform: translateX(190px) translateY(30px) rotate(20deg) scale(0.92) !important;
}

.poker-hand:hover .card-left {
    transform: translateX(-260px) translateY(60px) rotate(-28deg) scale(0.92) !important;
}

.poker-hand:hover .card-right {
    transform: translateX(260px) translateY(60px) rotate(28deg) scale(0.92) !important;
}

.poker-hand:hover .card-center {
    transform: translateY(-30px) scale(1.05) !important;
}

/* --- UPDATE: Decision Stage Backlight --- */
.decision-stage.right::before {
    /* Purple/Magenta Glow for Decision Making */
    background: radial-gradient(circle, rgba(190, 50, 255, 0.22) 0%, transparent 60%) !important;
    filter: blur(100px);

    width: 130%;
}

/* --- Focus Stage Backlight --- */
.focus-stage::before {
    /* Warm Amber/Orange for Focus/Flow */
    background: radial-gradient(circle, rgba(255, 149, 0, 0.22) 0%, transparent 60%) !important;
    filter: blur(120px);
    z-index: -1;
}

/* --- Venting Duo (Dual Cards) --- */
.two-col-split {
    display: flex;
    gap: 3rem;
    align-items: stretch;
    min-height: 700px;
    margin-bottom: 0;
    /* Tight with matrix */
}

.venting-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 40px;
    padding: 4rem 2rem 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.venting-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.card-header h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    background: linear-gradient(180deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

/* Inspiration Mode - Cyan Glow */
.inspiration-mode::before {
    content: "";
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 50%;
    background: radial-gradient(circle, rgba(50, 220, 200, 0.2) 0%, transparent 70%);
    filter: blur(100px);
    pointer-events: none;
}

/* Comfort Mode - Rose Glow */
.comfort-mode::before {
    content: "";
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 50%;
    background: radial-gradient(circle, rgba(255, 60, 100, 0.2) 0%, transparent 70%);
    filter: blur(100px);
    pointer-events: none;
}

/* Mini Stage for smaller cards */
.mini-stage {
    width: 100%;
    flex: 1;
    /* Fill remaining space */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* Align top so screens hang down */
    perspective: 1000px;
}

.small-scale {
    transform: scale(0.9);
    transform-origin: top center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Responsive */
@media (max-width: 900px) {
    .two-col-split {
        flex-direction: column;
        gap: 2rem;
    }

    .venting-card {
        min-height: 600px;
        padding-top: 3rem;

    }

    /* --- SCROLL CLOCK SECTION (Time-Turning) --- */
    .scroll-clock-section {
        position: relative;
        height: 300vh;
        /* Long scroll area */
        margin-top: 5rem;
        margin-bottom: 5rem;
    }

    .sticky-stage {
        position: sticky;
        top: 0;
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: space-between;
        overflow: hidden;
        padding: 0 4rem;
    }

    /* 1. Left Text Panel */
    .text-panel {
        flex: 0 0 40%;
        height: 100%;
        position: relative;
        display: flex;
        align-items: center;
    }

    .scroll-text {
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(-40%);
        /* Start slightly lower */
        opacity: 0;
        transition: opacity 0.6s ease, transform 0.6s ease;
        pointer-events: none;
        width: 100%;
    }

    .scroll-text.active {
        opacity: 1;
        transform: translateY(-50%);
        pointer-events: auto;
    }

    .scroll-text h3 {
        font-size: 3.5rem;
        margin-bottom: 1.5rem;
        background: linear-gradient(180deg, #fff 0%, #aaa 100%);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        letter-spacing: -1px;
    }

    .scroll-text p {
        font-size: 1.4rem;
        color: rgba(255, 255, 255, 0.7);
        line-height: 1.5;
    }


    /* 2. Right Visual (Clock + UI) */
    .clock-visual {
        flex: 0 0 55%;
        position: relative;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* The Dial */
    .clock-dial {
        width: 700px;
        height: 700px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 50%;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        /* Background Glow */
        background: radial-gradient(circle, rgba(255, 255, 255, 0.02) 0%, transparent 60%);
    }

    .clock-hand {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 2px;
        height: 50%;
        background: linear-gradient(to top, rgba(255, 255, 255, 0), #fff);
        transform-origin: bottom center;
        /* Initial state 12 o'clock: rotate 0deg */
        transform: translate(-50%, -100%) rotate(0deg);
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
        z-index: 2;
        will-change: transform;
    }

    .clock-hand::after {
        /* Dot at center */
        content: "";
        position: absolute;
        bottom: -4px;
        left: -3px;
        width: 8px;
        height: 8px;
        background: #fff;
        border-radius: 50%;
    }

    .dial-mark {
        position: absolute;
        width: 6px;
        height: 6px;
        background: rgba(255, 255, 255, 0.4);
        border-radius: 50%;
    }

    .mark-12 {
        top: 0px;
        left: 50%;
        transform: translateX(-50%);
    }

    .mark-9 {
        left: 0px;
        top: 50%;
        transform: translateY(-50%);
    }

    /* UI Stack */
    .clock-ui-stack {
        display: grid;
        place-items: center;
        width: 100%;
        height: 100%;
        position: relative;
        z-index: 5;
    }

    .clock-ui-stack .ui-window {
        grid-area: 1 / 1;
        transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    /* Responsive */
    @media (max-width: 900px) {
        .sticky-stage {
            flex-direction: column;
            justify-content: center;
            padding: 2rem;
        }

        .text-panel {
            flex: 0 0 30%;
            width: 100%;
            text-align: center;
        }

        .scroll-text {
            left: 50%;
            transform: translate(-50%, -40%);
        }

        .scroll-text.active {
            transform: translate(-50%, -50%);
        }

        .clock-visual {
            flex: 0 0 60%;
        }

        .clock-dial {
            width: 400px;
            height: 400px;
        }
    }

    /* --- SCROLL CAROUSEL (Simple 2-Slide) --- */
    .scroll-carousel-section {
        position: relative;
        height: 200vh;
        /* Two screens worth of scroll */
        margin: 8rem 0;
    }

    .carousel-sticky {
        position: sticky;
        top: 0;
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 4rem;
        max-width: 1200px;
        margin: 0 auto;
    }

    /* Left: Text Area */
    .carousel-text {
        flex: 0 0 45%;
        position: relative;
        min-height: 200px;
    }

    .carousel-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.5s ease, transform 0.5s ease;
        pointer-events: none;
    }

    .carousel-slide.active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        position: relative;
        /* Keep flow for first active */
    }

    .carousel-slide h2 {
        font-size: 3.5rem;
        margin-bottom: 1.5rem;
        background: linear-gradient(180deg, #fff 0%, #888 100%);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .carousel-slide p {
        font-size: 1.3rem;
        color: rgba(255, 255, 255, 0.65);
        line-height: 1.6;
    }

    /* Right: Image Area */
    .carousel-image {
        flex: 0 0 45%;
        position: relative;
        height: 700px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .carousel-image .ui-window {
        position: absolute;
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    #slide-img-2 {
        transform: scale(0.95);
    }

    /* Responsive */
    @media (max-width: 900px) {
        .carousel-sticky {
            flex-direction: column;
            text-align: center;
            padding: 2rem;
        }

        .carousel-text {
            flex: none;
            width: 100%;
            margin-bottom: 2rem;
        }

        .carousel-image {
            flex: none;
            width: 100%;
            height: 500px;
        }
    }

    /* --- Venting Glows --- */
    .inspiration-glow::before {
        background: radial-gradient(circle, rgba(50, 220, 200, 0.18) 0%, transparent 60%) !important;
    }

    .comfort-glow::before {
        background: radial-gradient(circle, rgba(255, 80, 120, 0.18) 0%, transparent 60%) !important;
    }
}

/* --- SCROLL SNAP CAROUSEL --- */
.snap-carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.snap-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
    -ms-overflow-style: none;
    /* Hide scrollbar IE/Edge */
}

.snap-carousel::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.snap-frame {
    flex: 0 0 100%;
    width: 100%;
    min-height: 80vh;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 0;
}

.carousel-viewport {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4rem;
}

.carousel-frame {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
    will-change: transform, opacity;
}

#frame-1 {
    transform: translateY(-50%) translateX(0);
    opacity: 1;
}

#frame-2 {
    transform: translateY(-50%) translateX(100%);
    opacity: 0;
}

.frame-text {
    flex: 0 0 45%;
}

.frame-text h3 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(180deg, #fff 0%, #888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.frame-text p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
}

.frame-image {
    flex: 0 0 45%;
    height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.frame-image::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 80%;
    filter: blur(80px);
    z-index: -1;
}

/* Carousel Dot Indicators */
.carousel-dots {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: background 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.dot.active {
    background: #fff;
    transform: scale(1.2);
}

@media (max-width: 900px) {
    .carousel-viewport {
        flex-direction: column;
        padding: 2rem;
    }

    .carousel-frame {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .frame-text,
    .frame-image {
        flex: none;
        width: 100%;
    }

    .frame-image {
        height: 450px;
    }
}

/* --- GROWTH SECTION (Text Only Features) --- */
.growth-section {
    max-width: 1100px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

.growth-header {
    text-align: center;
    margin-bottom: 5rem;
}

.growth-header h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(180deg, #fff 0%, #888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.growth-header p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.6);
}

.growth-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.growth-item {
    text-align: center;
    padding: 3rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.02);
    transition: transform 0.3s ease, background 0.3s ease;
}

.growth-item:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

/* --- HORIZONTAL PHONE MOCKUP (Global 2556x1179 Ratio) --- */
.hero-size {
    width: 580px;
    /* Base width */
    aspect-ratio: 2556 / 1179;
    height: auto;
    border-radius: 46px;
    border: 8px solid #1a1a1a;
    overflow: hidden;
    /* Ensure image stays within border radius */
}

/* Horizontal Dynamic Island */
.hero-size::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 100px;
    background: #000;
    border-radius: 20px;
    z-index: 20;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-size {
        width: 100%;
        max-width: 400px;
    }
}

.growth-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 2rem;
    color: rgba(255, 255, 255, 0.8);
}

.growth-icon svg {
    width: 100%;
    height: 100%;
}

.growth-item h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #fff;
}

.growth-item p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

@media (max-width: 900px) {
    .growth-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .growth-header h2 {
        font-size: 2.5rem;
    }
}

/* --- MODERN FOOTER --- */
footer {
    background: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 6rem 0 2rem;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4rem;
}

.footer-brand {
    flex: 2;
    min-width: 250px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    max-width: 300px;
    margin-bottom: 2rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #fff;
    color: #000;
    transform: translateY(-3px);
}

.footer-links {
    flex: 1;
    min-width: 150px;
}

.footer-links h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* --- COMPREHENSIVE MOBILE RESPONSIVE PATCH --- */
@media (max-width: 768px) {

    /* Global Typography & Spacing */
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2rem;
    }

    p {
        font-size: 1rem;
    }

    .features {
        padding: 4rem 0;
    }

    /* Header Mobile Adjustments */
    header .header-btn {
        display: none;
        /* Hide download button in header on small screens to save space */
    }

    nav ul {
        gap: 1.5rem;
        padding: 0.5rem 1.2rem;
    }

    nav a {
        font-size: 0.85rem;
    }

    /* Hero Section Mobile Fix */
    .hero-side-titles h1 {
        font-size: 1.7rem;
        /* Compact size */
        width: 38%;
        /* Narrower to prevent horizontal conflict */
        top: 50% !important;
        /* Back to vertical center */
    }

    .side-left {
        left: 2% !important;
    }

    .side-right {
        right: 2% !important;
    }

    .hero-description {
        top: 84% !important;
        font-size: 0.9rem;
        width: 88%;
        line-height: 1.4;
    }

    .badge {
        top: 12% !important;
        /* Move to TOP area, below header */
        transform: translateX(-50%) !important;
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
        white-space: nowrap;
    }

    /* Block 1: Poker Hand Resizing */
    .poker-hand {
        height: 500px;
        min-height: auto;
    }

    .iphone-card {
        width: 220px;
        /* Smaller cards on phone */
    }

    .card-left {
        transform: translateX(-15%) rotate(-10deg) scale(0.9);
    }

    .card-right {
        transform: translateX(15%) rotate(10deg) scale(0.9);
    }

    /* Block 2 & Others: Zig Layouts */
    .zig-layout {
        flex-direction: column !important;
        text-align: center;
        gap: 3rem;
    }

    .block-content.side-text {
        padding: 0 1rem;
        max-width: 100%;
    }

    .visual-stage.side-stage {
        width: 100%;
        padding: 2rem 1rem;
    }

    /* Block 3: Focus Mode Landscape Optimization */
    .center-stage .hero-size {
        width: 500px !important;
        /* Fixed large width, no shrinking */
        min-width: 500px !important;
        transform: scale(0.85);
        /* Optional slightly smaller scale but not responsive width */
        margin: -1rem auto !important;
        /* Negative margin to pull layout tighter */
        aspect-ratio: 2556 / 1179;
        border-width: 6px !important;
        border-radius: 28px !important;
        flex-shrink: 0;
        /* Important: prevents parent flex from shrinking it */
    }

    .visual-stage.center-stage {
        overflow: hidden;
        /* Crop the overlapping parts */
        width: 100vw;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .center-stage .hero-size::before {
        width: 14px !important;
        height: 60px !important;
        left: 10px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        border-radius: 6px !important;
        background: #000;
    }

    .center-stage .hero-size .screen-image {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }

    /* Block 4: Carousel Mobile Optimization */
    .snap-frame {
        flex-direction: column !important;
        text-align: center;
        padding: 3rem 1rem !important;
        /* Balanced padding */
        display: flex !important;
        gap: 2rem;
    }

    .snap-frame .frame-text {
        max-width: 100%;
        order: 1;
        padding: 0 1rem;
    }

    .snap-frame .frame-image {
        order: 2;
        width: 100%;
        height: auto;
        display: flex;
        justify-content: center;
        margin-top: 1rem;
    }

    .snap-frame .vertical-size {
        width: 200px;
        /* Slimmer look on mobile */
        margin: 0 auto;
    }

    .snap-frame .vertical-size img {
        object-fit: cover;
    }

    /* Block 5: Growth Grid */
    .growth-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .growth-header h2 {
        font-size: 2rem;
    }

    /* Download Section */
    #download {
        padding: 4rem 1rem 6rem !important;
        min-height: auto !important;
    }

    #download .download-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
}

/* Extra Small Screens (iPhone SE, etc.) */
@media (max-width: 380px) {
    h1 {
        font-size: 2.2rem;
    }

    .iphone-card {
        width: 180px;
    }

    .hero-side-titles h1 {
        font-size: 1.5rem;
    }
}