/* =========================================================
   Talos — Design System
   Dark-first. Bronze automaton. Signal-green for live states.
   Fonts loaded via Google Fonts in each page head.
   ========================================================= */

:root {
  /* Surface */
  --bg:            #08090C;
  --bg-elev:       #0C0E13;
  --surface-1:     #101218;
  --surface-2:     #171A22;
  --surface-3:     #1F232D;
  --line:          #262A35;
  --line-soft:     #1B1E27;

  /* Text */
  --text-hi:       #F0F1F5;
  --text-mid:      #A6ACBB;
  --text-lo:       #6A7080;
  --text-dim:      #444B5A;

  /* Brand */
  --bronze:        #C9A36A;
  --bronze-hi:     #E7C79B;
  --bronze-lo:     #8B6E42;
  --bronze-glow:   rgba(201, 163, 106, 0.18);

  /* Signal states */
  --signal:        #22E39A;
  --signal-soft:   rgba(34, 227, 154, 0.12);
  --danger:        #FF6B6B;
  --danger-soft:   rgba(255, 107, 107, 0.12);
  --warn:          #F5B94A;
  --info:          #7FB3FF;

  /* Type */
  --font-display:  'Fraunces', 'Times New Roman', serif;
  --font-ui:       'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:     'JetBrains Mono', ui-monospace, Consolas, monospace;

  /* Scale */
  --radius-sm:     6px;
  --radius:        10px;
  --radius-lg:     16px;
  --radius-xl:     24px;

  --shadow-1:      0 1px 2px rgba(0,0,0,.4);
  --shadow-2:      0 8px 24px rgba(0,0,0,.35);
  --shadow-3:      0 24px 60px rgba(0,0,0,.55);

  --max-w:         1180px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text-hi);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
a { color: var(--text-hi); text-decoration: none; }
a:hover { color: var(--bronze-hi); }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; }
input, button, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--bronze); color: #000; }

/* Ambient page background */
body.page {
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(201,163,106,0.06) 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(34,227,154,0.04) 0%, transparent 55%),
    var(--bg);
}

/* =========================================================
   Typography
   ========================================================= */
.h-display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.02;
}
h1.hero { font-size: clamp(48px, 6.8vw, 88px); }
h1 { font-size: 40px; letter-spacing: -0.02em; margin: 0 0 12px; font-family: var(--font-display); font-weight: 400; }
h2 { font-size: 30px; letter-spacing: -0.015em; margin: 0 0 12px; font-family: var(--font-display); font-weight: 400; }
h3 { font-size: 18px; margin: 0 0 8px; font-weight: 600; letter-spacing: -0.005em; }
h4 { font-size: 14px; margin: 0 0 6px; font-weight: 600; color: var(--text-mid); text-transform: uppercase; letter-spacing: .1em; }
p { margin: 0 0 12px; color: var(--text-mid); }
.lead { font-size: 19px; line-height: 1.55; color: var(--text-mid); max-width: 60ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--bronze); font-weight: 500;
}
.eyebrow::before {
  content: ""; width: 24px; height: 1px; background: var(--bronze);
}
.mono { font-family: var(--font-mono); }
.hi { color: var(--text-hi); }
.mid { color: var(--text-mid); }
.lo { color: var(--text-lo); }
.dim { color: var(--text-dim); }
.center { text-align: center; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  font-weight: 500; font-size: 14px; letter-spacing: -0.005em;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .12s ease, background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: var(--bronze); color: #17130A; border-color: var(--bronze);
  box-shadow: 0 6px 20px var(--bronze-glow);
}
.btn.primary:hover { background: var(--bronze-hi); border-color: var(--bronze-hi); color: #17130A; }
.btn.ghost { background: transparent; color: var(--text-hi); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--text-hi); }
.btn.subtle { background: var(--surface-2); color: var(--text-hi); border-color: var(--line); }
.btn.subtle:hover { background: var(--surface-3); }
.btn.danger { background: transparent; color: var(--danger); border-color: rgba(255,107,107,.4); }
.btn.danger:hover { background: var(--danger-soft); }
.btn.link { background: transparent; padding: 4px 0; color: var(--bronze); border: 0; border-radius: 0; }
.btn.link:hover { color: var(--bronze-hi); }
.btn.sm { padding: 8px 14px; font-size: 13px; }
.btn.lg { padding: 15px 26px; font-size: 15px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* =========================================================
   Nav
   ========================================================= */
.nav-shell {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  background: rgba(8, 9, 12, 0.72);
  border-bottom: 1px solid var(--line-soft);
}
.nav {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: var(--text-mid); font-size: 14px; font-weight: 450;
}
.nav-links a:hover { color: var(--text-hi); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.brand-lock {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text-hi);
}
.brand-lock .wordmark {
  font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em;
  font-size: 20px;
}
.brand-lock .wordmark em { font-style: italic; color: var(--bronze); font-weight: 500; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 6px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--bronze) 0%, var(--bronze-lo) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 4px 12px var(--bronze-glow);
}
.brand-mark svg { width: 14px; height: 14px; }

/* =========================================================
   Layout
   ========================================================= */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
section { padding: 96px 0; }
section.tight { padding: 56px 0; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* =========================================================
   Cards / Surfaces
   ========================================================= */
.card {
  background: var(--surface-1);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color .18s ease, transform .18s ease;
}
.card:hover { border-color: var(--line); }
.card.raised { box-shadow: var(--shadow-2); }
.card.glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0)) , var(--surface-1);
}
.stat {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--surface-1); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); padding: 20px;
}
.stat .label { font-size: 12px; color: var(--text-lo); text-transform: uppercase; letter-spacing: .1em; }
.stat .value { font-family: var(--font-display); font-size: 32px; color: var(--text-hi); }
.stat.accent .value { color: var(--bronze); }
.stat.signal .value { color: var(--signal); }

.divider { height: 1px; background: var(--line-soft); border: 0; margin: 32px 0; }

/* =========================================================
   Forms
   ========================================================= */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12px; color: var(--text-lo); text-transform: uppercase; letter-spacing: .08em; font-weight: 500; }
.input, .select {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text-hi);
  padding: 12px 14px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  width: 100%;
}
.input:focus, .select:focus { border-color: var(--bronze); box-shadow: 0 0 0 3px var(--bronze-glow); }
.input::placeholder { color: var(--text-dim); }
.form-msg { font-size: 13px; color: var(--danger); min-height: 18px; margin-top: 4px; }
.form-msg.ok { color: var(--signal); }

/* Auth surface */
.auth-shell {
  min-height: calc(100vh - 72px);
  display: grid; place-items: center;
  padding: 40px 20px;
}
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--surface-1);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-3);
}
.auth-card h1 { font-size: 28px; margin-bottom: 4px; }
.auth-card .sub { color: var(--text-lo); margin-bottom: 28px; font-size: 14px; }
.auth-card .foot { font-size: 13px; color: var(--text-lo); text-align: center; margin-top: 20px; }
.auth-card .foot a { color: var(--bronze); }

/* =========================================================
   Badges + pills
   ========================================================= */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 500;
  letter-spacing: .04em; text-transform: uppercase;
  font-family: var(--font-mono);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text-mid);
}
.pill.live { color: var(--signal); border-color: rgba(34,227,154,.28); background: var(--signal-soft); }
.pill.soon { color: var(--text-lo); }
.pill.bronze { color: var(--bronze); border-color: rgba(201,163,106,.35); background: var(--bronze-glow); }
.pill.danger { color: var(--danger); border-color: rgba(255,107,107,.35); background: var(--danger-soft); }
.pill.dot::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}
.pill.live.dot::before { box-shadow: 0 0 0 4px var(--signal-soft); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: .35; }
}

/* =========================================================
   Landing — hero
   ========================================================= */
.hero {
  padding: 80px 0 40px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero h1 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--bronze-hi), var(--bronze));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero .lead { margin-top: 24px; }
.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-meta {
  display: flex; gap: 24px; margin-top: 40px; flex-wrap: wrap;
  color: var(--text-lo); font-size: 12px;
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em;
}
.hero-meta > div { display: flex; align-items: center; gap: 8px; }
.hero-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 12px var(--signal); }

/* Hero visual: fanout diagram */
.hero-vis {
  position: relative;
  aspect-ratio: 4 / 5;
  background: linear-gradient(180deg, var(--surface-1) 0%, var(--bg-elev) 100%);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
  padding: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-3);
}
.hero-vis::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(400px 200px at 50% 0%, rgba(201,163,106,.14) 0%, transparent 60%),
    radial-gradient(300px 200px at 50% 100%, rgba(34,227,154,.08) 0%, transparent 60%);
  pointer-events: none;
}
.vis-node {
  position: absolute; padding: 12px 14px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 10px; font-family: var(--font-mono);
  font-size: 11px; color: var(--text-mid); letter-spacing: .04em;
  min-width: 150px;
}
.vis-node .t { color: var(--text-lo); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.vis-node .v { color: var(--text-hi); font-size: 13px; margin-top: 4px; }
.vis-node.leader   { top: 24px;   left: 24px; }
.vis-node.server   { top: 44%;    left: 50%; transform: translate(-50%, -50%); border-color: rgba(201,163,106,.4); background: linear-gradient(180deg, var(--surface-2), rgba(201,163,106,0.06)); }
.vis-node.follower { bottom: 24px; right: 24px; }
.vis-line {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  pointer-events: none;
}
.vis-tick {
  position: absolute; bottom: 12px; left: 12px;
  font-family: var(--font-mono); font-size: 10px; color: var(--text-dim);
}

/* Live strip */
.strip {
  background: var(--bg-elev);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 14px 0;
  overflow: hidden;
}
.strip-inner {
  display: flex; gap: 40px; align-items: center;
  animation: marquee 40s linear infinite;
  white-space: nowrap;
}
.strip-item {
  display: inline-flex; gap: 12px; align-items: center;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-lo);
}
.strip-item .k { color: var(--text-dim); }
.strip-item .v { color: var(--text-mid); }
.strip-item .buy { color: var(--signal); }
.strip-item .sell { color: var(--danger); }
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* How steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  background: var(--surface-1); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); padding: 28px; position: relative;
}
.step .n {
  font-family: var(--font-display); font-size: 44px; color: var(--bronze);
  line-height: 1; margin-bottom: 16px; opacity: .85;
}
.step h3 { font-size: 17px; }
.step p { color: var(--text-lo); font-size: 14px; margin: 0; }

/* Product cards */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product {
  background: linear-gradient(180deg, var(--surface-1) 0%, var(--bg-elev) 100%);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); padding: 32px;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 340px;
}
.product .head { display: flex; justify-content: space-between; align-items: center; }
.product h3 { font-family: var(--font-display); font-size: 26px; font-weight: 400; margin: 0; }
.product .price { font-family: var(--font-display); font-size: 40px; color: var(--text-hi); }
.product .price small { font-family: var(--font-ui); font-size: 13px; color: var(--text-lo); font-weight: 400; }
.product ul { list-style: none; padding: 0; margin: 8px 0; color: var(--text-mid); font-size: 14px; }
.product ul li { padding: 6px 0; border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; gap: 8px; }
.product ul li:last-child { border-bottom: 0; }
.product ul li::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--bronze); flex-shrink: 0;
}
.product.dim { opacity: .55; }
.product.dim:hover { opacity: 1; }
.product .cta { margin-top: auto; }

/* Trust row */
.trust {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-top: 24px;
}
.trust .card { padding: 20px; }
.trust h4 { color: var(--bronze); font-family: var(--font-mono); font-size: 10px; }
.trust p { font-family: var(--font-display); font-size: 24px; color: var(--text-hi); margin: 0; }

/* FAQ */
.faq details {
  background: var(--surface-1); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 20px 24px; margin-bottom: 12px;
  cursor: pointer;
}
.faq details[open] { border-color: var(--line); }
.faq summary {
  list-style: none; font-weight: 500; color: var(--text-hi); font-size: 16px;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--font-mono); font-size: 20px; color: var(--bronze);
}
.faq details[open] summary::after { content: "−"; }
.faq p { margin-top: 12px; color: var(--text-mid); }

/* Footer */
footer.site {
  border-top: 1px solid var(--line-soft);
  padding: 48px 0 32px;
  margin-top: 40px;
}
footer.site .row { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
footer.site .col h4 { color: var(--text-lo); font-family: var(--font-mono); font-size: 10px; margin-bottom: 12px; }
footer.site .col a { display: block; color: var(--text-mid); font-size: 13px; padding: 4px 0; }
footer.site .legal {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; color: var(--text-dim); font-size: 12px; flex-wrap: wrap; gap: 12px;
}

/* =========================================================
   Checkout (mock Stripe)
   ========================================================= */
.checkout-shell {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elev) 100%);
}
.checkout-left {
  padding: 60px 8vw;
  background: var(--bg-elev);
  border-right: 1px solid var(--line-soft);
}
.checkout-right {
  padding: 60px 8vw;
}
.checkout-left h2 { font-family: var(--font-display); font-weight: 400; margin-bottom: 4px; font-size: 22px; }
.checkout-left .amount { font-family: var(--font-display); font-size: 48px; color: var(--text-hi); margin: 8px 0 6px; }
.checkout-left .amount small { font-family: var(--font-ui); font-size: 14px; color: var(--text-lo); margin-left: 6px; }
.line-item {
  display: flex; justify-content: space-between; padding: 14px 0;
  border-bottom: 1px solid var(--line-soft); font-size: 14px; color: var(--text-mid);
}
.line-item strong { color: var(--text-hi); font-weight: 500; }
.checkout-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 40px; color: var(--text-mid); font-size: 13px; }
.checkout-form h3 { margin: 24px 0 8px; }
.card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card-input-wrap { position: relative; }
.card-input-wrap .brand-icons {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  display: flex; gap: 6px; opacity: .6;
}
.brand-icons span {
  width: 28px; height: 18px; border-radius: 3px;
  background: var(--surface-3);
  display: grid; place-items: center;
  font-size: 8px; font-weight: 700; color: var(--text-lo); letter-spacing: .05em;
}
.secure-note {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-lo); margin-top: 20px;
}
.secure-note svg { width: 14px; height: 14px; color: var(--text-lo); }

/* =========================================================
   App / Admin shell
   ========================================================= */
.app-shell {
  display: grid; grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.side {
  background: var(--bg-elev);
  border-right: 1px solid var(--line-soft);
  padding: 24px 16px;
  display: flex; flex-direction: column;
}
.side .brand-lock { padding: 4px 8px 24px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a {
  padding: 10px 12px; border-radius: 8px;
  color: var(--text-mid); font-size: 14px; font-weight: 450;
  display: flex; align-items: center; gap: 10px;
}
.side-nav a svg { width: 16px; height: 16px; opacity: .7; }
.side-nav a:hover { background: var(--surface-1); color: var(--text-hi); }
.side-nav a.active { background: var(--surface-2); color: var(--text-hi); }
.side-nav a.active svg { color: var(--bronze); opacity: 1; }
.side-foot { margin-top: auto; padding: 12px; color: var(--text-lo); font-size: 12px; }
.user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; background: var(--surface-1); border-radius: 10px;
  border: 1px solid var(--line-soft); margin-top: 12px;
}
.user-chip .avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--bronze), var(--bronze-lo));
  display: grid; place-items: center; color: #17130A; font-weight: 600;
}
.user-chip .who { font-size: 13px; overflow: hidden; }
.user-chip .who .n { color: var(--text-hi); font-weight: 500; }
.user-chip .who .e { color: var(--text-lo); font-size: 11px; }

.workspace { padding: 40px 48px; overflow-x: auto; }
.ws-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; flex-wrap: wrap; gap: 12px; }
.ws-head h1 { font-family: var(--font-display); font-weight: 400; font-size: 32px; margin: 0; }
.ws-head p { color: var(--text-lo); font-size: 13px; margin: 4px 0 0; }
.ws-section { margin-bottom: 40px; }
.ws-section h2 { font-family: var(--font-display); font-weight: 400; font-size: 22px; margin: 0 0 16px; }
.hidden { display: none !important; }

/* Tables */
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
table thead th {
  text-align: left; padding: 12px 14px; color: var(--text-lo);
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .1em;
  border-bottom: 1px solid var(--line-soft); font-weight: 500;
}
table tbody td {
  padding: 14px; color: var(--text-mid);
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
table tbody tr:hover td { background: var(--surface-1); }
table td.mono { font-family: var(--font-mono); color: var(--text-hi); font-size: 12px; }
table td .pill { font-size: 10px; }

/* Key + code */
.keyline {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px;
  font-family: var(--font-mono); font-size: 13px; color: var(--text-hi);
}
.keyline code { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.keyline .masked { color: var(--text-lo); }

/* Status card */
.status-card {
  background: linear-gradient(180deg, var(--surface-1) 0%, var(--bg-elev) 100%);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex; align-items: center; gap: 20px;
}
.status-orb {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line);
}
.status-orb .pulse {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--text-dim);
}
.status-card.live .status-orb { background: var(--signal-soft); border-color: rgba(34,227,154,.35); }
.status-card.live .pulse { background: var(--signal); box-shadow: 0 0 0 4px var(--signal-soft); animation: pulse 1.4s ease-in-out infinite; }
.status-card.off .status-orb { background: var(--danger-soft); border-color: rgba(255,107,107,.3); }
.status-card.off .pulse { background: var(--danger); }
.status-card .status-body { flex: 1; }
.status-card h3 { margin: 0; font-size: 18px; }
.status-card p { margin: 4px 0 0; color: var(--text-lo); font-size: 13px; }

/* Empty state */
.empty {
  padding: 60px 20px; text-align: center; color: var(--text-lo);
  border: 1px dashed var(--line); border-radius: var(--radius-lg);
}
.empty h3 { color: var(--text-hi); font-family: var(--font-display); font-weight: 400; }

/* Toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--surface-2); border: 1px solid var(--line);
  padding: 12px 18px; border-radius: 10px; color: var(--text-hi);
  box-shadow: var(--shadow-3);
  z-index: 200;
  animation: rise .25s ease;
}
@keyframes rise { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translateX(-50%); } }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .hero-grid, .grid-2, .grid-3, .grid-4, .steps, .products, .trust {
    grid-template-columns: 1fr;
  }
  .checkout-shell { grid-template-columns: 1fr; }
  .checkout-left { border-right: 0; border-bottom: 1px solid var(--line-soft); padding: 40px 20px; }
  .checkout-right { padding: 40px 20px; }
  section { padding: 64px 0; }
  .app-shell { grid-template-columns: 1fr; }
  .side { flex-direction: row; overflow-x: auto; padding: 12px; gap: 12px; align-items: center; }
  .side .brand-lock { padding: 0 12px 0 0; border-right: 1px solid var(--line-soft); }
  .side-nav { flex-direction: row; }
  .side-foot { display: none; }
  .workspace { padding: 24px 20px; }
}

/* Nav on small screens.
   The base nav is a single nowrap flex row: brand + links + CTA needs ~630px, so
   below that the CTA was being pushed clean off the right edge. Wrap the section
   links onto their own row and keep the CTA on the top row with the brand. */
@media (max-width: 820px) {
  .nav {
    flex-wrap: wrap;
    padding: 12px 16px;
    row-gap: 0;
  }
  .brand-lock { order: 1; }
  .nav-cta { order: 2; margin-left: auto; }
  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 20px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--line-soft);
    /* many links on a narrow phone: scroll rather than squash or wrap */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { font-size: 13px; white-space: nowrap; }
}

@media (max-width: 380px) {
  .nav { padding: 10px 14px; }
  .brand-lock .wordmark { font-size: 17px; }
  .brand-mark { width: 22px; height: 22px; }
  .nav-cta { gap: 8px; }
  .nav-cta .btn { padding: 7px 12px; font-size: 12px; }
}

/* copy-to-clipboard row (chrome:// URLs can't be hyperlinked) */
.copy-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 8px 8px 12px;
}
.copy-row code {
  flex: 1;
  font-size: 13px;
  color: var(--text-hi);
  overflow-x: auto;
  white-space: nowrap;
}
.copy-row .btn { flex-shrink: 0; }
