:root {
  color-scheme: light;
  --canvas: #eef4ef;
  --surface: #f8fbf6;
  --ink: #16201b;
  --muted: #425049;
  --green: #1e6f54;
  --coral: #e1543f;
  --gold: #d9a429;
  --blue: #315eaf;
  --line: rgba(22, 32, 27, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 86% 8%, rgba(225, 84, 63, 0.16), rgba(225, 84, 63, 0) 28rem),
    radial-gradient(circle at 8% 72%, rgba(30, 111, 84, 0.16), rgba(30, 111, 84, 0) 32rem),
    var(--canvas);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(22, 32, 27, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 32, 27, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
}

a {
  color: inherit;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px clamp(20px, 5vw, 72px);
  border-bottom: 2px solid var(--ink);
  background: rgba(248, 251, 246, 0.86);
  backdrop-filter: blur(18px);
}

.topbar h1 {
  margin: 2px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

nav a,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 2px solid var(--ink);
  padding: 10px 16px;
  background: var(--surface);
  box-shadow: 5px 5px 0 rgba(22, 32, 27, 0.12);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary,
nav a:hover {
  background: var(--ink);
  color: var(--surface);
}

main {
  display: grid;
  gap: 48px;
  padding: 48px clamp(20px, 5vw, 72px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  min-height: 68vh;
}

.hero h2,
.section-heading h2,
.card-header h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 0.98;
}

.hero h2 {
  max-width: 920px;
  font-size: clamp(64px, 9vw, 132px);
}

.hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(20px, 2.5vw, 30px);
  line-height: 1.32;
}

.eyebrow,
label {
  margin: 0;
  color: var(--green);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.proof-panel {
  display: grid;
  gap: 18px;
}

.proof-panel div,
.band,
.input-panel,
.output-panel,
.proof-grid article {
  border: 2px solid var(--ink);
  background: rgba(248, 251, 246, 0.9);
  box-shadow: 16px 16px 0 rgba(30, 111, 84, 0.13);
}

.proof-panel div {
  padding: 24px;
}

.proof-panel strong {
  display: block;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 64px;
  line-height: 0.9;
}

.proof-panel span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

.band {
  display: grid;
  gap: 24px;
  padding: clamp(22px, 4vw, 44px);
}

.section-heading {
  display: grid;
  gap: 10px;
}

.section-heading h2 {
  max-width: 900px;
  font-size: clamp(36px, 5vw, 72px);
}

.section-heading.compact h2 {
  font-size: clamp(30px, 4vw, 48px);
}

video {
  display: block;
  width: 100%;
  border: 2px solid var(--ink);
  background: #111;
}

.demo-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(360px, 1.12fr);
  gap: 28px;
  align-items: start;
}

.input-panel,
.output-panel {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 32px);
}

select,
textarea {
  width: 100%;
  border: 2px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

select {
  min-height: 46px;
  padding: 8px 12px;
  font-weight: 700;
}

textarea {
  min-height: 380px;
  padding: 16px;
  font-family: "Cascadia Mono", Consolas, monospace;
  line-height: 1.45;
  resize: vertical;
}

.card-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.card-header h2 {
  font-size: clamp(30px, 4vw, 50px);
}

.pill {
  align-self: start;
  border: 2px solid var(--ink);
  padding: 8px 14px;
  background: #dff0e7;
  color: var(--green);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-weight: 900;
}

.pill.reference,
.pill.rejected {
  background: #ffe0d7;
  color: #9d3525;
}

.pill.candidate,
.pill.watchlist {
  background: #fff0c6;
  color: #75530b;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.facts div {
  border: 2px solid var(--line);
  padding: 14px;
  background: white;
}

.facts span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.facts strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

h3 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
}

ul,
ol {
  margin: 0;
  padding-left: 22px;
}

li {
  margin: 8px 0;
  color: var(--muted);
  line-height: 1.35;
}

.evidence-box {
  border-top: 2px solid var(--ink);
  padding-top: 18px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.proof-grid article {
  padding: 24px;
}

.proof-grid p {
  color: var(--muted);
  line-height: 1.45;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(20px, 5vw, 72px);
  border-top: 2px solid var(--ink);
  color: var(--muted);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-weight: 800;
}

@media (max-width: 980px) {
  .topbar,
  .hero,
  .demo-grid,
  .split,
  .proof-grid,
  footer {
    grid-template-columns: 1fr;
  }

  .topbar,
  footer {
    display: grid;
  }

  .facts {
    grid-template-columns: 1fr;
  }
}
