/* ============================================================
   Aegix — landing page
   ============================================================ */

:root {
  --bg: #08090b;
  --bg-2: #0c0d11;
  --surface: #0f1115;
  --surface-2: #14171d;
  --surface-3: #1b1f27;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f4f5;
  --text-dim: #b3b5bb;
  --muted: #7e818a;
  --subtle: #555861;

  --accent: #7c5cff;
  --accent-2: #9d83ff;
  --accent-glow: rgba(124, 92, 255, 0.35);
  --accent-soft: rgba(124, 92, 255, 0.12);

  --signal-green: #2bd4a3;
  --signal-amber: #f5b942;
  --signal-red: #f47272;
  --signal-blue: #5ab9ff;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --shadow-card: 0 1px 0 rgba(255,255,255,0.04) inset, 0 20px 60px -30px rgba(0,0,0,0.8);
  --shadow-glow: 0 0 0 1px var(--accent-soft), 0 30px 80px -20px var(--accent-glow);

  --font-sans: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --container: 1240px;
  --gutter: 28px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  line-height: 1.55;
  font-size: 16px;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 80% -10%, rgba(124, 92, 255, 0.13), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(90, 185, 255, 0.06), transparent 60%);
  z-index: 0;
}

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

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

button { font-family: inherit; }

::selection { background: var(--accent-soft); color: var(--text); }

/* ============================================================
   Layout
   ============================================================ */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
  text-wrap: balance;
}

h1 { font-size: clamp(40px, 5.4vw, 76px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 480; }
h2 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.05; letter-spacing: -0.03em; }
h3 { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.2; }

p { color: var(--text-dim); margin: 0; text-wrap: pretty; }

.lead {
  font-size: clamp(17px, 1.3vw, 20px);
  color: var(--text-dim);
  max-width: 56ch;
  line-height: 1.5;
}

/* ============================================================
   Nav
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(8, 9, 11, 0.6);
  border-bottom: 1px solid transparent;
  transition: border-color 240ms var(--ease), background 240ms var(--ease);
}
.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(8, 9, 11, 0.85);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-left { display: flex; align-items: center; gap: 40px; }
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  font-size: 14px;
  color: var(--text-dim);
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 180ms var(--ease), background 180ms var(--ease);
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-right { display: flex; align-items: center; gap: 10px; }

/* Wordmark */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.02em;
}
.wordmark-glyph {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  position: relative;
}
.wordmark-glyph svg { width: 22px; height: 22px; }
.wordmark-text {
  letter-spacing: 0.22em;
  font-feature-settings: "ss01";
  font-weight: 600;
  font-size: 14px;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  --pad-y: 10px;
  --pad-x: 16px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: var(--pad-y) var(--pad-x);
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 180ms var(--ease), background 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease), box-shadow 240ms var(--ease);
  isolation: isolate;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 8px 24px -8px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-2);
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 12px 36px -8px var(--accent-glow);
}
.btn-primary .arrow { transition: transform 220ms var(--ease); }
.btn-primary:hover .arrow { transform: translateX(3px); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface); border-color: rgba(255,255,255,0.22); }

.btn-quiet {
  background: transparent;
  color: var(--text-dim);
}
.btn-quiet:hover { color: var(--text); }

.btn-lg { --pad-y: 13px; --pad-x: 22px; font-size: 15px; border-radius: 10px; }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  padding: 80px 0 60px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 5px 5px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-dim);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  margin-bottom: 28px;
}
.hero-badge .pill {
  background: var(--accent-soft);
  color: var(--accent-2);
  border-radius: 999px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.hero-title { margin-bottom: 22px; }
.hero-title .accent {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub { font-size: clamp(17px, 1.3vw, 19px); max-width: 50ch; color: var(--text-dim); }

.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 28px;
  align-items: center;
  font-size: 12.5px;
  color: var(--muted);
}
.hero-trust .dot { width: 4px; height: 4px; background: var(--subtle); border-radius: 50%; }
.hero-trust .item { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { color: var(--signal-green); }

/* ============================================================
   PR review animated visual
   ============================================================ */

.pr-card {
  position: relative;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card), 0 60px 120px -40px rgba(0,0,0,0.7);
  overflow: hidden;
}
.pr-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(124,92,255,0.35), transparent 30%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  padding: 1px;
  pointer-events: none;
}

.pr-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.pr-head .traffic { display: flex; gap: 6px; }
.pr-head .traffic span { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); }
.pr-head .file {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}
.pr-head .file .sep { color: var(--subtle); }
.pr-head .pr-meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}
.pr-head .pr-meta .branch {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 8px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-dim);
}

.pr-body {
  display: grid;
  grid-template-columns: 1fr 280px;
  min-height: 460px;
}

.pr-diff {
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 14px 0;
  line-height: 1.65;
  border-right: 1px solid var(--border);
}
.diff-line {
  display: grid;
  grid-template-columns: 36px 36px 1fr;
  align-items: center;
  padding: 0 18px 0 0;
  color: var(--text-dim);
  position: relative;
  transition: background 200ms var(--ease);
}
.diff-line .gutter {
  text-align: right;
  color: var(--subtle);
  padding-right: 10px;
  font-size: 11.5px;
}
.diff-line .sign {
  text-align: center;
  color: var(--subtle);
}
.diff-line.add { background: rgba(43, 212, 163, 0.06); color: #c7f0e1; }
.diff-line.add .sign { color: var(--signal-green); }
.diff-line.del { background: rgba(244, 114, 114, 0.06); color: #f3c8c8; }
.diff-line.del .sign { color: var(--signal-red); }
.diff-line.flagged { background: rgba(245, 185, 66, 0.07); }
.diff-line.flagged::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--signal-amber);
}
.diff-line.critical::before { background: var(--signal-red); }
.diff-line .code { white-space: pre; }
.diff-line .tok-kw { color: #c4a3ff; }
.diff-line .tok-fn { color: #7ec9ff; }
.diff-line .tok-str { color: #a5e0a0; }
.diff-line .tok-num { color: #f5b942; }
.diff-line .tok-com { color: var(--subtle); }

.pr-side {
  padding: 14px;
  background: rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pr-side-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 6px 8px;
  border-bottom: 1px solid var(--border);
}
.pr-side-head .count {
  background: var(--accent-soft);
  color: var(--accent-2);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0;
}

.review-comment {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease), border-color 240ms var(--ease);
}
.review-comment.show { opacity: 1; transform: translateY(0); }
.review-comment.critical { border-color: rgba(244,114,114,0.35); box-shadow: 0 0 0 3px rgba(244,114,114,0.06); }
.review-comment.warn { border-color: rgba(245,185,66,0.3); }

.rc-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.rc-head .avatar {
  width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  display: grid; place-items: center;
  font-size: 9px; font-weight: 700; color: #fff;
}
.rc-head .severity {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--surface-3);
  color: var(--muted);
}
.review-comment.critical .severity { background: rgba(244,114,114,0.15); color: var(--signal-red); }
.review-comment.warn .severity { background: rgba(245,185,66,0.15); color: var(--signal-amber); }

.rc-body {
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.5;
}
.rc-body code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 1px 5px;
  background: var(--surface-3);
  border-radius: 4px;
  color: var(--text);
}
.rc-foot {
  display: flex; gap: 6px; margin-top: 8px;
}
.rc-foot button {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 5px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 160ms var(--ease);
}
.rc-foot button:hover { color: var(--text); border-color: rgba(255,255,255,0.22); }
.rc-foot button.fix {
  background: var(--accent-soft);
  border-color: rgba(124,92,255,0.3);
  color: var(--accent-2);
}
.rc-foot button.fix:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.pr-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
}
.pr-foot .stat { display: inline-flex; align-items: center; gap: 6px; }
.pr-foot .stat .sw {
  width: 8px; height: 8px; border-radius: 50%;
}
.pr-foot .stat.ok .sw { background: var(--signal-green); box-shadow: 0 0 8px var(--signal-green); }
.pr-foot .stat.warn .sw { background: var(--signal-amber); }
.pr-foot .stat.crit .sw { background: var(--signal-red); }
.pr-foot .verdict {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(43, 212, 163, 0.1);
  color: var(--signal-green);
  border: 1px solid rgba(43, 212, 163, 0.25);
}

/* Floating chips */
.pr-chips {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.pr-chips.left { left: -22px; top: 28%; }
.pr-chip {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text);
  box-shadow: 0 12px 30px -10px rgba(0,0,0,0.7);
  backdrop-filter: blur(10px);
  animation: floaty 5s var(--ease) infinite alternate;
}
.pr-chip:nth-child(2) { animation-delay: -1.5s; transform: translateX(-30px); }
.pr-chip:nth-child(3) { animation-delay: -3s; transform: translateX(-10px); }
.pr-chip .ico {
  width: 16px; height: 16px;
  display: grid; place-items: center;
  border-radius: 50%;
}
.pr-chip.security .ico { background: rgba(90, 185, 255, 0.18); color: var(--signal-blue); }
.pr-chip.tests .ico { background: rgba(43,212,163,0.18); color: var(--signal-green); }
.pr-chip.perf .ico { background: rgba(245,185,66,0.18); color: var(--signal-amber); }

@keyframes floaty {
  0% { transform: translateY(0) translateX(0); }
  100% { transform: translateY(-8px) translateX(-4px); }
}

/* Caret blinking cursor on typed text */
.typed::after {
  content: "▎";
  margin-left: 1px;
  color: var(--accent);
  animation: caret 1.1s steps(1) infinite;
}
.typed.done::after { content: ""; }

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

/* ============================================================
   Logo strip / social proof
   ============================================================ */

.logos-strip {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 40px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.015), transparent);
}
.logos-eyebrow {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.marquee {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 60px;
  padding-right: 60px;
  flex-shrink: 0;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track .logo {
  height: 28px;
  color: var(--text-dim);
  opacity: 0.7;
  flex-shrink: 0;
  display: inline-flex; align-items: center;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: opacity 200ms var(--ease), color 200ms var(--ease);
}
.marquee-track .logo:hover { opacity: 1; color: var(--text); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   Section header
   ============================================================ */

.section { padding: 120px 0; }
.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head .eyebrow { margin-bottom: 16px; justify-content: center; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { margin: 0 auto; max-width: 56ch; font-size: 17px; }

/* ============================================================
   Feature grid (bento)
   ============================================================ */

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 14px;
}

.feat {
  position: relative;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 240px;
  transition: border-color 240ms var(--ease), transform 240ms var(--ease);
  isolation: isolate;
}
.feat::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 58%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(15, 17, 21, 0.82) 38%, var(--surface) 100%);
}
.feat::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(400px 200px at var(--mx, 50%) var(--my, 0%), rgba(124,92,255,0.10), transparent 60%);
  opacity: 0;
  transition: opacity 240ms var(--ease);
  pointer-events: none;
}
.feat:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.feat:hover::after { opacity: 1; }

.feat h3 {
  position: relative;
  z-index: 2;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
}
.feat p {
  position: relative;
  z-index: 2;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 38ch;
}
.feat .feat-art {
  position: absolute;
  inset: 0 0 112px;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Layouts */
.feat.big { grid-column: span 7; grid-row: span 2; min-height: 380px; }
.feat.med { grid-column: span 5; min-height: 260px; }
.feat.med2 { grid-column: span 5; min-height: 260px; }
.feat.sm { grid-column: span 4; }
.feat.sm-wide { grid-column: span 8; }
.feat.big .feat-art { bottom: 150px; }
.feat.med .feat-art, .feat.med2 .feat-art { bottom: 126px; }
.feat.sm .feat-art { bottom: 104px; }
.feat.sm-wide .feat-art { bottom: 116px; }

/* Feat 1 — AI code review (big) */
.art-review {
  padding: 28px 28px 0;
  height: 100%;
}
.art-review .pr-mini {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 10px 12px;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 460px;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.8);
}
.art-review .pr-mini .ln { display: grid; grid-template-columns: 24px 1fr; gap: 6px; }
.art-review .pr-mini .ln .n { color: var(--subtle); text-align: right; }
.art-review .pr-mini .ln.add { color: #c7f0e1; }
.art-review .pr-mini .ln.del { color: #f3c8c8; }
.art-review .pr-mini .ai-bubble {
  margin-top: 10px;
  background: rgba(124,92,255,0.08);
  border: 1px solid rgba(124,92,255,0.25);
  border-radius: 8px;
  padding: 8px 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text);
  position: relative;
}
.art-review .pr-mini .ai-bubble::before {
  content: "AEGIX";
  position: absolute;
  top: -8px; left: 10px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  padding: 2px 6px;
  border-radius: 3px;
}

/* Feat — QA Automation */
.art-qa {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 18px 26px;
  height: 100%;
  padding-bottom: 100px;
}
.feat.med .art-qa {
  height: 100% !important;
  padding-bottom: 44px;
}
.art-qa .bar {
  flex: 1 1 0;
  min-height: 16px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-radius: 3px 3px 0 0;
  opacity: 0.85;
}
.art-qa .bar.miss { background: linear-gradient(180deg, var(--signal-red), #c64a4a); opacity: 0.6; }

.test-row {
  display: flex; gap: 6px; margin-top: 8px;
  padding: 0 26px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  align-items: center;
}
.feat.med .test-row { bottom: 22px !important; }
.test-row .pass { color: var(--signal-green); }
.test-row .fail { color: var(--signal-red); }

/* Feat — bug fix */
.art-fix {
  position: absolute;
  inset: 0;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fix-flow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
}
.fix-step {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.fix-step.active { color: var(--text); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.fix-step .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--subtle); }
.fix-step.active .dot { background: var(--accent); }
.fix-arrow { color: var(--subtle); }

/* Feat — feature dev */
.art-build .stream {
  position: absolute;
  inset: 24px 24px auto 24px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.7;
}
.art-build .stream .ok { color: var(--signal-green); }
.art-build .stream .pending { color: var(--signal-amber); }
.art-build .stream .work::before { content: "▸ "; color: var(--accent); }

/* Feat — static analysis */
.art-sast .ring-wrap {
  position: absolute;
  right: -10px; top: 8px;
  width: 132px; height: 132px;
}
.art-sast svg { width: 100%; height: 100%; }
.art-sast .score {
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  text-align: center;
}
.art-sast .score .num { font-size: 30px; color: var(--text); }
.art-sast .score .lbl { font-size: 9px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }

/* Feat — codebase search */
.art-search {
  position: absolute;
  inset: 0;
  padding: 24px;
}
.search-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.search-card .q { color: var(--text); }
.search-card .slash {
  margin-left: auto;
  font-size: 10px;
  padding: 1px 6px;
  background: var(--surface-3);
  border-radius: 3px;
  color: var(--muted);
}
.search-results {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.search-results .path { color: var(--text-dim); }
.search-results .hi { color: var(--accent-2); background: var(--accent-soft); padding: 0 2px; border-radius: 2px; }

/* Feat — multirepo */
.art-multi {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.repo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 240px;
}
.repo-grid .repo {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  display: flex; flex-direction: column; gap: 4px;
}
.repo-grid .repo .ln {
  height: 3px; border-radius: 2px; background: var(--surface-3);
}
.repo-grid .repo .ln.a { background: var(--accent); width: 70%; }
.repo-grid .repo .ln.b { background: var(--signal-green); width: 40%; }

/* Feat — compliance */
.art-compliance {
  position: absolute;
  inset: 0;
  padding: 22px;
  display: flex; flex-wrap: wrap; gap: 8px;
  align-content: center; justify-content: center;
}
.badge-cert {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-align: center;
  line-height: 1.2;
}
.badge-cert.glow { box-shadow: 0 0 0 4px var(--accent-soft); border-color: var(--accent); color: var(--text); }

/* ============================================================
   Product showcase / tabs
   ============================================================ */

.showcase {
  background: linear-gradient(180deg, transparent, rgba(124,92,255,0.04));
}
.tabs {
  display: flex;
  gap: 8px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin: 0 auto 36px;
  width: fit-content;
}
.tab {
  background: transparent;
  border: 0;
  color: var(--text-dim);
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 200ms var(--ease);
  position: relative;
}
.tab:hover { color: var(--text); }
.tab.active {
  color: var(--text);
  background: var(--surface-3);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 6px 18px -6px rgba(0,0,0,0.6);
}
.tab .ico { vertical-align: -2px; margin-right: 6px; }

.tab-panel {
  display: none;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.tab-panel.active { display: grid; animation: panelIn 480ms var(--ease); }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.tab-panel h3 { font-size: 30px; letter-spacing: -0.025em; font-weight: 500; margin-bottom: 14px; }
.tab-panel .lead { font-size: 17px; margin-bottom: 22px; }
.tab-panel ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.tab-panel ul li {
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--text-dim);
  font-size: 14.5px;
}
.tab-panel ul li svg { color: var(--accent); flex-shrink: 0; margin-top: 3px; }

.panel-visual {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  min-height: 420px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

/* Test runner visual */
.runner-head {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.runner-head .live { color: var(--signal-green); display: inline-flex; align-items: center; gap: 6px; }
.runner-head .live .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--signal-green);
  box-shadow: 0 0 0 0 rgba(43,212,163,0.5);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(43,212,163,0.5); }
  100% { box-shadow: 0 0 0 10px rgba(43,212,163,0); }
}
.runner-list { padding-top: 10px; font-family: var(--font-mono); font-size: 12.5px; }
.runner-list .t {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  gap: 8px;
  padding: 5px 0;
  color: var(--text-dim);
  align-items: center;
}
.runner-list .t .s { color: var(--subtle); }
.runner-list .t.pass .s { color: var(--signal-green); }
.runner-list .t.fail .s { color: var(--signal-red); }
.runner-list .t.run .s { color: var(--signal-amber); }
.runner-list .t .dur { color: var(--subtle); font-size: 11px; }
.runner-list .t.pass .name { color: var(--text); }

.runner-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.runner-stats .stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
}
.runner-stats .stat .v {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--text);
}
.runner-stats .stat .l { font-size: 11px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.runner-stats .stat.ok .v { color: var(--signal-green); }
.runner-stats .stat.warn .v { color: var(--signal-amber); }

/* Auto-fix PR visual */
.fix-panel { padding: 0; display: flex; flex-direction: column; }
.fix-panel .fph {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}
.fix-panel .fph .tag {
  background: rgba(43,212,163,0.12);
  color: var(--signal-green);
  border: 1px solid rgba(43,212,163,0.3);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
}
.fix-panel .fph .title { color: var(--text); font-family: var(--font-sans); }
.fix-panel .fpb { padding: 18px; flex: 1; overflow: hidden; }
.fix-panel .steps {
  display: flex; flex-direction: column;
  gap: 0;
  position: relative;
}
.fix-panel .step {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 12px;
  padding: 12px 0;
  align-items: flex-start;
  position: relative;
}
.fix-panel .step::before {
  content: "";
  position: absolute;
  left: 13px; top: 30px; bottom: -12px;
  width: 1px;
  background: var(--border-strong);
}
.fix-panel .step:last-child::before { display: none; }
.fix-panel .step .marker {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  position: relative;
  z-index: 1;
}
.fix-panel .step.done .marker { background: var(--accent); color: #fff; border-color: var(--accent); }
.fix-panel .step.run .marker { border-color: var(--accent); color: var(--accent); }
.fix-panel .step.run .marker::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: pulse-ring 1.6s var(--ease) infinite;
}
@keyframes pulse-ring {
  0% { opacity: 0.6; transform: scale(0.9); }
  100% { opacity: 0; transform: scale(1.4); }
}
.fix-panel .step .body .name { color: var(--text); font-size: 14px; }
.fix-panel .step .body .meta { font-size: 12px; color: var(--muted); font-family: var(--font-mono); margin-top: 2px; }
.fix-panel .step .dur { font-family: var(--font-mono); font-size: 11px; color: var(--subtle); }

/* Build agent */
.build-panel { padding: 0; }
.build-panel .bph {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.chat-stream {
  padding: 16px;
  display: flex; flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
  max-height: 360px;
  overflow: hidden;
}
.chat-msg {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
}
.chat-msg .av {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}
.chat-msg.user .av { background: var(--surface-3); color: var(--text-dim); }
.chat-msg.agent .av { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; }
.chat-msg .bubble { padding-top: 2px; color: var(--text-dim); line-height: 1.5; }
.chat-msg.user .bubble { color: var(--text); }
.chat-msg .tools {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}
.chat-msg .tool {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.chat-msg .tool .ico { color: var(--accent); margin-right: 4px; }

/* Static analysis panel */
.sast-panel { padding: 22px; }
.sast-panel .row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.sast-panel .row:last-child { border-bottom: 0; }
.sast-panel .row .name { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 14px; }
.sast-panel .row .sev {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
}
.sast-panel .row .sev.crit { background: rgba(244,114,114,0.15); color: var(--signal-red); }
.sast-panel .row .sev.high { background: rgba(245,185,66,0.15); color: var(--signal-amber); }
.sast-panel .row .sev.med { background: rgba(90,185,255,0.15); color: var(--signal-blue); }
.sast-panel .row .where { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }

/* ============================================================
   Integrations
   ============================================================ */

.integ {
  padding: 80px 0;
}
.integ-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  max-width: 980px;
  margin: 0 auto;
}
.integ-cell {
  aspect-ratio: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--text-dim);
  transition: all 240ms var(--ease);
  position: relative;
  overflow: hidden;
}
.integ-cell:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -16px var(--accent-glow);
}
.integ-cell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(150px 80px at 50% 100%, var(--accent-soft), transparent 60%);
  opacity: 0;
  transition: opacity 240ms var(--ease);
}
.integ-cell:hover::before { opacity: 1; }
.integ-cell svg, .integ-cell .name { position: relative; z-index: 1; }
.integ-cell .name {
  font-size: 11.5px;
  font-weight: 500;
  margin-top: 6px;
  letter-spacing: 0.01em;
}
.integ-cell .ico-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; }

/* ============================================================
   Comparison table
   ============================================================ */

.compare {
  padding: 100px 0;
}
.compare-card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 4px;
  box-shadow: var(--shadow-card);
}
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}
.compare-table thead th {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  color: var(--text-dim);
  padding: 22px 18px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.compare-table thead th:first-child {
  text-align: left;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.compare-table thead th.aegix {
  color: var(--text);
  background: linear-gradient(180deg, var(--accent-soft), transparent);
  border-radius: 14px 14px 0 0;
  position: relative;
}
.compare-table thead th.aegix::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px; top: 0;
  border: 1px solid var(--accent);
  border-radius: 14px 14px 0 0;
  pointer-events: none;
  border-bottom: 0;
}
.compare-table thead th.aegix .wordmark-text { font-size: 13px; }
.compare-table tbody td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-dim);
  text-align: center;
}
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table tbody td:first-child {
  text-align: left;
  color: var(--text);
  font-weight: 500;
}
.compare-table tbody td.aegix {
  background: linear-gradient(180deg, transparent, var(--accent-soft));
  border-left: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
}
.compare-table tbody tr:last-child td.aegix { border-radius: 0 0 14px 14px; border-bottom: 1px solid var(--accent); }
.compare-table .check { color: var(--signal-green); }
.compare-table .check.partial { color: var(--signal-amber); opacity: 0.8; }
.compare-table .x { color: var(--subtle); }
.compare-table .cell-note { font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-top: 2px; display: block; }

/* ============================================================
   Testimonials
   ============================================================ */

.testimonials {
  padding: 100px 0;
}
.t-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.t-card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 240ms var(--ease), border-color 240ms var(--ease);
}
.t-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.t-quote { font-size: 17px; line-height: 1.5; color: var(--text); font-weight: 400; }
.t-quote::before { content: "“"; color: var(--accent); font-size: 36px; font-weight: 600; line-height: 0.5; vertical-align: -12px; margin-right: 2px; }
.t-card .stat {
  display: flex; gap: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.t-card .stat .v { font-family: var(--font-mono); font-size: 22px; color: var(--accent-2); line-height: 1; }
.t-card .stat .l { font-size: 11px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 4px; }
.t-card .who {
  margin-top: auto;
  display: flex; align-items: center; gap: 12px;
}
.t-card .who .av {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a2d36, #1a1d24);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 600;
  color: var(--text-dim);
}
.t-card .who .name { font-size: 14px; color: var(--text); }
.t-card .who .role { font-size: 12px; color: var(--muted); }

/* ============================================================
   FAQ
   ============================================================ */

.faq {
  padding: 100px 0;
}
.faq-wrap {
  max-width: 820px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 17px;
  color: var(--text);
  font-weight: 450;
  transition: color 180ms var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-2); }
.faq-item summary .plus {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
  transition: transform 280ms var(--ease), background 200ms var(--ease), color 200ms var(--ease);
}
.faq-item[open] summary .plus {
  transform: rotate(45deg);
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.faq-item .answer {
  padding: 0 4px 22px;
  color: var(--text-dim);
  font-size: 15px;
  max-width: 68ch;
  line-height: 1.6;
}

/* ============================================================
   Final CTA
   ============================================================ */

.cta {
  padding: 120px 0;
}
.cta-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: 80px 56px;
  text-align: center;
  background:
    radial-gradient(700px 400px at 50% -10%, rgba(124,92,255,0.4), transparent 60%),
    linear-gradient(180deg, #1a1530, #0a0b13);
  border: 1px solid rgba(124,92,255,0.3);
  box-shadow: var(--shadow-glow);
}
.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  background-position: center;
  -webkit-mask: radial-gradient(circle at 50% 0%, #000 30%, transparent 70%);
  mask: radial-gradient(circle at 50% 0%, #000 30%, transparent 70%);
  pointer-events: none;
}
.cta-card h2 { font-size: clamp(36px, 4.4vw, 60px); margin-bottom: 18px; }
.cta-card p { font-size: 18px; max-width: 52ch; margin: 0 auto 36px; }
.cta-card .hero-cta { justify-content: center; }

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

footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h4 {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  font-weight: 500;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { font-size: 13.5px; color: var(--text-dim); }
.footer-grid a:hover { color: var(--text); }
.footer-blurb { font-size: 13px; color: var(--muted); max-width: 30ch; margin-top: 14px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--muted);
}
.footer-bottom .legal { display: flex; gap: 20px; }

/* ============================================================
   Reveal-on-scroll
   ============================================================ */

/* Reveal — only hides when JS has flagged the document.
   This keeps content visible if scripts fail, are blocked,
   or the IntersectionObserver never fires (link previews, etc.). */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.js-ready .reveal.in,
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .js-ready .reveal { opacity: 1; transform: none; transition: none; }
}
.reveal.delay-1 { transition-delay: 80ms; }
.reveal.delay-2 { transition-delay: 160ms; }
.reveal.delay-3 { transition-delay: 240ms; }
.reveal.delay-4 { transition-delay: 320ms; }

/* ============================================================
   Tweaks panel
   ============================================================ */

#tweaks-root {
  position: fixed;
  top: 88px;
  right: 20px;
  z-index: 100;
}

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

/* Diff & code blocks: prevent horizontal page scroll */
.pr-diff { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pr-diff::-webkit-scrollbar { height: 6px; }
.pr-diff::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
.pr-diff::-webkit-scrollbar-track { background: transparent; }

/* Tabs row: horizontally scrollable on small screens */
.tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { white-space: nowrap; flex-shrink: 0; }

/* Compare table — scroll horizontally inside its card */
.compare-card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-table { min-width: 720px; }

/* Fix-flow chain — wrap on narrow */
.fix-flow { flex-wrap: wrap; justify-content: center; row-gap: 8px; }

@media (max-width: 1100px) {
  :root { --gutter: 22px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { max-width: 720px; }
  .pr-body { grid-template-columns: 1fr; min-height: 0; }
  .pr-side { border-top: 1px solid var(--border); }
  .pr-chips.left { display: none; }
  .bento { grid-template-columns: repeat(6, 1fr); }
  .feat.big { grid-column: span 6; grid-row: auto; min-height: 340px; }
  .feat.med, .feat.med2 { grid-column: span 3; }
  .feat.sm { grid-column: span 3; }
  .feat.sm-wide { grid-column: span 6; }
  .tab-panel.active { grid-template-columns: 1fr; }
  .integ-grid { grid-template-columns: repeat(4, 1fr); }
  .t-grid { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
  .nav-links { display: none; }
  .panel-visual { min-height: 0; }
}

@media (max-width: 820px) {
  .hero-trust { gap: 14px; row-gap: 10px; font-size: 12px; }
  .hero-trust .dot { display: none; }
  .nav-right .btn-quiet { display: none; }
}

@media (max-width: 720px) {
  :root { --gutter: 18px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .hero { padding: 40px 0 30px; }
  .hero-grid { gap: 28px; }
  .hero-badge { font-size: 12px; padding: 4px 4px 4px 10px; }
  .hero-cta .btn-lg { flex: 1; min-width: 0; }

  /* ----- Bento: stack art above text instead of behind it ----- */
  .bento { grid-template-columns: 1fr; gap: 12px; }
  .feat, .feat.big, .feat.med, .feat.med2, .feat.sm, .feat.sm-wide {
    grid-column: span 1;
    grid-row: auto;
    min-height: 0;
    padding: 0;
    justify-content: flex-start;
    display: flex;
    flex-direction: column;
  }
  .feat .feat-art {
    position: relative;
    inset: auto;
    bottom: auto;
    z-index: 0;
    height: 180px;
    flex-shrink: 0;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  }
  .feat.big .feat-art,
  .feat.med .feat-art,
  .feat.med2 .feat-art,
  .feat.sm .feat-art,
  .feat.sm-wide .feat-art {
    bottom: auto;
  }
  .feat h3 { margin: 22px 22px 8px; font-size: 17px; }
  .feat p { margin: 0 22px 22px; font-size: 13.5px; }

  /* Art adjustments for inline display */
  .art-review { padding: 18px 22px 0; height: 100%; }
  .art-review .pr-mini { font-size: 10.5px; padding: 8px 10px; max-width: 100%; }
  .art-review .pr-mini .ai-bubble { font-size: 11px; padding: 6px 8px; }

  .art-qa {
    padding: 16px 22px 0;
    height: 100%;
    grid-template-columns: repeat(8, 1fr);
    align-content: end;
  }
  .test-row { display: none; }

  .art-fix { padding: 16px 22px; }
  .fix-flow { font-size: 10px; gap: 4px; }
  .fix-step { padding: 4px 8px; }
  .fix-arrow { font-size: 10px; }

  .art-build .stream { inset: 16px 22px auto 22px; font-size: 11px; }

  .art-sast .ring-wrap {
    width: 140px; height: 140px;
    right: auto; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
  }

  .art-search { padding: 18px 22px; }

  .art-multi .repo-grid { max-width: 220px; }

  .art-compliance { padding: 16px; gap: 6px; }
  .badge-cert { width: 50px; height: 50px; font-size: 8.5px; }

  .pr-head .pr-meta { display: none; }
  .pr-head .file { font-size: 11px; }
  .diff-line { grid-template-columns: 28px 24px 1fr; }
  .diff-line .gutter { font-size: 10.5px; padding-right: 6px; }
  .pr-diff { font-size: 11.5px; }
  .pr-foot { flex-wrap: wrap; gap: 8px 14px; font-size: 11px; padding: 10px 14px; }
  .pr-foot .verdict { margin-left: 0; }

  .tabs { padding: 5px; margin: 0 -18px 28px; padding-left: 18px; padding-right: 18px; width: auto; border-radius: 0; border-left: 0; border-right: 0; }
  .tab { padding: 8px 12px; font-size: 13px; }

  .runner-stats { grid-template-columns: repeat(2, 1fr); }
  .panel-visual { padding: 18px; min-height: 0; }
  .chat-stream { padding: 14px; max-height: none; }

  .compare-table thead th, .compare-table tbody td { padding: 12px 10px; font-size: 13px; }
  .compare-table .cell-note { display: none; }

  .integ-grid { grid-template-columns: repeat(3, 1fr); }

  .t-card { padding: 22px; }
  .t-quote { font-size: 16px; }

  .faq-item summary { font-size: 15.5px; padding: 18px 4px; gap: 12px; }
  .faq-item .answer { font-size: 14px; }

  .cta { padding: 80px 0; }
  .cta-card { padding: 52px 24px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}

@media (max-width: 480px) {
  h1 { font-size: 38px; }
  h2 { font-size: 30px; }
  .hero-title br { display: none; }
  .nav-inner { height: 56px; }
  .wordmark-text { font-size: 13px; letter-spacing: 0.18em; }
  .nav-right { gap: 6px; }
  .nav-right .btn-ghost { display: none; }
  .btn { padding: 9px 14px; font-size: 13px; }
  .btn-lg { padding: 11px 16px; font-size: 14px; }
  .hero-cta { gap: 8px; }
  .integ-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .marquee-track { gap: 36px; padding-right: 36px; }
  .marquee-track .logo { font-size: 18px !important; }
}
