:root {
  color-scheme: dark;
  --bg: #07100d;
  --ink: #f4fff8;
  --muted: #9fb3aa;
  --line: rgba(255, 255, 255, 0.12);
  --green: #14f195;
  --cyan: #39c5ff;
  --pink: #ff4fd8;
  --panel: rgba(8, 20, 17, 0.76);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
}

.topbar {
  align-items: center;
  backdrop-filter: blur(16px);
  background: rgba(7, 16, 13, 0.72);
  border-bottom: 1px solid var(--line);
  display: flex;
  height: 68px;
  justify-content: space-between;
  padding: 0 clamp(18px, 5vw, 64px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  display: inline-flex;
  text-decoration: none;
}

.brand img {
  display: block;
  height: 42px;
  width: 165px;
}

.nav {
  display: flex;
  gap: clamp(14px, 3vw, 32px);
  font-size: 0.92rem;
}

.nav a,
footer a {
  color: var(--muted);
  text-decoration: none;
}

.hero {
  min-height: calc(100vh - 68px);
  overflow: hidden;
  position: relative;
}

.hero-art {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(4, 9, 8, 0.94), rgba(4, 9, 8, 0.58) 43%, rgba(4, 9, 8, 0.06)),
    linear-gradient(0deg, var(--bg), rgba(7, 16, 13, 0) 26%);
  inset: 0;
  position: absolute;
}

.hero-copy {
  max-width: 760px;
  padding: clamp(80px, 12vh, 132px) clamp(20px, 6vw, 76px) 118px;
  position: relative;
}

.eyebrow {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 14px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(3rem, 8vw, 6.6rem);
  line-height: 0.94;
  margin-bottom: 24px;
  max-width: 720px;
}

h2 {
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.lede,
.scanner-grid p,
.playbook p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-actions,
.input-row {
  display: flex;
  gap: 12px;
}

.button,
button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-height: 48px;
  padding: 0 18px;
}

.button {
  align-items: center;
  display: inline-flex;
  text-decoration: none;
}

.primary,
button {
  background: var(--green);
  color: #03100b;
}

.secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
}

.scanner-band,
.playbook {
  padding: clamp(56px, 9vw, 104px) clamp(18px, 5vw, 72px);
}

.scanner-grid {
  align-items: end;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  margin: 0 auto 24px;
  max-width: 1180px;
}

.scan-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

label {
  color: var(--muted);
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 10px;
}

input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  flex: 1;
  font: inherit;
  min-height: 48px;
  min-width: 0;
  padding: 0 14px;
}

.fineprint {
  color: var(--muted);
  font-size: 0.84rem;
  margin: 12px 0 0;
}

.results {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto 12px;
  max-width: 1180px;
}

.metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.metric span {
  display: block;
  font-size: clamp(1.45rem, 3vw, 2.4rem);
  font-weight: 900;
}

.metric small {
  color: var(--muted);
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0 auto;
  max-width: 1180px;
  overflow: auto;
}

table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

td {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
}

.playbook {
  background: #0b1215;
}

.playbook > div {
  margin: 0 auto 22px;
  max-width: 1180px;
}

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

article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

article strong {
  color: var(--pink);
  display: block;
  font-size: 1.8rem;
  margin-bottom: 22px;
}

footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 26px clamp(18px, 5vw, 72px);
}

.footer-links {
  display: flex;
  gap: 18px;
}

@media (max-width: 760px) {
  .topbar {
    height: auto;
    min-height: 64px;
  }

  .nav {
    display: none;
  }

  .hero-copy {
    padding-top: 64px;
  }

  .hero-actions,
  .input-row,
  footer,
  .footer-links {
    align-items: stretch;
    flex-direction: column;
  }

  .scanner-grid,
  .results,
  .steps {
    grid-template-columns: 1fr;
  }
}
