@font-face { font-family: Onest; src: url(assets/fonts/Onest_400Regular.ttf); font-weight: 400; font-display: swap; }
@font-face { font-family: Onest; src: url(assets/fonts/Onest_500Medium.ttf); font-weight: 500; font-display: swap; }
@font-face { font-family: Onest; src: url(assets/fonts/Onest_600SemiBold.ttf); font-weight: 600; font-display: swap; }

:root {
  --canvas: #15151e;
  --card: #1c1c27;
  --raised: #262633;
  --line: rgba(238, 235, 230, .12);
  --line-strong: rgba(238, 235, 230, .32);
  --ivory: #eeebe6;
  --ash: #c3c0c6;
  --muted: #8d8a97;
  --accent: #ff9a3c;
  --accent-hi: #ffad5c;
  --on-accent: #241204;
  --danger: #ff8f8f;
  --max: 1200px;
  --gutter: max(20px, calc((100vw - var(--max)) / 2));
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--canvas); color: var(--ivory);
  font: 400 16px/1.5 Onest, system-ui, sans-serif; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { display: block; }
h1, h2, h3 { font-weight: 500; margin: 0; }
h1 { font-size: clamp(42px, 7.2vw, 76px); line-height: 1.06; letter-spacing: .005em; }
h2 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.12; letter-spacing: .01em; }
h3 { font-size: 21px; line-height: 1.3; letter-spacing: .01em; }
.lead { font-size: 18px; line-height: 1.5; color: var(--ash); margin: 0; }
.caption { font-size: 13px; letter-spacing: .01em; color: var(--muted); margin: 0; }
.muted { color: var(--ash); font-size: 15px; margin: 0; }
::selection { background: rgba(255, 154, 60, .3); }

.tag {
  display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 40px;
  border: 1px solid var(--line-strong); color: var(--ivory); font-size: 13px; letter-spacing: .02em;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px;
  border-radius: 32px; border: 1px solid transparent; font: inherit; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-hi); }
.btn.ghost { border-color: var(--ivory); color: var(--ivory); background: transparent; }
.btn.ghost:hover { background: var(--ivory); color: var(--canvas); }
.btn.small { height: 40px; padding: 0 20px; font-size: 15px; }
.btn.wide { width: 100%; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: default; }
.link { background: none; border: 0; color: var(--ash); font: inherit; cursor: pointer; padding: 6px; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--ivory); }

.nav {
  position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; gap: 24px;
  height: 72px; padding: 0 var(--gutter);
  transition: background-color .4s var(--ease), backdrop-filter .4s var(--ease), border-color .4s var(--ease), height .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { height: 64px; background: rgba(21, 21, 30, .72); backdrop-filter: blur(20px) saturate(1.2); -webkit-backdrop-filter: blur(20px) saturate(1.2); border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; font-size: 18px; letter-spacing: .01em; }
.brand img { width: 30px; height: 30px; }
.links { display: flex; gap: 4px; margin: 0 auto; }
.links a { text-decoration: none; padding: 8px 16px; border-radius: 40px; color: var(--ivory); font-size: 15px; transition: background-color .25s; }
.links a:hover { background: rgba(238, 235, 230, .08); }

.hero { position: relative; height: 100vh; min-height: 640px; display: grid; place-items: center; overflow: hidden; }
.scene { position: absolute; inset: 0; animation: settle 3.2s var(--ease) both; transform-origin: 50% 80%; }
.scene > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.sky { background: linear-gradient(180deg, #0c0d1a 0%, #161830 38%, #2a2d4a 66%, #474a68 82%, #2a2b40 100%); }
.stars { opacity: .9; }
.moon {
  inset: 12% auto auto 72% !important; width: 90px !important; height: 90px !important; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #fbf6ee, #e7e1d6 60%, #d7d0c4);
  box-shadow: 0 0 60px 18px rgba(230, 226, 245, .16), 0 0 220px 80px rgba(160, 170, 230, .10);
  opacity: .9;
}
.layer { will-change: transform; }
.fog { pointer-events: none; will-change: transform; }
.fog::before, .fog::after {
  content: ''; position: absolute; left: -50%; width: 200%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(170, 176, 214, .22), transparent);
  filter: blur(18px); animation: drift 60s linear infinite;
}
.f1::before { top: 52%; height: 120px; }
.f1::after { top: 60%; height: 90px; opacity: .7; animation-duration: 85s; animation-direction: reverse; }
.f2::before { top: 70%; height: 110px; opacity: .65; animation-duration: 70s; }
.f2::after { top: 78%; height: 80px; opacity: .45; animation-duration: 95s; animation-direction: reverse; }
.near .warmth { animation: breathe 5s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.near .hem { animation: breathe 5s ease-in-out infinite; }
.near .steam path { animation: steam 3.6s ease-in-out infinite; opacity: 0; }
.near .steam path:nth-child(2) { animation-delay: 1.8s; }
.shade { background: linear-gradient(180deg, rgba(21, 21, 30, .55) 0%, transparent 22%, transparent 70%, var(--canvas) 100%); }

.intro {
  position: relative; z-index: 2; max-width: 900px; padding: 0 20px; margin-top: -12vh;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; will-change: transform, opacity;
}
.intro h1 { color: #fff; }
.intro .sub { font-size: 19px; line-height: 1.45; color: var(--ivory); max-width: 520px; margin: 0; }
.intro > * { opacity: 0; animation: rise 1.4s var(--ease) forwards; animation-delay: calc(.5s + var(--i, 0) * .14s); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.scroll-hint { position: absolute; z-index: 2; bottom: 28px; left: 50%; width: 26px; height: 42px; margin-left: -13px; border: 1px solid var(--line-strong); border-radius: 20px; opacity: 0; animation: rise 1.2s var(--ease) 1.6s forwards; }
.scroll-hint span { position: absolute; left: 50%; top: 9px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--ivory); animation: wheel 2.2s var(--ease) infinite; }

main > section { padding: 112px var(--gutter); }
.head { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 48px; }

.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: center; padding-top: 140px !important; }
.split-text { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.ticks { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 12px; color: var(--ash); }
.ticks li { display: flex; gap: 12px; align-items: center; }
.ticks li::before { content: ''; width: 18px; height: 18px; flex: none; border-radius: 50%; border: 1px solid var(--line-strong); background: radial-gradient(circle, var(--ivory) 0 2.5px, transparent 3px); }

.app { background: var(--card); border-radius: 12px; overflow: hidden; font-size: 14px; }
.app-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: #191922; color: var(--muted); font-size: 12px; }
.app-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--raised); }
.app-bar span { margin-left: 8px; }
.app-body { display: grid; grid-template-columns: 58px 170px 1fr; min-height: 380px; }
.rail { background: #17171f; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 0; }
.rail b { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 14px; background: var(--raised); font-weight: 500; color: var(--ash); transition: border-radius .3s; }
.rail b.on { background: var(--ivory); color: var(--canvas); border-radius: 12px; }
.rail b.add { background: transparent; border: 1px dashed var(--line-strong); }
.chans { background: #1a1a24; padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; }
.chans .room { margin: 0 6px 10px; font-weight: 500; color: var(--ivory); }
.chans .cat { margin: 12px 6px 4px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ch { padding: 5px 8px; border-radius: 8px; color: var(--muted); }
.ch.on { background: var(--raised); color: var(--ivory); }
.vp { display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 18px; color: var(--ash); font-size: 13px; }
.vp i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #3a3a4a; font-style: normal; font-size: 11px; }
.vp.speaking i { box-shadow: 0 0 0 2px var(--card), 0 0 0 3.5px var(--ivory); animation: talk 1.6s ease-in-out infinite; }
.chat { padding: 18px 20px; display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; }
.msg { display: flex; gap: 12px; opacity: 0; transform: translateY(12px); }
.msg b { font-weight: 500; font-size: 14px; }
.msg p { margin: 2px 0 0; color: var(--ash); }
.av { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; font-style: normal; font-weight: 500; color: var(--ivory); }
.a1 { background: #4a4560; } .a2 { background: #3d4a5c; } .a3 { background: #514640; } .a4 { background: #5b4b58; }
.typing { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); opacity: 0; }
.typing span { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: dot 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; margin-right: 6px; }
.app.in .msg, .app.in .typing { animation: rise 0.9s var(--ease) forwards; animation-delay: calc(.7s + var(--i) * .85s); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid article { background: var(--card); border-radius: 12px; padding: 32px; display: flex; flex-direction: column; gap: 12px; transition: background-color .4s var(--ease); }
.grid article:hover { background: #21212d; }
.grid article p { margin: 0; color: var(--ash); }
.ic { width: 28px; height: 28px; margin-bottom: 20px; fill: none; stroke: var(--ivory); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.join { display: grid; grid-template-columns: 1fr 460px; gap: 72px; align-items: start; scroll-margin-top: 20px; }
.join-text { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; position: sticky; top: 120px; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 4px; width: 100%; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; padding: 16px 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); grid-row: span 2; color: var(--muted); font-size: 14px; padding-top: 2px; }
.steps b { font-weight: 500; }
.steps span { color: var(--ash); font-size: 15px; }
.card { background: var(--card); border-radius: 12px; padding: 32px; }
.card form { display: flex; flex-direction: column; gap: 16px; }
label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--ash); }
.hint { color: var(--muted); font-size: 13px; margin-top: -4px; }
input {
  font: inherit; font-size: 16px; color: var(--ivory); background: transparent; height: 50px; padding: 0 20px;
  border: 1px solid var(--line-strong); border-radius: 32px; outline: none; transition: border-color .25s, background-color .25s;
}
input::placeholder { color: #6f6c78; }
input:hover { border-color: rgba(238, 235, 230, .5); }
input:focus { border-color: var(--ivory); background: rgba(238, 235, 230, .03); }
input.code { height: 64px; font-size: 26px; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.error { color: var(--danger); margin: 0; font-size: 14px; }
.error:empty { display: none; }
.fine { color: var(--muted); font-size: 13px; margin: 0; text-align: center; }
#done { text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; }
#done[hidden], form[hidden] { display: none; }
.done-ic { width: 64px; height: 64px; fill: none; stroke: var(--ivory); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.done-ic path { stroke-dasharray: 20; stroke-dashoffset: 20; animation: draw .8s var(--ease) .3s forwards; }

.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
.faq .head { position: sticky; top: 120px; }
.qa { border-bottom: 1px solid var(--line); }
details { border-top: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; font-size: 19px; font-weight: 500; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ''; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong); background: linear-gradient(var(--ivory), var(--ivory)) center / 12px 1px no-repeat, linear-gradient(var(--ivory), var(--ivory)) center / 1px 12px no-repeat; transition: transform .4s var(--ease); }
details[open] summary::after { transform: rotate(135deg); }
details p { color: var(--ash); margin: 0 0 24px; max-width: 640px; animation: rise .6s var(--ease); }

.outro { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; padding-bottom: 140px !important; background: radial-gradient(600px 260px at 50% 100%, rgba(255, 150, 60, .10), transparent 70%); }
.outro .cta { margin-top: 12px; }

footer { padding: 40px var(--gutter) 48px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
footer p { margin: 0; font-size: 12px; letter-spacing: .01em; color: var(--muted); max-width: 720px; }

.js [data-reveal] { opacity: 0; transform: translateY(24px); filter: blur(4px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: calc(var(--d, 0) * .08s); }
.js [data-reveal].in { opacity: 1; transform: none; filter: none; }

@keyframes rise { from { opacity: 0; transform: translateY(24px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes settle { from { transform: scale(1.14); filter: brightness(.4); } to { transform: none; filter: none; } }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(25%); } }
@keyframes breathe { 50% { opacity: .65; } }
@keyframes steam { 0% { opacity: 0; transform: translateY(6px); } 35% { opacity: .55; } 100% { opacity: 0; transform: translateY(-14px); } }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-3px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@keyframes talk { 50% { box-shadow: 0 0 0 2px var(--card), 0 0 0 5px rgba(238, 235, 230, .5); } }
@keyframes dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (max-width: 960px) {
  .links { display: none; }
  .nav .btn { margin-left: auto; }
  main > section { padding-top: 80px; padding-bottom: 80px; }
  .split, .join, .faq { grid-template-columns: 1fr; gap: 40px; }
  .split { padding-top: 96px !important; }
  .join-text, .faq .head { position: static; }
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .grid { grid-template-columns: 1fr; }
  .grid article, .card { padding: 24px; }
  .app-body { grid-template-columns: 48px 1fr; }
  .chans { display: none; }
  .rail b { width: 32px; height: 32px; }
  .intro .sub { font-size: 17px; }
  .cta .btn { width: 100%; }
  .moon { inset: 9.5% auto auto 82% !important; width: 38px !important; height: 38px !important; }
  .intro { margin-top: -21vh; gap: 16px; }
  summary { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal], .intro > *, .msg, .typing { opacity: 1 !important; transform: none !important; filter: none !important; }
}
