/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-deep: #0A0E17;
    --bg-base: #0F1420;
    --bg-card: #151B2B;
    --bg-card-hover: #1A2235;
    --bg-elevated: #1E2640;
    --text-primary: #F0F2F5;
    --text-secondary: #8A92A6;
    --text-tertiary: #525B70;
    --blue: #025BFF;
    --blue-glow: rgba(2, 91, 255, 0.15);
    --blue-soft: #3580FF;
    --green: #4ADE80;
    --green-glow: rgba(74, 222, 128, 0.15);
    --green-soft: #6EE7A0;
    --teal: #2DD4BF;
    --teal-glow: rgba(45, 212, 191, 0.15);
    --teal-soft: #5EEAD4;
    --border: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'Outfit', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); background: var(--bg-deep); color: var(--text-primary); line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }

/* ===== GRAIN ===== */
body::before {
    content: '';
    position: fixed; inset: 0; z-index: 0; opacity: 0.03; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 256px;
}
.hero-grain { display: none; }

/* ===== NAV ===== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 0 2rem; transition: all 0.4s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(10, 14, 23, 0.85); backdrop-filter: blur(20px) saturate(1.2); -webkit-backdrop-filter: blur(20px) saturate(1.2); border-bottom-color: var(--border); }
.nav-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo { display: flex; align-items: baseline; gap: 0.35rem; z-index: 101; }
.logo-svg { height: 24px; width: auto; }
.logo-basic { font-family: var(--font-display); font-size: 1.55rem; font-weight: 400; letter-spacing: -0.01em; color: var(--text-primary); }
.logo-apps { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.15em; color: #025BFF; }
.nav-links { display: flex; gap: 2.5rem; }
.nav-links a { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.05em; color: #025BFF; transition: color 0.3s; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px; background: var(--text-primary); transition: width 0.3s var(--ease-out); }
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }
.nav-menu-btn { display: none; flex-direction: column; gap: 6px; background: none; border: none; cursor: pointer; padding: 8px; z-index: 101; }
.nav-menu-btn span { display: block; width: 24px; height: 1.5px; background: var(--text-primary); transition: transform 0.3s var(--ease-out), opacity 0.3s; }
.nav-menu-btn.active span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-menu-btn.active span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.mobile-menu { position: fixed; inset: 0; z-index: 99; background: rgba(10, 14, 23, 0.97); backdrop-filter: blur(40px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem; opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease-out); }
.mobile-menu.active { opacity: 1; pointer-events: all; }
.mobile-menu-link { font-family: var(--font-display); font-size: 2.5rem; color: var(--text-secondary); transition: color 0.3s, transform 0.3s; }
.mobile-menu-link:hover { color: var(--text-primary); transform: translateX(8px); }

/* ===== HERO ===== */
.hero { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8rem 2rem 4rem; overflow: visible; }
#checkbook { padding-top: 2rem; overflow: visible; }
.hero-glow {
    position: absolute;
    top: -30%;
    left: 0;
    right: 0;
    height: 140%;
    background:
        radial-gradient(ellipse 60% 50% at 30% 10%, rgba(88, 28, 135, 0.25), transparent 70%),
        radial-gradient(ellipse 50% 40% at 50% 5%, rgba(45, 212, 191, 0.2), transparent 60%),
        radial-gradient(ellipse 50% 45% at 75% 10%, rgba(2, 91, 255, 0.2), transparent 65%);
    pointer-events: none;
}
.hero-content { max-width: 820px; text-align: center; position: relative; z-index: 2; }
.hero-eyebrow { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 2.5rem; }
.eyebrow-line { display: block; width: 40px; height: 1px; background: var(--text-tertiary); }
.eyebrow-text { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-tertiary); }
.hero-title { font-family: var(--font-display); font-weight: 400; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 1.75rem; }
.hero-title span { display: block; font-size: clamp(2.8rem, 6vw, 4.5rem); color: var(--text-primary); }
.hero-title span:nth-child(2) em { font-style: italic; background: linear-gradient(135deg, var(--blue-soft), var(--teal)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-title span:last-child { color: var(--text-primary); }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.2rem); font-weight: 300; color: var(--text-secondary); max-width: 540px; margin: 0 auto 3rem; line-height: 1.7; }
.hero-apps-bar { display: flex; align-items: center; justify-content: center; gap: 0.75rem; flex-wrap: wrap; }
.hero-app-chip { display: flex; align-items: center; gap: 0.6rem; padding: 0.65rem 1.3rem; border-radius: 100px; border: 1px solid var(--border-light); background: rgba(255, 255, 255, 0.03); font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500; color: var(--text-secondary); transition: all 0.3s var(--ease-out); }
.hero-app-chip:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.15); color: var(--text-primary); transform: translateY(-2px); }
.chip-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
[data-accent="blue"] .chip-dot { background: var(--blue); box-shadow: 0 0 8px var(--blue-glow); }
[data-accent="green"] .chip-dot { background: var(--green); box-shadow: 0 0 8px var(--green-glow); }
[data-accent="teal"] .chip-dot { background: var(--teal); box-shadow: 0 0 8px var(--teal-glow); }

.hero-scroll-indicator { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2; }
.scroll-line { width: 1px; height: 48px; background: linear-gradient(to bottom, var(--text-tertiary), transparent); animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0%, 100% { opacity: 0.3; transform: scaleY(1); } 50% { opacity: 0.7; transform: scaleY(1.2); } }

/* ===== HERO FLOATING PHONES ===== */
.hero-phones {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 4rem;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    perspective: 1200px;
}

.hero-phone {
    animation: heroFloat 6s ease-in-out infinite;
}

.hero-phone-1 { animation-delay: 0s; }
.hero-phone-2 { animation-delay: -2s; transform: translateY(-20px); }
.hero-phone-3 { animation-delay: -4s; }

.hero-phone-img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 20px 60px rgba(0,0,0,0.5));
}

.hero-phone-1 { width: 240px; }
.hero-phone-2 { width: 280px; transform: translateY(-30px); }
.hero-phone-3 { width: 240px; }

@keyframes heroFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-16px); }
}

/* ===== IPHONE MOCKUP ===== */
.iphone {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s var(--ease-out);
}

.iphone-frame {
    width: 280px;
    background: #1C1C1E;
    border-radius: 44px;
    padding: 14px;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.5),
        0 20px 60px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.05);
}

.iphone-lg .iphone-frame {
    width: 320px;
    border-radius: 50px;
    padding: 16px;
}

.iphone-notch {
    width: 110px;
    height: 30px;
    background: #000;
    border-radius: 0 0 18px 18px;
    margin: 0 auto 8px;
    position: relative;
}

.iphone-notch::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: #1a1a1a;
    border-radius: 50%;
    top: 8px;
    right: 24px;
}

.iphone-lg .iphone-notch {
    width: 126px;
    height: 34px;
}

.iphone-screen {
    background: var(--bg-base);
    border-radius: 30px;
    overflow: hidden;
    min-height: 420px;
    position: relative;
}

.iphone-lg .iphone-screen {
    min-height: 520px;
    border-radius: 34px;
}

/* ===== IPHONE SHOWCASE (Section phones) ===== */
.iphone-showcase {
    display: flex;
    justify-content: center;
    position: relative;
    perspective: 1200px;
}

.iphone-showcase .iphone {
    animation: phoneFloat 7s ease-in-out infinite;
}

.iphone-showcase-green .iphone {
    animation-delay: -2s;
}

.iphone-showcase-teal .iphone {
    animation-delay: -4s;
}

@keyframes phoneFloat {
    0%, 100% { transform: translateY(0px) rotateX(2deg) rotateY(-2deg); }
    25% { transform: translateY(-12px) rotateX(0deg) rotateY(0deg); }
    50% { transform: translateY(-4px) rotateX(-1deg) rotateY(2deg); }
    75% { transform: translateY(-14px) rotateX(1deg) rotateY(-1deg); }
}

.iphone-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(80px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0.5;
    transition: opacity 0.6s;
}

.iphone-glow-blue { background: rgba(2, 91, 255, 0.2); }
.iphone-glow-green { background: rgba(74, 222, 128, 0.15); }
.iphone-glow-teal { background: rgba(45, 212, 191, 0.18); }

.iphone-showcase:hover .iphone-glow { opacity: 0.8; }

/* Image-based phone showcases */
.app-phone-showcase {
    display: flex;
    justify-content: center;
    position: relative;
    perspective: 1200px;
}

.app-phone-showcase:hover .iphone-glow { opacity: 0.8; }

.app-phone-img {
    width: 110%;
    max-width: 820px;
    height: auto;
    display: block;
    margin-top: 80px;
    margin-left: -20px;
    animation: phoneFloat 7s ease-in-out infinite;
}

/* ===== HERO MINI SCREENS ===== */
.iphone-screen-checkbook,
.iphone-screen-intake,
.iphone-screen-drift-hero {
    padding: 16px 12px;
    min-height: 360px;
}

.iscr-header { margin-bottom: 12px; }
.iscr-app-name { font-family: var(--font-mono); font-size: 0.55rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-tertiary); display: block; margin-bottom: 4px; }
.iscr-balance { font-family: var(--font-mono); font-size: 1.4rem; font-weight: 700; color: var(--text-primary); }
.iscr-cents { font-size: 0.9rem; opacity: 0.6; }
.iscr-streak { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; color: #FBBF24; }

.iscr-list { display: flex; flex-direction: column; gap: 1px; }
.iscr-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--bg-card); border-radius: 8px; }
.iscr-item:first-child { border-radius: 10px 10px 4px 4px; }
.iscr-item:last-child { border-radius: 4px 4px 10px 10px; }
.iscr-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.iscr-red { background: #EF4444; }
.iscr-green { background: #4ADE80; }
.iscr-yellow { background: #FBBF24; }
.iscr-col { flex: 1; }
.iscr-name { font-size: 0.65rem; font-weight: 500; color: var(--text-primary); }
.iscr-sub { font-family: var(--font-mono); font-size: 0.5rem; color: var(--text-tertiary); }
.iscr-amt { font-family: var(--font-mono); font-size: 0.65rem; font-weight: 600; }
.iscr-neg { color: #EF4444; }
.iscr-pos { color: #4ADE80; }

.iscr-supps { display: flex; flex-direction: column; gap: 6px; }
.iscr-supp { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--bg-card); border-radius: 10px; }
.iscr-emoji { font-size: 0.9rem; }
.iscr-supp-name { font-size: 0.65rem; font-weight: 500; color: var(--text-primary); flex: 1; }
.iscr-check { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--text-tertiary); display: flex; align-items: center; justify-content: center; font-size: 0.5rem; color: transparent; }
.iscr-check.checked { background: var(--green); border-color: var(--green); color: #0A0E17; font-weight: 700; }

.iphone-screen-drift-hero { padding: 0; background: #0B1326; position: relative; }
.drift-hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.iscr-drift-overlay { position: relative; z-index: 1; padding: 60px 16px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 360px; gap: 16px; }
.iscr-drift-title { font-family: var(--font-display); font-size: 1.6rem; color: var(--teal); }
.iscr-drift-subtitle { font-family: var(--font-display); font-style: italic; font-size: 0.9rem; color: var(--teal-soft); opacity: 0.7; }
.iscr-drift-moods { display: flex; gap: 12px; font-size: 1.3rem; }
.iscr-drift-moods .active { transform: scale(1.3); filter: drop-shadow(0 0 6px rgba(45,212,191,0.5)); }

/* ===== CHECKBOOK SCREEN ===== */
.screen-checkbook { padding: 20px 14px; }
.scb-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.scb-greeting { font-size: 0.75rem; font-weight: 300; color: var(--text-secondary); }
.scb-avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--blue-soft)); }
.scb-balance-card { background: linear-gradient(135deg, rgba(2,91,255,0.15), rgba(2,91,255,0.05)); border: 1px solid rgba(2,91,255,0.2); border-radius: 16px; padding: 18px; margin-bottom: 16px; }
.scb-balance-label { font-family: var(--font-mono); font-size: 0.6rem; font-weight: 500; color: var(--text-tertiary); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
.scb-balance-amount { font-family: var(--font-mono); font-size: 2rem; font-weight: 700; color: var(--text-primary); letter-spacing: -0.03em; }
.scb-balance-amount span { font-size: 1.2rem; opacity: 0.5; }
.scb-balance-change { font-family: var(--font-mono); font-size: 0.6rem; color: var(--green); margin-top: 4px; }
.scb-accounts { display: flex; gap: 8px; margin-bottom: 16px; }
.scb-account { flex: 1; display: flex; align-items: center; gap: 8px; background: var(--bg-card); border-radius: 12px; padding: 10px; }
.scb-account-icon { width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0; }
.scb-checking { background: rgba(2,91,255,0.2); }
.scb-savings { background: rgba(74,222,128,0.2); }
.scb-account-name { font-size: 0.6rem; color: var(--text-secondary); }
.scb-account-bal { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; color: var(--text-primary); }
.scb-recent-label { font-family: var(--font-mono); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 10px; }
.scb-tx-list { display: flex; flex-direction: column; gap: 2px; }
.scb-tx { display: flex; align-items: center; gap: 10px; padding: 10px; background: var(--bg-card); animation: txSlideIn 0.5s var(--ease-out) both; }
.scb-tx:nth-child(1) { border-radius: 12px 12px 3px 3px; animation-delay: 0.1s; }
.scb-tx:nth-child(2) { animation-delay: 0.2s; }
.scb-tx:nth-child(3) { animation-delay: 0.3s; }
.scb-tx:nth-child(4) { border-radius: 3px 3px 12px 12px; animation-delay: 0.4s; }
@keyframes txSlideIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: translateX(0); } }
.scb-tx-icon { width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0; }
.scb-tx-shop { background: rgba(239,68,68,0.12); }
.scb-tx-money { background: rgba(74,222,128,0.12); }
.scb-tx-bill { background: rgba(251,191,36,0.12); }
.scb-tx-info { flex: 1; }
.scb-tx-name { font-size: 0.75rem; font-weight: 500; color: var(--text-primary); }
.scb-tx-date { font-family: var(--font-mono); font-size: 0.55rem; color: var(--text-tertiary); }
.scb-tx-amt { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; }
.scb-tx-neg { color: #EF4444; }
.scb-tx-pos { color: var(--green); }

/* ===== INTAKE SCREEN ===== */
.screen-intake { padding: 20px 14px; }
.sin-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.sin-title { font-family: var(--font-display); font-size: 1.2rem; color: var(--text-primary); }
.sin-flame-badge { display: flex; align-items: center; gap: 4px; background: rgba(251,191,36,0.1); border: 1px solid rgba(251,191,36,0.2); border-radius: 100px; padding: 4px 10px 4px 6px; }
.sin-flame { font-size: 0.9rem; animation: flamePulse 1.5s ease-in-out infinite; }
@keyframes flamePulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
.sin-streak-num { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700; color: #FBBF24; }

.sin-progress-ring { width: 100px; height: 100px; margin: 0 auto 12px; position: relative; }
.sin-ring-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.sin-ring-progress { animation: ringFill 2s var(--ease-out) both; }
@keyframes ringFill { from { stroke-dashoffset: 251; } to { stroke-dashoffset: 125; } }
.sin-ring-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.sin-pct { font-family: var(--font-mono); font-size: 1.1rem; font-weight: 700; color: var(--text-primary); }
.sin-ring-label { font-size: 0.55rem; color: var(--text-tertiary); }

.sin-time-label { font-family: var(--font-mono); font-size: 0.55rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 8px; margin-top: 8px; }
.sin-supp-list { display: flex; flex-direction: column; gap: 6px; }
.sin-supp { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--bg-card); border-radius: 12px; transition: all 0.3s; border: 1px solid transparent; }
.sin-taken { border-color: rgba(74,222,128,0.15); background: rgba(74,222,128,0.04); }
.sin-supp-icon { font-size: 1.1rem; width: 28px; text-align: center; }
.sin-supp-info { flex: 1; }
.sin-supp-name { font-size: 0.75rem; font-weight: 500; color: var(--text-primary); }
.sin-supp-dose { font-family: var(--font-mono); font-size: 0.55rem; color: var(--text-tertiary); }
.sin-supp-check { width: 22px; height: 22px; border-radius: 7px; background: var(--green); display: flex; align-items: center; justify-content: center; font-size: 0.65rem; font-weight: 700; color: #0A0E17; }
.sin-supp-check-empty { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--text-tertiary); }

/* ===== DRIFT SCREEN ===== */
.screen-drift { position: relative; min-height: 520px; background: #0B1326; overflow: hidden; }
.drift-section-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sdr-overlay { position: relative; z-index: 1; padding: 40px 16px 20px; display: flex; flex-direction: column; align-items: center; min-height: 520px; }
.sdr-status { font-family: var(--font-display); font-style: italic; font-size: 0.85rem; color: var(--teal-soft); opacity: 0.6; margin-bottom: auto; }
.sdr-timer { width: 120px; height: 120px; position: relative; margin: auto 0; }
.sdr-timer-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.sdr-timer-ring { animation: timerCountdown 60s linear infinite; }
@keyframes timerCountdown { to { stroke-dashoffset: 264; } }
.sdr-timer-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 1.4rem; font-weight: 600; color: var(--teal); }
.sdr-experience { text-align: center; margin-top: auto; margin-bottom: 16px; }
.sdr-exp-label { font-family: var(--font-mono); font-size: 0.5rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-tertiary); }
.sdr-exp-name { font-family: var(--font-display); font-style: italic; font-size: 1rem; color: var(--teal-soft); }
.sdr-controls { display: flex; gap: 12px; }
.sdr-ctrl { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: var(--text-tertiary); transition: all 0.3s; }
.sdr-ctrl.active { border-color: var(--teal); color: var(--teal); background: rgba(45,212,191,0.1); }

/* ===== APP SECTIONS ===== */
.app-section {
    position: relative;
    padding: 8rem 2rem;
    overflow: hidden;
}
.app-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.5s;
    background:
        radial-gradient(ellipse 60% 40% at 20% 30%, rgba(88, 28, 135, 0.12), transparent 70%),
        radial-gradient(ellipse 50% 35% at 55% 20%, rgba(45, 212, 191, 0.08), transparent 60%),
        radial-gradient(ellipse 45% 40% at 80% 25%, rgba(2, 91, 255, 0.1), transparent 65%);
}
.app-section.in-view .app-glow { opacity: 1; }
.app-container { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.app-text-col { padding-left: 100px; }
#intake .app-hero-row { padding-right: 100px; }
.app-header { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 3rem; }
.app-number { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; color: var(--text-tertiary); letter-spacing: 0.1em; }
.app-meta { display: flex; align-items: center; gap: 0.75rem; }
.app-label { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-tertiary); }
.app-divider { color: var(--text-tertiary); opacity: 0.4; }

.app-hero-row { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; margin-bottom: 5rem; }
.app-hero-row-reverse .app-visual-col { order: -1; }


.app-name { font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 3.8rem); font-weight: 400; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 1rem; }
.app-name-prefix { display: block; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 0.5rem; }
[data-accent="blue"] .app-name-prefix { color: var(--blue); }
[data-accent="green"] .app-name-prefix { color: var(--green); }
[data-accent="teal"] .app-name-prefix { color: var(--teal); }

.app-tagline { font-family: var(--font-display); font-style: italic; font-size: clamp(1.3rem, 2.5vw, 1.6rem); line-height: 1.4; margin-bottom: 1.5rem; }
[data-accent="blue"] .app-tagline { color: var(--blue); }
[data-accent="green"] .app-tagline { color: var(--green-soft); }
[data-accent="teal"] .app-tagline { color: var(--teal-soft); }
.app-description { font-size: 1.05rem; font-weight: 300; color: var(--text-secondary); line-height: 1.75; margin-bottom: 2rem; max-width: 460px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.8rem 1.6rem; border-radius: 14px; font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.03em; transition: all 0.3s var(--ease-out); border: 1px solid transparent; }
.btn-blue { background: var(--blue); color: white; box-shadow: 0 4px 24px rgba(2, 91, 255, 0.3); }
.btn-blue:hover { background: var(--blue-soft); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(2, 91, 255, 0.4); }
.btn-green { background: var(--green); color: #0A0E17; box-shadow: 0 4px 24px rgba(74, 222, 128, 0.25); }
.btn-green:hover { background: var(--green-soft); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(74, 222, 128, 0.35); }
.btn-teal { background: var(--teal); color: #0A0E17; box-shadow: 0 4px 24px rgba(45, 212, 191, 0.25); }
.btn-teal:hover { background: var(--teal-soft); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(45, 212, 191, 0.35); }

/* ===== FEATURE GRIDS ===== */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border-radius: 20px; overflow: hidden; }
.feature-card { background: var(--bg-card); padding: 2rem; transition: background 0.3s; }
.feature-card:hover { background: var(--bg-card-hover); }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; background: var(--blue-glow); color: var(--blue-soft); }
.feature-icon-green { background: var(--green-glow); color: var(--green-soft); }
.feature-icon-teal { background: var(--teal-glow); color: var(--teal); }
.feature-icon-img { width: 24px; height: 24px; }
.feature-card h3 { font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.85rem; font-weight: 300; color: var(--text-secondary); line-height: 1.6; }

.drift-experience-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.drift-exp-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 2rem; transition: all 0.4s var(--ease-out); }
.drift-exp-card:hover { background: var(--bg-card-hover); border-color: rgba(45, 212, 191, 0.15); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3); }
.drift-exp-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; background: var(--teal-glow); color: var(--teal); }
.drift-exp-card h3 { font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.5rem; }
.drift-exp-card p { font-size: 0.85rem; font-weight: 300; color: var(--text-secondary); line-height: 1.6; }

/* ===== ABOUT ===== */
.about-section { position: relative; padding: 8rem 2rem; overflow: hidden; }
.about-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background:
        radial-gradient(ellipse 60% 40% at 20% 30%, rgba(88, 28, 135, 0.12), transparent 70%),
        radial-gradient(ellipse 50% 35% at 55% 20%, rgba(45, 212, 191, 0.08), transparent 60%),
        radial-gradient(ellipse 45% 40% at 80% 25%, rgba(2, 91, 255, 0.1), transparent 65%);
    pointer-events: none;
}
.about-container { max-width: 900px; margin: 0 auto; }
.about-eyebrow { display: flex; align-items: center; gap: 1rem; margin-bottom: 4rem; }
.about-title { font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 400; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 3rem; }
.about-title em { font-style: italic; background: linear-gradient(135deg, var(--blue-soft), var(--teal)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.about-text-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 4rem; }
.about-text-grid p { font-size: 1.05rem; font-weight: 300; color: var(--text-secondary); line-height: 1.8; }
.about-values { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.about-value { display: flex; align-items: baseline; gap: 2rem; padding: 1.5rem 0; border-bottom: 1px solid var(--border); opacity: 0; transform: translateX(-30px); filter: blur(6px); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.value-number { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; color: var(--text-tertiary); letter-spacing: 0.1em; flex-shrink: 0; width: 2rem; }
.value-text { font-size: 1rem; font-weight: 400; color: var(--text-primary); line-height: 1.6; }

/* ===== FOOTER ===== */
.footer { border-top: 1px solid var(--border); padding: 4rem 2rem 2rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 4rem; }
.footer-brand { display: flex; align-items: baseline; gap: 0.35rem; }
.footer-links-row { display: flex; gap: 5rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 0.25rem; }
.footer-col a { font-size: 0.9rem; color: var(--text-secondary); transition: color 0.3s; }
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 2rem; text-align: center; }
.footer-bottom span { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-tertiary); letter-spacing: 0.05em; }

/* ===== REVEAL (Framer Motion-style blur + slide) ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(10px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), filter 0.9s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); filter: blur(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.5s; }
.reveal-d5 { transition-delay: 0.7s; }
.reveal-d6 { transition-delay: 0.9s; }

/* Slide from left variant */
.reveal-slide-left {
    opacity: 0;
    transform: translateX(-40px);
    filter: blur(8px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out), filter 0.8s var(--ease-out);
}
.reveal-slide-left.visible {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
}

/* About values staggered reveal */
.about-value.value-visible {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
}

/* Text column parallax smoothing */
.app-text-col {
    will-change: transform;
    transition: transform 0.1s linear;
}

/* ===== HERO WORD-BY-WORD REVEAL ===== */
.hero-title .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px) rotateX(40deg);
    filter: blur(8px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out), filter 0.7s var(--ease-out);
}
.hero-title .word.visible {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
    filter: blur(0);
}
.hero-title span { perspective: 600px; }
.hero-title span em .word {
    background: linear-gradient(135deg, var(--blue-soft), var(--teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
}

/* ===== MAGNETIC BUTTONS ===== */
.btn {
    position: relative;
    overflow: hidden;
    will-change: transform;
}
.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.15), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.btn:hover::before { opacity: 1; }

/* ===== FEATURE CARD PREMIUM HOVER ===== */
.feature-card {
    position: relative;
    overflow: hidden;
    transition: background 0.4s, transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(2, 91, 255, 0.08), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* ===== BREATHING GRADIENT MESH ===== */
@keyframes gradientBreath {
    0%, 100% {
        background-position: 0% 0%, 50% 0%, 100% 0%;
        opacity: 1;
    }
    33% {
        background-position: 10% 5%, 40% 10%, 90% 5%;
        opacity: 0.85;
    }
    66% {
        background-position: 5% -5%, 60% -5%, 95% 10%;
        opacity: 0.95;
    }
}
.hero-glow { animation: gradientBreath 12s ease-in-out infinite; }
.app-glow { animation: gradientBreath 15s ease-in-out infinite; }
.about-glow { animation: gradientBreath 18s ease-in-out infinite; }

/* ===== SMOOTH SCROLL PARALLAX ===== */
.hero-phones, .app-phone-showcase, .iphone-showcase {
    will-change: transform;
}

/* ===== NAV GLASS BLUR UPGRADE ===== */
.nav.scrolled {
    background: rgba(10, 14, 23, 0.7);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    box-shadow: 0 1px 0 rgba(255,255,255,0.03), 0 4px 30px rgba(0,0,0,0.3);
}

/* ===== SMOOTH CURSOR GLOW ON SECTIONS ===== */
.app-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(2, 91, 255, 0.04), transparent 70%);
    pointer-events: none;
    left: var(--cursor-x, -300px);
    top: var(--cursor-y, -300px);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 0;
}
.app-section:hover::before { opacity: 1; }

/* ===== PARALLAX SCROLL EFFECT ===== */
.app-section .iphone-showcase {
    will-change: transform;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .feature-grid, .drift-experience-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-phones { gap: 1rem; }
    .hero-phone-1 { width: 200px; }
    .hero-phone-2 { width: 230px; }
    .hero-phone-3 { width: 200px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-menu-btn { display: flex; }
    .hero { padding: 7rem 1.5rem 2rem; min-height: auto; }
    .hero-title span { font-size: clamp(2rem, 8vw, 2.8rem) !important; }
    .hero-phones { flex-direction: column; align-items: center; gap: 0; margin-top: 2rem; }
    .hero-phone-1, .hero-phone-3 { display: none; }
    .hero-phone-2 { width: 260px; transform: translateY(0); }
    .app-section { padding: 5rem 1.5rem; }
    .app-hero-row, .app-hero-row-reverse { grid-template-columns: 1fr; gap: 3rem; }
    .app-hero-row-reverse .app-visual-col { order: 0; }
    .app-description { max-width: 100%; }
    .feature-grid, .drift-experience-grid { grid-template-columns: 1fr; }
    .feature-grid { border-radius: 16px; }
    .about-text-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .footer-top { flex-direction: column; gap: 3rem; }
    .footer-links-row { gap: 3rem; flex-wrap: wrap; }
    .iphone-lg .iphone-frame { width: 280px; }
    .iphone-lg .iphone-screen { min-height: 440px; }
}

@media (max-width: 480px) {
    .hero-apps-bar { flex-direction: column; }
    .hero-app-chip { width: 100%; justify-content: center; }
    .footer-links-row { flex-direction: column; gap: 2rem; }
}

/* ===== UTILS ===== */
::selection { background: rgba(2, 91, 255, 0.3); color: white; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); }
