:root {
  --paper: #f7f6f2;
  --paper-2: #efede6;
  --card: #ffffff;
  --ink: #15192b;
  --ink-2: #4a4f63;
  --ink-3: #8a8ea0;
  --line: rgba(21, 25, 43, 0.09);
  --line-2: rgba(21, 25, 43, 0.16);
  --cobalt: #2747b8;
  --cobalt-deep: #1a2f7a;
  --cobalt-soft: #e7ecfb;
  --steel: #5b6b74;
  --steel-light: #8b9aa2;
  --amber: #f5a524;
  --amber-soft: #fff1d6;
  --mint: #1f9d6b;
  --rose: #e2485b;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(21, 25, 43, 0.05), 0 8px 24px -8px rgba(21, 25, 43, 0.12);
  --shadow-lg: 0 2px 4px rgba(21, 25, 43, 0.04), 0 30px 60px -20px rgba(26, 47, 122, 0.28);
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Onest", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1160px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(21, 25, 43, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000 0, transparent 70vh);
  z-index: -1;
}

a { color: var(--cobalt); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

img { max-width: 100%; display: block; }

code, kbd, pre { font-family: var(--mono); font-size: 0.88em; }

code {
  background: var(--cobalt-soft);
  color: var(--cobalt-deep);
  padding: 0.12em 0.4em;
  border-radius: 6px;
}

kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: 0.1em 0.45em;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--card);
  text-align: center;
  font-size: 0.82em;
}

.wrap { width: min(var(--wrap), 100% - 32px); margin: 0 auto; }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  background: rgba(247, 246, 242, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.nav.scrolled { border-color: var(--line); }

.nav .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; }

.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--ink-2); font-size: 15px; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink); text-decoration: none; }

@media (max-width: 720px) {
  .nav-links .opt, .nav-links .gh { display: none; }
  .nav .wrap { gap: 14px; }
  .nav-links { gap: 14px; }
}

.lang {
  font: 600 13px/1 var(--mono);
  color: var(--ink-2);
  padding: 7px 9px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
}

.lang:hover { color: var(--cobalt); border-color: var(--cobalt); text-decoration: none; }

@media (max-width: 440px) {
  .nav .brand-name { display: none; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 14px;
  font: 600 16px/1 var(--body);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  white-space: nowrap;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; flex: none; }

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 6px 18px -6px rgba(21, 25, 43, 0.5);
}

.btn-primary:hover { box-shadow: 0 10px 24px -8px rgba(21, 25, 43, 0.55); }

.btn-ghost {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line-2);
}

.btn small { font-weight: 500; opacity: 0.6; font-size: 13px; }

.btn-sm { padding: 9px 14px; font-size: 14px; border-radius: 11px; }

/* ---------- hero ---------- */

.hero { padding: 72px 0 40px; }

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-2);
  box-shadow: var(--shadow);
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px var(--amber-soft);
}

h1, h2, h3 {
  font-family: var(--display);
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(40px, 5.6vw, 68px);
  margin: 22px 0 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--cobalt);
  position: relative;
  white-space: nowrap;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 0.04em;
  height: 0.22em;
  background: var(--amber);
  opacity: 0.45;
  border-radius: 4px;
  z-index: -1;
}

.lead { font-size: 19px; color: var(--ink-2); max-width: 34em; margin: 0 0 30px; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.meta { margin-top: 18px; font-size: 14px; color: var(--ink-3); }
.meta span + span::before { content: "·"; margin: 0 8px; }

@media (max-width: 920px) {
  .hero { padding-top: 40px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- vault door ---------- */

.vault {
  position: relative;
  aspect-ratio: 1 / 1.02;
  max-width: 470px;
  margin: 0 auto;
  width: 100%;
}

.vault-bg {
  position: absolute;
  inset: 0;
  border-radius: 22%;
  background: linear-gradient(160deg, #3557c9 0%, var(--cobalt-deep) 100%);
  box-shadow: var(--shadow-lg), inset 0 2px 0 rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.vault-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 0%, rgba(255, 255, 255, 0.18), transparent 55%);
}

.vault-frame {
  position: absolute;
  inset: 13% 21% 12%;
  border-radius: 14px;
  background: linear-gradient(180deg, #9aa7ae, #6b7a83);
  padding: 9px;
  box-shadow: 0 18px 30px -10px rgba(0, 0, 0, 0.5);
  perspective: 900px;
}

.vault-inside {
  position: absolute;
  inset: 9px;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff6e0, #ffe2a6);
  overflow: hidden;
  padding: 14% 10%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vault-inside .item {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  padding: 7px 9px;
  font: 600 12px/1.2 var(--body);
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 2px 6px rgba(140, 90, 0, 0.12);
  opacity: 0;
  transform: translateY(6px);
  transition: 0.4s 0.15s;
}

.vault-inside .item i {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  flex: none;
  display: grid;
  place-items: center;
  color: #fff;
  font: 700 10px/1 var(--body);
  font-style: normal;
}

.vault.open .vault-inside .item { opacity: 1; transform: none; }
.vault.open .vault-inside .item:nth-child(2) { transition-delay: 0.25s; }
.vault.open .vault-inside .item:nth-child(3) { transition-delay: 0.35s; }
.vault.open .vault-inside .item:nth-child(4) { transition-delay: 0.45s; }
.vault.open .vault-inside .item:nth-child(5) { transition-delay: 0.55s; }

.vault-door {
  position: absolute;
  inset: 9px;
  border-radius: 8px;
  background: linear-gradient(180deg, #67777f, #4f5e66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -2px 0 rgba(0, 0, 0, 0.15);
  transform-origin: left center;
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-style: preserve-3d;
}

.vault-door::before {
  content: "";
  position: absolute;
  inset: 7% 9%;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.vault-door .hinge {
  position: absolute;
  left: -5px;
  width: 9px;
  height: 13%;
  border-radius: 4px;
  background: linear-gradient(90deg, #8d9ba3, #c3ccd1, #8d9ba3);
}

.vault-door .hinge.t { top: 18%; }
.vault-door .hinge.b { bottom: 18%; }

.vault-door .handle {
  position: absolute;
  right: 11%;
  top: 46%;
  width: 34%;
  height: 7%;
  border-radius: 6px;
  background: linear-gradient(180deg, #e3e8eb, #a9b4ba);
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
}

.vault-door .handle::after {
  content: "";
  position: absolute;
  right: 0;
  top: 100%;
  width: 34%;
  height: 160%;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(180deg, #c9d1d5, #98a4ab);
}

.vault-door .lamp {
  position: absolute;
  right: 22%;
  top: 37%;
  width: 14px;
  height: 9px;
  border-radius: 3px;
  background: var(--amber);
  box-shadow: 0 0 14px 4px rgba(245, 165, 36, 0.7);
  animation: glow 2.6s ease-in-out infinite;
}

.vault.open .vault-door .lamp { background: #3ddc84; box-shadow: 0 0 14px 4px rgba(61, 220, 132, 0.7); animation: none; }

@keyframes glow { 50% { box-shadow: 0 0 6px 1px rgba(245, 165, 36, 0.5); } }

.vault.open .vault-door { transform: rotateY(-118deg); }

.vault-hint {
  position: absolute;
  bottom: -34px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 13px;
  color: var(--ink-3);
}

.float-chip {
  position: absolute;
  z-index: 3;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: bob 6s ease-in-out infinite;
}

.float-chip .sw { width: 10px; height: 10px; border-radius: 50%; }
.float-chip.a { top: 8%; left: -6%; }
.float-chip.b { top: 46%; right: -8%; animation-delay: -2s; }
.float-chip.c { bottom: 6%; left: 2%; animation-delay: -4s; }

.otp { font-family: var(--mono); letter-spacing: 0.08em; color: var(--cobalt); }

@keyframes bob { 50% { transform: translateY(-8px); } }

@media (max-width: 520px) {
  .float-chip.a { left: 0; }
  .float-chip.b { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- compat strip ---------- */

.strip { padding: 64px 0 24px; }

.strip p {
  text-align: center;
  font-size: 14px;
  color: var(--ink-3);
  margin: 0 0 16px;
}

.logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.logos span {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px dashed var(--line-2);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
}

/* ---------- sections ---------- */

section { scroll-margin-top: 80px; }

.section { padding: 96px 0; }

.section-head { max-width: 700px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 46px); margin: 12px 0 14px; }
.section-head p { color: var(--ink-2); font-size: 18px; margin: 0; }

.kicker {
  font: 600 13px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cobalt);
}

/* ---------- feature rows ---------- */

.feature {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 56px;
  align-items: center;
  padding: 44px 0;
}

.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip .feature-text { order: 2; }

.feature-text h3 { font-size: 28px; margin: 14px 0 12px; }
.feature-text > p { color: var(--ink-2); margin: 0 0 18px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
}

.tag.blue { background: var(--cobalt-soft); color: var(--cobalt-deep); }
.tag.amber { background: var(--amber-soft); color: #8a5a00; }
.tag.mint { background: #dcf3e8; color: #13603f; }
.tag.rose { background: #fde4e7; color: #9d1f30; }

.ticks { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }

.ticks li {
  padding-left: 28px;
  position: relative;
  color: var(--ink-2);
  font-size: 16px;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 17px;
  height: 17px;
  border-radius: 6px;
  background: var(--cobalt-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.4L12 5.4' fill='none' stroke='%232747b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.more-link { font-weight: 600; font-size: 15px; }
.more-link::after { content: " →"; }

@media (max-width: 920px) {
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature.flip .feature-text { order: 0; }
}

/* ---------- screenshot frame ---------- */

.shot {
  position: relative;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.4s;
}

.shot:hover { transform: rotate(0deg) translateY(-4px); }

.shot-bar {
  display: flex;
  gap: 7px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #fbfbfd;
}

.shot-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.shot-bar i:nth-child(2) { background: #febc2e; }
.shot-bar i:nth-child(3) { background: #28c840; }

.shot img { width: 100%; height: auto; }

.shot.real {
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  filter: drop-shadow(0 2px 3px rgba(21, 25, 43, 0.08)) drop-shadow(0 24px 40px rgba(26, 47, 122, 0.22));
}

.shot.small { max-width: 520px; margin-left: auto; margin-right: auto; }

.doc-shot { margin: 24px 0; }
.doc-shot img { width: 100%; height: auto; filter: drop-shadow(0 2px 3px rgba(21, 25, 43, 0.08)) drop-shadow(0 18px 30px rgba(26, 47, 122, 0.16)); }
.doc-shot.small { max-width: 520px; }
.doc-shot figcaption { font-size: 14px; color: var(--ink-3); margin-top: 8px; text-align: center; }

.shot-ph {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  color: var(--ink-3);
  font: 500 13px/1.5 var(--mono);
  background:
    linear-gradient(135deg, transparent 48%, var(--line) 49%, var(--line) 51%, transparent 52%) 0 0 / 100% 100%,
    repeating-linear-gradient(0deg, var(--paper) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, var(--paper) 0 1px, transparent 1px 28px),
    #fdfdfc;
}

.shot-ph span {
  background: var(--card);
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.phone {
  width: 220px;
  border-radius: 34px;
  padding: 9px;
  background: #1b1d22;
  box-shadow: var(--shadow-lg);
  position: absolute;
  right: -18px;
  bottom: -30px;
  transform: rotate(4deg);
}

.phone .shot-ph { aspect-ratio: 9 / 19; border-radius: 26px; }

.shot-wrap { position: relative; padding-bottom: 20px; }
.shot-wrap.with-phone { padding-right: 90px; }

@media (max-width: 520px) {
  .shot-wrap.with-phone { padding-right: 0; }
  .phone { width: 130px; right: -6px; border-radius: 24px; padding: 6px; }
  .phone .shot-ph { border-radius: 18px; font-size: 10px; padding: 8px; }
}

/* ---------- mini mocks (inside screenshots until real ones exist) ---------- */

.mock-toast {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  background: rgba(30, 30, 32, 0.92);
  color: #fff;
  font-size: 13px;
  padding: 9px 14px;
  border-radius: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  white-space: nowrap;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.4);
}

.mock-toast b { color: #7fb2ff; font-weight: 600; }

.terminal {
  background: #14161f;
  color: #d6dae6;
  border-radius: 16px;
  padding: 18px 20px;
  font: 13.5px/1.75 var(--mono);
  box-shadow: var(--shadow-lg);
  overflow-x: auto;
  white-space: pre;
}

.terminal .p { color: #7fd1a6; }
.terminal .c { color: #6b728a; }
.terminal .a { color: var(--amber); }

/* ---------- bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tile.wide { grid-column: span 2; }

.tile .ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  margin-bottom: 14px;
  background: var(--cobalt-soft);
}

.tile h4 { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.tile p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }

@media (max-width: 920px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .bento { grid-template-columns: 1fr; } .tile.wide { grid-column: auto; } }

/* ---------- search demo ---------- */

.search-demo {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--line-2);
  font: 15px var(--mono);
  min-height: 52px;
}

.search-box svg { width: 18px; height: 18px; color: var(--ink-3); flex: none; }
.search-box .tok-op { color: var(--cobalt); font-weight: 600; }
.search-box .tok-neg { color: var(--rose); }
.search-box .tok-str { color: #8a5a00; }

.caret {
  width: 2px;
  height: 20px;
  background: var(--cobalt);
  animation: blink 1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.search-results { margin-top: 12px; display: grid; gap: 6px; }

.row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border-radius: 11px;
  font-size: 14.5px;
  transition: opacity 0.3s, transform 0.3s;
}

.row:first-child { background: var(--cobalt-soft); }
.row.hide { opacity: 0; transform: translateX(-6px); height: 0; padding: 0 10px; overflow: hidden; }
.row .lt {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  flex: none;
}

.row small { display: block; color: var(--ink-3); font-size: 12.5px; }
.row .badge { margin-left: auto; font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 6px; }

.ops { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.ops button {
  font: 13px var(--mono);
  padding: 7px 11px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  background: var(--card);
  color: var(--ink-2);
  cursor: pointer;
}

.ops button:hover, .ops button.on { border-color: var(--cobalt); color: var(--cobalt); background: var(--cobalt-soft); }

@media (max-width: 920px) { .search-demo { grid-template-columns: 1fr; padding: 20px; } }

/* ---------- download ---------- */

.download {
  background: var(--cobalt-deep);
  color: #fff;
  border-radius: 36px;
  padding: 64px;
  position: relative;
  overflow: hidden;
}

.download::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -160px;
  top: -200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 165, 36, 0.35), transparent 65%);
}

.download h2 { font-size: clamp(30px, 3.6vw, 46px); max-width: 14em; position: relative; }
.download > p { color: rgba(255, 255, 255, 0.7); max-width: 34em; position: relative; }

.platforms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 36px;
  position: relative;
}

.platform {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.platform header { display: flex; align-items: center; gap: 12px; }
.platform header svg { width: 30px; height: 30px; }
.platform h3 { font-size: 22px; }
.platform .num { margin-left: auto; font: 600 12px var(--mono); color: rgba(255, 255, 255, 0.5); }
.platform ul { margin: 0; padding-left: 18px; color: rgba(255, 255, 255, 0.72); font-size: 15px; }
.platform .btn { align-self: flex-start; margin-top: auto; }
.platform .btn-primary { background: #fff; color: var(--ink); }
.platform .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.btn.is-disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; border-style: dashed; }

.soon {
  font: 600 11px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: var(--amber);
  padding: 4px 8px;
  border-radius: 6px;
}

@media (max-width: 760px) {
  .download { padding: 36px 22px; border-radius: 26px; }
  .platforms { grid-template-columns: 1fr; }
}

/* ---------- footer ---------- */

footer {
  padding: 56px 0 48px;
  color: var(--ink-3);
  font-size: 14px;
}

footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--ink-2); }

/* ---------- docs ---------- */

.docs {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 56px;
  padding: 48px 0 80px;
}

.toc { position: sticky; top: 88px; align-self: start; font-size: 15px; }

.toc h5 {
  margin: 22px 0 8px;
  font: 600 12px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}

.toc h5:first-child { margin-top: 0; }
.toc ul { list-style: none; margin: 0; padding: 0; }

.toc a {
  display: block;
  padding: 6px 12px;
  margin-left: -12px;
  border-radius: 9px;
  color: var(--ink-2);
}

.toc a:hover { background: var(--paper-2); text-decoration: none; color: var(--ink); }
.toc a.active { background: var(--card); color: var(--cobalt); font-weight: 600; box-shadow: var(--shadow); }

.article { max-width: 760px; }
.article > section + section { margin-top: 72px; padding-top: 56px; border-top: 1px solid var(--line); }
.article h1 { font-size: clamp(34px, 4vw, 48px); margin-bottom: 14px; }
.article h2 { font-size: 30px; margin: 10px 0 14px; }
.article h3 { font-size: 19px; margin: 36px 0 10px; letter-spacing: -0.02em; }
.article p, .article li { color: var(--ink-2); }
.article li + li { margin-top: 6px; }
.article strong { color: var(--ink); }
.article p code, .article li code { overflow-wrap: anywhere; }

.article pre {
  background: #14161f;
  color: #d6dae6;
  border-radius: 14px;
  padding: 16px 18px;
  overflow-x: auto;
  line-height: 1.7;
}

.article pre code { background: none; color: inherit; padding: 0; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 20px 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }

.steps > li {
  counter-increment: step;
  position: relative;
  padding: 16px 18px 16px 62px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin: 0 !important;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 14px;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--cobalt);
  color: #fff;
  font: 600 14px var(--display);
}

.callout {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--amber-soft);
  border: 1px solid rgba(245, 165, 36, 0.35);
  margin: 22px 0;
  font-size: 16px;
}

.callout.info { background: var(--cobalt-soft); border-color: rgba(39, 71, 184, 0.2); }
.callout p { margin: 0; color: var(--ink); }
.callout .ci { font-size: 20px; line-height: 1.3; }

.table-wrap { overflow-x: auto; margin: 18px 0; }

table { border-collapse: collapse; width: 100%; font-size: 15px; background: var(--card); border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--paper-2); font-weight: 600; font-size: 13px; color: var(--ink-2); }
tr:last-child td { border-bottom: 0; }

.merge-diagram { margin: 28px 0; }
.merge-diagram svg { width: 100%; height: auto; }

.docs-hero { padding: 56px 0 0; }
.docs-hero p { color: var(--ink-2); font-size: 18px; max-width: 40em; }

.doc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.doc-cards a {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.doc-cards a:hover { text-decoration: none; transform: translateY(-3px); }
.doc-cards b { display: block; margin: 10px 0 4px; }
.doc-cards span { color: var(--ink-2); font-size: 14px; }

@media (max-width: 920px) {
  .docs { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .toc { position: static; display: none; }
  .doc-cards { grid-template-columns: 1fr; }
}

/* ---------- reveal ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s, transform 0.7s; }
.reveal.in { opacity: 1; transform: none; }
