:root {
  --bg: #090B0F;
  --surface: #10141C;
  --surface-2: #151B26;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #F3F5F8;
  --muted: #9BA5B4;
  --dim: #6C7686;
  --emerald: #10B981;
  --emerald-bg: rgba(16, 185, 129, 0.12);
  --amber: #F59E0B;
  --amber-bg: rgba(245, 158, 11, 0.12);
  --red: #EF4444;
  --red-bg: rgba(239, 68, 68, 0.12);
  --sky: #38BDF8;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
  color: var(--text);
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(900px 480px at 18% -10%, rgba(16, 185, 129, 0.09), transparent 60%),
    radial-gradient(760px 420px at 88% -8%, rgba(56, 189, 248, 0.06), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums;
}

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

a {
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
}

button,
[role="button"],
.chip,
.seg-btn,
.radio-pill {
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: 16px;
  color: var(--text);
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(9, 11, 15, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--emerald);
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 15px;
}

.brand-tag {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--emerald-bg);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.28);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  color: var(--muted);
}

.header-nav a {
  transition: color 150ms ease, transform 140ms var(--ease-out);
}

.nav-cta {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--text);
  color: #090B0F;
  font-weight: 600;
  transition: transform 140ms var(--ease-out), opacity 150ms ease;
}

.nav-cta:active {
  transform: scale(0.97);
}

.edge-bar {
  border-top: 1px solid var(--border);
  background: rgba(16, 20, 28, 0.72);
}

.edge-bar-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  font-size: 12px;
  color: var(--muted);
  overflow-x: auto;
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--emerald);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.hero {
  min-height: calc(100svh - 97px);
  padding: 56px 0 72px;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--emerald);
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 18ch;
}

.hero-lead {
  margin: 0 0 28px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 60ch;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 560px;
}

.metric {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(16, 20, 28, 0.85);
  border: 1px solid var(--border);
}

.metric-value {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}

.metric-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.scanner-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

.scanner-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.scanner-header h2 {
  margin: 0 0 6px;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.scanner-sub {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  max-width: 60ch;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 11px;
  letter-spacing: 0.06em;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--border);
  white-space: nowrap;
}

.badge-pqc,
.badge-accent {
  background: var(--emerald-bg);
  color: var(--emerald);
  border-color: rgba(16, 185, 129, 0.3);
}

.badge-warn {
  background: var(--amber-bg);
  color: var(--amber);
  border-color: rgba(245, 158, 11, 0.3);
}

.badge-fail {
  background: var(--red-bg);
  color: var(--red);
  border-color: rgba(239, 68, 68, 0.3);
}

.scan-form {
  display: flex;
  gap: 10px;
}

.scan-form input {
  flex: 1;
  min-width: 0;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.scan-form input:focus,
.intake-form input:focus,
.intake-form select:focus,
.intake-form textarea:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 140ms var(--ease-out), background-color 150ms ease, border-color 150ms ease, opacity 150ms ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.btn-primary {
  background: var(--emerald);
  color: #04150E;
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-full {
  width: 100%;
}

.btn-inline {
  background: transparent;
  color: var(--sky);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 11px;
  cursor: pointer;
  transition: transform 140ms var(--ease-out), background-color 150ms ease;
}

.btn-inline:active {
  transform: scale(0.97);
}

.sample-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.sample-label {
  font-size: 12px;
  color: var(--dim);
}

.chip {
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 12px;
  cursor: pointer;
  transition: transform 140ms var(--ease-out), border-color 150ms ease, color 150ms ease;
}

.chip:active {
  transform: scale(0.97);
}

.form-error {
  margin: 14px 0 0;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: var(--red-bg);
  border: 1px solid rgba(239, 68, 68, 0.32);
  color: #FCA5A5;
  font-size: 14px;
}

.form-success {
  margin: 14px 0 0;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--emerald-bg);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #A7F3D0;
  font-size: 14px;
}

.scan-results {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  opacity: 0;
  transform: translateY(8px) scale(0.985);
  transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out);
}

.scan-results.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.score-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.grade-ring-wrap {
  position: relative;
  width: 84px;
  height: 84px;
  flex-shrink: 0;
}

.ring-track {
  stroke: rgba(255, 255, 255, 0.08);
}

.ring-fill {
  stroke: var(--emerald);
  stroke-linecap: round;
  transition: stroke-dashoffset 450ms var(--ease-out), stroke 200ms ease;
}

.ring-fill.is-warn {
  stroke: var(--amber);
}

.ring-fill.is-fail {
  stroke: var(--red);
}

.grade-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.grade-letter {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.grade-num {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.score-meta {
  flex: 1;
  min-width: 0;
}

.score-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}

.score-title-row h3 {
  margin: 0;
  font-size: 17px;
  word-break: break-word;
}

.score-headline {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--muted);
}

.attestation-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--dim);
}

.verify-status {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--emerald);
}

.verify-status.is-invalid {
  color: var(--red);
}

.checks-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 12px;
}

.check-item {
  padding: 15px 16px;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--border);
  opacity: 0;
  transform: translateY(6px);
  animation: checkEnter 240ms var(--ease-out) forwards;
}

.check-item[data-idx="0"] { animation-delay: 0ms; }
.check-item[data-idx="1"] { animation-delay: 40ms; }
.check-item[data-idx="2"] { animation-delay: 75ms; }
.check-item[data-idx="3"] { animation-delay: 105ms; }
.check-item[data-idx="4"] { animation-delay: 135ms; }
.check-item[data-idx="5"] { animation-delay: 165ms; }
.check-item[data-idx="6"] { animation-delay: 195ms; }

@keyframes checkEnter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.check-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.check-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.check-finding {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--muted);
}

.check-fix {
  margin: 0;
  font-size: 12px;
  color: var(--dim);
}

.scan-cta-bar {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.scan-cta-bar p {
  margin: 0;
  font-size: 14px;
  color: var(--text);
}

.section {
  padding: 76px 0;
}

.section-alt {
  background: rgba(16, 20, 28, 0.56);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  margin-bottom: 36px;
  max-width: 640px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.6vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.section-sub {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.section-head-split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.section-head-split > div:first-child {
  max-width: 600px;
}

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

.info-card {
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
}

.card-index {
  display: inline-block;
  font-size: 12px;
  color: var(--emerald);
  margin-bottom: 12px;
}

.info-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: -0.015em;
}

.info-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.segmented {
  display: inline-flex;
  padding: 4px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  gap: 4px;
}

.seg-btn {
  padding: 9px 16px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 160ms var(--ease-out), color 160ms ease, transform 140ms var(--ease-out);
}

.seg-btn:active {
  transform: scale(0.97);
}

.seg-btn.is-active {
  background: var(--text);
  color: #090B0F;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.price-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}

.price-card-featured {
  border-color: rgba(16, 185, 129, 0.42);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.05), var(--surface) 42%);
}

.price-card h3 {
  margin: 14px 0 8px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.price-desc {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}

.price-amount {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.price-cadence {
  font-size: 14px;
  color: var(--muted);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: grid;
  gap: 11px;
  font-size: 14px;
  color: #D5DCE6;
}

.feature-list li {
  position: relative;
  padding-left: 22px;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--emerald);
}

.lab-card {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 28px;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  align-items: center;
}

.lab-copy h2 {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.lab-copy p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
}

.lab-terminal {
  border-radius: var(--radius-md);
  background: #06080B;
  border: 1px solid var(--border-strong);
  overflow: hidden;
}

.terminal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.terminal-body {
  margin: 0;
  padding: 16px;
  font-size: 12.5px;
  line-height: 1.65;
  color: #D1FAE5;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: start;
}

.contact-copy h2 {
  margin: 0 0 12px;
  font-size: 30px;
  letter-spacing: -0.025em;
}

.contact-copy > p {
  margin: 0 0 22px;
  color: var(--muted);
}

.honesty-box {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--border);
}

.honesty-box h3 {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--sky);
}

.honesty-box p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}

.intake-form {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  display: grid;
  gap: 16px;
}

.form-track-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.radio-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.radio-pill input {
  accent-color: var(--emerald);
}

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

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 13px;
  font-weight: 500;
  color: #D5DCE6;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field textarea {
  resize: vertical;
}

.attached-note {
  margin: 0;
  font-size: 12px;
  color: var(--emerald);
}

.site-footer {
  padding: 36px 0 calc(36px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.footer-brand p {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--dim);
}

.footer-brand a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-links {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--muted);
}

@media (hover: hover) and (pointer: fine) {
  .header-nav a:not(.nav-cta):hover,
  .footer-links a:hover {
    color: var(--text);
  }
  .nav-cta:hover {
    opacity: 0.9;
  }
  .btn-primary:hover {
    background: #14CC8E;
  }
  .btn-secondary:hover {
    background: #1C2433;
    border-color: rgba(255, 255, 255, 0.26);
  }
  .btn-inline:hover {
    background: rgba(56, 189, 248, 0.12);
  }
  .chip:hover {
    border-color: var(--border-strong);
    color: var(--text);
  }
}

@media (max-width: 900px) {
  .threat-grid,
  .pricing-grid,
  .lab-card,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .header-nav a:not(.nav-cta) {
    display: none;
  }
  .hero {
    padding: 36px 0 56px;
  }
  .hero-metrics {
    grid-template-columns: 1fr;
  }
  .scan-form,
  .field-row {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
  .scanner-card,
  .lab-card,
  .intake-form,
  .price-card {
    padding: 20px;
  }
  .score-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .scan-results,
  .check-item,
  .ring-fill,
  .btn,
  .seg-btn,
  .chip {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
