:root {
  --ink: #0e0f12;
  --muted: #6b6f78;
  --faint: #f5f5f7;
  --line: #e6e7eb;
  --accent: #2f3be0;
  --out: cubic-bezier(.23, 1, .32, 1);
  --drawer: cubic-bezier(.32, .72, 0, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { background: #fff; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, Inter, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; line-height: 1.5; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.logo { font-family: Sora, sans-serif; font-weight: 600; letter-spacing: -.055em; line-height: 1; white-space: nowrap; }
.p { font-weight: 300; color: var(--accent); }

.btn { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font-size: 17px; font-weight: 500; padding: 17px 32px; transition: transform 160ms var(--out), box-shadow 240ms var(--out), opacity 200ms ease; box-shadow: 0 1px 2px rgb(20 26 110 / .2), 0 10px 28px -12px rgb(47 59 224 / .65); }
.btn:active { transform: scale(.97); }
.btn-sm { font-size: 14px; padding: 8px 18px; box-shadow: none; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { box-shadow: 0 2px 4px rgb(20 26 110 / .2), 0 18px 38px -12px rgb(47 59 224 / .7); }
  .btn-sm:hover { box-shadow: 0 8px 20px -10px rgb(47 59 224 / .7); }
}

/* nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 10; display: flex; justify-content: space-between; align-items: center; padding: 14px clamp(18px, 4vw, 44px); }
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(255 255 255 / .72); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgb(0 0 0 / .06); opacity: 0; transition: opacity 240ms ease; }
.nav.scrolled::before { opacity: 1; }
.nav nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav-link { font-size: 14px; transition: transform 240ms var(--out); }
.nav:not(.scrolled) .nav-link { transform: translateX(94px); }
.nav-join { width: 72px; }
.nav-logo { font-size: 22px; }
.nav-logo, .nav-join { opacity: 0; transform: translateY(-6px); pointer-events: none; visibility: hidden; transition: opacity 240ms var(--out), transform 240ms var(--out), visibility 0s 240ms; }
.nav.scrolled .nav-logo, .nav.scrolled .nav-join { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }

/* hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; text-align: center; padding: 80px 20px; }
.hero-logo { font-size: clamp(54px, 13vw, 156px); }
.hero-logo span { display: inline-block; }
.hero-sub { font-size: clamp(18px, 2.2vw, 24px); color: var(--muted); letter-spacing: -.01em; }
.js .hero-logo .hin { animation: rise 800ms var(--out) 80ms both; }
.js .hero-logo .hl { animation: openL 900ms var(--out) 220ms both; }
.js .hero-logo .hr { animation: openR 900ms var(--out) 220ms both; }
.js .hero-logo .hf { animation: wipe 900ms var(--out) 360ms both; }
.js .enter { animation: rise 800ms var(--out) var(--d) both; }
.js.settled .hero-logo span, .js.settled .enter { animation: none; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }
@keyframes openL { from { opacity: 0; transform: translateX(.34em); } }
@keyframes openR { from { opacity: 0; transform: translateX(-.34em); } }
@keyframes wipe { from { opacity: 0; transform: translateX(-.18em); clip-path: inset(-20% 100% -20% 0); } to { clip-path: inset(-20% -5% -20% 0); } }
.cue { position: absolute; bottom: 26px; left: 50%; margin-left: -12px; width: 24px; height: 40px; border: 1.5px solid #cfd1d8; border-radius: 20px; }
.cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 3px; background: var(--accent); animation: cue 1.8s var(--out) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 25% { opacity: 1; } 80%, 100% { opacity: 0; transform: translateY(14px); } }

/* shared type */
.h2 { font-size: clamp(38px, 6vw, 76px); line-height: 1.04; letter-spacing: -.04em; font-weight: 600; text-align: center; text-wrap: balance; }
.muted { color: #a2a6b0; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--accent); text-align: center; margin-bottom: 14px; }
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 800ms var(--out), transform 800ms var(--out); }
.js .reveal.in { opacity: 1; transform: none; }

/* floating room */
.room { padding: 120px 20px 100px; min-height: 100vh; }
.stage { --mx: 30px; --my: 26px; position: relative; max-width: 1120px; margin: 56px auto 0; min-height: 800px; }
.msg.mail { font-size: 16px; }
.msg.mail > span { display: block; }
.msg.mail > span + span { margin-top: 10px; }
.msg small { display: table; margin-top: 10px; padding: 7px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.chat { display: flex; flex-direction: column; gap: 12px; width: min(420px, 100%); margin: 0 auto; padding-top: 40px; position: relative; }
.msg { max-width: 84%; padding: 14px 19px; border-radius: 24px; font-size: 17px; background: var(--faint); }
.msg.l { align-self: flex-start; border-bottom-left-radius: 7px; transform-origin: bottom left; }
.msg.r { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 7px; transform-origin: bottom right; }
.msg.note { align-self: center; max-width: 100%; background: none; text-align: center; color: var(--muted); font-size: 15px; padding: 18px 0 6px; }
.msg.accent { align-self: center; max-width: 100%; margin-top: 10px; padding: 24px 28px; border-radius: 30px; text-align: center; background: var(--accent); color: #fff; font-size: 23px; line-height: 1.4; letter-spacing: -.015em; box-shadow: 0 26px 60px -20px rgb(47 59 224 / .7); }
.js .msg { opacity: 0; transform: translateY(16px) scale(.94); transition: opacity 360ms var(--out), transform 520ms cubic-bezier(.34, 1.4, .64, 1), translate 420ms cubic-bezier(.34, 1.56, .64, 1), rotate 420ms cubic-bezier(.34, 1.56, .64, 1); }
.tag span { cursor: grab; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.tag span:active { cursor: grabbing; }
.msg:not(.note) { -webkit-tap-highlight-color: transparent; }
.js .msg.in { opacity: 1; transform: none; }
.typing { position: absolute; left: 0; bottom: -52px; display: flex; gap: 5px; padding: 15px 18px; border-radius: 22px; background: var(--faint); opacity: 0; transition: opacity 200ms ease; }
.typing.on { opacity: 1; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #9a9ea8; animation: blink 1.1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 40% { transform: translateY(-4px); opacity: .5; } }

.tag { position: absolute; left: var(--x); top: var(--y); }
.tag span { display: block; white-space: nowrap; padding: 12px 23px; border-radius: 999px; background: rgb(255 255 255 / .85); border: 1px solid var(--line); box-shadow: 0 14px 34px -20px rgb(14 15 18 / .35); font-size: 16px; font-weight: 500; }
.tag.solid span { background: var(--accent); border-color: var(--accent); color: #fff; }
.tag.soft span { background: #eef0ff; border-color: #dfe2ff; color: var(--accent); }
.js .tag span { opacity: 0; transform: scale(.9); transition: opacity 600ms var(--out) var(--in), transform 700ms var(--out) var(--in); }
.js .stage.live .tag span { opacity: 1; transform: none; animation: drift var(--dur) ease-in-out var(--lag) infinite; }
@keyframes drift {
  0%, 100% { translate: 0 0; rotate: var(--a); }
  25% { translate: calc(var(--mx) * var(--sx)) calc(var(--my) * -1 * var(--sy)); }
  50% { translate: calc(var(--mx) * .25) calc(var(--my) * var(--sy)); rotate: var(--b); }
  75% { translate: calc(var(--mx) * -1 * var(--sx)) calc(var(--my) * .3); }
}

/* values */
.values { max-width: 1000px; margin: 0 auto; padding: 100px 22px; }
.value { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; padding: 46px 0; border-top: 1px solid var(--line); }
.value h3 { font-size: clamp(40px, 7vw, 82px); letter-spacing: -.045em; line-height: 1; font-weight: 600; }
.value p { font-size: clamp(18px, 2vw, 22px); color: var(--muted); max-width: 25em; }

/* counter */
.count { text-align: center; padding: 90px 20px; }
.number { display: flex; justify-content: center; font-family: Sora, sans-serif; font-weight: 600; font-size: clamp(96px, 22vw, 240px); line-height: 1; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.digit { height: 1em; overflow: hidden; }
.digit > span { display: flex; flex-direction: column; transition: transform 1800ms var(--out); }
.digit b { height: 1em; font-weight: inherit; padding: 0 .02em; }
.count-label { font-size: clamp(20px, 2.6vw, 28px); color: var(--muted); margin-top: 10px; }

/* about and cta */
.about { max-width: 780px; margin: 0 auto; padding: 130px 22px; scroll-margin-top: 20px; text-align: center; }
.lead { font-size: clamp(22px, 3vw, 31px); line-height: 1.38; letter-spacing: -.02em; margin: 40px 0 28px; text-wrap: pretty; }
.body { font-size: 19px; color: var(--muted); margin-top: 18px; text-wrap: pretty; }
.cta { display: flex; flex-direction: column; align-items: center; gap: 38px; padding: 130px 20px 150px; background: radial-gradient(60% 70% at 50% 100%, #eceeff, #fff 75%); }
footer { text-align: center; padding: 44px 20px calc(44px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.contact { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 18px; }
.social { display: inline-flex; align-items: center; gap: 5px; transition: color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .contact a:hover { color: var(--accent); } }
.founder { font-size: 17px; }
.founder strong { font-weight: 600; }
.fine { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* join sheet */
.sheet { margin: auto; width: min(500px, calc(100% - 32px)); max-height: min(720px, calc(100dvh - 32px)); border: 1px solid rgb(255 255 255 / .8); border-radius: 32px; padding: 0; color: var(--ink); background: rgb(255 255 255 / .9); backdrop-filter: saturate(180%) blur(30px); -webkit-backdrop-filter: saturate(180%) blur(30px); box-shadow: 0 40px 100px -30px rgb(14 15 60 / .45); overflow: auto; opacity: 0; transform: translateY(18px) scale(.96); transition: opacity 200ms var(--out), transform 220ms var(--out); }
.sheet::backdrop { background: rgb(18 20 40 / .3); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity 220ms ease; }
.sheet.show { opacity: 1; transform: none; transition-duration: 380ms; transition-timing-function: var(--drawer); }
.sheet.show::backdrop { opacity: 1; }
.sheet-in { padding: 20px 28px 28px; background: radial-gradient(90% 45% at 50% 0%, rgb(47 59 224 / .09), transparent 70%); }
.sheet-top { display: flex; align-items: center; gap: 16px; }
.icon { width: 36px; height: 36px; flex: none; border-radius: 50%; border: 0; background: var(--faint); color: var(--ink); transition: transform 160ms var(--out), opacity 160ms ease; }
.icon:active { transform: scale(.94); }
#back:disabled { opacity: 0; pointer-events: none; }
.bar { flex: 1; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #2f3be0, #7c85ff); transform-origin: left; transform: scaleX(.25); transition: transform 420ms var(--out); }
.step { border: 0; min-height: 296px; padding-top: 30px; }
.step.enter-step { animation: stepIn 320ms var(--out); }
.step.back-step { animation: stepBack 320ms var(--out); }
@keyframes stepIn { from { opacity: 0; transform: translateX(26px); filter: blur(3px); } }
@keyframes stepBack { from { opacity: 0; transform: translateX(-26px); filter: blur(3px); } }
legend { float: left; width: 100%; font-size: 30px; font-weight: 600; letter-spacing: -.035em; margin-bottom: 24px; line-height: 1.15; }
legend + * { clear: left; }
.pills { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pills.col { grid-template-columns: 1fr; }
.pills label { position: relative; }
.pills input { position: absolute; opacity: 0; }
.pills span { display: block; text-align: center; padding: 21px 14px; border-radius: 18px; border: 1.5px solid var(--line); background: #fff; font-weight: 500; cursor: pointer; transition: transform 160ms var(--out), border-color 160ms ease, background-color 160ms ease, color 160ms ease; }
.pills label:active span { transform: scale(.97); }
.pills input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.pills input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .pills input:not(:checked) + span:hover { border-color: var(--accent); } }
.field { position: relative; display: block; margin-bottom: 10px; }
.field input { width: 100%; height: 60px; padding: 22px 17px 6px; font: inherit; font-size: 17px; color: var(--ink); background: var(--faint); border: 1.5px solid transparent; border-radius: 16px; outline: 0; transition: border-color 160ms ease, background-color 160ms ease; }
.field input:focus { border-color: var(--accent); background: #fff; }
.field span { position: absolute; left: 19px; top: 18px; color: var(--muted); pointer-events: none; transform-origin: left top; transition: transform 160ms var(--out); }
.field input:focus + span, .field input:not(:placeholder-shown) + span { transform: translateY(-10px) scale(.75); }
.field input[aria-invalid="true"] { border-color: #d3303f; }
.hint { font-size: 13px; color: var(--muted); margin: -2px 4px 14px; line-height: 1.45; }
.buckets { width: min(1040px, calc(100vw - 44px)); margin: 76px 0 40px 50%; transform: translateX(-50%); }
.bucket-title { font-family: Sora, sans-serif; font-weight: 300; font-size: clamp(30px, 4vw, 44px); letter-spacing: -.045em; line-height: 1; margin-bottom: 22px; }
.bucket-title .in { font-weight: 600; color: var(--accent); }
.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; text-align: left; }
.perks + .bucket-title { margin-top: 62px; }
.perks li { padding: 28px 26px; border-radius: 26px; background: var(--faint); }
.perks h4 { font-size: 22px; letter-spacing: -.025em; margin-bottom: 8px; }
.perks p { color: var(--muted); font-size: 16px; text-wrap: pretty; }
.perks strong { color: var(--ink); font-weight: 600; }
.perks.big li { min-height: 340px; padding: 96px 38px 40px; border-radius: 34px; }
.perks.big li:first-child { background: linear-gradient(160deg, #f5f5f7 35%, #f3e9df); }
.perks.big li:nth-child(2) { background: linear-gradient(160deg, #f5f5f7 35%, #eaf4c9); }
.perks.big li:nth-child(3) { background: linear-gradient(160deg, #f5f5f7 35%, #e6e8ff); }
.perks.circle li:first-child { background: linear-gradient(160deg, #f5f5f7 35%, #f8e3ea); }
.perks.circle li:last-child { background: linear-gradient(160deg, #f5f5f7 35%, #dcf1ef); }
.perks.big { grid-template-columns: repeat(3, 1fr); }
.perks.big h4 { font-size: clamp(34px, 3.8vw, 46px); letter-spacing: -.04em; line-height: 1.05; margin-bottom: 16px; }
.perks.big p { font-size: 17px; line-height: 1.55; }
.error { min-height: 22px; margin: 8px 0; font-size: 14px; color: #c0222f; }
.wide { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; }
.done { text-align: center; padding: 40px 0 0; }
.done-mark { font-size: 84px; }
.done-mark span { display: inline-block; }
.done .hl { animation: openL 700ms var(--out) 100ms both; }
.done .hr { animation: openR 700ms var(--out) 100ms both; }
.done h3 { font-size: 34px; letter-spacing: -.035em; margin: 22px 0 8px; outline: 0; animation: rise 600ms var(--out) 220ms both; }
.done p { color: var(--muted); margin-bottom: 36px; animation: rise 600ms var(--out) 280ms both; }

@media (max-width: 899px) {
  .perks.big { grid-template-columns: 1fr; }
  .perks.big li { min-height: 0; padding: 34px 28px; }
}
@media (max-width: 999px) {
  .stage { --mx: 6px; --my: 9px; min-height: 0; }
  .tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 8px; }
  .tag { position: static; }
  .tag span { font-size: 13px; padding: 8px 14px; }
}
@media (max-width: 760px) {
  .room { padding-top: 90px; padding-bottom: 20px; min-height: 0; }
  .stage { margin-top: 34px; }
  .perks { grid-template-columns: 1fr; }
  .perks.big li { min-height: 0; padding: 34px 26px; }
  .chat { padding-bottom: 60px; }
  .typing { bottom: 0; }
  .msg { font-size: 16px; }
  .value { grid-template-columns: 1fr; gap: 12px; padding: 36px 0; }
  .sheet { width: 100%; max-width: 100%; margin: auto 0 0; max-height: 94dvh; border-radius: 30px 30px 0 0; transform: translateY(100%); opacity: 1; transition-duration: 260ms; transition-timing-function: var(--drawer); }
  .sheet.show { transform: none; }
  .sheet-in { padding: 18px 20px calc(22px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero-logo span, .js .enter, .done *, .step { animation: fade 300ms ease both !important; }
  .js .reveal, .js .msg, .js .tag span { transform: none !important; transition: opacity 300ms ease; }
  .js .stage.live .tag span, .cue span, .typing i { animation: none; }
  .cue span { opacity: 1; }
  .sheet, .sheet.show { transform: none; transition: opacity 200ms ease; }
  .sheet:not(.show) { opacity: 0; }
  .digit > span { transition: none; }
  @keyframes fade { from { opacity: 0; } }
}
