/* Chokepoint Assurance — MVP styles
   Dark, restrained, security-firm credible. No framework. */

:root {
  --bg: #070a0f;
  --bg-alt: #0b1017;
  --panel: #0e141d;
  --panel-2: #121a25;
  --border: #1e2732;
  --border-strong: #2b3644;
  --text: #d9e1ec;
  --text-dim: #94a2b5;
  --text-faint: #63718420;
  --accent: #4ade80;
  --accent-dim: #2f9e5c;
  --accent-glow: rgba(74, 222, 128, 0.12);
  --warn: #f5c451;
  --fail: #ff6b6b;
  --info: #6aa9ff;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Menlo", monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1080px;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: #0006;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.08em 0.38em;
  color: #b7f7cf;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 10, 15, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand:hover {
  text-decoration: none;
}
.brand-mark {
  width: 26px;
  height: 26px;
  color: var(--accent);
  flex: none;
}
.brand-name {
  font-size: 1.05rem;
}
.brand-sub {
  color: var(--text-dim);
  font-weight: 500;
  margin-left: 6px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.92rem;
}
.site-nav a {
  color: var(--text-dim);
}
.site-nav a:hover {
  color: var(--text);
  text-decoration: none;
}
.nav-cta {
  color: var(--accent) !important;
  border: 1px solid var(--accent-dim);
  border-radius: 6px;
  padding: 7px 14px;
}
.nav-cta:hover {
  background: var(--accent-glow);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}
.btn:hover {
  text-decoration: none;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--accent);
  color: #05270f;
  box-shadow: 0 0 0 1px var(--accent-dim), 0 8px 30px -12px var(--accent);
}
.btn-primary:hover {
  background: #62e894;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--accent-dim);
  background: var(--accent-glow);
}
.btn-lg {
  font-size: 1.02rem;
  padding: 15px 28px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 72px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(1100px 460px at 72% -8%, var(--accent-glow), transparent 60%),
    radial-gradient(700px 300px at 8% 0%, rgba(106, 169, 255, 0.06), transparent 60%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.14;
  mask-image: radial-gradient(circle at 60% 0%, #000 0%, transparent 70%);
  pointer-events: none;
}
.eyebrow {
  position: relative;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 20px;
}
.hero h1 {
  position: relative;
  font-size: clamp(2.3rem, 5.4vw, 3.9rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 24px;
}
.hero h1 .accent {
  color: var(--accent);
}
.lede {
  position: relative;
  max-width: 680px;
  font-size: 1.14rem;
  color: var(--text-dim);
  margin: 0 0 32px;
}
.lede strong {
  color: var(--text);
  font-weight: 600;
}
.hero-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 56px;
}
.hero-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-stats div {
  min-width: 0;
}
.hero-stats dt {
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
  font-family: var(--mono);
}
.hero-stats dd {
  margin: 6px 0 0;
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.45;
}

/* ---------- Sections ---------- */
.section {
  padding: 84px 0;
  border-bottom: 1px solid var(--border);
}
.section-alt {
  background: var(--bg-alt);
}
.kicker {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
.section h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 22px;
}
.section-lede {
  max-width: 720px;
  color: var(--text-dim);
  font-size: 1.05rem;
  margin: 0 0 40px;
}
.prose {
  max-width: 760px;
}
.prose p {
  color: var(--text-dim);
  margin: 0 0 20px;
  font-size: 1.05rem;
}
.prose strong {
  color: var(--text);
}
.placeholder-note {
  border-left: 2px solid var(--accent-dim);
  padding-left: 18px;
  font-size: 0.98rem;
}

/* ---------- Attack class table ---------- */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}
table.classes {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
table.classes th,
table.classes td {
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table.classes thead th {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
  background: var(--panel-2);
}
table.classes tbody tr:last-child td {
  border-bottom: none;
}
table.classes tbody tr:hover {
  background: #ffffff05;
}
table.classes td:first-child {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
table.classes td:nth-child(2) {
  color: var(--text-dim);
  font-size: 0.96rem;
}
table.classes td:last-child {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  white-space: nowrap;
}

/* ---------- Service cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.card-tag {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid var(--accent-dim);
  border-radius: 999px;
  padding: 4px 11px;
  align-self: flex-start;
  margin-bottom: 16px;
}
.card h3 {
  font-size: 1.22rem;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.card p {
  color: var(--text-dim);
  font-size: 0.97rem;
  margin: 0 0 16px;
}
.card ul {
  margin: auto 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.card li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 9px;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.card li:last-child {
  margin-bottom: 0;
}
.card li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--accent);
  border-radius: 2px;
  transform: rotate(45deg);
}

/* ---------- Process ---------- */
.process {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.process li {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  position: relative;
}
.process .step-n {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.process h3 {
  font-size: 1.14rem;
  margin: 10px 0 8px;
}
.process p {
  color: var(--text-dim);
  font-size: 0.96rem;
  margin: 0;
}

/* ---------- Checker ---------- */
.checker-form {
  display: flex;
  gap: 12px;
  max-width: 720px;
  margin-bottom: 16px;
}
.checker-form input {
  flex: 1;
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.95rem;
  padding: 13px 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.checker-form input::placeholder {
  color: #5c6a7d;
}
.checker-form input:focus {
  outline: none;
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.checker-form button {
  white-space: nowrap;
}
.examples {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}
.examples-label {
  font-size: 0.85rem;
  color: var(--text-dim);
}
.chip {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.chip:hover {
  border-color: var(--accent-dim);
  background: var(--accent-glow);
}

.checker-status {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--text-dim);
  padding: 14px 0;
}
.checker-status.error {
  color: var(--fail);
}

.report {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  margin-bottom: 26px;
}
.report-head {
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
  background: var(--panel-2);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: center;
  justify-content: space-between;
}
.report-target {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--text);
  word-break: break-all;
}
.report-meta {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 4px;
}
.report-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.badge {
  font-family: var(--mono);
  font-size: 0.76rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
  white-space: nowrap;
}
.badge.pass {
  color: var(--accent);
  border-color: var(--accent-dim);
  background: var(--accent-glow);
}
.badge.warn {
  color: var(--warn);
  border-color: #6a5a2a;
  background: #f5c4510f;
}
.badge.fail {
  color: var(--fail);
  border-color: #6a3030;
  background: #ff6b6b0f;
}

.checks {
  list-style: none;
  margin: 0;
  padding: 0;
}
.check {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.check:last-child {
  border-bottom: none;
}
.check-status {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 0;
  text-align: center;
  border-radius: 5px;
  height: fit-content;
}
.check-status.pass {
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid var(--accent-dim);
}
.check-status.warn {
  color: var(--warn);
  background: #f5c4510f;
  border: 1px solid #6a5a2a;
}
.check-status.fail {
  color: var(--fail);
  background: #ff6b6b0f;
  border: 1px solid #6a3030;
}
.check-status.info {
  color: var(--info);
  background: #6aa9ff0f;
  border: 1px solid #2f4a6a;
}
.check-body h4 {
  margin: 0 0 5px;
  font-size: 0.98rem;
  color: var(--text);
}
.check-body p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.55;
}
.req-block {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  background: #0a0f16;
}
.req-block h4 {
  margin: 0 0 10px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.req-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px 20px;
  font-family: var(--mono);
  font-size: 0.85rem;
}
.req-grid .k {
  color: var(--text-dim);
}
.req-grid .v {
  color: #b7f7cf;
  word-break: break-all;
}

.checker-disclaimer {
  font-size: 0.86rem;
  color: var(--text-dim);
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  padding: 14px 16px;
  max-width: 760px;
}

/* ---------- Contact ---------- */
.section-contact {
  background:
    radial-gradient(800px 320px at 50% 120%, var(--accent-glow), transparent 60%),
    var(--bg-alt);
  text-align: center;
}
.section-contact .kicker,
.section-contact .section-lede {
  margin-left: auto;
  margin-right: auto;
}
.section-contact .section-lede {
  text-align: center;
}
.contact-alt {
  margin-top: 22px;
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 40px 0;
  background: var(--bg);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 600;
}
.footer-brand .brand-mark {
  color: var(--accent);
}
.footer-note {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 0;
  font-family: var(--mono);
}
.footer-copy {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .site-nav {
    display: none;
  }
  .cards,
  .process {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
@media (max-width: 560px) {
  .section {
    padding: 60px 0;
  }
  .hero {
    padding: 68px 0 56px;
  }
  .checker-form {
    flex-direction: column;
  }
  .check {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .check-status {
    justify-self: start;
    padding: 4px 12px;
  }
}
