/* OverheardX — base styles. Dark graphite, glass panels, acid lime + electric violet. Fonts self-hosted. */
@font-face { font-family: 'Syne'; src: url('/fonts/syne-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Syne'; src: url('/fonts/syne-latin-800-normal.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('/fonts/geist-sans-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('/fonts/geist-sans-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('/fonts/geist-sans-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/fonts/geist-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/fonts/geist-mono-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0a0b0e; --surface: #12141a; --surface-2: #181b23; --surface-3: #20242e;
  --glass: rgba(20, 23, 31, 0.62); --glass-2: rgba(28, 32, 42, 0.55);
  --line: rgba(238, 240, 245, 0.08); --line-2: rgba(238, 240, 245, 0.16); --line-3: rgba(238, 240, 245, 0.28);
  --text: #eef0f5; --muted: #8a90a0; --muted-2: #a9aebb;
  --lime: #c6ff3d; --lime-ink: #0b0d06; --lime-soft: rgba(198, 255, 61, 0.14); --lime-line: rgba(198, 255, 61, 0.45);
  --violet: #8b5cff; --violet-soft: rgba(139, 92, 255, 0.16); --violet-line: rgba(139, 92, 255, 0.5);
  --danger: #ff4d6d; --danger-soft: rgba(255, 77, 109, 0.12);
  --display: 'Syne', 'Geist', system-ui, sans-serif;
  --body: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --r: 14px; --r-sm: 9px;
  --wrap: 1200px; --gut: 16px;
  --glow-lime: 0 0 0 1px rgba(198, 255, 61, 0.5), 0 0 24px rgba(198, 255, 61, 0.25);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}
@media (min-width: 720px) { :root { --gut: 28px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100vh;
  background-image:
    radial-gradient(900px 600px at 85% -10%, rgba(139, 92, 255, 0.16), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(198, 255, 61, 0.06), transparent 60%);
  background-repeat: no-repeat;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
a:hover { color: var(--lime); text-decoration-color: var(--lime); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--violet); color: #fff; }
code, .mono { font-family: var(--mono); font-feature-settings: 'zero' 1; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.02; margin: 0; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.lime { color: var(--lime); }
.ext::after { content: ' ↗'; font-family: var(--mono); font-size: 0.85em; }

/* ---------- buttons ---------- */
.btn {
  --h: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--h); padding: 0 20px;
  border: 0; border-radius: 10px; background: var(--lime); color: var(--lime-ink); font: 600 15px/1 var(--body); letter-spacing: -0.01em;
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: box-shadow 0.16s, transform 0.16s, background 0.16s;
  box-shadow: 0 0 0 1px rgba(198, 255, 61, 0.6), 0 8px 30px -8px rgba(198, 255, 61, 0.55);
}
.btn:hover { color: var(--lime-ink); box-shadow: 0 0 0 1px var(--lime), 0 10px 40px -6px rgba(198, 255, 61, 0.75); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn[aria-disabled='true'] { background: var(--surface-3); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); cursor: not-allowed; transform: none; }
.btn-ghost { background: rgba(255, 255, 255, 0.03); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line-3); }
.btn-violet { background: var(--violet); color: #fff; box-shadow: 0 0 0 1px rgba(139, 92, 255, 0.8), 0 8px 30px -8px rgba(139, 92, 255, 0.7); }
.btn-violet:hover { color: #fff; box-shadow: 0 0 0 1px #a585ff, 0 10px 40px -6px rgba(139, 92, 255, 0.9); }
.btn-sm { --h: 36px; padding: 0 14px; font-size: 14px; border-radius: 8px; }
.btn-xs { --h: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--muted-2); font: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.linkbtn:hover { color: var(--lime); text-decoration-color: var(--lime); }

.glass {
  background: var(--glass); border: 1px solid var(--line-2); border-radius: var(--r);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), var(--shadow);
}
.tag { display: inline-flex; align-items: center; gap: 6px; font: 500 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2);
  padding: 5px 8px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line-2); white-space: nowrap; }
.tag.lime { color: var(--lime); box-shadow: inset 0 0 0 1px var(--lime-line); background: var(--lime-soft); }
.tag.violet { color: #c3adff; box-shadow: inset 0 0 0 1px var(--violet-line); background: var(--violet-soft); }
.tag.danger { color: var(--danger); box-shadow: inset 0 0 0 1px rgba(255, 77, 109, 0.5); background: var(--danger-soft); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); display: inline-block; flex: none; }
.dot.off { background: var(--muted); box-shadow: none; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; background: rgba(10, 11, 14, 0.72); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.top-in > * { min-width: 0; }
.top-act { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.menu-btn { display: inline-grid; align-content: center; justify-items: center; gap: 5px; width: 34px; height: 34px; border: 0; border-radius: 8px; background: none; box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; padding: 0; }
.menu-btn i { display: block; width: 14px; height: 1.5px; background: var(--text); transition: transform 0.16s; }
.top.open .menu-btn i:nth-of-type(1) { transform: translateY(3.25px) rotate(45deg); }
.top.open .menu-btn i:nth-of-type(2) { transform: translateY(-3.25px) rotate(-45deg); }
.top-in { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px 14px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font: 800 20px/1 var(--display); letter-spacing: -0.03em; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark { width: 26px; height: 26px; flex: none; }
.brand b { color: var(--lime); font-weight: 800; }
.nav { display: flex; justify-content: flex-end; align-items: center; gap: 14px; font-size: 14px; }
.x-link { flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; align-self: center; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text) !important; }
.x-link:hover { box-shadow: inset 0 0 0 1px var(--lime-line); color: var(--lime) !important; }
.nav a { text-decoration: none; color: var(--muted-2); }
.nav a:hover, .nav a[aria-current='page'] { color: var(--text); }
.nav a[aria-current='page'] { box-shadow: 0 2px 0 var(--lime); }
.ca-row { grid-column: 1 / -1; display: flex; gap: 8px; align-items: stretch; min-width: 0; }
.ca-box { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 10px; border-radius: 9px; background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 12.5px; }
.ca-box .ca-l { font: 500 10.5px/1 var(--mono); letter-spacing: 0.08em; color: var(--muted); }
.ca-box code { font-size: 12.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ca-box.pre code { color: var(--muted); }
.ca-box .ca-note { color: var(--muted); font-size: 12px; white-space: nowrap; }
.ca-box .ca-links { display: flex; gap: 8px; font: 500 12px/1 var(--mono); white-space: nowrap; }
.ca-box .btn-xs { margin-left: auto; }
.pons-btn { flex: none; }
.dateline { font: 400 11px/1.4 var(--mono); color: var(--muted); letter-spacing: 0.02em; padding-bottom: 8px; display: flex; flex-wrap: wrap; gap: 0 10px; }
.dateline .dot { width: 6px; height: 6px; margin-right: 6px; vertical-align: 1px; }
.dateline .sep { color: var(--line-3); }
@media (max-width: 559px) {
  .brand { font-size: 18px; gap: 7px; }
  .brand-mark { width: 24px; height: 24px; }
  .ca-row { gap: 6px; }
  .ca-box .btn-xs { padding: 0 8px; font-size: 12px; }
  .x-link { width: 34px; height: 34px; }
  .ca-box { padding-left: 8px; gap: 6px; }
  .ca-box .ca-l { display: none; }
  .ca-box code { font-size: 11.5px; }
  .ca-box .ca-note { display: none; }
  .pons-btn { padding: 0 9px; font-size: 12px; }
  .dateline .dl-hide { display: none; }
}
@media (min-width: 980px) {
  .top-in { grid-template-columns: auto auto 1fr auto; }
  .menu-btn { display: none; }
  .nav { order: 2; justify-content: flex-start; margin-left: 18px; }
  .ca-row { grid-column: auto; order: 3; justify-content: flex-end; }
  .top-act { order: 4; }
  .ca-box { flex: 0 1 auto; }
  
}

/* ---------- footer ---------- */
.foot { margin-top: 120px; border-top: 1px solid var(--line); padding: 48px 0 60px; color: var(--muted); font-size: 13.5px; }
.foot-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr 1fr 0.6fr; } }
.foot h4, .foot .fh { margin: 0 0 10px; font: 500 11px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.foot .disclaimer { color: var(--muted-2); line-height: 1.65; max-width: 62ch; }
.foot dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; font: 400 12px/1.5 var(--mono); }
.foot dt { color: var(--muted); }
.foot dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot .fine { margin-top: 32px; font: 400 11.5px/1.5 var(--mono); color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: 96px 0 0; }
.eyebrow { font: 500 11.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime); display: flex; align-items: center; gap: 10px; margin: 0 0 18px; }
.eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; box-shadow: 0 0 8px currentColor; }
.h2 { font-size: clamp(30px, 5.2vw, 52px); max-width: 18ch; }
.lede { color: var(--muted-2); font-size: 17px; max-width: 60ch; margin-top: 16px; }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; border-radius: var(--r); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font: 500 10.5px/1.2 var(--mono); letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line-2); white-space: nowrap; position: sticky; top: 0; background: var(--surface); }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
.tbl td.num, .tbl th.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.tbl td.mono { font-family: var(--mono); font-size: 12.5px; }
.tbl tbody tr:hover td { background: rgba(255, 255, 255, 0.025); }
.tbl .sym { font: 700 14px/1 var(--display); letter-spacing: 0; }
.tbl-empty { padding: 28px 16px; color: var(--muted); text-align: center; }

input.field, textarea.field {
  width: 100%; min-width: 0; height: 46px; padding: 0 14px; border-radius: 10px; border: 0; background: rgba(0, 0, 0, 0.35);
  color: var(--text); font: 400 15px/1.4 var(--body); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow 0.16s;
}
textarea.field { height: auto; min-height: 132px; padding: 12px 14px; resize: vertical; }
input.field::placeholder, textarea.field::placeholder { color: #6d7383; }
input.field:focus, textarea.field:focus { outline: none; box-shadow: inset 0 0 0 1px var(--lime-line), 0 0 0 4px rgba(198, 255, 61, 0.1); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; padding: 10px 16px; border-radius: 10px; background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--lime-line), var(--shadow); font: 500 13px/1.3 var(--mono); max-width: calc(100vw - 32px); }

.page-head { padding: 36px 0 8px; }
.page-head h1 { font-size: clamp(27px, 4.4vw, 50px); max-width: 24ch; line-height: 1.04; }
@media (min-width: 720px) { .page-head { padding-top: 64px; } }
.page-head p { color: var(--muted-2); max-width: 70ch; margin-top: 18px; font-size: 16.5px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
main { overflow-x: clip; }

@media (max-width: 979px) {
  .nav { display: none; grid-column: 1 / -1; order: 3; flex-direction: column; align-items: stretch; gap: 0; padding: 4px 0; border-top: 1px solid var(--line); }
  .top.open .nav { display: flex; }
  .nav a { padding: 12px 2px; font-size: 16px; border-bottom: 1px solid var(--line); color: var(--text); }
  .nav a[aria-current='page'] { box-shadow: inset 3px 0 0 var(--lime); padding-left: 12px; }
  .ca-row { order: 4; }
}

/* ---------- 3D signal field (shared/field.js) ---------- */
.bgfield { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.bgfield::before { content: ''; position: absolute; inset: -8% -4%; background: url('/assets/nebula.jpg') center / cover no-repeat; opacity: 0.42;
  transform: translate3d(0, var(--py, 0px), 0) scale(1.04); will-change: transform; }
.bgfield canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s ease; }
.bgfield.on canvas { opacity: 1; }
@media (max-width: 759px) { .bgfield::before { opacity: 0.32; background-position: 70% center; } }
.bgfield.poster { background: url('/assets/field-poster.jpg') center / cover no-repeat; }
.bgfield.poster::before { opacity: 0.3; }
body > main, body > footer, body > section { position: relative; z-index: 1; }

/* micro-interactions */
.btn { position: relative; overflow: hidden; }
.btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform 0.5s ease; pointer-events: none; }
.btn:not([disabled]):not([aria-disabled='true']):hover::after { transform: translateX(120%); }
.btn:not([disabled]):not([aria-disabled='true']):active { transform: translateY(0) scale(0.97); transition-duration: 0.06s; }
.btn:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.btn-ghost::after, .btn-violet::after { background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.12) 50%, transparent 70%); }
input.field:hover:not(:focus), textarea.field:hover:not(:focus) { box-shadow: inset 0 0 0 1px var(--line-3); }

a.btn[aria-disabled='true'][href] { cursor: pointer; }
