
:root {
    --snap: #6B5CE7;
    --clip: #5F86F5;
    --origin: #2D5BE3;
    --origin-ring: #FF5A36;
    --gaze: #818CF8;
    --narration: var(--joy-2);

    --page: 1200px;
    --gutter: 24px;
    --radius: 28px;
    --frame-ratio: calc(16 / 9);

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --drift: 22s;
    --float: 7s;
    --marquee: 40s;

    --word-from: 120%;
    --hero-word-count: 4;
    --hero-words-start: 120ms;
    --hero-word-stagger: 70ms;
    --hero-word-duration: 900ms;
    --hero-last-word: calc(var(--hero-words-start) + (var(--hero-word-count) - 1) * var(--hero-word-stagger));
    --hero-words-landed: calc(var(--hero-last-word) + var(--hero-word-duration) / 2);
    --hero-smile-delay: var(--hero-words-landed);
    --hero-smile-duration: 1400ms;
    --hero-sparkle-delay: calc(var(--hero-smile-delay) + var(--hero-smile-duration) * 0.7);
    --hero-sparkle-duration: 900ms;
    --hero-twinkle-delay: calc(var(--hero-sparkle-delay) + var(--hero-sparkle-duration));
    --hero-follow-delay: calc(var(--hero-smile-delay) + 100ms);
    --hero-follow-step: 120ms;

    --heading-word-stagger: 55ms;
    --heading-word-duration: 900ms;

    --hero-light-size: 520px;
    --hero-light-core: color-mix(in srgb, var(--joy-2) 26%, transparent);
    --hero-light-edge: color-mix(in srgb, var(--joy-1) 18%, transparent);
    --hero-light-fade: 800ms;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; background: var(--bg); }

body {
    font-family: var(--font-body); font-size: 17px; line-height: 1.6; color: var(--text);
    background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.04em; line-height: 1.02; }
h2 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); }

.wrap { width: min(var(--page), 100% - 2 * var(--gutter)); margin-inline: auto; }

.joy-text { background: var(--joy); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px;
    font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3);
}
.eyebrow .spark { width: 12px; height: 12px; }

.lede { font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: var(--text-2); max-width: 640px; }

.spark { display: inline-block; width: 1em; height: 1em; flex-shrink: 0; }

.btn {
    display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px;
    font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
    transition: transform 300ms var(--ease), background 300ms var(--ease), border-color 300ms var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn .arrow { transition: transform 300ms var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background 400ms var(--ease), box-shadow 400ms var(--ease); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav.scrolled { background: rgba(7, 6, 12, 0.7); box-shadow: 0 1px 0 var(--line); backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px); }
.nav .logo img { width: 128px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { text-decoration: none; font-size: 0.93rem; font-weight: 500; color: var(--text-2); transition: color 300ms; }
.nav-links a:hover { color: var(--text); }
.nav-links .btn { padding: 9px 18px; font-size: 0.9rem; color: var(--bg); }

.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 130px 0 72px; isolation: isolate; }
.aurora { position: absolute; inset: -20%; z-index: -2; pointer-events: none; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; animation: drift var(--drift) ease-in-out infinite alternate; }
.aurora .a1 { width: 46vmax; height: 46vmax; left: 8%; top: 4%; background: var(--joy-1); }
.aurora .a2 { width: 38vmax; height: 38vmax; right: 6%; top: 18%; background: var(--joy-2); animation-delay: -7s; opacity: 0.42; }
.aurora .a3 { width: 30vmax; height: 30vmax; left: 38%; bottom: 0; background: var(--joy-3); animation-delay: -14s; opacity: 0.32; }
@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(6vmax, -4vmax) scale(1.12); }
    100% { transform: translate(-5vmax, 5vmax) scale(0.95); }
}
.hero::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.18; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 40%; z-index: -1; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }

.hero-light {
    display: none; position: absolute; left: 0; top: 0; z-index: -2; pointer-events: none; opacity: 0;
    width: var(--hero-light-size); height: var(--hero-light-size); margin: calc(var(--hero-light-size) / -2) 0 0 calc(var(--hero-light-size) / -2);
    border-radius: 50%; background: radial-gradient(circle, var(--hero-light-core), var(--hero-light-edge) 45%, transparent 70%);
    mix-blend-mode: screen; transform: translate3d(var(--lx, 0px), var(--ly, 0px), 0); transition: opacity var(--hero-light-fade) var(--ease);
}
.hero-light.on { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .hero-light { display: block; } }

.hero-copy { text-align: center; max-width: 1040px; margin: 0 auto; }
.hero h1 { font-size: clamp(2.8rem, 7vw, 6.2rem); font-weight: 800; letter-spacing: -0.05em; line-height: 0.98; margin-bottom: 30px; animation: none; }
.hero h1 .w, .reveal-words .w { --pad-x: 0.08em; --pad-bottom: 0.2em; display: inline-block; vertical-align: top; overflow: hidden; padding: 0 var(--pad-x) var(--pad-bottom); margin: 0 calc(-1 * var(--pad-x)) calc(-1 * var(--pad-bottom)); }
.hero h1 .w > span, .reveal-words .w > span { display: inline-block; }
.hero h1 .w > span { animation: word-rise var(--hero-word-duration) var(--ease) calc(var(--hero-words-start) + var(--i) * var(--hero-word-stagger)) both; }
@keyframes word-rise { from { transform: translateY(var(--word-from)); } }
.hero h1 .smile-word { position: relative; display: inline-block; white-space: nowrap; }
.hero h1 .smile { position: absolute; left: -2%; bottom: -0.36em; width: 104%; height: auto; overflow: visible; }
.hero h1 .smile path { fill: none; stroke: url(#joyGradient); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 1 2; stroke-dashoffset: 1; animation: draw var(--hero-smile-duration) var(--ease) var(--hero-smile-delay) forwards; }
.hero h1 .twinkle { position: absolute; right: -0.42em; top: -0.18em; width: 0.42em; height: 0.42em; transform: scale(0) rotate(-45deg); animation: twinkle-in var(--hero-sparkle-duration) var(--ease) var(--hero-sparkle-delay) forwards, twinkle 4s ease-in-out var(--hero-twinkle-delay) infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes twinkle-in { to { transform: scale(1) rotate(0); } }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(0.7) rotate(45deg); } }
.hero .lede { margin: 0 auto 40px; }
.hero-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.hero-copy > * { animation: rise-in 1100ms var(--ease) both; }
.hero-copy > :nth-child(3) { animation-delay: var(--hero-follow-delay); }
.hero-copy > :nth-child(4) { animation-delay: calc(var(--hero-follow-delay) + var(--hero-follow-step)); }
.hero-copy > :nth-child(5) { animation-delay: calc(var(--hero-follow-delay) + 2 * var(--hero-follow-step)); }
@keyframes rise-in { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

.hero-apps { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px clamp(22px, 5vw, 64px); margin-top: 60px; }
.hero-apps a { position: relative; display: block; text-decoration: none; text-align: center; animation: rise-in 1200ms var(--ease) both; }
.hero-apps a:nth-child(1) { animation-delay: calc(var(--hero-follow-delay) + 3 * var(--hero-follow-step)); }
.hero-apps a:nth-child(2) { animation-delay: calc(var(--hero-follow-delay) + 4 * var(--hero-follow-step)); }
.hero-apps a:nth-child(3) { animation-delay: calc(var(--hero-follow-delay) + 5 * var(--hero-follow-step)); }
.hero-apps a:nth-child(4) { animation-delay: calc(var(--hero-follow-delay) + 6 * var(--hero-follow-step)); }
.hero-apps a:nth-child(5) { animation-delay: calc(var(--hero-follow-delay) + 7 * var(--hero-follow-step)); }
.hero-apps .float { display: block; animation: bob var(--float) ease-in-out infinite; }
.hero-apps a:nth-child(2) .float { animation-delay: -2.3s; }
.hero-apps a:nth-child(3) .float { animation-delay: -4.6s; }
.hero-apps a:nth-child(4) .float { animation-delay: -6.1s; }
.hero-apps a:nth-child(5) .float { animation-delay: -3.4s; }
.hero-apps img { width: clamp(68px, 9vw, 104px); height: auto; transform: translate(var(--px, 0), var(--py, 0)); transition: transform 600ms var(--ease); filter: drop-shadow(0 22px 34px var(--glow)); }
.hero-apps a:hover img { transform: translate(var(--px, 0), var(--py, 0)) scale(1.08); }
.hero-apps small { display: block; margin-top: 14px; font-size: 0.82rem; font-weight: 500; color: var(--text-3); transition: color 300ms; }
.hero-apps a:hover small { color: var(--text); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; animation: slide var(--marquee) linear infinite; }
.marquee ul { display: flex; list-style: none; gap: 48px; padding-right: 48px; }
.marquee li { display: flex; align-items: center; gap: 48px; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; color: var(--text-2); white-space: nowrap; }
.marquee li::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--joy); }
@keyframes slide { to { transform: translateX(-50%); } }

.section { padding: clamp(100px, 13vw, 180px) 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(48px, 7vw, 88px); }
.section-head h2 { margin-bottom: 22px; }
.section-head h2 .dim { color: var(--text-3); }

.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1000ms var(--ease), transform 1000ms var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 100ms; }
.reveal.d2 { transition-delay: 200ms; }
.reveal.d3 { transition-delay: 300ms; }

.js .reveal-words .w > span { transform: translateY(var(--word-from)); }
.js .reveal-words.in .w > span { transform: none; transition: transform var(--heading-word-duration) var(--ease) calc(var(--i) * var(--heading-word-stagger)); }

.chapters { display: grid; gap: 28px; }
.chapter {
    --tint: var(--snap);
    position: sticky; top: 96px; min-height: min(680px, calc(100svh - 120px));
    display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 56px); align-items: center;
    padding: clamp(28px, 4.5vw, 64px); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
    background:
        radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--tint) 42%, transparent), transparent 60%),
        radial-gradient(80% 80% at 0% 100%, color-mix(in srgb, var(--tint) 18%, transparent), transparent 70%),
        var(--bg-2);
    transform-origin: 50% 0; transform: scale(var(--stack, 1)); filter: brightness(var(--dim, 1));
    box-shadow: 0 -30px 60px -30px rgba(0, 0, 0, 0.8);
}
.chapter.clip { --tint: var(--clip); }
.chapter.origin { --tint: var(--origin); }
.chapter.gaze { --tint: var(--gaze); }
.chapter.narration { --tint: var(--narration); }
.chapter-text { position: relative; z-index: 1; }
.chapter-id { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.chapter-id img { width: 60px; height: 60px; }
.chapter-id b { display: block; font-family: var(--font-display); font-size: 1.35rem; letter-spacing: -0.02em; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 500; color: var(--text-2); }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2); }
.status.soon::before { background: #FBBF24; box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2); }
.chapter h3 { font-size: clamp(2rem, 3.8vw, 3.2rem); letter-spacing: -0.045em; line-height: 1.02; margin-bottom: 18px; }
.chapter p { color: var(--text-2); margin-bottom: 22px; max-width: 470px; }
.points { list-style: none; display: grid; gap: 10px; margin-bottom: 32px; }
.points li { display: flex; align-items: center; gap: 12px; font-size: 0.97rem; color: var(--text); }
.points li::before { content: ''; width: 18px; height: 1px; background: var(--tint); box-shadow: 0 0 10px var(--tint); }
.chapter-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.chapter-cta small { color: var(--text-3); font-size: 0.85rem; }

.chapter-media { position: relative; z-index: 1; display: flex; justify-content: center; align-items: center; height: 100%; }
.frame { width: 100%; aspect-ratio: var(--frame-ratio); border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 0, 0, 0.4); background: #000; }
.frame video { width: 100%; height: 100%; object-fit: cover; }
.duo { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1 / 1.02; }
.duo .mac { position: absolute; left: 0; top: 0; width: 58%; border-radius: 18px; box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.8); }
.duo .phone { position: absolute; right: 2%; bottom: 0; width: 40%; border-radius: 30px; border: 6px solid #15131C; box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.85); }
.origin-stage { position: relative; width: 118%; margin-right: -24%; }
.origin-shot { width: 100%; border-radius: 14px; box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.8); }
.gaze-stage { position: relative; width: 118%; margin-right: -24%; }
.gaze-shot { width: 100%; border-radius: 14px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 50px 100px -30px rgba(0, 0, 0, 0.8); }

.narration-window {
    --narration-wave-height: 56px;
    width: 100%; max-width: 540px; padding: clamp(20px, 3vw, 30px); border-radius: 18px;
    border: 1px solid var(--line-2); background: color-mix(in srgb, var(--bg) 82%, transparent);
    box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.8);
}
.narration-defs { position: absolute; }
.narration-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: clamp(22px, 4vw, 36px); }
.narration-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 0.8rem; font-weight: 600; color: var(--text); }
.narration-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--narration); }
.narration-time { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; color: var(--text-3); font-variant-numeric: tabular-nums; }
.narration-say { position: relative; }
.narration-wave { display: block; width: 100%; height: var(--narration-wave-height); fill: none; stroke: color-mix(in srgb, var(--narration) 30%, transparent); stroke-width: 4; stroke-linecap: round; }
.narration-line { display: grid; margin: 10px 0 clamp(24px, 4vw, 36px); font-family: 'Nirmala UI', 'Kohinoor Devanagari', 'Noto Sans Devanagari', var(--font-body); font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 500; line-height: 1.7; color: var(--text); }
.narration-line > span { grid-area: 1 / 1; opacity: 0; transition: opacity 250ms var(--ease); }
.narration-line > .on { opacity: 1; transition-delay: 250ms; }
.narration-line > :lang(en) { font-family: var(--font-body); }
.narration-track { position: relative; height: 14px; border-radius: 7px; background: var(--surface); }
.narration-track span { position: absolute; top: 0; bottom: 0; left: var(--at); width: var(--len); border-radius: 7px; background: var(--joy); opacity: 0.75; }

.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.principle {
    position: relative; overflow: hidden; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); border: 1px solid var(--line);
    background: radial-gradient(500px circle at var(--mx, 50%) var(--my, -20%), rgba(214, 51, 140, 0.13), transparent 60%), var(--surface);
}
.principle .num { font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; margin-bottom: 40px; display: block; }
.principle h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 14px; }
.principle p { color: var(--text-2); }
.principle .proof { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--text-3); }

.next { text-align: center; }
.next .big-spark { width: clamp(80px, 12vw, 140px); height: auto; margin: 0 auto 40px; animation: twinkle 5s ease-in-out infinite; filter: drop-shadow(0 0 40px rgba(214, 51, 140, 0.55)); }
.next h2 { font-size: clamp(2.6rem, 7vw, 6rem); margin-bottom: 22px; }
.joy-words .w > span {
    background: var(--joy); background-repeat: no-repeat; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    background-size: calc(100% / (var(--g1) - var(--g0))) 100%; background-position: calc(var(--g0) / (1 - var(--g1) + var(--g0)) * 100%) 0;
}
.joy-words .w:nth-child(1) > span { --g0: 0; --g1: 0.226; }
.joy-words .w:nth-child(2) > span { --g0: 0.259; --g1: 0.551; }
.joy-words .w:nth-child(3) > span { --g0: 0.584; --g1: 1; }
.next .lede { margin: 0 auto 40px; }

.footer { border-top: 1px solid var(--line); padding-top: 72px; overflow: hidden; }
.footer-cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-cols p { color: var(--text-3); font-size: 0.92rem; max-width: 300px; margin-top: 14px; }
.footer-cols h4 { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 18px; }
.footer-cols ul { list-style: none; display: grid; gap: 10px; }
.footer-cols ul a { text-decoration: none; color: var(--text-2); font-size: 0.95rem; transition: color 300ms; }
.footer-cols ul a:hover { color: var(--text); }
.wordmark { margin: clamp(60px, 9vw, 120px) auto -1.2vw; width: 100%; opacity: 0.1; -webkit-mask-image: linear-gradient(#000 30%, transparent); mask-image: linear-gradient(#000 30%, transparent); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 24px 0 32px; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--text-3); }

@media (max-width: 960px) {
    .nav-links a:not(.btn) { display: none; }
    .chapter { position: relative; top: 0; grid-template-columns: minmax(0, 1fr); min-height: 0; transform: none; filter: none; }
    .origin-stage, .gaze-stage { width: 100%; margin-right: 0; }
    .principles { grid-template-columns: minmax(0, 1fr); }
    .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    .nav .logo img { width: 112px; }
    .hero { padding-top: 120px; }
    .hero-apps { margin-top: 56px; }
    .footer-cols { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .hero h1 .w > span { transform: none; }
    .js .reveal-words .w > span { transform: none; }
    .hero-light { display: none; }
    .hero h1 .smile path { stroke-dashoffset: 0; }
    .hero h1 .twinkle { transform: none; }
    .js .reveal { opacity: 1; transform: none; }
    .chapter { --stack: 1; --dim: 1; }
}
