/* ============================================================
   Lockstep marketing site — shared design system
   Glass is a supporting actor (per 2026 practice): flat surfaces
   carry the page, backdrop-blur glass is reserved for a handful
   of high-impact elements (nav, hero instrument, feature panels)
   floating over an ambient gradient field — never applied wholesale.
   ============================================================ */

@font-face {
  font-family: "Plex Sans";
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  src: url("fonts/plex-sans-var.woff2") format("woff2");
}
@font-face {
  font-family: "Plex Mono";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("fonts/plex-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "Plex Mono";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("fonts/plex-mono-500.woff2") format("woff2");
}
@font-face {
  font-family: "Plex Mono";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("fonts/plex-mono-600.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --ink: #f4f5f7;
  --ink-raised: #ffffff;
  --ink-border: #dfe2e8;
  --text: #12151d;
  --text-dim: #545a69;
  --text-faint: #888ea0;
  --brass: #9a6f2f;
  --brass-bright: #b5842f;
  --brass-wash: #f1e6d2;
  --teal: #2f7a72;
  --teal-wash: #dceeeb;
  --grade-a: #2f7a5c;
  --grade-b: #2f7a5c;
  --grade-c: #a3792a;
  --grade-d: #b5622a;
  --grade-f: #ab3f3a;
  --shadow: 0 1px 2px rgba(18, 21, 29, 0.05), 0 12px 32px -16px rgba(18, 21, 29, 0.16);
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(18, 21, 29, 0.08);
  --glass-shadow: 0 8px 40px -12px rgba(18, 21, 29, 0.18);
  --glow-1: rgba(154, 111, 47, 0.16);
  --glow-2: rgba(47, 122, 114, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #08090d;
    --ink-raised: #14171f;
    --ink-border: #262b38;
    --text: #eef0f4;
    --text-dim: #a3a9ba;
    --text-faint: #666c7c;
    --brass: #d9b171;
    --brass-bright: #ecc891;
    --brass-wash: #241d10;
    --teal: #6fc4b9;
    --teal-wash: #10201e;
    --grade-a: #63c19a;
    --grade-b: #63c19a;
    --grade-c: #d9b171;
    --grade-d: #e2965f;
    --grade-f: #e07f79;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 24px 56px -18px rgba(0, 0, 0, 0.7);
    --glass-bg: rgba(20, 23, 31, 0.55);
    --glass-border: rgba(255, 255, 255, 0.09);
    --glass-shadow: 0 20px 60px -16px rgba(0, 0, 0, 0.65);
    --glow-1: rgba(217, 177, 113, 0.14);
    --glow-2: rgba(111, 196, 185, 0.1);
  }
}
:root[data-theme="dark"] {
  --ink: #08090d;
  --ink-raised: #14171f;
  --ink-border: #262b38;
  --text: #eef0f4;
  --text-dim: #a3a9ba;
  --text-faint: #666c7c;
  --brass: #d9b171;
  --brass-bright: #ecc891;
  --brass-wash: #241d10;
  --teal: #6fc4b9;
  --teal-wash: #10201e;
  --grade-a: #63c19a;
  --grade-b: #63c19a;
  --grade-c: #d9b171;
  --grade-d: #e2965f;
  --grade-f: #e07f79;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 24px 56px -18px rgba(0, 0, 0, 0.7);
  --glass-bg: rgba(20, 23, 31, 0.55);
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-shadow: 0 20px 60px -16px rgba(0, 0, 0, 0.65);
  --glow-1: rgba(217, 177, 113, 0.14);
  --glow-2: rgba(111, 196, 185, 0.1);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: "Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Ambient field the glass panels diffuse — kept behind everything, fixed so it
   doesn't repeat visibly per-section on scroll */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(680px 460px at 12% -6%, var(--glow-1), transparent 60%),
    radial-gradient(620px 480px at 92% 18%, var(--glow-2), transparent 60%),
    radial-gradient(900px 700px at 50% 120%, var(--glow-1), transparent 55%);
}

a { color: inherit; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { text-wrap: pretty; }
img, svg { max-width: 100%; }

.mono {
  font-family: "Plex Mono", ui-monospace, "SF Mono", monospace;
  font-variant-numeric: tabular-nums;
}
.eyebrow {
  font-family: "Plex Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
}
.eyebrow.teal { color: var(--teal); }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding: 0 28px; }
.overflow-x { overflow-x: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brass); color: #17130a; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

button, .btn {
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border-radius: 9px;
  padding: 13px 22px;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.btn-primary { background: var(--brass); color: #17130a; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--brass-bright); transform: translateY(-1px); }
.btn-teal { background: var(--teal); color: #06110f; box-shadow: var(--shadow); }
.btn-teal:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--ink-border); }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass); }
.btn-sm { padding: 9px 15px; font-size: 13.5px; }

/* ---------- Glass surface (used sparingly: nav, hero instrument, feature panels) ---------- */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
}
.solid {
  background: var(--ink-raised);
  border: 1px solid var(--ink-border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

/* ---------- Nav ---------- */
header.nav {
  position: sticky;
  top: 12px;
  z-index: 40;
  margin: 0 auto;
  max-width: 1140px;
  padding: 0 16px;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-radius: 14px;
}
.wordmark { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.wordmark .mark {
  width: 22px; height: 22px;
  border: 1.5px solid var(--brass);
  border-radius: 6px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.wordmark .mark svg { width: 11px; height: 11px; }
.nav-links { display: flex; gap: 26px; font-size: 14px; color: var(--text-dim); }
.nav-links a[aria-current="page"] { color: var(--brass); }
.nav-links a:hover { color: var(--brass); }
.nav-cta { display: flex; gap: 8px; }
@media (max-width: 760px) { .nav-links { display: none; } }

/* ---------- Sections ---------- */
section { padding: 84px 0; position: relative; }
section.tight { padding: 54px 0; }
.section-head { max-width: 62ch; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; letter-spacing: -0.015em; margin: 12px 0 14px; }
.section-head p { color: var(--text-dim); font-size: 16.5px; max-width: 58ch; }
.center-head { text-align: center; margin-left: auto; margin-right: auto; }
.center-head p { margin-left: auto; margin-right: auto; }

/* ---------- Bento grid (used for signals + trust cards) ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.bento-card {
  padding: 26px 24px;
  grid-column: span 3;
}
.bento-card.span-2 { grid-column: span 2; }
.bento-card.span-4 { grid-column: span 4; }
.bento-card.span-6 { grid-column: span 6; }
@media (max-width: 860px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-card, .bento-card.span-2, .bento-card.span-4, .bento-card.span-6 { grid-column: span 2; }
}
.bento-card .weight { font-family: "Plex Mono", monospace; font-size: 12px; color: var(--brass); margin-bottom: 10px; }
.bento-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.bento-card p { font-size: 13.8px; color: var(--text-dim); margin: 0; }

/* ---------- Phone mockup ---------- */
.phone { padding: 14px; }
.phone .notch { width: 64px; height: 5px; background: var(--ink-border); border-radius: 3px; margin: 0 auto 12px; }
.phone .screen { background: var(--ink); border: 1px solid var(--ink-border); border-radius: 16px; padding: 20px 18px 18px; }
.phone-tg-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--ink-border); }
.phone-tg-bar .tg-icon { width: 22px; height: 22px; border-radius: 6px; background: #229ED9; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.phone-tg-bar .tg-icon svg { width: 13px; height: 13px; }
.phone-tg-bar .tg-name { font-size: 13px; font-weight: 600; }
.phone-tg-bar .tg-sub { font-size: 10.5px; color: var(--text-faint); }
.mini-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.mini-row .lbl { font-size: 10.5px; color: var(--text-faint); letter-spacing: 0.05em; text-transform: uppercase; }
.mini-addr { font-family: "Plex Mono", monospace; font-size: 11px; color: var(--text-dim); background: var(--ink-raised); border: 1px solid var(--ink-border); border-radius: 7px; padding: 9px 10px; margin-bottom: 12px; overflow-wrap: anywhere; }
.mini-balance { font-family: "Plex Mono", monospace; font-size: 27px; font-weight: 600; margin-bottom: 14px; }
.mini-balance span { font-size: 13px; color: var(--text-faint); font-weight: 400; }
.mini-btn { background: var(--brass); color: #17130a; text-align: center; border-radius: 9px; padding: 11px; font-size: 12.5px; font-weight: 600; margin-bottom: 16px; }
.mini-watchlist { display: flex; flex-direction: column; gap: 7px; }
.mini-token { display: flex; justify-content: space-between; align-items: center; background: var(--ink-raised); border: 1px solid var(--ink-border); border-radius: 8px; padding: 8px 10px; font-size: 12px; }
.mini-token .name { font-weight: 600; display: flex; align-items: center; gap: 6px; }
.mini-token .grade-dot { width: 7px; height: 7px; border-radius: 50%; }
.mini-token .pct { font-family: "Plex Mono", monospace; font-size: 11px; }

/* ---------- Discord ticker card mockup ---------- */
.ticker-card { padding: 18px 20px; font-family: "Plex Mono", monospace; font-size: 12.5px; }
.ticker-card .tk-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px dashed var(--ink-border); }
.ticker-card .tk-name { font-weight: 600; font-size: 13.5px; }
.ticker-card .tk-badge { font-size: 10px; padding: 3px 8px; border-radius: 100px; background: var(--brass-wash); color: var(--brass); }
.ticker-row { display: flex; justify-content: space-between; padding: 5px 0; color: var(--text-dim); }
.ticker-row b { color: var(--text); font-weight: 500; }
.ticker-row .up { color: var(--grade-a); }
.ticker-row .down { color: var(--grade-f); }

/* ---------- Grade plate ---------- */
.grade-plate { display: flex; align-items: baseline; gap: 10px; }
.grade-letter {
  font-family: "Plex Mono", monospace; font-weight: 600; font-size: 34px; line-height: 1;
  border-radius: 8px; width: 52px; height: 52px; display: grid; place-items: center;
}
.grade-score { font-family: "Plex Mono", monospace; font-size: 12.5px; color: var(--text-faint); }
.grade-score b { color: var(--text); font-size: 14px; font-weight: 600; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 780px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 24px; }
.step .num { font-family: "Plex Mono", monospace; color: var(--brass); font-size: 13px; margin-bottom: 14px; }
.step h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: 14.3px; margin: 0; }

/* ---------- Grade scale ---------- */
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
@media (max-width: 620px) { .scale { grid-template-columns: repeat(5, 1fr); gap: 6px; } }
.scale-cell { padding: 18px 10px; text-align: center; }
.scale-cell .letter { font-family: "Plex Mono", monospace; font-weight: 600; font-size: 21px; margin-bottom: 4px; }
.scale-cell .range { font-family: "Plex Mono", monospace; font-size: 10.5px; color: var(--text-faint); }
.scale-a .letter, .scale-b .letter { color: var(--grade-a); }
.scale-c .letter { color: var(--grade-c); }
.scale-d .letter { color: var(--grade-d); }
.scale-f .letter { color: var(--grade-f); }
.scale-caveat { margin-top: 18px; font-size: 13.5px; color: var(--text-faint); max-width: 66ch; }

/* ---------- Feature panel (platform deep-dive hero) ---------- */
.feature-panel { padding: 44px; display: grid; grid-template-columns: 1fr 0.85fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .feature-panel { grid-template-columns: 1fr; padding: 30px 24px; gap: 32px; } }
.status-badge { display: inline-flex; align-items: center; gap: 6px; font-family: "Plex Mono", monospace; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; border-radius: 100px; padding: 5px 11px; margin-bottom: 16px; }
.status-badge.devnet { color: var(--grade-c); background: var(--brass-wash); }
.status-badge.live { color: var(--teal); background: var(--teal-wash); }
.status-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.feature-panel h2 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 14px; letter-spacing: -0.015em; }
.feature-panel p.dim { color: var(--text-dim); font-size: 15.5px; margin-bottom: 22px; max-width: 46ch; }
.feature-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.feature-list li { font-size: 14.5px; color: var(--text-dim); display: flex; gap: 10px; align-items: flex-start; }
.feature-list li .check { flex-shrink: 0; margin-top: 2px; }
.feature-list b { color: var(--text); font-weight: 600; }

/* ---------- Platform split (index page) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.split-card { padding: 30px; display: flex; flex-direction: column; }
.split-card .icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 16px; }
.split-card .icon.tg { background: var(--teal-wash); color: var(--teal); }
.split-card .icon.dc { background: var(--brass-wash); color: var(--brass); }
.split-card h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.split-card p.desc { color: var(--text-dim); font-size: 14.5px; margin: 0 0 18px; flex: 1; }
.split-card .mock-slot { margin-bottom: 18px; }
.split-card .goto { font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.split-card .goto.tg { color: var(--teal); }
.split-card .goto.dc { color: var(--brass); }

/* ---------- Command list (Discord page) ---------- */
.cmd-list { display: flex; flex-direction: column; gap: 1px; background: var(--ink-border); border: 1px solid var(--ink-border); border-radius: 14px; overflow: hidden; }
.cmd-row { background: var(--ink-raised); padding: 16px 20px; display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: baseline; }
@media (max-width: 620px) { .cmd-row { grid-template-columns: 1fr; gap: 4px; } }
.cmd-row .cmd { font-family: "Plex Mono", monospace; font-size: 13.5px; color: var(--brass); font-weight: 500; }
.cmd-row .desc { font-size: 13.8px; color: var(--text-dim); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--ink-border); padding: 20px 0; }
.faq-item:first-child { padding-top: 0; }
.faq-item summary { cursor: pointer; font-weight: 600; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { transition: transform 0.2s ease; color: var(--text-faint); flex-shrink: 0; }
.faq-item[open] summary .chev { transform: rotate(45deg); }
.faq-item p { margin: 12px 0 0; color: var(--text-dim); font-size: 14.5px; max-width: 68ch; }

/* ---------- Closer ---------- */
.closer { text-align: center; padding: 88px 0 60px; }
.closer h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 16px; }
.closer p { color: var(--text-dim); max-width: 52ch; margin: 0 auto 30px; }
.closer .hero-ctas { justify-content: center; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--ink-border); padding: 40px 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); margin-bottom: 12px; font-weight: 600; }
.footer-col a { display: block; font-size: 13.8px; color: var(--text-dim); margin-bottom: 9px; }
.footer-col a:hover { color: var(--brass); }
.footer-col p { font-size: 13.5px; color: var(--text-dim); max-width: 34ch; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 24px; border-top: 1px solid var(--ink-border); font-size: 12.5px; color: var(--text-faint); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
