/* ============================================================
   QSieve website v1 · 2026-07-11
   Concept: a cryptographic survey report on instrument-grade
   paper; the appliance console is the one dark object on it.
   ============================================================ */

:root {
  /* paper & ink */
  --paper: #F2F4F1;
  --panel: #FBFCFA;
  --ink: #16201B;
  --muted: #57635C;
  --line: #D5DCD4;

  /* brand */
  --indigo: #3B30CE;
  --indigo-deep: #2C23A4;

  /* quantum-status taxonomy (the product's own semantics) */
  --vuln: #A93226;
  --warn: #8F6208;
  --safe: #1B7A48;
  --broken: #8C1F2F;

  /* console (dark object) */
  --console: #111815;
  --console-edge: #2A362F;
  --console-text: #DEE6DF;

  /* type */
  --display: "Archivo", "Arial Narrow", sans-serif;
  --body: "Newsreader", Georgia, serif;
  --mono: "Spline Sans Mono", "Consolas", monospace;

  --maxw: 1120px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: rgba(22, 32, 27, 0.06);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.08em 0.35em;
}

/* ---------- shared type roles ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 1.1rem;
}
.eyebrow.center { text-align: center; }

h1, h2 {
  font-family: var(--display);
  font-variation-settings: "wdth" 118;
  font-weight: 740;
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 1rem; }
.h2-small { font-size: clamp(1.5rem, 2.6vw, 2rem); }

h3 {
  font-family: var(--display);
  font-variation-settings: "wdth" 108;
  font-weight: 640;
  font-size: 1.14rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.center { text-align: center; }

.section-lede {
  max-width: 40rem;
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 2.75rem;
}

.mono-note {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  color: var(--muted);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--display);
  font-variation-settings: "wdth" 110;
  font-weight: 620;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.78rem 1.5rem;
  border-radius: 6px;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}
.btn-small { padding: 0.5rem 1.05rem; font-size: 0.85rem; }
.btn-solid {
  background: var(--indigo);
  color: #fff;
  border: 1px solid var(--indigo);
}
.btn-solid:hover { background: var(--indigo-deep); border-color: var(--indigo-deep); }
.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--ink);
  background: transparent;
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.center-row { justify-content: center; }

/* ---------- topbar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 2.2rem;
  padding: 0.85rem clamp(1.2rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-family: var(--display);
  font-variation-settings: "wdth" 125;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark span { color: var(--indigo); }
.wordmark.small { font-size: 0.95rem; }

.topbar nav {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
}
.topbar nav a {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--muted);
}
.topbar nav a:hover { color: var(--ink); }

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vh, 6.5rem) clamp(1.2rem, 4vw, 3rem) clamp(3rem, 7vh, 5.5rem);
}

.lede {
  margin-top: 1.4rem;
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 34rem;
}

.hero-note {
  margin-top: 1.1rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ---------- signature: the appliance console ---------- */

.scan-panel {
  background: var(--console);
  border: 1px solid var(--console-edge);
  border-radius: 10px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 24px 48px -24px rgba(22, 32, 27, 0.45);
  overflow: hidden;
}

.scan-chrome {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--console-edge);
}
.scan-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--safe);
  box-shadow: 0 0 6px color-mix(in srgb, var(--safe) 70%, transparent);
}
.scan-title {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: #93A398;
}
.scan-live {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #93A398;
  border: 1px solid var(--console-edge);
  border-radius: 3px;
  padding: 0.15rem 0.45rem;
}
.scan-live.done { color: var(--paper); border-color: #43554A; }

.scan-body {
  padding: 1rem 1.1rem 1.15rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.9;
  color: var(--console-text);
  min-height: 21rem;
}

.ln { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ln.ind { padding-left: 1.4rem; }
.ln.cmd { color: #fff; }
.ln .addr { color: #fff; font-weight: 500; }
.ln .alg { color: var(--console-text); }
.ln.dim, .ln .dim, .dim { color: #7B8A80; }

/* typed-in reveal: JS adds .on line by line */
.scan-body.animate .ln { visibility: hidden; }
.scan-body.animate .ln.on { visibility: visible; }

.chip {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  border-radius: 3px;
  padding: 0.12rem 0.4rem;
  vertical-align: 1px;
}
/* chips on the dark console */
.scan-body .chip-vuln   { color: #FFB4A6; background: rgba(169, 50, 38, 0.28); }
.scan-body .chip-safe   { color: #9FE8BE; background: rgba(27, 122, 72, 0.30); }
.scan-body .chip-broken { color: #FF9DB0; background: rgba(140, 31, 47, 0.34); }

/* chips on paper (classification table) */
.rules-table .chip { font-size: 0.66rem; padding: 0.16rem 0.5rem; }
.rules-table .chip-vuln   { color: var(--vuln);   background: rgba(169, 50, 38, 0.09);  border: 1px solid rgba(169, 50, 38, 0.25); }
.rules-table .chip-warn   { color: var(--warn);   background: rgba(143, 98, 8, 0.09);   border: 1px solid rgba(143, 98, 8, 0.28); }
.rules-table .chip-safe   { color: var(--safe);   background: rgba(27, 122, 72, 0.09);  border: 1px solid rgba(27, 122, 72, 0.28); }
.rules-table .chip-broken { color: var(--broken); background: rgba(140, 31, 47, 0.09);  border: 1px solid rgba(140, 31, 47, 0.26); }

.ln.score { margin-top: 0.4rem; color: #fff; }
.meter {
  display: inline-block;
  width: 9rem;
  height: 0.55rem;
  margin: 0 0.6rem;
  border: 1px solid var(--console-edge);
  border-radius: 99px;
  vertical-align: -1px;
  overflow: hidden;
}
.meter i {
  display: block;
  height: 100%;
  width: 38%;
  background: linear-gradient(90deg, var(--safe), #37B072);
  border-radius: 99px;
  transform-origin: left center;
}
.scan-body.animate .meter i { transform: scaleX(0); transition: transform 900ms ease-out; }
.scan-body.animate.scored .meter i { transform: scaleX(1); }
.score-num { color: #9FE8BE; font-weight: 600; }

/* ---------- deadline rail ---------- */

.rail-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  padding: clamp(2.75rem, 6vh, 4.5rem) clamp(1.2rem, 4vw, 3rem);
}

.rail {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: var(--maxw);
  margin: 2.25rem auto 0;
  position: relative;
}
/* the rail line itself */
.rail::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: 0.5rem;
  right: 0.5rem;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 16px);
}

.rail-stop { position: relative; padding-top: 1.9rem; }
.rail-stop::before {
  content: "";
  position: absolute;
  top: 0.2rem;
  left: 0;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--muted);
}
.rail-stop.now::before { background: var(--indigo); border-color: var(--indigo); }
.rail-stop.end::before { background: var(--vuln); border-color: var(--vuln); }

.rail-year {
  font-family: var(--display);
  font-variation-settings: "wdth" 122;
  font-weight: 780;
  font-size: 1.9rem;
  letter-spacing: 0.01em;
  display: block;
}
.rail-stop.now .rail-year { color: var(--indigo); }
.rail-stop.end .rail-year { color: var(--vuln); }

.rail-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0.35rem 0 0.6rem;
}

.rail-stop p { font-size: 0.94rem; color: var(--muted); }

/* ---------- sections ---------- */

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3.5rem, 9vh, 6.5rem) clamp(1.2rem, 4vw, 3rem);
}

.section-tinted {
  max-width: none;
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-tinted > * {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}

/* ---------- discovery cards ---------- */

.source-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.source-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.6rem 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.source-card p { font-size: 0.98rem; color: var(--muted); }
.source-card .mono-note { margin-top: auto; padding-top: 0.9rem; border-top: 1px dashed var(--line); }

.src-badge {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--indigo);
  border: 1px solid color-mix(in srgb, var(--indigo) 35%, transparent);
  background: color-mix(in srgb, var(--indigo) 6%, transparent);
  border-radius: 3px;
  padding: 0.22rem 0.55rem;
}

/* ---------- classification table ---------- */

.table-wrap { overflow-x: auto; }

.rules-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.95rem;
}

.rules-table th {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: left;
  color: var(--muted);
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid var(--line);
}

.rules-table td {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.rules-table tr:last-child td { border-bottom: none; }

.rules-table .alg {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
}
.rules-table .use {
  display: block;
  font-weight: 400;
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.rules-table .sev {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
.sev-crit { color: var(--broken); }
.sev-high { color: var(--vuln); }
.sev-med  { color: var(--warn); }
.sev-info { color: var(--safe); }
.rules-table td:last-child { color: var(--muted); font-size: 0.92rem; }

/* ---------- readiness ---------- */

.readiness {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-top: 3rem;
  padding: 2rem 2.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}
.readiness-num {
  font-family: var(--display);
  font-variation-settings: "wdth" 125;
  font-weight: 800;
  color: var(--indigo);
  line-height: 1;
  white-space: nowrap;
}
.readiness-num .big { font-size: clamp(3.4rem, 6vw, 5rem); font-variant-numeric: tabular-nums; }
.readiness-num .pct { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.readiness-copy p { color: var(--muted); max-width: 36rem; }

/* ---------- CA grid ---------- */

.ca-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
}
.ca-item {
  padding: 1.7rem 1.8rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ca-item:nth-child(2n) { border-right: none; }
.ca-item:nth-child(n+3) { border-bottom: none; }
.ca-item p { font-size: 0.98rem; color: var(--muted); }

/* ---------- export + deploy ---------- */

.deploy-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.deploy-cols p { color: var(--muted); margin-bottom: 1rem; }
.deploy-cols h2 { margin-top: 0; }

.plain-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.plain-list li { font-size: 0.95rem; }

.deploy-block {
  background: var(--console);
  border: 1px solid var(--console-edge);
  color: #fff;
  border-radius: 8px;
  padding: 1.1rem 1.3rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.8;
  overflow-x: auto;
}

/* ---------- closing + footer ---------- */

.closing { padding-bottom: clamp(4rem, 10vh, 7rem); }
.closing h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.closing .cta-row { margin-top: 2.4rem; }

.footer {
  border-top: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: flex-end;
  max-width: none;
  padding: 2.4rem clamp(1.2rem, 4vw, 3rem) 2.6rem;
}
.foot-brand p {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
}
.foot-meta { text-align: right; }
.foot-meta p { font-size: 0.88rem; color: var(--muted); }
.foot-meta .mono-note { margin-top: 0.3rem; }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .source-grid { grid-template-columns: 1fr; }
  .rail { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .rail::before { display: none; }
  .deploy-cols { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .topbar nav { display: none; }
  .rail { grid-template-columns: 1fr; }
  .ca-grid { grid-template-columns: 1fr; }
  .ca-item { border-right: none; border-bottom: 1px solid var(--line); }
  .ca-item:last-child { border-bottom: none; }
  .readiness { grid-template-columns: 1fr; gap: 1.2rem; padding: 1.6rem 1.4rem; }
  .footer { flex-direction: column; align-items: flex-start; }
  .foot-meta { text-align: left; }
  .scan-body { font-size: 0.68rem; min-height: 18rem; }
}
