/* ==========================================================================
   Verifeon — design tokens
   ========================================================================== */
:root {
  --bg: #050308;
  --bg-alt: #0a0714;
  --panel: #0e0a1c;
  --panel-2: #120c22;
  --border: #241a3d;
  --border-soft: #1a1330;

  --violet: #8b5cf6;
  --violet-bright: #a78bfa;
  --violet-deep: #5b21b6;
  --lilac: #d8c9ff;
  --pink-accent: #c084fc;

  --text: #ece8f7;
  --text-dim: #a79fc2;
  --text-faint: #6f6789;

  --ok: #6ee7b7;
  --warn: #fbbf24;

  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --container: 1160px;

  --glow: 0 0 40px rgba(139, 92, 246, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 900px 500px at 15% -5%, rgba(139, 92, 246, 0.16), transparent 60%),
    radial-gradient(ellipse 700px 500px at 90% 10%, rgba(192, 132, 252, 0.10), transparent 55%),
    radial-gradient(ellipse 900px 700px at 50% 100%, rgba(91, 33, 182, 0.14), transparent 60%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: #fff;
}

p { color: var(--text-dim); margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.mono { font-family: var(--font-mono); }

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

:focus-visible {
  outline: 2px solid var(--violet-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--violet-deep); }

/* ==========================================================================
   Circuit trace divider — the signature element.
   A thin PCB-style trace with node "checkpoints" runs between every major
   section, echoing the verification-checkpoint concept and the circuit
   linework in the Verifeon mark.
   ========================================================================== */
.trace {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 46px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.trace svg { width: 100%; height: 100%; display: block; }
.trace-line {
  fill: none;
  stroke: var(--border);
  stroke-width: 1.5;
}
.trace-node {
  fill: var(--bg);
  stroke: var(--violet);
  stroke-width: 1.5;
}
.trace-node.filled { fill: var(--violet); }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(5, 3, 8, 0.72);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
}
.brand img { width: 30px; height: 30px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.92rem;
  color: var(--text-dim);
}
.nav-links a { transition: color 0.2s ease; }
.nav-links a:hover { color: var(--lilac); }
.nav-cta {
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--violet), var(--violet-deep));
  color: #fff !important;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: 0 0 0 1px rgba(139,92,246,0.4) inset, 0 6px 24px rgba(139,92,246,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(139,92,246,0.6) inset, 0 10px 30px rgba(139,92,246,0.4); }
.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border-soft);
    padding: 8px 24px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
  .nav-links .nav-cta { margin-top: 12px; text-align: center; justify-content: center; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: 96px 24px 64px;
  text-align: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet-bright);
  border: 1px solid var(--border);
  background: rgba(139,92,246,0.06);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
}

.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  line-height: 1.05;
  max-width: 880px;
  margin: 0 auto 22px;
}
.hero h1 .grad {
  background: linear-gradient(135deg, #fff 10%, var(--violet-bright) 60%, var(--pink-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  max-width: 560px;
  margin: 0 auto 36px;
  font-size: 1.05rem;
  color: var(--text-dim);
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--violet), var(--violet-deep));
  color: #fff;
  box-shadow: 0 0 0 1px rgba(139,92,246,0.4) inset, 0 10px 34px rgba(139,92,246,0.32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(139,92,246,0.6) inset, 0 14px 40px rgba(139,92,246,0.45); }
.btn-ghost {
  background: rgba(255,255,255,0.02);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--violet); color: #fff; }

/* Verification gate — hero visual */
.gate {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
  padding: 40px 30px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(139,92,246,0.05), rgba(255,255,255,0.01));
  box-shadow: var(--glow);
}
.gate-shield {
  width: 128px;
  margin: 0 auto 22px;
  position: relative;
}
.gate-shield img {
  width: 100%;
  filter: drop-shadow(0 0 26px rgba(139,92,246,0.55));
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.gate-scan {
  position: absolute;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--violet-bright), transparent);
  animation: scan 2.6s ease-in-out infinite;
  opacity: 0.9;
}
@keyframes scan {
  0% { top: 6%; opacity: 0; }
  10% { opacity: 1; }
  50% { top: 92%; opacity: 1; }
  60% { opacity: 0; }
  100% { top: 6%; opacity: 0; }
}
.gate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-faint);
  padding: 10px 0;
  border-top: 1px dashed var(--border-soft);
}
.gate-row:first-of-type { border-top: none; }
.gate-row .status { color: var(--ok); }
.gate-row .status.pending { color: var(--warn); }

/* ==========================================================================
   Stat strip
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  margin: -20px auto 0;
  max-width: var(--container);
}
.stat {
  background: var(--bg-alt);
  padding: 26px 20px;
  text-align: center;
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 4px;
}
.stat span {
  font-size: 0.8rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Section shell
   ========================================================================== */
.section { padding: 96px 24px; position: relative; z-index: 1; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(139,92,246,0.03), transparent); }
.section-head { max-width: 620px; margin: 0 auto 56px; text-align: center; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet-bright);
  margin-bottom: 12px;
  display: block;
}
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }

/* ==========================================================================
   Feature grid
   ========================================================================== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.card:hover {
  border-color: var(--violet);
  transform: translateY(-4px);
  background: var(--panel-2);
}
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139,92,246,0.12);
  border: 1px solid rgba(139,92,246,0.35);
  margin-bottom: 18px;
  font-size: 1.2rem;
}
.card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.card p { font-size: 0.92rem; margin: 0; }
.card .tag {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--pink-accent);
  border: 1px solid rgba(192,132,252,0.35);
  background: rgba(192,132,252,0.06);
  padding: 3px 9px;
  border-radius: 999px;
}

/* ==========================================================================
   How it works — checkpoint flow
   ========================================================================== */
.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.flow-step {
  position: relative;
  padding: 0 18px;
  text-align: center;
}
.flow-node {
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 1px solid var(--violet);
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--violet-bright);
  box-shadow: 0 0 24px rgba(139,92,246,0.25);
  position: relative;
  z-index: 2;
}
.flow-step::before {
  content: "";
  position: absolute;
  top: 27px;
  left: -50%;
  width: 100%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--border) 0 6px, transparent 6px 12px);
  z-index: 1;
}
.flow-step:first-child::before { display: none; }
.flow-step h4 { font-size: 0.98rem; margin-bottom: 6px; }
.flow-step p { font-size: 0.85rem; }

/* ==========================================================================
   Premium
   ========================================================================== */
.premium-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: start;
}
.premium-copy .eyebrow { color: var(--pink-accent); }
.premium-list { list-style: none; margin: 28px 0; padding: 0; display: grid; gap: 16px; }
.premium-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--text);
}
.premium-list .check {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(192,132,252,0.15);
  border: 1px solid var(--pink-accent);
  color: var(--pink-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  margin-top: 2px;
}
.premium-list small { display: block; color: var(--text-faint); font-size: 0.82rem; margin-top: 2px; }

.price-card {
  background: linear-gradient(180deg, rgba(192,132,252,0.08), rgba(139,92,246,0.02));
  border: 1px solid rgba(192,132,252,0.35);
  border-radius: var(--radius);
  padding: 36px 30px;
  position: sticky;
  top: 100px;
}
.price-card .plan-name {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink-accent);
}
.price-card .amount {
  font-family: var(--font-display);
  font-size: 3rem;
  color: #fff;
  margin: 10px 0 0;
}
.price-card .amount span { font-size: 1rem; color: var(--text-faint); font-family: var(--font-body); }
.price-card ul { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 12px; }
.price-card ul li { font-size: 0.88rem; color: var(--text-dim); display: flex; gap: 10px; }
.price-card ul li::before { content: "✓"; color: var(--pink-accent); font-weight: 700; }
.price-card .btn { width: 100%; justify-content: center; }
.price-note { text-align: center; font-size: 0.78rem; color: var(--text-faint); margin-top: 14px; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  text-align: center;
  padding: 90px 24px;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: radial-gradient(ellipse 700px 300px at 50% 0%, rgba(139,92,246,0.12), transparent 70%);
}
.cta-band h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); max-width: 620px; margin: 0 auto 16px; }
.cta-band p { max-width: 480px; margin: 0 auto 32px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  padding: 60px 24px 30px;
  font-size: 0.88rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-soft);
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); color: #fff; font-weight: 700; margin-bottom: 12px;}
.footer-brand img { width: 26px; height: 26px; }
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.footer-col a { display: block; color: var(--text-dim); margin-bottom: 10px; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--lilac); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  color: var(--text-faint);
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   Legal pages
   ========================================================================== */
.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: 120px 24px 100px;
  position: relative;
  z-index: 1;
}
.legal .updated {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-bottom: 40px;
  display: block;
}
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 8px; }
.legal h2 {
  font-size: 1.2rem;
  margin-top: 42px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
}
.legal p, .legal li { color: var(--text-dim); font-size: 0.96rem; }
.legal ul { padding-left: 20px; }
.legal a.inline { color: var(--violet-bright); text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Command guide
   ========================================================================== */
.guide-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 48px;
}
.guide-toc a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.guide-toc a:hover { color: var(--lilac); border-color: var(--violet); }

.guide-flow {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 28px 0 48px;
  padding: 22px 26px;
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}
.guide-flow li { color: var(--text-dim); font-size: 0.92rem; display: flex; gap: 12px; align-items: baseline; }
.guide-flow li b {
  color: var(--violet-bright);
  font-family: var(--font-mono);
  flex: none;
  width: 22px;
}

.cmd {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 26px 28px;
  margin: 20px 0;
  scroll-margin-top: 90px;
}
.cmd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.cmd-name {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: #fff;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.35);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
}
.cmd-perm {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--pink-accent);
  border: 1px solid rgba(192, 132, 252, 0.35);
  background: rgba(192, 132, 252, 0.06);
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.cmd p { margin: 0 0 12px; font-size: 0.93rem; }
.cmd-opts { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.cmd-opts li { font-size: 0.88rem; color: var(--text-dim); }
.cmd-opts code {
  font-family: var(--font-mono);
  color: var(--violet-bright);
  background: rgba(139, 92, 246, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85rem;
}
.cmd-note {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--text-faint);
  border-top: 1px dashed var(--border-soft);
  padding-top: 12px;
}
.cmd-sub {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
}
.cmd-sub summary {
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--lilac);
  list-style: none;
}
.cmd-sub summary::-webkit-details-marker { display: none; }
.cmd-sub summary::before { content: "▸ "; color: var(--violet-bright); }
.cmd-sub[open] summary::before { content: "▾ "; }
.cmd-sub .cmd-opts { margin-top: 12px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 880px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .flow-step:nth-child(3)::before { display: none; }
  .premium-wrap { grid-template-columns: 1fr; }
  .price-card { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .features { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .flow-step::before { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero { padding-top: 64px; }
}
