/* ==========================================================================
   SIEVE — DESIGN SYSTEM & VISUAL SPECIFICATION
   Visual language inspired by the Woblo modern developer tool reference:
   Luminous white canvas (#ffffff), geometric typography (Inter), refined pill
   geometry, soft blue accents, and deep diffuse drop shadows.
   ========================================================================== */

:root {
  /* Canvas & Surfaces */
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f1f5f9;
  --solid: #ffffff;
  
  /* Ink / Typography */
  --ink: #0f172a;               /* 16.2:1 contrast */
  --ink-2: #475569;             /* 7.1:1 contrast */
  --ink-3: #64748b;             /* 4.8:1 contrast */
  --ink-muted: #94a3b8;
  
  /* Hairlines & Borders */
  --hairline: #e2e8f0;
  --hairline-2: #cbd5e1;
  --hairline-subtle: #f1f5f9;
  
  /* Brand Accents */
  --signal: #FF762E;            /* Royal Cobalt */
  --signal-hover: #E8611C;
  --signal-soft: #eff6ff;       /* Soft Sky Blue */
  --signal-border: #bfdbfe;
  --signal-highlight: #dbeafe;  /* Hero pill background */
  
  /* Status Semantics */
  --fail: #dc2626;
  --fail-soft: #fef2f2;
  --fail-border: #fecaca;
  
  --warn: #d97706;
  --warn-soft: #fffbeb;
  --warn-border: #fde68a;
  
  --pass: #059669;
  --pass-soft: #ecfdf5;
  --pass-border: #a7f3d0;
  
  /* Glass / Floating Controls */
  --glass: rgba(255, 255, 255, 0.88);
  --glass-edge: rgba(255, 255, 255, 0.9);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-card: 0 1px 3px 0 rgba(15, 23, 42, 0.04), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  --shadow-elevated: 0 12px 30px -8px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.04);
  --shadow-browser: 0 30px 80px -20px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(15, 23, 42, 0.05);
  --shadow-float: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-btn: 0 4px 14px 0 rgba(255, 118, 46, 0.35);
  
  /* Typography Stack */
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  --display: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  
  /* Border Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 24px;
  --r-pill: 9999px;
  
  /* Animation Timing */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------------------------------------------------------------- Base */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  color: var(--ink);
  font: 400 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.no-scroll { overflow: hidden; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 150ms var(--ease);
}

code, .mono {
  font-family: var(--mono);
  font-size: 0.88em;
}

h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
  border-radius: 6px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  padding: 8px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-sm);
  z-index: 100;
  font-size: 13px;
  font-weight: 500;
  transition: top 150ms ease;
}
.skip:focus { top: 12px; }

.text-center { text-align: center; }

/* ---------------------------------------------------------------- Glass */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-sm);
}

/* ---------------------------------------------------------------- Floating Navbar */
.toolbar {
  position: sticky;
  top: 14px;
  z-index: 40;
  margin: 12px auto 0;
  width: min(1200px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 8px 16px;
  border-radius: var(--r-pill);
  gap: 16px;
  transition: box-shadow 200ms var(--ease), border-color 200ms var(--ease);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 700 18px/1 var(--display);
  letter-spacing: -0.03em;
  color: var(--ink);
}

.mesh {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: radial-gradient(circle, var(--ink) 1.5px, transparent 1.8px) 0 0 / 6px 6px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background 150ms var(--ease), color 150ms var(--ease);
}

.nav-link:hover {
  background: var(--surface-3);
  color: var(--ink);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.field {
  display: flex;
  align-items: center;
  position: relative;
  width: 260px;
}

.field-icon {
  position: absolute;
  left: 10px;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--ink-muted);
  stroke-width: 2.2;
  stroke-linecap: round;
  pointer-events: none;
}

.field input {
  width: 100%;
  height: 34px;
  padding: 0 76px 0 30px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--ink);
  font: 400 12.5px var(--mono);
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}

.field input::placeholder { color: var(--ink-muted); }
.field input:focus {
  outline: none;
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(255, 118, 46, 0.12);
}

.btn-nav-inspect {
  position: absolute;
  right: 3px;
  height: 28px;
  padding: 0 10px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: var(--r-pill);
}

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

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  font: 500 11.5px var(--mono);
  color: var(--ink-2);
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  white-space: nowrap;
}

.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-muted); }
.pill.ok .dot { background: var(--pass); }
.pill.demo .dot { background: var(--signal); }
.pill.off .dot { background: var(--fail); }

.btn-github-nav {
  height: 34px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 150ms var(--ease), border-color 150ms var(--ease);
}
.btn-github-nav:hover {
  background: var(--surface-3);
  border-color: var(--hairline-2);
}

/* ---------------------------------------------------------------- Buttons */
.btn {
  height: 40px;
  padding: 0 20px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 150ms var(--ease);
}

.btn.primary {
  background: var(--ink);
  color: #ffffff;
}
.btn.primary:hover {
  background: #000000;
  transform: translateY(-1px);
}
.btn.primary:active { transform: translateY(0); }

.btn.secondary {
  background: var(--surface);
  border-color: var(--hairline);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn.secondary:hover {
  background: var(--surface-2);
  border-color: var(--hairline-2);
  transform: translateY(-1px);
}

.btn.outline {
  background: transparent;
  border-color: var(--hairline-2);
  color: var(--ink-2);
}
.btn.outline:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.btn.ghost {
  background: transparent;
  color: var(--ink-2);
}
.btn.ghost:hover {
  background: var(--surface-3);
  color: var(--ink);
}

.btn.small {
  height: 32px;
  padding: 0 12px;
  font-size: 12.5px;
  border-radius: var(--r-sm);
}

.btn.pill-cta {
  border-radius: var(--r-pill);
  height: 44px;
  padding: 0 22px;
  font-size: 14px;
}

.btn.primary.pill-cta {
  background: linear-gradient(180deg, #FF762E 0%, #E8611C 100%);
  color: #ffffff;
  box-shadow: var(--shadow-btn);
  border: none;
}
.btn.primary.pill-cta:hover {
  box-shadow: 0 6px 20px 0 rgba(255, 118, 46, 0.45);
  transform: translateY(-1px);
}

.btn:disabled { opacity: 0.5; cursor: progress; }
.btn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------------------------------------------------------------- Layout & Views */
main {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 80px;
  flex: 1;
}

.banner {
  margin: 0 0 20px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  background: var(--fail-soft);
  color: var(--fail);
  border: 1px solid var(--fail-border);
  font-size: 14px;
}

.loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
  font-size: 14px;
  padding: 12px 0;
}

.spin {
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--hairline-2);
  border-top-color: var(--signal);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- Hero Section */
.hero-section {
  max-width: 1080px;
  margin: 48px auto 64px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  font: 500 12.5px var(--sans);
  color: var(--ink-2);
  margin-bottom: 24px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.badge-star {
  color: #f59e0b;
  font-size: 13px;
}

.hero-title {
  font: 700 52px/1.12 var(--display);
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 20px;
  max-width: 900px;
}

/* Custom Pinterest-inspired highlighted word pill */
.hero-highlight {
  position: relative;
  display: inline-block;
  background: var(--signal-highlight);
  color: #E8611C;
  padding: 1px 16px;
  border-radius: var(--r-pill);
  transform: rotate(-1.5deg);
  box-shadow: 0 2px 10px rgba(255, 118, 46, 0.12);
  font-style: italic;
  font-weight: 800;
  white-space: nowrap;
}

.hero-lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 680px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.play-triangle {
  font-size: 11px;
  color: var(--signal);
}

.icon-external {
  opacity: 0.7;
}

/* ---------------------------------------------------------------- Hero Browser Frame */
.hero-frame-wrapper {
  width: 100%;
  max-width: 1080px;
  margin-top: 8px;
}

.browser-frame {
  width: 100%;
  background: var(--surface);
  border-radius: var(--r-xl);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-browser);
  overflow: hidden;
}

.browser-header {
  height: 44px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.browser-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.dot-red, .dot-yellow, .dot-green {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.browser-address-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  padding: 4px 16px;
  border-radius: var(--r-pill);
  font: 400 12px var(--mono);
  color: var(--ink-3);
  max-width: 540px;
  width: 100%;
  margin: 0 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-address-bar strong { color: var(--ink); }
.lock-icon { color: var(--ink-3); flex: none; }

.browser-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 11.5px var(--mono);
  color: var(--pass);
  background: var(--pass-soft);
  padding: 3px 10px;
  border-radius: var(--r-pill);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pass);
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.2);
}

.browser-content {
  position: relative;
  background: #0d1117;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
}

.floating-hero-pill {
  position: absolute;
  top: 24px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow-float);
  font: 600 13px var(--sans);
  color: var(--ink);
  cursor: pointer;
  transition: transform 150ms var(--ease), box-shadow 150ms var(--ease);
}
.floating-hero-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
}
.pill-play-icon {
  color: var(--signal);
  font-size: 11px;
}

/* Judge Note Card */
.judge-note-card {
  width: 100%;
  max-width: 1080px;
  margin-top: 32px;
  padding: 18px 24px;
  border-radius: var(--r-lg);
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  text-align: left;
}

.judge-note-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.judge-tag {
  font: 700 11px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
}

.judge-env {
  font: 500 12.5px var(--mono);
  color: var(--ink-3);
}

.judge-note-text {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.5;
  margin: 0;
}
.judge-note-text code {
  color: var(--ink);
  background: rgba(0,0,0,0.04);
  padding: 1px 5px;
  border-radius: 4px;
}

/* ---------------------------------------------------------------- Headings & Sections */
.section-block {
  margin: 80px 0;
  scroll-margin-top: 88px;
}

.section-head {
  margin-bottom: 36px;
}

.eyebrow {
  font: 600 11.5px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--signal);
  margin-bottom: 10px;
}

.section-title-large {
  font: 700 36px/1.18 var(--display);
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 12px;
}

.section-sub-large {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.55;
}

/* ---------------------------------------------------------------- 6-Card Feature Matrix */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-card);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), border-color 200ms var(--ease);
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-elevated);
  border-color: var(--hairline-2);
}

.feature-preview-box {
  height: 130px;
  background: var(--surface-2);
  border: 1px solid var(--hairline-subtle);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 14px;
}

/* Feature 1: In-Situ preview */
.mini-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mini-gh-tab {
  font: 500 12px var(--sans);
  color: var(--ink-2);
  padding: 4px 10px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid var(--hairline);
}
.mini-sieve-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 600 12px var(--sans);
  color: var(--signal);
  background: var(--signal-soft);
  border: 1px solid var(--signal-border);
  padding: 4px 12px;
  border-radius: var(--r-pill);
}
.mini-sieve-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
}
.mini-cursor {
  position: absolute;
  bottom: 18px;
  right: 28px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

/* Feature 2: Blast Radius chips */
.mini-chips-flow {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.mini-chip {
  font: 500 11px var(--mono);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid transparent;
}
.mini-chip.mod { background: var(--signal-soft); color: var(--signal); border-color: var(--signal-border); }
.mini-chip.warn { background: var(--warn-soft); color: var(--warn); border-color: var(--warn-border); }
.mini-chip.pass { background: var(--pass-soft); color: var(--pass); border-color: var(--pass-border); }
.mini-arrow { font-size: 11px; color: var(--ink-muted); }

/* Feature 3: Verdict alert */
.mini-verdict-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.mini-status-badge {
  font: 700 11px/1 var(--sans);
  padding: 4px 10px;
  border-radius: var(--r-pill);
}
.mini-status-badge.fail { background: var(--fail-soft); color: var(--fail); border: 1px solid var(--fail-border); }
.mini-code-warn {
  font: 500 10.5px var(--mono);
  color: var(--ink-2);
}

/* Feature 4: Test coverage */
.mini-test-coverage {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}
.mini-test-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 500 11px var(--mono);
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--hairline);
}
.mini-test-row.pass .test-icon { color: var(--pass); font-weight: 700; }
.mini-test-row.missing .test-icon { color: var(--fail); font-weight: 700; }

/* Feature 5: Code window */
.mini-code-window {
  background: #18181b;
  color: #f4f4f5;
  padding: 10px 14px;
  border-radius: 8px;
  font: 11.5px/1.4 var(--mono);
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.code-comment { color: #71717a; }
.mini-security-tag {
  align-self: flex-start;
  font-size: 9.5px;
  font-weight: 600;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Feature 6: Gemma multimodal AI */
.mini-gemma-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
}
.gemma-sparkle { color: var(--signal); font-size: 13px; }
.gemma-text { font: 600 11.5px var(--mono); color: var(--ink); }

/* Feature text content */
.feature-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.feature-title {
  font: 650 16px var(--sans);
  color: var(--ink);
}
.feature-desc {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.5;
}

/* ---------------------------------------------------------------- Dual Split Cards */
.dual-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.dual-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.dual-card-fan {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 24px 20px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--hairline);
}

.fan-pill {
  font: 500 12px var(--sans);
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--hairline);
  padding: 5px 12px;
  border-radius: var(--r-pill);
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.fan-pill.highlight {
  background: var(--signal-soft);
  border-color: var(--signal-border);
  color: var(--signal);
  font-weight: 600;
}

.dual-card-soft-container {
  background: var(--signal-soft);
  border: 1px solid var(--signal-border);
  margin: 16px;
  border-radius: var(--r-lg);
  padding: 22px;
}

.dual-card-title {
  font: 700 18px var(--sans);
  color: #8A3A10;
  margin-bottom: 8px;
}

.dual-card-desc {
  font-size: 14px;
  color: #FF9A4D;
  line-height: 1.55;
}

/* ---------------------------------------------------------------- Demo PR Cards */
.demo-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.demo-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: 22px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), border-color 200ms var(--ease);
}
.demo-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
  border-color: var(--hairline-2);
}
.demo-card.featured-demo-card {
  border-color: var(--signal-border);
  background: linear-gradient(180deg, #ffffff 0%, var(--surface-2) 100%);
}

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

.chip {
  font: 600 11.5px/1 var(--sans);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.chip.ready { background: var(--pass-soft); color: var(--pass); border: 1px solid var(--pass-border); }
.chip.needs-work { background: var(--fail-soft); color: var(--fail); border: 1px solid var(--fail-border); }
.chip.low-effort { background: var(--surface-3); color: var(--ink-2); border: 1px solid var(--hairline); }

.demo-pr-num {
  font: 600 12.5px var(--mono);
  color: var(--ink-3);
}

.demo-pr-title {
  font: 650 16px/1.35 var(--sans);
  color: var(--ink);
}

.demo-pr-desc {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.5;
  flex: 1;
}

.demo-meta {
  display: grid;
  gap: 4px;
  font-size: 12.5px;
  color: var(--ink-3);
  border-top: 1px solid var(--hairline);
  padding-top: 10px;
}
.demo-meta strong { color: var(--ink-2); }

.demo-inspect-btn {
  align-self: flex-start;
  margin-top: 6px;
}

/* ---------------------------------------------------------------- Atlas Panel & Canvas Stage */
.demo-atlas-mount { margin: 36px 0; }

.atlas-panel {
  margin-bottom: 26px;
  scroll-margin-top: 88px;
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.panel-head h2 { font: 700 18px var(--sans); color: var(--ink); }
.panel-head .sub { font-size: 13.5px; color: var(--ink-2); }

.atlas-stage {
  position: relative;
  height: 560px;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 40%, #ffffff 0%, var(--surface-2) 100%);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-browser);
}
.atlas-stage.full {
  position: fixed;
  inset: 0;
  height: auto;
  z-index: 50;
  border-radius: 0;
  border: 0;
}

.atlas-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  outline: none;
}

.atlas-controls {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: var(--r-md);
  max-width: 310px;
}

.segmented {
  display: inline-flex;
  background: var(--surface-3);
  padding: 2px;
  border-radius: var(--r-pill);
}
.segmented button {
  border: 0;
  background: transparent;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font: 600 12px var(--sans);
  color: var(--ink-2);
  cursor: pointer;
  transition: all 150ms var(--ease);
}
.segmented button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.atlas-search {
  height: 32px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline);
  background: var(--surface);
  font: 12.5px var(--mono);
  color: var(--ink);
}
.atlas-search:focus {
  outline: none;
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(255, 118, 46, 0.12);
}

.atlas-controls .row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.legend { font-size: 12px; }
.legend ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.legend li { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.swatch { width: 10px; height: 10px; border-radius: 50%; }
.swatch.changed { background: var(--signal); }
.swatch.direct { background: var(--warn); }
.swatch.indirect { background: var(--ink-muted); }
.swatch.removed { background: var(--fail); }
.swatch.test { background: var(--pass); }
.swatch.file { background: var(--ink-2); }
.swatch.height { background: var(--signal); border-radius: 2px; }

.atlas-hint {
  font-size: 11px;
  color: var(--ink-3);
  line-height: 1.4;
}

.inspector {
  position: absolute;
  top: 16px;
  right: 16px;
  bottom: 16px;
  width: 320px;
  border-radius: var(--r-md);
  padding: 18px;
  overflow: auto;
  display: grid;
  gap: 12px;
  align-content: start;
  z-index: 10;
}
.inspector[hidden] { display: none; }

.insp-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.insp-head .path {
  font: 600 13px var(--mono);
  color: var(--ink);
  overflow-wrap: anywhere;
}
.icon-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  color: var(--ink-3);
}
.icon-btn:hover { background: var(--surface-3); color: var(--ink); }

.role-note {
  font-size: 12.5px;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
}
.role-note.role-modified { border-color: var(--signal-border); background: var(--signal-soft); color: var(--signal); }
.role-note.role-direct { border-color: var(--warn-border); background: var(--warn-soft); color: var(--warn); }
.role-note.role-removed { border-color: var(--fail-border); background: var(--fail-soft); color: var(--fail); }

.facts {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  font-size: 13px;
}
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; color: var(--ink); font-weight: 500; }

.insp-block h4 {
  font: 600 11.5px var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  margin-bottom: 6px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.chips code {
  font-size: 11.5px;
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--hairline);
}

.edges { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.edges li { font-size: 12px; display: grid; gap: 2px; }
.edges code { font-size: 11px; color: var(--ink-3); }

/* ---------------------------------------------------------------- Screenshots Showcase */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.screenshot-item {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.screenshot-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
}

.screenshot-window-bar {
  height: 34px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
}
.sw-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hairline-2);
}
.sw-title {
  font: 500 11px var(--mono);
  color: var(--ink-3);
  margin-left: 8px;
}

.screenshot-item img {
  width: 100%;
  height: auto;
  display: block;
  background: #0d1117;
}

.screenshot-item figcaption {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--hairline);
  background: var(--surface);
}
.screenshot-item figcaption strong {
  font: 650 15px var(--sans);
  color: var(--ink);
}
.screenshot-item figcaption span {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.45;
}

/* ---------------------------------------------------------------- Architecture Steps */
.install-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.install-step-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-card);
}

.step-badge {
  width: 32px;
  height: 32px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #ffffff;
  display: grid;
  place-items: center;
  font: 700 13px var(--mono);
}

.step-title {
  font: 650 17px var(--sans);
  color: var(--ink);
}

.step-desc {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.5;
}

.code-block {
  background: #0f172a;
  color: #f8fafc;
  padding: 12px 14px;
  border-radius: var(--r-md);
  font: 12px/1.5 var(--mono);
  overflow-x: auto;
  margin: 4px 0 0;
}
.code-block code { color: inherit; font-size: inherit; }

.step-list {
  margin: 4px 0 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--ink-2);
  display: grid;
  gap: 6px;
}
.step-list strong { color: var(--ink); }

/* ---------------------------------------------------------------- Security & Privacy */
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.privacy-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-card);
}

.privacy-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--pass-soft);
  color: var(--pass);
  display: grid;
  place-items: center;
}

.privacy-title {
  font: 650 15.5px var(--sans);
  color: var(--ink);
}

.privacy-desc {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.5;
}

/* ---------------------------------------------------------------- Final CTA Block */
.final-cta-block {
  margin: 90px 0 40px;
}

.final-cta-card {
  background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: 48px 32px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.final-cta-title {
  font: 700 32px/1.2 var(--display);
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 12px;
}

.final-cta-sub {
  font-size: 16px;
  color: var(--ink-2);
  max-width: 580px;
  margin: 0 auto 28px;
  line-height: 1.55;
}

.final-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------------------------------------------------------------- Footer */
.foot {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 40px;
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
}

.foot-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.foot-tagline {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
  max-width: 320px;
}

.foot-meta {
  font: 500 12px var(--mono);
  color: var(--ink-3);
}

.foot-heading {
  font: 650 13px var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
  margin-bottom: 12px;
}

.foot-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.foot-links a {
  font-size: 13.5px;
  color: var(--ink-2);
}
.foot-links a:hover {
  color: var(--signal);
}

/* ---------------------------------------------------------------- PR Review View & Shared */
.crumbs { font: 13px var(--mono); color: var(--ink-3); margin-bottom: 8px; }
.crumbs a { color: var(--ink-2); }
.pr-title { font: 700 32px/1.2 var(--display); letter-spacing: -0.02em; max-width: 960px; margin-bottom: 8px; }
.meta { color: var(--ink-2); font-size: 14px; }
.adds { color: var(--pass); font-weight: 600; } .dels { color: var(--fail); font-weight: 600; }
.review-head { margin: 8px 0 24px; }

.verdict {
  margin-top: 20px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 20px 24px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card);
}
.score { font: 700 54px/0.95 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.score small { font: 14px var(--mono); color: var(--ink-3); margin-left: 2px; }
.verdict h2 { font-size: 20px; font-weight: 700; }
.verdict.ready .score, .verdict.ready h2 { color: var(--pass); }
.verdict.needs-work .score, .verdict.needs-work h2 { color: var(--warn); }
.verdict.low-effort .score, .verdict.low-effort h2 { color: var(--fail); }
.tally { color: var(--ink-2); font-size: 14px; margin-top: 2px; }

.reach {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 2px 24px;
  margin: 0;
  text-align: right;
}
.reach dt { grid-row: 2; font-size: 12px; color: var(--ink-3); }
.reach dd { grid-row: 1; margin: 0; font: 700 22px/1.1 var(--sans); font-variant-numeric: tabular-nums; }
.reach dd.hot { color: var(--fail); }

.review-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
}

.finding-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.finding {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 18px;
}
.finding + .finding { border-top: 1px solid var(--hairline); }
.mark {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font: 700 12px var(--mono);
  margin-top: 1px;
}
.fail .mark { background: var(--fail-soft); color: var(--fail); }
.warn .mark { background: var(--warn-soft); color: var(--warn); }
.info .mark { background: var(--surface-3); color: var(--ink-2); }
.pass .mark { background: var(--pass-soft); color: var(--pass); }

.f-title { font-weight: 600; font-size: 14.5px; }
.f-detail { color: var(--ink-2); font-size: 13.5px; margin-top: 2px; }
.src {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: var(--r-pill);
  font: 500 11px var(--mono);
  border: 1px solid var(--hairline-2);
  color: var(--ink-2);
}
.src-model { border-style: dashed; }
.src-repository { border-color: var(--signal-border); color: var(--signal); }

.evidence { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.evidence li { font-size: 12.5px; padding: 6px 10px; border-radius: 6px; background: var(--surface-2); overflow-wrap: anywhere; }

.side { display: grid; gap: 16px; }
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 10px;
}
.card h3 { font-size: 15px; font-weight: 650; }
.doc {
  margin: 0;
  padding: 12px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  font: 12.5px/1.55 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 320px;
  overflow: auto;
}

/* ---------------------------------------------------------------- PR Impact Topology Workbench */
.topology-workbench { margin-bottom: 24px; }
.top-toolbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.top-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.top-search { height: 32px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--hairline); background: var(--surface); font: 12.5px var(--mono); color: var(--ink); width: 220px; }
.top-search:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px rgba(255, 118, 46, 0.12); }
.top-summary-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.top-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: var(--r-pill); font: 12px var(--mono); color: var(--ink-2); background: var(--surface); border: 1px solid var(--hairline); }
.top-chip strong { color: var(--ink); }
.top-chip.ok { border-color: var(--pass-border); background: var(--pass-soft); color: var(--pass); }
.top-chip.warn { border-color: var(--warn-border); background: var(--warn-soft); color: var(--warn); }

.topology-stage {
  position: relative;
  height: 560px;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 40%, #ffffff 0%, var(--surface-2) 100%);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-browser);
}
.topology-stage.full { position: fixed; inset: 0; height: auto; z-index: 50; border-radius: 0; border: 0; }
.topology-scroll { width: 100%; height: 100%; overflow: auto; -webkit-overflow-scrolling: touch; }
.topology-svg { display: block; min-width: 100%; height: auto; user-select: none; }
.top-col-label { font: 600 11px/1 var(--mono); letter-spacing: 0.08em; fill: var(--ink-3); text-transform: uppercase; }
.top-edge { stroke: rgba(15, 23, 42, 0.2); stroke-width: 1.5px; fill: none; transition: stroke 150ms var(--ease), stroke-width 150ms var(--ease), opacity 150ms var(--ease); }
.top-edge.edge-active { stroke: var(--signal); stroke-width: 2.5px; }
.top-edge.dimmed { opacity: 0.1; }

.top-node { cursor: pointer; outline: none; transition: transform 150ms var(--ease), opacity 150ms var(--ease); }
.top-node:hover .top-node-bg, .top-node:focus-visible .top-node-bg { stroke: var(--signal); stroke-width: 1.5px; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.08)); }
.top-node-bg { fill: #ffffff; stroke: var(--hairline-2); stroke-width: 1px; transition: stroke 150ms, fill 150ms; }
.top-node-accent { fill: var(--ink-3); }
.top-node-title { font: 600 12.5px/1 var(--mono); fill: var(--ink); }
.top-node-dir { font: 10.5px/1 var(--mono); fill: var(--ink-3); }
.top-badge-bg { fill: rgba(15, 23, 42, 0.05); }
.top-badge-txt { font: 700 9.5px/1 var(--mono); fill: var(--ink-2); text-anchor: middle; letter-spacing: 0.03em; }

.top-node.role-modified .top-node-accent { fill: var(--signal); }
.top-node.role-modified .top-badge-bg { fill: var(--signal-soft); }
.top-node.role-modified .top-badge-txt { fill: var(--signal); }
.top-node.role-added .top-node-accent { fill: var(--pass); }
.top-node.role-added .top-badge-bg { fill: var(--pass-soft); }
.top-node.role-added .top-badge-txt { fill: var(--pass); }
.top-node.role-removed .top-node-accent { fill: var(--fail); }
.top-node.role-removed .top-badge-bg { fill: var(--fail-soft); }
.top-node.role-removed .top-badge-txt { fill: var(--fail); }
.top-node.role-direct .top-node-accent { fill: var(--warn); }
.top-node.role-direct .top-badge-bg { fill: var(--warn-soft); }
.top-node.role-direct .top-badge-txt { fill: var(--warn); }
.top-node.role-test-inferred .top-node-accent { fill: var(--pass); }
.top-node.role-test-inferred .top-badge-bg { fill: var(--pass-soft); }
.top-node.role-test-inferred .top-badge-txt { fill: var(--pass); }

.top-node.selected .top-node-bg { stroke: var(--signal); stroke-width: 2px; filter: drop-shadow(0 4px 14px rgba(255, 118, 46, 0.25)); }
.top-node.neighbor-active .top-node-bg { stroke: var(--signal); stroke-width: 1.5px; fill: #fcfcfd; }
.top-node.dimmed { opacity: 0.15; }
.top-node.filter-dimmed { opacity: 0.12; }

.top-inspector {
  position: absolute;
  top: 12px;
  right: 12px;
  bottom: 12px;
  width: 320px;
  border-radius: var(--r-md);
  padding: 16px;
  overflow: auto;
  display: grid;
  gap: 12px;
  align-content: start;
  z-index: 10;
}
.top-inspector[hidden] { display: none; }

/* ---------------------------------------------------------------- Table & Queue */
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-top: 10px;
}
.table th {
  text-align: left;
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 14px 16px;
  border-bottom: 1px solid var(--hairline);
}
.table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
  font-size: 14px;
}
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { cursor: pointer; transition: background 120ms ease; }
.table tbody tr:hover, .table tbody tr:focus-visible { background: var(--surface-2); outline: none; }

/* ---------------------------------------------------------------- Responsive Design */
@media (max-width: 1100px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .privacy-grid { grid-template-columns: repeat(2, 1fr); }
  .foot { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .site-nav { display: none; }
  .review-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 42px; }
  .section-title-large { font-size: 30px; }
  .demo-cards-grid { grid-template-columns: 1fr; }
  .screenshots-grid { grid-template-columns: 1fr; }
  .install-steps-grid { grid-template-columns: 1fr; }
  .dual-cards-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .toolbar {
    flex-wrap: wrap;
    border-radius: var(--r-lg);
    top: 8px;
    padding: 10px 14px;
  }
  .nav-left { width: 100%; justify-content: space-between; }
  .nav-right { width: 100%; flex-wrap: wrap; justify-content: space-between; }
  .field { width: 100%; order: 1; margin-top: 4px; }
  .status { order: 2; }
  .btn-github-nav { order: 3; }
  
  .hero-section { margin: 24px 0 44px; }
  .hero-title { font-size: 32px; }
  .hero-lede { font-size: 15.5px; }
  .hero-highlight { padding: 1px 12px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .btn.pill-cta { width: 100%; }
  
  .features-grid { grid-template-columns: 1fr; }
  .privacy-grid { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
  
  .floating-hero-pill {
    top: 12px;
    left: 12px;
    font-size: 11.5px;
    padding: 6px 12px;
  }
  
  .browser-header { height: 38px; padding: 0 10px; }
  .browser-address-bar { display: none; }
  
  .topology-stage, .atlas-stage { height: 420px; }
  .atlas-controls { top: 8px; left: 8px; right: 8px; max-width: none; }
  .atlas-controls .atlas-hint { display: none; }
  .inspector, .top-inspector {
    top: auto;
    left: 8px;
    right: 8px;
    bottom: 8px;
    width: auto;
    max-height: 50%;
  }
}

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

/* =====================================================================
   SIEVE — HALLOWEEN EDITION (appended last; token overrides + inverted-ink fixes)
   ===================================================================== */
:root {
  --surface: #121019; --surface-2: #191620; --surface-3: #211B29; --solid: #191620;
  --ink: #F8F2EA; --ink-2: #D2C8DA; --ink-3: #AAA1B2; --ink-muted: #7D7387;
  --hairline: #302638; --hairline-2: #3E3149; --hairline-subtle: #1E1925;
  --signal: #FF762E; --signal-hover: #FF9A4D; --signal-soft: rgba(255, 118, 46, 0.10);
  --signal-border: rgba(255, 118, 46, 0.35); --signal-highlight: rgba(255, 118, 46, 0.16);
  --fail: #E36C69; --fail-soft: rgba(227, 108, 105, 0.12); --fail-border: rgba(227, 108, 105, 0.35);
  --warn: #E9A34B; --warn-soft: rgba(233, 163, 75, 0.12); --warn-border: rgba(233, 163, 75, 0.35);
  --pass: #82B99A; --pass-soft: rgba(130, 185, 154, 0.12); --pass-border: rgba(130, 185, 154, 0.35);
  --glass: rgba(25, 22, 32, 0.78); --glass-edge: rgba(121, 82, 165, 0.25);
  --hw-purple: #7952A5; --hw-purple-deep: #39244F;
  color-scheme: dark;
}
body {
  background:
    radial-gradient(1100px 600px at 85% -5%, rgba(255, 118, 46, 0.10), transparent 60%),
    radial-gradient(900px 700px at -10% 40%, rgba(121, 82, 165, 0.13), transparent 60%),
    linear-gradient(180deg, #0B0A0F 0%, #0E0C13 50%, #0B0A0F 100%) fixed;
  color: var(--ink);
}
/* Elements that used dark ink as a background with white text: orange with dark text instead */
.skip, .btn.primary, .btn.primary.pill-cta, .judge-tag, .step-badge, .btn[aria-pressed="true"] {
  background: linear-gradient(180deg, #FF9A4D, #FF762E); color: #1A0E06; border-color: transparent;
}
.btn.primary:hover, .btn.primary.pill-cta:hover { filter: brightness(1.06); box-shadow: 0 8px 22px rgba(255, 118, 46, 0.3); }
:focus-visible { outline: 2px solid #FF9A4D; outline-offset: 2px; }
::selection { background: rgba(255, 118, 46, 0.35); color: #F8F2EA; }
/* Seasonal mark: a faint crescent moon top-right, decorative only */
body::after {
  content: ""; position: fixed; top: 84px; right: 6vw; width: 34px; height: 34px; border-radius: 50%;
  box-shadow: -8px 5px 0 0 rgba(255, 196, 140, 0.22); pointer-events: none; z-index: 0;
}
@media (max-width: 640px) { body::after { display: none; } }
