/* Laid out after zeron.sh: near-black ground, Geist with a mono caption voice, hairline panels.
   The accent is Collie's meadow green (ios/Collie/Design.swift). Dark only. */
@font-face { font-family: "Geist"; src: url("assets/fonts/geist-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; 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: "Geist"; src: url("assets/fonts/geist-cyrillic.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Geist Mono"; src: url("assets/fonts/geist-mono-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; 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: "Geist Mono"; src: url("assets/fonts/geist-mono-cyrillic.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Instrument Serif"; src: url("assets/fonts/instrument-serif-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --bg: #050605;
  --raise: #0b0d0b;
  --ink: #e9ece6;
  --dim: #9aa196;
  --faint: #5d6659;
  --line: #20261e;
  --line-soft: #161a15;
  --accent: #4c9a3a;
  --accent-hi: #7cc466;
  --accent-deep: #2b5c21;
  --sans: "Geist", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --serif: "Instrument Serif", Georgia, serif;
  color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; overflow-x: hidden; -webkit-text-size-adjust: 100%; }
body { font: 15px/1.6 var(--sans); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent-deep); color: #fff; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 32px; }
.mono { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.02em; color: var(--faint); }
h2 { font-size: clamp(22px, 2.4vw, 27px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; text-wrap: balance; }
h3 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }

/* ── buttons ── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 9px;
  transition: color .15s, border-color .15s, background .15s;
}
.button:hover { color: var(--ink); border-color: var(--faint); }
.button.primary { background: #f3f5ef; color: #111410; border-color: transparent; }
.button.primary:hover { background: #d3dccc; }
.button.small { height: 30px; padding: 0 13px; font-size: 12px; }
.button[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.text-link { font-size: 14px; font-weight: 500; color: var(--dim); transition: color .15s; }
.text-link:hover { color: var(--ink); }

/* ── nav ── */
.nav { display: flex; align-items: center; gap: 24px; height: 64px; position: relative; z-index: 2; }
.logo { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.logo img { width: 30px; height: 30px; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 13px; }
.nav-links a:not(.button) { color: var(--dim); transition: color .15s; }
.nav-links a:not(.button):hover, .nav-links a[aria-current] { color: var(--ink); }
.gh svg { display: block; width: 18px; height: 18px; fill: currentColor; }

/* ── hero ── */
.hero { position: relative; text-align: center; padding: 88px 32px 64px; }
/* ponytail: a masked dot grid stands in for Zeron's animated glyph field */
.hero::before {
  content: "";
  position: absolute;
  inset: -64px 0 -200px;
  background:
    radial-gradient(40% 50% at 50% 40%, rgb(76 154 58 / 0.14), transparent 70%),
    radial-gradient(rgb(124 196 102 / 0.14) 1px, transparent 1.5px) 0 0 / 22px 22px;
  -webkit-mask-image: radial-gradient(60% 60% at 50% 40%, #000 20%, transparent 100%);
  mask-image: radial-gradient(60% 60% at 50% 40%, #000 20%, transparent 100%);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero-copy { max-width: 660px; margin: 0 auto; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 6px 12px 6px 10px;
  font-size: 12px;
  font-weight: 500;
  background: rgb(26 32 24 / 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 15px;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08);
  transition: box-shadow .15s;
}
.chip:hover { box-shadow: 0 0 0 1px rgb(255 255 255 / 0.14); }
.hero h1 {
  font-size: clamp(21px, 2.1vw, 25px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.5;
  color: var(--dim);
  text-wrap: balance;
}
.hero h1 b { display: block; font-weight: 600; color: var(--ink); }
.cta { margin-top: 28px; display: flex; align-items: center; justify-content: center; gap: 12px 20px; flex-wrap: wrap; }
.hero .mono { margin-top: 40px; }

.live { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-hi); box-shadow: 0 0 8px var(--accent); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }

/* ── showcase: the desktop app with the phone's call screen in front ── */
.shot { position: relative; padding-top: 16px; }
.window {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 0 0 .5px rgb(0 0 0 / .9), 0 24px 48px rgb(0 0 0 / .7), inset 0 0 0 1px rgb(255 255 255 / .1);
}
.window img { width: 100%; }
.phone {
  position: absolute;
  right: 64px;
  bottom: -48px;
  width: 21%;
  border-radius: 13% / 6%;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .1), 0 30px 60px rgb(0 0 0 / .8);
}

/* ── panel: one frame with corner ticks, rows split by hairlines ── */
.panel-sect { padding-top: 140px; }
.panel { position: relative; border-bottom: 1px solid var(--line-soft); }
.pdot { position: absolute; width: 5px; height: 5px; background: #3a4a34; z-index: 1; }
.pdot.tl { top: 0; left: 0; translate: -50% -50%; }
.pdot.tr { top: 0; right: 0; translate: 50% -50%; }
.pdot.bl { bottom: 0; left: 0; translate: -50% 50%; }
.pdot.br { bottom: 0; right: 0; translate: 50% 50%; }
.row { display: grid; grid-template-columns: 1fr 1.08fr; border-top: 1px solid var(--line-soft); }
.row.flip { grid-template-columns: 1.08fr 1fr; }
.copy { display: flex; flex-direction: column; justify-content: center; padding: 48px 0; }
.copy p { margin-top: 14px; max-width: 420px; font-size: 14px; line-height: 1.65; color: var(--dim); }
.diagram { position: relative; display: flex; align-items: center; justify-content: center; padding: 46px 40px; }
.diagram::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(rgb(124 196 102 / 0.12) 1px, transparent 1.5px) 0 0 / 23px 23px;
  -webkit-mask-image: radial-gradient(72% 72% at 50% 50%, #000 30%, transparent 100%);
  mask-image: radial-gradient(72% 72% at 50% 50%, #000 30%, transparent 100%);
  pointer-events: none;
}

/* the sample call, like the app's transcript */
.call {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 20px 22px;
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 34px -10px rgb(0 0 0 / .8), 0 0 60px -20px rgb(76 154 58 / .35);
}
.call figcaption { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.call ol { list-style: none; margin-top: 6px; }
.call li { margin-top: 12px; font-size: 14px; line-height: 1.55; }
.call b { display: block; font-size: 12px; font-weight: 600; color: var(--dim); }
.call b.collie { color: var(--accent-hi); }

/* hub and spokes: a faint dashed base and a sparse green pulse drifting toward the hub */
.spokes, .flow { position: relative; width: 100%; max-width: 430px; aspect-ratio: 1; }
.spokes::before, .flow::before {
  content: "";
  position: absolute;
  inset: 16%;
  background: radial-gradient(50% 50% at 50% 50%, rgb(76 154 58 / 0.2), transparent 62%);
  pointer-events: none;
}
.spokes > svg, .flow > svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; }
.spokes path, .flow path { stroke-width: 0.35; animation: flow 2.2s linear infinite; }
.spokes path:nth-child(odd), .flow path:nth-child(odd) { stroke: #273024; stroke-dasharray: 1.6 2.4; }
/* the dash period divides the 12px offset exactly, or the loop jumps */
.spokes path:nth-child(even), .flow path:nth-child(even) { stroke: var(--accent-hi); stroke-dasharray: 0.7 11.3; }
@keyframes flow { to { stroke-dashoffset: -12px; } }
.hub {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: 74px;
  padding: 8px;
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: 0 12px 34px -10px rgb(0 0 0 / .8), 0 0 34px -6px rgb(76 154 58 / .4);
}
.hub img { border-radius: 11px; }
.node {
  position: absolute;
  translate: -50% -50%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--dim);
  background: #090b09;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 5px 16px -6px rgb(0 0 0 / .6);
  white-space: nowrap;
}
.node i { width: 8px; height: 8px; border-radius: 2px; background: var(--c, var(--faint)); }
.node svg { width: 14px; height: 14px; stroke: var(--faint); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.node.on { color: var(--ink); border-color: var(--accent-deep); }

/* cells: hairline-divided features */
.cells { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-soft); }
.cells.three { grid-template-columns: repeat(3, 1fr); }
.cells li { list-style: none; padding: 26px 24px 28px 0; font-size: 14px; line-height: 1.6; color: var(--dim); }
.cells li + li { padding-left: 24px; border-left: 1px solid var(--line-soft); }
.cells.three li:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
.cells.three li:nth-child(n + 4) { border-top: 1px solid var(--line-soft); }
.cells h3 { margin-bottom: 6px; color: var(--ink); }

/* ── quote ── */
.plate { padding: 140px 0 40px; text-align: center; }
.plate p {
  max-width: 860px;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
/* Instrument Serif has no Cyrillic; one face for the whole quote reads better than a mix */
:lang(ru) .plate p { font-family: Georgia, serif; font-size: clamp(28px, 3.8vw, 46px); }
.plate p span { color: color-mix(in srgb, var(--ink) 35%, var(--bg)); }

/* ── sections with a lede and hairline rows ── */
.sect { padding-top: 130px; }
.lede { text-align: center; }
.lede p { margin: 14px auto 0; max-width: 480px; font-size: 14.5px; line-height: 1.65; color: var(--dim); }
.rows { margin-top: 56px; border-bottom: 1px solid var(--line-soft); }
.rows > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px; padding: 40px 0; border-top: 1px solid var(--line-soft); }
.rows h3 { font-size: 19px; letter-spacing: -0.02em; }
.rows .lead p { margin-top: 8px; font-size: 14.5px; color: var(--faint); }
.list { list-style: none; }
.list li { display: flex; align-items: center; gap: 14px; padding: 10px 0; }
.list li + li { border-top: 1px solid var(--line-soft); }
.list .name { font-size: 14px; font-weight: 500; }
.list .button { margin-left: auto; height: 32px; font-size: 13px; }
.facts li { display: grid; grid-template-columns: 110px 1fr; gap: 18px; align-items: baseline; }
.facts p { font-size: 14px; color: var(--dim); }
.foot { margin-top: 24px; display: flex; gap: 20px; flex-wrap: wrap; font-size: 12.5px; color: var(--faint); }
.foot a { color: var(--dim); transition: color .15s; }
.foot a:hover { color: var(--ink); }

/* ── closing ── */
.closing { margin: 140px auto 80px; }
.closing h2 { font-size: clamp(28px, 3.8vw, 40px); letter-spacing: -0.03em; }
.closing p { margin-top: 16px; max-width: 460px; color: var(--dim); }
.closing .cta { justify-content: flex-start; margin-top: 30px; }

footer { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 40px; font-size: 12.5px; color: var(--faint); }
footer .logo { font-size: 13px; color: var(--dim); }
footer .logo img { width: 20px; height: 20px; }
.links { display: flex; gap: 20px; margin-left: auto; }
.links a:hover { color: var(--dim); }

/* ── privacy and support pages ── */
.doc { max-width: 640px; margin: 0 auto; padding: 48px 20px 64px; font-size: 16px; }
.doc + footer { max-width: 640px; margin: 0 auto; padding-left: 20px; padding-right: 20px; border-top: 1px solid var(--line-soft); }
.doc + footer .links { margin-left: 0; }
.doc h1 { font-size: 36px; letter-spacing: -0.03em; margin: 24px 0 8px; }
.doc h2 { font-size: 21px; margin: 36px 0 10px; }
.doc p { margin-bottom: 16px; color: var(--dim); }
.doc a:not(.button) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; }
.doc ul { padding-left: 20px; color: var(--dim); }
.doc li { margin-bottom: 6px; }
.doc a.back { text-decoration: none; color: var(--dim); font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.note { font-size: 13px; }
.faq dt { font-weight: 600; margin-top: 20px; }
.faq dd { margin: 4px 0 0; color: var(--dim); }
.lang { position: absolute; top: 20px; right: 20px; display: flex; gap: 14px; font-size: 13px; }
.lang a { color: var(--dim); }
.lang a[aria-current] { color: var(--ink); font-weight: 600; }

@media (max-width: 900px) {
  .row, .row.flip { grid-template-columns: 1fr; }
  .copy { order: -1; padding: 38px 0 0; }
  .cells, .cells.three { grid-template-columns: 1fr 1fr; }
  .cells li, .cells li + li, .cells.three li:nth-child(n) { padding: 22px 20px 22px 0; border-left: 0; border-top: 1px solid var(--line-soft); }
  .cells li:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line-soft); }
  .cells li:nth-child(-n + 2) { border-top: 0; }
  .rows > div { grid-template-columns: 1fr; gap: 20px; padding: 32px 0; }
  .phone { right: 24px; width: 24%; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .nav { height: 56px; }
  .nav-links .gh { display: none; }
  .hero { padding: 48px 20px 32px; text-align: left; }
  .cta { justify-content: flex-start; }
  .hero .mono { margin-top: 28px; }
  .phone { right: 12px; bottom: -32px; width: 30%; }
  .panel-sect, .sect { padding-top: 84px; }
  .plate { padding-top: 96px; }
  .diagram { padding: 30px 0; }
  .node { gap: 6px; padding: 4px 9px; font-size: 10.5px; }
  .node svg { width: 11px; height: 11px; }
  .hub { width: 56px; padding: 6px; border-radius: 13px; }
  .cells, .cells.three { grid-template-columns: 1fr; }
  .cells li:nth-child(n) { padding: 20px 0; border-left: 0; border-top: 1px solid var(--line-soft); }
  .cells li:first-child { border-top: 0; }
  .facts li { grid-template-columns: 1fr; gap: 4px; }
  .list li { flex-wrap: wrap; row-gap: 4px; }
  .closing { margin: 96px auto 56px; }
  .links { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .live, .spokes path, .flow path { animation: none; }
}
