:root {
  color-scheme: dark;
  --ink: #f4f1e8;
  --muted: #acaea7;
  --panel: #171a18;
  --line: #30352f;
  --accent: #b6ff5c;
  --accent-dark: #17200f;
  --danger: #ff7a72;
  --background: #0c0e0d;
}

* { box-sizing: border-box; }

html { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 8%, rgba(182, 255, 92, 0.1), transparent 24rem),
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px),
    var(--background);
  background-size: auto, 42px 42px, 42px 42px, auto;
}

button { font: inherit; }

.shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 34px;
}

.hero { max-width: 820px; padding: 46px 0 54px; }

.eyebrow, .kicker {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow { display: flex; align-items: center; gap: 10px; }

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(182, 255, 92, 0.13);
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 24px;
  font-size: clamp(3.1rem, 8.2vw, 6.8rem);
  line-height: 0.88;
  letter-spacing: -0.065em;
}

h1 span { color: var(--accent); }

.lead {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.65;
}

.privacy-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: rgba(23, 26, 24, 0.78);
}

.privacy-strip div {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 23px 26px;
}

.privacy-strip div + div { border-left: 1px solid var(--line); }
.privacy-strip strong { color: var(--accent); font-size: 1.65rem; }
.privacy-strip span { color: var(--muted); font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.08em; }

.tests { padding: 92px 0 32px; }

.section-heading, .result-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 28px;
}

.section-heading .kicker, .result-header .kicker { margin-bottom: 8px; }
h2 { margin-bottom: 0; font-size: clamp(1.8rem, 4vw, 2.65rem); letter-spacing: -0.04em; }

.state {
  flex: none;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--muted);
  font-size: 0.8rem;
}

.state.ok { color: var(--accent); border-color: rgba(182,255,92,.45); background: rgba(182,255,92,.07); }
.state.error { color: var(--danger); border-color: rgba(255,122,114,.45); background: rgba(255,122,114,.07); }

.test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.test-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.test-card.featured { border-color: rgba(182,255,92,.6); background: linear-gradient(145deg, rgba(182,255,92,.08), transparent 55%), var(--panel); }
.number { color: #6d736b; font: 700 0.78rem ui-monospace, SFMono-Regular, Consolas, monospace; }
.test-card h3 { margin: 42px 0 12px; font-size: 1.35rem; }
.test-card p { color: var(--muted); line-height: 1.55; }

.test-card button {
  width: 100%;
  margin-top: auto;
  padding: 13px 16px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  color: #0b0e08;
  background: var(--accent);
  font-weight: 800;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
}

.test-card button:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(182,255,92,.12); }
.test-card button:focus-visible, .text-button:focus-visible { outline: 3px solid white; outline-offset: 3px; }
.test-card button:disabled { cursor: wait; opacity: .62; transform: none; }

.result-panel {
  margin-top: 42px;
  padding: 28px;
  border: 1px solid var(--line);
  background: #111311;
}

.result-header { align-items: center; margin-bottom: 20px; }
.text-button { border: 0; color: var(--accent); background: transparent; cursor: pointer; }

pre {
  min-height: 190px;
  max-height: 520px;
  margin: 0;
  overflow: auto;
  padding: 22px;
  border: 1px solid #272b27;
  color: #d8ded3;
  background: #090a09;
  font: 0.9rem/1.65 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.notice {
  display: flex;
  gap: 20px;
  margin: 42px 0 74px;
  padding: 28px;
  border-left: 3px solid var(--accent);
  background: var(--accent-dark);
}

.notice-icon {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-weight: 800;
}

.notice h2 { margin-bottom: 8px; font-size: 1.1rem; letter-spacing: 0; }
.notice p { margin: 0; color: #c4cabc; line-height: 1.6; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: #737872;
  font-size: 0.82rem;
}

@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 620px); padding-top: 28px; }
  .hero { padding-top: 40px; }
  .privacy-strip, .test-grid { grid-template-columns: 1fr; }
  .privacy-strip div + div { border-left: 0; border-top: 1px solid var(--line); }
  .tests { padding-top: 68px; }
  .test-card { min-height: 250px; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
