/* ============================================
   Nightgauge.dev — Dark AI-Focused Theme
   ============================================ */

:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: #1a1f2e;
  --bg-card-hover: #1f2538;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-blue: #4a6fff;
  --accent-blue-hover: #3a5fdd;
  --accent-purple: #8b5cf6;
  --danger: #f87171;
  --accent-gradient: linear-gradient(135deg, #4a6fff, #8b5cf6);
  --accent-gradient-subtle: linear-gradient(
    135deg,
    rgb(74 111 255 / 10%),
    rgb(139 92 246 / 10%)
  );
  --glow-blue: 0 0 30px rgb(74 111 255 / 15%);
  --glow-purple: 0 0 30px rgb(139 92 246 / 10%);
  --border-color: rgb(255 255 255 / 8%);
  --border-accent: rgb(74 111 255 / 30%);
  --max-width: 1200px;
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --transition: all 0.3s ease;
  --transition-fast: all 0.15s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  padding: 0 24px;
  margin: 0 auto;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  font-weight: 600;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--accent-purple);
}

/* ---- Scroll Animations ---- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

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

/* ============================================
   Header
   ============================================ */
.site-header {
  background: rgb(10 14 26 / 90%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}

.logo a:hover {
  color: var(--text-primary);
}

.logo-icon {
  width: 28px;
  height: 28px;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}

.main-nav a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.main-nav a:hover {
  color: var(--text-primary);
}

.nav-link-muted {
  color: var(--text-muted) !important;
  font-size: 0.85rem !important;
}

.nav-cta {
  background: var(--accent-gradient) !important;
  color: white !important;
  padding: 8px 20px;
  border-radius: var(--border-radius);
  font-weight: 600 !important;
}

.nav-cta:hover {
  opacity: 0.9;
  color: white !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   Buttons
   ============================================ */
.button {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

.button.primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: var(--glow-blue);
}

.button.primary:hover {
  opacity: 0.9;
  box-shadow: 0 0 40px rgb(74 111 255 / 25%);
  color: white;
}

.button.secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.button.secondary:hover {
  border-color: var(--border-accent);
  color: var(--text-primary);
}

/* ============================================
   Section Utilities
   ============================================ */
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.7;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgb(74 111 255 / 8%) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgb(139 92 246 / 6%) 0%,
    transparent 70%
  );
  pointer-events: none;
}

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

.hero-content {
  max-width: 720px;
  margin-bottom: 60px;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

.hero-gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 560px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* ============================================
   Pipeline Section
   ============================================ */
.pipeline {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.pipeline-header {
  text-align: center;
  margin-bottom: 60px;
}

.pipeline-header .section-subtitle {
  margin: 0 auto;
}

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pipeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  position: relative;
  transition: var(--transition);
}

.pipeline-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--glow-blue);
  transform: translateY(-2px);
}

.pipeline-stage-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.pipeline-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.pipeline-card .card-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.pipeline-card .card-detail {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Pipeline connecting line between rows */
.pipeline-flow-connector {
  display: flex;
  justify-content: center;
  padding: 12px 0;
}

.pipeline-flow-arrow {
  width: 2px;
  height: 24px;
  background: var(--accent-gradient);
  opacity: 0.3;
  position: relative;
}

/* ============================================
   Features Section
   ============================================ */
.features {
  padding: 100px 0;
  background: var(--bg-primary);
}

.features-header {
  text-align: center;
  margin-bottom: 60px;
}

.features-header .section-subtitle {
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--glow-blue);
  transform: translateY(-2px);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-gradient-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent-blue);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   VS Code Section
   ============================================ */
.vscode-section {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.vscode-header {
  text-align: center;
  margin-bottom: 60px;
}

.vscode-header .section-subtitle {
  margin: 0 auto;
}

.vscode-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.vscode-preview {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

.vscode-preview-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #1e1e2e;
  border-bottom: 1px solid var(--border-color);
}

.vscode-preview-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.vscode-preview-dot.red {
  background: #ff5f57;
}

.vscode-preview-dot.yellow {
  background: #febc2e;
}

.vscode-preview-dot.green {
  background: #28c840;
}

.vscode-preview-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 8px;
}

.vscode-preview-body {
  padding: 40px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
}

.vscode-preview-body.has-screenshot {
  padding: 0;
  min-height: auto;
}

.vscode-preview-body.has-screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

.vscode-preview-body .placeholder-icon {
  width: 48px;
  height: 48px;
  opacity: 0.3;
}

.vscode-preview-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.vscode-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.vscode-feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.vscode-feature-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: var(--accent-gradient-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vscode-feature-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent-blue);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vscode-feature-text h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.vscode-feature-text p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   How It Works Section
   ============================================ */
.how-it-works {
  padding: 100px 0;
  background: var(--bg-primary);
}

.how-it-works-header {
  text-align: center;
  margin-bottom: 60px;
}

.how-it-works-header .section-subtitle {
  margin: 0 auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step {
  text-align: center;
  padding: 40px 24px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-gradient-subtle);
  border: 1px solid var(--border-accent);
  font-size: 1.25rem;
  font-weight: 700;
  background-clip: padding-box;
  color: var(--accent-blue);
  margin-bottom: 24px;
}

.step h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Terminal code snippet */
.code-block {
  background: #0d1117;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 20px 24px;
  margin-top: 48px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  overflow-x: auto;
}

.code-block-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.code-block-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.code-block-dot.red {
  background: #ff5f57;
}

.code-block-dot.yellow {
  background: #febc2e;
}

.code-block-dot.green {
  background: #28c840;
}

.code-block code {
  font-family: "SF Mono", "Fira Code", "Cascadia Code", Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.code-block .prompt {
  color: var(--accent-blue);
}

.code-block .comment {
  color: var(--text-muted);
}

.code-block .highlight {
  color: var(--accent-purple);
}

/* ============================================
   Multi-AI Section
   ============================================ */
.multi-ai {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.multi-ai-header {
  text-align: center;
  margin-bottom: 60px;
}

.multi-ai-header .section-subtitle {
  margin: 0 auto;
}

.ai-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: 0 auto 40px;
}

.ai-tool-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.ai-tool-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--glow-blue);
}

.ai-tool-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 8px;
  background: var(--accent-gradient-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-blue);
}

.ai-tool-card span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
}

.multi-ai-note {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   Early Access Section
   ============================================ */
.early-access {
  padding: 100px 0;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.early-access::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(
    ellipse,
    rgb(74 111 255 / 6%) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.early-access-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.early-access-content .section-subtitle {
  margin: 0 auto 2.5rem;
}

.early-access-form {
  text-align: left;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  background: var(--bg-card);
  color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgb(74 111 255 / 10%);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.early-access-form .button.primary {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
}

.form-error {
  margin: 0 auto 1.5rem;
  max-width: 520px;
  padding: 12px 16px;
  border: 1px solid var(--danger);
  border-radius: var(--border-radius);
  background: rgb(248 113 113 / 10%);
  color: var(--danger);
  font-size: 0.9rem;
}

.form-error a {
  color: var(--danger);
  text-decoration: underline;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 32px 0;
  font-size: 0.875rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  font-weight: 600;
  color: var(--text-primary);
}

.footer-divider {
  color: var(--text-muted);
}

.footer-owner {
  color: var(--text-secondary);
}

.footer-owner a {
  color: var(--text-secondary);
}

.footer-owner a:hover {
  color: var(--accent-blue);
}

.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-social a {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.footer-social a:hover {
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ============================================
   Intelligence Teaser (Homepage)
   ============================================ */
.intelligence-teaser {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.intelligence-teaser-header {
  text-align: center;
  margin-bottom: 60px;
}

.intelligence-teaser-header .section-subtitle {
  margin: 0 auto;
}

.intelligence-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.intelligence-teaser-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.intelligence-teaser-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: var(--transition);
}

.intelligence-teaser-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--glow-blue);
  transform: translateY(-2px);
}

.intelligence-teaser-card:hover::before {
  opacity: 1;
}

.teaser-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-gradient-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.teaser-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent-blue);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.intelligence-teaser-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.intelligence-teaser-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.teaser-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-blue);
}

.teaser-link:hover {
  color: var(--accent-purple);
}

/* ============================================
   Subpage Hero
   ============================================ */
.subpage-hero {
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.subpage-hero::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgb(74 111 255 / 8%) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.subpage-hero-content {
  max-width: 720px;
}

.subpage-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.subpage-hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
}

/* ============================================
   Subpage CTA
   ============================================ */
.subpage-cta {
  padding: 100px 0;
  background: var(--bg-primary);
  text-align: center;
}

.subpage-cta-content {
  max-width: 520px;
  margin: 0 auto;
}

.subpage-cta h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.subpage-cta p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* ============================================
   Intelligence Page — Complexity Model
   ============================================ */
.complexity-section {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.complexity-header {
  text-align: center;
  margin-bottom: 60px;
}

.complexity-header .section-subtitle {
  margin: 0 auto;
}

.complexity-scale {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto 48px;
}

.complexity-tier {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.complexity-tier:hover {
  border-color: var(--border-accent);
}

.complexity-badge {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: white;
}

.complexity-info {
  flex: 1;
}

.complexity-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.complexity-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-blue);
  background: var(--accent-gradient-subtle);
  padding: 2px 8px;
  border-radius: 4px;
}

.complexity-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.complexity-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.complexity-scope {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.scope-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgb(255 255 255 / 5%);
  padding: 2px 8px;
  border-radius: 4px;
}

.scope-detail {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.savings-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: #34d399;
  background: rgb(52 211 153 / 10%);
  padding: 2px 8px;
  border-radius: 4px;
}

.complexity-callout {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
  padding: 32px;
  background: var(--accent-gradient-subtle);
  border: 1px solid var(--border-accent);
  border-radius: var(--border-radius-lg);
}

.callout-stat {
  font-size: 3rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-width: 100px;
  text-align: center;
}

.callout-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.callout-text strong {
  color: var(--text-primary);
}

/* ============================================
   Intelligence Page — Model Selection
   ============================================ */
.models-section {
  padding: 80px 0;
  background: var(--bg-primary);
}

.models-header {
  text-align: center;
  margin-bottom: 60px;
}

.models-header .section-subtitle {
  margin: 0 auto;
}

.models-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.model-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  transition: var(--transition);
}

.model-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--glow-blue);
  transform: translateY(-2px);
}

.model-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.model-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Performance modes — envelope cards (policy bands the router selects within) */
.modes-block {
  text-align: center;
}

.modes-block h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 12px 0 16px;
}

.modes-intro {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 40px;
}

.modes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
  text-align: left;
}

.mode-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 28px;
  transition: var(--transition);
}

.mode-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--glow-blue);
  transform: translateY(-2px);
}

.mode-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.mode-badge {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 4px;
}

.mode-badge.efficiency {
  color: var(--accent-green);
  background: rgb(52 211 153 / 10%);
}

.mode-badge.elevated {
  color: var(--accent-blue);
  background: var(--accent-gradient-subtle);
}

.mode-badge.maximum {
  color: var(--accent-purple);
  background: rgb(139 92 246 / 10%);
}

.mode-badge.frontier {
  color: var(--accent-cyan);
  background: rgb(56 225 214 / 10%);
}

.mode-default-pill {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 3px 10px;
  border-radius: 999px;
}

.mode-cost {
  margin-left: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.envelope-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.env-tier {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 7px 4px;
  border-radius: 4px;
  color: var(--text-muted);
  background: rgb(255 255 255 / 3%);
  border: 1px dashed rgb(255 255 255 / 10%);
  white-space: nowrap;
}

.env-tier.is-active {
  color: var(--text-primary);
  background: var(--accent-gradient-subtle);
  border: 1px solid var(--border-accent);
}

.env-tier.is-pinned {
  background: rgb(139 92 246 / 14%);
  border-color: rgb(139 92 246 / 45%);
}

/* Frontier's escalation target — tint the Fable segment to match its badge */
.mode-card.frontier .env-tier.is-active:last-child {
  color: var(--accent-cyan);
  background: rgb(56 225 214 / 10%);
  border-color: rgb(56 225 214 / 40%);
}

.mode-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.steering-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
  text-align: left;
}

.steering-card {
  background: var(--accent-gradient-subtle);
  border: 1px solid var(--border-accent);
  border-radius: var(--border-radius-lg);
  padding: 28px;
}

.steering-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.steering-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.custom-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.custom-note strong {
  color: var(--text-primary);
}

/* ============================================
   Intelligence Page — Routing
   ============================================ */
.routing-section {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.routing-header {
  text-align: center;
  margin-bottom: 60px;
}

.routing-header .section-subtitle {
  margin: 0 auto;
}

.routing-paths {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto 60px;
}

.routing-path {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 28px;
}

.path-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.path-badge {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 4px;
}

.path-badge.trivial {
  color: #34d399;
  background: rgb(52 211 153 / 10%);
}

.path-badge.standard {
  color: var(--accent-blue);
  background: var(--accent-gradient-subtle);
}

.path-badge.extensive {
  color: var(--accent-purple);
  background: rgb(139 92 246 / 10%);
}

.path-time {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.path-stages {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.path-stage {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 4px;
  white-space: nowrap;
}

.path-stage.active {
  color: var(--text-primary);
  background: var(--accent-gradient-subtle);
  border: 1px solid var(--border-accent);
}

.path-stage.skipped {
  color: var(--text-muted);
  background: rgb(255 255 255 / 3%);
  border: 1px dashed rgb(255 255 255 / 10%);
  text-decoration: line-through;
}

.path-connector {
  width: 20px;
  height: 2px;
  background: var(--border-color);
  flex-shrink: 0;
}

.routing-path p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.deterministic-callout {
  max-width: 800px;
  margin: 0 auto;
}

.deterministic-callout h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 24px;
  text-align: center;
}

.deterministic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.det-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 28px;
}

.det-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.det-card ul {
  list-style: none;
  margin-bottom: 12px;
}

.det-card ul li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.det-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-blue);
}

.det-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ============================================
   Pipeline Detail Page — Context Architecture
   ============================================ */
.context-section {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.context-header {
  text-align: center;
  margin-bottom: 60px;
}

.context-header .section-subtitle {
  margin: 0 auto;
}

.context-flow {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}

.context-node {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
}

.context-stage-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 8px 16px;
  background: var(--accent-gradient-subtle);
  border: 1px solid var(--border-accent);
  border-radius: var(--border-radius);
}

.context-arrow {
  font-size: 1.2rem;
  color: var(--accent-blue);
}

.context-file {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.context-file code {
  font-family: "SF Mono", "Fira Code", Consolas, monospace;
  font-size: 0.85rem;
  color: var(--accent-purple);
  background: rgb(139 92 246 / 10%);
  padding: 6px 12px;
  border-radius: 4px;
}

.context-file span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.context-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 28px;
  transition: var(--transition);
}

.benefit-card:hover {
  border-color: var(--border-accent);
}

.benefit-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.benefit-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.benefit-card code {
  font-family: "SF Mono", "Fira Code", Consolas, monospace;
  font-size: 0.8rem;
  color: var(--accent-blue);
  background: var(--accent-gradient-subtle);
  padding: 2px 6px;
  border-radius: 3px;
}

/* ============================================
   Pipeline Detail Page — Stage Deep Dives
   ============================================ */
.stages-section {
  padding: 80px 0;
  background: var(--bg-primary);
}

.stages-header {
  text-align: center;
  margin-bottom: 60px;
}

.stages-header .section-subtitle {
  margin: 0 auto;
}

.stages-timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.stage-detail {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  transition: var(--transition);
}

.stage-detail:hover {
  border-color: var(--border-accent);
}

.stage-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.stage-detail-number {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: white;
}

.stage-detail-titles h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}

.stage-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.stage-io {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  padding: 16px;
  background: rgb(255 255 255 / 2%);
  border-radius: var(--border-radius);
}

.stage-reads strong,
.stage-produces strong {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stage-io code {
  font-family: "SF Mono", "Fira Code", Consolas, monospace;
  font-size: 0.8rem;
  color: var(--accent-blue);
}

.stage-behaviors {
  list-style: none;
}

.stage-behaviors li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
}

.stage-behaviors li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-blue);
}

/* ============================================
   Pipeline Detail Page — Ralph Loop
   ============================================ */
.ralph-section {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.ralph-header {
  text-align: center;
  margin-bottom: 60px;
}

.ralph-header .section-subtitle {
  margin: 0 auto;
}

.ralph-cycle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 60px;
}

.cycle-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 80px;
  text-align: center;
}

.cycle-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
}

.cycle-step strong {
  font-size: 0.8rem;
  color: var(--text-primary);
}

.cycle-step span {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.cycle-arrow {
  color: var(--accent-blue);
  font-size: 1.2rem;
  padding: 0 4px;
}

.cycle-arrow.loop-back {
  color: var(--accent-purple);
  font-size: 1.5rem;
}

.ralph-integration h3,
.ralph-safety h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 24px;
  text-align: center;
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.integration-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 28px;
  transition: var(--transition);
}

.integration-card:hover {
  border-color: var(--border-accent);
}

.integration-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.integration-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 800px;
  margin: 0 auto 16px;
}

.safety-item {
  text-align: center;
  padding: 20px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
}

.safety-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.safety-item span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.safety-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   Pipeline Detail Page — Quality Gates
   ============================================ */
.quality-section {
  padding: 80px 0;
  background: var(--bg-primary);
}

.quality-header {
  text-align: center;
  margin-bottom: 60px;
}

.quality-header .section-subtitle {
  margin: 0 auto;
}

.quality-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.quality-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 28px;
  transition: var(--transition);
}

.quality-card:hover {
  border-color: var(--border-accent);
}

.quality-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.quality-card ul {
  list-style: none;
}

.quality-card ul li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 5px 0;
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.quality-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
}

/* ============================================
   Enterprise Page — Configuration
   ============================================ */
.config-section {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.config-header {
  text-align: center;
  margin-bottom: 60px;
}

.config-header .section-subtitle {
  margin: 0 auto;
}

.config-tiers {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 700px;
  margin: 0 auto 48px;
}

.config-tier {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.config-tier:hover {
  border-color: var(--border-accent);
}

.tier-priority {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
}

.tier-info strong {
  font-size: 0.95rem;
  color: var(--text-primary);
  display: block;
  margin-bottom: 2px;
}

.tier-info span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.config-merge {
  max-width: 700px;
  margin: 0 auto;
}

.config-merge h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
}

.merge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.merge-item {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
}

.merge-item strong {
  font-size: 0.85rem;
  color: var(--text-primary);
  display: block;
  margin-bottom: 4px;
}

.merge-item span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ============================================
   Enterprise Page — Workspaces & Batch
   ============================================ */
.workspace-section {
  padding: 80px 0;
  background: var(--bg-primary);
}

.workspace-header {
  text-align: center;
  margin-bottom: 60px;
}

.workspace-header .section-subtitle {
  margin: 0 auto;
}

.workspace-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.workspace-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 28px;
  transition: var(--transition);
}

.workspace-card:hover {
  border-color: var(--border-accent);
}

.workspace-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.workspace-card ul {
  list-style: none;
}

.workspace-card ul li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 5px 0;
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.workspace-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-blue);
}

/* ============================================
   Enterprise Page — Analytics
   ============================================ */
.analytics-section {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.analytics-header {
  text-align: center;
  margin-bottom: 60px;
}

.analytics-header .section-subtitle {
  margin: 0 auto;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.analytics-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 28px;
  transition: var(--transition);
}

.analytics-card:hover {
  border-color: var(--border-accent);
}

.analytics-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.analytics-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.analytics-query {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.analytics-query h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.analytics-query p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
}

.query-example {
  padding: 16px 24px;
  background: #0d1117;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
}

.query-example code {
  font-family: "SF Mono", "Fira Code", Consolas, monospace;
  font-size: 0.85rem;
  color: var(--accent-purple);
}

/* ============================================
   Enterprise Page — Automation
   ============================================ */
.automation-section {
  padding: 80px 0;
  background: var(--bg-primary);
}

.automation-header {
  text-align: center;
  margin-bottom: 60px;
}

.automation-header .section-subtitle {
  margin: 0 auto;
}

.automation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.automation-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 28px;
  transition: var(--transition);
}

.automation-card:hover {
  border-color: var(--border-accent);
}

.automation-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.automation-card ul {
  list-style: none;
}

.automation-card ul li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 5px 0;
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.automation-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-blue);
}

/* ============================================
   Active Nav State
   ============================================ */
.main-nav a.nav-active {
  color: var(--text-primary);
}

/* ============================================
   Brownfield Banner
   ============================================ */
.brownfield-banner {
  padding: 120px 0;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.brownfield-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 30% 50%,
      rgb(139 90 43 / 6%) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 70% 50%,
      rgb(34 197 94 / 6%) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.brownfield-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.brownfield-shot {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 56px auto 0;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow:
    0 40px 80px rgb(0 0 0 / 50%),
    0 0 0 1px var(--border-color);
}

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

.brownfield-headline {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.brownfield-word {
  color: #a0785a;
  position: relative;
}

.brownfield-word::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.12em;
  height: 2px;
  background: rgb(160 120 90 / 40%);
}

.greenfield-word {
  color: #34d399;
  text-shadow: 0 0 30px rgb(52 211 153 / 30%);
}

.brownfield-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   Responsive — Tablet & Mobile
   ============================================ */
@media (width <= 768px) {
  /* Header */
  .nav-toggle {
    display: flex;
  }

  .main-nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 24px;
    gap: 16px;
  }

  .main-nav.open ul {
    display: flex;
  }

  /* Hero */
  .hero {
    padding: 60px 0 40px;
  }

  .hero h1 {
    font-size: 2.5rem;
    letter-spacing: -1px;
  }

  .hero-subtitle {
    font-size: 1.15rem;
  }

  .hero p {
    font-size: 1.05rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  /* Pipeline */
  .pipeline {
    padding: 60px 0;
  }

  .pipeline-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pipeline-flow-connector {
    display: none;
  }

  /* Features */
  .features {
    padding: 60px 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* VS Code */
  .vscode-section {
    padding: 60px 0;
  }

  .vscode-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* How It Works */
  .how-it-works {
    padding: 60px 0;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Brownfield Banner */
  .brownfield-banner {
    padding: 80px 0;
  }

  .brownfield-headline {
    font-size: 2.5rem;
    letter-spacing: -1px;
  }

  /* Multi-AI */
  .multi-ai {
    padding: 60px 0;
  }

  .ai-tools-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  /* Early Access */
  .early-access {
    padding: 60px 0;
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .footer-brand {
    flex-direction: column;
    gap: 4px;
  }

  .footer-divider {
    display: none;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

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

  /* Section titles */
  .section-title {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  /* Intelligence Teaser */
  .intelligence-teaser {
    padding: 60px 0;
  }

  .intelligence-teaser-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Subpage Hero */
  .subpage-hero {
    padding: 60px 0 40px;
  }

  .subpage-hero h1 {
    font-size: 2rem;
  }

  /* Subpage CTA */
  .subpage-cta {
    padding: 60px 0;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  /* Complexity */
  .complexity-section {
    padding: 60px 0;
  }

  .complexity-callout {
    flex-direction: column;
    text-align: center;
  }

  /* Models */
  .models-section {
    padding: 60px 0;
  }

  .models-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .modes-grid,
  .steering-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .envelope-bar {
    gap: 4px;
  }

  .env-tier {
    font-size: 0.7rem;
    padding: 6px 2px;
  }

  /* Routing */
  .routing-section {
    padding: 60px 0;
  }

  .path-stages {
    gap: 4px;
  }

  .path-connector {
    width: 10px;
  }

  .deterministic-grid {
    grid-template-columns: 1fr;
  }

  /* Context */
  .context-section {
    padding: 60px 0;
  }

  .context-node {
    flex-direction: column;
    text-align: center;
  }

  .context-benefits {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Stages */
  .stages-section {
    padding: 60px 0;
  }

  /* Ralph */
  .ralph-section {
    padding: 60px 0;
  }

  .integration-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .safety-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Quality */
  .quality-section {
    padding: 60px 0;
  }

  .quality-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Config */
  .config-section {
    padding: 60px 0;
  }

  .merge-grid {
    grid-template-columns: 1fr;
  }

  /* Workspace */
  .workspace-section {
    padding: 60px 0;
  }

  .workspace-features {
    grid-template-columns: 1fr;
  }

  /* Analytics */
  .analytics-section {
    padding: 60px 0;
  }

  .analytics-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Automation */
  .automation-section {
    padding: 60px 0;
  }

  .automation-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (width <= 480px) {
  .ai-tools-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================================
   Guardrails page
   ========================================================================= */

.guardrails-hero .guardrails-tagline {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.guardrails-tagline .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgb(74 111 255 / 8%);
  border: 1px solid rgb(74 111 255 / 25%);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-secondary);
}

.guardrails-tagline .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ec9b0;
  box-shadow: 0 0 8px rgb(78 201 176 / 60%);
}

.guardrails-tagline .dot.warn {
  background: #d7ba7d;
}

.guardrails-tagline .dot.bad {
  background: #f48771;
}

.guardrails-layers {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.guardrails-layers-header {
  text-align: center;
  margin-bottom: 48px;
}

.guardrails-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.guardrail-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  position: relative;
}

.guardrail-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: var(--glow-blue);
}

.guardrail-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient-subtle);
  border-radius: 10px;
  margin-bottom: 14px;
}

.guardrail-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--accent-blue);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.guardrail-short {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-blue);
  background: rgb(74 111 255 / 10%);
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.guardrail-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.guardrail-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Guardrails detail sections */
.guardrails-detail {
  padding: 90px 0;
}

.guardrails-detail.alt {
  background: var(--bg-secondary);
}

.guardrails-detail-header {
  text-align: center;
  margin-bottom: 50px;
}

.guardrails-detail-header .section-subtitle {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* Cascade circuit breaker — animated flow */
.cb-flow {
  display: grid;
  grid-template-columns: 1fr 24px 1fr 24px 1fr;
  gap: 14px;
  align-items: stretch;
  margin-bottom: 36px;
}

.cb-step {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 22px;
}

.cb-step p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.cb-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgb(78 201 176 / 12%);
  color: #4ec9b0;
  margin-bottom: 12px;
}

.cb-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ec9b0;
}

.cb-badge.warn {
  background: rgb(215 186 125 / 15%);
  color: #d7ba7d;
}

.cb-badge.warn .dot {
  background: #d7ba7d;
}

.cb-badge.bad {
  background: rgb(244 135 113 / 15%);
  color: #f48771;
}

.cb-badge.bad .dot {
  background: #f48771;
}

.cb-arrow {
  align-self: center;
  text-align: center;
  font-size: 22px;
  color: var(--accent-blue);
}

.cb-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cb-fact {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 18px 20px;
}

.cb-fact strong {
  color: var(--accent-blue);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 6px;
}

.cb-fact p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Stage gates */
.gates-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.gate-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 26px;
}

.gate-tag {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-purple);
  background: rgb(139 92 246 / 10%);
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.gate-card h3 {
  font-size: 19px;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.gate-card p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 14px;
  line-height: 1.65;
}

.gate-card ul,
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gate-card ul li,
.check-list li {
  position: relative;
  padding-left: 22px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.gate-card ul li::before,
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #4ec9b0;
  font-weight: 700;
}

/* Security */
.security-layers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-bottom: 36px;
}

.security-layer {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: start;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 28px;
}

.security-layer .layer-num {
  font-family: "SF Mono", Menlo, monospace;
  font-size: 44px;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.security-layer h3 {
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.security-layer p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 14px;
}

.security-callout {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 28px 30px;
}

.security-callout h3 {
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.security-callout-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 26px;
}

.security-callout-grid strong {
  color: var(--accent-blue);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 4px;
}

.security-callout-grid p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Audit */
.audit-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.audit-step {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--accent-blue);
  border-radius: var(--border-radius);
  padding: 20px 22px;
}

.audit-step strong {
  display: block;
  color: var(--text-primary);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.audit-step p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.audit-callout {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 28px 30px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
}

.audit-callout h3 {
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.audit-meta {
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  padding: 18px 22px;
}

.audit-meta .meta-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border-color);
  font-size: 13px;
  color: var(--text-secondary);
}

.audit-meta .meta-row:last-child {
  border-bottom: none;
}

.audit-meta strong {
  color: var(--text-primary);
}

.guardrails-bottom {
  margin-top: 40px;
  text-align: center;
}

.guardrails-bottom p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.75;
}

@media (width <= 900px) {
  .guardrails-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gates-grid,
  .audit-callout {
    grid-template-columns: 1fr;
  }

  .cb-flow {
    grid-template-columns: 1fr;
  }

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

  .cb-facts {
    grid-template-columns: 1fr;
  }

  .audit-flow {
    grid-template-columns: 1fr;
  }
}

@media (width <= 600px) {
  .guardrails-grid {
    grid-template-columns: 1fr;
  }

  .security-callout-grid {
    grid-template-columns: 1fr;
  }

  .security-layer {
    grid-template-columns: 1fr;
  }
}

/* =========================================================================
   Homepage guardrails strip
   ========================================================================= */

.guardrails-strip {
  padding: 80px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.guardrails-strip .strip-header {
  text-align: center;
  margin-bottom: 40px;
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.strip-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 22px;
  transition: var(--transition);
}

.strip-item:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.strip-item .strip-icon {
  display: inline-block;
  font-size: 22px;
  margin-bottom: 8px;
  filter: saturate(1.2);
}

.strip-item h4 {
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.strip-item p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.strip-cta {
  text-align: center;
  margin-top: 36px;
}

/* =========================================================================
   Screenshot gallery
   ========================================================================= */

.screenshot-gallery {
  padding: 96px 0;
}

.screenshot-gallery .gallery-header {
  text-align: center;
  margin-bottom: 36px;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 6px;
  margin-bottom: 18px;
  overflow-x: auto;
}

.gallery-thumb {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 10px 12px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: var(--transition-fast);
  font-family: inherit;
  min-width: 0;
}

.gallery-thumb:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.gallery-thumb.active {
  background: rgb(74 111 255 / 12%);
  border-color: rgb(74 111 255 / 40%);
  color: var(--text-primary);
  box-shadow: var(--glow-blue);
}

.gallery-thumb .thumb-num {
  font-size: 11px;
  color: var(--accent-blue);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.gallery-thumb .thumb-label {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-stage {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 18px;
  min-height: 540px;
}

.gallery-slide {
  display: none;
  margin: 0;
}

.gallery-slide.active {
  display: block;
  animation: gallery-fade 280ms ease;
}

@keyframes gallery-fade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gallery-img {
  background: #0b0d12;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow:
    0 30px 60px rgb(0 0 0 / 45%),
    0 0 0 1px var(--border-color);
}

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

.gallery-slide figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 4px 4px;
}

.gallery-slide figcaption strong {
  font-size: 16px;
  color: var(--text-primary);
}

.gallery-slide figcaption span {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.gallery-disclaimer {
  margin-top: 28px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  font-style: italic;
}

/* =========================================================================
   Roadmap section
   ========================================================================= */

.roadmap-section {
  padding: 90px 0;
  background: var(--bg-secondary);
  position: relative;
}

.roadmap-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 80% 20%,
    rgb(139 92 246 / 8%),
    transparent 60%
  );
  pointer-events: none;
}

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

.roadmap-header {
  text-align: center;
  margin-bottom: 44px;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.roadmap-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--accent-purple);
  border-radius: var(--border-radius);
  padding: 22px 26px;
  transition: var(--transition);
}

.roadmap-card:hover {
  border-color: var(--border-accent);
  border-left-color: var(--accent-blue);
  background: var(--bg-card-hover);
}

.roadmap-status {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 600;
  margin-bottom: 12px;
}

.roadmap-status.preview {
  background: rgb(139 92 246 / 14%);
  color: var(--accent-purple);
}

.roadmap-status.shipping {
  background: rgb(78 201 176 / 14%);
  color: #4ec9b0;
}

.roadmap-card h3 {
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.roadmap-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 14px;
}

.roadmap-eta {
  display: inline-block;
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

@media (width <= 900px) {
  .strip-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .roadmap-grid {
    grid-template-columns: 1fr;
  }
}

@media (width <= 600px) {
  .strip-grid {
    grid-template-columns: 1fr;
  }

  .gallery-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-stage {
    min-height: 0;
  }
}

/* =========================================================================
   Inline product screenshots on subpages
   ========================================================================= */

.inline-shot {
  margin: 48px auto 0;
  max-width: 1100px;
  text-align: center;
}

.inline-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
  box-shadow:
    0 30px 60px rgb(0 0 0 / 45%),
    0 0 0 1px var(--border-color);
}

.inline-shot figcaption {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.inline-shot figcaption strong {
  color: var(--text-primary);
}

/* =========================================================================
   Hero multi-surface chips
   ========================================================================= */

.hero-surfaces {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.hero-surface {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  background: rgb(255 255 255 / 4%);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 5px 12px;
}

.hero-surface-soon {
  color: var(--accent-purple);
  font-size: 11px;
  font-style: italic;
  margin-left: 4px;
}

/* =========================================================================
   Accessibility: skip link + focus styles + reduced motion
   ========================================================================= */

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  background: var(--accent-blue);
  color: white;
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
  outline: 2px solid white;
  outline-offset: 2px;
}

:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

button:focus-visible,
a:focus-visible,
.gallery-thumb:focus-visible,
.faq-item summary:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
}

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

  .fade-in {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* =========================================================================
   Phase pill (used on pipeline cards and stage detail headers)
   ========================================================================= */

.pipeline-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.pipeline-phase-pill {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: rgb(74 111 255 / 12%);
  color: var(--accent-blue);
  border: 1px solid rgb(74 111 255 / 30%);
  border-radius: 999px;
  white-space: nowrap;
}

.pipeline-phase-pill.big {
  font-size: 12px;
  padding: 5px 12px;
}

/* =========================================================================
   Pipeline number-band (homepage)
   ========================================================================= */

.pipeline-stats {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 28px 24px;
}

.pipeline-stats .stat {
  text-align: center;
  border-right: 1px solid var(--border-color);
  padding: 4px 12px;
}

.pipeline-stats .stat:last-child {
  border-right: none;
}

.pipeline-stats .stat strong {
  display: block;
  font-size: 38px;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
}

.pipeline-stats .stat.accent strong {
  font-size: 48px;
}

.pipeline-stats .stat span {
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

@media (width <= 800px) {
  .pipeline-stats {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .pipeline-stats .stat {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
  }

  .pipeline-stats .stat:nth-last-child(-n + 2) {
    border-bottom: none;
    padding-bottom: 0;
  }
}

/* =========================================================================
   Phases section (/pipeline/#phases)
   ========================================================================= */

.phases-section {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.phases-header {
  text-align: center;
  margin-bottom: 48px;
}

.phases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 56px;
}

.phase-fact {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 22px;
}

.phase-fact strong {
  display: block;
  font-size: 28px;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  line-height: 1.2;
}

.phase-fact span {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.phases-timeline {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 32px 36px;
  margin-bottom: 48px;
}

.phases-timeline-head {
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 18px;
}

.phases-timeline-head h3 {
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.phases-timeline-head p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.phases-timeline-head code {
  background: rgb(74 111 255 / 12%);
  color: var(--accent-blue);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 12px;
}

.phases-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 24px;
  counter-reset: phase-counter;
}

.phase-step {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 4px;
  border-left: 2px solid var(--border-color);
  transition: var(--transition-fast);
}

.phase-step:hover {
  background: var(--bg-card-hover);
  border-left-color: var(--accent-blue);
}

.phase-step .phase-num {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.phase-step .phase-name {
  font-size: 13px;
  color: var(--text-primary);
  font-family: "SF Mono", Menlo, Consolas, monospace;
}

.phase-step .phase-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 3px;
  background: rgb(74 111 255 / 14%);
  color: var(--accent-blue);
  font-weight: 600;
}

.phase-step .phase-tag.gate-tag {
  background: rgb(78 201 176 / 14%);
  color: #4ec9b0;
}

.phase-step.key {
  border-left-color: var(--accent-purple);
  background: rgb(139 92 246 / 6%);
}

.phase-step.gate {
  border-left-color: #4ec9b0;
}

.phases-counts-row {
  margin-top: 56px;
}

.phases-counts {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.phase-count-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 16px 14px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: var(--transition-fast);
}

.phase-count-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.phase-count-card strong {
  display: block;
  font-size: 30px;
  font-weight: 700;
  color: var(--accent-blue);
  line-height: 1;
}

.phase-count-card .ph-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.phase-count-card .ph-gates {
  font-size: 10px;
  color: var(--text-muted);
  font-family: "SF Mono", Menlo, monospace;
  word-break: break-word;
}

/* Stage detail header — make room for the phase pill on the right */
.stage-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stage-detail-titles {
  flex: 1;
}

@media (width <= 900px) {
  .phases-grid {
    grid-template-columns: 1fr 1fr;
  }

  .phases-list {
    grid-template-columns: 1fr;
  }

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

@media (width <= 560px) {
  .phases-grid {
    grid-template-columns: 1fr;
  }

  .phases-counts {
    grid-template-columns: 1fr 1fr;
  }
}

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

.faq-section {
  padding: 96px 0;
  background: var(--bg-secondary);
}

.faq-header {
  text-align: center;
  margin-bottom: 40px;
}

.faq-list {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-item[open] {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  user-select: none;
  gap: 16px;
}

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

.faq-q {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
}

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--accent-blue);
  background: rgb(74 111 255 / 10%);
  border-radius: 50%;
  transition: transform 0.2s ease;
  font-weight: 300;
  line-height: 0;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  background: rgb(139 92 246 / 18%);
  color: var(--accent-purple);
}

.faq-a {
  padding: 0 24px 22px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.faq-a a {
  color: var(--accent-blue);
  text-decoration: none;
}

.faq-a a:hover {
  text-decoration: underline;
}

/* =========================================================================
   ✦ V2 — "Watch it build." Living homepage layer
   Atmosphere, a hero that shows the product, and a pipeline that runs.
   Appended last so it wins the cascade over the base rules above.
   ========================================================================= */

:root {
  --accent-cyan: #38e1d6;
  --accent-green: #34d399;
  --accent-gradient-wide: linear-gradient(
    120deg,
    #4a6fff 0%,
    #8b5cf6 50%,
    #38e1d6 100%
  );
  --glass-bg: rgb(20 26 42 / 55%);
  --glass-border: rgb(255 255 255 / 10%);
  --shadow-float: 0 40px 120px rgb(0 0 0 / 55%);
  --shadow-float-glow: 0 40px 120px rgb(0 0 0 / 55%),
    0 0 0 1px rgb(255 255 255 / 6%),
    0 24px 80px rgb(74 111 255 / 18%);
  --flow-cycle: 1500ms;
}

/* ---- Ambient atmosphere: aurora mesh + grain ------------------------- */
.site-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(
    120% 80% at 50% -10%,
    rgb(74 111 255 / 7%),
    transparent 60%
  );
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}

.aurora-1 {
  top: -240px;
  left: -120px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgb(74 111 255 / 45%), transparent 70%);
  animation: aurora-drift-1 24s ease-in-out infinite;
}

.aurora-2 {
  top: 4%;
  right: -200px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgb(139 92 246 / 40%), transparent 70%);
  animation: aurora-drift-2 30s ease-in-out infinite;
}

.aurora-3 {
  bottom: -260px;
  left: 30%;
  width: 680px;
  height: 680px;
  background: radial-gradient(circle, rgb(56 225 214 / 18%), transparent 70%);
  animation: aurora-drift-3 36s ease-in-out infinite;
}

@keyframes aurora-drift-1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(120px, 80px) scale(1.12);
  }
}

@keyframes aurora-drift-2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-140px, 60px) scale(1.08);
  }
}

@keyframes aurora-drift-3 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-80px, -90px) scale(1.15);
  }
}

.grain {
  position: absolute;
  inset: -50%;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* ---- Scroll progress beam -------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 200;
  background: rgb(255 255 255 / 4%);
  pointer-events: none;
}

.scroll-progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent-gradient-wide);
  box-shadow: 0 0 12px rgb(74 111 255 / 60%);
  transform-origin: left center;
  transition: width 0.08s linear;
}

/* ---- Hero v2 --------------------------------------------------------- */
.hero {
  padding: 96px 0 72px;
}

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

.hero-grid .hero-content {
  max-width: 600px;
  margin-bottom: 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pulse-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  flex-shrink: 0;
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }

  100% {
    transform: scale(3.4);
    opacity: 0;
  }
}

.hero h1.hero-tagline {
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  line-height: 1.04;
  margin-bottom: 1.25rem;
}

.greenfield-word {
  position: relative;
  background: linear-gradient(120deg, #34d399 0%, #38e1d6 60%, #34d399 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  animation: greenfield-shimmer 6s ease-in-out infinite;
}

@keyframes greenfield-shimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

/* Floating product showcase */
.hero-showcase {
  position: relative;
  perspective: 1400px;
}

.showcase-glow {
  position: absolute;
  inset: -12% -8% -18%;
  background: radial-gradient(
    60% 60% at 60% 40%,
    rgb(74 111 255 / 35%),
    transparent 70%
  );
  filter: blur(50px);
  z-index: 0;
}

.showcase-frame {
  position: relative;
  z-index: 1;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #11131c;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-float-glow);
  transform: rotateY(-9deg) rotateX(3deg);
  transform-style: preserve-3d;
  transition:
    transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.5s ease;
  animation: showcase-float 8s ease-in-out infinite;
}

.hero-showcase:hover .showcase-frame {
  transform: rotateY(0deg) rotateX(0deg);
  box-shadow:
    0 50px 140px rgb(0 0 0 / 60%),
    0 0 0 1px rgb(255 255 255 / 8%),
    0 30px 90px rgb(74 111 255 / 28%);
  animation-play-state: paused;
}

@keyframes showcase-float {
  0%,
  100% {
    transform: rotateY(-9deg) rotateX(3deg) translateY(0);
  }

  50% {
    transform: rotateY(-9deg) rotateX(3deg) translateY(-12px);
  }
}

.showcase-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  background: #1b1e2b;
  border-bottom: 1px solid rgb(255 255 255 / 6%);
}

.showcase-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.showcase-dot.red {
  background: #ff5f57;
}

.showcase-dot.yellow {
  background: #febc2e;
}

.showcase-dot.green {
  background: #28c840;
}

.showcase-title {
  margin-left: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.showcase-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-green);
}

.showcase-screen {
  position: relative;
  background: #0b0d12;
}

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

.showcase-toast {
  position: absolute;
  right: -18px;
  bottom: 36px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgb(52 211 153 / 40%);
  border-radius: 12px;
  box-shadow: 0 18px 50px rgb(0 0 0 / 50%);
  animation: toast-pop 7s ease-in-out infinite;
}

.toast-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgb(52 211 153 / 16%);
  color: var(--accent-green);
  font-weight: 700;
  flex-shrink: 0;
}

.toast-text {
  display: flex;
  flex-direction: column;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.toast-text strong {
  font-size: 0.82rem;
  color: var(--text-primary);
}

@keyframes toast-pop {
  0%,
  8%,
  92%,
  100% {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }

  16%,
  84% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ---- Animated pipeline flow rail ------------------------------------- */
.pipeline-flow {
  padding: 8px 0 64px;
}

.flow-rail {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: 36px 40px 30px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgb(0 0 0 / 30%);
}

.flow-track {
  position: absolute;
  top: 56px;
  left: 72px;
  right: 72px;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgb(255 255 255 / 6%),
    rgb(255 255 255 / 14%),
    rgb(255 255 255 / 6%)
  );
  border-radius: 2px;
}

.flow-pulse {
  position: absolute;
  top: 50%;
  left: 0;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff, var(--accent-cyan) 50%, transparent 75%);
  box-shadow:
    0 0 18px var(--accent-cyan),
    0 0 36px rgb(56 225 214 / 60%);
  opacity: 0;
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.flow-rail.is-running .flow-pulse {
  opacity: 1;
}

.flow-nodes {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.flow-dot {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  font-family: "SF Mono", Menlo, monospace;
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease,
    color 0.35s ease;
}

.flow-dot-num,
.flow-dot-check {
  transition: opacity 0.3s ease;
}

.flow-dot-check {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  opacity: 0;
}

.flow-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color 0.35s ease;
}

/* Active stage — the pulse is here right now */
.flow-node.is-active .flow-dot {
  transform: scale(1.16);
  background: var(--accent-gradient);
  border-color: transparent;
  color: #fff;
  box-shadow:
    0 0 0 6px rgb(74 111 255 / 16%),
    0 0 32px rgb(74 111 255 / 50%);
}

.flow-node.is-active .flow-label {
  color: var(--text-primary);
}

/* Completed stages — checked green */
.flow-node.is-done .flow-dot {
  background: rgb(52 211 153 / 14%);
  border-color: rgb(52 211 153 / 50%);
  color: var(--accent-green);
}

.flow-node.is-done .flow-dot-num {
  opacity: 0;
}

.flow-node.is-done .flow-dot-check {
  opacity: 1;
  color: var(--accent-green);
}

.flow-node.is-done .flow-label {
  color: var(--text-secondary);
}

/* Final celebratory state */
.flow-rail.is-merged .flow-node .flow-dot {
  box-shadow: 0 0 26px rgb(52 211 153 / 45%);
}

.flow-status {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.flow-status-issue {
  font-family: "SF Mono", Menlo, monospace;
  font-size: 0.8rem;
  color: var(--accent-blue);
  background: var(--accent-gradient-subtle);
  border: 1px solid var(--border-accent);
  padding: 4px 12px;
  border-radius: 6px;
}

.flow-status-arrow {
  color: var(--text-muted);
}

.flow-status-action {
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.flow-status-merged {
  display: none;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--accent-green);
}

.flow-status-merged code {
  font-family: "SF Mono", Menlo, monospace;
  font-size: 0.82rem;
  background: rgb(52 211 153 / 12%);
  color: var(--accent-green);
  padding: 1px 7px;
  border-radius: 4px;
}

.flow-rail.is-merged .flow-status-action {
  display: none;
}

.flow-rail.is-merged .flow-status-merged {
  display: inline-flex;
}

/* ---- Button sheen sweep --------------------------------------------- */
.button.primary {
  position: relative;
  overflow: hidden;
}

.button.primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent,
    rgb(255 255 255 / 35%),
    transparent
  );
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.button.primary:hover::after {
  left: 130%;
}

/* ---- Scroll-reveal stagger + count-up styling ------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.6s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

[data-count] {
  font-variant-numeric: tabular-nums;
}

/* ---- Section title flourish ----------------------------------------- */
.section-title .accent-text {
  background: var(--accent-gradient-wide);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---- Responsive ------------------------------------------------------ */
@media (width <= 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-grid .hero-content {
    max-width: 640px;
  }

  .showcase-frame {
    transform: none;
    animation: none;
  }

  .hero-showcase:hover .showcase-frame {
    transform: none;
  }

  .showcase-toast {
    right: 12px;
  }
}

@media (width <= 760px) {
  .flow-rail {
    padding: 28px 20px 24px;
  }

  .flow-track {
    display: none;
  }

  .flow-nodes {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 8px;
  }

  .flow-label {
    font-size: 0.7rem;
    white-space: normal;
  }

  .flow-dot {
    width: 42px;
    height: 42px;
  }
}

@media (width <= 420px) {
  .flow-nodes {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ─── Support page ─────────────────────────────────────────────────────── */
.support-hero {
  padding-bottom: 64px;
}

.support-section {
  padding: 80px 0;
  background: var(--bg-primary);
}

.support-resources {
  background: var(--bg-secondary);
}

.support-narrow {
  max-width: 720px;
}

.support-resources-head {
  text-align: center;
  margin-bottom: 48px;
}

.support-resources-head .section-title,
.support-resources-head .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.support-tip {
  margin: 24px 0 32px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--accent-blue);
  border-radius: var(--border-radius);
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.support-tip strong {
  color: var(--text-primary);
}

.support-form {
  max-width: 720px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-optional {
  color: var(--text-muted);
  font-weight: 400;
}

.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
}

.form-group select:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgb(74 111 255 / 10%);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-success {
  margin: 0 0 1.5rem;
  padding: 12px 16px;
  border: 1px solid var(--accent-green);
  border-radius: var(--border-radius);
  background: rgb(74 222 128 / 10%);
  color: var(--accent-green);
  font-size: 0.9rem;
}

a.feature-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

@media (width <= 600px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ---- Reduced motion: freeze everything to a tasteful static state ---- */
@media (prefers-reduced-motion: reduce) {
  .aurora,
  .showcase-frame,
  .pulse-dot::after,
  .greenfield-word,
  .showcase-toast {
    animation: none !important;
  }

  .showcase-toast {
    opacity: 1;
    transform: none;
  }

  .flow-pulse {
    display: none;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
