/* ============================================================
   Steriod marketing site — shared design system.
   Palette and type ported from steriod-docs/build-docs.py so the
   website and the documentation share one look and feel.
   ============================================================ */

:root {
  --bg: #0b0e14;
  --panel: #151a22;
  --panel-elev: #12161c;
  --input: #1a2030;
  --border: #232a35;
  --border-bright: #2e3745;
  --text: #d0d5de;
  --text-2: #9aa7bc;
  --muted: #6b7484;
  --green: #76c757;
  --green-deep: #3e7a27;
  --green-pale: rgba(118, 199, 87, .12);
  --cyan: #4fb3bf;
  --cyan-pale: rgba(79, 179, 191, .12);
  --yellow: #f5c518;
  --yellow-pale: rgba(245, 197, 24, .12);
  --magenta: #e81d62;
  --magenta-pale: rgba(232, 29, 98, .12);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 2px;
}

::selection { background: var(--green-deep); color: #fff; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---- top navigation ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 22, 28, .92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 58px; gap: 16px;
}
.nav-logo img { height: 26px; display: block; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  display: block; color: var(--text-2); font-size: 12px;
  padding: 6px 10px; border-radius: 4px;
}
.nav-links a:hover { color: var(--text); background: var(--input); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--green); background: var(--green-pale); }
.nav-cta {
  color: var(--bg) !important; background: var(--green) !important;
  font-weight: 700; margin-left: 8px;
}
.nav-cta:hover { background: #8ad46b !important; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--border);
  color: var(--text-2); font-family: var(--mono); font-size: 12px;
  padding: 6px 10px; border-radius: 4px; cursor: pointer;
}

/* ---- shared section chrome ---- */
.section { padding: 72px 0; border-top: 1px solid var(--border); }
.section.elev { background: var(--panel-elev); }

.eyebrow {
  color: var(--green); font-size: 10px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; margin-bottom: 10px;
}
.eyebrow.cyan { color: var(--cyan); }
.eyebrow.yellow { color: var(--yellow); }

h1, h2, h3, h4 { font-weight: 700; letter-spacing: .02em; }

.section > .wrap > h2, .section-title {
  font-size: 24px; line-height: 1.3; margin-bottom: 12px; max-width: 720px;
}
.section-lede { color: var(--text-2); max-width: 680px; margin-bottom: 36px; }

.accent { color: var(--green); }
.accent-cyan { color: var(--cyan); }

/* ---- hero ---- */
.hero { padding: 84px 0 72px; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
  gap: 48px; align-items: center;
}
.hero h1 { font-size: 34px; line-height: 1.25; margin-bottom: 18px; }
.hero-lede { color: var(--text-2); font-size: 15px; margin-bottom: 28px; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }

.hero-points { list-style: none; display: grid; gap: 8px; }
.hero-points li { color: var(--text-2); font-size: 12.5px; padding-left: 18px; position: relative; }
.hero-points li::before { content: "▸"; color: var(--green); position: absolute; left: 0; }

/* ---- buttons ---- */
.btn {
  display: inline-block; font-family: var(--mono); font-size: 13px; font-weight: 700;
  padding: 10px 20px; border-radius: 5px; border: 1px solid transparent;
  background: var(--green); color: var(--bg); cursor: pointer;
}
.btn:hover { background: #8ad46b; text-decoration: none; }
.btn.ghost { background: none; border-color: var(--border-bright); color: var(--text-2); }
.btn.ghost:hover { color: var(--text); border-color: var(--muted); background: var(--input); }
.btn.cyan { background: var(--cyan); }
.btn.cyan:hover { background: #6cc5d0; }

/* ---- terminal frame (hero + code samples) ---- */
.term {
  background: var(--panel-elev); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .45);
}
.term-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-bottom: 1px solid var(--border); background: var(--panel);
}
.term-bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.r { background: var(--magenta); }
.dot.y { background: var(--yellow); }
.dot.g { background: var(--green); }
.term-bar .file { margin-left: 8px; color: var(--muted); font-size: 11px; }
.term pre {
  padding: 16px 18px; font-size: 12.5px; line-height: 1.7;
  overflow-x: auto; font-family: var(--mono);
}

/* code tokens — same hues the docs use */
.tok-kw  { color: var(--cyan); }
.tok-str { color: var(--green); }
.tok-num { color: var(--yellow); }
.tok-op  { color: var(--magenta); }
.tok-id  { color: var(--text); }
.tok-com { color: var(--muted); font-style: italic; }

/* ---- verdict strip: the signature motif — a rule-evaluation timeline ---- */
.verdict {
  border-top: 1px solid var(--border); background: var(--panel);
  padding: 12px 18px;
}
.verdict-label {
  color: var(--muted); font-size: 10px; text-transform: uppercase;
  letter-spacing: .12em; margin-bottom: 8px;
  display: flex; justify-content: space-between; gap: 8px;
}
.verdict-label .ok { color: var(--green); }
.strip { display: flex; gap: 3px; }
.strip span {
  flex: 1; height: 14px; border-radius: 2px; background: var(--green-deep);
  opacity: 0; animation: tick .4s ease-out forwards;
}
.strip span.pass { background: var(--green); }
.strip span.fail { background: var(--magenta); }
.strip span.idle { background: var(--input); }
.strip span:nth-child(1)  { animation-delay: .10s; }
.strip span:nth-child(2)  { animation-delay: .20s; }
.strip span:nth-child(3)  { animation-delay: .30s; }
.strip span:nth-child(4)  { animation-delay: .40s; }
.strip span:nth-child(5)  { animation-delay: .50s; }
.strip span:nth-child(6)  { animation-delay: .60s; }
.strip span:nth-child(7)  { animation-delay: .70s; }
.strip span:nth-child(8)  { animation-delay: .80s; }
.strip span:nth-child(9)  { animation-delay: .90s; }
.strip span:nth-child(10) { animation-delay: 1.00s; }
.strip span:nth-child(11) { animation-delay: 1.10s; }
.strip span:nth-child(12) { animation-delay: 1.20s; }
.strip span:nth-child(13) { animation-delay: 1.30s; }
.strip span:nth-child(14) { animation-delay: 1.40s; }
.strip span:nth-child(15) { animation-delay: 1.50s; }
.strip span:nth-child(16) { animation-delay: 1.60s; }
@keyframes tick { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .strip span { animation: none; opacity: 1; }
}

/* ---- cards ---- */
.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 6px; padding: 20px;
}
.card:hover { border-color: var(--border-bright); }
.card h3 { font-size: 14px; margin-bottom: 8px; }
.card h3 a { color: var(--text); }
.card p { color: var(--text-2); font-size: 12.5px; }
.card p + p { margin-top: 8px; }
.card .more { display: inline-block; margin-top: 12px; font-size: 12px; }

.card.feature { border-left: 3px solid var(--green); }
.card.feature.cyan { border-left-color: var(--cyan); }
.card.feature.yellow { border-left-color: var(--yellow); }

/* ---- status badges: the roadmap's truth marks, made visible ---- */
.badge {
  display: inline-block; font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 3px; margin-bottom: 10px;
}
.badge.now { color: var(--green); background: var(--green-pale); border: 1px solid var(--green-deep); }
.badge.next { color: var(--yellow); background: var(--yellow-pale); border: 1px solid rgba(245, 197, 24, .35); }
.badge.later { color: var(--muted); background: var(--input); border: 1px solid var(--border); }

/* ---- pipeline (how it works) ---- */
.pipeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.step {
  background: var(--panel); border: 1px solid var(--border); border-radius: 6px;
  padding: 16px; position: relative;
}
.step .n { color: var(--green); font-size: 11px; font-weight: 700; margin-bottom: 6px; }
.step h3 { font-size: 13px; margin-bottom: 6px; }
.step p { color: var(--text-2); font-size: 11.5px; }
.step::after {
  content: "→"; position: absolute; right: -13px; top: 50%;
  transform: translateY(-50%); color: var(--muted); font-size: 12px; z-index: 1;
}
.step:last-child::after { content: none; }

/* ---- docs-style tables ---- */
.tablewrap {
  overflow-x: auto; background: var(--panel);
  border: 1px solid var(--border); border-radius: 6px; margin: 24px 0;
}
table { width: 100%; border-collapse: collapse; }
th, td { padding: 9px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; font-size: 12.5px; }
th {
  color: var(--text-2); font-size: 10px; text-transform: uppercase;
  letter-spacing: .08em; font-weight: 700; background: var(--panel-elev); white-space: nowrap;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--input); }
td { color: var(--text-2); }
td code, p code, li code {
  background: var(--input); border: 1px solid var(--border); border-radius: 3px;
  padding: 0 5px; font-size: 11.5px; color: var(--cyan); font-family: var(--mono);
}
td strong { color: var(--text); }

/* ---- screenshot frame ---- */
.shot { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; display: block; }
.shot img { width: 100%; height: auto; display: block; }
.shot:hover { border-color: var(--border-bright); }

/* ---- prose pages (blog article, long-form sections) ---- */
.prose { max-width: 760px; }
.prose h1 { font-size: 24px; line-height: 1.3; padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.prose h2 {
  font-size: 16px; margin: 34px 0 12px; padding: 8px 12px;
  background: var(--panel-elev); border: 1px solid var(--border);
  border-left: 3px solid var(--green); border-radius: 4px;
}
.prose h3 { font-size: 14px; color: var(--green); margin: 24px 0 8px; }
.prose p { color: var(--text-2); margin-bottom: 13px; }
.prose ul, .prose ol { margin: 0 0 14px 22px; color: var(--text-2); }
.prose li { margin-bottom: 5px; }
.prose strong { color: var(--text); }
.prose blockquote {
  border-left: 3px solid var(--cyan); background: var(--cyan-pale);
  padding: 10px 14px; margin-bottom: 14px; border-radius: 0 4px 4px 0;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose pre {
  background: var(--panel-elev); border: 1px solid var(--border); border-radius: 6px;
  padding: 14px 16px; margin-bottom: 16px; overflow-x: auto; font-size: 12px; line-height: 1.7;
}
.prose hr { border: none; border-top: 1px solid var(--border); margin: 26px 0; }

.meta-line { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 26px; }

/* ---- blog index ---- */
.post-card { display: block; color: inherit; }
.post-card:hover { text-decoration: none; }
.post-card h3 { color: var(--text); }
.post-card:hover h3 { color: var(--green); }
.post-date { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }

/* ---- CTA band ---- */
.cta-band {
  background: var(--panel); border: 1px solid var(--border);
  border-top: 3px solid var(--green); border-radius: 8px;
  padding: 32px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.cta-band h2 { font-size: 19px; max-width: 560px; }
.cta-band p { color: var(--text-2); font-size: 12.5px; margin-top: 6px; }

/* ---- footer ---- */
.footer { border-top: 1px solid var(--border); background: var(--panel-elev); padding: 36px 0; margin-top: 72px; }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.footer-logo img { height: 22px; display: block; margin-bottom: 10px; }
.footer p { color: var(--muted); font-size: 11.5px; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links div { display: grid; gap: 5px; }
.footer-links .head { color: var(--text-2); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }
.footer-links a { color: var(--muted); font-size: 12px; }
.footer-links a:hover { color: var(--text); }

/* ---- 404 ---- */
.lost { min-height: 70vh; display: flex; align-items: center; }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step::after { content: none; }
  .grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 58px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--panel-elev); border-bottom: 1px solid var(--border);
    padding: 10px 16px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-cta { margin-left: 0; text-align: center; }
  .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: 26px; }
  .section { padding: 52px 0; }
}
