/* ==========================================================================
   Threnda landing page
   Implementation of "Threnda Landing.dc.html" (Claude Design project
   66d20153-3aaa-464b-8935-5bf5a8bd9e00).

   The design file carries every value as an inline style. Those are lifted
   into tokens and components here so that pseudo-states (:hover, :focus,
   :active) — which the design expressed as style-hover / style-focus /
   style-active attributes — can exist as real CSS, and so a colour is
   changed in one place rather than ninety.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Surfaces, darkest to lightest */
  --bg: #06080b;
  --bg-alt: #070a0e;
  --bg-inset: #06090d;
  --bg-flat: #080b0f;
  --bg-card: #0a0d12;
  --bg-footer: #05070a;

  /* Foreground. The rgb triplet lets every muted tier be expressed as an
     alpha of one colour, exactly as the design does. */
  --text: #eef3f8;
  --text-rgb: 238, 243, 248;

  /* Text tiers, named for intent rather than for their alpha value */
  --text-strong: rgba(var(--text-rgb), 0.88);
  --text-body: rgba(var(--text-rgb), 0.72);
  --text-muted: rgba(var(--text-rgb), 0.60);
  --text-soft: rgba(var(--text-rgb), 0.52);
  --text-dim: rgba(var(--text-rgb), 0.44);
  --text-faint: rgba(var(--text-rgb), 0.36);
  --text-ghost: rgba(var(--text-rgb), 0.32);

  /* Brand */
  --accent: #3fbdf2;
  --accent-rgb: 63, 189, 242;
  --accent-soft: #7fd7f5;
  --accent-bright: #b9ecff;

  /* Severity scale — also the semantic status palette */
  --critical: #f2555a;
  --high: #f5a35c;
  --medium: #f0c860;
  --low: #5ec9a0;
  --critical-bg: rgba(242, 85, 90, 0.10);
  --high-bg: rgba(245, 163, 92, 0.10);
  --medium-bg: rgba(240, 200, 96, 0.10);
  --low-bg: rgba(94, 201, 160, 0.10);

  /* Hairlines */
  --line: rgba(255, 255, 255, 0.06);
  --line-soft: rgba(255, 255, 255, 0.04);
  --line-2: rgba(255, 255, 255, 0.07);
  --line-3: rgba(255, 255, 255, 0.08);
  --line-4: rgba(255, 255, 255, 0.10);
  --line-focus: rgba(127, 215, 245, 0.55);

  /* Type */
  --font: Geist, "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Metrics */
  --maxw: 1200px;
  --gutter: clamp(20px, 3vw, 32px);
  --gutter-nav: clamp(16px, 3vw, 32px);
  --section-y: clamp(56px, 7vw, 96px);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */

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

html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--bg); }

body {
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}

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

::selection { background: rgba(var(--accent-rgb), 0.28); }

img, svg { max-width: 100%; }

/* The `hidden` attribute is only `display: none` in the UA stylesheet, so any
   author rule that sets `display` silently defeats it. Anything marked hidden
   must actually be hidden — a half-rendered element with dead buttons is
   worse than no element. */
[hidden] { display: none !important; }
input, button { font: inherit; }
input::placeholder { color: rgba(var(--text-rgb), 0.30); }

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

/* A single visible focus treatment for every interactive element. The design
   only specified a focus style for inputs; keyboard users need one on links
   and buttons too. */
:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 9px;
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 550;
  transition: top 160ms var(--ease);
}
.skip-link:focus { top: 12px; color: var(--bg); }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  border-bottom: 1px solid var(--line);
}

/* Every in-page anchor target clears the sticky header. */
:target,
section[id],
footer[id] {
  scroll-margin-top: 112px;
}
@media (max-width: 680px) {
  section[id], footer[id] { scroll-margin-top: 96px; }
}
.section--alt { background: var(--bg-alt); }
.section__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--section-y) var(--gutter);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(127, 215, 245, 0.85);
  margin-bottom: 18px;
}

.section-title {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.028em;
  font-weight: 600;
}

.section-lede {
  margin: 14px 0 0;
  font-size: clamp(15.5px, 1.4vw, 17px);
  line-height: 1.55;
  color: rgba(var(--text-rgb), 0.56);
}

.section-head { max-width: 620px; margin-bottom: 56px; }
.section-head--wide { max-width: 680px; }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 9px;
  font-family: inherit;
  font-weight: 550;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 140ms var(--ease), background 140ms, border-color 140ms;
}

.btn--primary {
  height: 44px;
  padding: 0 22px;
  background: var(--text);
  color: var(--bg);
  font-size: 15px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12),
              0 8px 24px -12px rgba(var(--accent-rgb), 0.5);
}
.btn--primary:hover { background: #ffffff; color: var(--bg); }
.btn--primary:active { transform: scale(0.975); }

.btn--secondary {
  height: 44px;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-4);
  color: var(--text);
  font-size: 15px;
  font-weight: 450;
}
.btn--secondary:hover { background: rgba(255, 255, 255, 0.075); color: var(--text); }
.btn--secondary:active { transform: scale(0.975); }

.btn--sm {
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 450;
}

.btn--nav {
  height: 34px;
  padding: 0 15px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  font-size: 13.5px;
  letter-spacing: -0.005em;
}
.btn--nav:hover { background: #ffffff; color: var(--bg); }
.btn--nav:active { transform: scale(0.97); }

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(6, 8, 11, 0.82);
  border-bottom: 1px solid var(--line);
}

.announce {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 8px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(var(--accent-rgb), 0.05);
}
.announce__tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
}
.announce__text { font-size: 13px; color: rgba(var(--text-rgb), 0.62); }
.announce__link { font-size: 13px; font-weight: 500; color: var(--text); }
.announce__link:hover { color: var(--accent-bright); }

.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter-nav);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
}
.brand:hover { color: var(--text); }
.brand__mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: linear-gradient(180deg, #14202c, #0a1016);
  border: 1px solid rgba(127, 215, 245, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
.brand__dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.75);
}
.brand__name {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}
.nav__links a { color: rgba(var(--text-rgb), 0.66); }
.nav__links a:hover { color: var(--text); }

.nav__actions { display: flex; align-items: center; gap: 14px; }
.nav__signin { font-size: 14px; color: rgba(var(--text-rgb), 0.72); }
.nav__signin:hover { color: var(--text); }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

/* Decorative grid + glow. Both are aria-hidden in the markup. */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 78%);
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 78%);
}
.hero__glow {
  position: absolute;
  top: -280px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 520px;
  background: radial-gradient(ellipse at center, rgba(var(--accent-rgb), 0.16), transparent 68%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(56px, 7vw, 96px) var(--gutter) 0;
}
.hero__copy { max-width: 760px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 8px;
  border: 1px solid var(--line-3);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.025);
  margin-bottom: 28px;
}
.pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--low);
  box-shadow: 0 0 8px rgba(94, 201, 160, 0.8);
}
.pill__text {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(var(--text-rgb), 0.68);
}

.hero__title {
  margin: 0 0 22px;
  font-size: clamp(36px, 5.6vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 600;
}

.hero__lede {
  margin: 0 0 36px;
  font-size: clamp(16.5px, 1.5vw, 19px);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 620px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(var(--text-rgb), 0.34);
}

/* --------------------------------------------------------------------------
   7. Report preview (the hero mockup)
   -------------------------------------------------------------------------- */

.report-preview {
  margin: 72px 0 0;
  position: relative;
}
.report-preview__halo {
  position: absolute;
  inset: -1px;
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(127, 215, 245, 0.22), rgba(127, 215, 245, 0) 42%);
  pointer-events: none;
}
.report-preview__frame {
  position: relative;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: var(--bg-card);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.report-preview__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
  flex-wrap: wrap;
}
.report-preview__id { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.report-preview__mark {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: #101821;
  border: 1px solid rgba(127, 215, 245, 0.26);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.report-preview__mark span {
  width: 5px; height: 5px;
  border-radius: 1.5px;
  background: var(--accent);
}
.report-preview__name { font-size: 13px; font-weight: 550; }
.report-preview__host { font-family: var(--mono); font-size: 11px; color: var(--text-faint); }
.report-preview__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.report-preview__scan {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.risk-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 500;
  border: 1px solid rgba(240, 200, 96, 0.28);
  background: var(--medium-bg);
  color: var(--medium);
}

.report-preview__body {
  display: grid;
  grid-template-columns: minmax(240px, 272px) 1fr;
  min-height: 372px;
}

.report-preview__side {
  border-right: 1px solid var(--line);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.micro-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.score { display: flex; align-items: center; gap: 18px; }
.score__dial {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  flex-shrink: 0;
  /* --score-deg is set inline per instance so the dial tracks the score. */
  background: conic-gradient(
    var(--accent) 0deg,
    var(--accent) var(--score-deg, 262.8deg),
    rgba(255, 255, 255, 0.07) var(--score-deg, 262.8deg)
  );
}
.score__inner {
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.score__value {
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.score__max {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-faint);
  margin-top: 3px;
}

.legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
}
.legend li {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(var(--text-rgb), 0.62);
}
.swatch {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  flex-shrink: 0;
}
.swatch--critical { background: var(--critical); }
.swatch--high { background: var(--high); }
.swatch--medium { background: var(--medium); }
.swatch--low { background: var(--low); }

.rule { height: 1px; background: var(--line); }

.recs { display: flex; flex-direction: column; gap: 13px; }
.recs__list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.recs__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: rgba(var(--text-rgb), 0.82);
}
.recs__n {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(127, 215, 245, 0.85);
}

.insight {
  margin-top: auto;
  padding: 11px 12px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.02);
}
.insight__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(127, 215, 245, 0.8);
  margin-bottom: 6px;
}
.insight__text {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(var(--text-rgb), 0.58);
}

.report-preview__main { display: flex; flex-direction: column; min-width: 0; }

.mock-tabs {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  overflow-x: auto;
  scrollbar-width: none;
}
.mock-tabs::-webkit-scrollbar { display: none; }
.mock-tabs span { padding: 12px 0; color: rgba(var(--text-rgb), 0.44); white-space: nowrap; }
.mock-tabs .is-active {
  border-bottom: 1.5px solid var(--accent);
  color: var(--text);
  font-weight: 500;
}

.findings__head,
.findings__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px 128px 92px;
  column-gap: 12px;
}
.findings__head {
  padding: 9px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(var(--text-rgb), 0.34);
}
.findings__row {
  align-items: center;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13.5px;
}
.findings__name { color: var(--text-strong); min-width: 0; }
.findings__sev { font-size: 11.5px; font-weight: 500; }
.findings__cat { font-size: 12.5px; color: rgba(var(--text-rgb), 0.48); }
.findings__status {
  text-align: right;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(var(--text-rgb), 0.40);
}
.findings__head span:last-child { text-align: right; }

/* Severity colour is data-driven so the palette lives in one place. */
[data-sev="critical"] { color: var(--critical); }
[data-sev="high"] { color: var(--high); }
[data-sev="medium"] { color: var(--medium); }
[data-sev="low"] { color: var(--low); }

.report-preview__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
  flex-wrap: wrap;
}
.report-preview__export { color: rgba(127, 215, 245, 0.85); }

/* --------------------------------------------------------------------------
   8. Problem cards
   -------------------------------------------------------------------------- */

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 232px), 1fr));
  gap: 1px;
  border-radius: 12px;
}

.problem-card {
  background: var(--bg-flat);
  box-shadow: 0 0 0 1px var(--line-2);
  padding: 26px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 250px;
}
.problem-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.problem-card__n {
  font-family: var(--mono);
  font-size: 10.5px;
  color: rgba(var(--text-rgb), 0.3);
}
.problem-card__stat {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.problem-card__stat--warn { color: var(--high); }
.problem-card__text { margin-top: auto; }
.problem-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 550;
  letter-spacing: -0.012em;
}
.problem-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(var(--text-rgb), 0.5);
}

/* Miniature visualisations */
.bars {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 34px;
}
.bars span { flex: 1; border-radius: 1px; }

.header-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.header-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(var(--text-rgb), 0.5);
}
.header-list .swatch { border-radius: 1px; width: 5px; height: 5px; }

.empty-slot {
  height: 34px;
  border-radius: 6px;
  border: 1px dashed rgba(255, 255, 255, 0.13);
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-ghost);
}

.trendline { position: relative; height: 34px; }
.trendline::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}
.trendline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 100%;
  /* The colour band runs perpendicular to the gradient axis, so `to bottom
     right` is what produces a line rising left-to-right. The design file used
     `to top right`, which slopes the line down — the opposite of the card's
     up arrow and its "Growing ecommerce attacks" heading. */
  background: linear-gradient(to bottom right,
    transparent 48%,
    rgba(var(--accent-rgb), 0.65) 49%,
    rgba(var(--accent-rgb), 0.65) 51%,
    transparent 52%);
}

/* --------------------------------------------------------------------------
   9. How it works
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 24px;
}
.step {
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--bg-card);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.step__head { display: flex; align-items: center; gap: 10px; }
.step__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(127, 215, 245, 0.28);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent-soft);
  flex-shrink: 0;
}
.step__title { font-size: 15px; font-weight: 550; letter-spacing: -0.012em; }
.step p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(var(--text-rgb), 0.5);
}

.url-field {
  border: 1px solid var(--line-3);
  border-radius: 9px;
  background: var(--bg-inset);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.url-field__value {
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(var(--text-rgb), 0.7);
  overflow: hidden;
  text-overflow: ellipsis;
}
.url-field__cta {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--bg);
  font-size: 11.5px;
  font-weight: 550;
  flex-shrink: 0;
}

.meters { display: flex; flex-direction: column; gap: 9px; margin: 0; padding: 0; list-style: none; }
.meters li { display: flex; align-items: center; gap: 10px; }
.meters__label {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(var(--text-rgb), 0.5);
  width: 96px;
  flex-shrink: 0;
}
.meter {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.meter span { display: block; height: 100%; background: var(--accent); }
.meter--done span { background: var(--low); }
.meter--partial span { background: rgba(var(--accent-rgb), 0.6); }

.score-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line-3);
  border-radius: 9px;
  background: var(--bg-inset);
  padding: 12px;
}
.score-strip__value {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.score-strip__body { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.score-strip__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.score-strip__bar {
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.score-strip__bar span { display: block; height: 100%; background: var(--accent); }

/* --------------------------------------------------------------------------
   10. Platform cards
   -------------------------------------------------------------------------- */

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.feature {
  border: 1px solid var(--line-2);
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0) 60%), var(--bg-card);
  padding: 26px;
  transition: border-color 160ms;
}
.feature:hover { border-color: rgba(127, 215, 245, 0.26); }

.feature h3 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.feature__kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(127, 215, 245, 0.8);
  margin: -4px 0 10px;
}
.feature p {
  margin: 0 0 22px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-soft);
}
.feature__list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 20px 0 0;
  margin: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.feature__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(var(--text-rgb), 0.8);
}
.dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* The "Planned" card is deliberately dimmer — it describes work that does not
   ship yet, and should not read as an available capability. */
.feature--planned p { color: var(--text-dim); }
.feature--planned .feature__list li { color: rgba(var(--text-rgb), 0.55); }
.feature--planned .dot { background: rgba(var(--accent-rgb), 0.45); }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(var(--text-rgb), 0.5);
}

/* --------------------------------------------------------------------------
   11. Sample report
   -------------------------------------------------------------------------- */

.report-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.report-head__copy { max-width: 620px; }

.report-card {
  border: 1px solid var(--line-3);
  border-radius: 14px;
  background: var(--bg-card);
  overflow: hidden;
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.9);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat__label { margin-bottom: 10px; }
.stat__value {
  font-size: 22px;
  font-weight: 550;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat__value--score {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat__max { font-size: 14px; font-weight: 400; color: var(--text-dim); }
.stat__value--medium { color: var(--medium); }
.stat__value--low { color: var(--low); }

.report-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
}
.report-split__left { border-right: 1px solid var(--line); min-width: 0; }

.cats__head,
.cats__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px 76px 60px;
  column-gap: 14px;
}
.cats__head {
  padding: 11px 24px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(var(--text-rgb), 0.34);
}
.cats__head span:last-child { text-align: right; }
.cats__row {
  align-items: center;
  padding: 15px 24px;
  border-bottom: 1px solid var(--line-soft);
}
.cats__name { font-size: 14px; color: rgba(var(--text-rgb), 0.9); min-width: 0; }
.cats__count,
.cats__score {
  font-family: var(--mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.cats__count { color: rgba(var(--text-rgb), 0.5); }
.cats__score {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: rgba(var(--text-rgb), 0.7);
}

.sev-badge {
  display: inline-flex;
  align-items: center;
  padding: 2.5px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid transparent;
}
.sev-badge[data-sev="critical"] { color: var(--critical); background: var(--critical-bg); border-color: var(--critical-bg); }
.sev-badge[data-sev="high"] { color: var(--high); background: var(--high-bg); border-color: var(--high-bg); }
.sev-badge[data-sev="medium"] { color: var(--medium); background: var(--medium-bg); border-color: var(--medium-bg); }
.sev-badge[data-sev="low"] { color: var(--low); background: var(--low-bg); border-color: var(--low-bg); }

.remediation {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.rec {
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
  padding: 14px;
}
.rec__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}
.rec__title { font-size: 14px; font-weight: 550; letter-spacing: -0.012em; }
.rec__sev {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.rec p {
  margin: 0 0 9px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-soft);
}
.rec__meta {
  display: flex;
  gap: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-faint);
}

/* --------------------------------------------------------------------------
   12. Early access
   -------------------------------------------------------------------------- */

.cta { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.cta__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 100% at 50% 100%, rgba(var(--accent-rgb), 0.12), transparent 70%);
  pointer-events: none;
}
.cta__inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--section-y) var(--gutter);
}
.cta__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}
.cta__title {
  margin: 0 0 18px;
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 600;
}
.cta__lede {
  margin: 0 0 28px;
  font-size: clamp(15.5px, 1.4vw, 17px);
  line-height: 1.55;
  color: rgba(var(--text-rgb), 0.56);
  max-width: 480px;
}
.cta__points {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cta__points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-body);
}
.cta__points .dot { background: var(--low); }

.form-card {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(12, 16, 22, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 28px;
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.9);
}
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-body);
}
.field input {
  height: 42px;
  padding: 0 13px;
  border-radius: 9px;
  border: 1px solid var(--line-4);
  background: var(--bg-inset);
  color: var(--text);
  font-size: 14.5px;
  outline: none;
  transition: border-color 140ms, box-shadow 140ms;
  width: 100%;
}
/* Selects match the inputs exactly, with a chevron drawn as a data URI so no
   extra request is needed and the CSP stays as tight as it is. */
.field select {
  height: 42px;
  padding: 0 36px 0 13px;
  border-radius: 9px;
  border: 1px solid var(--line-4);
  background-color: var(--bg-inset);
  color: var(--text);
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%23eef3f8' stroke-opacity='.5' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  transition: border-color 140ms, box-shadow 140ms;
}
/* Native option lists are OS-drawn; force a readable palette on dark. */
.field select option { background: #0d1218; color: var(--text); }
.field select:invalid, .field select:has(option[value=""]:checked) {
  color: rgba(var(--text-rgb), 0.42);
}

.field input:focus,
.field select:focus {
  border-color: var(--line-focus);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.14);
}
.field select:focus-visible { outline: none; }
.field select[aria-invalid="true"] { border-color: rgba(242, 85, 90, 0.6); }
.field input:focus-visible { outline: none; }
.field input[aria-invalid="true"] {
  border-color: rgba(242, 85, 90, 0.6);
}
.field__error {
  font-size: 12px;
  color: var(--critical);
  min-height: 0;
}

.form__submit { margin-top: 4px; height: 44px; }
.form__note {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(var(--text-rgb), 0.4);
}
.form__note--ok { color: var(--low); }
.form__note--error { color: var(--high); }

/* Submit button while the request is in flight. */
.form[aria-busy="true"] .form__submit { opacity: 0.7; cursor: progress; }

/* Honeypot: hidden from people, tempting to naive bots. */
.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */

.site-footer { background: var(--bg-footer); }
.site-footer__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px var(--gutter) 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 36px 40px;
}
.site-footer__brand { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.site-footer__brand .brand__mark { width: 24px; height: 24px; }
.site-footer__brand .brand__dot { width: 7px; height: 7px; box-shadow: none; }
.site-footer__tagline {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(var(--text-rgb), 0.42);
  max-width: 260px;
}
.site-footer__col { display: flex; flex-direction: column; gap: 11px; }
.site-footer__col h2 {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(var(--text-rgb), 0.34);
  margin: 0 0 3px;
}
.site-footer__col a {
  font-size: 13.5px;
  color: rgba(var(--text-rgb), 0.62);
}
.site-footer__col a:hover { color: var(--text); }

/* Footer entries whose destination does not exist yet. Rendered as text, not
   links, so nothing in the footer leads nowhere. */
.soon-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  color: rgba(var(--text-rgb), 0.34);
  cursor: default;
}
.soon-badge {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(var(--text-rgb), 0.30);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 4px;
  padding: 1px 5px;
}
.site-footer__bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px var(--gutter) 40px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-ghost);
}
.status-ok::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--low);
  margin-right: 7px;
  vertical-align: middle;
}

/* --------------------------------------------------------------------------
   14. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 980px) {
  /* The report mockup's fixed sidebar cannot hold its width; stack it. */
  .report-preview__body { grid-template-columns: 1fr; }
  .report-preview__side {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .insight { margin-top: 0; }
}

@media (max-width: 880px) {
  .nav__links { display: none; }
  .nav { gap: 16px; }
}

@media (max-width: 760px) {
  /* Four numeric columns do not fit; reflow each row to a title line plus a
     metadata line rather than letting the table scroll sideways. */
  .findings__head, .cats__head { display: none; }

  .findings__row {
    grid-template-columns: auto auto 1fr;
    grid-template-areas: "name name name" "sev cat status";
    row-gap: 8px;
    padding: 14px 20px;
  }
  .findings__name { grid-area: name; }
  .findings__sev { grid-area: sev; }
  .findings__cat { grid-area: cat; }
  .findings__status { grid-area: status; }

  .cats__row {
    grid-template-columns: auto auto 1fr;
    grid-template-areas: "name name name" "sev count score";
    row-gap: 9px;
    padding: 16px 24px;
  }
  .cats__name { grid-area: name; }
  .cats__row > span:nth-child(2) { grid-area: sev; }
  .cats__count { grid-area: count; }
  .cats__score { grid-area: score; }

  .report-split__left { border-right: none; border-bottom: 1px solid var(--line); }
}

@media (max-width: 680px) {
  /* Text links are ~21px tall, just under the 24px minimum touch target.
     Padding grows the hit area; the matching negative margin keeps the
     visual rhythm of the footer columns exactly as designed. */
  .site-footer__col a,
  .site-footer__col .soon-link {
    padding-block: 5px;
    margin-block: -5px;
  }
  .announce__link { padding-block: 4px; }

  .announce { gap: 8px; padding: 8px 16px; }
  .announce__text { display: none; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .hero__actions .btn { flex: 1 1 100%; }
  .report-head { align-items: flex-start; }
}

@media (max-width: 520px) {
  .nav__signin { display: none; }
  .hero__trust { gap: 10px 20px; }
  .score { gap: 14px; }
  .report-preview__meta { width: 100%; }
}

/* --------------------------------------------------------------------------
   15. Motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
