:root {
  --night: #020719;
  --night-2: #08102B;
  --line-d: rgba(150, 170, 255, .16);
  --text-d: #EEF1FF;
  --muted-d: #95A1C4;
  --ice: #EEF1F8;
  --paper: #FFFFFF;
  --ink: #0B1020;
  --muted: #535C73;
  --line: #D6DCE8;
  --cobalt: #3D5BFF;
  --cobalt-hi: #6B83FF;
  --seam: #C9D5FF;
  --amber: #F5A524;
  --green: #22B07D;

  --display: "Sora", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --gut: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--night); color: var(--text-d);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.75rem); }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--cobalt-hi); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding-inline: var(--gut); }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 28px; border-radius: 999px;
  background: var(--cobalt); color: #fff; border: 1px solid rgba(255,255,255,.18);
  font: 600 1rem var(--body); text-decoration: none; isolation: isolate;
  box-shadow: 0 0 0 0 rgba(61,91,255,.0), 0 10px 30px -10px rgba(61,91,255,.8);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease), background .2s;
}
.btn:hover { background: #4A66FF; box-shadow: 0 0 0 6px rgba(61,91,255,.18), 0 14px 40px -10px rgba(61,91,255,.9); transform: translateY(-1px); }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: .9375rem; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); box-shadow: none; }
.btn--ghost:hover { background: var(--ink); color: #fff; box-shadow: none; }
.link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; text-decoration-color: var(--cobalt-hi); }
.link:hover { color: var(--seam); }
.light .link:hover { color: var(--cobalt); }

/* ---------- intro ---------- */
.intro { display: none; }
.js .intro {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 40;
  background: var(--night);
}
.intro__mark { width: 96px; height: 96px; overflow: visible; }
.intro__l { fill: #fff; }
.intro__r { fill: var(--cobalt-hi); }
.intro__seam { fill: var(--seam); opacity: 0; filter: drop-shadow(0 0 4px var(--seam)) drop-shadow(0 0 10px var(--cobalt)); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; gap: 28px;
  padding: 18px var(--gut);
  transition: background .3s, backdrop-filter .3s, padding .3s;
}
.nav.is-scrolled { background: rgba(2,7,25,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-block: 12px; border-bottom: 1px solid var(--line-d); }
.nav__brand img { height: 26px; width: auto; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { text-decoration: none; color: var(--muted-d); font-weight: 500; font-size: .9688rem; transition: color .2s; }
.nav__links a:hover { color: #fff; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; align-content: center;
  padding: 120px var(--gut) 96px; overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__video { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(2,7,25,.92) 0%, rgba(2,7,25,.6) 38%, rgba(2,7,25,0) 62%),
    linear-gradient(0deg, var(--night) 0%, rgba(2,7,25,0) 30%);
}
.hero__inner { position: relative; z-index: 1; max-width: calc(var(--wrap)); width: 100%; margin: 0 auto; }
.hero__title { font-size: clamp(2.9rem, 5.8vw, 5.6rem); font-weight: 600; letter-spacing: -0.045em; line-height: .98; max-width: 10.5ch; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: block; }
.line--soft { color: var(--muted-d); font-weight: 300; }
.hero__lede { margin-top: 30px; max-width: 33em; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: #C3CCE6; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: 38px; }
.hero__for {
  position: relative; z-index: 1; max-width: var(--wrap); width: 100%; margin: 72px auto 0;
  padding-top: 18px; border-top: 1px solid var(--line-d); color: var(--muted-d); font-size: .9375rem;
}

/* ---------- story ---------- */
.story { padding: clamp(96px, 16vw, 200px) var(--gut); }
.story__text {
  max-width: 22ch; margin: 0 auto; text-align: left;
  font: 600 clamp(2rem, 5.4vw, 4.6rem)/1.08 var(--display); letter-spacing: -0.035em;
  max-width: 1100px;
}
.story__text .w { color: rgba(238,241,255,.16); transition: color .2s linear; }
.story__text .w.is-lit { color: var(--text-d); }
.story__text .w--hot.is-lit { color: var(--seam); text-shadow: 0 0 28px rgba(107,131,255,.55); }

/* ---------- replay (pinned phone) ---------- */
.replay { position: relative; }
.replay__pin {
  min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: clamp(32px, 6vw, 96px); align-items: center;
  max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 96px var(--gut);
}
.replay h2 { max-width: 13ch; }
.clock { list-style: none; margin: 44px 0 0; padding: 0; display: grid; gap: 6px; }
.clock__item {
  display: grid; grid-template-columns: 6.5em 1fr; gap: 20px; align-items: baseline;
  padding: 16px 0 16px 20px; border-left: 2px solid var(--line-d);
  color: var(--muted-d); opacity: .45; transition: opacity .35s, border-color .35s, color .35s;
}
.clock__item time { font: 600 1rem var(--display); color: var(--text-d); font-variant-numeric: tabular-nums; }
.clock__item.is-on { opacity: 1; border-left-color: var(--cobalt-hi); color: #C3CCE6; }

.phone {
  margin: 0; width: min(100%, 380px); justify-self: center;
  border-radius: 46px; padding: 12px;
  background: linear-gradient(160deg, #1A2348, #070C22 60%);
  border: 1px solid rgba(150,170,255,.22);
  box-shadow: 0 40px 100px -30px rgba(61,91,255,.55), inset 0 1px 0 rgba(255,255,255,.08);
}
.phone__top { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 20px 12px; font: 600 .9688rem var(--display); }
.phone__top small { font: 400 .8125rem var(--body); color: var(--muted-d); }
.feed {
  list-style: none; margin: 0; padding: 18px 14px 20px; min-height: 480px;
  background: #F6F8FD; color: var(--ink); border-radius: 36px;
  display: flex; flex-direction: column; gap: 10px;
}
.msg { max-width: 84%; padding: 10px 14px; border-radius: 18px; font-size: .9375rem; line-height: 1.4; }
.msg small { display: block; font-size: .75rem; opacity: .75; margin-bottom: 2px; }
.msg--out { align-self: flex-end; background: var(--cobalt); color: #fff; border-bottom-right-radius: 6px; }
.msg--in { align-self: flex-start; background: #E3E8F3; border-bottom-left-radius: 6px; }
.evt { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; font-size: .875rem; line-height: 1.3; }
.evt b { display: block; font-size: .9375rem; }
.evt span { color: var(--muted); }
.evt i { flex: none; width: 34px; height: 34px; border-radius: 50%; position: relative; }
.evt--missed { background: #FDF1DD; }
.evt--missed i { background: var(--amber); }
.evt--missed i::before, .evt--missed i::after { content: ""; position: absolute; left: 10px; top: 16px; width: 14px; height: 2.5px; background: #fff; border-radius: 2px; transform: rotate(45deg); }
.evt--missed i::after { transform: rotate(-45deg); }
.evt--booked { background: #DDF4EA; margin-top: auto; }
.evt--booked i { background: var(--green); }
.evt--booked i::before { content: ""; position: absolute; left: 12px; top: 8px; width: 8px; height: 15px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.js .feed > li { opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.js .feed > li.is-on { opacity: 1; transform: none; }

/* ---------- light sections ---------- */
.light { background: var(--ice); color: var(--ink); }
.light p { color: var(--muted); }
.setup { padding-block: clamp(96px, 12vw, 160px); border-radius: 40px 40px 0 0; }
.setup h2 { max-width: 18ch; }
.setup__grid { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: 20px; margin-top: 56px; }
.setup__main {
  grid-row: span 2; background: var(--ink); color: #fff; border-radius: 28px;
  padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; gap: 22px;
  position: relative; overflow: hidden;
}
.setup__main::after {
  content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(61,91,255,.55), rgba(61,91,255,0) 65%); pointer-events: none;
}
.setup__main h3 { font-size: clamp(1.75rem, 3vw, 2.5rem); max-width: 14ch; }
.setup__main p { color: #B9C3DE; font-size: 1.125rem; max-width: 32em; }
.setup__main .ticks { margin-top: auto; }
.setup__main .ticks li::before { border-color: var(--cobalt-hi); }
.setup__side { background: var(--paper); border-radius: 22px; padding: clamp(24px, 3vw, 36px); }
.setup__side h3 { font-size: 1.375rem; margin-bottom: 12px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; font-weight: 500; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .4em; width: 14px; height: 8px; border: solid var(--cobalt); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg); }

/* ---------- work (horizontal) ---------- */
.work { background: var(--night); position: relative; overflow: hidden; }
.work__pin { min-height: 100svh; display: flex; align-items: center; }
.work__track { display: flex; gap: clamp(40px, 6vw, 96px); padding: 120px var(--gut); align-items: center; will-change: transform; }
.work__intro { flex: 0 0 min(80vw, 420px); }
.work__intro p { margin-top: 18px; color: var(--muted-d); max-width: 24em; }
.proj { flex: 0 0 min(86vw, 1040px); display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.proj__shot { position: relative; display: block; padding: 0 0 48px; }
.proj__browser {
  display: block; border-radius: 16px; overflow: hidden; padding-top: 26px; position: relative;
  background: #121A38; border: 1px solid rgba(150,170,255,.22);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(0,0,0,.4);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.proj__browser::before {
  content: ""; position: absolute; left: 14px; top: 9px; width: 8px; height: 8px; border-radius: 50%;
  background: #3A4466; box-shadow: 14px 0 0 #3A4466, 28px 0 0 #3A4466;
}
.proj__shot:hover .proj__browser { transform: translateY(-6px); box-shadow: 0 50px 90px -40px rgba(61,91,255,.6), 0 0 0 1px rgba(107,131,255,.4); }
.proj__mobile {
  position: absolute; right: -18px; bottom: 0; width: 21%;
  border: 5px solid #121A38; border-radius: 22px; box-shadow: 0 24px 40px -16px rgba(0,0,0,.85);
}
.proj__meta h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.proj__meta p { margin: 14px 0 22px; color: var(--muted-d); }

/* ---------- process ---------- */
.process { padding-block: clamp(96px, 12vw, 160px) 0; }
.process h2 { max-width: 16ch; }
.steps { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: var(--line); }
.steps::after { content: ""; position: absolute; left: 0; top: 23px; height: 2px; width: calc(var(--p, 0) * 100%); background: var(--cobalt); box-shadow: 0 0 12px rgba(61,91,255,.6); }
.steps li { counter-increment: s; position: relative; z-index: 1; }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--ice); border: 2px solid var(--line); color: var(--ink); font: 600 1rem var(--display); margin-bottom: 22px;
  transition: background .3s, border-color .3s, color .3s;
}
.steps li.is-on::before { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.steps h3 { font-size: 1.25rem; margin-bottom: 8px; }

/* ---------- pricing ---------- */
.pricing { padding-block: clamp(96px, 12vw, 160px) 0; }
.pricing__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 40px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.plan { display: flex; flex-direction: column; gap: 22px; background: var(--paper); border-radius: 28px; padding: clamp(28px, 3.6vw, 44px); border: 1px solid var(--line); }
.plan h3 { font-size: 1.375rem; }
.plan__price { color: var(--muted); }
.plan__price b { font: 600 3.25rem var(--display); letter-spacing: -0.04em; color: var(--ink); margin-right: 6px; }
.plan .ticks { flex: 1; }
.plan .btn { align-self: flex-start; }
.plan--glow {
  background: var(--ink); color: #fff; border-color: transparent; position: relative; overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(61,91,255,.7);
}
.plan--glow::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(107,131,255,.9), rgba(107,131,255,0) 40%, rgba(107,131,255,0) 60%, rgba(107,131,255,.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.plan--glow .plan__price, .plan--glow .ticks li { color: #C3CCE6; }
.plan--glow .plan__price b { color: #fff; }
.plan--glow .ticks li::before { border-color: var(--cobalt-hi); }
.care { margin-top: 24px; max-width: 60em; }
.care b { color: var(--ink); }

/* ---------- faq ---------- */
.faq { padding-block: clamp(96px, 12vw, 160px); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px 64px; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 24px 48px 24px 0; font: 600 1.1875rem var(--display); letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 2px; background: var(--ink); transition: transform .25s var(--ease); }
.faq summary::before { transform: rotate(90deg); }
.faq details[open] summary::before { transform: rotate(0); }
.faq details p { padding: 0 48px 26px 0; max-width: 40em; }

/* ---------- book ---------- */
.book { position: relative; overflow: hidden; padding: clamp(120px, 16vw, 220px) var(--gut); background: var(--night); }
.book__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; opacity: .55; }
.book::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,7,25,.95) 0%, rgba(2,7,25,.55) 55%, rgba(2,7,25,.2)); }
.book__inner { position: relative; z-index: 1; max-width: var(--wrap); margin: 0 auto; }
.book h2 { font-size: clamp(2.4rem, 5.8vw, 5rem); max-width: 14ch; letter-spacing: -0.045em; }
.book p { margin-top: 22px; color: #C3CCE6; font-size: 1.1875rem; max-width: 34em; }

.foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px;
  padding: 32px var(--gut) 44px; color: var(--muted-d); font-size: .9375rem;
  max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto;
}
.foot span { margin-left: auto; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; }

/* ---------- reveal (JS adds motion) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav .btn { margin-left: auto; }
  .hero { align-content: end; padding-top: 52svh; }
  .hero__media { bottom: auto; height: 64svh; }
  .hero__video { object-position: 89% 50%; }
  .hero__shade { background: linear-gradient(0deg, var(--night) 4%, rgba(2,7,25,0) 45%), linear-gradient(180deg, rgba(2,7,25,.6), rgba(2,7,25,0) 22%); }
  .hero__for { margin-top: 48px; }
  .replay__pin { grid-template-columns: 1fr; padding-top: 88px; }
  .clock { margin-top: 24px; }
  .clock__item { padding-block: 8px; font-size: .9375rem; }
  .setup__grid { grid-template-columns: 1fr; }
  .setup__main { grid-row: auto; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before, .steps::after { display: none; }
  .faq__grid { grid-template-columns: 1fr; }
  .work__pin { min-height: 0; }
  .work__track { flex-direction: column; align-items: stretch; padding-block: 96px; }
  .work__intro, .proj { flex: none; }
  .proj { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 640px) {
  .plans { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .replay__pin { min-height: 0; }
  .feed { min-height: 430px; }
  .proj__mobile { right: -4px; width: 26%; border-width: 4px; border-radius: 16px; }
  .clock__item { grid-template-columns: 5.5em 1fr; gap: 12px; }
  .foot span { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  .js .feed > li { opacity: 1; transform: none; }
  .story__text .w { color: var(--text-d); }
  *, *::before, *::after { transition: none !important; }
}
