/* 5th Amendment for LLMs — landing page styles */

:root {
  --clr-bg: #0b0d17;
  --clr-surface: #141726;
  --clr-card: #1a1f35;
  --clr-text: #e8eaf6;
  --clr-muted: #a0a4b8;
  --clr-accent: #7c9aff;
  --clr-accent-glow: rgba(124, 154, 255, 0.25);
  --clr-gold: #f0c040;
  --clr-invoke: #ff6b6b;
  --clr-proceed: #51cf66;
  --clr-code: #c8d4f8;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", "SF Mono", monospace;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 8px 12px;
  background: var(--clr-accent);
  color: #0d0f1a;
  z-index: 1000;
  border-radius: 6px;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(11,13,23,0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.site-nav__brand {
  font-weight: 700;
  color: var(--clr-text);
  text-decoration: none;
}
.site-nav__links {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
}
.site-nav__links a {
  color: var(--clr-muted);
  text-decoration: none;
}
.site-nav__links a:hover { color: var(--clr-text); }

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

/* ── Global link reset ────────────────────────────────────────── */
a {
  color: var(--clr-accent);
  text-decoration: none;
  border-radius: 3px;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
:focus-visible {
  outline: 2px solid var(--clr-accent);
  outline-offset: 2px;
}

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, var(--clr-accent-glow), transparent 70%),
    var(--clr-bg);
  padding: 120px 24px 100px;
  text-align: center;
}
.hero-inner { max-width: 760px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
}
.badge { font-size: 0.8em; vertical-align: middle; }
.tagline {
  font-size: 1.15rem;
  color: var(--clr-muted);
  max-width: 580px;
  margin: 0 auto 32px;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.hero-endpoint-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-endpoint {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--clr-code);
  background: var(--clr-surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 6px 14px;
}
.copy-btn {
  background: var(--clr-surface);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--clr-muted);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
}
.copy-btn:hover { color: var(--clr-text); }

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary {
  background: var(--clr-accent);
  color: #0d0f1a;
  box-shadow: 0 4px 16px var(--clr-accent-glow);
}
.btn-secondary {
  background: transparent;
  color: var(--clr-text);
  border: 1px solid rgba(255,255,255,0.2);
}

/* ── Sections ─────────────────────────────────────────────────── */
.section {
  max-width: 900px;
  margin: 0 auto;
  padding: 72px 24px;
}
.section-alt { background: var(--clr-surface); }
.section h2 { font-size: 1.8rem; margin-bottom: 28px; letter-spacing: -0.02em; }
.section-sub { color: var(--clr-muted); margin-bottom: 24px; }
.section h3 { font-size: 1.15rem; margin: 28px 0 12px; }

/* ── Grid / Cards ─────────────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: var(--clr-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 24px;
}
.card h3 { margin: 0 0 10px; font-size: 1.05rem; color: var(--clr-text); }
.card p { color: var(--clr-muted); font-size: 0.95rem; line-height: 1.6; }
.card a { color: var(--clr-accent); }
.card code { color: var(--clr-code); }

/* ── Steps (numbered) ─────────────────────────────────────────── */
.steps {
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  margin-bottom: 24px;
  font-size: 1rem;
  list-style: none;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 2px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--clr-accent);
  color: #0d0f1a;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}

/* Nested list inside steps — clean custom markers, no default discs */
.verdict-list {
  margin-top: 8px;
  padding: 0;
  list-style: none;
}
.verdict-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 4px;
}
.verdict-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--clr-accent);
  font-size: 0.9em;
  line-height: inherit;
}
.verdict-list code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--clr-code);
}
.verdict-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 6px;
}
.verdict-pill--proceed {
  background: rgba(81,207,102,0.15);
  color: var(--clr-proceed);
  border: 1px solid rgba(81,207,102,0.3);
}
.verdict-pill--invoke {
  background: rgba(255,107,107,0.15);
  color: var(--clr-invoke);
  border: 1px solid rgba(255,107,107,0.3);
}

/* Responsive table */
.table-wrap { overflow-x: auto; }
table { min-width: 520px; }

/* Try widget */
.try-widget {
  background: var(--clr-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 18px;
  margin-top: 12px;
}
.try-widget label {
  display: block;
  font-size: 0.9rem;
  color: var(--clr-muted);
  margin-bottom: 10px;
}
.try-widget .opt { color: var(--clr-muted); font-size: 0.8rem; }
.try-widget input, .try-widget textarea {
  width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.12);
  background: #0d1020;
  color: var(--clr-text);
  font-family: var(--font-body);
}
.try-widget textarea { resize: vertical; }
.try-widget button { margin-top: 10px; }
.try-status { margin-top: 10px; font-size: 0.9rem; color: var(--clr-muted); }
.try-output {
  margin-top: 12px;
  white-space: pre-wrap;
  background: #0d1020;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* Syntax highlight minimal */
pre code .k { color: #7c9aff; }
pre code .s { color: #51cf66; }
pre code .n { color: var(--clr-code); }

/* Hero accent */
.hero {
  background:
    radial-gradient(ellipse 80% 100% at 50% 0%, var(--clr-accent-glow), transparent 70%),
    radial-gradient(ellipse 60% 60% at 80% 20%, rgba(240,192,64,0.08), transparent 60%),
    var(--clr-bg);
}

/* Status badge */
.status-badge {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(81,207,102,0.15);
  color: var(--clr-proceed);
  border: 1px solid rgba(81,207,102,0.3);
  margin-left: 8px;
}

/* ── Table ────────────────────────────────────────────────────── */
table { width: 100%; border-collapse: collapse; margin: 12px 0 24px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,0.08); }
th {
  color: var(--clr-muted);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
td code { color: var(--clr-code); }

/* ── Code blocks ──────────────────────────────────────────────── */
code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--clr-code);
  background: rgba(255,255,255,0.06);
  padding: 2px 5px;
  border-radius: 4px;
}
pre {
  background: #0d1020;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 18px 20px;
  overflow-x: auto;
  margin: 12px 0 24px;
}
pre code {
  background: none;
  padding: 0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--clr-code);
}

/* ── Footer ───────────────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 32px 24px;
  color: var(--clr-muted);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
footer a {
  color: var(--clr-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
footer a:hover {
  text-decoration: none;
  border-bottom-color: var(--clr-accent);
}
