/* =========================================
   CSS Variables & Tokens
   ========================================= */
:root {
    /* Colors */
    --color-primary: #059669; /* Emerald Green */
    --color-primary-hover: #047857;
    --color-bg: #ffffff;
    --color-bg-alt: #f8fafc; /* Soft gray for cards/sections */
    --color-text-main: #1e293b; /* Charcoal for headings */
    --color-text-muted: #475569; /* Medium gray for body */
    --color-border: #e2e8f0;
    --color-faq-bg: #f4fdf8;
    --color-faq-bg-active: #eafaf1;
    --color-navbar-bg: rgba(255, 255, 255, 0.7);
    --color-navbar-bg-scrolled: rgba(255, 255, 255, 0.95);
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Layout */
    --container-max-width: 1200px;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
    --spacing-xxl: 8rem;
    
    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
}

[data-theme="dark"] {
    --color-bg: #0f172a; /* Slate 900 */
    --color-bg-alt: #1e293b; /* Slate 800 */
    --color-text-main: #f8fafc; /* Slate 50 */
    --color-text-muted: #cbd5e1; /* Slate 300 */
    --color-border: #334155; /* Slate 700 */
    --color-primary: #10b981; /* Lighter emerald for dark mode */
    --color-faq-bg: #1e293b; /* Slate 800 */
    --color-faq-bg-active: #334155; /* Slate 700 */
    --color-navbar-bg: rgba(15, 23, 42, 0.7);
    --color-navbar-bg-scrolled: rgba(15, 23, 42, 0.95);
}

/* =========================================
   Reset & Base Styles
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-muted);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.site-wrapper {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text-main);
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* =========================================
   Typography & Utilities
   ========================================= */
em {
    font-style: italic;
    color: var(--color-primary);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: rgba(5, 150, 105, 0.1);
    color: var(--color-primary);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--spacing-lg);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    transition: all var(--transition-normal);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: white;
    color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-bg-alt);
    transform: translateY(-2px);
}

/* =========================================
   Navbar
   ========================================= */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    z-index: 1000;
    background-color: var(--color-navbar-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    padding: 0.5rem 0.75rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background-color: var(--color-navbar-bg-scrolled);
    box-shadow: var(--shadow-md);
}

.navbar .nav-container {
    width: auto;
    padding: 0;
    gap: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-main);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav-link {
    font-weight: 500;
    color: var(--color-text-main);
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-primary);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--color-text-main);
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--color-bg);
    padding: var(--spacing-md);
    flex-direction: column;
    gap: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    margin-top: 0.5rem;
}

.mobile-menu.open {
    display: flex;
}

.mobile-nav-link {
    font-weight: 500;
    color: var(--color-text-main);
    padding: var(--spacing-sm);
    text-align: center;
    transition: color var(--transition-fast);
}

.mobile-nav-link:hover {
    color: var(--color-primary);
}

/* =========================================
   About & How it Works Sections
   ========================================= */
.about-section {
    padding: var(--spacing-xxl) 0 var(--spacing-xl);
}

.mission-wrapper {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    position: relative;
}

.mission-wrapper .badge {
    margin-bottom: var(--spacing-sm);
}

.about-section h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
    letter-spacing: -1px;
}

.mission-content {
    position: relative;
}

.sanity-icon {
    position: absolute;
    left: -180px;
    width: 140px;
    height: 140px;
    opacity: 0.9;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.15));
}

.sanity-icon-bottom {
    top: 50%;
    transform: translateY(-50%) rotate(-15deg);
    animation: floatIconBottom 6s ease-in-out infinite;
}

.sanity-icon-top {
    top: -120%; /* Position it above the first one */
    transform: rotate(165deg); /* Upside down (180 - 15) */
    animation: floatIconTop 6s ease-in-out infinite 1s; /* Slight delay for staggered floating */
}

@keyframes floatIconBottom {
    0%, 100% { transform: translateY(-50%) rotate(-15deg); }
    50% { transform: translateY(-55%) rotate(-5deg); }
}

@keyframes floatIconTop {
    0%, 100% { transform: translateY(0) rotate(165deg); }
    50% { transform: translateY(-10px) rotate(175deg); }
}

/* Hide the icon on small screens so it doesn't overlap text */
@media (max-width: 1100px) {
    .sanity-icon {
        display: none;
    }
}

.about-section .lead-text {
    font-size: 1.35rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.6;
}

.how-it-works-section {
    padding: var(--spacing-xl) 0 var(--spacing-xxl);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.step-card {
    background: #f4f7fb; /* Soft light blue/gray matching the reference */
    padding: var(--spacing-xl);
    padding-bottom: var(--spacing-md);
    border-radius: 24px;
    border: 1px solid rgba(0,0,0,0.03);
    text-align: left;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.step-card-title {
    font-size: 1.35rem;
    color: var(--color-text);
    margin-bottom: var(--spacing-lg);
    font-weight: 600;
}

.step-card-graphic {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    position: relative;
    margin-bottom: var(--spacing-md);
}

/* Custom Animations for How it Works Cards */

/* Graphic 1: Connect Apps */
.graphic-connect {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.connect-node {
    position: absolute;
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}
.connect-node img { width: 32px; height: 32px; object-fit: contain; }
.connect-node.center {
    width: 64px; height: 64px;
    z-index: 2;
    background: var(--color-primary);
    color: white;
    font-size: 24px;
    font-weight: bold;
    border-radius: 16px;
}
.orbit-1 { animation: orbit1 6s linear infinite; }
.orbit-2 { animation: orbit2 6s linear infinite -2s; }
.orbit-3 { animation: orbit3 6s linear infinite -4s; }

@keyframes orbit1 { 0% { transform: rotate(0deg) translateX(70px) rotate(0deg); } 100% { transform: rotate(360deg) translateX(70px) rotate(-360deg); } }
@keyframes orbit2 { 0% { transform: rotate(0deg) translateX(70px) rotate(0deg); } 100% { transform: rotate(360deg) translateX(70px) rotate(-360deg); } }
@keyframes orbit3 { 0% { transform: rotate(0deg) translateX(70px) rotate(0deg); } 100% { transform: rotate(360deg) translateX(70px) rotate(-360deg); } }

/* Graphic 2: AI Context */
.graphic-ai {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
}
.ai-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px dashed var(--color-primary);
    opacity: 0.3;
    animation: spin 8s linear infinite;
}
.ai-ring.inner {
    width: 70%;
    height: 70%;
    border: 2px solid rgba(13, 148, 136, 0.2);
    animation: spin 4s linear infinite reverse;
}
.ai-bubble {
    width: 72px;
    height: 72px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    animation: pulse 2s ease-in-out infinite;
    z-index: 2;
}
@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }

/* Graphic 3: Review & Send */
.graphic-send {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.send-plane {
    background: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    z-index: 2;
    animation: floatPlane 3s ease-in-out infinite;
}
.send-plane svg {
    margin-right: 4px;
    margin-top: 4px;
}
.send-ripple {
    position: absolute;
    width: 80px;
    height: 80px;
    background: var(--color-primary);
    border-radius: 50%;
    opacity: 0;
    animation: ripple 3s ease-out infinite;
}
@keyframes floatPlane { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes ripple { 0% { transform: scale(1); opacity: 0.4; } 100% { transform: scale(2.2); opacity: 0; } }

.step-card-footer {
    background: white;
    border-radius: 16px;
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    position: relative;
    z-index: 2;
}

.step-card-icon {
    width: 44px;
    height: 44px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.step-card-footer p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.5;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Theme Toggle */
.theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all var(--transition-fast);
}
.theme-toggle:hover {
    color: var(--color-primary);
    background: var(--color-bg-alt);
}
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="dark"] .sun-icon { display: block !important; }

/* =========================================
   Hero Section
   ========================================= */
.hero {
    position: relative;
    padding-top: calc(var(--spacing-xxl) + 60px);
    padding-bottom: var(--spacing-lg);
    min-height: clamp(680px, 80vh, 900px);
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Give the scene slightly more room */
    gap: var(--spacing-xl);
    align-items: flex-start; /* Snap both columns strictly to the top edge */
    max-width: 1200px;
    margin: 0 auto;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
}

.hero-text-col {
    max-width: 500px;
    margin: 0;
    position: relative;
    z-index: 999; /* Absolutely ensure text is on top if they intersect */
    margin-top: 0; /* Remove artificial nudging so it aligns perfectly with the scene */
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    letter-spacing: -1px;
    margin-bottom: var(--spacing-lg);
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xl);
    color: var(--color-text-muted);
}

.waitlist-form {
    display: flex;
    gap: var(--spacing-sm);
    background: white;
    padding: 0.5rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    margin-bottom: var(--spacing-md);
}

.input-email {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border-radius: var(--radius-full);
    background: transparent;
}

.form-status {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    height: 20px;
}

/* =========================================
   Hero 3D Scene
   ========================================= */
.hero-scene {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 600px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    /* This perspective context applies depth to the whole scene */
    perspective: 1200px;
}

/* Layering containers */
.icon-trail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.icon-trail-behind {
    z-index: 1;
}

.icon-trail-front {
    z-index: 20;
}

@keyframes floatPhone {
    0%, 100% { transform: translateY(-30px); }
    50% { transform: translateY(-40px); }
}

.hero-phone-wrapper {
    position: relative;
    z-index: 10;
    transform: translateY(-30px);
    animation: floatPhone 6s ease-in-out infinite;
}

/* Individual icons — Premium 3D */
.app-icon {
    position: absolute;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Soft premium shadow */
    box-shadow:
        0 12px 30px rgba(0,0,0,0.12),
        0 2px 6px rgba(0,0,0,0.08),
        inset 0 1px 0 rgba(255,255,255,0.8);
    transform-style: preserve-3d;
    will-change: transform;
    opacity: 0; /* Handled by JS fade in */
}

.app-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.iphone {
    position: relative;
    width: 320px;
    height: 650px;
    /* Pure black glass screen bezel */
    background: #000000;
    border-radius: 54px;
    padding: 14px;
    /* Realistic metallic frame and deep shadows */
    box-shadow:
        0 0 0 2px #444, /* Inner rim */
        0 0 0 4px #777, /* Light catch */
        0 0 0 5px #222, /* Outer rim */
        -10px 15px 30px rgba(0,0,0,0.4), /* Core drop shadow */
        -25px 35px 60px rgba(0,0,0,0.25); /* Deep shadow */
    /* Base transform, will be overridden dynamically by JS */
    transform: rotateY(-12deg) rotateX(4deg);
    /* Faster transition for responsive mouse tracking */
    transition: transform 0.15s ease-out;
    transform-style: preserve-3d;
    will-change: transform;
}

/* Hardware buttons */
.iphone-buttons {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    border-radius: 54px;
}

.iphone-buttons > div {
    position: absolute;
    background: linear-gradient(to right, #444, #222);
    border-left: 1px solid #777; /* Highlight */
}

/* Left side buttons */
.btn-action { left: -7px; top: 120px; width: 7px; height: 26px; border-radius: 4px 0 0 4px; }
.btn-vol-up { left: -7px; top: 170px; width: 7px; height: 50px; border-radius: 4px 0 0 4px; }
.btn-vol-down { left: -7px; top: 235px; width: 7px; height: 50px; border-radius: 4px 0 0 4px; }

/* Right side button */
.btn-power { 
    right: -7px; top: 180px; width: 7px; height: 75px; 
    border-radius: 0 4px 4px 0; 
    border-left: none;
    border-right: 1px solid #777;
    background: linear-gradient(to left, #444, #222);
}

.iphone-screen {
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.iphone-glare {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: linear-gradient(105deg, rgba(255,255,255,0.0) 30%, rgba(255,255,255,0.08) 40%, rgba(255,255,255,0.0) 50%);
    pointer-events: none;
    z-index: 50;
    transform: translate(-20%, -20%);
}

/* Dynamic Island - iPhone 17 Pro (smaller, more compact) */
.dynamic-island {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 28px;
    background: #000000;
    border-radius: 16px;
    z-index: 20;
}

/* Status bar */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 28px 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: -apple-system, 'SF Pro Text', system-ui, sans-serif;
    color: #000;
    z-index: 10;
}

.status-time {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.2px;
}

.status-icons {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Phone body content */
.phone-body {
    padding: 8px 16px;
    flex: 1;
    overflow: hidden;
}

.phone-title {
    font-size: 1.15rem;
    margin-bottom: 2px;
    color: #000;
    font-family: -apple-system, 'SF Pro Display', system-ui, sans-serif;
    font-weight: 700;
}

.phone-subtitle {
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 12px;
}

.phone-btn {
    width: 100%;
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 11px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 10px;
    cursor: pointer;
    font-family: -apple-system, system-ui, sans-serif;
}

.phone-search input {
    width: 100%;
    padding: 9px 14px;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    background: #f9f9f9;
    margin-bottom: 10px;
    font-size: 0.8rem;
    font-family: -apple-system, system-ui, sans-serif;
    color: #999;
    outline: none;
}

.phone-filters {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 0.7rem;
    font-family: -apple-system, system-ui, sans-serif;
}

.phone-filters span {
    padding: 4px 10px;
    border-radius: 12px;
    background: #f1f1f1;
    white-space: nowrap;
}

.phone-filters span.active {
    background: #e0f2fe;
    color: #0284c7;
    font-weight: 600;
}

.phone-filters .dot-red {
    background: none;
    padding: 0 0 0 6px;
    color: #e11d48;
    font-size: 8px;
}

.phone-filters .dot-blue {
    background: none;
    padding: 0 0 0 6px;
    color: #1877F2;
    font-size: 8px;
}

/* Tabs */
.phone-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.phone-tabs .tab {
    padding: 6px 14px;
    font-size: 0.72rem;
    font-weight: 500;
    color: #999;
    font-family: -apple-system, system-ui, sans-serif;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

.phone-tabs .tab.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    font-weight: 600;
}

/* Chat list */
.phone-chat-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-item .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    font-size: 0.8rem;
    font-family: -apple-system, system-ui, sans-serif;
}

.chat-info {
    flex: 1;
    overflow: hidden;
}

.chat-info h4 {
    font-size: 0.78rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #111;
    font-family: -apple-system, system-ui, sans-serif;
    font-weight: 600;
}

.chat-email {
    font-weight: 400;
    color: #999;
    font-size: 0.65rem;
}

.chat-info p {
    font-size: 0.68rem;
    color: #888;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-time {
    font-size: 0.6rem;
    color: #bbb;
    flex-shrink: 0;
}

/* Bottom nav */
.phone-nav {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    padding: 6px 8px 4px;
    background: white;
    border-top: 1px solid #f0f0f0;
    font-size: 0.55rem;
    text-align: center;
    color: #c0c0c0;
    font-family: -apple-system, system-ui, sans-serif;
}

.phone-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.phone-nav .nav-item.active {
    color: var(--color-primary);
}

.phone-nav .fab-btn {
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transform: translateY(-8px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
}

/* Home indicator */
.home-indicator {
    width: 134px;
    height: 5px;
    background: #000;
    border-radius: 100px;
    margin: 4px auto 8px;
    opacity: 0.2;
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: calc(var(--spacing-xxl) + 40px);
        gap: 0;
    }
    .hero-text-col {
        margin: 0 auto;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-scene {
        justify-content: center;
        min-height: 400px;
        margin-top: 2rem;
    }
    .icon-trail {
        display: none; /* Hide 3D icons on mobile to prevent overflow/performance issues */
    }
}

@media (max-width: 400px) {
    .iphone {
        transform: scale(0.9) rotateY(-12deg) rotateX(4deg) !important;
    }
}

/* =========================================
   Feature Sections (Kinso-style)
   ========================================= */
.feature-section {
    padding: var(--spacing-xxl) 0;
    background-color: var(--color-bg);
}

.feature-section.alt {
    background-color: var(--color-bg-alt);
}

.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.feature-block.reverse {
    direction: rtl;
}

.feature-block.reverse > * {
    direction: ltr;
}

.feature-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--color-primary);
}

.feature-heading {
    font-size: 2.25rem;
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
}

.feature-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-muted);
}

/* Feature Mockup Cards */
.feature-mockup {
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow:
        0 4px 6px rgba(0,0,0,0.04),
        0 10px 24px rgba(0,0,0,0.06);
    border: 1px solid #eee;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Draft Response Mockup */
.mock-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.mock-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.mock-avatar.small {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
}

.mock-msg-content {
    min-width: 0; /* Prevents flex blowout */
    flex: 1;
}

.mock-msg-content strong {
    font-size: 0.9rem;
    color: #111;
}

.mock-platform {
    font-size: 0.75rem;
}

.mock-subject {
    font-size: 0.8rem;
    color: #666;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mock-draft-bubble {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
}

.mock-draft-header {
    margin-bottom: 12px;
}

.draft-indicator {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary);
}

.mock-draft-bubble p {
    font-size: 0.85rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 6px;
}

.mock-sign {
    font-weight: 500;
    margin-top: 8px;
}

.mock-toolbar {
    display: flex;
    gap: 16px;
    font-size: 1.1rem;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

/* Search Mockup */
.mock-search-result {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0fdf4;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 16px;
}

.search-icon {
    font-size: 1.2rem;
}

.search-query {
    font-weight: 600;
    font-size: 0.9rem;
    color: #111;
}

.mock-search-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    border-left: 3px solid var(--color-primary);
}

.mock-search-card strong {
    font-size: 0.85rem;
    color: #111;
}

.mock-search-card p {
    font-size: 0.82rem;
    color: #555;
    margin-top: 4px;
}

.mock-search-thread {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 12px;
}

.mock-search-thread strong {
    font-size: 0.85rem;
    color: #111;
    display: block;
}

.mock-search-thread p {
    font-size: 0.78rem;
    color: #666;
    margin-top: 2px;
}

/* Assistant Mockup */
.mock-assistant-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 20px;
}

.mock-priority {
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}

.mock-priority:last-child {
    border-bottom: none;
}

.priority-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.mock-priority strong {
    display: block;
    font-size: 0.9rem;
    color: #111;
    margin-bottom: 2px;
}

.mock-priority p {
    font-size: 0.8rem;
    color: #888;
}

@media (max-width: 768px) {
    .feature-block,
    .feature-block.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }
}

/* =========================================
   CTA Section
   ========================================= */
.cta {
    padding: var(--spacing-xxl) 0;
    background-color: var(--color-primary);
    color: white;
    text-align: center;
}

.cta-title {
    color: white;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.cta-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xl);
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background-color: var(--color-bg-alt);
    padding: var(--spacing-xxl) 0 var(--spacing-xl);
    border-top: 1px solid var(--color-border);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xxl);
}

.footer-brand-col {
    max-width: 300px;
}

.footer-brand-col .logo {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-sm);
    display: inline-block;
}

.footer-tagline {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.5;
}

.footer-links-grid {
    display: flex;
    gap: calc(var(--spacing-xl) * 2);
    flex-wrap: wrap;
}

.footer-link-group h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
}

.footer-link-group a {
    display: block;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-sm);
    font-size: 0.9rem;
}

.footer-link-group a:hover {
    color: var(--color-primary);
}

.footer-social-blocks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xxl);
}

.social-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.social-block:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.social-block img {
    width: 24px;
    height: 24px;
    opacity: 0.8;
    transition: opacity var(--transition-normal);
}

.social-block:hover img {
    opacity: 1;
}

.social-block span {
    font-weight: 500;
    color: var(--color-text);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--color-border);
    padding-top: var(--spacing-xl);
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.footer-email {
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.875rem;
}

.footer-email:hover {
    color: var(--color-primary);
}

/* =========================================
   Animations & Responsive
   ========================================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}


@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .feature-mockup {
        padding: 20px;
    }

    .waitlist-form {
        flex-direction: column;
        background: transparent;
        box-shadow: none;
        border: none;
    }
    
    .input-email {
        background: white;
        border: 1px solid var(--color-border);
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .navbar {
        width: 95%;
        padding: 0.5rem;
    }
    
    .navbar .nav-container {
        gap: 1rem;
    }
    
    .nav-links {
        gap: var(--spacing-sm);
    }
    
    .nav-link {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }


}

/* =========================================
   FAQ Section
   ========================================= */
.faq-section {
    padding: var(--spacing-xxl) 0;
    background: white;
}
.faq-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--spacing-xxl);
    align-items: start;
}
.faq-left {
    position: sticky;
    top: 120px;
}
.faq-title {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
}
.faq-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-xl);
    max-width: 400px;
}
.faq-graphic {
    margin-top: var(--spacing-xl);
    animation: floatPhone 6s ease-in-out infinite;
}
.faq-icon-3d {
    width: 380px;
    height: 380px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));
    transform: translateX(-20px);
}
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}
.faq-item {
    background: var(--color-faq-bg);
    border-radius: 16px;
    overflow: hidden;
    transition: background 0.3s ease;
}
.faq-item.active {
    background: var(--color-faq-bg-active);
}
.faq-question {
    width: 100%;
    text-align: left;
    padding: var(--spacing-md) var(--spacing-lg);
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text-main);
    font-family: var(--font-body);
}
.faq-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}
.faq-answer-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item.active .faq-answer-wrapper {
    grid-template-rows: 1fr;
}
.faq-answer {
    overflow: hidden;
}
.faq-answer p {
    padding: 0 var(--spacing-lg) var(--spacing-md) var(--spacing-lg);
    margin: 0;
    color: var(--color-text-muted);
    line-height: 1.6;
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .faq-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    .faq-left {
        position: relative;
        top: 0;
        text-align: center;
    }
    .faq-subtitle {
        margin: 0 auto var(--spacing-xl) auto;
    }
    .faq-graphic {
        display: none;
    }
}

/* =========================================
   Lenis Smooth Scrolling Base CSS
   ========================================= */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-scrolling iframe {
  pointer-events: none;
}
