/* Zirva landing. Brand colours from docs/brand/README.md, look of the cabinet: dark ink, blue peak gradient, white cards. */
@font-face { font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/inter-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/inter-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --ink: #0f172a;
  --ink-2: #1e293b;
  --peak: #0ea5e9;
  --peak-dark: #0284c7;
  --peak-light: #38bdf8;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --line: #e6ebf1;
  --muted: #64748b;
  --ok: #16a34a;
  font-family: "Inter Variable", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: var(--peak-dark); }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
p { margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }
section[id] { scroll-margin-top: 72px; }

/* Buttons, as in the cabinet */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; border-radius: 9px;
  padding: 0.55rem 1rem; font-weight: 600; font-size: 0.92rem; text-decoration: none; white-space: nowrap;
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s; }
.btn.primary { color: #fff; background: linear-gradient(180deg, var(--peak-light), var(--peak-dark));
  box-shadow: 0 1px 2px rgba(2, 132, 199, 0.35), 0 8px 24px -8px rgba(14, 165, 233, 0.6); }
.btn.primary:hover { background: #0369a1; transform: translateY(-1px); }
.btn.ghost { color: #e2e8f0; }
.btn.ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn.light { color: #fff; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); }
.btn.light:hover { background: rgba(255, 255, 255, 0.16); }
.btn.big { padding: 0.8rem 1.4rem; font-size: 1rem; border-radius: 10px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(15, 23, 42, 0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.top-row { display: flex; align-items: center; gap: 2rem; height: 64px; }
.brand img { display: block; height: 28px; width: auto; }
.menu { display: flex; gap: 0.25rem; }
.menu a { color: #cbd5e1; text-decoration: none; font-size: 0.92rem; font-weight: 500; padding: 0.4rem 0.7rem; border-radius: 8px; }
.menu a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 0.6rem; }
.langs { display: flex; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); overflow: hidden; margin-right: 0.4rem; }
.langs a { color: #94a3b8; text-decoration: none; font-size: 0.78rem; font-weight: 600; padding: 0.3rem 0.55rem; }
.langs a:hover { color: #fff; }
.langs a[aria-current] { color: #fff; background: var(--peak-dark); }

/* Hero */
.hero { background: radial-gradient(1200px 600px at 85% 10%, rgba(14, 165, 233, 0.35), transparent 60%),
  linear-gradient(160deg, #0f172a 0%, #0c2a4a 55%, #0c4a6e 100%); color: #fff; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 0.95fr; gap: 3rem; align-items: center; padding-top: 5rem; padding-bottom: 6rem; }
.eyebrow { display: inline-block; font-size: 0.82rem; font-weight: 600; color: var(--peak-light); letter-spacing: 0.02em;
  background: rgba(56, 189, 248, 0.12); border: 1px solid rgba(56, 189, 248, 0.3); padding: 0.25rem 0.75rem; border-radius: 999px; margin-bottom: 1.4rem; }
.hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); font-weight: 800; letter-spacing: -0.035em; }
.hero h1 span { background: linear-gradient(90deg, #7dd3fc, var(--peak)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.15rem; color: #cbd5e1; margin-top: 1.4rem; max-width: 36rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.note { margin-top: 1rem; font-size: 0.88rem; color: #94a3b8; }

.hero-mock { position: relative; }
.mock-card { background: var(--surface); color: var(--ink); border-radius: 18px; padding: 1.4rem;
  box-shadow: 0 40px 90px -20px rgba(2, 6, 23, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06); transform: rotate(-1.2deg); }
.mock-head { display: flex; align-items: center; gap: 0.75rem; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700;
  background: linear-gradient(180deg, var(--peak-light), var(--peak-dark)); }
.mock-user { font-weight: 700; }
.mock-sub { font-size: 0.8rem; color: var(--muted); }
.mock-head .chip { margin-left: auto; }
.chip { display: inline-block; font-size: 0.75rem; font-weight: 600; padding: 0.15rem 0.6rem; border-radius: 999px; white-space: nowrap; }
.chip.ok { color: #15803d; background: #dcfce7; }
.chip.peak { color: #0369a1; background: #e0f2fe; }
.mock-block { margin-top: 1.2rem; padding: 1rem; border-radius: 12px; background: var(--bg); }
.mock-row { display: flex; justify-content: space-between; font-size: 0.95rem; }
.mock-row span { color: var(--muted); font-size: 0.85rem; }
.mock-step { font-size: 0.82rem; color: var(--muted); margin: 0.2rem 0 0.7rem; }
.bar { height: 8px; border-radius: 99px; background: #e2e8f0; overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--peak-light), var(--peak-dark)); }
.mock-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.badge { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; font-weight: 600; padding: 0.35rem 0.7rem 0.35rem 0.35rem;
  border-radius: 999px; background: #f1f5f9; }
.badge i { font-style: normal; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; font-size: 0.75rem;
  color: #fff; background: var(--ink); }
.mock-reward { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding: 0.9rem 1rem;
  border-radius: 12px; border: 1px dashed var(--peak-light); background: #f0f9ff; }
.mock-reward-title { font-weight: 700; font-size: 0.95rem; }
.mock-feed { position: absolute; right: -1rem; bottom: -3.2rem; width: 290px; background: rgba(15, 23, 42, 0.9); border-radius: 14px;
  padding: 0.6rem 0.9rem; box-shadow: 0 20px 50px -10px rgba(2, 6, 23, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1); transform: rotate(1.5deg); }
.mock-feed div { display: flex; justify-content: space-between; align-items: center; padding: 0.35rem 0; font-size: 0.8rem; }
.mock-feed div + div { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.mock-feed code { color: #e2e8f0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* Sections */
.section { padding: 5.5rem 0; }
.section.alt { background: var(--bg); }
.section h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; }
.section-lead { color: var(--muted); font-size: 1.08rem; margin-top: 0.8rem; max-width: 44rem; }
.section h3 { font-size: 1.08rem; font-weight: 700; }

.steps { list-style: none; padding: 0; margin: 3rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: s; }
.steps li { position: relative; padding: 1.5rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 30px -18px rgba(15, 23, 42, 0.25); }
.steps li:not(:last-child)::after { content: "→"; position: absolute; right: -1.05rem; top: 2rem; color: var(--peak); font-weight: 700; z-index: 1; }
.num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: #fff; font-weight: 800; margin-bottom: 1rem;
  background: linear-gradient(180deg, var(--peak-light), var(--peak-dark)); }
.steps p { color: var(--muted); margin-top: 0.5rem; font-size: 0.94rem; }
.steps code, .card code, .case code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85em; background: #f1f5f9;
  padding: 0.05rem 0.35rem; border-radius: 5px; color: var(--ink); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3rem; }
.card { padding: 1.6rem; border-radius: 16px; background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 12px 30px -20px rgba(15, 23, 42, 0.3); }
.icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.15rem; font-weight: 700;
  color: var(--peak-dark); background: #e0f2fe; margin-bottom: 1rem; }
.card p { color: var(--muted); margin-top: 0.5rem; font-size: 0.95rem; }

.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3rem; }
.case { padding: 1.8rem; border-radius: 18px; color: #fff; background: linear-gradient(160deg, #0f172a 0%, #0c4a6e 100%);
  box-shadow: 0 20px 50px -25px rgba(2, 6, 23, 0.6); display: flex; flex-direction: column; }
.case:nth-child(2) { background: linear-gradient(160deg, #0c4a6e 0%, #0284c7 100%); }
.case:nth-child(3) { background: linear-gradient(160deg, #1e293b 0%, #0369a1 100%); }
.case p { color: #cbd5e1; margin-top: 0.6rem; font-size: 0.95rem; }
.case .example { margin-top: auto; padding-top: 1.2rem; font-size: 0.85rem; color: #bae6fd; }
.case .example::before { content: ""; display: block; height: 1px; background: rgba(255, 255, 255, 0.15); margin-bottom: 1rem; }

/* Developers */
.section.dark { background: var(--ink); color: #fff; }
.section.dark .section-lead { color: #cbd5e1; }
.dev-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 3.5rem; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 0.6rem; }
.ticks li { padding-left: 1.8rem; position: relative; color: #e2e8f0; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0.05rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; display: grid;
  place-items: center; font-size: 0.7rem; font-weight: 800; color: var(--ink); background: var(--peak-light); }
.code { border-radius: 16px; background: #020617; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 80px -30px rgba(14, 165, 233, 0.45); overflow: hidden; }
.code-head { display: flex; align-items: center; gap: 0.4rem; padding: 0.75rem 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.code-head span { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.code-head em { font-style: normal; font-size: 0.78rem; color: #94a3b8; margin-left: 0.5rem; }
.code pre + .code-head { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.code pre { margin: 0; padding: 1rem 1.2rem; overflow-x: auto; font-size: 0.85rem; line-height: 1.6; }
.code code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #e2e8f0; }
.code b { color: var(--peak-light); }
.code i { font-style: normal; color: #94a3b8; }
.code s { text-decoration: none; color: #7dd3fc; }
.code u { text-decoration: none; color: #4ade80; font-weight: 600; }

/* Call to action */
.cta { padding-top: 5rem; }
.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 3rem; border-radius: 24px; color: #fff;
  background: radial-gradient(600px 300px at 90% 0%, rgba(56, 189, 248, 0.45), transparent 60%), linear-gradient(135deg, #0f172a, #0c4a6e);
  box-shadow: 0 30px 80px -30px rgba(2, 6, 23, 0.6); }
.cta-box p { color: #cbd5e1; margin-top: 0.7rem; max-width: 40rem; font-size: 1.05rem; }
.cta-actions { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.cta-login { color: #bae6fd; font-size: 0.9rem; }

/* Footer */
.foot { background: var(--ink); color: #94a3b8; padding: 3.5rem 0 2rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.foot img { height: 28px; width: auto; }
.foot p { margin-top: 0.8rem; font-size: 0.9rem; max-width: 18rem; }
.foot h4 { color: #fff; font-size: 0.9rem; margin: 0 0 0.8rem; }
.foot-grid a { display: block; color: #94a3b8; text-decoration: none; font-size: 0.9rem; padding: 0.2rem 0; }
.foot-grid a:hover { color: #fff; }
.foot-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.85rem; }

a:focus-visible, .btn:focus-visible { outline: 2px solid var(--peak-light); outline-offset: 2px; }

/* 404 */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; color: #fff;
  background: linear-gradient(160deg, #0f172a 0%, #0c4a6e 55%, #0ea5e9 100%); }
.notfound h1 { font-size: 5rem; font-weight: 800; margin: 1.5rem 0 0.5rem; }
.notfound p { color: #cbd5e1; margin-bottom: 1.5rem; }

/* Narrow screens */
@media (max-width: 1000px) {
  .menu { display: none; }
  .hero-grid, .dev-grid { grid-template-columns: 1fr; }
  .hero-grid { padding-top: 3.5rem; padding-bottom: 5.5rem; }
  .hero-mock { max-width: 460px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li::after { display: none; }
  .cards, .cases { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 1.1rem; }
  .top-row { gap: 0.75rem; }
  .top-actions .btn.ghost { display: none; }
  .langs { margin-right: 0; }
  .hero-mock { display: none; }
  .steps, .cards, .cases { grid-template-columns: 1fr; }
  .section { padding: 4rem 0; }
  .cta-box { flex-direction: column; align-items: flex-start; padding: 2rem 1.5rem; }
  .cta-actions { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
