/* ===================================================================
   Vesanor — Marketing Site Styles
   Linear-inspired dark mode. Calm, minimal, professional.
   =================================================================== */

/* --- Fonts (self-hosted, variable) --- */
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/JetBrainsMono-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* --- Custom Properties --- */
:root {
  --bg: #232326;
  --bg-elevated: #2C2C30;
  --surface: #2F2F33;
  --surface-hover: #37373C;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text-primary: #F4F5F8;
  --text-secondary: rgba(244, 245, 248, 0.65);
  --text-tertiary: rgba(244, 245, 248, 0.45);
  --text-quaternary: rgba(244, 245, 248, 0.30);
  --pass: #34d399;
  --fail: #f87171;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: 'JetBrains Mono', "SF Mono", "Fira Code", "Cascadia Code", monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 150ms;
  --duration-normal: 200ms;
  --duration-slow: 400ms;
  --section-gap: clamp(80px, 6vw + 48px, 160px);
  --site-margin: clamp(16px, 4vw, 24px);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

::selection {
  background: rgba(52, 211, 153, 0.20);
}

body {
  font-family: var(--font-sans);
  font-size: clamp(15px, 0.9rem + 0.2vw, 17px);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg);
  background-image: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 255, 255, 0.015) 0%, transparent 60%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

/* --- Skip to content (accessibility) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 8px 16px;
  background: var(--text-primary);
  color: var(--bg);
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  z-index: 1000;
  transition: top var(--duration-normal) var(--ease-out);
}

.skip-link:focus {
  top: 8px;
}

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--site-margin);
}

.container--narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--site-margin);
}

.container--code {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--site-margin);
}

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 56px;
  background: rgba(35, 35, 38, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--site-margin);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__wordmark {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  flex-shrink: 0;
}

.nav__center {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__right {
  display: flex;
  align-items: center;
}

.nav__link {
  font-size: 14px;
  font-weight: 450;
  color: var(--text-tertiary);
  transition: color var(--duration-fast) ease;
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--text-primary);
}

.nav__cta {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
  padding: 6px 16px;
  border-radius: 8px;
  transition: all var(--duration-fast) ease;
}

.nav__cta:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* Keep .nav__links for backward compat (security/docs pages) */
.nav__links {
  display: flex;
  gap: 28px;
  list-style: none;
}

/* --- Fluid Typography --- */
.headline {
  font-size: clamp(2.5rem, 2rem + 2.5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-wrap: balance;
}

.headline--page {
  font-size: clamp(2.25rem, 1.8rem + 2vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-align: center;
  text-wrap: balance;
  color: #ffffff;
}

.section__headline {
  font-size: clamp(2.25rem, 1.8rem + 2vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  text-align: center;
  text-wrap: balance;
  color: var(--text-primary);
}

.subhead {
  font-size: clamp(1.1rem, 1rem + 0.25vw, 1.25rem);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.6;
}

.text-muted { color: var(--text-secondary); }
.text-faint { color: var(--text-quaternary); }
.text-center { text-align: center; }

.label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-quaternary);
}

/* --- Sections --- */
.section {
  padding: var(--section-gap) 0;
  position: relative;
}

/* Subtle gradient atmosphere on alternating sections */
.section:nth-of-type(odd)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 80% 50% at 20% 50%, rgba(52, 211, 153, 0.025) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 80% 30%, rgba(99, 102, 241, 0.02) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.section > * {
  position: relative;
  z-index: 1;
}

.section--tight {
  padding: clamp(60px, 5vw + 30px, 120px) 0;
}

/* --- Hero --- */
.hero {
  padding: clamp(80px, 6vw + 20px, 140px) 0 var(--section-gap);
  text-align: center;
  position: relative;
}

/* Gradient mesh behind hero — depth + atmosphere */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 120%;
  height: 100%;
  background:
    radial-gradient(ellipse 60% 50% at 30% 20%, rgba(52, 211, 153, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 70% 60%, rgba(99, 102, 241, 0.05) 0%, transparent 70%),
    radial-gradient(ellipse 80% 40% at 50% 80%, rgba(52, 211, 153, 0.03) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero__headline {
  font-size: clamp(3rem, 2.5rem + 3vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1.05;
  text-wrap: balance;
  overflow-wrap: break-word;
  color: var(--text-primary);
}

.hero__headline-accent {
  background: linear-gradient(180deg, rgba(244, 245, 248, 0.95) 0%, rgba(244, 245, 248, 0.45) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subhead {
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.15rem);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 20px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero__ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.hero__terminal-wrapper {
  position: relative;
  max-width: 720px;
  margin: clamp(48px, 4vw + 16px, 72px) auto 0;
}

/* (terminal glow removed — Linear-style restraint) */

.hero__micro-proof {
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--text-tertiary);
  text-align: center;
  margin-top: 32px;
  letter-spacing: 0.02em;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: var(--text-primary);
  color: var(--bg);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  cursor: pointer;
  transition: opacity var(--duration-fast) ease;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-primary:active {
  opacity: 0.85;
}

.btn-primary:focus-visible {
  outline: 2px solid var(--pass);
  outline-offset: 2px;
}

.link-secondary {
  font-size: 14px;
  color: var(--text-tertiary);
  transition: color var(--duration-fast) ease;
}

.link-secondary:hover,
.link-secondary:focus-visible {
  color: var(--text-primary);
}

/* --- Terminal Window (realistic) --- */
.terminal {
  background: var(--bg-elevated);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 4px 24px rgba(0, 0, 0, 0.4),
    0 12px 48px rgba(0, 0, 0, 0.25),
    0 0 64px rgba(52, 211, 153, 0.03);
}

.terminal__header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal__dot:nth-child(1) { background: #ff5f57; }
.terminal__dot:nth-child(2) { background: #febc2e; }
.terminal__dot:nth-child(3) { background: #28c840; }

.terminal__title {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-quaternary);
  letter-spacing: 0.02em;
  margin-right: 36px; /* offset for dots to center the title */
}

.terminal__body {
  padding: clamp(18px, 2vw + 6px, 28px) clamp(16px, 2vw + 4px, 24px);
  overflow-x: auto;
  text-align: left;
}

.terminal__body pre {
  font-family: var(--font-mono);
  font-size: clamp(12.5px, 0.75rem + 0.15vw, 14px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  white-space: pre;
  margin: 0;
  -webkit-font-feature-settings: "calt" 0;
  font-feature-settings: "calt" 0;
}

/* Terminal text colors */
.t-muted   { color: var(--text-tertiary); }
.t-pass    { color: var(--pass); }
.t-fail    { color: var(--fail); }
.t-name    { color: var(--text-primary); }
.t-bold    { color: var(--text-primary); font-weight: 500; }
.t-url     { color: var(--text-secondary); }
.t-dim     { color: rgba(250, 250, 250, 0.50); }
.t-prompt  { color: #93c5fd; }
.t-cursor  { color: var(--text-primary); animation: blink 1s step-end infinite; }

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* --- Code Block (for YAML etc.) --- */
.code-block-wrapper {
  background: var(--bg-elevated);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 4px 24px rgba(0, 0, 0, 0.4),
    0 12px 48px rgba(0, 0, 0, 0.25),
    0 0 64px rgba(99, 102, 241, 0.03);
}

.code-block-wrapper__header {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-block-wrapper__label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-quaternary);
}

.code-block-wrapper__body {
  padding: clamp(20px, 2vw + 8px, 28px) clamp(20px, 2vw + 8px, 28px);
  overflow-x: auto;
}

.code-block-wrapper__body pre {
  font-family: var(--font-mono);
  font-size: clamp(12.5px, 0.75rem + 0.15vw, 14px);
  line-height: 1.7;
  color: var(--text-primary);
  white-space: pre;
  margin: 0;
}

/* YAML syntax colors */
.y-comment { color: #6ee7b7; font-style: italic; }
.y-key     { color: #93c5fd; }
.y-string  { color: #fde68a; }
.y-punct   { color: var(--text-tertiary); }

/* ===================================================================
   How It Works — Feature Rows
   =================================================================== */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: clamp(40px, 4vw, 64px) 0;
  position: relative;
}

/* Ambient glow behind feature visuals */
.feature-row--full-visual {
  overflow: visible;
}

.feature-row--full-visual::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 60%;
  transform: translate(-50%, -40%);
  background: radial-gradient(ellipse at center,
    rgba(52, 211, 153, 0.06) 0%,
    rgba(99, 102, 241, 0.04) 40%,
    transparent 70%
  );
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.feature-row + .feature-row {
  border-top: 1px solid var(--border);
  position: relative;
}

.feature-row + .feature-row::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(52, 211, 153, 0.15), rgba(99, 102, 241, 0.1), transparent);
  pointer-events: none;
}

.feature-row__step {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--pass);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.feature-row__title {
  font-size: clamp(1.25rem, 1.1rem + 0.4vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.feature-row__desc {
  font-size: clamp(0.9rem, 0.88rem + 0.1vw, 1rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 12px;
}

/* Full-width visual variant — visual spans both columns, content below */
.feature-row--full-visual {
  grid-template-columns: 1fr;
  text-align: center;
}

.feature-row--full-visual .feature-row__visual {
  max-width: 860px;
  margin: 0 auto;
}

.feature-row--full-visual .feature-row__content {
  max-width: 520px;
  margin: 0 auto;
}

/* ===================================================================
   Visual: Compare (Test step) — side-by-side premium
   =================================================================== */

.visual-compare {
  position: relative;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 4px 24px rgba(0, 0, 0, 0.4),
    0 12px 48px rgba(0, 0, 0, 0.25),
    0 0 64px rgba(52, 211, 153, 0.03);
}

.visual-compare__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.visual-compare__header-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.visual-compare__header-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--text-quaternary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.visual-compare__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
}

.visual-compare__col {
  padding: 16px;
}

.visual-compare__col-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.visual-compare__provider-name {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.visual-compare__provider-model {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-quaternary);
}

.visual-compare__col-results {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.visual-compare__cell {
  font-family: var(--font-mono);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
}

.visual-compare__cell span {
  flex-shrink: 0;
}

.visual-compare__cell--pass {
  color: var(--text-secondary);
}

.visual-compare__cell--pass span {
  color: var(--pass);
}

.visual-compare__cell--diff {
  color: var(--text-secondary);
  background: rgba(248, 113, 113, 0.06);
}

.visual-compare__cell--diff span {
  color: var(--fail);
}

.visual-compare__divider-v {
  width: 1px;
  background: var(--border);
}

.visual-compare__footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.015);
}

.visual-compare__footer-stat {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
}

.visual-compare__footer-stat--match {
  color: var(--pass);
  background: rgba(52, 211, 153, 0.1);
}

.visual-compare__footer-stat--diff {
  color: var(--fail);
  background: rgba(248, 113, 113, 0.1);
}

/* ===================================================================
   Visual: PR Checks (Gate step) — GitHub-style
   =================================================================== */

.visual-pr {
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 4px 24px rgba(0, 0, 0, 0.4),
    0 12px 48px rgba(0, 0, 0, 0.25),
    0 0 64px rgba(99, 102, 241, 0.03);
}

.visual-pr__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.visual-pr__icon {
  color: #3fb950;
  flex-shrink: 0;
}

.visual-pr__title {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: #e6edf3;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visual-pr__number {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #7d8590;
  flex-shrink: 0;
}

.visual-pr__checks {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.visual-pr__checks-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: #f85149;
  padding-bottom: 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.visual-pr__x-icon {
  color: #f85149;
  flex-shrink: 0;
}

.visual-pr__check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-family: var(--font-sans);
  font-size: 12px;
}

.visual-pr__check-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.visual-pr__check-dot--pass { background: #3fb950; }
.visual-pr__check-dot--fail { background: #f85149; }

.visual-pr__check-name {
  color: #e6edf3;
  font-weight: 500;
}

.visual-pr__check-detail {
  color: #7d8590;
  font-family: var(--font-mono);
  font-size: 11px;
  margin-left: auto;
}

.visual-pr__check-status {
  color: #7d8590;
  font-size: 11px;
  margin-left: auto;
}

.visual-pr__merge {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
}

.visual-pr__merge-btn {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 6px 14px;
  cursor: default;
  opacity: 0.5;
}

.visual-pr__merge-blocked {
  font-family: var(--font-sans);
  font-size: 12px;
  color: #f85149;
  font-weight: 500;
}

/* ===================================================================
   Simulated Dashboard — Frame + Sidebar (Phase 3A)
   =================================================================== */

/* === Demo-scoped warm light tokens === */
.demo-frame {
  --demo-bg: #FAFAF8;
  --demo-bg-elevated: #FFFFFF;
  --demo-surface: #FFFFFF;
  --demo-surface-hover: #F5F5F0;
  --demo-border: #E8E5DE;
  --demo-border-hover: #D5D0C8;
  --demo-border-strong: #B8B2A6;
  --demo-text-primary: #1C1917;
  --demo-text-secondary: #44403C;
  --demo-text-tertiary: #78716C;
  --demo-text-quaternary: #8C857F;
  --demo-pass: #16a34a;
  --demo-fail: #dc2626;
  --demo-amber: #d97706;
  --demo-link: #2563EB;
}

/* Floor glow beneath demo frame — blends into background */
.demo-frame::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 10%;
  width: 80%;
  height: 80px;
  background: radial-gradient(ellipse at center,
    rgba(52, 211, 153, 0.08) 0%,
    rgba(99, 102, 241, 0.04) 40%,
    transparent 70%
  );
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
}

/* Mobile fallback note — hidden on desktop, shown on mobile */
.demo-mobile-note {
  display: none;
  text-align: center;
  padding: 32px 24px;
  margin: clamp(32px, 3vw, 48px) auto 0;
  max-width: 420px;
}

.demo-mobile-note p {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-tertiary);
  margin: 0;
}

/* Frame — warm light island on dark page */
.demo-frame {
  position: relative;
  max-width: 960px;
  margin: clamp(48px, 4vw + 16px, 72px) auto 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: var(--demo-bg-elevated);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 8px 40px rgba(0, 0, 0, 0.4),
    0 24px 80px rgba(0, 0, 0, 0.3),
    0 0 120px rgba(52, 211, 153, 0.04),
    0 0 80px rgba(99, 102, 241, 0.03);
  overflow: hidden;
}

/* Gradient border glow behind demo frame */
.demo-frame::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 13px;
  background: linear-gradient(
    135deg,
    rgba(52, 211, 153, 0.18) 0%,
    rgba(99, 102, 241, 0.10) 50%,
    rgba(52, 211, 153, 0.12) 100%
  );
  z-index: -1;
  opacity: 0.7;
}

.demo-frame:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

/* Layout */
.demo-wrapper {
  display: flex;
  min-height: 520px;
  max-height: 600px;
}

/* Sidebar — matches real dashboard sidebar (white elevated panel) */
.demo-sidebar {
  width: 200px;
  background: var(--demo-bg-elevated);
  border-right: 1px solid var(--demo-border);
  padding: 16px 12px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.demo-sidebar-brand {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--demo-text-primary);
  padding: 4px 12px 16px;
  letter-spacing: -0.01em;
}

/* Nav items — match real Sidebar.tsx classes */
.demo-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--demo-text-tertiary);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-smooth),
              color var(--duration-fast) var(--ease-smooth);
}

.demo-nav-item:hover:not(.demo-nav-disabled) {
  background: var(--demo-surface-hover);
  color: var(--demo-text-primary);
}

.demo-nav-item.active {
  background: var(--demo-surface-hover);
  color: var(--demo-text-primary);
  font-weight: 500;
}

.demo-nav-disabled {
  color: var(--demo-text-quaternary);
  cursor: not-allowed;
  opacity: 0.5;
}

.demo-nav-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.demo-nav-item.active .demo-nav-icon {
  color: var(--demo-text-primary);
}

.demo-nav-item:not(.active) .demo-nav-icon {
  color: var(--demo-text-quaternary);
}

.demo-nav-item:hover:not(.demo-nav-disabled) .demo-nav-icon {
  color: var(--demo-text-primary);
}

.demo-nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-left: auto;
}

.demo-nav-dot--fail {
  background: var(--demo-fail);
}

.demo-nav-dot--pass {
  background: var(--demo-pass);
}

/* Main content — warm off-white matches real dashboard bg */
.demo-main {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  background: var(--demo-bg);
  text-align: left;
}

/* Placeholder text for empty pages */
.demo-placeholder-text {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--demo-text-quaternary);
}

/* === Demo page content (Phase 3B) === */

/* Page transition */
.demo-page {
  animation: demoPageIn 0.3s var(--ease-out) both;
}

@keyframes demoPageIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Page header */
.demo-page-header {
  margin-bottom: 16px;
}

.demo-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--demo-text-quaternary);
  margin-bottom: 6px;
}

.demo-page-title {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--demo-text-primary);
  line-height: 1.35;
  margin: 0 0 4px;
}

.demo-page-subtitle {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--demo-text-tertiary);
  line-height: 1.4;
  margin: 0;
}

/* Card grid */
.demo-card-grid {
  display: grid;
  gap: 12px;
}

.demo-card-grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.demo-card-grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Cards */
.demo-card {
  background: var(--demo-surface);
  border: 1px solid var(--demo-border);
  border-radius: 10px;
  padding: 14px 16px;
}

.demo-card--ref {
  margin-top: 12px;
}

.demo-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.demo-card-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--demo-text-quaternary);
}

.demo-card-value {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  color: var(--demo-text-primary);
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.demo-card-value--fail { color: var(--demo-fail); }
.demo-card-value--pass { color: var(--demo-pass); }

.demo-card-detail {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--demo-text-tertiary);
  margin-top: 6px;
  line-height: 1.4;
}

.demo-card-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--demo-text-quaternary);
  margin-top: 4px;
}

/* Dots */
.demo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.demo-dot--pass { background: var(--demo-pass); }
.demo-dot--fail { background: var(--demo-fail); }
.demo-dot--amber { background: var(--demo-amber); }

/* Badges — light pastel backgrounds with dark text */
.demo-badge {
  display: inline-flex;
  padding: 2px 10px;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.demo-badge--green {
  background: #F0FDF4;
  color: #15803D;
}

.demo-badge--red {
  background: #FEF2F2;
  color: #DC2626;
}

.demo-badge--amber {
  background: #FFFBEB;
  color: #D97706;
}

.demo-badge--blue {
  background: #EFF6FF;
  color: #2563EB;
}

.demo-badge--gray {
  background: #F5F5F0;
  color: #78716C;
}

/* Attention items */
.demo-attention {
  margin-top: 12px;
}

.demo-attention-item {
  background: var(--demo-surface);
  border: 1px solid var(--demo-border);
  border-radius: 10px;
  padding: 14px 16px;
}

.demo-attention-item--warning {
  border-left: 3px solid var(--demo-amber);
}

.demo-attention-title {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--demo-text-primary);
  margin-top: 6px;
}

.demo-attention-desc {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--demo-text-tertiary);
  margin-top: 4px;
  line-height: 1.4;
}

.demo-attention-cta {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--demo-link);
  cursor: pointer;
  text-decoration: none;
  margin-top: 8px;
}

.demo-attention-cta:hover {
  text-decoration: underline;
}

/* Action buttons */
.demo-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.demo-btn {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: background var(--duration-fast) var(--ease-smooth);
}

.demo-btn--primary {
  background: var(--demo-text-primary);
  color: #FFFFFF;
}

.demo-btn--primary:hover {
  background: var(--demo-text-secondary);
}

.demo-btn--secondary {
  background: var(--demo-surface);
  color: var(--demo-text-primary);
  border: 1px solid var(--demo-border);
}

.demo-btn--secondary:hover {
  background: var(--demo-surface-hover);
}

/* Runs table */
.demo-runs-table {
  margin-top: 12px;
  border: 1px solid var(--demo-border);
  border-radius: 10px;
  overflow: hidden;
}

.demo-runs-thead {
  display: flex;
  align-items: center;
  padding: 8px 14px;
  background: var(--demo-surface-hover);
  border-bottom: 1px solid var(--demo-border);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--demo-text-quaternary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.demo-run-row {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  background: var(--demo-surface);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-smooth);
}

.demo-run-row:hover {
  background: var(--demo-surface-hover);
}

.demo-runs-col {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--demo-text-tertiary);
}

.demo-runs-col--id { flex: 2; }
.demo-runs-col--result { flex: 1; }
.demo-runs-col--lane { flex: 1; }
.demo-runs-col--source { flex: 1; }
.demo-runs-col--time { flex: 1; text-align: right; }

.demo-run-id {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--demo-text-primary);
  font-weight: 500;
}

/* Run detail */
.demo-run-back {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--demo-link);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.demo-run-back:hover {
  text-decoration: underline;
}

.demo-run-meta {
  margin-top: 12px;
  background: var(--demo-surface);
  border: 1px solid var(--demo-border);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.demo-run-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-run-meta-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--demo-text-quaternary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  min-width: 60px;
}

.demo-run-meta-value {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--demo-text-primary);
}

code.demo-run-meta-value {
  font-family: var(--font-mono);
  font-weight: 500;
}

/* Step results */
.demo-run-steps {
  margin-top: 12px;
  border: 1px solid var(--demo-border);
  border-radius: 10px;
  overflow: hidden;
}

.demo-run-steps-header {
  padding: 8px 14px;
  background: var(--demo-surface-hover);
  border-bottom: 1px solid var(--demo-border);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--demo-text-quaternary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.demo-run-step {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 14px;
  background: var(--demo-surface);
  border-bottom: 1px solid var(--demo-border);
}

.demo-run-step:last-child {
  border-bottom: none;
}

.demo-run-step-icon {
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 1px;
}

.demo-run-step-icon--pass { color: var(--demo-pass); }
.demo-run-step-icon--fail { color: var(--demo-fail); }

.demo-run-step-name {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--demo-text-primary);
  flex-shrink: 0;
  min-width: 0;
}

.demo-run-step-detail {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--demo-text-tertiary);
  margin-left: auto;
  text-align: right;
  line-height: 1.4;
}

/* --- Changes page (Phase 3D) --- */
.demo-diff-card {
  background: var(--demo-surface);
  border: 1px solid var(--demo-border);
  border-radius: 10px;
  padding: 16px;
  margin-top: 12px;
}

.demo-diff-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.demo-diff-headline {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--demo-text-primary);
  margin: 0;
  line-height: 1.3;
}

.demo-diff-summary {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--demo-text-tertiary);
  margin: 6px 0 0;
  line-height: 1.5;
}

/* Per-tool breakdown */
.demo-diff-breakdown {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--demo-border);
}

.demo-diff-tool {
  background: var(--demo-bg-elevated);
  padding: 10px 12px;
}

.demo-diff-tool-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-diff-tool-icon {
  font-size: 12px;
  color: var(--demo-fail);
  flex-shrink: 0;
  width: 14px;
  text-align: center;
}

.demo-diff-tool-icon--pass {
  color: var(--demo-pass);
}

.demo-diff-tool-name {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--demo-text-primary);
}

.demo-diff-tool-detail {
  margin-top: 6px;
  padding-left: 22px;
}

.demo-diff-arg {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.demo-diff-arg-path {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--demo-fail);
  background: #FEF2F2;
  padding: 1px 6px;
  border-radius: 3px;
}

.demo-diff-arg-rule {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--demo-text-quaternary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.demo-diff-arg-expected {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--demo-text-tertiary);
  margin-top: 3px;
  line-height: 1.4;
}

.demo-diff-arg-expected code {
  font-family: var(--font-mono);
  font-size: 10px;
  background: var(--demo-surface-hover);
  padding: 1px 4px;
  border-radius: 3px;
  color: var(--demo-text-secondary);
}

.demo-diff-tool--pass .demo-diff-tool-detail {
  margin-top: 4px;
  padding-left: 22px;
}

.demo-diff-tool-pass-text {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--demo-pass);
}

/* Context footer */
.demo-diff-context {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--demo-border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.demo-diff-context-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-diff-context-label {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--demo-text-quaternary);
  min-width: 110px;
  flex-shrink: 0;
}

.demo-diff-context-value {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--demo-text-secondary);
}

.demo-diff-context-value code {
  font-family: var(--font-mono);
  font-size: 10px;
  background: var(--demo-surface-hover);
  padding: 1px 4px;
  border-radius: 3px;
  color: var(--demo-text-primary);
}

/* --- Contracts page (Phase 3E) --- */
.demo-contract-card {
  background: var(--demo-surface);
  border: 1px solid var(--demo-border);
  border-radius: 10px;
  margin-top: 12px;
  overflow: hidden;
}

.demo-contract-card-header {
  padding: 14px 16px;
}

.demo-contract-card-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.demo-contract-card-name {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--demo-text-primary);
}

.demo-contract-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.demo-contract-card-meta-item {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--demo-text-tertiary);
}

.demo-contract-card-meta-sep {
  font-size: 11px;
  color: var(--demo-text-quaternary);
}

/* YAML preview block */
.demo-yaml-block {
  border-top: 1px solid var(--demo-border);
}

.demo-yaml-header {
  padding: 6px 16px;
  background: var(--demo-surface-hover);
  border-bottom: 1px solid var(--demo-border);
}

.demo-yaml-filename {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--demo-text-quaternary);
}

.demo-yaml-body {
  background: #F5F5F0;
  padding: 14px 16px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.65;
  color: var(--demo-text-primary);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* YAML syntax tokens */
.dy-comment {
  color: #6B7C6B;
  font-style: italic;
}

.dy-key {
  color: #7C3AED;
}

.dy-value {
  color: var(--demo-text-primary);
}

.dy-punct {
  color: var(--demo-text-tertiary);
}

/* ===================================================================
   Simulated Dashboard — Guard Page (Phase 3F)
   =================================================================== */

/* Time filter tabs */
.demo-guard-filters {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  margin-bottom: 12px;
}

.demo-guard-tab {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid var(--demo-border);
  color: var(--demo-text-tertiary);
  cursor: default;
  transition: background var(--duration-fast) var(--ease-smooth),
              color var(--duration-fast) var(--ease-smooth);
}

.demo-guard-tab--active {
  background: var(--demo-surface-hover);
  border-color: var(--demo-border-strong);
  color: var(--demo-text-primary);
  font-weight: 600;
}

.demo-guard-window {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--demo-text-quaternary);
  margin-left: 8px;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--demo-border);
  background: var(--demo-bg);
}

/* Guard sections (timeline, failures) */
.demo-guard-section {
  background: var(--demo-surface);
  border: 1px solid var(--demo-border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 12px;
}

.demo-guard-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.demo-guard-section-title {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--demo-text-primary);
}

.demo-guard-section-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--demo-text-quaternary);
}

/* Timeline chart */
.demo-guard-timeline {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 80px;
  padding-bottom: 20px;
  position: relative;
}

.demo-guard-bucket {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  position: relative;
}

.demo-guard-bar-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-radius: 3px 3px 0 0;
  overflow: hidden;
  align-self: flex-end;
}

.demo-guard-bar {
  width: 100%;
  border-radius: 2px;
}

.demo-guard-bar--pass {
  background: var(--demo-pass);
  opacity: 0.85;
}

.demo-guard-bar--fail {
  background: var(--demo-fail);
  opacity: 0.85;
}

.demo-guard-bucket-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--demo-text-quaternary);
  position: absolute;
  bottom: -16px;
  white-space: nowrap;
}

/* Legend */
.demo-guard-legend {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  justify-content: flex-end;
}

.demo-guard-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--demo-text-quaternary);
}

.demo-guard-legend-swatch {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.demo-guard-legend-swatch--pass {
  background: var(--demo-pass);
}

.demo-guard-legend-swatch--fail {
  background: var(--demo-fail);
}

/* ===================================================================
   Simulated Dashboard — Shadow Page (Phase 3H)
   =================================================================== */

/* Pair header: Reference -> Candidate */
.demo-shadow-pair {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  background: var(--demo-surface);
  border: 1px solid var(--demo-border);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
}

.demo-shadow-pair-label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--demo-text-quaternary);
}

.demo-shadow-pair-title {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--demo-text-primary);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.demo-shadow-provider {
  white-space: nowrap;
}

.demo-shadow-arrow {
  color: var(--demo-text-quaternary);
  font-weight: 400;
}

.demo-shadow-pair-meta {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--demo-text-tertiary);
  margin-top: 6px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.demo-shadow-verdict-badge {
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 2px;
  border-radius: 999px;
  padding: 3px 12px;
  text-transform: uppercase;
}

/* Decision guidance box */
.demo-shadow-guidance {
  border-radius: 10px;
  border: 1px solid;
  padding: 16px;
  margin-bottom: 12px;
}

.demo-shadow-guidance--fail {
  background: #FEF2F2;
  border-color: rgba(220, 38, 38, 0.2);
}

.demo-shadow-guidance--pass {
  background: #F0FDF4;
  border-color: rgba(22, 163, 74, 0.2);
}

.demo-shadow-guidance-label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--demo-fail);
}

.demo-shadow-guidance--pass .demo-shadow-guidance-label {
  color: var(--demo-pass);
}

.demo-shadow-guidance-headline {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--demo-text-primary);
  margin-top: 4px;
}

.demo-shadow-guidance-body {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--demo-text-secondary);
  line-height: 1.5;
  margin-top: 6px;
}

.demo-shadow-guidance-confidence {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.demo-shadow-guidance-confidence-text {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--demo-text-secondary);
  line-height: 1.4;
}

/* Stats grid (reuses card-grid but custom stat cells) */
.demo-card-grid--stats {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 16px;
}

.demo-shadow-stat {
  background: var(--demo-surface);
  border: 1px solid var(--demo-border);
  border-radius: 8px;
  padding: 12px 14px;
}

.demo-shadow-stat-label {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--demo-text-quaternary);
}

.demo-shadow-stat-value {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--demo-text-primary);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

.demo-shadow-stat-value--alert {
  color: var(--demo-fail);
}

/* Section header above table */
.demo-shadow-section-header {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--demo-text-quaternary);
  margin-bottom: 8px;
}

/* Comparison table */
.demo-shadow-table-wrap {
  border: 1px solid var(--demo-border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}

.demo-shadow-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 12px;
}

.demo-shadow-table thead tr {
  background: var(--demo-surface-hover);
  border-bottom: 1px solid var(--demo-border);
}

.demo-shadow-table th {
  padding: 8px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--demo-text-quaternary);
}

.demo-shadow-table td {
  padding: 10px 14px;
  background: var(--demo-surface);
  border-bottom: 1px solid var(--demo-border);
  vertical-align: middle;
}

.demo-shadow-table tbody tr:last-child td {
  border-bottom: none;
}

.demo-shadow-table tbody tr:hover td {
  background: var(--demo-surface-hover);
}

.demo-shadow-tool-name {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--demo-text-primary);
  background: none;
}

.demo-shadow-detail {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--demo-text-tertiary);
}

.demo-shadow-detail code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--demo-text-secondary);
  background: var(--demo-surface-hover);
  padding: 1px 5px;
  border-radius: 3px;
}

/* Verdict tags */
.demo-shadow-verdict-tag {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.demo-shadow-verdict-tag--regression {
  background: #FEF2F2;
  color: #DC2626;
}

.demo-shadow-verdict-tag--match {
  background: #F0FDF4;
  color: #15803D;
}

/* Decision guidance footer */
.demo-shadow-decision {
  background: var(--demo-surface);
  border: 1px solid var(--demo-border);
  border-radius: 10px;
  padding: 14px 16px;
}

.demo-shadow-decision-label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--demo-text-quaternary);
}

.demo-shadow-decision-body {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--demo-text-secondary);
  line-height: 1.5;
  margin-top: 6px;
}

/* Responsive — collapse stats to 2-col on narrow */
@media (max-width: 640px) {
  .demo-card-grid--stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===================================================================
   Trust Strip
   =================================================================== */

.trust-strip {
  padding: clamp(24px, 2vw + 12px, 40px) 0;
  background: transparent;
}

.trust-strip__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.trust-strip__item {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0;
  padding: 4px 0;
}

.trust-strip__divider {
  color: var(--text-quaternary);
  padding: 0 clamp(10px, 1.5vw, 20px);
  font-size: 14px;
}

/* ===================================================================
   Workflow Visuals (How it works — Step 1)
   =================================================================== */

.workflow-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.workflow-visual__panel {
  width: 100%;
  min-width: 0;
}

.workflow-visual__placeholder {
  width: 100%;
}

/* Two-panel layout (terminal → contracts preview) */
.workflow-visual--two-panel {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(12px, 1.5vw, 24px);
  align-items: start;
}

.workflow-visual__arrow {
  font-size: 20px;
  color: var(--text-quaternary);
  padding-top: 72px;
  line-height: 1;
  user-select: none;
}

.workflow-visual__caption {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-quaternary);
  text-align: center;
  margin-top: 12px;
  letter-spacing: 0.04em;
}

/* --- Contracts Preview Panel --- */
.visual-contracts {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3),
              0 12px 32px rgba(0, 0, 0, 0.25);
}

.visual-contracts__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.visual-contracts__title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.visual-contracts__count {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-quaternary);
}

.visual-contracts__card {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.visual-contracts__card:last-child {
  border-bottom: none;
}

.visual-contracts__card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.visual-contracts__tool-name {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.visual-contracts__badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.visual-contracts__badge--generated {
  color: var(--pass);
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.15);
}

.visual-contracts__badge--pending {
  color: var(--text-tertiary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.visual-contracts__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-quaternary);
  margin-top: 4px;
}

.visual-contracts__action {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--pass);
  margin-top: 6px;
  display: inline-block;
}

/* --- Diff detail annotations --- */
.visual-compare__cell-detail {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fail);
  opacity: 0.6;
  padding: 0 8px 4px 28px;
}

/* ===================================================================
   Visual Differentiation — Step-specific accents
   Each "How it works" visual gets a unique color accent so they
   don't all look like the same dark card.
   =================================================================== */

/* --- Step 02: Review (amber accent) --- */
.visual-compare--review {
  border-left: 3px solid rgba(217, 119, 6, 0.5);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 4px 24px rgba(0, 0, 0, 0.4),
    0 12px 48px rgba(0, 0, 0, 0.25),
    0 0 80px rgba(217, 119, 6, 0.06);
}

.visual-compare__header--review {
  background: rgba(217, 119, 6, 0.06);
  border-bottom-color: rgba(217, 119, 6, 0.12);
}

.visual-compare__header-badge--amber {
  color: #fbbf24;
  background: rgba(217, 119, 6, 0.12);
  border-color: rgba(217, 119, 6, 0.2);
}

/* --- Step 03: Gate (GitHub-dark identity) --- */
.visual-pr {
  background: #0d1117;
  border-color: #30363d;
  border-left: 3px solid rgba(248, 81, 73, 0.5);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 4px 24px rgba(0, 0, 0, 0.5),
    0 12px 48px rgba(0, 0, 0, 0.35),
    0 0 80px rgba(248, 81, 73, 0.05);
}

.visual-pr__header {
  border-bottom-color: #21262d;
}

.visual-pr__checks {
  border-bottom: 1px solid #21262d;
}

.visual-pr__merge {
  border-top-color: #21262d;
  background: rgba(248, 81, 73, 0.03);
}

/* --- Migration: Shadow (indigo accent) --- */
.visual-compare--shadow {
  border-left: 3px solid rgba(99, 102, 241, 0.5);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 4px 24px rgba(0, 0, 0, 0.4),
    0 12px 48px rgba(0, 0, 0, 0.25),
    0 0 80px rgba(99, 102, 241, 0.08);
}

.visual-compare__header--shadow {
  background: rgba(99, 102, 241, 0.06);
  border-bottom-color: rgba(99, 102, 241, 0.12);
}

.visual-compare__header-badge--indigo {
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.2);
}

/* --- Step 01: Observe (green glow on contracts panel) --- */
.visual-contracts {
  border-left: 3px solid rgba(52, 211, 153, 0.4);
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.3),
    0 12px 32px rgba(0, 0, 0, 0.25),
    0 0 80px rgba(52, 211, 153, 0.06);
}

/* ===================================================================
   Outcome Cards (Why teams use Vesanor)
   =================================================================== */

.outcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: clamp(40px, 4vw, 72px);
}

.outcome-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: clamp(24px, 2vw + 8px, 32px);
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.2),
    0 0 40px rgba(52, 211, 153, 0.015);
  transition: border-color var(--duration-normal) ease, background var(--duration-normal) ease, box-shadow var(--duration-normal) ease;
}

.outcome-card:hover {
  border-color: rgba(255, 255, 255, 0.10);
  background: var(--surface-hover);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.3),
    0 0 60px rgba(52, 211, 153, 0.03);
}

.outcome-card__title {
  font-size: clamp(1rem, 0.95rem + 0.15vw, 1.15rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.outcome-card__desc {
  font-size: clamp(0.825rem, 0.8rem + 0.1vw, 0.9rem);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-top: 8px;
}

/* ===================================================================
   Migration Story
   =================================================================== */

.migration-content {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.migration-headline {
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
  text-wrap: balance;
  color: var(--text-primary);
}

.migration-desc {
  font-size: clamp(0.95rem, 0.9rem + 0.15vw, 1.05rem);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-top: 16px;
}

.migration-visual {
  max-width: 840px;
  margin: clamp(32px, 3vw, 56px) auto 0;
}

/* --- Shadow Duel: model-vs-model card layout --- */
.shadow-duel {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
}

.shadow-duel__card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.shadow-duel__card--reference {
  border-top: 3px solid rgba(52, 211, 153, 0.5);
}

.shadow-duel__card--candidate {
  border-top: 3px solid rgba(248, 113, 113, 0.5);
}

.shadow-duel__card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 0;
}

.shadow-duel__card-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-quaternary);
}

.shadow-duel__score {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 6px;
}

.shadow-duel__score--pass {
  color: var(--pass);
  background: rgba(52, 211, 153, 0.1);
}

.shadow-duel__score--fail {
  color: var(--fail);
  background: rgba(248, 113, 113, 0.1);
}

.shadow-duel__card-model {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  padding: 4px 16px 14px;
  border-bottom: 1px solid var(--border);
}

.shadow-duel__card-results {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 12px;
}

.shadow-duel__result {
  font-family: var(--font-mono);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border-radius: 6px;
}

.shadow-duel__result span {
  flex-shrink: 0;
}

.shadow-duel__result--pass {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.02);
}

.shadow-duel__result--pass span {
  color: var(--pass);
}

.shadow-duel__result--fail {
  color: var(--text-secondary);
  background: rgba(248, 113, 113, 0.06);
}

.shadow-duel__result--fail span {
  color: var(--fail);
}

/* Center verdict column */
.shadow-duel__verdict {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(16px, 2vw, 32px);
  gap: 10px;
}

.shadow-duel__verdict-arrow {
  font-size: 28px;
  color: var(--text-quaternary);
  line-height: 1;
}

.shadow-duel__verdict-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--fail);
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.2);
  border-radius: 6px;
  padding: 4px 12px;
  white-space: nowrap;
}

.shadow-duel__verdict-detail {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-quaternary);
  white-space: nowrap;
}

.migration-closing {
  font-family: var(--font-sans);
  font-size: clamp(13px, 0.8rem + 0.1vw, 15px);
  font-weight: 500;
  color: var(--text-tertiary);
  text-align: center;
  margin-top: clamp(24px, 2vw, 40px);
  letter-spacing: 0.02em;
}

/* ===================================================================
   Developer Proof (YAML + Terminal side by side)
   =================================================================== */

.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: clamp(40px, 4vw, 72px);
  align-items: start;
}

.proof-panel {
  width: 100%;
}

.proof-tagline {
  font-family: var(--font-sans);
  font-size: clamp(13px, 0.8rem + 0.1vw, 15px);
  font-weight: 500;
  color: var(--text-tertiary);
  text-align: center;
  margin-top: clamp(24px, 2vw, 40px);
  letter-spacing: 0.02em;
}

/* --- CTA Section --- */
.cta-section__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 36px;
}

.cta-section {
  padding: var(--section-gap) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

.cta-section::after {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  width: 120%;
  height: 100%;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse 50% 60% at 40% 50%, rgba(52, 211, 153, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 60% 40%, rgba(99, 102, 241, 0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.cta-section > * {
  position: relative;
  z-index: 1;
}

.cta-section__headline {
  font-size: clamp(1.75rem, 1.5rem + 1.2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  text-wrap: balance;
  color: var(--text-primary);
}

.cta-section__body {
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 16px;
}

.cta-section__button {
  margin-top: 36px;
}

/* ===================================================================
   Security Page — Layer Stack
   =================================================================== */

.layer-stack {
  max-width: 840px;
  margin: clamp(48px, 4vw, 80px) auto 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3),
              0 12px 32px rgba(0, 0, 0, 0.25);
}

.layer {
  background: var(--surface);
  padding: clamp(16px, 1.5vw + 8px, 24px) clamp(20px, 2vw + 8px, 28px);
  display: flex;
  align-items: baseline;
  gap: 16px;
  transition: background var(--duration-fast) ease;
}

.layer:hover {
  background: var(--surface-hover);
}

.layer__number {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-quaternary);
  flex-shrink: 0;
  min-width: 20px;
}

.layer__name {
  font-size: clamp(0.95rem, 0.9rem + 0.15vw, 1.05rem);
  font-weight: 600;
  flex-shrink: 0;
  letter-spacing: -0.01em;
}

.layer__sep {
  color: var(--text-quaternary);
  flex-shrink: 0;
}

.layer__desc {
  font-size: clamp(0.8rem, 0.78rem + 0.1vw, 0.9rem);
  color: var(--text-secondary);
}

/* Security paragraphs */
.security-details {
  max-width: 720px;
  margin: clamp(60px, 5vw, 100px) auto 0;
}

.security-detail {
  margin-top: clamp(36px, 3vw, 56px);
}

.security-detail:first-child {
  margin-top: 0;
}

.security-detail__heading {
  font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.security-detail__body {
  font-size: clamp(0.9rem, 0.88rem + 0.1vw, 1rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 10px;
}

/* ===================================================================
   Docs Page — Doc Cards
   =================================================================== */

.doc-cards {
  max-width: 640px;
  margin: clamp(48px, 4vw, 80px) auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.doc-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: clamp(20px, 2vw + 4px, 28px);
  transition: all var(--duration-normal) var(--ease-smooth);
}

.doc-card:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3),
              0 8px 24px rgba(0, 0, 0, 0.25);
}

.doc-card:focus-visible {
  outline: 2px solid var(--pass);
  outline-offset: 2px;
}

.doc-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.doc-card__title {
  font-size: clamp(0.95rem, 0.9rem + 0.15vw, 1.05rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.doc-card__arrow {
  color: var(--text-quaternary);
  font-size: 16px;
  transition: all var(--duration-normal) var(--ease-smooth);
}

.doc-card:hover .doc-card__arrow {
  color: var(--text-secondary);
  transform: translateX(2px);
}

.doc-card__desc {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 6px;
}

/* ===================================================================
   Page Header (shared by security, docs)
   =================================================================== */

.page-header {
  text-align: center;
  padding: clamp(80px, 6vw + 20px, 120px) 0 0;
}

.page-header__subhead {
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.15rem);
  font-weight: 400;
  color: var(--text-secondary);
  margin-top: 14px;
}

/* ===================================================================
   Footer
   =================================================================== */

.footer {
  position: relative;
  padding: clamp(48px, 4vw, 80px) 0;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--site-margin);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.footer__left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__right {
  display: flex;
  gap: 28px;
}

.footer__wordmark {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__link {
  font-size: 13px;
  color: var(--text-tertiary);
  transition: color var(--duration-fast) ease;
}

.footer__link:hover,
.footer__link:focus-visible {
  color: var(--text-primary);
}

.footer__copyright {
  font-size: 12px;
  color: var(--text-quaternary);
}

/* ===================================================================
   Doc Content Pages (quickstart, writing-tests, cli)
   =================================================================== */

.doc-content {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(48px, 4vw, 80px) var(--site-margin) var(--section-gap);
}

.doc-section {
  margin-top: clamp(40px, 3vw, 56px);
}

.doc-section:first-child {
  margin-top: clamp(32px, 3vw, 48px);
}

.doc-h2 {
  font-size: clamp(1.3rem, 1.15rem + 0.5vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 16px;
  padding-top: 8px;
}

.doc-h3 {
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.15rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-top: 28px;
  margin-bottom: 12px;
}

.doc-p {
  font-size: clamp(0.9rem, 0.88rem + 0.1vw, 1rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 12px;
  margin-bottom: 12px;
}

.doc-list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}

.doc-list li {
  font-size: clamp(0.9rem, 0.88rem + 0.1vw, 1rem);
  color: var(--text-secondary);
  line-height: 1.7;
  padding-left: 20px;
  position: relative;
  margin-top: 6px;
}

.doc-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-quaternary);
}

.doc-list li strong {
  color: var(--text-primary);
  font-weight: 600;
}

.doc-code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.doc-link {
  color: var(--pass);
  transition: color var(--duration-fast) ease;
}

.doc-link:hover {
  color: #6ee7b7;
}

.doc-table-wrapper {
  margin: 16px 0;
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(0.8rem, 0.78rem + 0.1vw, 0.9rem);
}

.doc-table thead {
  background: rgba(255, 255, 255, 0.03);
}

.doc-table th {
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.doc-table td {
  color: var(--text-secondary);
  padding: 8px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: top;
}

.doc-table tbody tr:last-child td {
  border-bottom: none;
}

.doc-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.doc-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--pass);
  background: rgba(52, 211, 153, 0.08);
  width: 24px;
  height: 24px;
  border-radius: 6px;
  margin-right: 10px;
  vertical-align: middle;
}

/* Spacing between code blocks and text in doc pages */
.doc-content .code-block-wrapper,
.doc-content .terminal {
  margin: 16px 0;
}

/* ===================================================================
   Focus Visible
   =================================================================== */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--pass);
  outline-offset: 2px;
}

/* ===================================================================
   Animations
   =================================================================== */

.fade-in {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease-out),
              transform 0.5s var(--ease-out);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.fade-in-stagger > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease-out),
              transform 0.5s var(--ease-out);
}

.fade-in-stagger.is-visible > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0ms; }
.fade-in-stagger.is-visible > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 80ms; }
.fade-in-stagger.is-visible > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 160ms; }
.fade-in-stagger.is-visible > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 240ms; }

/* Hero loads immediately (no intersection observer needed) */
.hero .fade-in-immediate {
  animation: fadeSlideUp 0.7s var(--ease-out) forwards;
}

.hero .fade-in-immediate:nth-child(1) { animation-delay: 0ms; }
.hero .fade-in-immediate:nth-child(2) { animation-delay: 100ms; }
.hero .fade-in-immediate:nth-child(3) { animation-delay: 200ms; }
.hero .fade-in-immediate:nth-child(4) { animation-delay: 350ms; }
.hero .fade-in-immediate:nth-child(5) { animation-delay: 450ms; }

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================================================================
   Scroll Reveal Animations — Section-specific entrance effects
   =================================================================== */

/* --- Scale reveal (section headlines) --- */
.scale-reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease-out),
              transform 0.5s var(--ease-out);
}

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

/* --- Generic scroll-reveal (replaces fade-in on enhanced sections) --- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease-out),
              transform 0.7s var(--ease-out);
  will-change: transform, opacity;
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Reveal parent: triggers child [data-reveal] animations --- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-out),
              transform 0.5s var(--ease-out);
}

.reveal-parent.is-visible [data-reveal],
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children inside data-reveal */
[data-reveal] [data-stagger] > * {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease-out),
              transform 0.4s var(--ease-out);
  transition-delay: calc(var(--stagger-index, 0) * 60ms + 200ms);
}

.reveal-parent.is-visible [data-reveal] [data-stagger] > *,
[data-reveal].is-visible [data-stagger] > * {
  opacity: 1;
  transform: translateY(0);
}

/* Block pulse (merge blocked text) — simplified */
.reveal-parent.is-visible .block-pulse {
  animation: blockFade 0.5s var(--ease-out) 400ms both;
}

@keyframes blockFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- Outcome cards: fade-up cascade --- */
.outcome-grid .outcome-card {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-out),
              transform 0.5s var(--ease-out),
              border-color var(--duration-normal) ease,
              background var(--duration-normal) ease;
  transition-delay: calc(var(--stagger-index, 0) * 80ms);
}

.outcome-grid.is-visible .outcome-card {
  opacity: 1;
  transform: translateY(0);
}

/* --- Migration section (shadow-duel) --- */
#migration .shadow-duel__card {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-out),
              transform 0.5s var(--ease-out);
}

#migration .shadow-duel__card--candidate {
  transition-delay: 100ms;
}

#migration .shadow-duel__verdict {
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  transition-delay: 200ms;
}

#migration .is-visible .shadow-duel__card {
  opacity: 1;
  transform: translateY(0);
}

#migration .is-visible .shadow-duel__verdict {
  opacity: 1;
}

/* (focus-in reveal replaced by unified [data-reveal] above) */

/* --- CTA section reveal --- */
.cta-section .cta-section__headline {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease-out),
              transform 0.5s var(--ease-out);
  transition-delay: 100ms;
  position: relative;
  z-index: 1;
}

.cta-section.is-visible .cta-section__headline {
  opacity: 1;
  transform: translateY(0);
}

.cta-section .cta-section__body {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s var(--ease-out),
              transform 0.6s var(--ease-out);
  transition-delay: 250ms;
  position: relative;
  z-index: 1;
}

.cta-section.is-visible .cta-section__body {
  opacity: 1;
  transform: translateY(0);
}

.cta-section .cta-section__actions {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease-out),
              transform 0.6s var(--ease-out);
  transition-delay: 400ms;
  position: relative;
  z-index: 1;
}

.cta-section.is-visible .cta-section__actions {
  opacity: 1;
  transform: translateY(0);
}

/* --- Trust strip stagger --- */
.trust-strip__inner > * {
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.5s var(--ease-out),
              transform 0.5s var(--ease-out);
  transition-delay: calc(var(--stagger-index, 0) * 120ms);
}

.trust-strip__inner.is-visible > * {
  opacity: 1;
  transform: translateX(0);
}

/* (glow pulses, gradient dividers removed — Linear-style restraint) */

main {
  position: relative;
  z-index: 1;
}

/* ===================================================================
   Responsive
   =================================================================== */

/* Tablet: constrain dashboard frame width */
@media (max-width: 1279px) and (min-width: 768px) {
  .demo-frame {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .hero__headline {
    font-size: clamp(2rem, 1.5rem + 3vw, 2.75rem);
  }

  .hero__ctas {
    flex-direction: column;
    gap: 12px;
  }

  .btn-primary--mobile-full {
    width: 100%;
    text-align: center;
  }

  .terminal__body {
    padding: 16px;
  }

  .code-block-wrapper__body {
    padding: 16px;
  }

  /* Feature rows stack on mobile */
  .feature-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feature-row__visual {
    order: 1;
  }

  .feature-row__content {
    order: 2;
  }

  /* Two-panel workflow stacks on mobile */
  .workflow-visual--two-panel {
    grid-template-columns: 1fr;
  }

  .workflow-visual__arrow {
    padding-top: 0;
    text-align: center;
    transform: rotate(90deg);
  }

  /* Visual compare: stack columns vertically */
  .visual-compare__grid {
    grid-template-columns: 1fr;
  }

  .visual-compare__divider-v {
    width: 100%;
    height: 1px;
  }

  /* Shadow duel: stack on mobile */
  .shadow-duel {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .shadow-duel__verdict {
    flex-direction: row;
    padding: 16px 0;
    gap: 12px;
  }

  .shadow-duel__verdict-arrow {
    transform: rotate(90deg);
  }

  /* Outcome cards stack on mobile */
  .outcome-grid {
    grid-template-columns: 1fr;
  }

  /* Proof grid stacks on mobile */
  .proof-grid {
    grid-template-columns: 1fr;
  }

  /* CTA actions stack on mobile */
  .cta-section__actions {
    flex-direction: column;
    gap: 12px;
  }

  /* Trust strip wraps nicely */
  .trust-strip__inner {
    gap: 0;
  }

  .cta-section__headline {
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  }

  .cta-section__body {
    font-size: clamp(0.9rem, 0.88rem + 0.1vw, 1rem);
  }

  .layer {
    flex-direction: column;
    gap: 6px;
    padding: 16px 20px;
  }

  .layer__sep {
    display: none;
  }

  /* Shorter stagger delays */
  .trust-strip__inner > * {
    transition-delay: calc(var(--stagger-index, 0) * 80ms);
  }

  /* Demo frame: scale down for narrow tablets within 768px breakpoint */
  .demo-sidebar {
    width: 160px;
    padding: 12px 8px;
  }

  .demo-sidebar-brand {
    font-size: 14px;
    padding: 4px 8px 12px;
  }

  .demo-nav-item {
    font-size: 12px;
    padding: 6px 8px;
    gap: 8px;
  }

  .demo-main {
    padding: 16px;
  }

  .demo-wrapper {
    min-height: 400px;
  }

  .demo-card-value {
    font-size: 16px;
  }

  .demo-page-title {
    font-size: 15px;
  }

  /* Footer stacks on mobile */
  .footer__inner {
    flex-direction: column;
    gap: 24px;
  }

  .footer__right {
    flex-wrap: wrap;
    gap: 16px 24px;
  }

  /* Nav */
  .nav__right {
    gap: 16px;
  }

  .nav__links {
    gap: 16px;
  }

  .page-header {
    padding: clamp(60px, 4vw + 20px, 80px) 0 0;
  }

  .doc-table th,
  .doc-table td {
    padding: 8px 12px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .hero__headline {
    font-size: clamp(1.75rem, 1.2rem + 3vw, 2.25rem);
  }

  .nav__right {
    gap: 10px;
  }

  .nav__link {
    font-size: 13px;
  }

  .nav__cta {
    font-size: 12px;
    padding: 6px 12px;
  }

  .nav__links {
    gap: 12px;
  }

  .nav__link {
    font-size: 13px;
  }

  .terminal__body pre,
  .code-block-wrapper__body pre {
    font-size: 11.5px;
  }

  .terminal__header {
    padding: 10px 14px;
  }

  .terminal__dot {
    width: 8px;
    height: 8px;
  }
}

/* Mobile: hide interactive dashboard, show fallback note */
@media (max-width: 767px) {
  .demo-frame {
    display: none;
  }

  .demo-mobile-note {
    display: block;
  }
}

/* ===================================================================
   Reports
   =================================================================== */

.report-body code {
  font-family: var(--font-mono);
  font-size: 0.95em;
  color: var(--text-primary);
}

.report-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.report-hero {
  padding-top: clamp(80px, 5vw + 48px, 128px);
}

.report-hero__headline {
  max-width: 920px;
}

.report-hero__subtitle {
  font-size: clamp(1.05rem, 0.98rem + 0.24vw, 1.2rem);
  color: var(--text-secondary);
  margin-top: -12px;
}

.report-hero__lede {
  max-width: 860px;
}

.report-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-quaternary);
}

/* --- Scorecard --- */
.report-scorecard {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 28px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  max-width: 920px;
}

.report-scorecard__main {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-shrink: 0;
}

.report-scorecard__number {
  font-size: clamp(2.8rem, 2.2rem + 2vw, 3.8rem);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--fail);
}

.report-scorecard__of {
  font-size: clamp(1.3rem, 1rem + 0.8vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-tertiary);
}

.report-scorecard__label {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-left: 4px;
}

.report-scorecard__steps {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.report-scorecard__step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.report-scorecard__step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.report-scorecard__step-name {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.report-scorecard__step-arrow {
  color: var(--text-quaternary);
  font-size: 14px;
  flex-shrink: 0;
}

/* --- Divider --- */
.report-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: clamp(40px, 3vw + 20px, 64px) 0;
}

.report-history {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 920px;
}

.report-history__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.report-history__controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.report-history__nav,
.report-history__chip {
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
}

.report-history__nav {
  border-radius: 999px;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
}

.report-history__chip {
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 180px;
  cursor: pointer;
  transition:
    border-color var(--duration-fast) ease,
    background var(--duration-fast) ease,
    color var(--duration-fast) ease;
}

.report-history__nav:hover,
.report-history__nav:focus-visible,
.report-history__chip:hover,
.report-history__chip:focus-visible {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.report-history__nav:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.report-history__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.report-history__chip-label,
.report-history__chip-summary {
  display: block;
}

.report-history__chip-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-primary);
}

.report-history__chip-summary {
  font-size: 13px;
  color: var(--text-tertiary);
}

.report-history__chip--active {
  border-color: rgba(52, 211, 153, 0.28);
  background: rgba(52, 211, 153, 0.08);
}

.report-section {
  padding-top: clamp(40px, 3vw + 20px, 64px);
}

.report-section__title {
  font-size: clamp(1.8rem, 1.45rem + 1vw, 2.4rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.1;
  max-width: 900px;
}

.report-section__intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.report-section__note,
.report-body-copy,
.report-command-note {
  max-width: 820px;
  color: var(--text-secondary);
}

.report-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.report-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.report-verdict-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 920px;
}

.report-provider-groups {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
}

.report-provider-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.report-provider-group__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  max-width: 920px;
}

.report-provider-group__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
}

.report-verdict-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 16px 40px rgba(0, 0, 0, 0.18);
}

.report-verdict-card--pass {
  border-color: rgba(52, 211, 153, 0.25);
  box-shadow:
    0 0 0 1px rgba(52, 211, 153, 0.06),
    0 16px 40px rgba(0, 0, 0, 0.18);
}

.report-verdict-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.report-verdict-card__role,
.report-verdict-card__model-id,
.report-results-table__model-id {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
}

.report-verdict-card__title {
  font-size: 1.1rem;
  font-weight: 600;
}

.report-verdict-card__score {
  font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.65rem);
  font-weight: 650;
  letter-spacing: -0.03em;
}

.report-verdict-card__score--pass {
  color: var(--pass);
}

.report-verdict-card__score--warn {
  color: #fbbf24;
}

.report-verdict-card__score--fail {
  color: var(--fail);
}

.report-verdict-card__summary {
  color: var(--text-secondary);
}

.report-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 5px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.report-badge--pass {
  color: var(--pass);
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.report-badge--fail {
  color: var(--fail);
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.report-results-table th,
.report-results-table td {
  vertical-align: top;
}

.report-results-table__heading {
  font-weight: 600;
  color: var(--text-primary);
}

.report-results-table__provider {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.report-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.report-status--pass {
  background: rgba(52, 211, 153, 0.12);
  color: var(--pass);
}

.report-status--warn {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
}

.report-status--fail {
  background: rgba(248, 113, 113, 0.12);
  color: var(--fail);
}

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

.report-callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.report-callout--fail {
  box-shadow: inset 0 1px 0 rgba(248, 113, 113, 0.08);
}

.report-callout--pass {
  box-shadow: inset 0 1px 0 rgba(52, 211, 153, 0.08);
}

.report-callout__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.report-callout__reason {
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.report-list {
  padding-left: 18px;
  color: var(--text-secondary);
}

.report-list li + li {
  margin-top: 10px;
}

/* --- YAML syntax highlighting --- */
.yk  { color: #c4b5fd; }  /* keys — soft purple */
.yv  { color: #93c5fd; }  /* type values — soft blue */
.yn  { color: #34d399; }  /* tool names — brand green */
.yp  { color: #fbbf24; }  /* json paths — amber */
.ys  { color: #fca5a5; }  /* string values — soft coral */
.ynum { color: #67e8f9; } /* numbers — cyan */

.report-code-block__header {
  justify-content: space-between;
  gap: 16px;
}

.report-copy-button {
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 7px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
  transition:
    border-color var(--duration-fast) ease,
    color var(--duration-fast) ease,
    background var(--duration-fast) ease;
}

.report-copy-button:hover,
.report-copy-button:focus-visible {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.report-asset-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.report-details {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.report-details summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
}

.report-details summary::-webkit-details-marker {
  display: none;
}

.report-details__body {
  padding: 0 20px 20px;
}

.report-cta-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.report-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.report-index-section {
  padding-top: 56px;
}

.report-index-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 980px;
}

.report-index-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition:
    border-color var(--duration-fast) ease,
    transform var(--duration-fast) ease;
}

.report-index-card:hover,
.report-index-card:focus-visible {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.report-index-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.report-index-card__verdict {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fail);
  padding: 4px 10px;
  background: rgba(248, 113, 113, 0.1);
  border-radius: 999px;
}

.report-index-card__title {
  font-size: 1.2rem;
  font-weight: 600;
}

.report-index-card__subtitle,
.report-index-card__description {
  color: var(--text-secondary);
}

.report-index-card__stats {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.report-index-card__stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-tertiary);
  padding: 8px 14px;
}

.report-index-card__stat + .report-index-card__stat {
  border-top: 1px solid var(--border);
}

.report-index-card__stat--highlight {
  background: rgba(52, 211, 153, 0.06);
}

.report-index-card__stat-value {
  font-weight: 600;
}

.report-index-card__stat-value--pass {
  color: var(--pass);
}

.report-index-card__stat-value--fail {
  color: var(--fail);
}

.report-index-card__link {
  margin-top: auto;
  font-size: 14px;
  color: var(--text-primary);
}

.report-index-cta {
  text-align: center;
  margin-top: 48px;
}

@media (max-width: 920px) {
  .report-section__intro {
    flex-direction: column;
    align-items: flex-start;
  }

  .report-verdict-grid,
  .report-callout-grid,
  .report-index-grid {
    grid-template-columns: 1fr;
  }

  .report-scorecard {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .report-scorecard__steps {
    margin-left: 0;
    flex-wrap: wrap;
  }
}

@media (max-width: 767px) {
  .report-verdict-card,
  .report-callout,
  .report-index-card,
  .report-cta-card {
    padding: 20px;
  }

  .report-scorecard {
    padding: 20px;
  }

  .report-scorecard__step {
    padding: 8px 10px;
  }

  .report-details summary,
  .report-details__body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .report-asset-links,
  .report-cta-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===================================================================
   Prefers reduced motion
   =================================================================== */

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

  html {
    scroll-behavior: auto;
  }

  .fade-in,
  .fade-in-stagger > * {
    opacity: 1;
    transform: none;
  }

  .hero .fade-in-immediate {
    animation: none;
    opacity: 1;
  }
}
