/* ============================================================================
   GloGraph landing page, industrial-workstation aesthetic.
   Tokens mirror specs/AESTHETIC_SPEC.md (warm-neutral charcoal, amber #ffb000,
   4-value bevel borders, 0–2px radius, flat fills, mono numerics).
   ========================================================================== */

:root {
  /* Background stack */
  --bg: #171717;
  --surface: #212121;
  --surface-2: #2a2a2a;
  --surface-3: #353535;

  /* Bevel border system */
  --border-hi: #6a6a6a;
  --border-lo: #0c0c0c;
  --border: #484848;
  --border-strong: #585858;
  --border-subtle: #1c1c1c;

  /* Accent */
  --accent: #ffb000;
  --accent-dim: #6e4c00;
  --accent-2: #00b0c8;

  /* Semantic */
  --danger: #c83030;
  --ok: #3d9e5f;

  /* Text */
  --text: #cccccc;
  --text-muted: #888888;
  --text-dim: #545454;

  --radius: 2px;
  --radius-sm: 1px;

  --font-ui: 'IBM Plex Sans', 'Segoe UI', Tahoma, system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', Consolas, 'Cascadia Code', monospace;
  --font-display: 'IBM Plex Mono', Consolas, monospace; /* terminal/workstation headings */

  --maxw: 1080px;
}

* { box-sizing: border-box; }

html, body { overflow-x: hidden; max-width: 100%; }
html { scroll-behavior: smooth; }

img, svg, video { max-width: 100%; height: auto; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Subtle dot grid like the canvas */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(#242424 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

main, .nav, .founder-banner, .footer { position: relative; z-index: 1; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Keyboard focus, amber ring, matching the app (AESTHETIC_SPEC / Phase 22). */
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

code, .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
code {
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  padding: 1px 5px;
  border-radius: var(--radius-sm);
  font-size: 0.85em;
  color: var(--text);
}

.amber { color: var(--accent); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #141414; border-left: 1px solid var(--border-subtle); }
::-webkit-scrollbar-thumb { background: #4a4a4a; border: 1px solid; border-color: #555 #222 #222 #555; }
::-webkit-scrollbar-thumb:hover { background: #585858; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 8px 16px;
  min-height: 32px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid;
  border-color: var(--border-hi) var(--border-lo) var(--border-lo) var(--border-hi);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--surface-3); text-decoration: none; }
.btn--primary {
  background: var(--accent);
  color: #1a1200;
  font-weight: 700;
  border-color: #ffc94d var(--border-lo) var(--border-lo) #ffc94d;
}
.btn--primary:hover { background: #ffbf2e; }
.btn--lg { font-size: 15px; padding: 12px 24px; min-height: 44px; }

/* ── Kicker / section labels ─────────────────────────────────────────────── */
.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.kicker::before { content: ":: "; opacity: 0.55; }
.kicker::after  { content: " ::"; opacity: 0.55; }

/* Headings use Plex Sans (var(--font-ui)); wordmark/nav/buttons/labels stay Plex Mono. */
h1, h2, h3 { margin: 0; font-family: var(--font-ui); font-weight: 700; letter-spacing: -0.015em; line-height: 1.12; overflow-wrap: break-word; }
h2 { font-size: 28px; }
h3 { font-size: 16px; }

p { margin: 0 0 14px; }

/* ── Founder banner ──────────────────────────────────────────────────────── */
.founder-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--accent-dim);
  border-bottom: 1px solid var(--border-lo);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  padding: 7px 16px;
  font-size: 13px;
  color: #f0dcb0;
}
.founder-banner__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  background: var(--accent);
  color: #1a1200;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
}
.founder-banner__text strong { color: #fff; }
.founder-banner__link { color: var(--accent); font-weight: 700; white-space: nowrap; }

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-lo);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.nav__brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 18px;
  color: var(--text);
}
.nav__brand:hover { text-decoration: none; }
.nav__diamond { color: var(--accent); }
.nav__links { display: flex; gap: 20px; margin-left: auto; }
.nav__links a { color: var(--text-muted); font-size: 13px; font-weight: 500; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.6px; }
.nav__links a:hover { color: var(--text); text-decoration: none; }
.nav__cta { white-space: nowrap; }

/* ── Layout / sections ───────────────────────────────────────────────────── */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 72px 24px;
}
.section--alt {
  max-width: none;
  background: var(--surface);
  border-top: 1px solid var(--border-lo);
  border-bottom: 1px solid var(--border-lo);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.section--alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section__head { max-width: 720px; margin-bottom: 40px; }
.section__sub { color: var(--text-muted); font-size: 17px; margin: 0; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 24px 56px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero__title { font-size: 44px; line-height: 1.1; margin-bottom: 20px; }
.hero__lede { font-size: 18px; color: var(--text-muted); max-width: 36ch; }
.hero__lede strong { color: var(--text); }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 18px; }
.hero__meta {
  display: flex; gap: 8px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-dim);
}
.hero__meta .dot { color: var(--border-strong); }
.hero__meta code { font-size: 11px; }

/* Window-chrome mock */
.hero__visual { width: 100%; }
.winchrome {
  border: 1px solid;
  border-color: var(--border-hi) var(--border-lo) var(--border-lo) var(--border-hi);
  background: var(--bg);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.winchrome__bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 28px; padding: 0 10px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border-lo);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.winchrome__title { font-size: 11px; color: var(--text-muted); letter-spacing: 0.5px; }
.winchrome__badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700; color: var(--text-muted);
}
.led { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 5px var(--ok); }
.winchrome__shot { display: block; width: 100%; height: auto; background: var(--bg); }

/* ── Pillars ─────────────────────────────────────────────────────────────── */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pillar {
  background: var(--surface-2);
  border: 1px solid;
  border-color: var(--border-hi) var(--border-lo) var(--border-lo) var(--border-hi);
  padding: 22px;
}
.pillar__icon {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--accent);
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.55);
  margin-bottom: 14px;
}
.pillar h3 { margin-bottom: 8px; }
.pillar p { color: var(--text-muted); font-size: 14px; margin: 0; }

/* ── Feature grid ────────────────────────────────────────────────────────── */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border-lo); border: 1px solid var(--border-lo); }
.feature { background: var(--bg); padding: 20px; }
.feature { border-top: 2px solid var(--accent-dim); }
.feature h3 { font-size: 14px; color: var(--text); margin-bottom: 7px; }
.feature p { color: var(--text-muted); font-size: 13px; margin: 0; }

/* ── SDK ─────────────────────────────────────────────────────────────────── */
.sdk { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; }
.sdk__copy p { color: var(--text-muted); font-size: 15px; }
.sdk__copy em { color: var(--text); font-style: normal; }
.sdk__list { list-style: none; padding: 0; margin: 16px 0; }
.sdk__list li { padding: 4px 0 4px 22px; position: relative; color: var(--text); font-size: 14px; }
.sdk__list li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.sdk__note { font-size: 13px; color: var(--text-dim); }
.sdk__note strong { color: var(--accent); }

.codeblock {
  background: var(--bg);
  border: 1px solid;
  border-color: var(--border-hi) var(--border-lo) var(--border-lo) var(--border-hi);
  overflow: hidden;
}
.codeblock__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 12px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border-lo);
  font-family: var(--font-mono); font-size: 11px; color: var(--text-muted);
}
.codeblock__file { color: var(--text-dim); }
.codeblock pre { margin: 0; padding: 16px; overflow-x: auto; }
.codeblock code {
  background: none; border: none; padding: 0;
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7; color: var(--text);
  white-space: pre;
}
.c-kw { color: #c98aff; }
.c-fn { color: var(--accent-2); }
.c-str { color: #3fb950; }
.c-num { color: #f78166; }
.c-cm { color: var(--text-dim); font-style: italic; }

/* ── Gallery ─────────────────────────────────────────────────────────────── */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.shot { margin: 0; }
.shot__img {
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(#262626 1px, transparent 1px) 0 0 / 20px 20px,
    var(--bg);
  border: 1px solid;
  border-color: var(--border-hi) var(--border-lo) var(--border-lo) var(--border-hi);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.shot__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot__img::after {
  content: attr(data-shot) ": screenshot";
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-dim);
}
.shot__img:has(img)::after { display: none; }
.shot figcaption { margin-top: 8px; font-size: 13px; color: var(--text-muted); }
.gallery__cta { text-align: center; margin-top: 28px; }
.gallery__cta-note { margin-top: 10px; font-size: 13px; color: var(--text-dim); }

/* ── Compare ─────────────────────────────────────────────────────────────── */
.compare { border: 1px solid var(--border-lo); }
.compare__row { display: grid; grid-template-columns: 1fr 1fr; }
.compare__row + .compare__row { border-top: 1px solid var(--border-lo); }
.compare__them, .compare__us { padding: 16px 20px; font-size: 14px; }
.compare__them { color: var(--text-dim); background: var(--bg); text-decoration: line-through; text-decoration-color: var(--border-strong); }
.compare__us { color: var(--text); background: var(--surface-2); font-weight: 600; }
.honesty {
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--bg);
  border-left: 2px solid var(--accent-2);
  color: var(--text-muted);
  font-size: 14px;
}
.honesty strong { color: var(--text); }
.honesty em { color: var(--text); font-style: italic; }

/* ── Pricing tiers ───────────────────────────────────────────────────────── */
.tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; gap: 16px; align-items: start; }
.tier {
  position: relative;
  background: var(--surface-2);
  border: 1px solid;
  border-color: var(--border-hi) var(--border-lo) var(--border-lo) var(--border-hi);
  padding: 24px 22px;
  display: flex; flex-direction: column;
}
.tier--featured {
  border-color: var(--accent) var(--accent-dim) var(--accent-dim) var(--accent);
  box-shadow: 0 0 0 1px var(--accent-dim);
}
.tier__flag {
  position: absolute; top: -10px; left: 22px;
  font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: 1px;
  background: var(--accent); color: #1a1200; padding: 3px 8px; border-radius: var(--radius-sm);
}
.tier__name { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); }
.tier__price { font-family: var(--font-mono); font-size: 36px; font-weight: 700; color: var(--text); margin: 6px 0 2px; }
.tier__was { font-size: 12px; color: var(--text-dim); font-weight: 400; }
.tier__sub { font-size: 12px; color: var(--text-dim); margin-bottom: 16px; }
.tier__list { list-style: none; padding: 0; margin: 0 0 20px; flex: 1; }
.tier__list li { padding: 5px 0 5px 20px; position: relative; font-size: 13.5px; border-top: 1px solid var(--border-subtle); }
.tier__list li:first-child { border-top: none; }
.tier__list li::before { content: "+"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.tier__list li.off { color: var(--text-dim); }
.tier__list li.off::before { content: "–"; color: var(--danger); }
.tier__cta { width: 100%; }
.tiers__foot { text-align: center; margin-top: 22px; font-size: 13px; color: var(--text-dim); }

/* ── Notify ──────────────────────────────────────────────────────────────── */
.notify { text-align: center; }
.notify__inner { max-width: 560px; margin: 0 auto; }
.notify .section__sub { margin: 0 auto 20px; }
.notify__form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.notify__input {
  flex: 1; min-width: 220px;
  background: var(--bg);
  border: 1px solid;
  border-color: var(--border-lo) var(--border-strong) var(--border-strong) var(--border-lo);
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.55);
  color: var(--text);
  font-family: var(--font-mono); font-size: 14px;
  padding: 0 12px; min-height: 44px;
  border-radius: var(--radius-sm);
}
.notify__input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.notify__ok { margin-top: 14px; color: var(--ok); font-weight: 600; font-size: 14px; }
.notify__fineprint { margin-top: 12px; font-size: 12px; color: var(--text-dim); }
.notify__fineprint a { color: var(--text-muted); }

/* Legal pages (privacy, etc.) */
.legal { max-width: 760px; margin: 0 auto; }
.legal h1 { font-size: 32px; margin-bottom: 4px; }
.legal__updated { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); margin-bottom: 24px; }
.legal h2 { font-size: 18px; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--text-muted); font-size: 15px; line-height: 1.6; }
.legal ul { padding-left: 20px; margin: 8px 0; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent); }
.legal__note { font-size: 13px; color: var(--text-dim); margin-top: 28px; border-top: 1px solid var(--border-subtle); padding-top: 16px; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq { display: grid; gap: 1px; background: var(--border-lo); border: 1px solid var(--border-lo); }
.faq details { background: var(--bg); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 16px 20px; font-weight: 600; font-size: 15px; color: var(--text);
  display: flex; align-items: center; justify-content: space-between;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-family: var(--font-mono); font-size: 18px; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--text-muted); font-size: 14px; }

/* ── Footer CTA + footer ─────────────────────────────────────────────────── */
.footcta { text-align: center; padding: 80px 24px; }
.footcta h2 { font-size: 32px; margin-bottom: 24px; }
.footcta__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.footer {
  border-top: 1px solid var(--border-lo);
  background: var(--surface);
  padding: 24px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-dim);
}
.footer__brand { font-family: var(--font-display); font-weight: 700; letter-spacing: 2px; font-size: 16px; color: var(--text-muted); }
.footer__meta { margin-left: auto; }
.footer__links { display: flex; gap: 16px; }
.footer__links a { color: var(--text-muted); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 32px; }
  .hero__title { font-size: 36px; }
  .pillars, .tiers { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .sdk { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .nav__links { display: none; }
}
@media (max-width: 540px) {
  h2 { font-size: 24px; }
  .hero { padding: 36px 18px; }
  .hero__title { font-size: 30px; }
  .hero__lede { font-size: 16px; }
  .hero__meta { font-size: 10px; }
  .features { grid-template-columns: 1fr; }
  .compare__row { grid-template-columns: 1fr; }
  .section { padding: 48px 18px; }
  .founder-banner { font-size: 12px; }
}
