/* =====================================================================
   BrandScout · Homepage (Home.html)
   Shares tokens.css. Uses SAME palette / typography as the product UI.
   ===================================================================== */

html.home, html.home body {
  overflow-y: auto;          /* product pages lock overflow; home scrolls */
  overflow-x: hidden;
  height: auto;
  scroll-behavior: smooth;
}

body.home {
  background: var(--dp-bg);
  color: var(--surface-ink);
}

/* ---------- Topbar (home variant - sticky, full-width) ---------- */
.home-topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 14px 40px;
  background: rgba(250, 248, 255, 0.85);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(26, 13, 59, 0.06);
}

.home-topbar .topbar-brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit;
}
.home-topbar .brand-mark {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
}
.home-topbar .brand-mark img { width: 30px; height: 30px; object-fit: contain; }
.home-topbar .brand-lock { display: flex; flex-direction: column; line-height: 1; }
.home-topbar .brand-name { font-weight: 700; font-size: 14.5px; color: var(--n-900); letter-spacing: -0.01em; }
.home-topbar .brand-by { font-size: 9.5px; color: var(--n-400); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 2px; }

.home-nav {
  display: flex; align-items: center; gap: 4px;
}
.home-nav a {
  color: var(--n-500);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 7px;
  transition: color 0.12s, background 0.12s;
}
.home-nav a:hover { color: var(--n-900); background: rgba(26, 13, 59, 0.04); }
.home-nav a.active { color: var(--dp-blue); }

.home-topbar .spacer { flex: 1; }
.home-topbar .sign-in {
  font-size: 13px;
  font-weight: 500;
  color: var(--n-600);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 7px;
  transition: color 0.12s;
}
.home-topbar .sign-in:hover { color: var(--n-900); }

.btn-demo {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  background: var(--dp-navy);
  color: #fff;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
}
.btn-demo:hover {
  background: var(--dp-navy-2);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(26, 13, 59, 0.18);
}
.btn-demo .arrow { transition: transform 0.2s var(--ease-out); }
.btn-demo:hover .arrow { transform: translateX(3px); }

/* ==========================================================
   HERO WRAPPER - soft pearly lavender backdrop for topbar + hero
   (matches Login.html body background: --surface-3 / #F5F3F9)
   ========================================================== */
.hero-wrap {
  position: relative;
  background: #F5F3F9;
  isolation: isolate;
}
.hero-wrap > * { position: relative; z-index: 1; }

/* Topbar on the lavender - translucent so the bg shows through */
.hero-wrap .home-topbar {
  background: rgba(245, 243, 249, 0.85);
  border-bottom-color: rgba(26, 13, 59, 0.06);
}

/* ---------- Global section scaffolding ---------- */
.hm-section {
  padding: 96px 40px;
  position: relative;
}
.hm-container {
  max-width: 1320px;
  margin: 0 auto;
}
.hm-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--dp-blue);
  margin-bottom: 20px;
}
.hm-eyebrow::before {
  content: '';
  width: 18px; height: 1px;
  background: var(--dp-blue);
}
.hm-h2 {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--n-900);
  margin: 0 0 16px;
  text-wrap: balance;
}
.hm-lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--n-500);
  max-width: 620px;
  margin: 0;
  text-wrap: pretty;
}

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  padding: 32px 40px 64px;
  position: relative;
  overflow: hidden;
  max-width: 1320px;
  margin: 0 auto;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
  gap: 32px;
  align-items: center;
  min-height: 560px;
}
.hero-copy {
  max-width: none;
  margin: 0;
  padding: 0;
  text-align: left;
}
.hero-copy .hero-ctas { justify-content: flex-start; }

.hero-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 16px 6px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--n-600);
  margin-bottom: 28px;
  box-shadow: var(--shadow-xs);
}
.hero-pill .pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--s-ok);
  box-shadow: 0 0 0 0 var(--s-ok);
  animation: pulse-dot 2s ease-in-out infinite;
}
.hero-pill .chip-mini {
  background: var(--n-75);
  color: var(--n-700);
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 2px;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(31, 168, 103, 0.5); }
  50%      { box-shadow: 0 0 0 6px rgba(31, 168, 103, 0); }
}

.hero h1 {
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--n-900);
  margin: 0 0 18px;
  text-wrap: balance;
}
.hero h1 .em {
  color: inherit;
  font-style: inherit;
  font-weight: inherit;
}
.hero .sub {
  font-size: 17px;
  line-height: 1.55;
  color: var(--n-500);
  margin: 0 0 28px;
  max-width: 520px;
  text-wrap: pretty;
}
.hero-ctas {
  display: flex; gap: 12px;
  margin-bottom: 0;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px;
  background: var(--dp-navy);
  color: #fff;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
}
.btn-primary:hover {
  background: var(--dp-navy-2);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(26, 13, 59, 0.24);
}
.btn-primary .arrow { transition: transform 0.2s var(--ease-out); }
.btn-primary:hover .arrow { transform: translateX(3px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 20px;
  background: transparent;
  color: var(--n-700);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.btn-ghost:hover {
  background: #fff;
  color: var(--n-900);
  border-color: var(--n-200);
}

.hero-trust {
  display: flex; align-items: center; gap: 20px;
  padding-top: 24px;
  border-top: 1px dashed var(--border);
  max-width: 420px;
}
.hero-trust .label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--n-400);
}
.hero-trust .logos {
  display: flex; gap: 14px;
  font-size: 13px;
  color: var(--n-500);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.hero-trust .logos span { opacity: 0.7; }

/* ---------- HERO : the graph ---------- */
.hero-stage {
  position: relative;
  width: 100%;
  height: 496px;
  overflow: hidden;
  background: transparent;
  border-radius: 14px;
  /* Soft fade on the outer edges so the graph feels like it continues past the frame */
  -webkit-mask-image: linear-gradient(to bottom right, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(to bottom right, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.hero-stage::after { content: none; }
.hero-stage::before { content: none; }
.hs-grid {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle, rgba(26,13,59,0.07) 1px, transparent 1.3px);
  background-size: 22px 22px;
  background-position: 0 0;
  pointer-events: none;
  opacity: 0.9;
  z-index: 0;
}

/* Orchestrator→agent edges: always visibly flowing */
.hs-edge {
  animation: hs-dash-flow 1.6s linear infinite;
}

/* Sub-agent connector lines: dashed + flowing, color-matched to the agent */
.hs-sub-line {
  stroke-dasharray: 3 3;
  animation: hs-dash-flow 1.1s linear infinite;
}
@keyframes hs-dash-flow {
  to { stroke-dashoffset: -12; }
}
.hero-stage-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.hero-stage-layer {
  position: absolute; inset: 0;
  pointer-events: none;
}

/* --- Stage status bar (top of hero stage) --- */
.hero-stage-status {
  position: absolute;
  top: 14px; left: 14px; right: 14px;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 10px;
  z-index: 4;
  font-size: 11px;
}
.hss-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--s-info);
  animation: pulse-hss 1.4s ease-in-out infinite;
  flex: none;
}
@keyframes pulse-hss {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
.hss-label {
  color: var(--n-600); font-weight: 500;
}
.hss-label .em { color: var(--n-900); font-weight: 600; }
.hss-spacer { flex: 1; }
.hss-stat {
  display: inline-flex; align-items: baseline; gap: 5px;
  font-family: var(--font-mono);
  color: var(--n-500);
}
.hss-stat .v { color: var(--n-900); font-weight: 700; font-size: 12px; }
.hss-stat .k { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--n-400); }
.hss-sep { width: 1px; height: 10px; background: var(--border); }

/* --- Orchestrator card (center) --- */
.hs-orch {
  position: absolute;
  top: 50% !important;
  left: 50% !important;
  /* !important pins the card to stage-center even if another rule or an
     inline style (e.g. a resize-driven layout reflow) attempts to shift it. */
  transform: translate(-50%, -50%) !important;
  width: 252px;
  padding: 14px 14px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow:
    0 18px 32px -12px rgba(26, 13, 59, 0.18),
    0 4px 10px -2px rgba(26, 13, 59, 0.08);
  z-index: 4;
}
.hs-orch::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 20px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.18) 0%, transparent 70%);
  z-index: -1;
  animation: orch-glow 3.5s ease-in-out infinite;
}
@keyframes orch-glow {
  0%, 100% { opacity: 0.5; transform: scale(0.95); }
  50%      { opacity: 1;   transform: scale(1.05); }
}
.hs-orch .head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px;
}
.hs-orch .brain {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--dp-gradient);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
}
.hs-orch .title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--n-900);
  line-height: 1.2;
}
.hs-orch .model {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--n-400);
  margin-top: 1px;
}
.hs-orch .thought {
  font-size: 11.5px;
  color: var(--n-700);
  line-height: 1.35;
  min-height: 32px;
  padding: 6px 8px;
  background: var(--n-25);
  border-radius: 6px;
  border-left: 2px solid var(--dp-blue);
  margin-bottom: 8px;
  overflow: hidden;
}
.hs-orch .thought .cursor {
  display: inline-block;
  width: 6px; height: 10px;
  background: var(--dp-blue);
  margin-left: 2px;
  animation: blink 1.2s ease-in-out infinite;
  vertical-align: text-bottom;
}
@keyframes blink { 50% { opacity: 0.35; } }
.hs-orch .prog {
  height: 3px;
  background: var(--n-75);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 6px;
}
.hs-orch .prog .fill {
  height: 100%;
  background: var(--dp-gradient);
  border-radius: 2px;
  transition: width 0.4s var(--ease-out);
}
.hs-orch .meta-row {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--n-500);
}
.hs-orch .meta-row .phase { color: var(--dp-blue); font-weight: 600; }
.hs-orch .meta-row .phase-right { color: var(--dp-blue); font-weight: 600; }

/* Orchestrator waiting-on row (grey strip under meta) */
.hs-orch .waiting-row {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.35;
}
.hs-orch .waiting-row .w-label {
  color: var(--n-400);
  letter-spacing: 0.08em;
  font-size: 9px;
  font-weight: 700;
  margin-bottom: 2px;
}
.hs-orch .waiting-row .w-body {
  color: var(--n-600);
}

/* Orchestrator 4-cell stat bar (AGENTS / FINDINGS / TOKENS / CONTEXT) */
.hs-orch .stat-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.hs-orch .sb-cell {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  padding: 0 2px;
  position: relative;
}
.hs-orch .sb-cell + .sb-cell::before {
  content: '';
  position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px;
  background: var(--border);
}
.hs-orch .sb-cell .k {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--n-400);
  font-weight: 600;
}
.hs-orch .sb-cell .v {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--n-900);
  font-weight: 700;
  font-feature-settings: 'tnum';
}

/* --- Agent cards (orbiting) --- */
.hs-agent {
  position: absolute;
  width: 190px;
  padding: 10px 11px 9px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent, var(--dp-blue));
  border-radius: 9px;
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow 0.3s,
    opacity 0.55s cubic-bezier(.4,0,.2,1),
    left 0.9s cubic-bezier(.65,0,.35,1),
    top  0.9s cubic-bezier(.65,0,.35,1);
  /* anchored by its CENTER; --fy is driven by the float keyframe below */
  --fy: 0px;
  transform: translate(-50%, calc(-50% + var(--fy)));
  animation: hs-agent-float var(--float-dur, 5.4s) var(--ease-in-out) var(--float-delay, 0s) infinite;
  z-index: 2;
}
/* A brief "unmounting" state while the agent slides to a new slot */
.hs-agent.reslotting {
  opacity: 0.08 !important;
  filter: blur(2px);
  pointer-events: none;
  transition:
    opacity 0.35s cubic-bezier(.4,0,.2,1),
    filter  0.35s cubic-bezier(.4,0,.2,1),
    left    0.9s cubic-bezier(.65,0,.35,1),
    top     0.9s cubic-bezier(.65,0,.35,1);
}
@keyframes hs-agent-float {
  0%, 100% { --fy: 0px; }
  50%      { --fy: -7px; }
}
@property --fy {
  syntax: '<length>';
  inherits: false;
  initial-value: 0px;
}
.hs-agent.idle   { opacity: 0.55; filter: grayscale(0.2); }
/* Outer-ring agents are slightly smaller and dimmer - they sit further back */
.hs-agent.outer {
  width: 172px;
  transform: translate(-50%, calc(-50% + var(--fy))) scale(0.95);
}
.hs-agent.outer.idle { opacity: 0.45; }
.hs-agent.running {
  box-shadow:
    0 10px 22px -6px rgba(26, 13, 59, 0.18),
    0 0 0 3px color-mix(in oklab, var(--accent) 18%, transparent);
  z-index: 3;
}
.hs-agent.done { opacity: 0.9; }
.hs-agent .a-head {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 2px;
}
.hs-agent .a-status {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex: none;
  background: var(--n-200);
  transition: background 0.3s;
  position: relative;
}
.hs-agent.running .a-status {
  background: var(--accent, var(--dp-blue));
}
.hs-agent.running .a-status::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--accent, var(--dp-blue));
  opacity: 0.3;
  animation: a-pulse 1.3s ease-out infinite;
}
@keyframes a-pulse {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(2); opacity: 0; }
}
.hs-agent.done .a-status { background: var(--s-ok); }
.hs-agent .a-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--n-900);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}
.hs-agent .a-runtime {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--n-400);
  font-feature-settings: 'tnum';
}
.hs-agent .a-model {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--n-500);
  margin-bottom: 6px;
  line-height: 1.2;
}
.hs-agent .a-meta {
  display: flex; gap: 10px; align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--n-400);
  padding: 5px 7px;
  background: var(--n-25);
  border-radius: 5px;
  font-feature-settings: 'tnum';
}
.hs-agent .a-meta > span { display: inline-flex; align-items: center; gap: 3px; }
.hs-agent .a-tokens [data-tok],
.hs-agent .a-bytes  [data-kb] { color: var(--n-700); font-weight: 600; }

/* Sub-agent chips fan outward FROM the agent, toward the edge of the stage.
   Cards in the top of the stage get chips ABOVE them; bottom cards ABOVE;
   left-column cards get chips to their LEFT; right-column to their RIGHT. */
.hs-agent .a-subs {
  position: absolute;
  display: flex; gap: 3px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
/* horizontal fan (top/bottom) */
.hs-agent[data-pos="top"] .a-subs,
.hs-agent[data-pos="bottom"] .a-subs {
  flex-direction: column;
  left: 0;
  right: 0;
  width: auto;
  align-items: center;
}
.hs-agent[data-pos="top"] .a-subs {
  bottom: 100%;
  margin-bottom: 10px;
  flex-direction: column-reverse;
}
.hs-agent[data-pos="bottom"] .a-subs {
  top: 100%;
  margin-top: 10px;
}
.hs-agent[data-pos="top"] .a-subs .a-sub,
.hs-agent[data-pos="bottom"] .a-subs .a-sub {
  width: fit-content;
}
/* vertical fan (left/right) */
.hs-agent[data-pos="left"] .a-subs,
.hs-agent[data-pos="right"] .a-subs {
  flex-direction: column;
  top: 6px;
  width: 130px;
}
.hs-agent[data-pos="left"] .a-subs {
  right: 100%;
  margin-right: 10px;
  align-items: flex-end;
}
.hs-agent[data-pos="right"] .a-subs {
  left: 100%;
  margin-left: 10px;
  align-items: flex-start;
}
.hs-agent.running .a-subs { opacity: 1; }
.hs-agent .a-subs:empty { display: none; }
.a-sub {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 10px;
  color: var(--n-600);
  box-shadow: var(--shadow-sm);
  animation: find-in 0.35s var(--ease-out);
}
.a-sub .sub-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent, var(--dp-blue));
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--accent) 18%, transparent);
  flex: none;
}
.a-sub.done .sub-dot { background: var(--s-ok); box-shadow: none; }
.a-sub .sub-name {
  flex: 1;
  font-family: var(--font-mono);
  color: var(--n-700);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.a-sub .sub-tok {
  font-family: var(--font-mono);
  color: var(--n-400);
  font-feature-settings: 'tnum';
}

/* In-card finding rows, shown when agent completes (like the "Report ready",
   "Phishing kits listed publicly" rows in the Agents.html graph). */
.hs-agent .a-findings {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--n-100);
  display: flex; flex-direction: column; gap: 3px;
}
.hs-agent .a-findings:empty {
  display: none;
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}
.a-find-row {
  display: flex; align-items: flex-start; gap: 6px;
  font-size: 10.5px;
  line-height: 1.3;
  color: var(--n-700);
  animation: find-in 0.45s var(--ease-out) both;
}
.a-find-row .fr-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--fr, var(--s-info));
  margin-top: 5px;
  flex: none;
}
.a-find-row.crit { --fr: var(--s-crit); }
.a-find-row.warn { --fr: var(--s-warn); }
.a-find-row.info { --fr: var(--s-info); }
.a-find-row.ok   { --fr: var(--s-ok); }
.a-find-row .fr-t {
  flex: 1; min-width: 0;
  color: var(--n-800);
  font-weight: 500;
}

/* --- Findings ticker: disabled in hero (agents themselves show status) --- */
.hs-findings { display: none; }
.hs-find-card {
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--sev, var(--n-300));
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  animation: find-in 0.5s var(--ease-out);
}
.hs-find-card.crit { --sev: var(--s-crit); }
.hs-find-card.warn { --sev: var(--s-warn); }
.hs-find-card.info { --sev: var(--s-info); }
.hs-find-card.ok   { --sev: var(--s-ok); }
@keyframes find-in {
  0%   { opacity: 0; transform: translateX(20px) scale(0.96); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}
.hs-find-card .fc-top {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 3px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hs-find-card .sev-tag {
  padding: 1px 5px;
  border-radius: 2px;
  background: var(--sev-bg, var(--n-50));
  color: var(--sev, var(--n-600));
}
.hs-find-card.crit .sev-tag { background: var(--s-crit-bg); color: var(--s-crit); }
.hs-find-card.warn .sev-tag { background: var(--s-warn-bg); color: var(--s-warn); }
.hs-find-card.info .sev-tag { background: var(--s-info-bg); color: var(--s-info); }
.hs-find-card .fc-agent {
  color: var(--n-500);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1; min-width: 0;
}
.hs-find-card .fc-title {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--n-900);
  line-height: 1.25;
  text-wrap: pretty;
}

/* ==========================================================
   PROBLEM STRIP
   ========================================================== */
.problem {
  padding: 80px 0 96px;
  background: var(--n-0);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.problem-head {
  max-width: 1320px;
  margin: 0 auto 40px;
  padding: 0 40px;
}
.problem-head .hm-h2 { font-size: 36px; }
.problem-head .hm-lede { max-width: 680px; }

.marquee {
  position: relative;
  overflow: hidden;
  margin: 0 -40px;
  padding: 14px 0;
  mask-image: linear-gradient(to right, transparent 0, #000 120px, #000 calc(100% - 120px), transparent 100%);
}
.marquee-track {
  display: flex; gap: 10px;
  width: max-content;
  animation: marquee-flow 52s linear infinite;
}
@keyframes marquee-flow {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.dom-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--n-600);
  white-space: nowrap;
  flex: none;
}
.dom-chip.t-crit {
  border-color: var(--s-crit-bg);
  background: var(--s-crit-bg);
  color: var(--s-crit);
}
.dom-chip.t-warn {
  border-color: var(--s-warn-bg);
  background: var(--s-warn-bg);
  color: var(--s-warn);
}
.dom-chip .lbl {
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.5);
}
.dom-chip.t-crit .lbl { background: #fff; color: var(--s-crit); }
.dom-chip.t-warn .lbl { background: #fff; color: var(--s-warn); }

.problem-stats {
  max-width: 1320px;
  margin: 56px auto 0;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.ps {
  padding: 0;
  border-left: 2px solid var(--dp-blue);
  padding-left: 20px;
}
.ps .big {
  font-size: 46px;
  font-weight: 600;
  color: var(--n-900);
  letter-spacing: -0.03em;
  line-height: 1;
  font-feature-settings: 'tnum';
  margin-bottom: 8px;
}
.ps .big .u { font-size: 24px; color: var(--n-500); font-weight: 500; margin-left: 4px; letter-spacing: 0; }
.ps .desc { color: var(--n-500); font-size: 14px; line-height: 1.5; }

/* ==========================================================
   HOW IT WORKS
   ========================================================== */
.how {
  padding: 112px 40px;
  background: var(--dp-bg);
}
.how-head { max-width: 1320px; margin: 0 auto 56px; }
.how-inner { max-width: 1320px; margin: 0 auto; }

/* Phase timeline */
.how-timeline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: stretch;
}
.phase-list {
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 0;
}
.phase-list::before {
  content: '';
  position: absolute;
  left: 15px; top: 12px; bottom: 12px;
  width: 2px;
  background: var(--border);
  border-radius: 1px;
}
.phase-list::after {
  content: '';
  position: absolute;
  left: 15px; top: 12px;
  width: 2px;
  height: var(--progress, 0%);
  background: var(--dp-gradient);
  border-radius: 1px;
  transition: height 0.5s var(--ease-out);
  z-index: 1;
}
.phase-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 20px;
  padding: 14px 0;
  cursor: pointer;
  position: relative;
  z-index: 2;
}
.phase-item .dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--n-400);
  flex: none;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.phase-item.active .dot {
  background: var(--dp-blue);
  border-color: var(--dp-blue);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.14);
}
.phase-item.done .dot {
  background: var(--dp-navy);
  border-color: var(--dp-navy);
  color: #fff;
}
.phase-item .body { flex: 1; min-width: 0; padding-top: 4px; }
.phase-item .p-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--n-800);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
  transition: color 0.2s;
}
.phase-item.active .p-title { color: var(--dp-blue); }
.phase-item .p-desc {
  font-size: 13.5px;
  color: var(--n-500);
  line-height: 1.5;
  text-wrap: pretty;
}

/* Phase visual */
.phase-visual {
  position: relative;
  align-self: stretch;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.pv-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.pv-head .pv-phase {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dp-blue);
}
.pv-head .pv-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--n-900);
}
.pv-head .pv-spacer { flex: 1; }
.pv-head .pv-status {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--n-500);
}
.pv-head .pv-status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--s-info); animation: pulse-hss 1.4s ease-in-out infinite; }

.pv-body {
  flex: 1;
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
}
.pv-slot { display: none !important; }
.pv-slot.active { display: block !important; animation: slot-in 0.4s var(--ease-out); }
.pv-slot.slot-portfolio.active { display: flex !important; flex-direction: column; gap: 4px; }
.pv-slot.slot-cyber.active    { display: flex !important; flex-direction: column; gap: 12px; }
.pv-slot.slot-store.active    { display: flex !important; flex-direction: column; gap: 12px; }
.pv-slot.slot-peer.active     { display: flex !important; flex-direction: column; gap: 10px; }
.pv-slot.slot-security.active { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px; }
.pv-slot.slot-synth.active    { display: flex !important; flex-direction: column; gap: 10px; }

/* Slot footer: evidence + stats at the bottom of every phase slot */
.pv-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 2px 2px;
  border-top: 1px dashed var(--border);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--n-500);
  flex-wrap: wrap;
}
.pv-foot-k { color: var(--n-400); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; font-size: 9.5px; }
.pv-foot-v { color: var(--n-800); font-weight: 600; margin-left: 4px; }
.pv-foot-v.crit { color: var(--s-crit); }
.pv-foot-v.warn { color: var(--s-warn); }
.pv-foot-v.ok   { color: var(--s-ok); }
.pv-foot-sep {
  width: 1px; height: 10px; background: var(--border);
  margin: 0 4px;
}

/* Portfolio / store rows get a max-height scroll area so footer stays in frame */
.sp-rows, .ss-rows {
  display: flex; flex-direction: column; gap: 4px;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  position: relative;
}
.sp-rows::after, .ss-rows::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 32px;
  background: linear-gradient(to bottom, transparent, #fff 90%);
  pointer-events: none;
}
@keyframes slot-in {
  0%   { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Slot 1 - Portfolio discovery: domain rows streaming in */
.slot-portfolio { display: flex; flex-direction: column; gap: 4px; }
.sp-count-row {
  display: flex; align-items: baseline; gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border);
  margin-bottom: 12px;
}
.sp-count {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 600;
  color: var(--dp-blue);
  letter-spacing: -0.02em;
  font-feature-settings: 'tnum';
}
.sp-count-lbl {
  font-size: 11.5px;
  color: var(--n-500);
  font-weight: 500;
}
.sp-row {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 8px;
  background: var(--n-25);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--n-700);
  animation: row-in 0.35s var(--ease-out);
}
.sp-row .reg {
  font-size: 9.5px;
  color: var(--n-400);
  background: #fff;
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid var(--border);
  font-family: var(--font-sans);
  font-weight: 500;
}
.sp-row .spacer { flex: 1; }
.sp-row .check {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--s-ok-bg);
  color: var(--s-ok);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px;
  font-weight: 700;
}
@keyframes row-in {
  0%   { opacity: 0; transform: translateX(-10px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* Slot 2 - Cybersquat: grid of typo variants lighting up */
.slot-cyber {
  display: flex; flex-direction: column; gap: 12px;
}
.sc-label-row {
  display: flex; gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--n-500);
  margin-bottom: 4px;
}
.sc-label-row .tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 6px;
  background: var(--n-25);
  border-radius: 4px;
}
.sc-label-row .tag .d { width: 7px; height: 7px; border-radius: 50%; }
.sc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.sc-cell {
  padding: 10px 8px;
  background: var(--n-25);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--n-500);
  text-align: center;
  transition: all 0.3s var(--ease-out);
  position: relative;
}
.sc-cell.safe   { color: var(--n-300); }
.sc-cell.typo   {
  background: var(--s-crit-bg);
  border-color: var(--s-crit-bg);
  color: var(--s-crit);
  font-weight: 600;
}
.sc-cell.idn    {
  background: var(--s-warn-bg);
  border-color: var(--s-warn-bg);
  color: var(--s-warn);
  font-weight: 600;
}
.sc-cell.running::after {
  content: '';
  position: absolute;
  inset: -1px;
  border: 1.5px solid var(--dp-blue);
  border-radius: 6px;
  animation: sc-ping 0.8s ease-out;
}
@keyframes sc-ping {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.15); opacity: 0; }
}

/* Slot 3 - Fake store: 3 columns with data + verdict */
.slot-store {
  display: flex; flex-direction: column; gap: 12px;
}
.ss-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px; align-items: center;
  padding: 10px 12px;
  background: #FBFAFE;
  border: 1px solid var(--border);
  border-radius: 7px;
  animation: row-in 0.4s var(--ease-out);
}
.ss-row .d { font-family: var(--font-mono); font-size: 12px; color: var(--n-700); }
.ss-row .ip {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--n-400);
  padding: 2px 6px;
  background: var(--n-25);
  border-radius: 3px;
}
.ss-row .ver {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 7px;
  border-radius: 3px;
}
.ss-row .ver.crit { background: var(--s-crit-bg); color: var(--s-crit); }
.ss-row .ver.warn { background: var(--s-warn-bg); color: var(--s-warn); }
.ss-cluster {
  padding: 10px 12px;
  background: var(--s-crit-bg);
  border-radius: 7px;
  font-size: 12px;
  color: var(--s-crit);
  font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}

/* Slot 4 - Peer comparison */
.slot-peer {
  display: flex; flex-direction: column; gap: 12px;
}
.peer-legend {
  display: flex; gap: 16px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--n-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-bottom: 2px;
}
.pl-item { display: inline-flex; align-items: center; gap: 6px; }
.pl-dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block;
}
.pl-dot.strong { background: #18A06A; }
.pl-dot.mid    { background: #D9A227; }
.pl-dot.weak   { background: #D6443C; }

.peer-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr 0.7fr 0.7fr 0.9fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.pg-cell {
  background: #fff;
  padding: 11px 12px;
  font-size: 12.5px;
  color: var(--n-800);
  display: flex; align-items: center;
  min-height: 38px;
}
.pg-cell.pg-head {
  background: #FBFAFE;
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--n-500);
  font-weight: 700;
  justify-content: center;
}
.pg-cell.pg-head:first-child { justify-content: flex-start; }
.pg-cell.pg-score { justify-content: flex-end; }
.pg-cell.pg-score.pg-head { justify-content: flex-end; }
.pg-cell.pg-name {
  font-weight: 600;
  gap: 8px;
}
.pg-cell.pg-name.us {
  background: color-mix(in oklch, var(--dp-blue) 6%, #fff);
  color: var(--dp-blue-900, var(--dp-blue));
}
.pg-cell.pg-score.us {
  background: color-mix(in oklch, var(--dp-blue) 6%, #fff);
}
.pg-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--dp-blue);
  color: #fff;
}
.pg-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  margin: 0 auto;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}
.pg-cell > .pg-dot { margin-inline: auto; }
.pg-cell:has(> .pg-dot) { justify-content: center; }
.pg-dot.strong { background: #18A06A; }
.pg-dot.mid    { background: #D9A227; }
.pg-dot.weak   { background: #D6443C; }
.pg-num {
  font-family: var(--font-mono);
  font-feature-settings: 'tnum';
  font-weight: 700;
  font-size: 13px;
  color: var(--n-900);
}
.pg-cell.pg-score.us .pg-num { color: var(--dp-blue); }

.peer-note {
  font-size: 11.5px;
  margin-top: 2px;
  padding: 9px 11px;
  background: var(--s-warn-bg);
  color: var(--s-warn);
  border-radius: 6px;
  display: flex; gap: 8px; align-items: center;
  font-weight: 500;
}

/* Slot 5 - Security audit */
.slot-security {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.sec-card {
  padding: 14px;
  background: #FBFAFE;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; flex-direction: column; gap: 6px;
}
.sec-card .k {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--n-400);
  font-weight: 700;
}
.sec-card .v {
  font-size: 22px;
  font-weight: 600;
  color: var(--n-900);
  font-family: var(--font-mono);
  font-feature-settings: 'tnum';
}
.sec-card .status {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 3px;
  align-self: flex-start;
}
.sec-card .status.warn { background: var(--s-warn-bg); color: var(--s-warn); }
.sec-card .status.crit { background: var(--s-crit-bg); color: var(--s-crit); }
.sec-card .status.ok   { background: var(--s-ok-bg);   color: var(--s-ok); }

/* Slot 6 - Synthesis (report appearing) */
.slot-synth { display: flex; flex-direction: column; gap: 10px; }
.synth-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px; background: var(--dp-blue-soft);
  border-radius: 8px;
}
.synth-head .icon {
  width: 30px; height: 30px; border-radius: 6px;
  background: var(--dp-navy); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.synth-head .title { font-size: 14px; font-weight: 600; color: var(--n-900); }
.synth-head .sub { font-size: 11px; color: var(--n-500); }
.synth-head .spacer { flex: 1; }
.synth-head .badge {
  padding: 3px 8px;
  background: var(--s-ok-bg); color: var(--s-ok);
  font-size: 10px; font-weight: 700;
  text-transform: uppercase;
  border-radius: 3px;
}
.synth-summary {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.synth-cell {
  padding: 10px 12px;
  background: var(--n-25);
  border-radius: 6px;
  text-align: left;
}
.synth-cell .n {
  font-family: var(--font-mono);
  font-size: 20px; font-weight: 700;
  color: var(--n-900);
  line-height: 1;
}
.synth-cell .n.crit { color: var(--s-crit); }
.synth-cell .n.warn { color: var(--s-warn); }
.synth-cell .l { font-size: 10px; color: var(--n-500); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 4px; }
.synth-actions {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 4px;
}
.synth-action {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  color: var(--n-700);
  animation: row-in 0.4s var(--ease-out);
}
.synth-action .pri {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--s-crit-bg); color: var(--s-crit);
}
.synth-action .pri.warn { background: var(--s-warn-bg); color: var(--s-warn); }

/* ==========================================================
   FINDINGS GALLERY
   ========================================================== */
.findings {
  padding: 112px 40px;
  background: var(--n-0);
  border-top: 1px solid var(--border);
}
.findings-head { max-width: 1320px; margin: 0 auto 48px; }
.findings-grid {
  max-width: 1320px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.fg-card {
  padding: 20px;
  background: var(--dp-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex; flex-direction: column;
  min-height: 220px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
}
.fg-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.fg-card .icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--accent-bg, var(--dp-blue-soft));
  color: var(--accent, var(--dp-blue));
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.fg-card.crit-t { --accent: var(--s-crit); --accent-bg: var(--s-crit-bg); }
.fg-card.warn-t { --accent: var(--s-warn); --accent-bg: var(--s-warn-bg); }
.fg-card.info-t { --accent: var(--s-info); --accent-bg: var(--s-info-bg); }
.fg-card.peer-t { --accent: var(--t-peer); --accent-bg: #d9f2f2; }

.fg-card .title {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--n-900);
  line-height: 1.25;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.fg-card .desc {
  font-size: 13px;
  color: var(--n-500);
  line-height: 1.5;
  text-wrap: pretty;
  margin-bottom: 14px;
}
.fg-card .sample {
  margin-top: auto;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--n-600);
  display: flex; align-items: center; gap: 6px;
}
.fg-card .sample .tag {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 2px;
  background: var(--accent-bg);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex: none;
}

/* ==========================================================
   SCALE BLOCK
   ========================================================== */
.scale {
  padding: 112px 40px;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(124, 58, 237, 0.14) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(236, 72, 153, 0.08) 0%, transparent 50%),
    var(--dp-navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.scale::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, #000 0%, #000 40%, transparent 90%);
}
.scale-inner { max-width: 1320px; margin: 0 auto; position: relative; }
.scale .hm-eyebrow { color: #C4B5FD; }
.scale .hm-eyebrow::before { background: #C4B5FD; }
.scale .hm-h2 {
  color: #fff;
  font-size: 52px;
  max-width: 920px;
  margin-bottom: 20px;
}
.scale .hm-h2 .em {
  background: linear-gradient(135deg, #C4B5FD 0%, #F9A8D4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.scale .hm-lede {
  color: rgba(255, 255, 255, 0.65);
  max-width: 680px;
  font-size: 17px;
}
.scale-stats {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.scale-stat {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
}
.scale-stat .big {
  font-family: var(--font-mono);
  font-size: 50px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
  font-feature-settings: 'tnum';
  margin-bottom: 12px;
}
.scale-stat .big .u {
  font-size: 26px;
  color: #C4B5FD;
  margin-left: 4px;
  letter-spacing: 0;
  font-weight: 500;
}
.scale-stat .k {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #C4B5FD;
  font-weight: 600;
  margin-bottom: 6px;
}
.scale-stat .desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

/* ==========================================================
   ENTERPRISE BLOCK
   ========================================================== */
.enterprise {
  padding: 112px 40px;
  background: var(--dp-bg);
}
.enterprise-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: 64px;
}
.ent-left .hm-h2 { font-size: 40px; }
.ent-features {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
}
.ent-feat {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
}
.ent-feat .ic {
  width: 24px; height: 24px;
  color: var(--dp-blue);
  flex: none;
}
.ent-feat .t {
  font-size: 14px;
  font-weight: 600;
  color: var(--n-900);
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}
.ent-feat .d {
  font-size: 12.5px;
  color: var(--n-500);
  line-height: 1.5;
}

/* CTA card (right column) */
.ent-cta {
  padding: 32px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 100px;
}
.ent-cta .label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dp-blue);
  margin-bottom: 10px;
}
.ent-cta h3 {
  font-size: 26px;
  font-weight: 600;
  color: var(--n-900);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  line-height: 1.15;
}
.ent-cta .price-row {
  display: flex; align-items: baseline; gap: 8px;
  padding: 14px 0;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
  margin: 18px 0 22px;
}
.ent-cta .price {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 600;
  color: var(--n-900);
  letter-spacing: -0.02em;
}
.ent-cta .price-sub { font-size: 13px; color: var(--n-500); }
.ent-cta .price-hint { display: block; font-size: 11.5px; color: var(--n-400); margin-top: 10px; font-family: var(--font-mono); }
.ent-cta ul.bullets {
  list-style: none; padding: 0; margin: 0 0 22px;
  display: grid; gap: 8px;
}
.ent-cta ul.bullets li {
  display: grid; grid-template-columns: 14px 1fr; gap: 8px;
  font-size: 13px; color: var(--n-600); line-height: 1.5;
}
.ent-cta ul.bullets li::before {
  content: '';
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--s-ok-bg);
  color: var(--s-ok);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 8px; font-weight: 700;
  margin-top: 4px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M3 6.2l2 2 4-4.4' fill='none' stroke='%231FA867' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}
.ent-cta .btn-primary { width: 100%; justify-content: center; }
.ent-cta .small-link {
  text-align: center;
  margin-top: 12px;
  font-size: 12px;
  color: var(--n-500);
}
.ent-cta .small-link a { color: var(--dp-blue); text-decoration: none; }

/* ==========================================================
   FOOTER
   ========================================================== */
.home-footer {
  padding: 48px 40px 36px;
  background: #fff;
  border-top: 1px solid var(--border);
}
.hf-inner {
  max-width: 1320px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  gap: 40px;
}
.hf-brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: inherit; text-decoration: none;
}
.hf-brand img { width: 28px; height: 28px; }
.hf-brand .name { font-weight: 700; font-size: 14px; color: var(--n-900); }
.hf-brand .by { font-size: 10px; color: var(--n-400); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 2px; font-weight: 600; }
.hf-links { display: flex; gap: 20px; }
.hf-links a { color: var(--n-500); font-size: 13px; text-decoration: none; }
.hf-links a:hover { color: var(--n-900); }
.hf-copy { font-size: 12px; color: var(--n-400); font-family: var(--font-mono); }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero h1 { font-size: 52px; }
  .findings-grid { grid-template-columns: repeat(2, 1fr); }
  .how-timeline { grid-template-columns: 1fr; }
  .phase-visual { position: static; }
  .enterprise-inner { grid-template-columns: 1fr; }
  .ent-cta { position: static; }
  .scale-stats { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
@media (max-width: 700px) {
  .hero, .problem, .how, .findings, .scale, .enterprise { padding-left: 20px; padding-right: 20px; }
  .problem-stats, .scale-stats { grid-template-columns: 1fr; }
  .findings-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 40px; }
  .hm-h2 { font-size: 32px; }
  .home-topbar { padding: 12px 20px; gap: 12px; }
  .home-nav { display: none; }
}
