/* ===================== TOKENS ===================== */
:root {
  --canvas: #0a0c10;
  --panel: #12161d;
  --panel-2: #161b23;
  --text: #e8edf2;
  --muted: #8a96a3;
  --green: #3ddc84;
  --green-dim: #2bb86c;
  --red: #f0544f;
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-strong: rgba(255, 255, 255, 0.14);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter Tight", system-ui, -apple-system, sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --maxw: 1080px;
  --maxw-narrow: 640px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* subtle dark radial texture */
  background-image:
    radial-gradient(1200px 600px at 50% -200px, rgba(61, 220, 132, 0.08), transparent 70%),
    radial-gradient(900px 500px at 85% 10%, rgba(61, 220, 132, 0.04), transparent 70%);
  background-attachment: fixed;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; margin: 0; }

p { margin: 0; }

a { color: inherit; text-decoration: none; }

img, svg { display: block; }

ol, ul { margin: 0; padding: 0; list-style: none; }

/* ===================== LAYOUT ===================== */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow { max-width: var(--maxw-narrow); }

.section { padding: 88px 0; }

.section-alt { background: rgba(255, 255, 255, 0.015); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }

.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 20px; }

.section-intro {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 720px;
  margin-bottom: 44px;
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  text-align: center;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--green);
  color: #04130a;
  box-shadow: 0 6px 24px rgba(61, 220, 132, 0.22);
}
.btn-primary:hover { background: #54e596; box-shadow: 0 8px 30px rgba(61, 220, 132, 0.32); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--hairline-strong);
}
.btn-outline:hover { border-color: var(--green); color: var(--green); }

.btn-sm { padding: 9px 16px; font-size: 0.92rem; }
.btn-lg { padding: 15px 28px; font-size: 1.08rem; }
.btn-block { display: flex; width: 100%; }

/* ===================== WORDMARK ===================== */
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}
.wm-stop { color: var(--text); }
.wm-forge { color: var(--green); }
.wordmark-sm { font-size: 1.25rem; }

/* ===================== HEADER ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 12, 16, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

/* ===================== HERO ===================== */
.hero { padding: 92px 0 84px; }
.hero-inner { max-width: 860px; }

.eyebrow {
  color: var(--green);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  margin-bottom: 26px;
}

.hero-sub {
  color: var(--muted);
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  max-width: 760px;
  margin-bottom: 38px;
}

.hero-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.cta-note { color: var(--muted); font-size: 0.95rem; }

/* ===================== PROSE ===================== */
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 20px; margin-bottom: 48px; }
.prose p { color: var(--muted); font-size: 1.12rem; }

/* ===================== CALLOUTS ===================== */
.callout-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.callout {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.callout p { font-size: 1.02rem; }
.callout-icon { width: 28px; height: 28px; }
.callout-icon svg { width: 28px; height: 28px; }
.callout-threat { border-color: rgba(240, 84, 79, 0.32); }
.callout-threat .callout-icon { color: var(--red); }
.callout-threat strong { color: var(--red); }

/* ===================== MATURITY LADDER (connected path) ===================== */
.ladder-wrap {
  position: relative;
  max-width: 760px;
  margin-bottom: 40px;
  padding: 0 17px; /* room for the start-zone band to breathe outward */
}

.ladder {
  position: relative;
  display: flex;
  flex-direction: column; /* steps read 1 -> 5 downward */
  gap: 16px;
}

/* the continuous rail linking every badge — gradient = the diagnostic.
   Green arrives by step 3 (Enforce), where protection actually turns on. */
.ladder::before {
  content: "";
  position: absolute;
  left: 18px;        /* centered under the 40px badges (0 pad + 20px radius - 2px) */
  top: 26px;
  bottom: 26px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(
    to bottom,
    var(--red) 0%,
    #f5933f 30%,
    var(--green) 48%,
    var(--green) 100%
  );
}

/* start-zone band: sized by the actual content of steps 1–2, so it can't drift.
   Negative margins let the band breathe outward without shifting the badges,
   keeping them aligned on the rail. */
.ladder-start-zone {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 -17px;
  padding: 16px 17px;
  background: rgba(240, 84, 79, 0.06);
  border: 1px solid rgba(240, 84, 79, 0.25);
  border-radius: 12px;
}
.start-zone-label {
  align-self: flex-end;
  margin-bottom: -2px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f0784f;
}

.rung {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 4px 0;
  position: relative;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.rung.is-visible { opacity: 1; transform: translateY(0); }

.rung-num {
  position: relative;
  z-index: 1; /* badge sits above the rail */
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #08120c;
  border: 3px solid var(--canvas); /* ring so the badge sits cleanly on the rail */
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* badge fills track the rail gradient: exposed (red/amber) -> protected (green from step 3) */
.rung-1 .rung-num { background: var(--red); }
.rung-2 .rung-num { background: #f5933f; }
.rung-3 .rung-num { background: var(--green); }
.rung-4 .rung-num { background: var(--green); }
.rung-5 .rung-num { background: var(--green); }

.rung-body { padding-top: 1px; }
.rung-label { font-size: 1.2rem; margin-bottom: 3px; }
.rung-optional { color: var(--muted); font-weight: 500; font-size: 0.85rem; font-family: var(--font-body); }
.rung-desc { color: var(--muted); font-size: 1rem; }

.ladder-close { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; max-width: 720px; }
.ladder-caption {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.4;
}

/* ===================== WHAT WE MANAGE ===================== */
.promise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.promise {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 30px;
}
.promise-icon { width: 34px; height: 34px; color: var(--green); margin-bottom: 18px; }
.promise-icon svg { width: 34px; height: 34px; }
.promise-title { font-size: 1.4rem; margin-bottom: 10px; }
.promise-desc { color: var(--muted); font-size: 1.05rem; }

.protocol-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.protocol {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 1rem;
  padding: 11px 18px;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  background: var(--panel-2);
}
.protocol-optional {
  color: var(--muted);
  border-style: dashed;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.protocol-optional span { font-family: var(--font-body); font-weight: 400; font-size: 0.78rem; letter-spacing: 0; }

/* ===================== STEPS ===================== */
.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.step {
  display: flex;
  gap: 18px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 26px;
}
.step-num {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  background: rgba(61, 220, 132, 0.12);
  color: var(--green);
  border: 1px solid rgba(61, 220, 132, 0.3);
}
.step-title { font-size: 1.2rem; margin-bottom: 8px; }
.step-body p { color: var(--muted); font-size: 1rem; }

/* ===================== PACKAGES ===================== */
.model-explainer {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
  padding: 26px 28px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--green);
  border-radius: var(--radius);
}
.model-explainer p { color: var(--muted); font-size: 1.08rem; }
.model-explainer strong { color: var(--text); }

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.tier {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.tier-featured {
  border-color: rgba(61, 220, 132, 0.45);
  box-shadow: 0 0 0 1px rgba(61, 220, 132, 0.14), 0 16px 50px rgba(61, 220, 132, 0.08);
}
.tier-badge {
  position: absolute;
  top: -12px;
  left: 26px;
  background: var(--green);
  color: #04130a;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.tier-name { font-size: 1.4rem; }
.tier-for { color: var(--muted); font-size: 0.98rem; }
.tier-includes { font-size: 1rem; flex-grow: 1; }
.tier-price { margin-top: 8px; }
.price-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--green);
  letter-spacing: -0.01em;
}
.price-soft { color: var(--text); font-size: 1.2rem; }
.tier-project { color: var(--muted); font-size: 0.9rem; }

.addon-line {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.02rem;
  padding-top: 8px;
}
.addon-line strong { color: var(--text); }

/* ===================== CTA + FORM ===================== */
.section-cta {
  background:
    radial-gradient(700px 360px at 50% 0%, rgba(61, 220, 132, 0.1), transparent 70%),
    var(--canvas);
  border-top: 1px solid var(--hairline);
}
.scan-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 32px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--font-display); font-weight: 500; font-size: 0.95rem; }
.optional { color: var(--muted); font-weight: 400; }
.field input {
  background: var(--canvas);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input::placeholder { color: #5d6873; }
.field input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.18);
}

.form-privacy {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
  text-align: center;
}
.form-privacy a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.form-privacy a:hover { color: var(--green); }

/* ===================== FOUNDER CREDIBILITY BAND ===================== */
.credibility-band {
  border-top: 1px solid var(--hairline);
  padding: 40px 0;
}
.credibility-band p {
  max-width: 60ch;
  margin: 0 auto;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.form-success {
  margin-top: 24px;
  padding: 22px 24px;
  background: rgba(61, 220, 132, 0.1);
  border: 1px solid rgba(61, 220, 132, 0.4);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1.1rem;
  font-family: var(--font-display);
  font-weight: 500;
}

/* ===================== LEGAL / PRIVACY PAGE ===================== */
.legal { padding: 64px 0 88px; }
.legal .back-link {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.95rem;
}
.legal .back-link:hover { color: var(--green); }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 12px; }
.legal-updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 36px; }
.legal h2 { font-size: 1.3rem; margin: 36px 0 10px; }
.legal p { color: var(--muted); font-size: 1.05rem; margin-bottom: 14px; }
.legal a { color: var(--green); }
.legal a:hover { text-decoration: underline; }

/* ===================== FOOTER ===================== */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 56px 0;
}
.footer-inner { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
.footer-boilerplate { color: var(--muted); font-size: 1rem; }
.footer-tagline { font-family: var(--font-display); font-size: 1.05rem; }
.footer-fineprint { color: var(--muted); font-size: 0.9rem; display: flex; gap: 10px; flex-wrap: wrap; }
.footer-fineprint a:hover { color: var(--green); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 880px) {
  .callout-grid { grid-template-columns: 1fr; }
  .promise-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .tier-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 60px 0 56px; }
  .container { padding: 0 18px; }
  .scan-form { padding: 24px 20px; }

  /* the start-zone band is content-sized, so it reflows to wrap steps 1–2 on its own */
  .ladder-close .btn { width: 100%; } /* full tap target */
}

/* ===================== REDUCED MOTION ===================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rung { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}
