:root {
  --bg: #0a0a0a;
  --panel: #121212;
  --panel-2: #181818;
  --ink: #f4f0e8;
  --muted: #aaa69e;
  --line: #3a3936;
  --warning: #ff443d;
  --warning-dark: #2a0c0b;
  --focus: #fff3a6;
  --max: 1180px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    var(--bg);
  background-size: 100% 4px;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  line-height: 1.6;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
  z-index: 20;
}
a { color: var(--ink); text-underline-offset: .2em; }
a:hover { color: var(--warning); }
button, input, select, textarea { font: inherit; }
button, input, select, textarea, a { outline-offset: 4px; }
:focus-visible { outline: 3px solid var(--focus); }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -6rem;
  z-index: 100;
  background: var(--focus);
  color: #000;
  padding: .8rem 1rem;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(10,10,10,.94);
  backdrop-filter: blur(12px);
}
.header-inner {
  max-width: var(--max);
  margin: auto;
  padding: .9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { font-weight: 900; letter-spacing: -.04em; text-decoration: none; }
.brand span { color: var(--warning); }
nav { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: flex-end; }
nav a { font-size: .82rem; text-decoration: none; text-transform: uppercase; letter-spacing: .04em; }

main { overflow: clip; }
.section, .hero { max-width: var(--max); margin: auto; padding: 6rem 1.25rem; }
.hero { padding-top: 7.5rem; padding-bottom: 5rem; }
.eyebrow { margin: 0 0 1rem; color: var(--warning); font-weight: 900; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 {
  max-width: 1000px;
  margin: 0;
  font-size: clamp(3.5rem, 10.5vw, 9.5rem);
  line-height: .82;
  letter-spacing: -.085em;
  text-transform: uppercase;
}
.hero h1 em { color: var(--warning); font-style: normal; }
.lede { max-width: 830px; margin: 2.2rem 0 0; font-size: clamp(1.1rem, 2vw, 1.45rem); }
.status-row { margin-top: 2rem; display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem .7rem;
  border: 1px solid var(--warning);
  background: var(--warning-dark);
  color: #ff938e;
  font-weight: 900;
  font-size: .78rem;
  letter-spacing: .06em;
}
.badge::before { content: "●"; color: var(--warning); }
.status-note { color: var(--muted); font-size: .82rem; }

.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.section-heading { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; margin-bottom: 2.5rem; }
.section-heading h2 { margin: 0; font-size: clamp(2.2rem, 5vw, 4.8rem); line-height: .95; letter-spacing: -.055em; text-transform: uppercase; }
.section-heading p { margin: 0; max-width: 700px; color: var(--muted); font-size: 1.05rem; }

.benchmark-shell { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); border: 1px solid var(--line); background: var(--panel); }
.benchmark-form, .output-panel { padding: clamp(1.2rem, 3vw, 2.25rem); }
.output-panel { border-left: 1px solid var(--line); background: var(--panel-2); }
.field { display: grid; gap: .55rem; margin-bottom: 1.25rem; }
.field label, .field legend { font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.field small { color: var(--muted); }
textarea, select {
  width: 100%;
  border: 1px solid #5a5853;
  border-radius: 0;
  background: #090909;
  color: var(--ink);
  padding: .9rem;
}
textarea { min-height: 135px; resize: vertical; font-size: 1.05rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.5rem; }
.button {
  min-height: 46px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #070707;
  padding: .8rem 1rem;
  font-weight: 900;
  cursor: pointer;
  text-transform: uppercase;
}
.button:hover { background: var(--warning); border-color: var(--warning); }
.button-secondary { background: transparent; color: var(--ink); }
.button-danger { background: transparent; border-color: var(--warning); color: #ff827d; }
.button:disabled { opacity: .4; cursor: not-allowed; }
.output-panel h3 { font-size: 1.75rem; line-height: 1.1; margin: .25rem 0 1rem; }
.output-panel h4 { margin-top: 2rem; color: #ff9f9b; text-transform: uppercase; }
.output-idle { color: var(--muted); }
.safety-box { margin-top: 1.5rem; border-top: 1px solid var(--line); padding-top: 1.2rem; font-size: .86rem; color: var(--muted); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--panel); padding: 1.6rem; }
.card .number { color: var(--warning); font-weight: 900; }
.card h3 { font-size: 1.25rem; line-height: 1.15; }
.card p { color: var(--muted); }

.statement { font-size: clamp(1.8rem, 4vw, 3.8rem); line-height: 1.08; letter-spacing: -.04em; max-width: 1000px; }
.statement strong { color: var(--warning); }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.prose h3 { font-size: 1.5rem; }
.prose p, .prose li { color: var(--muted); }
.prose li + li { margin-top: .7rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 800px; }
th, td { text-align: left; padding: .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--panel-2); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
td { font-size: .82rem; color: var(--muted); }
.empty-state { text-align: center; padding: 2.5rem; }
.log-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.log-toolbar p { margin: 0; color: var(--muted); }

.faq details { border-top: 1px solid var(--line); padding: 1.2rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-size: 1.1rem; font-weight: 900; }
.faq details p { max-width: 820px; color: var(--muted); }

.callout { border: 1px solid var(--warning); background: var(--warning-dark); padding: 1.4rem; }
.callout strong { color: #ff9b96; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { max-width: var(--max); margin: auto; padding: 2rem 1.25rem 4rem; display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; color: var(--muted); font-size: .8rem; }
.footer-inner p { max-width: 700px; }

.toast { position: fixed; right: 1rem; bottom: 1rem; z-index: 50; max-width: 360px; border: 1px solid var(--focus); background: #111; color: var(--ink); padding: .9rem 1rem; box-shadow: 0 10px 50px #000; }

.article-header { max-width: 900px; margin: auto; padding: 7rem 1.25rem 3rem; }
.article-header h1 { font-size: clamp(3rem, 8vw, 7rem); line-height: .9; letter-spacing: -.07em; text-transform: uppercase; margin: 0; }
.article-meta { color: var(--muted); margin-top: 1.5rem; }
.article-body { max-width: 780px; margin: auto; padding: 2rem 1.25rem 7rem; font-family: ui-serif, Georgia, serif; font-size: 1.12rem; }
.article-body h2 { font-family: ui-monospace, monospace; font-size: 2rem; line-height: 1.1; margin-top: 3rem; }
.article-body blockquote { border-left: 4px solid var(--warning); margin: 2rem 0; padding: .5rem 1.5rem; color: #d9d3c9; }

@media (max-width: 860px) {
  .benchmark-shell, .section-heading, .two-column { grid-template-columns: 1fr; }
  .output-panel { border-left: 0; border-top: 1px solid var(--line); }
  .grid-3 { grid-template-columns: 1fr; }
  .header-inner { align-items: flex-start; }
  nav { display: none; }
}
@media (max-width: 620px) {
  .section, .hero { padding-top: 4rem; padding-bottom: 4rem; }
  .hero { padding-top: 5rem; }
  .form-grid { grid-template-columns: 1fr; }
  .actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
