@font-face {
  font-family: "Geist";
  src: url("fonts/geist.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --bg: #0F0F0F;
  --surface: #131316;
  --card: rgba(255, 255, 255, .026);
  --card-hi: rgba(255, 255, 255, .042);
  --txt: #ECECEF;
  --txt-dim: rgba(255, 255, 255, .48);
  --txt-faint: rgba(255, 255, 255, .32);
  --line: rgba(255, 255, 255, .07);
  --line-soft: rgba(255, 255, 255, .04);
  --dash: rgba(255, 255, 255, .09);

  --accent: #A087FA;
  --accent-deep: #8468F0;
  --accent-soft: #C7B6FF;
  --on: #48D08B;
  --off: #EC6A6A;

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 18px;
  --wrap: 1200px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  position: relative;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
em { font-style: normal; }
::selection { background: rgba(160, 135, 250, .28); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.ic { width: 1em; height: 1em; flex: none; display: block; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.backdrop {
  position: absolute; top: 0; left: 0; width: 100%; height: 1100px;
  z-index: 0; overflow: hidden; pointer-events: none;
}
.glow {
  position: absolute; top: -260px; left: 50%; transform: translateX(-50%);
  width: min(1500px, 140vw); height: 820px;
  background:
    radial-gradient(46% 52% at 50% 42%, rgba(160, 135, 250, .22), transparent 72%),
    radial-gradient(70% 44% at 50% 30%, rgba(255, 255, 255, .045), transparent 74%);
}
.glow::before, .glow::after {
  content: ""; position: absolute; top: 6%; width: 220px; height: 92%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .07), transparent 72%);
  filter: blur(26px);
}
.glow::before { left: 33%; transform: rotate(13deg); }
.glow::after { right: 33%; transform: rotate(-13deg); }
.grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(ellipse 80% 46% at 50% 0%, #000 5%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 80% 46% at 50% 0%, #000 5%, transparent 72%);
}

.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 12px 24px; pointer-events: none; }
.nav__in {
  pointer-events: auto; max-width: var(--wrap); margin: 0 auto;
  display: flex; align-items: center; gap: 20px;
  height: 56px; padding: 0 10px 0 20px; border-radius: 999px;
  border: 1px solid transparent; background: transparent;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.nav.is-stuck .nav__in {
  background: rgba(17, 17, 20, .78); border-color: var(--line);
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
}
.brand { display: flex; align-items: center; gap: 9px; flex: none; }
.brand__mark {
  width: 22px; height: 22px; flex: none; background: var(--accent);
  -webkit-mask: url("logo.png") center / contain no-repeat;
  mask: url("logo.png") center / contain no-repeat;
}
.brand__name { font-size: 19px; font-weight: 650; letter-spacing: -.03em; }
.brand__dim { color: var(--accent); }
.nav__links { margin: 0 auto; display: flex; align-items: center; gap: 4px; }
.nav__links a {
  padding: 8px 13px; border-radius: 8px;
  font-size: 13.5px; font-weight: 500; color: rgba(255,255,255,.6);
  transition: color .2s ease, background .2s ease;
}
.nav__links a:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav__end { display: flex; align-items: center; flex: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px;
  font-family: var(--font); font-size: 13.5px; font-weight: 600; line-height: 1.5;
  border: 1px solid transparent; background: rgba(255,255,255,.05); color: #fff;
  cursor: pointer; white-space: nowrap;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.btn--primary { background: var(--accent); color: #14092B; }
.btn--primary:hover { background: var(--accent-soft); }
.btn--ghost { background: rgba(255,255,255,.045); border-color: var(--line); }
.btn--ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); }
.btn--sm { padding: 9px 17px; font-size: 13px; }
.btn__arrow { font-size: 13px; transition: transform .25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

.section { position: relative; z-index: 1; padding: 100px 0; scroll-margin-top: 90px; }
.head { max-width: 720px; margin: 0 auto; text-align: center; }
.eyebrow {
  display: block; font-size: 12px; font-weight: 600; letter-spacing: 1.8px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 20px;
}
.h2 { font-size: clamp(31px, 4.4vw, 44px); font-weight: 650; letter-spacing: -.032em; line-height: 1.14; color: #fff; }
.h2 em { color: var(--accent); }
.sub { margin: 18px auto 0; max-width: 560px; font-size: 16.5px; line-height: 1.65; color: var(--txt-dim); }

.hero { position: relative; z-index: 1; overflow: hidden; padding: 168px 0 104px; text-align: center; }
.hero .wrap { position: relative; z-index: 1; }
.sigil {
  position: absolute; top: 86px; left: 50%; z-index: 0;
  width: min(540px, 60vw); aspect-ratio: 1 / 1; background: var(--accent);
  -webkit-mask: url("logo.png") center / contain no-repeat;
  mask: url("logo.png") center / contain no-repeat;
  opacity: .035; transform: translateX(-50%);
}
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04);
  font-size: 13px; color: rgba(255,255,255,.72);
}
.badge__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--txt-faint); flex: none; }
.hero__title {
  margin-top: 26px; font-size: clamp(28px, 4.5vw, 52px); font-weight: 500;
  line-height: 1.04; letter-spacing: -.008em; color: #fff;
}
.hero__title .line { display: block; }
.hero__sub { margin: 24px auto 0; max-width: 600px; font-size: 17px; line-height: 1.65; color: var(--txt-dim); }
.hero__actions { margin-top: 36px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.features { margin-top: 52px; display: grid; gap: 16px; }
.feature {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 44px; align-items: center;
  padding: 34px 36px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--card); transition: border-color .3s ease, background .3s ease;
}
.feature:hover { border-color: rgba(255,255,255,.14); background: var(--card-hi); }
.feature__icon {
  width: 38px; height: 38px; border-radius: var(--r-sm); font-size: 18px;
  display: grid; place-items: center; color: var(--accent);
  border: 1px solid var(--line); background: rgba(255,255,255,.03);
}
.feature h3 { margin-top: 18px; font-size: 21px; font-weight: 600; letter-spacing: -.025em; color: #fff; }
.feature p { margin-top: 11px; font-size: 14.5px; line-height: 1.65; color: var(--txt-dim); max-width: 42ch; }
.feature code {
  font-family: var(--mono); font-size: 12.5px; color: var(--accent-soft);
  background: rgba(160,135,250,.09); padding: 2px 6px; border-radius: 5px;
}

.demo {
  position: relative; border: 1px solid var(--line-soft); border-radius: var(--r);
  background: rgba(0,0,0,.22); padding: 20px; min-height: 208px;
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
  overflow: hidden; font-size: 13px;
}

.demo--setup { align-items: center; flex-direction: row; gap: 24px; }
.setup__ring { position: relative; width: 76px; height: 76px; flex: none; display: grid; place-items: center; }
.setup__ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.setup__ring circle { fill: none; stroke-width: 3; }
.setup__bg { stroke: rgba(255,255,255,.07); }
.setup__fg { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 213; stroke-dashoffset: 213; }
.is-in .setup__fg { animation: ringRun 7s linear infinite; }
@keyframes ringRun { 0% { stroke-dashoffset: 213; } 85%, 100% { stroke-dashoffset: 0; } }
.setup__t { font-family: var(--mono); font-size: 15px; color: #fff; }
.setup__list { list-style: none; display: grid; gap: 11px; }
.setup__list li { display: flex; align-items: center; gap: 11px; min-width: 0; color: var(--txt-faint); transition: color .4s ease; }
.setup__list .tick {
  width: 19px; height: 19px; border-radius: 50%; flex: none; font-size: 11px;
  display: grid; place-items: center; color: transparent;
  border: 1px solid var(--line); background: rgba(255,255,255,.03);
}
.is-in .setup__list li { animation: stepOn 7s var(--ease) infinite; }
.is-in .setup__list li:nth-child(2) { animation-delay: 1.6s; }
.is-in .setup__list li:nth-child(3) { animation-delay: 3.2s; }
@keyframes stepOn {
  0%, 8% { color: var(--txt-faint); }
  14%, 92% { color: var(--txt); }
  100% { color: var(--txt-faint); }
}
.is-in .setup__list .tick { animation: tickOn 7s var(--ease) infinite; }
.is-in .setup__list li:nth-child(2) .tick { animation-delay: 1.6s; }
.is-in .setup__list li:nth-child(3) .tick { animation-delay: 3.2s; }
@keyframes tickOn {
  0%, 8% { color: transparent; border-color: var(--line); background: rgba(255,255,255,.03); }
  14%, 92% { color: #14092B; border-color: var(--accent); background: var(--accent); }
  100% { color: transparent; border-color: var(--line); background: rgba(255,255,255,.03); }
}

.demo--spam { justify-content: flex-start; }
.spam__feed { display: grid; gap: 7px; }
.spam__msg {
  align-self: flex-start; max-width: 92%; padding: 8px 12px; border-radius: 12px;
  border-bottom-left-radius: 4px; background: rgba(255,255,255,.05);
  border: 1px solid var(--line-soft); color: var(--txt-dim);
  font-size: 12px; opacity: 0;
}
.is-in .spam__msg { animation: spamCycle 9s var(--ease) infinite; }
.is-in .spam__msg:nth-child(2) { animation-delay: .5s; }
.is-in .spam__msg:nth-child(3) { animation-delay: 1s; }
.is-in .spam__msg:nth-child(4) { animation-delay: 1.5s; }
@keyframes spamCycle {
  0% { opacity: 0; transform: translateY(6px); }
  6%, 42% { opacity: 1; transform: none; filter: none; }
  50% { opacity: 0; transform: translateX(26px) scale(.94); filter: blur(6px); }
  100% { opacity: 0; transform: translateX(26px) scale(.94); filter: blur(6px); }
}
.spam__verdict {
  display: flex; align-items: center; gap: 10px; margin-top: 4px;
  padding: 10px 13px; border-radius: 12px; border-bottom-left-radius: 4px;
  border: 1px solid rgba(160,135,250,.28); background: rgba(160,135,250,.1);
  color: #fff; font-size: 12.5px; font-weight: 500; opacity: 0;
}
.spam__verdict img { width: 22px; height: 22px; border-radius: 50%; flex: none; }
.is-in .spam__verdict { animation: verdict 9s var(--ease) infinite; }
@keyframes verdict {
  0%, 52% { opacity: 0; transform: translateY(8px); }
  60%, 90% { opacity: 1; transform: none; }
  97%, 100% { opacity: 0; transform: translateY(8px); }
}

.demo--pay { padding: 24px; min-height: 232px; gap: 0; justify-content: center; }
.rails {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr);
  padding: 4px; border-radius: 999px;
  border: 1px solid var(--line-soft); background: rgba(255,255,255,.02);
}
.rails__pill {
  position: absolute; top: 4px; bottom: 4px; left: 4px;
  width: calc((100% - 8px) / 3); border-radius: 999px;
  border: 1px solid rgba(160,135,250,.4); background: rgba(160,135,250,.13);
}
.is-in .rails__pill { animation: railSlide 9s var(--ease) infinite; }
@keyframes railSlide {
  0%, 28% { transform: translateX(0); }
  35%, 61% { transform: translateX(100%); }
  68%, 94% { transform: translateX(200%); }
  100% { transform: translateX(0); }
}
.rails__opt {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 4px; font-size: 12px; font-weight: 500; color: var(--txt-faint);
  transition: color .4s var(--ease);
}
.rails__opt .ic { font-size: 14px; }
.is-in .rails__opt:nth-child(2) { animation: optOn 9s var(--ease) infinite; }
.is-in .rails__opt:nth-child(3) { animation: optOn 9s var(--ease) infinite 3s; }
.is-in .rails__opt:nth-child(4) { animation: optOn 9s var(--ease) infinite 6s; }
@keyframes optOn {
  0%, 2% { color: var(--txt-faint); }
  8%, 30% { color: #fff; }
  36%, 100% { color: var(--txt-faint); }
}

.quote { position: relative; height: 84px; margin-top: 26px; }
.quote__row {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 9px; opacity: 0;
}
.quote__val { display: flex; align-items: center; gap: 10px; }
.quote__val b {
  font-family: var(--mono); font-size: 34px; font-weight: 500;
  letter-spacing: -.03em; color: #fff; line-height: 1;
}
.quote__val .ic { font-size: 22px; color: var(--accent); }
.quote__row i { font-style: normal; font-size: 12.5px; color: var(--txt-faint); }
.is-in .quote__row--1 { animation: quote1 9s var(--ease) infinite; }
.is-in .quote__row--2 { animation: quote2 9s var(--ease) infinite; }
.is-in .quote__row--3 { animation: quote3 9s var(--ease) infinite; }
@keyframes quote1 {
  0%, 28% { opacity: 1; transform: translateY(0); }
  33%, 95% { opacity: 0; transform: translateY(-8px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes quote2 {
  0%, 30% { opacity: 0; transform: translateY(8px); }
  35%, 61% { opacity: 1; transform: translateY(0); }
  66%, 100% { opacity: 0; transform: translateY(-8px); }
}
@keyframes quote3 {
  0%, 63% { opacity: 0; transform: translateY(8px); }
  68%, 94% { opacity: 1; transform: translateY(0); }
  99%, 100% { opacity: 0; transform: translateY(-8px); }
}

.lands {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--dash);
  font-size: 12.5px; color: var(--txt-dim);
}
.lands b { color: #fff; font-weight: 600; }
.lands .ic { font-size: 15px; color: var(--on); }
.is-in .lands .ic { animation: landsTick 3s var(--ease) infinite; }
@keyframes landsTick {
  0%, 6% { transform: scale(1); opacity: .55; }
  14% { transform: scale(1.2); opacity: 1; }
  26%, 100% { transform: scale(1); opacity: 1; }
}

.status { margin-top: 46px; text-align: center; }
.status__box {
  max-width: 720px; margin: 0 auto; padding: 34px 32px 28px;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card);
}
.beacon { position: relative; width: 11px; height: 11px; flex: none; display: grid; place-items: center; }
.beacon i { width: 11px; height: 11px; border-radius: 50%; background: var(--txt-faint); transition: background .4s ease; }
.beacon::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid currentColor; color: transparent; opacity: 0;
}
body[data-state="checking"] .beacon i { animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
body[data-state="online"] .beacon i { background: var(--on); }
body[data-state="online"] .beacon::before { color: var(--on); animation: halo 2.6s ease-out infinite; }
@keyframes halo { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(2.8); opacity: 0; } }
body[data-state="termed"] .beacon i { background: var(--off); }

.status__head { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.status__link {
  font-size: clamp(24px, 3.2vw, 36px); font-weight: 600; letter-spacing: -.035em;
  color: #fff; transition: color .25s ease, opacity .3s ease;
}
.status__link:hover { color: var(--accent-soft); }
body[data-state="termed"] .status__link {
  opacity: .45; text-decoration: line-through; text-decoration-color: rgba(236,106,106,.7);
}
.status__note {
  margin: 20px auto 0; max-width: 52ch; min-height: 44px;
  font-size: 14.5px; line-height: 1.65; color: var(--txt-dim);
}
.status__note b { color: #fff; font-weight: 500; }
.status__actions { margin-top: 22px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(255,255,255,.03); color: rgba(255,255,255,.62);
  font-family: var(--font); font-size: 12.5px; font-weight: 500; white-space: nowrap;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.chip .ic { font-size: 13px; transition: transform .4s var(--ease); }
.chip:hover { color: #fff; border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.06); }
.chip:hover .ic--spin { transform: rotate(-120deg); }
body[data-state="checking"] .chip .ic--spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(-360deg); } }
.chip.is-done { color: var(--on); border-color: rgba(72,208,139,.35); }
.status__tick { margin-top: 14px; font-size: 12px; color: var(--txt-faint); }

.legend {
  margin: 34px auto 0; max-width: 780px; padding-top: 26px; border-top: 1px dashed var(--dash);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px 32px;
  text-align: left;
}
.legend__item { position: relative; padding-left: 19px; font-size: 13px; line-height: 1.6; color: var(--txt-faint); }
.legend__item b { color: var(--txt-dim); font-weight: 500; }
.legend__dot { position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: 50%; }
.legend__dot--on { background: var(--on); }
.legend__dot--off { background: var(--off); }

.touka { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-top: 48px; }
.touka .lead { font-size: 16px; line-height: 1.65; color: var(--txt-dim); max-width: 46ch; }
.bullets { margin-top: 22px; list-style: none; display: grid; gap: 13px; }
.bullets li { position: relative; padding-left: 27px; font-size: 14.5px; line-height: 1.55; color: var(--txt-dim); }
.bullets .ic { position: absolute; left: 0; top: .16em; font-size: 17px; color: var(--accent); }
.touka .btn { margin-top: 26px; }

.chat {
  font-size: 13.4px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--card); overflow: hidden;
}
.chat__bar {
  display: flex; align-items: center; gap: .9em;
  padding: 1.05em 1.35em; border-bottom: 1px solid var(--line-soft);
  background: rgba(255,255,255,.02); transition: background .25s ease;
}
.chat__bar:hover { background: rgba(255,255,255,.05); }
.chat__avatar { width: 2.55em; height: 2.55em; border-radius: 50%; flex: none; object-fit: cover; }
.chat__id { min-width: 0; }
.chat__id strong { display: block; font-size: 1em; font-weight: 600; line-height: 1.3; }
.chat__id span { font-size: .86em; color: var(--txt-faint); transition: color .25s ease; }
.chat__bar:hover .chat__id span { color: var(--accent-soft); }
.chat__live { margin-left: auto; width: .52em; height: .52em; border-radius: 50%; background: var(--on); flex: none; }

.chat__body {
  padding: 1.35em 1.2em; display: flex; flex-direction: column; gap: .67em;
  height: 33em; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.14) transparent;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 1.8em);
  mask-image: linear-gradient(to bottom, transparent 0, #000 1.8em);
}
.chat__body::-webkit-scrollbar { width: 5px; }
.chat__body::-webkit-scrollbar-track { background: transparent; }
.chat__body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 3px; }

.msg { display: none; max-width: 92%; padding: .82em 1.05em; border-radius: 1.05em; font-size: 1em; line-height: 1.5; }
.msg.is-shown { display: block; animation: msgIn .4s var(--ease) both; }
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.msg--in {
  align-self: flex-start; background: rgba(255,255,255,.05);
  border: 1px solid var(--line-soft); border-bottom-left-radius: .3em; color: var(--txt);
}
.msg--out {
  align-self: flex-end; border-bottom-right-radius: .3em; color: #14092B; font-weight: 500;
  background: var(--accent); font-family: var(--mono); font-size: .97em; max-width: 70%;
}
.msg--panel { width: 100%; max-width: 100%; }
.msg--in b { font-weight: 600; }
.msg .ic { display: inline-block; vertical-align: -.13em; font-size: 1.05em; color: var(--accent); }
.msg .sec {
  display: block; margin-top: .82em; font-size: .95em;
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: rgba(255,255,255,.25); color: var(--txt);
}
.msg blockquote {
  margin-top: .38em; padding: .6em .82em; border-left: 2px solid rgba(160,135,250,.6);
  border-radius: 0 .6em .6em 0; background: rgba(255,255,255,.025);
  font-size: .96em; color: var(--txt-dim);
}
.msg blockquote code { font-family: var(--mono); font-size: .92em; color: var(--accent-soft); }
.msg .imp { display: block; margin-top: .82em; font-size: .93em; color: var(--txt-faint); }
.msg .imp b { color: var(--txt-dim); }
.keys { display: grid; grid-template-columns: 1fr 1fr; gap: .45em; margin-top: .97em; }
.key {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  padding: .67em .75em; border-radius: .75em; font-size: .93em;
  color: var(--txt-dim); border: 1px solid var(--line); background: rgba(255,255,255,.03);
  transition: color .2s, border-color .2s, background .2s;
}
.key .ic { font-size: .9em; }
.key--wide { grid-column: 1 / -1; }
.key.is-hot { color: var(--accent-soft); border-color: rgba(160,135,250,.4); background: rgba(160,135,250,.1); }
.key:hover { color: #fff; border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.06); }
.msg--typing[hidden] { display: none; }
.msg--typing:not([hidden]) {
  align-self: flex-start; display: flex; gap: .3em; padding: .97em 1.05em;
  background: rgba(255,255,255,.05); border-radius: 1.05em; border-bottom-left-radius: .3em;
  animation: msgIn .3s var(--ease) both;
}
.msg--typing i { width: .37em; height: .37em; border-radius: 50%; background: var(--txt-faint); animation: bob 1.3s ease-in-out infinite; }
.msg--typing i:nth-child(2) { animation-delay: .18s; }
.msg--typing i:nth-child(3) { animation-delay: .36s; }
@keyframes bob { 0%, 100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(-3px); opacity: 1; } }

.packs { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: center; }
.pack {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--card); padding: 28px 26px; min-width: 0;
  overflow-wrap: break-word;
  transition: border-color .3s ease, background .3s ease;
}
.pack:hover { border-color: rgba(255,255,255,.14); background: var(--card-hi); }
.pack--hot {
  border-color: rgba(160,135,250,.35); background: var(--card-hi);
  padding: 40px 30px; z-index: 1; box-shadow: 0 20px 60px -40px #000;
}
.pack--hot:hover { border-color: rgba(160,135,250,.55); }
.pack__flag {
  display: inline-block; align-self: flex-start; margin-bottom: 14px;
  padding: 5px 11px; border-radius: 999px; font-size: 11px; font-weight: 600;
  background: rgba(255,255,255,.06); color: rgba(255,255,255,.6);
}
.pack--hot .pack__flag { background: var(--accent); color: #14092B; }
.pack h3 { font-size: 18px; font-weight: 600; letter-spacing: -.02em; color: #fff; }
.pack--hot h3 { font-size: 20px; }
.pack__desc { margin-top: 7px; font-size: 13.5px; line-height: 1.5; color: var(--txt-dim); }
.pack__price { margin-top: 20px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.pack__price b { font-size: 34px; font-weight: 650; letter-spacing: -.04em; color: #fff; line-height: 1; }
.pack--hot .pack__price b { font-size: 40px; color: var(--accent); }
.pack__price .ic { font-size: 19px; color: var(--accent); }
.pack__price span { font-size: 13px; color: var(--txt-dim); }
.pack__note { margin-top: 9px; font-size: 12.5px; color: var(--txt-faint); }
.pack .btn { margin-top: 20px; width: 100%; }
.pack__what {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-soft);
  font-size: 11px; font-weight: 600; letter-spacing: 1.3px; text-transform: uppercase; color: var(--txt-faint);
}
.pack ul { margin-top: 12px; list-style: none; display: grid; gap: 9px; }
.pack li { position: relative; padding-left: 21px; font-size: 13px; line-height: 1.5; color: var(--txt-dim); }
.pack li .ic { position: absolute; left: 0; top: .18em; font-size: 14px; color: var(--accent); }
.packs__note { margin-top: 24px; text-align: center; font-size: 13px; color: var(--txt-faint); }

.steps { margin-top: 48px; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step {
  padding: 28px 26px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card);
  transition: border-color .3s ease, background .3s ease;
}
.step:hover { border-color: rgba(255,255,255,.14); background: var(--card-hi); }
.step__n {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  font-family: var(--mono); font-size: 11.5px; color: var(--accent);
  border: 1px solid var(--line); background: rgba(255,255,255,.03);
}
.step h3 { margin-top: 16px; font-size: 17px; font-weight: 600; letter-spacing: -.02em; color: #fff; }
.step p { margin-top: 9px; font-size: 14px; line-height: 1.6; color: var(--txt-dim); }

.faq { margin-top: 16px; display: grid; grid-template-columns: 330px 1fr; gap: 60px; align-items: start; }
.faq__side { position: sticky; top: 118px; }
.faq__side h2 { font-size: clamp(29px, 3.4vw, 40px); font-weight: 650; letter-spacing: -.035em; line-height: 1.1; color: #fff; }
.faq__side p { margin-top: 15px; font-size: 14.5px; color: var(--txt-dim); }
.faq__side .more { margin-top: 20px; font-size: 13px; color: var(--txt-faint); }
.faq__side .more a { color: var(--accent); font-weight: 500; }
.qa { border-bottom: 1px dashed var(--dash); }
.qa:first-child { border-top: 1px dashed var(--dash); }
.qa__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 21px 2px; background: none; border: none; cursor: pointer;
  font-family: var(--font); font-size: 15px; font-weight: 500; color: #fff; text-align: left;
  transition: color .2s ease;
}
.qa__q:hover { color: var(--accent-soft); }
.qa__q .ic { font-size: 16px; color: var(--txt-faint); transition: transform .35s var(--ease), color .2s ease; }
.qa.is-open .qa__q .ic { transform: rotate(180deg); color: var(--accent); }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.qa__a > div { overflow: hidden; }
.qa.is-open .qa__a { grid-template-rows: 1fr; }
.qa__a p { font-size: 14.5px; line-height: 1.7; color: var(--txt-dim); max-width: 70ch; }
.qa__a p + p { margin-top: 12px; }
.qa__a p:last-child { padding-bottom: 22px; }
.qa__a code {
  font-family: var(--mono); font-size: 13px; color: var(--accent-soft);
  background: rgba(160,135,250,.09); padding: 2px 6px; border-radius: 5px;
}
.qa__a b { color: var(--txt); font-weight: 500; }
.qa__a a { color: var(--accent); }

.cta { text-align: center; padding: 104px 0 116px; position: relative; z-index: 1; }
.cta h2 { font-size: clamp(34px, 5vw, 58px); font-weight: 500; line-height: 1.06; letter-spacing: -.02em; color: #fff; }
.cta p { margin: 20px auto 0; max-width: 520px; font-size: 16.5px; color: var(--txt-dim); }
.cta code { font-family: var(--mono); font-size: 15px; color: var(--accent); }
.cta .btn { margin-top: 32px; }

.foot {
  position: relative; z-index: 1; overflow: hidden;
  border-top: 1px solid var(--line-soft); background: var(--surface); padding: 72px 0 36px;
}
.foot__mark {
  position: absolute; left: 50%; bottom: -8%; transform: translateX(-50%);
  font-size: clamp(120px, 19vw, 260px); font-weight: 650; letter-spacing: -.05em;
  color: rgba(255,255,255,.014); white-space: nowrap; pointer-events: none; line-height: 1;
}
.foot__grid { position: relative; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.foot__about p { margin-top: 15px; font-size: 13.5px; line-height: 1.6; color: var(--txt-dim); max-width: 30ch; }
.foot__social { margin-top: 20px; display: flex; gap: 8px; }
.foot__social a {
  width: 34px; height: 34px; border-radius: var(--r-sm); display: grid; place-items: center; font-size: 16px;
  border: 1px solid var(--line); background: rgba(255,255,255,.025); color: rgba(255,255,255,.5);
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.foot__social a:hover { color: #fff; border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.06); }
.foot__col h4 { font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: #fff; margin-bottom: 13px; }
.foot__col a { display: block; padding: 5px 0; font-size: 13.5px; color: var(--txt-dim); transition: color .2s ease; }
.foot__col a:hover { color: #fff; }
.foot__bar {
  position: relative; margin-top: 52px; padding-top: 22px; border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--txt-faint);
}
.foot__status { display: inline-flex; align-items: center; gap: 8px; }
.foot__links { margin-left: auto; display: flex; gap: 18px; }
.foot__bar a:hover { color: #fff; }

.status__dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--txt-faint); transition: background .4s ease; }
body[data-state="checking"] .status__dot,
body[data-state="checking"] .badge__dot { animation: blink 1.2s ease-in-out infinite; }
body[data-state="online"] .status__dot,
body[data-state="online"] .badge__dot { background: var(--on); }
body[data-state="termed"] .status__dot,
body[data-state="termed"] .badge__dot { background: var(--off); }

.legal { position: relative; z-index: 1; padding: 168px 0 40px; text-align: center; }
.legal__head { max-width: 700px; margin: 0 auto; }
.legal h1 { font-size: clamp(36px, 5.2vw, 58px); font-weight: 500; line-height: 1.06; letter-spacing: -.015em; color: #fff; }
.legal__lead { margin: 20px auto 0; max-width: 56ch; font-size: 17px; line-height: 1.65; color: var(--txt-dim); }
.legal__meta { margin-top: 18px; font-size: 11px; font-weight: 600; letter-spacing: 1.3px; text-transform: uppercase; color: var(--txt-faint); }
.rules { margin: 64px auto 0; max-width: 720px; list-style: none; }
.rule { padding: 34px 0; border-top: 1px dashed var(--dash); }
.rule:last-child { border-bottom: 1px dashed var(--dash); }
.rule__n { display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; color: var(--accent); }
.rule h2 { margin-top: 12px; font-size: clamp(19px, 2.4vw, 23px); font-weight: 600; letter-spacing: -.025em; color: #fff; }
.rule p { margin: 12px auto 0; max-width: 62ch; font-size: 14.5px; line-height: 1.7; color: var(--txt-dim); }
.rule b { color: #fff; font-weight: 600; }
.rule code {
  font-family: var(--mono); font-size: 12.5px; color: var(--accent-soft);
  background: rgba(160,135,250,.09); padding: 2px 6px; border-radius: 5px;
}
.rule--hard .rule__n { color: var(--off); }

.terms { margin: 72px auto 0; max-width: 720px; }
.terms h2 { font-size: clamp(21px, 2.8vw, 26px); font-weight: 650; letter-spacing: -.03em; color: #fff; }
.terms__list { margin-top: 26px; list-style: none; display: grid; gap: 18px; }
.terms__list li { font-size: 14.5px; line-height: 1.7; color: var(--txt-dim); }
.terms__list b { display: block; color: #fff; font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.terms__list em { color: var(--txt); }
.terms__list a { color: var(--accent); }
.legal__cta { margin: 80px auto 20px; max-width: 720px; padding-top: 44px; border-top: 1px dashed var(--dash); }
.legal__cta p { font-size: clamp(21px, 2.8vw, 28px); font-weight: 600; letter-spacing: -.03em; color: #fff; }
.legal__cta .btn { margin-top: 24px; }

.reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .feature { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
  .faq { grid-template-columns: 1fr; gap: 28px; }
  .faq__side { position: static; text-align: center; }
  .faq__side h2 { font-size: clamp(34px, 8vw, 44px); }
  .faq__side .more { margin-bottom: 6px; }
  .steps { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .foot__about { grid-column: span 2; }
}

@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__in { padding-right: 6px; }
  .brand { margin-right: auto; }
  .section { padding: 74px 0; }
  .hero { padding: 138px 0 84px; }
  .sigil { width: 78vw; top: 118px; }
  .cta { padding: 84px 0 92px; }
  .legal { padding-top: 128px; }
  .rule { padding: 28px 0; }
}

@media (min-width: 701px) and (max-width: 1000px) {
  .touka { grid-template-columns: 1fr 1.05fr; gap: 26px; }
  .touka .lead { font-size: 14.5px; }
  .bullets li { font-size: 13px; padding-left: 23px; }
  .bullets .ic { font-size: 15px; }
  .chat { font-size: 10px; }
  .chat__body { height: 34em; }

  .packs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .pack { padding: 20px 16px; }
  .pack--hot { padding: 26px 18px; }
  .pack h3, .pack--hot h3 { font-size: 15px; }
  .pack__desc { font-size: 12px; }
  .pack__price b { font-size: 26px; }
  .pack--hot .pack__price b { font-size: 30px; }
  .pack .btn { font-size: 11.5px; padding: 10px 8px; white-space: normal; }
  .pack .btn .ic { display: none; }
  .pack li { font-size: 11.5px; padding-left: 17px; }
}

@media (max-width: 700px) {
  .touka { grid-template-columns: 1fr; gap: 32px; }
  .chat { font-size: 12px; }
  .chat__body { height: 32em; }
  .packs { grid-template-columns: 1fr; gap: 12px; max-width: 420px; margin-inline: auto; }
  .pack, .pack--hot { padding: 26px 24px; }
  .pack--hot { transform: none; }
}

@media (max-width: 520px) {
  .nav { padding: 10px 12px; }
  .nav__in { padding: 0 6px 0 14px; gap: 10px; }
  .nav__end .btn { padding: 9px 14px; }
  .demo { min-height: 176px; padding: 16px; font-size: 12px; }
  .demo--pay { min-height: 210px; padding: 16px; }
  .rails__opt { font-size: 10.5px; gap: 5px; padding: 8px 2px; }
  .rails__opt .ic { font-size: 12px; }
  .quote { height: 72px; margin-top: 20px; }
  .quote__val b { font-size: 27px; }
  .quote__row i { font-size: 11px; }
  .demo--setup { gap: 16px; }
  .setup__ring { width: 62px; height: 62px; }
  .status__actions { gap: 6px; }
  .hero__actions .btn { width: 100%; }
  .foot__grid { grid-template-columns: 1fr; }
  .foot__about { grid-column: auto; }
  .chat { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .msg.is-shown { animation: none; }
  .spam__msg, .spam__verdict { opacity: 1; }
  .chat__body { scroll-behavior: auto; }
}
