/* Arethon Media — arethonhq.com
   Brand tokens from arethon-brand-kit/LEEME.txt */

@font-face {
  font-family: "Cinzel";
  src: url("/fonts/cinzel-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jbmono-latin.woff2") format("woff2");
  font-weight: 400 500;
  font-display: swap;
}

:root {
  --obsidian: #040706;
  --glow: #0c3d35;
  --teal: #0b4f45;
  --teal-bright: #127a6a;
  --sea: #a9d9cf;
  --shade: #9fd3c7;
  --marble: #f2f1ee;
  --white: #ffffff;

  --text: var(--marble);
  --muted: #a7b8b3;
  --line: rgba(169, 217, 207, 0.16);
  --line-strong: rgba(169, 217, 207, 0.32);
  --panel: rgba(12, 61, 53, 0.22);

  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
  --radius-s: 6px;
  --radius-m: 14px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--obsidian);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--sea); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--white); }

:focus-visible {
  outline: 2px solid var(--sea);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip {
  position: absolute; left: 12px; top: -60px;
  background: var(--marble); color: var(--obsidian);
  padding: 10px 14px; border-radius: var(--radius-s); z-index: 10;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type ---------- */
h1, h2, h3 { margin: 0; font-weight: 600; }
h1, h2 {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.12;
  color: var(--white);
}
h1 { font-size: clamp(1.875rem, 1.25rem + 2.2vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); }
h3 { font-family: var(--sans); font-size: 1.1875rem; line-height: 1.35; color: var(--white); letter-spacing: -0.005em; }
p { margin: 0; }
.lede { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); color: #d9e4e1; max-width: 36em; }
.muted { color: var(--muted); }
.prose { max-width: 38em; }
.prose p + p { margin-top: 1em; }

/* ---------- header ---------- */
.site-header {
  position: relative; z-index: 2;
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 72px;
}
.brand { display: inline-flex; flex-shrink: 0; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 28px); font-size: 0.9375rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--white); }
.nav .nav-cta { color: var(--white); }
@media (max-width: 720px) {
  .nav .nav-hide { display: none; }
  .brand img { height: 32px; }
}

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 20px;
  border-radius: var(--radius-s);
  font: 600 0.9688rem/1 var(--sans);
  text-decoration: none; letter-spacing: 0.005em;
  border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--teal); color: var(--white); border-color: #1a6a5d; }
.btn-primary:hover { background: var(--teal-bright); color: var(--white); }
.btn-ghost { color: var(--marble); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--sea); color: var(--white); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 88px);
  background:
    radial-gradient(60% 70% at 72% 40%, rgba(12, 61, 53, 0.85), transparent 70%),
    var(--obsidian);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(40px, 6vw, 64px);
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 11fr) minmax(0, 12fr); }
}
.hero-copy { display: grid; gap: 24px; }
.hero-copy .who { color: var(--sea); font-size: 0.9688rem; }

/* the presence field: the page's signature element */
.field-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  background: linear-gradient(180deg, rgba(4, 7, 6, 0.55), rgba(4, 7, 6, 0.85));
  padding: clamp(16px, 2.4vw, 24px);
  min-width: 0;
}
.field-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; flex-wrap: wrap;
  font-size: 0.875rem; color: var(--muted);
  margin-bottom: 16px;
}
.field-head strong { color: var(--white); font-weight: 600; }
.field {
  display: grid;
  grid-template-columns: repeat(var(--cols, 28), minmax(0, 1fr));
  gap: clamp(3px, 0.6vw, 6px);
}
.cell {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sea);
  opacity: 0.32;
  transition: opacity .5s ease, background-color .5s ease, box-shadow .5s ease, transform .5s ease;
}
.cell.v1 { opacity: 0.22; }
.cell.v2 { opacity: 0.44; }
.cell.dropped {
  background: transparent;
  opacity: 1;
  box-shadow: inset 0 0 0 2px var(--white), 0 0 12px 2px rgba(255,255,255,.35);
  transform: scale(1.3);
}
.cell.classified {
  background: transparent;
  opacity: 1;
  box-shadow: inset 0 0 0 1.5px var(--sea);
  transform: scale(1);
}
.legend {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  margin-top: 16px; font-size: 0.8125rem; color: var(--muted);
}
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.legend .k-present { background: var(--sea); opacity: .55; }
.legend .k-drop { box-shadow: inset 0 0 0 1.5px var(--white); }
.legend .k-class { box-shadow: inset 0 0 0 1.5px var(--sea); }

.log {
  list-style: none; margin: 16px 0 0; padding: 14px 0 0;
  border-top: 1px solid var(--line);
  display: grid; gap: 8px;
  font-size: 0.875rem; min-height: 6.6em;
}
.log li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px;
  color: #c9d6d2;
}
.log li .what { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log li .verdict { color: var(--sea); font-weight: 600; white-space: nowrap; }
.log li .verdict.pending { color: var(--white); font-weight: 500; }
.field-note { margin-top: 12px; font-size: 0.75rem; color: #7f928d; }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; border-bottom: 1px solid var(--line); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 44em; }

/* coverage spec */
.spec {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--line-strong);
  margin: 0;
}
.spec > div {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
@media (min-width: 720px) {
  .spec > div { grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: baseline; }
}
.spec dt { color: var(--muted); font-size: 0.9375rem; }
.spec dd { margin: 0; color: var(--white); font-size: 1.125rem; }
.spec dd .num { font-family: var(--display); font-weight: 600; letter-spacing: 0.02em; font-size: 1.375rem; margin-right: 6px; }

/* pipeline (a real sequence, so it is numbered) */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0;
  counter-reset: step;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 28px 24px 28px 0;
  border-top: 1px solid var(--line-strong);
  display: grid; gap: 10px; align-content: start;
}
@media (min-width: 900px) {
  .steps li + li { padding-left: 24px; border-left: 1px solid var(--line); }
}
.steps li::before {
  content: counter(step);
  font-family: var(--display); font-weight: 600;
  font-size: 1.75rem; line-height: 1; color: var(--sea);
}
.steps p { color: #c9d6d2; font-size: 0.98rem; }
.steps .tech { color: var(--muted); font-size: 0.875rem; }

/* stack diagram */
.stack {
  margin-top: clamp(40px, 6vw, 64px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  padding: clamp(20px, 3vw, 32px);
  background: var(--panel);
}
.stack h3 { margin-bottom: 20px; }
.flow {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 10px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) {
  .flow { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
}
.flow li {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  padding: 14px 16px;
  background: rgba(4, 7, 6, 0.6);
}
.flow li b { display: block; color: var(--white); font-weight: 600; font-size: 0.9688rem; }
.flow li span { display: block; color: var(--muted); font-size: 0.8125rem; margin-top: 2px; }
@media (min-width: 900px) {
  .flow li { margin-right: 22px; }
  .flow li:last-child { margin-right: 0; }
  .flow li:not(:last-child)::after {
    content: ""; position: absolute; top: 50%; right: -23px;
    width: 22px; height: 1px; background: var(--sea);
  }
}
@media (max-width: 899px) {
  .flow li:not(:last-child)::after {
    content: ""; position: absolute; left: 24px; bottom: -11px;
    width: 1px; height: 10px; background: var(--sea);
  }
}
.stack-foot { margin-top: 18px; color: var(--muted); font-size: 0.9rem; max-width: 52em; }

/* verdicts */
.verdicts {
  display: grid; gap: 1px;
  grid-template-columns: minmax(0, 1fr);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
}
@media (min-width: 820px) { .verdicts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.verdicts > div { background: var(--obsidian); padding: 24px; display: grid; gap: 10px; align-content: start; }
.verdicts p { color: #c9d6d2; font-size: 0.98rem; }

/* products */
.products {
  display: grid; gap: 24px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) { .products { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); } }
.product {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  padding: clamp(22px, 3vw, 32px);
  display: grid; gap: 16px; align-content: start;
  min-width: 0;
}
.product.live { background: linear-gradient(160deg, rgba(11, 79, 69, 0.55), rgba(4, 7, 6, 0.2) 70%); }
.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.875rem; color: var(--sea);
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sea); }
.status.soon { color: var(--marble); }
.status.soon::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--marble); }
.product p { color: #c9d6d2; }
.product ul { margin: 0; padding-left: 1.1em; color: #c9d6d2; display: grid; gap: 6px; }

.payload {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: #020403;
  padding: 16px;
  overflow-x: auto;
  font: 400 0.8125rem/1.65 var(--mono);
  color: #cfe3de;
  max-width: 100%;
}
.payload .k { color: var(--sea); }
.payload .s { color: #e8e6df; }
.payload-note { font-size: 0.8125rem; color: #7f928d; }

/* company */
.company {
  display: grid; gap: 32px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) { .company { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 64px; } }
.facts { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line-strong); align-self: start; }
.facts > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 0.9375rem; }
.facts dd { margin: 0; color: var(--white); overflow-wrap: anywhere; }

/* closing call */
.closing { padding: clamp(64px, 9vw, 104px) 0; text-align: left; }
.closing .wrap { display: grid; gap: 24px; justify-items: start; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 0.9rem; color: var(--muted); }
.site-footer .wrap { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 820px) { .site-footer .wrap { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer address strong { color: var(--marble); font-weight: 600; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--white); }

/* ---------- document pages (legal, privacy, 404) ---------- */
.doc { padding: clamp(48px, 8vw, 88px) 0 clamp(64px, 9vw, 104px); }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); margin-bottom: 12px; }
.doc .updated { color: var(--muted); font-size: 0.9375rem; margin-bottom: 40px; }
.doc h2 { font-size: 1.25rem; margin: 40px 0 12px; letter-spacing: 0.05em; }
.doc p, .doc li { color: #d3dedb; max-width: 40em; }
.doc p + p { margin-top: 0.9em; }
.doc ul { padding-left: 1.2em; display: grid; gap: 6px; }
.doc address { font-style: normal; color: var(--white); line-height: 1.7; }

@media (prefers-reduced-motion: reduce) {
  .cell, .btn { transition: none; }
}
