/* claudeplan — premium dark
 *
 * Ориентир: Linear, Vercel, Anthropic Console. Приёмы, которые отличают
 * дорогой интерфейс от шаблонного:
 *   — тёплая, почти чёрная база вместо чистого #000 (глубина без резкости)
 *   — один акцент (терракота Anthropic), нигде не больше одного на экран
 *   — свет: тонкие верхние границы 1px rgba(255,255,255,.06) имитируют
 *     подсветку сверху, поверхности выглядят физическими
 *   — сетка на фоне, едва заметная — даёт масштаб и «инженерность»
 *   — типографика с плотным трекингом на больших кеглях
 *   — переходы 150–200ms cubic-bezier, не linear
 */

@font-face { font-family: 'InterVar'; src: local('Inter'); font-display: swap; }

:root {
  /* База — тёплый чёрный, не нейтральный */
  --bg:        #08080a;
  --bg-2:      #0c0c0f;
  --surface:   #111114;
  --surface-2: #16161b;
  --surface-3: #1c1c22;

  --line:      #212127;
  --line-soft: #1a1a1f;
  --glow:      rgba(255,255,255,.055);

  --fg:        #f7f7f8;
  --fg-2:      #c9c9d1;
  --muted:     #85858f;
  --muted-2:   #5c5c66;

  /* Единственный акцент */
  --accent:      #d97757;
  --accent-lift: #e58f6f;
  --accent-deep: #b85c3e;
  --accent-tint: rgba(217,119,87,.11);
  --accent-line: rgba(217,119,87,.28);

  --ok: #4ea87b;

  --mono: ui-monospace, 'SF Mono', SFMono-Regular, 'JetBrains Mono', Menlo, monospace;
  --sans: 'InterVar', -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, system-ui, sans-serif;

  --ease: cubic-bezier(.22,1,.36,1);
  --r: 14px;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Фоновая сетка + верхнее свечение. Два слоя, оба ниже контента. */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.014) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 78%);
}
body::after {
  content: '';
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 480px; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at center top, rgba(217,119,87,.10), transparent 62%);
  filter: blur(30px);
}
main, header, footer { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 760px; }

/* ── Header ───────────────────────────────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(8,8,10,.72);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--line-soft);
}
header .wrap { display: flex; align-items: center; height: 62px; gap: 32px; }

.logo {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 15.5px; font-weight: 600; letter-spacing: -.025em;
}
.logo-mark {
  width: 22px; height: 22px; border-radius: 6px;
  background: linear-gradient(145deg, var(--accent-lift), var(--accent-deep));
  box-shadow: 0 0 0 1px rgba(255,255,255,.10) inset, 0 3px 10px rgba(217,119,87,.32);
  flex-shrink: 0;
}
.logo b { font-weight: 600; }
.logo span { color: var(--muted); font-weight: 450; }

header nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
header nav a {
  font-size: 14px; color: var(--muted); font-weight: 450;
  transition: color .16s var(--ease);
}
header nav a:hover { color: var(--fg); }

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 20px;
  border-radius: 10px; border: 0;
  font-family: var(--sans); font-size: 14.5px; font-weight: 550;
  letter-spacing: -.012em; cursor: pointer; white-space: nowrap;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease),
              background .16s var(--ease), border-color .16s var(--ease);
}
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, var(--accent-lift), var(--accent));
  box-shadow:
    0 0 0 1px rgba(255,255,255,.13) inset,
    0 1px 0 rgba(255,255,255,.22) inset,
    0 6px 20px -6px rgba(217,119,87,.55);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255,255,255,.16) inset, 0 1px 0 rgba(255,255,255,.26) inset, 0 10px 28px -8px rgba(217,119,87,.68); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  color: var(--fg-2);
  background: var(--surface-2);
  box-shadow: 0 0 0 1px var(--line) inset, 0 1px 0 var(--glow) inset;
}
.btn-ghost:hover { color: var(--fg); background: var(--surface-3); }

.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 8px; }

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero { padding: 104px 0 76px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 12px 0 10px; margin-bottom: 28px;
  border-radius: 100px;
  background: var(--accent-tint);
  box-shadow: 0 0 0 1px var(--accent-line) inset;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .02em;
  color: var(--accent-lift);
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.dot-live { animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }

h1 {
  font-size: clamp(40px, 5.6vw, 64px);
  line-height: 1.04; font-weight: 620; letter-spacing: -.042em;
  margin-bottom: 22px;
}
h1 .grad {
  background: linear-gradient(120deg, #fff 8%, var(--accent-lift) 52%, var(--accent) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead {
  font-size: 18.5px; line-height: 1.62; color: var(--fg-2);
  max-width: 620px; letter-spacing: -.014em; font-weight: 420;
}
.hero-cta { display: flex; gap: 11px; flex-wrap: wrap; margin-top: 34px; }
.hero-meta {
  display: flex; gap: 22px; flex-wrap: wrap; margin-top: 26px;
  font-size: 13.5px; color: var(--muted);
}
.hero-meta i { color: var(--ok); font-style: normal; }

/* ── Sections ─────────────────────────────────────────────────────── */
section { padding: 76px 0; }
section + section { border-top: 1px solid var(--line-soft); }

.sec-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.sec-title {
  font-size: clamp(27px, 3.4vw, 38px);
  line-height: 1.14; font-weight: 600; letter-spacing: -.032em;
  margin-bottom: 14px;
}
.sec-sub { font-size: 16.5px; color: var(--muted); max-width: 600px; letter-spacing: -.012em; }

/* ── Panel (базовая поверхность) ──────────────────────────────────── */
.panel {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border-radius: var(--r);
  box-shadow: 0 0 0 1px var(--line) inset, 0 1px 0 var(--glow) inset,
              0 20px 44px -28px rgba(0,0,0,.85);
}

/* ── Price ────────────────────────────────────────────────────────── */
.price-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px; margin: 34px 0 20px;
  background: var(--line-soft);
  border-radius: var(--r); overflow: hidden;
  box-shadow: 0 0 0 1px var(--line);
}
.price-cell { background: var(--bg-2); padding: 26px 24px; position: relative; }
.price-cell::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--glow);
}
.price-cell .k {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted-2); margin-bottom: 12px;
}
.price-cell .v {
  font-size: 38px; font-weight: 600; letter-spacing: -.04em;
  font-variant-numeric: tabular-nums; line-height: 1;
  display: flex; align-items: baseline; gap: 7px;
}
.price-cell .v u { text-decoration: none; font-size: 14px; font-weight: 450; color: var(--muted); letter-spacing: -.01em; }
.price-cell.hl { background: linear-gradient(165deg, rgba(217,119,87,.09), var(--bg-2) 65%); }
.price-cell.hl .v { color: var(--accent-lift); }

.callout {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 20px; border-radius: 12px;
  background: var(--surface); font-size: 14.5px; color: var(--fg-2);
  box-shadow: 0 0 0 1px var(--line) inset;
  border-left: 2px solid var(--accent);
}
.callout b { color: var(--fg); font-weight: 550; }

/* ── Compare bars ─────────────────────────────────────────────────── */
.cmp { display: grid; gap: 14px; margin-top: 30px; }
.cmp-row { display: grid; grid-template-columns: 132px 1fr 96px; align-items: center; gap: 16px; }
.cmp-name { font-size: 14px; color: var(--fg-2); }
.cmp-name small { display: block; color: var(--muted-2); font-size: 12px; }
.cmp-track { height: 8px; border-radius: 100px; background: var(--surface-2); overflow: hidden; box-shadow: 0 0 0 1px var(--line-soft) inset; }
.cmp-fill { height: 100%; border-radius: 100px; }
.cmp-fill.them { background: linear-gradient(90deg, #3a3a44, #4a4a56); }
.cmp-fill.us { background: linear-gradient(90deg, var(--accent-deep), var(--accent-lift)); box-shadow: 0 0 14px rgba(217,119,87,.45); }
.cmp-val { font-family: var(--mono); font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
.cmp-val.us { color: var(--accent-lift); }
.cmp-val.them { color: var(--muted); }

/* ── Feature cards ────────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 14px; margin-top: 36px; }
.card {
  padding: 24px; border-radius: var(--r);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  box-shadow: 0 0 0 1px var(--line) inset, 0 1px 0 var(--glow) inset;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.card:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px #2b2b33 inset, 0 1px 0 var(--glow) inset, 0 18px 40px -26px rgba(0,0,0,.9); }
.card-ico {
  width: 34px; height: 34px; border-radius: 9px; margin-bottom: 16px;
  display: grid; place-items: center; font-size: 16px;
  background: var(--accent-tint); box-shadow: 0 0 0 1px var(--accent-line) inset;
}
.card h4 { font-size: 16px; font-weight: 570; letter-spacing: -.018em; margin-bottom: 7px; }
.card p { font-size: 14px; color: var(--muted); line-height: 1.58; }

/* ── Models table ─────────────────────────────────────────────────── */
.tbl-wrap { margin-top: 32px; border-radius: var(--r); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; background: var(--bg-2); }
thead th {
  background: var(--surface); text-align: left; padding: 13px 20px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .15em;
  text-transform: uppercase; color: var(--muted-2); font-weight: 500;
  border-bottom: 1px solid var(--line);
}
tbody td { padding: 14px 20px; border-bottom: 1px solid var(--line-soft); color: var(--fg-2); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .14s var(--ease); }
tbody tr:hover { background: var(--surface); }
td.mono { font-family: var(--mono); font-size: 13px; color: var(--fg); }
td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; }

.chip {
  display: inline-block; margin-left: 9px; padding: 2px 8px;
  border-radius: 100px; font-size: 10.5px; letter-spacing: .04em;
  color: var(--muted); box-shadow: 0 0 0 1px var(--line) inset;
  vertical-align: middle;
}
.chip-a { color: var(--accent-lift); box-shadow: 0 0 0 1px var(--accent-line) inset; background: var(--accent-tint); }

/* ── Code ─────────────────────────────────────────────────────────── */
.code {
  margin: 16px 0; border-radius: 12px; overflow: hidden;
  background: #0a0a0d; box-shadow: 0 0 0 1px var(--line) inset;
}
.code-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 15px; background: var(--surface); border-bottom: 1px solid var(--line);
}
.code-bar span { width: 9px; height: 9px; border-radius: 50%; }
.code-bar .r { background: #e05c5c; } .code-bar .y { background: #e0b25c; } .code-bar .g { background: var(--ok); }
.code-bar em {
  margin-left: 6px; font-style: normal;
  font-family: var(--mono); font-size: 11px; color: var(--muted-2);
}
pre { padding: 18px 20px; overflow-x: auto; font-family: var(--mono); font-size: 13px; line-height: 1.75; color: #d8d8de; }
pre .c { color: var(--muted-2); }
pre .k { color: var(--accent-lift); }
pre .s { color: #8fc99a; }
code { font-family: var(--mono); font-size: .91em; }
:not(pre) > code {
  padding: 2px 6px; border-radius: 5px; background: var(--surface-2);
  box-shadow: 0 0 0 1px var(--line) inset; color: var(--fg-2); font-size: 13px;
}

/* ── Steps ────────────────────────────────────────────────────────── */
.steps { display: grid; gap: 2px; margin-top: 34px; counter-reset: s; }
.step {
  counter-increment: s; display: grid; grid-template-columns: 44px 1fr;
  gap: 18px; padding: 22px 24px; background: var(--bg-2);
  box-shadow: 0 0 0 1px var(--line-soft) inset;
}
.step:first-child { border-radius: var(--r) var(--r) 0 0; }
.step:last-child { border-radius: 0 0 var(--r) var(--r); }
.step::before {
  content: '0' counter(s); grid-row: span 2;
  font-family: var(--mono); font-size: 12px; color: var(--accent);
  padding-top: 2px;
}
.step h4 { font-size: 16px; font-weight: 560; letter-spacing: -.018em; margin-bottom: 5px; }
.step p { font-size: 14px; color: var(--muted); }

/* ── CTA ──────────────────────────────────────────────────────────── */
.cta {
  position: relative; overflow: hidden;
  margin: 76px 0; padding: 56px 40px; border-radius: 20px; text-align: center;
  background: linear-gradient(165deg, var(--surface-2), var(--bg-2) 70%);
  box-shadow: 0 0 0 1px var(--line) inset, 0 1px 0 var(--glow) inset;
}
.cta::before {
  content: ''; position: absolute; top: -140px; left: 50%; transform: translateX(-50%);
  width: 560px; height: 300px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(217,119,87,.20), transparent 65%);
  filter: blur(24px);
}
.cta h3 { position: relative; font-size: clamp(25px, 3.2vw, 34px); font-weight: 620; letter-spacing: -.032em; margin-bottom: 12px; }
.cta p { position: relative; color: var(--muted); font-size: 16px; margin-bottom: 28px; }
.cta .btn { position: relative; }

/* ── Docs ─────────────────────────────────────────────────────────── */
.doc { padding: 52px 0 84px; }
.doc .back {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 30px;
  font-size: 13.5px; color: var(--muted); transition: color .16s var(--ease);
}
.doc .back:hover { color: var(--accent-lift); }
.doc h1 { font-size: clamp(28px, 3.6vw, 36px); letter-spacing: -.032em; margin-bottom: 10px; }
.doc .updated {
  font-family: var(--mono); font-size: 12px; color: var(--muted-2);
  padding-bottom: 26px; margin-bottom: 32px; border-bottom: 1px solid var(--line-soft);
}
.doc h2 {
  font-size: 18.5px; font-weight: 580; letter-spacing: -.02em;
  margin: 38px 0 14px; color: var(--fg);
}
.doc h3 { font-size: 16px; font-weight: 560; margin: 26px 0 10px; }
.doc p, .doc li { color: var(--fg-2); font-size: 15.5px; line-height: 1.72; margin-bottom: 11px; }
.doc ul, .doc ol { padding-left: 20px; margin-bottom: 16px; }
.doc li { margin-bottom: 7px; }
.doc li::marker { color: var(--accent); }
.doc a { color: var(--accent-lift); }
.doc a:hover { text-decoration: underline; text-underline-offset: 3px; }
.doc strong { color: var(--fg); font-weight: 560; }

/* ── Footer ───────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line-soft); padding: 44px 0 60px; }
footer .cols { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; margin-bottom: 34px; }
footer .col-t { font-family: var(--mono); font-size: 10.5px; letter-spacing: .15em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 13px; }
footer .col a { display: block; font-size: 14px; color: var(--muted); margin-bottom: 9px; transition: color .16s var(--ease); }
footer .col a:hover { color: var(--fg); }
footer .fine { font-size: 12.5px; line-height: 1.7; color: var(--muted-2); max-width: 640px; padding-top: 24px; border-top: 1px solid var(--line-soft); }

/* ── Reveal on scroll ─────────────────────────────────────────────── */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .dot-live { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* ── Mobile ───────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  header nav { display: none; }
  .hero { padding: 64px 0 52px; }
  h1 { font-size: 34px; letter-spacing: -.034em; }
  .lead { font-size: 16.5px; }
  section { padding: 56px 0; }
  .cta { padding: 42px 24px; margin: 56px 0; }
  .price-cell { padding: 22px 20px; }
  .price-cell .v { font-size: 32px; }
  .cmp-row { grid-template-columns: 96px 1fr 74px; gap: 11px; }
  .cmp-name { font-size: 13px; }
  thead th, tbody td { padding: 11px 14px; font-size: 13px; }
  .hero-cta .btn { width: 100%; }
}
