/* HookOS Stack — brand.css · self-contained Atlas v3 "Depth & Glow" foundation.
   Additive theme layer for the control plane. Light only (Atlas Paper). */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --paper: #f4f5f1; --paper-2: #ecece6; --paper-3: #e6e7e0;
  --ink: #0d100c; --ink-2: #3a3f37; --ink-3: #6b7064; --ink-4: #9a9e94;
  --line: #e2e4dd; --line-2: #d4d7cf;
  --acid: #38e07b; --acid-ink: #0c8a42;
  --acid-bg: rgba(56,224,123,0.09); --acid-line: rgba(56,224,123,0.38);
  --gold: #c79212; --gold-bg: rgba(199,146,18,0.1);
  --crimson: #e0414b; --crimson-ink: #b3232c;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --sans: 'Inter', system-ui, sans-serif;
  --shadow: 0 14px 30px -16px rgba(13,16,12,0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--sans); background: var(--paper); color: var(--ink);
  -webkit-font-smoothing: antialiased; line-height: 1.45; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
a { color: var(--acid-ink); text-decoration: none; }

/* ---- card-v3: elevated surface with hairline top highlight ---- */
.card-v3 { position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow); transition: transform 160ms, box-shadow 160ms, border-color 160ms; }
.card-v3::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 1px;
  border-radius: 16px 16px 0 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9), transparent); }
.card-v3.lift:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -16px rgba(13,16,12,0.22);
  border-color: var(--acid-line); }

/* ---- gradient-border feature tile ---- */
.gborder { padding: 1px; border-radius: 17px;
  background: linear-gradient(160deg, var(--acid-line), transparent 60%); }
.gborder-in { background: #fff; border-radius: 16px; height: 100%; }

/* ---- hero band with ambient acid glow ---- */
.hero-v3 { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line);
  border-radius: 18px; padding: 34px 32px; box-shadow: var(--shadow); }
.hero-v3::after { content: ''; position: absolute; top: -120px; right: -80px; width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(56,224,123,0.22), transparent 65%); pointer-events: none; }
.hero-v3-h { font-size: clamp(26px, 4vw, 40px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; }
.hero-v3-grad { background: linear-gradient(90deg, var(--acid-ink), #2fb866); -webkit-background-clip: text;
  background-clip: text; color: transparent; }

/* ---- live pill ---- */
.live-pill { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--acid-ink);
  background: var(--acid-bg); border: 1px solid var(--acid-line); padding: 5px 11px; border-radius: 100px; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--acid);
  box-shadow: 0 0 6px var(--acid); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

/* ---- stat tile ---- */
.stat-v3 { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 15px 17px; }
.stat-v3 .k { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 8px; }
.stat-v3 .v { font-family: var(--mono); font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.stat-v3 .s { font-size: 11px; color: var(--ink-3); margin-top: 4px; }
.stat-v3 .s.g { color: var(--acid-ink); } .stat-v3 .s.r { color: var(--crimson-ink); }

/* ---- buttons ---- */
.btn2 { display: inline-flex; align-items: center; gap: 8px; padding: 10px 17px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; font-family: var(--sans); border: 1px solid var(--line-2);
  color: var(--ink); background: #fff; cursor: pointer; transition: all 130ms; }
.btn2:hover { border-color: var(--ink-3); transform: translateY(-1px); }
.btn2.pri { background: var(--acid-ink); border-color: var(--acid-ink); color: #fff;
  box-shadow: 0 8px 18px -8px rgba(12,138,66,0.55); }
.btn2.pri:hover { filter: brightness(1.05); }

/* ---- chips / status ---- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 100px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; font-weight: 500;
  border: 1px solid var(--line-2); color: var(--ink-2); background: #fff; }
.chip.ok { color: var(--acid-ink); border-color: var(--acid-line); background: var(--acid-bg); }
.chip.warn { color: var(--gold); border-color: rgba(199,146,18,0.35); background: var(--gold-bg); }
.chip.err { color: var(--crimson-ink); border-color: rgba(224,65,75,0.35); background: rgba(224,65,75,0.08); }

/* ---- table ---- */
.dtable { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; width: 100%; }
.dt-head th { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--ink-3); text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--paper); }
.dt-row td { font-size: 13px; padding: 13px 16px; border-top: 1px solid var(--line); }
.dt-row:hover td { background: var(--paper); }
.pos { color: var(--acid-ink); } .neg { color: var(--crimson-ink); }

/* ---- hexagon hook glyph ---- */
.hexmark { width: 34px; height: 34px; display: grid; place-items: center;
  clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  background: linear-gradient(150deg, var(--acid), var(--acid-ink)); color: #052e17;
  font-weight: 800; font-size: 16px; box-shadow: 0 6px 14px -6px rgba(12,138,66,0.55); }

.divider-v3 { height: 1px; border: 0; margin: 26px 0;
  background: linear-gradient(90deg, transparent, var(--acid-line), transparent); }

/* ---- motion ---- */
.fade-up { opacity: 0; transform: translateY(12px); animation: fadeUp 360ms ease forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
.stagger > * { opacity: 0; transform: translateY(12px); animation: fadeUp 360ms ease forwards; }
.stagger > *:nth-child(1){animation-delay:40ms}.stagger > *:nth-child(2){animation-delay:90ms}
.stagger > *:nth-child(3){animation-delay:140ms}.stagger > *:nth-child(4){animation-delay:190ms}
.stagger > *:nth-child(5){animation-delay:240ms}.stagger > *:nth-child(6){animation-delay:290ms}

:focus-visible { outline: 2px solid var(--acid-ink); outline-offset: 2px; border-radius: 4px; }
