/* ============================================================
   Arxan AI — landing page
   Dark theme, cobalt accent
   ============================================================ */

:root {
  --bg: #05070d;
  --bg-soft: #080b14;
  --panel: #0b0f19;
  --panel-2: #0e131f;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #e8edf7;
  --muted: #98a2b6;
  --muted-2: #7f89a0;
  --accent: #4c7dff;
  --accent-bright: #7ea0ff;
  --accent-deep: #2f5bff;
  --ok: #35d07f;
  --radius: 14px;
  --radius-lg: 20px;
  --shell: 1180px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
code { font-family: var(--mono); font-size: 0.92em; }
svg { display: block; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: 24px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 999px;
  padding: 12px 22px; font-size: 14px; font-weight: 500; letter-spacing: -0.01em;
  cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease;
}
.btn-sm { padding: 8px 16px; font-size: 13.5px; }
.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-primary {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 10px 30px -12px rgba(76, 125, 255, 0.8);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.22) inset, 0 16px 36px -14px rgba(76,125,255,.95); }
.btn-outline { background: rgba(255, 255, 255, 0.045); border-color: rgba(255, 255, 255, 0.2); color: var(--text); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255,255,255,.24); transform: translateY(-1px); }
.btn-ghost { color: #b3bccd; }
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,.05); }

.link-arrow { color: var(--accent-bright); font-size: 14px; font-weight: 500; white-space: nowrap; }
.link-arrow:hover { color: #fff; }

/* ---------- announce ---------- */
.announce {
  background: linear-gradient(90deg, rgba(47,91,255,.22), rgba(76,125,255,.06) 55%, rgba(47,91,255,.18));
  border-bottom: 1px solid rgba(76,125,255,.22);
  font-size: 13px;
}
.announce a {
  max-width: var(--shell); margin-inline: auto; padding: 9px 24px;
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  color: #c9d6f5;
}
.announce strong { color: #fff; font-weight: 600; }
.announce-mid { color: #a9b6d3; }
.announce-label {
  font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: rgba(76,125,255,.9); padding: 2px 8px; border-radius: 999px;
}
.announce-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 3px rgba(53,208,127,.18); flex: none;
}
.announce-cta { color: var(--accent-bright); }
.announce a:hover .announce-cta { color: #fff; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 7, 13, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand-logo { height: 22px; width: auto; display: block; opacity: .95; transition: opacity .15s ease; }
.brand:hover .brand-logo { opacity: 1; }
.brand-logo-footer { height: 25px; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 14px; color: var(--muted); }
.nav a { transition: color .15s ease; }
.nav a:hover { color: #fff; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.btn-nav {
  background: rgba(76,125,255,.15); border-color: rgba(76,125,255,.45); color: #d6e1ff;
  box-shadow: none;
}
.btn-nav:hover { background: rgba(76,125,255,.26); border-color: rgba(76,125,255,.7); box-shadow: none; color: #fff; }
.menu-btn {
  display: none; width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer;
}
.menu-btn span { display: block; width: 16px; height: 1.5px; background: var(--text); transition: transform .2s ease, opacity .2s; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 32px 0 44px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.grid-mask {
  position: absolute; inset: -10% -10% 30%;
  background-image: linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 78%);
}
.glow { position: absolute; border-radius: 50%; filter: blur(90px); }
.glow-a { width: 620px; height: 460px; top: -240px; left: 50%; transform: translateX(-50%); background: rgba(47,91,255,.30); }
.glow-b { width: 380px; height: 320px; top: 120px; right: 4%; background: rgba(126,160,255,.14); }

.hero-inner { position: relative; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
  font-size: 12.5px; letter-spacing: .01em; color: #b8c4de;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  padding: 6px 14px; border-radius: 999px;
}
.pill-live { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(53,208,127,.16); }

.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 3.95rem);
  letter-spacing: -0.035em; line-height: 1.07; font-weight: 600;
  text-wrap: balance;
}
.grad {
  background: linear-gradient(100deg, #ffffff 8%, #a9c0ff 46%, #4c7dff 96%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede {
  max-width: 640px; margin: 16px auto 0; color: var(--muted);
  font-size: clamp(15px, 1.5vw, 16.5px); line-height: 1.6; text-wrap: balance;
}
.hero-cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; margin: 26px auto 0; max-width: 760px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.hero-stats > div { background: rgba(9,12,20,.85); padding: 14px 10px; text-align: center; }
.hero-stats dt {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 4px;
}
.hero-stats dd {
  margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.hero-stats dd.price { display: inline-flex; align-items: baseline; }
.hero-stats .cur { font-size: 15px; color: #c3cee4; margin-right: 1px; }
.hero-stats .unit { font-size: 11.5px; color: var(--muted-2); font-weight: 400; margin-left: 3px; letter-spacing: 0; }

/* ---------- terminal ---------- */
.terminal {
  max-width: 760px; margin: 22px auto 0; text-align: left;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.01)), var(--panel);
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden;
}
.terminal-bar {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02);
}
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.14); }
.terminal-title { font-family: var(--mono); font-size: 11.5px; color: var(--muted-2); }
.copy-btn {
  margin-left: auto; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  color: #c3cee4; font-size: 11.5px; padding: 4px 10px; border-radius: 7px; cursor: pointer;
  transition: color .15s, background .15s, border-color .15s;
}
.copy-btn:hover { color: #fff; background: rgba(255,255,255,.1); }
.copy-btn.is-copied { color: var(--ok); border-color: rgba(53,208,127,.4); }
.terminal-body pre {
  margin: 0; padding: 16px 20px; overflow-x: auto;
  font-family: var(--mono); font-size: 12.2px; line-height: 1.7; color: #cfd9ee;
}
.terminal-foot {
  display: flex; align-items: center; gap: 8px; padding: 11px 18px;
  border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted);
  background: rgba(255,255,255,.015);
}
.terminal-foot code { color: var(--accent-bright); }
.c-cmd { color: #8fe3b0; }
.c-str { color: #b7c9ff; }
.c-kw { color: #c792ea; }
.c-fn { color: #82aaff; }
.c-num { color: #f78c6c; }
.c-com { color: var(--muted-2); }
.dot-ok { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px rgba(53,208,127,.7); flex: none; }

/* ---------- marquee ---------- */
.marquee-wrap { padding: 46px 0 10px; }
.marquee-label {
  text-align: center; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 22px;
}
.marquee {
  position: relative; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex; width: max-content; gap: 52px;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.prov {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 16px; font-weight: 500; letter-spacing: -0.01em; color: #aeb9cd; white-space: nowrap;
}
.prov i { width: 7px; height: 7px; border-radius: 2px; flex: none; }
.prov span { font-size: 11px; color: var(--muted-2); font-variant-numeric: tabular-nums; }

/* ---------- sections ---------- */
.section { padding: 96px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,.018) 12%, rgba(255,255,255,.018) 88%, transparent); border-block: 1px solid rgba(255,255,255,.05); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.kicker {
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-bright); margin-bottom: 12px; font-weight: 500;
}
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); letter-spacing: -0.03em; }
.sub { color: var(--muted); font-size: 15px; margin-top: 12px; max-width: 560px; }

/* ---------- toolbar ---------- */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.search-wrap { position: relative; flex: 1 1 300px; min-width: 220px; }
.search-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted-2); }
#search {
  width: 100%; padding: 11px 14px 11px 38px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  font-size: 14px; transition: border-color .15s ease, background .15s ease;
}
#search::placeholder { color: var(--muted-2); }
#search:focus { border-color: rgba(76,125,255,.55); background: var(--panel-2); outline: none; }
.toolbar-right { display: flex; gap: 10px; flex-wrap: wrap; }
.toolbar select, .field select, .field input {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font-size: 13.5px; color: var(--text); cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.toolbar select:hover, .field select:hover, .field input:hover { border-color: var(--line-strong); }
.toolbar select:focus, .field select:focus, .field input:focus { border-color: rgba(76,125,255,.55); outline: none; background: var(--panel-2); }
.toolbar select { appearance: none; padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%238B95A8' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}

.chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip {
  background: rgba(255,255,255,.03); border: 1px solid var(--line); color: var(--muted);
  font-size: 12.5px; padding: 6px 12px; border-radius: 999px; cursor: pointer;
  transition: all .15s ease;
}
.chip:hover { color: #fff; border-color: var(--line-strong); }
.chip[aria-pressed="true"] {
  background: rgba(76,125,255,.16); border-color: rgba(76,125,255,.55); color: #dbe5ff;
}
.chips-spacer { flex: 1; }
.result-count { font-size: 12.5px; color: var(--muted-2); font-variant-numeric: tabular-nums; }

/* ---------- model table ---------- */
.table {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.022), transparent 40%), var(--panel);
}
.table-head, .row {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) 104px 116px 124px 168px;
  gap: 12px; align-items: center;
  padding: 12px 18px;
}
.table-head {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2);
  border-bottom: 1px solid var(--line); background: rgba(255,255,255,.022);
}
.table-head .num, .row .num { text-align: right; }
.table-head .col-tags { text-align: right; }
.row {
  border-bottom: 1px solid rgba(255,255,255,.045);
  font-size: 14px; transition: background .12s ease;
}
.row:last-child { border-bottom: 0; }
.row:hover { background: rgba(76,125,255,.055); }
.row .m-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.row .m-dot { width: 6px; height: 6px; border-radius: 2px; flex: none; }
.row .m-text { min-width: 0; }
.row .m-slug {
  display: block; font-weight: 500; letter-spacing: -0.01em; color: #eef3ff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.row .m-prov { display: block; font-size: 11.5px; color: var(--muted-2); margin-top: 1px; }
.row .num { font-variant-numeric: tabular-nums; font-family: var(--mono); font-size: 12.8px; color: #c3cee4; }
.row .num.em { color: #fff; }
.tags { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.tag {
  font-size: 10px; letter-spacing: .04em; text-transform: uppercase; font-weight: 500;
  padding: 2px 7px; border-radius: 5px; border: 1px solid var(--line);
  color: var(--muted); background: rgba(255,255,255,.03); white-space: nowrap;
}
.tag-vision { color: #a9c0ff; border-color: rgba(76,125,255,.35); background: rgba(76,125,255,.1); }
.tag-reason { color: #cbb4ff; border-color: rgba(160,120,255,.32); background: rgba(160,120,255,.1); }
.tag-embed { color: #8fe3b0; border-color: rgba(53,208,127,.3); background: rgba(53,208,127,.08); }
.tag-fast { color: #ffd28a; border-color: rgba(255,178,60,.3); background: rgba(255,178,60,.08); }

.skeleton-row {
  height: 52px; border-bottom: 1px solid rgba(255,255,255,.04);
  background: linear-gradient(90deg, rgba(255,255,255,.02), rgba(255,255,255,.06), rgba(255,255,255,.02));
  background-size: 200% 100%; animation: shimmer 1.4s infinite;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.empty { padding: 44px 20px; text-align: center; color: var(--muted); font-size: 14px; }
.table-note { margin-top: 12px; font-size: 12px; color: var(--muted-2); }

/* ---------- pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: start; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.check-list li {
  position: relative; padding-left: 30px; color: var(--muted); font-size: 14.5px; line-height: 1.6;
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 17px; height: 17px; border-radius: 50%;
  background: rgba(76,125,255,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.2 4.6 8.8 10 3.4' fill='none' stroke='%237EA0FF' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
  border: 1px solid rgba(76,125,255,.35);
}
.check-list strong { color: var(--text); font-weight: 600; }

.note-card {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 26px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px;
  background: rgba(255,255,255,.022); font-size: 13px; color: var(--muted); line-height: 1.55;
}
.note-icon {
  flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-strong); font-size: 11px; color: var(--accent-bright); font-style: normal;
}

.calc-card {
  background: linear-gradient(180deg, rgba(76,125,255,.07), rgba(255,255,255,.01)), var(--panel);
  border: 1px solid rgba(76,125,255,.22); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow);
}
.calc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.calc-head h3 { font-size: 16px; }
.calc-badge {
  font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: #9fd8b8;
  background: rgba(53,208,127,.1); border: 1px solid rgba(53,208,127,.28);
  padding: 3px 8px; border-radius: 999px;
}
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: #8d97ac; margin-bottom: 6px; }
.field select, .field input { width: 100%; cursor: pointer; }
.field input { cursor: text; font-variant-numeric: tabular-nums; }
.calc-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc-result {
  margin: 16px 0 18px; padding: 16px; border-radius: 12px;
  background: rgba(5,7,13,.6); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.calc-label { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }
.calc-value {
  font-size: 30px; font-weight: 600; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums; margin-top: 2px;
  background: linear-gradient(100deg, #fff, #a9c0ff); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.calc-detail { font-size: 11.5px; color: #98a2b6; text-align: right; line-height: 1.5; }
.calc-detail .calc-ctx { color: #7f89a0; }
.calc-foot { font-size: 11px; color: var(--muted-2); text-align: center; margin-top: 10px; }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 64px; }
.tier {
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.006));
  display: flex; flex-direction: column; gap: 0;
}
.tier-featured { border-color: rgba(76,125,255,.42); background: linear-gradient(180deg, rgba(76,125,255,.1), rgba(255,255,255,.01)); box-shadow: 0 20px 60px -34px rgba(76,125,255,.75); }
.tier-name { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.tag { font-size: 10px; letter-spacing: .05em; padding: 2px 7px; border-radius: 5px; border: 1px solid rgba(76,125,255,.35); color: #b9caff; background: rgba(76,125,255,.12); text-transform: uppercase; }
.tier-price { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; margin: 8px 0 6px; }
.tier-price span { font-size: 13px; font-weight: 400; color: var(--muted-2); letter-spacing: 0; }
.tier-desc { font-size: 13px; color: var(--muted); min-height: 40px; }
.tier ul { list-style: none; padding: 0; margin: 16px 0 22px; display: grid; gap: 9px; font-size: 13.5px; color: var(--muted); }
.tier li { position: relative; padding-left: 20px; }
.tier li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: rgba(126,160,255,.65); }
.tier .btn { margin-top: auto; }

/* ---------- code card ---------- */
.code-card {
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--panel); box-shadow: var(--shadow);
}
.code-tabs {
  display: flex; align-items: center; gap: 4px; padding: 8px 10px;
  border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); overflow-x: auto;
}
.code-tab {
  background: transparent; border: 1px solid transparent; color: var(--muted);
  font-size: 12.5px; padding: 6px 12px; border-radius: 8px; cursor: pointer; white-space: nowrap;
  transition: all .15s ease;
}
.code-tab:hover { color: #fff; }
.code-tab.is-active { color: #fff; background: rgba(76,125,255,.16); border-color: rgba(76,125,255,.4); }
.copy-btn-dark { margin-left: auto; flex: none; }
.code-body { margin: 0; padding: 20px 22px; overflow-x: auto; min-height: 268px; }
.code-body code {
  display: block; font-family: var(--mono); font-size: 12.8px; line-height: 1.8; color: #cfd9ee;
  white-space: pre;
}
.code-body code[hidden] { display: none; }
.copy-btn-dark { background: rgba(255,255,255,.08); color: #dfe6f5; border-color: rgba(255,255,255,.2); }
.code-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 12px 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted);
  background: rgba(255,255,255,.015);
}
.code-foot code { color: var(--accent-bright); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 42px; }
.feature {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.022), transparent);
}
.f-icon {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  border: 1px solid rgba(76,125,255,.28); background: rgba(76,125,255,.1); color: var(--accent-bright);
  margin-bottom: 14px;
}
.f-icon svg { width: 18px; height: 18px; }
.feature h3 { font-size: 14.5px; margin-bottom: 7px; }
.feature p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.feature code { color: var(--accent-bright); font-size: 12.5px; }

/* ---------- faq ---------- */
.faq-shell { max-width: 880px; }
#faq { padding-bottom: 68px; }
.faq { display: grid; gap: 10px; }
.faq details {
  border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px;
  background: rgba(255,255,255,.018); transition: border-color .15s ease, background .15s ease;
}
.faq details[open] { border-color: rgba(76,125,255,.3); background: rgba(76,125,255,.045); }
.faq summary {
  cursor: pointer; font-size: 14.5px; font-weight: 500; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: #98a2b6; font-size: 18px; font-weight: 400; line-height: 1;
  transition: color .2s ease;
}
.faq details[open] summary::after { color: var(--accent-bright); }
.faq details[open] summary::after { content: "\2212"; transform: none; }
.faq p { margin-top: 10px; color: var(--muted); font-size: 14px; max-width: 66ch; }
.faq code { color: var(--accent-bright); font-size: 12.5px; }

/* ---------- cta ---------- */
.cta-band { padding: 0 0 96px; }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  border: 1px solid rgba(76,125,255,.26); border-radius: var(--radius-lg);
  padding: 40px 44px;
  background:
    radial-gradient(600px 220px at 12% 0%, rgba(76,125,255,.22), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.008)), var(--panel);
  box-shadow: var(--shadow);
}
.cta-inner h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
.cta-inner p { color: var(--muted); font-size: 14.5px; margin-top: 10px; max-width: 46ch; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.014), transparent); padding-top: 48px; }
.footer-inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; padding-bottom: 40px; }
.footer-brand { max-width: 300px; }
.footer-brand p { color: var(--muted); font-size: 13.5px; margin-top: 14px; line-height: 1.6; }
.footer-status { display: flex; align-items: center; gap: 8px; font-size: 12.5px !important; color: var(--muted-2) !important; margin-top: 18px !important; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(112px, 1fr)); gap: 32px; }
.footer-cols h4 { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 12px; font-weight: 500; }
.footer-cols a { display: block; font-size: 13.5px; color: var(--muted); padding: 4px 0; transition: color .15s ease; }
.footer-cols a:hover { color: #fff; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-block: 20px; font-size: 12px; color: var(--muted-2);
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .pricing-grid { grid-template-columns: 1fr; gap: 32px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .tiers { grid-template-columns: 1fr; }
  .table-head { display: none; }
  .row {
    grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; padding: 14px 16px;
  }
  .row .m-name { grid-column: 1 / -1; }
  .row .num::before {
    content: attr(data-label) " "; font-family: var(--font); font-size: 10.5px;
    letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2);
  }
  .row .num { text-align: left; font-size: 12.5px; }
  .row .col-tags { grid-column: 1 / -1; }
  .tags { justify-content: flex-start; margin-top: 4px; }
  .section { padding: 72px 0; }
  .cta-inner { padding: 30px; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed; inset: 66px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(6,9,16,.98); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .18s ease;
    font-size: 15px;
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
  .menu-btn { display: flex; }
  .header-actions .btn-ghost { display: none; }
  .hero { padding-top: 52px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); margin-top: 40px; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-inner { gap: 32px; }
  .footer-cols { gap: 24px; grid-template-columns: repeat(2, 1fr); }
  .announce a { padding-inline: 16px; font-size: 12px; }
  .announce-cta { display: none; }
  .terminal-body pre { font-size: 11.5px; padding: 14px 16px; }
  .calc-inputs { grid-template-columns: 1fr; }
  .toolbar-right { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
  .toolbar-right select:last-child { grid-column: 1 / -1; }
  .search-wrap { flex-basis: 100%; }
  .cta-inner { padding: 26px 22px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ============================================================
   Legal pages (terms / privacy / refund)
   ============================================================ */

.legal-header { border-bottom: 1px solid var(--line); background: rgba(5,7,13,.8); backdrop-filter: blur(14px); }
.legal-header .header-inner { height: 64px; max-width: 664px; }
.legal-header .back { margin-left: auto; display: flex; align-items: center; gap: 16px; font-size: 13.5px; color: #b3bccd; }
.legal-header .back a:hover { color: #fff; }

.legal-shell { max-width: 664px; margin-inline: auto; padding: 56px 24px 96px; }
.legal-title h1 { font-size: clamp(2rem, 4vw, 2.65rem); letter-spacing: -0.03em; }
.legal-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-top: 16px; font-size: 12.5px; color: #9aa5ba;
}
.legal-meta .meta-pill {
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px;
  background: rgba(255,255,255,.03); color: #a8b3c6;
}
.legal-lede { margin-top: 18px; font-size: 16px; color: var(--muted); line-height: 1.7; max-width: 70ch; }

.legal-toc {
  margin-top: 32px; padding: 20px 22px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.006));
}
.legal-toc h2 {
  font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted-2); font-weight: 500; margin-bottom: 12px; padding: 0; border: 0;
}
.legal-toc ol {
  counter-reset: toc; list-style: none; padding: 0; margin: 0;
  columns: 2; column-gap: 34px;
}
.legal-toc li { counter-increment: toc; font-size: 13.5px; break-inside: avoid; margin-bottom: 2px; }
.legal-toc li a { display: block; padding: 3px 6px; margin-left: -6px; border-radius: 6px; transition: background .14s ease, color .14s ease; }
.legal-toc li a:hover { background: rgba(255,255,255,.05); color: #fff; }
.legal-toc li::before { content: counter(toc) ". "; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.legal-toc a { color: #cdd7e8; text-decoration: underline; text-decoration-color: rgba(255,255,255,.34); text-underline-offset: 3px; }
.legal-toc a:hover { color: var(--accent-bright); }

.legal-body { margin-top: 8px; }
.legal-body section { padding-top: 34px; }
.legal-body section + section { border-top: 1px solid rgba(255,255,255,.055); margin-top: 34px; }
.legal-body h2 {
  font-size: 1.24rem; letter-spacing: -0.02em; margin-bottom: 12px;
  scroll-margin-top: 84px;
}
.legal-body h2 .n { color: var(--accent-bright); font-variant-numeric: tabular-nums; margin-right: 8px; }
.legal-body h3 { font-size: 1rem; margin: 22px 0 8px; color: #eef3ff; }
.legal-body p { color: #a8b3c6; font-size: 16px; line-height: 1.78; }
.legal-body p + p { margin-top: 12px; }
.legal-body ul, .legal-body ol { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.legal-body li { color: #a8b3c6; font-size: 16px; line-height: 1.7; }
.legal-body li::marker { color: rgba(126,160,255,.75); }
.legal-body strong { color: #eef3ff; font-weight: 600; }
.legal-body a { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 2px; }
.legal-body code { color: #cfd9ee; background: rgba(255,255,255,.05); padding: 1px 5px; border-radius: 5px; font-size: 12.5px; }

.ph {
  color: #ffd28a; border-bottom: 1px dashed rgba(255,210,138,.55);
  padding-bottom: 1px; white-space: nowrap;
}

.legal-callout {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 20px; padding: 14px 16px;
  border: 1px solid rgba(76,125,255,.26); border-radius: 12px;
  background: rgba(76,125,255,.07); font-size: 13.5px; color: #b9c4d8; line-height: 1.6;
}
.legal-callout .ico { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(126,160,255,.5); color: var(--accent-bright); display: grid; place-items: center; font-size: 11px; }

.legal-end {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.055);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  font-size: 13px; color: var(--muted-2);
}
.legal-end a { color: var(--accent-bright); }

.legal-footer { border-top: 1px solid var(--line); padding: 28px 0; }
.legal-footer .inner {
  max-width: 664px; margin-inline: auto; padding-inline: 24px;
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between;
  font-size: 12.5px; color: var(--muted-2);
}
.legal-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.legal-footer a { color: var(--muted); }
.legal-footer a:hover { color: #fff; }

@media (max-width: 640px) {
  .legal-toc ol { columns: 1; }
  .legal-shell { padding-top: 36px; }
  .legal-header .back .btn-nav { display: none; }
}

@media print {
  body { background: #fff; color: #111; }
  .legal-header, .legal-footer, .legal-toc, .legal-end { display: none; }
  .legal-body p, .legal-body li, .legal-lede { color: #222; }
  .legal-body h2 { color: #000; }
  .legal-body section + section { border-color: #ddd; }
}
