/* ══════════════════════════════════════════════════════════════
   STARLY v6 — HOLISTIC MERGE: v5 anime effects + v4 glass cards
   ══════════════════════════════════════════════════════════════
   7 core techniques from Japanese/anime web design:
   1. Light streaks & lens flares
   2. Layered parallax depth
   3. Dramatic section transitions (clip-path, diagonal, wave)
   4. Premium multi-layer glow system
   5. CSS-only sparkle & particle effects
   6. Cinematic color grading (mix-blend-mode, filters, vignette)
   7. Scroll-linked animations (CSS scroll-timeline + JS fallback)
   ══════════════════════════════════════════════════════════════ */

/* ── Reset & Tokens ────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg:  #08081a;
    --bg2: #0e0e24;
    --bg3: #0a0a1f;
    --surface: rgba(255,255,255,.03);
    --border: rgba(255,255,255,.07);
    --border-hi: rgba(255,255,255,.14);
    --text: #eeeef5;
    --text-dim: #8888a4;
    --accent: #f5a623;
    --accent2: #c26dff;
    --glow-gold:   rgba(245,166,35,.35);
    --glow-purple: rgba(194,109,255,.25);
    --glow-gold-s:   rgba(245,166,35,.12);
    --glow-purple-s: rgba(194,109,255,.08);
    --ease-expo: cubic-bezier(.16,1,.3,1);
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}


/* ══════════════════════════════════════════════════════════════
   TECHNIQUE 6 — CINEMATIC COLOR GRADING
   Applied globally so every section inherits the film treatment.
   ══════════════════════════════════════════════════════════════ */

/* Film grain — fractal noise at low opacity, blend overlay */
body::after {
    content: '';
    position: fixed; inset: 0; z-index: 10000;
    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='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: .022;
    mix-blend-mode: overlay;
}

/* Split-tone color grade: cool shadows (top), warm highlights (bottom) */
.color-grade {
    position: fixed; inset: 0; z-index: 9998;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(80,100,200,.025) 0%,
        transparent 35%,
        transparent 65%,
        rgba(245,166,35,.018) 100%
    );
    mix-blend-mode: color;
}

/* Vignette — darkened edges for cinematic focus */
.vignette {
    position: fixed; inset: 0; z-index: 9997;
    pointer-events: none;
    background: radial-gradient(
        ellipse 70% 65% at 50% 45%,
        transparent 50%,
        rgba(0,0,0,.35) 100%
    );
}

/* Per-section filter grading */
.features  { filter: saturate(.95) brightness(1.02); }
.cta       { filter: saturate(1.05) brightness(1.03); }


/* ══════════════════════════════════════════════════════════════
   TECHNIQUE 2 — LAYERED PARALLAX DEPTH SYSTEM
   4 layers: deep stars → nebula clouds → twinkling stars → foreground dust
   ══════════════════════════════════════════════════════════════ */

/* Container for the 2 deepest layers */
.parallax-space {
    position: fixed; inset: 0; z-index: 0;
    pointer-events: none; overflow: hidden;
    contain: strict;
}

/* Layer 1 — deep distant stars (radial-gradient dots) */
.parallax-layer-deep {
    position: absolute; inset: -25%;
    background-image:
        radial-gradient(1px 1px at 10% 15%, rgba(255,255,255,.4), transparent),
        radial-gradient(1px 1px at 25% 38%, rgba(255,255,255,.25), transparent),
        radial-gradient(1px 1px at 42% 62%, rgba(255,255,255,.35), transparent),
        radial-gradient(1px 1px at 58% 22%, rgba(255,255,255,.2), transparent),
        radial-gradient(1px 1px at 72% 78%, rgba(255,255,255,.3), transparent),
        radial-gradient(1px 1px at 88% 48%, rgba(255,255,255,.15), transparent),
        radial-gradient(1.5px 1.5px at 15% 72%, rgba(245,166,35,.2), transparent),
        radial-gradient(1px 1px at 33% 88%, rgba(255,255,255,.25), transparent),
        radial-gradient(1px 1px at 65% 52%, rgba(255,255,255,.2), transparent),
        radial-gradient(1.5px 1.5px at 92% 12%, rgba(194,109,255,.15), transparent),
        radial-gradient(1px 1px at 5% 48%, rgba(255,255,255,.3), transparent),
        radial-gradient(1px 1px at 78% 32%, rgba(255,255,255,.2), transparent);
    animation: deepDrift 100s linear infinite;
    will-change: transform;
    transform: translateZ(0);
}

@keyframes deepDrift {
    0%   { transform: translateY(0); }
    100% { transform: translateY(4%); }
}

/* Layer 2 — nebula color clouds */
.parallax-layer-nebula {
    position: absolute; inset: -30%;
    background:
        radial-gradient(ellipse 600px 400px at 20% 30%, rgba(194,109,255,.05), transparent 70%),
        radial-gradient(ellipse 500px 350px at 75% 60%, rgba(245,166,35,.035), transparent 70%),
        radial-gradient(ellipse 400px 300px at 50% 80%, rgba(100,120,255,.025), transparent 70%);
    animation: nebulaDrift 70s ease-in-out infinite alternate;
    will-change: transform;
    transform: translateZ(0);
}

@keyframes nebulaDrift {
    0%   { transform: translateY(0) translateX(0) scale(1); }
    100% { transform: translateY(3%) translateX(-2%) scale(1.04); }
}

/* Layer 3 — JS-spawned twinkling star particles */
.stars-bg {
    position: fixed; inset: 0; z-index: 1;
    pointer-events: none; overflow: hidden;
}

.star-particle {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: twinkle var(--tw-dur) var(--tw-delay) ease-in-out infinite alternate;
}

@keyframes twinkle {
    0%   { opacity: 0; transform: scale(.5); }
    100% { opacity: var(--tw-opacity); transform: scale(1); }
}

/* Layer 4 — foreground floating dust motes (closest to camera) */
.foreground-particles {
    position: fixed; inset: 0;
    pointer-events: none; z-index: 50;
    overflow: hidden;
}

.fg-particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(245,166,35,.25);
    filter: blur(var(--fg-blur, 1px));
    animation: fgRise var(--fg-dur, 18s) var(--fg-delay, 0s) linear infinite;
    opacity: 0;
}

@keyframes fgRise {
    0%   { transform: translateY(105vh) translateX(0); opacity: 0; }
    8%   { opacity: var(--fg-opacity, .18); }
    92%  { opacity: var(--fg-opacity, .18); }
    100% { transform: translateY(-10vh) translateX(var(--fg-drift, 40px)); opacity: 0; }
}


/* ══════════════════════════════════════════════════════════════
   TECHNIQUE 1 — ANIME LIGHT STREAKS & LENS FLARES
   ══════════════════════════════════════════════════════════════ */

/* Primary diagonal light streak */
.light-streak {
    position: absolute;
    top: -20%; left: -10%; width: 160%; height: 1px;
    background: linear-gradient(90deg,
        transparent 0%, transparent 25%,
        rgba(245,166,35,0) 35%,
        rgba(245,166,35,.4) 46%,
        rgba(255,255,255,.8) 50%,
        rgba(194,109,255,.4) 54%,
        rgba(194,109,255,0) 65%,
        transparent 75%, transparent 100%
    );
    transform: rotate(-35deg);
    pointer-events: none; z-index: 5;
    filter: blur(.5px);
    opacity: 0;
    animation: streakTravel 9s ease-in-out infinite;
}

/* Secondary thinner streak with offset timing */
.light-streak-2 {
    position: absolute;
    top: 8%; left: -10%; width: 140%; height: 1px;
    background: linear-gradient(90deg,
        transparent 0%, transparent 30%,
        rgba(194,109,255,0) 42%,
        rgba(194,109,255,.22) 48%,
        rgba(255,255,255,.45) 50%,
        rgba(245,166,35,.22) 52%,
        rgba(245,166,35,0) 58%,
        transparent 70%, transparent 100%
    );
    transform: rotate(-35deg);
    pointer-events: none; z-index: 5;
    filter: blur(.3px);
    opacity: 0;
    animation: streakTravel 9s ease-in-out 3.5s infinite;
}

@keyframes streakTravel {
    0%   { opacity: 0; transform: rotate(-35deg) translateX(-45%); }
    12%  { opacity: 1; }
    50%  { opacity: 1; }
    88%  { opacity: 0; }
    100% { opacity: 0; transform: rotate(-35deg) translateX(45%); }
}

/* Lens flare — layered radial glows */
.lens-flare {
    position: absolute;
    top: 12%; right: 22%;
    width: 280px; height: 280px;
    pointer-events: none; z-index: 5;
}

.lens-flare::before {
    content: '';
    position: absolute; top: 50%; left: 50%;
    width: 160px; height: 160px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle,
        rgba(255,255,255,.12) 0%,
        rgba(245,166,35,.06) 30%,
        rgba(194,109,255,.03) 55%,
        transparent 70%
    );
    border-radius: 50%;
    animation: flarePulse 5s ease-in-out infinite alternate;
}

/* Bokeh ring removed — was flashing on load then vanishing */

@keyframes flarePulse {
    0%   { opacity: .4; transform: translate(-50%,-50%) scale(.92); }
    100% { opacity: 1;  transform: translate(-50%,-50%) scale(1.08); }
}

/* Bokeh dot field — soft out-of-focus circles */
.bokeh-field {
    position: absolute; inset: 0;
    pointer-events: none; z-index: 4;
    overflow: hidden;
}

.bokeh-dot {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--bk-color, rgba(245,166,35,.18)), transparent 70%);
    animation: bokehFloat var(--bk-dur, 7s) var(--bk-delay, 0s) ease-in-out infinite alternate;
    filter: blur(var(--bk-blur, 2px));
}

@keyframes bokehFloat {
    0%   { transform: translateY(0) scale(1);    opacity: var(--bk-opacity, .25); }
    100% { transform: translateY(-18px) scale(1.12); opacity: calc(var(--bk-opacity, .25) * 1.5); }
}

/* Light rays behind hero phones */
.hero-light-rays {
    position: absolute;
    top: 50%; left: 58%;
    width: 0; height: 0;
    pointer-events: none; z-index: 1;
}

.hero-light-rays::before,
.hero-light-rays::after {
    content: '';
    position: absolute;
    top: -280px; left: -14px;
    width: 28px; height: 560px;
    filter: blur(10px);
}

.hero-light-rays::before {
    background: linear-gradient(180deg, transparent, rgba(245,166,35,.08) 30%, rgba(245,166,35,.14) 50%, rgba(245,166,35,.08) 70%, transparent);
    transform: rotate(-18deg);
    animation: rayBreath 7s ease-in-out infinite alternate;
}

.hero-light-rays::after {
    background: linear-gradient(180deg, transparent, rgba(194,109,255,.05) 30%, rgba(194,109,255,.1) 50%, rgba(194,109,255,.05) 70%, transparent);
    transform: rotate(18deg);
    animation: rayBreath 7s ease-in-out 2.5s infinite alternate;
}

@keyframes rayBreath {
    0%   { opacity: .35; filter: blur(10px); }
    100% { opacity: .75; filter: blur(14px); }
}


/* ══════════════════════════════════════════════════════════════
   TECHNIQUE 5 — CSS-ONLY SPARKLE / PARTICLE EFFECTS
   ══════════════════════════════════════════════════════════════ */

/* Sparkle container wraps any element */
.sparkle-wrap { position: relative; display: inline-block; }

/* Individual sparkle — 4-point star via crossed pseudo-elements */
.sparkle {
    position: absolute;
    pointer-events: none;
    animation: sparkleFlash var(--sp-dur, 1.8s) var(--sp-delay, 0s) ease-in-out infinite;
}

.sparkle::before,
.sparkle::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    background: var(--sp-color, #fff);
    border-radius: 1px;
}

.sparkle::before {
    width: var(--sp-size, 8px); height: 2px;
    transform: translate(-50%, -50%);
}

.sparkle::after {
    width: 2px; height: var(--sp-size, 8px);
    transform: translate(-50%, -50%);
}

@keyframes sparkleFlash {
    0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
    50%      { opacity: 1; transform: scale(1) rotate(90deg); }
}

/* Hero heading sparkle positions */
.hero-sparkles .sparkle:nth-child(1) { top: -10px; left: 8%;  --sp-size: 10px; --sp-dur: 2.2s; --sp-delay: 0s;   --sp-color: var(--accent); }
.hero-sparkles .sparkle:nth-child(2) { top: 18%;  right: -14px; --sp-size: 6px; --sp-dur: 1.9s; --sp-delay: .5s;  --sp-color: rgba(255,255,255,.7); }
.hero-sparkles .sparkle:nth-child(3) { bottom: -8px; left: 28%; --sp-size: 7px; --sp-dur: 2.4s; --sp-delay: .9s;  --sp-color: var(--accent2); }
.hero-sparkles .sparkle:nth-child(4) { top: 42%;  left: -12px;  --sp-size: 5px; --sp-dur: 1.7s; --sp-delay: 1.3s; --sp-color: var(--accent); }
.hero-sparkles .sparkle:nth-child(5) { top: 6%;   right: 12%;   --sp-size: 8px; --sp-dur: 2.6s; --sp-delay: .3s;  --sp-color: rgba(255,255,255,.55); }
.hero-sparkles .sparkle:nth-child(6) { bottom: 12%; right: 4%;  --sp-size: 6px; --sp-dur: 2s;   --sp-delay: .7s;  --sp-color: var(--accent); }


/* ══════════════════════════════════════════════════════════════
   TECHNIQUE 4 — PREMIUM MULTI-LAYER GLOW SYSTEM
   Rule: never use a single shadow. Stack 2-4 layers of decreasing
   opacity and increasing blur for volumetric anime key-art light.
   ══════════════════════════════════════════════════════════════ */

/* Utility classes (applied in HTML where needed) */
.glow-text {
    text-shadow:
        0 0 10px var(--glow-gold-s),
        0 0 40px rgba(245,166,35,.05),
        0 0 80px rgba(245,166,35,.025);
}

.glow-text-purple {
    text-shadow:
        0 0 10px var(--glow-purple-s),
        0 0 40px rgba(194,109,255,.05),
        0 0 80px rgba(194,109,255,.025);
}

@keyframes glowPulse {
    0% {
        box-shadow:
            0 0 0 1px rgba(245,166,35,.06),
            0 0 12px rgba(245,166,35,.04),
            0 0 35px rgba(245,166,35,.02);
    }
    100% {
        box-shadow:
            0 0 0 1px rgba(245,166,35,.12),
            0 0 18px rgba(245,166,35,.07),
            0 0 55px rgba(245,166,35,.035),
            0 0 90px rgba(194,109,255,.02);
    }
}


/* ══════════════════════════════════════════════════════════════
   TECHNIQUE 3 — DRAMATIC SECTION TRANSITIONS
   Diagonal slashes, wave separators, gradient mesh overlaps.
   ══════════════════════════════════════════════════════════════ */

/* Diagonal slash separator */
.section-slash {
    position: relative;
    height: 80px;
    overflow: hidden; z-index: 5;
}

.section-slash::before {
    content: '';
    position: absolute; top: 0; left: -5%;
    width: 110%; height: 100%;
    background: var(--slash-from, var(--bg));
    clip-path: polygon(0 0, 100% 0, 100% 15%, 0 100%);
}

.section-slash::after {
    content: '';
    position: absolute; bottom: 0; left: -5%;
    width: 110%; height: 100%;
    background: var(--slash-to, var(--bg2));
    clip-path: polygon(0 85%, 100% 0, 100% 100%, 0 100%);
}

/* Subtle glow along the diagonal cut */
.slash-glow {
    position: absolute; top: 0; left: -5%;
    width: 110%; height: 100%; z-index: 2;
    pointer-events: none;
}

.slash-glow::before {
    content: '';
    position: absolute; top: 50%; left: 0;
    width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(245,166,35,.15) 20%, rgba(194,109,255,.2) 50%, rgba(245,166,35,.15) 80%, transparent 100%);
    transform: rotate(-3.5deg);
    filter: blur(2px);
    opacity: .25;
}


/* Smooth gradient fade transition (no dots, no hard lines) */
.section-fade {
    position: relative;
    height: 140px; z-index: 5;
    pointer-events: none;
    margin-top: -70px;
    margin-bottom: -70px;
    background: linear-gradient(180deg,
        var(--fade-from, var(--bg)) 0%,
        var(--fade-to, var(--bg2)) 100%
    );
}


/* ══════════════════════════════════════════════════════════════
   TECHNIQUE 7 — SCROLL-LINKED ANIMATIONS
   Native CSS scroll-timeline where supported, JS fallback for all.
   ══════════════════════════════════════════════════════════════ */

/* Hero fades + blurs as user scrolls down (CSS native) */
@supports (animation-timeline: scroll()) {
    .hero-content {
        animation: heroScrollOut linear both;
        animation-timeline: scroll();
        animation-range: 0vh 55vh;
    }
}

@keyframes heroScrollOut {
    0%   { opacity: 1; transform: scale(1) translateY(0);     filter: blur(0); }
    100% { opacity: 0; transform: scale(.95) translateY(-50px); filter: blur(5px); }
}

/* Elements reveal as they enter viewport (CSS native) */
@supports (animation-timeline: view()) {
    .scroll-reveal-css {
        animation: scrollRevealIn linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 28%;
    }

    /* Cards use IntersectionObserver reveal instead —
       scroll-timeline animation persists and blocks hover transforms */
}

@keyframes scrollRevealIn {
    0%   { opacity: 0; transform: translateY(50px) scale(.96); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes cardRevealIn {
    0%   { opacity: 0; transform: translateY(35px) rotateX(6deg); filter: blur(2px); }
    100% { opacity: 1; transform: translateY(0) rotateX(0);      filter: blur(0); }
}

/* JS sets --scroll-y as a 0-1 value on [data-scroll-fade] elements */
[data-scroll-fade] {
    opacity: var(--sf-opacity, 1);
    transform: translateY(var(--sf-ty, 0px)) scale(var(--sf-scale, 1));
    will-change: opacity, transform;
}

/* Parallax data attributes — JS writes transform values */
[data-parallax-speed] {
    will-change: transform;
    transform: translateZ(0);
}


/* ══════════════════════════════════════════════════════════════
   SHARED KEYFRAMES
   ══════════════════════════════════════════════════════════════ */

@keyframes gradientShift {
    0%, 100% { background-position: 0% center; }
    50%      { background-position: 200% center; }
}

@keyframes shimmer {
    0%   { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

@keyframes breathe {
    from { opacity: .5; transform: scale(1) rotate(0deg); }
    to   { opacity: 1;  transform: scale(1.12) rotate(3deg); }
}

@keyframes pulseGlow {
    0%, 100% { filter: drop-shadow(0 3px 8px var(--glow-gold)); }
    50%      { filter: drop-shadow(0 4px 20px var(--glow-gold)) drop-shadow(0 0 8px rgba(245,166,35,.3)); }
}

@keyframes morphBlob {
    0%, 100% { border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%; }
    25%      { border-radius: 60% 40% 50% 50% / 40% 60% 40% 60%; }
    50%      { border-radius: 50% 50% 40% 60% / 60% 40% 60% 40%; }
    75%      { border-radius: 40% 60% 60% 40% / 50% 50% 40% 60%; }
}

@keyframes rotateGlow {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}


/* ══════════════════════════════════════════════════════════════
   SCROLL PROGRESS BAR
   ══════════════════════════════════════════════════════════════ */

.scroll-progress {
    position: fixed; top: 0; left: 0; z-index: 201;
    height: 3px; width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent));
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
    transition: width .08s linear;
    box-shadow:
        0 0 8px var(--glow-gold),
        0 0 20px var(--glow-purple),
        0 0 40px rgba(245,166,35,.08);
}


/* ══════════════════════════════════════════════════════════════
   SCROLL REVEAL (IntersectionObserver-driven fallback)
   ══════════════════════════════════════════════════════════════ */

.reveal, .fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .65s var(--ease-expo), transform .65s var(--ease-expo);
}

.reveal.visible, .fade-up.visible { opacity: 1; transform: none; }
.fade-up-delay { transition-delay: .2s; }

/* Staggered card entrance */
.feature-card.reveal:nth-child(1) { transition-delay: 0s; }
.feature-card.reveal:nth-child(2) { transition-delay: .03s; }
.feature-card.reveal:nth-child(3) { transition-delay: .06s; }
.feature-card.reveal:nth-child(4) { transition-delay: .09s; }
.feature-card.reveal:nth-child(5) { transition-delay: .12s; }
.feature-card.reveal:nth-child(6) { transition-delay: .15s; }
.feature-card.reveal:nth-child(7) { transition-delay: .18s; }
.feature-card.reveal:nth-child(8) { transition-delay: .21s; }
.feature-card.reveal:nth-child(9) { transition-delay: .24s; }

.phone-showcase.reveal:nth-child(1) { transition-delay: 0s; }
.phone-showcase.reveal:nth-child(2) { transition-delay: .12s; }
.phone-showcase.reveal:nth-child(3) { transition-delay: .24s; }


/* ══════════════════════════════════════════════════════════════
   NAV
   ══════════════════════════════════════════════════════════════ */

.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background .4s, border-color .4s, box-shadow .4s;
    will-change: background, border-color;
}

.nav-scrolled {
    background: rgba(8,8,26,.92);
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    border-bottom-color: var(--border);
    box-shadow: 0 1px 0 rgba(245,166,35,.04), 0 4px 25px rgba(0,0,0,.25);
}

.nav-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 2rem;
    height: 64px; display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
    display: inline-flex; align-items: center; gap: .5rem;
    text-decoration: none;
    transition: transform .3s var(--ease-expo);
}
.nav-logo:hover { transform: scale(1.04); }

.logo-icon {
    flex-shrink: 0; display: block;
    filter: drop-shadow(0 1px 6px rgba(245,166,35,.4));
    transition: filter .3s;
}
.nav-logo:hover .logo-icon {
    filter: drop-shadow(0 2px 12px rgba(245,166,35,.6)) drop-shadow(0 0 25px rgba(245,166,35,.2));
}

.logo-text {
    font-weight: 800; font-size: 1.3rem;
    letter-spacing: -.03em;
    background: linear-gradient(135deg, #ffd252, #f5a623);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* App Store badge in nav — hidden until scroll */
.nav-cta {
    display: inline-flex; align-items: center;
    text-decoration: none;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .4s var(--ease-expo), transform .4s var(--ease-expo);
}
.nav-cta img {
    display: block;
    height: 36px;
    border-radius: 8px;
    transition: filter .3s, transform .3s;
}
.nav-scrolled .nav-cta {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.nav-cta:hover img {
    filter: brightness(1.15);
    transform: scale(1.05);
}


/* ══════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════ */

.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center;
    padding: 7rem 2rem 5rem; overflow: hidden;
    z-index: 2;
}

/* Morphing glow blob */
.hero-glow {
    position: absolute; top: -20%; left: 35%;
    width: 900px; height: 900px;
    background: radial-gradient(ellipse at center,
        rgba(245,166,35,.14) 0%, rgba(194,109,255,.1) 35%, transparent 60%
    );
    pointer-events: none;
    animation: breathe 8s ease-in-out infinite alternate, morphBlob 20s ease-in-out infinite;
}

/* Second blob */
.hero::after {
    content: '';
    position: absolute; top: 20%; left: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(ellipse, rgba(194,109,255,.08), transparent 60%);
    pointer-events: none;
    animation: breathe 10s ease-in-out 2s infinite alternate, morphBlob 25s ease-in-out 5s infinite;
}

.hero-content {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; gap: 5rem; width: 100%;
    position: relative; z-index: 6;
}

.hero-text { flex: 1; min-width: 0; }

/* Heading with shimmer gradient + multi-layer glow via filter */
.hero h1 {
    font-size: clamp(2.6rem, 6vw, 4.8rem);
    font-weight: 900; line-height: 1.06; letter-spacing: -.045em;
    background: linear-gradient(-45deg,
        #fff 0%, #fff 35%, rgba(245,166,35,.9) 50%, #fff 65%, #fff 100%
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 5s ease-in-out infinite;
    /* TECHNIQUE 4: multi-layer drop-shadow glow on text */
    filter:
        drop-shadow(0 0 12px rgba(245,166,35,.07))
        drop-shadow(0 0 35px rgba(245,166,35,.035));
}

.hero-sub {
    font-size: 1.1rem; color: var(--text-dim);
    max-width: 480px; line-height: 1.75; margin-bottom: 2.5rem;
}

.hero-actions { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; }

.badge-appstore {
    display: inline-block;
    transition: transform .3s var(--ease-expo), filter .3s;
}
.badge-appstore:hover {
    transform: translateY(-3px) scale(1.03);
    filter: brightness(1.15) drop-shadow(0 0 12px rgba(245,166,35,.12));
}
.badge-appstore-lg { display: block; margin: 0 auto; }

.hero-rating { text-align: center; }
.hero-rating .stars {
    color: var(--accent); font-size: 1.15rem; letter-spacing: 2px;
    text-shadow: 0 0 12px var(--glow-gold), 0 0 30px rgba(245,166,35,.12);
}
.hero-rating span { display: block; font-size: .78rem; color: var(--text-dim); margin-top: .15rem; }


/* ══════════════════════════════════════════════════════════════
   iPHONE 17 PRO DEVICE FRAME
   Titanium frame + Dynamic Island + screen inset
   ══════════════════════════════════════════════════════════════ */

/* Reusable frame — step phones & showcase */
.device-frame {
    position: relative;
    background: linear-gradient(160deg, #2c2c30 0%, #1a1a1e 40%, #232327 100%);
    padding: 4px;
    border-radius: 42px;
    overflow: hidden;
    /* Titanium edge catch */
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.08),
        inset 0 -1px 0 rgba(255,255,255,.03),
        0 0 0 .5px rgba(255,255,255,.1);
}

.device-frame img {
    display: block;
    width: 100%;
    border-radius: 38px;
    position: relative;
    z-index: 1;
}

/* Glass reflection on device screen */
.device-frame::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 38px;
    background: linear-gradient(135deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.02) 25%, transparent 45%);
    pointer-events: none;
    z-index: 5;
}

/* Dynamic Island */
.notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 24px;
    background: #000;
    border-radius: 24px;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 0 0 1px rgba(255,255,255,.04);
}

/* Front-facing camera lens inside the island */
.notch::after {
    content: '';
    position: absolute;
    top: 50%; right: 16px;
    transform: translateY(-50%);
    width: 8px; height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle, #0c0c18 30%, #1a1a2e 60%, #0c0c18 100%);
    box-shadow: inset 0 0.5px 1px rgba(80,80,120,.4), 0 0 3px rgba(80,80,120,.15);
}


/* ── Hero Phones — 3D tilt + multi-layer glow ──── */
.hero-phones {
    flex: 0 0 auto; position: relative;
    width: 370px; height: 510px;
    perspective: 1200px;
}

.phone {
    position: absolute;
    transition: transform .6s var(--ease-expo), box-shadow .5s;
    will-change: transform;
}

/* Device frame inside hero phones gets the glow shadows */
.phone .device-frame {
    width: 100%;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.08),
        inset 0 -1px 0 rgba(255,255,255,.03),
        0 0 0 .5px rgba(255,255,255,.1),
        0 25px 60px rgba(0,0,0,.5),
        0 0 35px rgba(245,166,35,.035),
        0 0 70px rgba(194,109,255,.02);
}

.phone-back {
    width: 235px; height: 470px; top: 35px; right: 0;
    transform: rotate(4deg); z-index: 1;
}
.phone-front {
    width: 255px; height: 510px; top: 0; left: 0;
    transform: rotate(-3deg); z-index: 2;
}

.hero-phones:hover .phone-front {
    transform: rotate(-1deg) translate(-6px,-8px) scale(1.02);
}
.hero-phones:hover .phone-front .device-frame {
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.1),
        0 0 0 .5px rgba(255,255,255,.14),
        0 40px 80px rgba(0,0,0,.6),
        0 0 50px rgba(245,166,35,.1),
        0 0 100px rgba(245,166,35,.04);
}
.hero-phones:hover .phone-back {
    transform: rotate(2deg) translate(6px,-4px) scale(1.01);
}
.hero-phones:hover .phone-back .device-frame {
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.1),
        0 0 0 .5px rgba(255,255,255,.14),
        0 35px 70px rgba(0,0,0,.5),
        0 0 40px rgba(194,109,255,.08),
        0 0 80px rgba(194,109,255,.03);
}


/* ══════════════════════════════════════════════════════════════
   SHARED SECTION STYLES
   ══════════════════════════════════════════════════════════════ */

.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

section h2 {
    font-size: clamp(1.75rem, 3.8vw, 2.8rem);
    font-weight: 800; letter-spacing: -.035em;
    text-align: center; line-height: 1.12;
    color: #fff;
    text-shadow: 0 0 20px rgba(255,255,255,.04), 0 0 60px rgba(245,166,35,.025);
}

.section-sub {
    text-align: center; color: var(--text-dim);
    font-size: 1.05rem; max-width: 520px;
    margin: .9rem auto 0; line-height: 1.65;
}


/* ══════════════════════════════════════════════════════════════
   HOW IT WORKS — Scroll-locked steps
   Outer runway is 300vh tall. Sticky viewport pins at top.
   JS drives which step is visible based on scroll position.
   ══════════════════════════════════════════════════════════════ */

.how-it-works {
    position: relative; z-index: 2;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(245,166,35,.06), transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(194,109,255,.05), transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(245,166,35,.04), transparent 40%),
        var(--bg);
}

.how-it-works::before {
    content: '';
    position: absolute; top: -200px; right: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(194,109,255,.06), transparent 60%);
    animation: breathe 12s ease-in-out infinite alternate, morphBlob 20s ease-in-out infinite;
    pointer-events: none;
}

.how-it-works::after {
    content: '';
    position: absolute; bottom: -150px; left: -150px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(245,166,35,.05), transparent 60%);
    animation: breathe 10s ease-in-out 3s infinite alternate, morphBlob 18s ease-in-out 5s infinite;
    pointer-events: none;
}

/* Tall scroll runway — gives 100vh per step */
.hiw-scroll-runway {
    height: 300vh;
    position: relative;
}

/* Sticky viewport — stays pinned while scrolling through steps */
.hiw-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 6rem 2rem 2rem;
}

.how-it-works h2 {
    margin-bottom: 2rem;
}

/* Step progress dots */
.hiw-dots {
    display: flex;
    gap: 10px;
    margin-bottom: 2rem;
}
.hiw-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    transition: background .4s ease, transform .4s var(--ease-expo), box-shadow .4s ease;
}
.hiw-dot.active {
    background: var(--accent);
    transform: scale(1.3);
    box-shadow: 0 0 12px var(--glow-gold);
}

/* Steps viewport — steps are stacked, JS controls which is active */
.hiw-steps-viewport {
    position: relative;
    width: 100%;
    max-width: 960px;
    flex: 1;
    min-height: 0;
    max-height: 520px;
    margin: 0 auto;
}

/* Each step: text left, phone right — always */
.step {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    pointer-events: none;
}

/* Text side — enters from right, exits to left */
.step .step-text {
    flex: 1;
    min-width: 0;
    opacity: 0;
    transform: translateX(80px);
    transition: opacity .55s var(--ease-expo), transform .55s var(--ease-expo);
}

/* Phone side — slides in from right + fades */
.step .step-phone {
    opacity: 0;
    transform: translateX(100px) scale(.95);
    transition: opacity .6s var(--ease-expo) .05s, transform .6s var(--ease-expo) .05s;
}

/* Active step */
.step.step-active {
    pointer-events: auto;
}
.step.step-active .step-text {
    opacity: 1;
    transform: translateX(0);
}
.step.step-active .step-phone {
    opacity: 1;
    transform: translateX(0) scale(1);
}

/* Exiting step — text flies left, phone fades */
.step.step-exit .step-text {
    opacity: 0;
    transform: translateX(-120px);
    transition: opacity .4s var(--ease-expo), transform .4s var(--ease-expo);
}
.step.step-exit .step-phone {
    opacity: 0;
    transform: translateX(80px) scale(.95);
    transition: opacity .35s ease-out, transform .35s ease-out;
}

.step-text { flex: 1; min-width: 0; }

.step-phone {
    flex: 0 0 auto; position: relative;
}

.step-phone::before {
    content: '';
    position: absolute; inset: 5%;
    border-radius: 50%;
    background: radial-gradient(ellipse, var(--glow-gold), var(--glow-purple) 40%, transparent 70%);
    opacity: 0; filter: blur(35px);
    transition: opacity .8s ease-out;
    z-index: -1;
    animation: morphBlob 15s ease-in-out infinite;
}

.step.step-active .step-phone::before { opacity: .5; }

.step-phone .device-frame {
    width: 250px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.08),
        inset 0 -1px 0 rgba(255,255,255,.03),
        0 0 0 .5px rgba(255,255,255,.1),
        0 24px 60px rgba(0,0,0,.5),
        0 0 25px rgba(245,166,35,.035);
    transition: box-shadow .4s;
}

.step-phone:hover .device-frame {
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.1),
        inset 0 -1px 0 rgba(255,255,255,.04),
        0 0 0 .5px rgba(255,255,255,.14),
        0 32px 70px rgba(0,0,0,.6),
        0 0 40px rgba(245,166,35,.08),
        0 0 80px rgba(245,166,35,.03);
}

.step-num {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px;
    margin-right: .6rem; vertical-align: middle; flex-shrink: 0;
}

.step-num svg {
    display: block; width: 48px; height: 48px;
    filter: drop-shadow(0 3px 8px var(--glow-gold));
    animation: pulseGlow 3s ease-in-out infinite;
}

.step-digit {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 1.1rem; color: #000;
    line-height: 1; padding-top: 2px;
}

.step h3 {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 800; margin-bottom: .75rem;
    letter-spacing: -.02em;
    display: flex; align-items: center;
}

.step p {
    color: var(--text-dim); font-size: 1.05rem;
    line-height: 1.65; max-width: 380px;
}

/* Stagger children within step text for cinematic entrance */
.step .step-text h3 {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity .45s var(--ease-expo), transform .45s var(--ease-expo);
}
.step .step-text p {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity .45s var(--ease-expo) .08s, transform .45s var(--ease-expo) .08s;
}
.step.step-active .step-text h3,
.step.step-active .step-text p {
    opacity: 1;
    transform: translateX(0);
}
.step.step-exit .step-text h3 {
    opacity: 0;
    transform: translateX(-80px);
    transition: opacity .35s var(--ease-expo), transform .35s var(--ease-expo);
}
.step.step-exit .step-text p {
    opacity: 0;
    transform: translateX(-80px);
    transition: opacity .35s var(--ease-expo) .04s, transform .35s var(--ease-expo) .04s;
}


/* ══════════════════════════════════════════════════════════════
   FEATURES — Glass Card System
   ══════════════════════════════════════════════════════════════ */

.features {
    padding: 8rem 2rem;
    background: var(--bg2);
    position: relative; z-index: 2;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute; top: -100px; right: -100px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(194,109,255,.04), transparent 60%);
    pointer-events: none;
    animation: breathe 15s ease-in-out infinite alternate;
}

.features::after {
    content: '';
    position: absolute; bottom: -100px; left: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(245,166,35,.03), transparent 60%);
    pointer-events: none;
    animation: breathe 12s ease-in-out 4s infinite alternate;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 3.5rem;
}

.feature-card {
    position: relative;
    background: rgba(14,14,36,.55);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border-radius: 16px;
    padding: 1.35rem 1.5rem;
    z-index: 1;
    overflow: hidden;
    isolation: isolate;
    transition: transform .4s var(--ease-expo), box-shadow .4s;
}

/* Animated conic gradient border */
.feature-card::before {
    content: '';
    position: absolute; inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, var(--border), var(--border));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: background .4s, opacity .4s;
    opacity: .6;
}

.feature-card:hover::before {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    background-size: 200% 100%;
    animation: gradientShift 2s ease infinite;
    opacity: 1;
}

/* Top edge highlight */
.feature-card::after {
    content: '';
    position: absolute;
    top: 0; left: 18%; right: 18%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.12) 30%, rgba(255,255,255,.2) 50%, rgba(255,255,255,.12) 70%, transparent);
    pointer-events: none; z-index: 2;
}

/* Mouse-tracking light (driven by JS --mouse-x/--mouse-y) */
.card-light {
    position: absolute; inset: 0;
    border-radius: 16px;
    background: radial-gradient(
        500px circle at var(--mouse-x, 50%) var(--mouse-y, -100%),
        rgba(255,255,255,.05), rgba(245,166,35,.02) 30%, transparent 55%
    );
    pointer-events: none; z-index: 2;
    opacity: 0;
    transition: opacity .35s;
}

.feature-card:hover .card-light { opacity: 1; }

/* Inner glow on hover */
.card-glow {
    position: absolute; inset: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(245,166,35,.04), transparent 40%, rgba(194,109,255,.03));
    opacity: 0; transition: opacity .45s;
    pointer-events: none;
}

.feature-card:hover .card-glow { opacity: 1; }

.feature-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow:
        0 24px 60px rgba(0,0,0,.4),
        0 0 35px rgba(245,166,35,.05),
        0 0 70px rgba(194,109,255,.03);
}

.feature-card h3 {
    font-size: 1.05rem; font-weight: 700;
    margin-bottom: .3rem; letter-spacing: -.01em;
    position: relative; z-index: 3;
}

.feature-icon {
    font-size: 1.2rem; margin-right: .35rem;
    vertical-align: -1px;
    display: inline-block;
    transition: transform .3s;
}
.feature-card:hover .feature-icon { transform: scale(1.25) rotate(-5deg); }

.feature-card p {
    margin-top: .3rem;
    color: var(--text-dim); font-size: .88rem; line-height: 1.6;
    position: relative; z-index: 3;
}


/* ══════════════════════════════════════════════════════════════
   SHOWCASE
   ══════════════════════════════════════════════════════════════ */

.showcase {
    padding: 8rem 2rem;
    position: relative; z-index: 2;
}

.showcase-grid {
    display: flex; justify-content: center;
    gap: 2.5rem; margin-top: 3.5rem; flex-wrap: wrap;
    perspective: 1200px;
}

.phone-showcase {
    text-align: center; position: relative;
    transition: transform .5s var(--ease-expo);
}

.phone-showcase::after {
    content: '';
    position: absolute;
    bottom: 20px; left: 5%; right: 5%;
    height: 70%; border-radius: 50%;
    background: radial-gradient(ellipse, var(--glow-gold), var(--glow-purple) 40%, transparent 70%);
    opacity: 0; filter: blur(30px);
    transition: opacity .5s; z-index: -1;
}
.phone-showcase:hover::after { opacity: .35; }

.phone-showcase .device-frame {
    width: 230px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.08),
        inset 0 -1px 0 rgba(255,255,255,.03),
        0 0 0 .5px rgba(255,255,255,.1),
        0 20px 50px rgba(0,0,0,.45),
        0 0 22px rgba(245,166,35,.025);
    transition: transform .5s var(--ease-expo), box-shadow .5s;
}

.phone-showcase:nth-child(1) .device-frame { transform: rotateY(6deg); }
.phone-showcase:nth-child(3) .device-frame { transform: rotateY(-6deg); }

.phone-showcase:hover .device-frame {
    transform: rotateY(0deg) translateY(-14px) scale(1.04);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.1),
        inset 0 -1px 0 rgba(255,255,255,.04),
        0 0 0 .5px rgba(255,255,255,.14),
        0 36px 80px rgba(0,0,0,.55),
        0 0 50px rgba(245,166,35,.08),
        0 0 100px rgba(245,166,35,.03);
}

.phone-showcase:hover { transform: translateY(-4px); }

.theme-label {
    display: block; margin-top: .9rem;
    font-size: .82rem; font-weight: 600; color: var(--text-dim);
    transition: color .3s, text-shadow .3s, transform .3s;
}
.phone-showcase:hover .theme-label {
    color: var(--accent);
    text-shadow: 0 0 14px rgba(245,166,35,.25), 0 0 40px rgba(245,166,35,.06);
    transform: translateY(-2px);
}


/* ══════════════════════════════════════════════════════════════
   iPAD SECTION
   ══════════════════════════════════════════════════════════════ */

.ipad-section {
    padding: 8rem 2rem;
    background: var(--bg2);
    position: relative; z-index: 2;
}

.ipad-layout { display: flex; align-items: center; gap: 4rem; }
.ipad-text { flex: 1; }
.ipad-text h2 { text-align: left; }

.ipad-text p {
    color: var(--text-dim); font-size: 1.02rem;
    margin-top: 1rem; line-height: 1.7; max-width: 420px;
}

.check-list {
    list-style: none; margin-top: 1.75rem;
    display: flex; flex-direction: column; gap: .6rem;
}

.check-list li {
    font-size: .92rem; padding-left: 1.6rem; position: relative;
    transition: transform .3s var(--ease-expo), color .25s;
}
.check-list li:hover { transform: translateX(6px); color: #fff; }
.check-list li::before {
    content: '\2713'; position: absolute; left: 0;
    color: var(--accent); font-weight: 700;
    transition: text-shadow .3s, transform .3s;
}
.check-list li:hover::before {
    text-shadow: 0 0 10px var(--glow-gold), 0 0 25px rgba(245,166,35,.12);
    transform: scale(1.2);
}

.ipad-frame { flex: 1.2; position: relative; }

.ipad-frame::before {
    content: '';
    position: absolute;
    bottom: -15px; left: 5%; right: 5%;
    height: 50%; border-radius: 50%;
    background: radial-gradient(ellipse, var(--glow-gold), var(--glow-purple) 40%, transparent 70%);
    opacity: 0; filter: blur(40px);
    transition: opacity .6s; z-index: -1;
}
.ipad-frame:hover::before { opacity: .3; }

/* iPad uses device-frame but with softer corners (no Dynamic Island) */
.device-ipad {
    border-radius: 22px;
    padding: 5px;
}
.device-ipad img {
    border-radius: 17px;
}
.device-ipad::after {
    inset: 5px;
    border-radius: 17px;
}

.ipad-frame .device-frame {
    width: 100%;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.08),
        inset 0 -1px 0 rgba(255,255,255,.03),
        0 0 0 .5px rgba(255,255,255,.1),
        0 28px 70px rgba(0,0,0,.45),
        0 0 30px rgba(245,166,35,.025);
    transition: transform .5s var(--ease-expo), box-shadow .5s;
}

/* Hover transform handled by JS iPad tilt */


/* ══════════════════════════════════════════════════════════════
   WORD CLOUD
   ══════════════════════════════════════════════════════════════ */

.usecases {
    padding: 5.5rem 2rem 6.5rem;
    position: relative; z-index: 2;
}

.word-cloud {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline;
    gap: .5rem .8rem; margin-top: 2.5rem;
    max-width: 900px; margin-left: auto; margin-right: auto;
}

.wc {
    display: inline-block;
    font-weight: 600; color: var(--text-dim);
    transition: color .3s, transform .5s var(--ease-expo), text-shadow .3s, letter-spacing .3s;
    cursor: default; white-space: nowrap;
    will-change: transform;
}
.wc:hover {
    color: var(--accent);
    text-shadow: 0 0 20px rgba(245,166,35,.35), 0 0 50px rgba(245,166,35,.1), 0 0 80px rgba(245,166,35,.04);
    letter-spacing: .02em;
}

@keyframes wcFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(calc(var(--float-dist) * -1)); }
}
.wc-float { animation: wcFloat var(--float-dur) var(--float-delay) ease-in-out infinite; }

.wc-sm { font-size: .8rem;  opacity: .5; }
.wc-md { font-size: 1.1rem; opacity: .65; }
.wc-lg { font-size: 1.4rem; opacity: .8; }
.wc-xl { font-size: 1.8rem; opacity: .95; font-weight: 800; color: var(--text); }


/* ══════════════════════════════════════════════════════════════
   CTA — with rotating conic glow + sparkle field
   ══════════════════════════════════════════════════════════════ */

.cta {
    position: relative; padding: 8rem 2rem;
    text-align: center; overflow: hidden; z-index: 2;
    background: linear-gradient(180deg, var(--bg), var(--bg2));
}

.cta-glow {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 1000px; height: 1000px;
    background: conic-gradient(from 0deg,
        transparent 0deg, rgba(245,166,35,.08) 60deg, transparent 120deg,
        rgba(194,109,255,.06) 200deg, transparent 280deg,
        rgba(245,166,35,.05) 340deg, transparent 360deg
    );
    pointer-events: none;
    animation: rotateGlow 20s linear infinite;
    filter: blur(60px);
}

.cta h2 {
    background: linear-gradient(135deg, #fff 20%, var(--accent) 50%, var(--accent2) 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.cta .section-sub { margin-bottom: 2.5rem; position: relative; }

/* CTA badge — clean, no visible border */


/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */

.footer {
    border-top: 1px solid var(--border);
    padding: 1.75rem 0;
    position: relative; z-index: 2;
}

.footer-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 2rem;
    display: flex; align-items: center; justify-content: center;
    flex-wrap: wrap; gap: 1.5rem;
}

.footer-links { display: flex; gap: 1.25rem; }
.footer-links a {
    color: var(--text-dim); text-decoration: none; font-size: .82rem;
    transition: color .25s, text-shadow .25s;
}
.footer-links a:hover {
    color: var(--text);
    text-shadow: 0 0 8px rgba(255,255,255,.08);
}
.footer-text { font-size: .78rem; color: var(--text-dim); }


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .ipad-layout { flex-direction: column; gap: 3rem; }
    .ipad-text h2 { text-align: center; }
    .ipad-text p { max-width: 100%; }
    .ipad-text { text-align: center; }
    .check-list { align-items: center; }
    .lens-flare { display: none; }
}

@media (max-width: 768px) {
    html, body { overflow-x: hidden; }
    .hero-content { flex-direction: column; text-align: center; gap: 3rem; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-phones { width: 290px; height: 410px; }
    .phone-back { width: 185px; height: 370px; top: 28px; }
    .phone-front { width: 205px; height: 410px; }
    .feature-grid { grid-template-columns: 1fr; }
    /* Disable scroll-lock on mobile — stack steps normally */
    .hiw-scroll-runway { height: auto; }
    .hiw-sticky {
        position: relative;
        height: auto;
        padding: 4rem 1.5rem;
    }
    .hiw-steps-viewport {
        display: flex;
        flex-direction: column;
        gap: 3rem;
        height: auto;
        max-height: none;
        flex: none;
    }
    .step {
        position: relative;
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        pointer-events: auto;
    }
    .hiw-dots { display: none; }
    .step .step-text,
    .step .step-phone {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .step .step-text h3,
    .step .step-text p {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .step p { max-width: 100%; }
    .step-phone .device-frame { width: 200px; }
    .showcase-grid { gap: 1.5rem; }
    .phone-showcase .device-frame { width: 170px; }
    .phone-showcase:nth-child(1) .device-frame,
    .phone-showcase:nth-child(3) .device-frame { transform: none; }
    .notch { height: 20px; width: 72px; top: 10px; }
    .phone .notch { top: 12px; }
    .device-frame { border-radius: 36px; }
    .device-frame img { border-radius: 32px; }
    .device-frame::after { border-radius: 32px; }
    .wc-xl { font-size: 1.4rem; }
    .wc-lg { font-size: 1.15rem; }
    .wc-md { font-size: .9rem; }
    .wc-sm { font-size: .7rem; }
    .footer-inner { flex-direction: column; text-align: center; }

    /* Simplify heavy effects on mobile */
    .light-streak, .light-streak-2, .bokeh-field, .foreground-particles, .hero-light-rays { display: none; }
    .parallax-space { display: none; }
    .section-slash { height: 50px; overflow: hidden; }
    .section-fade  { height: 80px; margin-top: -40px; margin-bottom: -40px; }
    .stars-bg { display: none; }

    /* Prevent horizontal overflow from decorative blobs */
    .hero,
    .features,
    .showcase,
    .ipad-section,
    .usecases,
    .cta { overflow-x: clip; }
    .hiw-sticky { overflow-x: clip; }

    /* Disable scroll-driven hero on mobile */
    .hero-content { animation: none !important; }
}

@media (max-width: 480px) {
    .hero { padding: 6.5rem 1.25rem 3rem; }
    .hero-phones { width: 250px; height: 360px; }
    .phone-back { width: 160px; height: 320px; top: 25px; }
    .phone-front { width: 180px; height: 360px; }
    .phone-showcase .device-frame { width: 145px; }
    .nav-inner { padding: 0 1.25rem; }
    section { padding-left: 1.25rem; padding-right: 1.25rem; }
    .section-slash { height: 35px; }
    .section-fade  { height: 50px; margin-top: -25px; margin-bottom: -25px; }
}

/* ── Accessibility: Reduced Motion ─────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .parallax-space, .foreground-particles { display: none; }
    .hero-content { animation: none !important; }
    .reveal, .fade-up { opacity: 1; transform: none; }
    .scroll-progress { display: none; }
}
