/* ──────────────────────────────────────────────────────────────────
   Zafroi public site — premium design system
   Inspired by: Linear, Stripe, Vercel, Notion. Restrained, deliberate,
   operationally-toned. Saffron is precious; peacock is the second voice.
   ────────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* ── Surfaces ─────────────────────────────────────────────────── */
  --bg: #fcfcfd;
  --bg-soft: #f7f8fa;
  --bg-elevated: #ffffff;
  --card: #ffffff;
  --card-elevated: #ffffff;
  --border: #ebedf0;
  --border-strong: #d9dde2;
  --border-subtle: #f1f3f5;

  /* ── Text ─────────────────────────────────────────────────────── */
  --fg: #0a0d12;
  --fg-strong: #050709;
  --fg-muted: #5b6470;
  --fg-subtle: #8b929d;

  /* ── Brand ────────────────────────────────────────────────────── */
  --primary: #ff7a1a;
  --primary-hover: #ed6a0d;
  --primary-active: #d05608;
  --primary-50: #fff5ec;
  --primary-100: #ffe6d1;
  --primary-200: #ffcaa3;
  --primary-glow: rgba(255, 122, 26, 0.18);

  --accent: #0f6e73;
  --accent-hover: #0d5e62;
  --accent-50: #ecf5f5;
  --accent-glow: rgba(15, 110, 115, 0.12);

  /* ── Semantic ─────────────────────────────────────────────────── */
  --success: #16a34a;
  --warning: #ea580c;
  --info: #2563eb;

  /* ── Typography ───────────────────────────────────────────────── */
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace;

  /* ── Radii ────────────────────────────────────────────────────── */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-2xl: 24px;

  /* ── Shadows ──────────────────────────────────────────────────── */
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 8px -2px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 12px 24px -8px rgba(15, 23, 42, 0.08), 0 6px 12px -6px rgba(15, 23, 42, 0.06);
  --shadow-xl: 0 24px 48px -12px rgba(15, 23, 42, 0.12), 0 12px 24px -8px rgba(15, 23, 42, 0.08);

  /* ── Layout ───────────────────────────────────────────────────── */
  --max-w: 1200px;
  --max-w-narrow: 880px;
  --max-w-prose: 720px;
  --gutter: 24px;

  /* ── Motion ───────────────────────────────────────────────────── */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
ul { list-style: none; }
::selection { background: var(--primary-100); color: var(--primary-active); }

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

/* ── Layout primitives ────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: var(--max-w-narrow); }
.container-prose { max-width: var(--max-w-prose); }

/* ── Top nav ─────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(252, 252, 253, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease-out), background 200ms var(--ease-out);
}
.nav.scrolled {
  background: rgba(252, 252, 253, 0.88);
  border-bottom-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
/* Wordmark image — visually matches the "Request demo" button height. */
.nav-brand .nav-brand-name {
  height: 40px;
  width: auto;
  display: block;
}
.footer-brand-name-img {
  height: 36px;
  display: block;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  position: relative;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fg-muted);
  transition: color 150ms var(--ease-out), background 150ms var(--ease-out);
}
.nav-links a:hover { color: var(--fg); background: rgba(15, 23, 42, 0.04); }
.nav-links a.active { color: var(--fg); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}
.nav-cta { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; }
@media (min-width: 768px) { .nav-links { display: inline-flex; } }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  border: 1px solid transparent;
  background: transparent;
  color: var(--fg);
  white-space: nowrap;
  transition: all 180ms var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 2px rgba(255, 122, 26, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 16px -2px rgba(255, 122, 26, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}
.btn-outline {
  border-color: var(--border-strong);
  background: var(--card);
  color: var(--fg);
  box-shadow: var(--shadow-xs);
}
.btn-outline:hover {
  background: var(--bg-soft);
  border-color: var(--fg-subtle);
  transform: translateY(-1px);
}
.btn-ghost { color: var(--fg-muted); }
.btn-ghost:hover { color: var(--fg); background: rgba(15, 23, 42, 0.04); }
.btn-lg { padding: 13px 24px; font-size: 14.5px; border-radius: 8px; }
.btn-arrow { transition: transform 180ms var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ── Eyebrows ────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-muted);
  box-shadow: var(--shadow-xs);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.eyebrow.accent .dot { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}
.section-eyebrow::before {
  content: '';
  width: 4px; height: 4px; border-radius: 50%; background: var(--primary);
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 96px 0 72px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 122, 26, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(255, 122, 26, 0.05), transparent 50%),
    radial-gradient(ellipse 60% 50% at 0% 60%, rgba(15, 110, 115, 0.04), transparent 50%);
  z-index: -1;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 30%, black 30%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 60% at 50% 30%, black 30%, transparent 70%);
  z-index: -1;
}
.hero-inner { text-align: center; }
.hero h1 {
  font-size: clamp(44px, 7.5vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 28px auto 24px;
  font-weight: 600;
  color: var(--fg-strong);
  max-width: 1000px;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-active) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p.lead {
  font-size: 20px;
  line-height: 1.5;
  color: var(--fg-muted);
  max-width: 660px;
  margin: 0 auto 40px;
  letter-spacing: -0.01em;
}
.hero-actions {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 28px;
}
.hero-meta {
  font-size: 12.5px;
  color: var(--fg-subtle);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-meta-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--border-strong); }
@media (min-width: 768px) { .hero { padding: 128px 0 88px; } }

/* ── Live dashboard preview ──────────────────────────────────── */
.dash-preview {
  margin-top: 56px;
  perspective: 2000px;
}
.dash-preview-frame {
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--card) 0%, var(--bg-soft) 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl), 0 32px 64px -24px rgba(255, 122, 26, 0.18);
  overflow: hidden;
  transform: rotateX(2deg);
  transform-origin: top center;
}
.dash-preview-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.dash-preview-bar .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border-strong);
}
.dash-preview-bar .url {
  margin-left: 12px;
  padding: 4px 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
}
.dash-preview-body { padding: 24px; }
.dash-preview-eyebrow {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dash-preview-eyebrow .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success);
  position: relative;
}
.dash-preview-eyebrow .pulse::after {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 50%;
  background: var(--success);
  opacity: 0.4;
  animation: pulse 2s var(--ease-in-out) infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(0.5); opacity: 0; }
  50% { transform: scale(1.6); opacity: 0.4; }
}
.dash-preview-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--fg-strong);
}
.dash-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
@media (min-width: 720px) { .dash-kpi-grid { grid-template-columns: repeat(4, 1fr); } }
.dash-kpi {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
}
.dash-kpi-icon {
  display: inline-grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--fg-muted);
  margin-bottom: 12px;
}
.dash-kpi-icon.primary { background: var(--primary-50); color: var(--primary); }
.dash-kpi-icon.accent { background: var(--accent-50); color: var(--accent); }
.dash-kpi-icon.success { background: rgba(22, 163, 74, 0.1); color: var(--success); }
.dash-kpi-icon.warn { background: rgba(234, 88, 12, 0.1); color: var(--warning); }
.dash-kpi-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-muted);
  margin-bottom: 4px;
}
.dash-kpi-value {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg-strong);
  font-variant-numeric: tabular-nums;
}
.dash-kpi-delta {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
}
.dash-kpi-delta.up { color: var(--success); }
.dash-kpi-delta.down { color: var(--warning); }

.dash-chart {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--card);
}
.dash-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
}
.dash-chart-title { font-size: 13px; font-weight: 600; color: var(--fg); }
.dash-chart-meta { font-size: 11px; color: var(--fg-muted); }
.dash-chart-bars {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 4px;
  height: 64px;
  align-items: flex-end;
}
.dash-chart-bar {
  background: linear-gradient(to top, var(--primary), var(--primary-hover));
  border-radius: 3px 3px 0 0;
  opacity: 0.85;
}
.dash-chart-bar.accent { background: linear-gradient(to top, var(--accent), var(--accent-hover)); opacity: 0.7; }

/* ── Stats strip ─────────────────────────────────────────────── */
.stats {
  padding: 56px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 24px;
}
@media (min-width: 720px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-value {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--fg-strong);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}
.stat-label { font-size: 13px; color: var(--fg-muted); font-weight: 500; }

/* ── Sections ───────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section-tight { padding: 56px 0; }
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--fg-strong);
  margin-bottom: 16px;
  max-width: 720px;
}
.section-lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg-muted);
  max-width: 640px;
  letter-spacing: -0.005em;
}
.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .section-title,
.section-head.center .section-lede { margin-left: auto; margin-right: auto; }

/* ── Module showcase ─────────────────────────────────────────── */
.module-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 920px) {
  .module-showcase { grid-template-columns: 1fr 1fr; gap: 80px; }
  .module-showcase.reverse > .module-showcase-text { order: 2; }
}
.module-showcase-text { max-width: 480px; }
.module-showcase-list {
  margin-top: 28px;
  display: grid;
  gap: 14px;
}
.module-showcase-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  color: var(--fg);
}
.module-showcase-list li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--primary);
}
.module-showcase-list strong { color: var(--fg-strong); font-weight: 600; }

.module-visual {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.module-visual::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 200px; height: 200px;
  background: radial-gradient(circle at top right, var(--primary-glow), transparent 70%);
  opacity: 0.6;
  pointer-events: none;
}

/* Visual: flow rows */
.flow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-size: 13px;
}
.flow-row.highlight { background: var(--card); box-shadow: var(--shadow-sm); border-color: var(--primary-100); }
.flow-row-left { display: flex; flex-direction: column; gap: 2px; }
.flow-row-id { font-family: var(--font-mono); font-size: 11px; color: var(--fg-muted); }
.flow-row-name { font-weight: 500; color: var(--fg-strong); }
.flow-row-qty { font-family: var(--font-mono); font-size: 12px; color: var(--fg-strong); font-weight: 600; font-variant-numeric: tabular-nums; }
.flow-row-qty .delta { color: var(--success); margin-left: 4px; font-size: 10px; }

/* Visual: timeline */
.timeline { position: relative; }
.timeline-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  position: relative;
}
.timeline-step::before {
  content: '';
  position: absolute;
  left: 7px; top: 30px; bottom: -10px;
  width: 2px;
  background: var(--border);
}
.timeline-step:last-child::before { display: none; }
.timeline-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid var(--border-strong);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.timeline-step.done .timeline-dot { background: var(--success); border-color: var(--success); }
.timeline-step.active .timeline-dot {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}
.timeline-content { flex: 1; }
.timeline-title { font-weight: 500; font-size: 14px; color: var(--fg-strong); }
.timeline-meta { font-size: 12px; color: var(--fg-muted); margin-top: 2px; }

/* Visual: refund cards */
.return-card {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  background: var(--card);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.return-card-id { font-family: var(--font-mono); font-size: 11px; color: var(--fg-muted); margin-bottom: 2px; }
.return-card-name { font-weight: 500; color: var(--fg-strong); font-size: 13.5px; }
.return-card-amount { font-family: var(--font-mono); font-weight: 600; font-size: 14px; color: var(--fg-strong); font-variant-numeric: tabular-nums; }

/* ── Status chips ─────────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--fg-muted);
}
.chip .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--fg-subtle); }
.chip.success { color: var(--success); background: rgba(22, 163, 74, 0.06); border-color: rgba(22, 163, 74, 0.18); }
.chip.success .dot { background: var(--success); }
.chip.primary { color: var(--primary); background: var(--primary-50); border-color: var(--primary-100); }
.chip.primary .dot { background: var(--primary); }
.chip.accent { color: var(--accent); background: var(--accent-50); border-color: rgba(15, 110, 115, 0.16); }
.chip.accent .dot { background: var(--accent); }
.chip.warn { color: var(--warning); background: rgba(234, 88, 12, 0.06); border-color: rgba(234, 88, 12, 0.18); }
.chip.warn .dot { background: var(--warning); }

/* ── Card ────────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 220ms var(--ease-out);
  position: relative;
}
.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary-50);
  color: var(--primary);
  margin-bottom: 18px;
  transition: transform 220ms var(--ease-out);
}
.card:hover .card-icon { transform: scale(1.05); }
.card-icon.accent { background: var(--accent-50); color: var(--accent); }
.card h3 {
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--fg-strong);
  margin-bottom: 10px;
}
.card p { font-size: 14px; color: var(--fg-muted); line-height: 1.6; }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .feature-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }

/* ── Compliance row ──────────────────────────────────────────── */
.compliance-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

/* ── Code block ─────────────────────────────────────────────── */
.code-block {
  background: #0a0d12;
  border: 1px solid #1a1f2a;
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.65;
  color: #d4d8e0;
  box-shadow: var(--shadow-lg);
}
.code-block-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid #1a1f2a;
  background: #0d1117;
}
.code-block-header .dot { width: 11px; height: 11px; border-radius: 50%; background: #2a313e; }
.code-block-header .label { margin-left: auto; font-family: var(--font-sans); font-size: 11px; color: #8b929d; font-weight: 500; }
.code-block-body { padding: 20px 24px; overflow-x: auto; }
.code-block-body pre { white-space: pre; font-family: inherit; }
.code-token-comment { color: #6b7280; }
.code-token-string { color: #7dd3a4; }
.code-token-key { color: #f97583; }
.code-token-method { color: #62d4f2; }
.code-token-prompt { color: var(--accent); user-select: none; }
.code-token-flag { color: #ff9b5c; }

/* ── Quote / testimonial ─────────────────────────────────────── */
.quote-card {
  position: relative;
  background: linear-gradient(180deg, var(--card) 0%, var(--bg-soft) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 56px 48px;
  text-align: center;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.quote-card::before {
  content: '"';
  position: absolute;
  top: -40px; left: 32px;
  font-size: 220px;
  font-family: Georgia, serif;
  color: var(--primary);
  opacity: 0.08;
  line-height: 1;
  font-weight: 700;
}
.quote-text {
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.45;
  letter-spacing: -0.015em;
  font-weight: 500;
  color: var(--fg-strong);
  max-width: 740px;
  margin: 0 auto 24px;
  position: relative;
}
.quote-attribution { font-size: 13px; color: var(--fg-muted); }
.quote-attribution strong { color: var(--fg-strong); font-weight: 600; }

/* ── CTA band ────────────────────────────────────────────────── */
.cta-band {
  margin: 96px 0;
  padding: 72px 32px;
  border-radius: var(--radius-2xl);
  background:
    radial-gradient(800px 300px at 80% 0%, rgba(255, 122, 26, 0.10), transparent 60%),
    radial-gradient(600px 300px at 20% 100%, rgba(15, 110, 115, 0.06), transparent 60%),
    linear-gradient(180deg, var(--card) 0%, var(--bg-soft) 100%);
  border: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--fg-strong);
  margin-bottom: 12px;
  line-height: 1.1;
}
.cta-band p {
  font-size: 17px;
  color: var(--fg-muted);
  max-width: 520px;
  margin: 0 auto 28px;
  line-height: 1.55;
}

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  margin-top: 96px;
  padding: 64px 0 36px;
  border-top: 1px solid var(--border);
  background: var(--card);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 56px; }
}
.footer-brand-block { max-width: 320px; }
.footer-brand-block .footer-tag {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--fg-muted);
  line-height: 1.55;
}
.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { font-size: 13.5px; color: var(--fg-muted); transition: color 150ms; }
.footer-col a:hover { color: var(--fg); }
.footer-base {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--fg-subtle);
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Page header ─────────────────────────────────────────────── */
.page-header {
  position: relative;
  padding: 88px 0 64px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 250px at 50% 0%, rgba(255, 122, 26, 0.08), transparent 60%);
  pointer-events: none;
}
.page-header h1 {
  font-size: clamp(34px, 5vw, 48px);
  letter-spacing: -0.03em;
  font-weight: 600;
  margin-top: 16px;
  margin-bottom: 16px;
  line-height: 1.05;
  color: var(--fg-strong);
  position: relative;
}
.page-header p {
  font-size: 17px;
  color: var(--fg-muted);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

/* ── Prose ──────────────────────────────────────────────────── */
.prose { max-width: var(--max-w-prose); margin: 0 auto; }
.prose h2 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 64px 0 16px;
  color: var(--fg-strong);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; font-weight: 600; margin: 36px 0 12px; color: var(--fg-strong); }
.prose p { font-size: 16px; color: var(--fg-muted); margin-bottom: 16px; line-height: 1.7; }
.prose ul { margin: 0 0 20px; padding-left: 22px; color: var(--fg-muted); list-style: disc; }
.prose ul li { margin-bottom: 8px; line-height: 1.65; }
.prose strong { color: var(--fg-strong); font-weight: 600; }
.prose a { color: var(--primary); border-bottom: 1px solid var(--primary-100); }
.prose a:hover { border-bottom-color: var(--primary); }
.prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 2px 6px;
  background: var(--bg-soft);
  border-radius: 4px;
  color: var(--fg);
}

/* ── Form ────────────────────────────────────────────────────── */
.form { display: grid; gap: 16px; }
.form label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--fg-strong);
  margin-bottom: 6px;
}
.form input, .form textarea, .form select {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--card);
  color: var(--fg);
  font-family: inherit;
  font-size: 14px;
  transition: all 150ms var(--ease-out);
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}
.form textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.form-hint { font-size: 11.5px; color: var(--fg-subtle); margin-top: 4px; }

/* ── Logos cloud ─────────────────────────────────────────────── */
.logos-cloud {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}
.logos-cloud-label {
  text-align: center;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  font-weight: 500;
  margin-bottom: 32px;
}
.logos-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 24px;
  align-items: center;
  justify-items: center;
  opacity: 0.55;
  filter: grayscale(1);
}
@media (min-width: 720px) { .logos-row { grid-template-columns: repeat(5, 1fr); } }
.logo-placeholder {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-subtle);
  letter-spacing: 0.02em;
}

/* ── Reveal animations ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 400ms; }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }

/* ──────────────────────────────────────────────────────────────
   Premium product mockups (elaborate product visualization)
   ────────────────────────────────────────────────────────────── */

/* Full ERP product preview with sidebar + topbar + content */
.product-preview {
  margin-top: 64px;
  perspective: 2400px;
  position: relative;
}
.product-preview::after {
  content: '';
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -32px;
  height: 72px;
  background: radial-gradient(ellipse at center, rgba(255, 122, 26, 0.18), transparent 70%);
  filter: blur(20px);
  z-index: -1;
}
.product-frame {
  border-radius: var(--radius-xl);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.04),
    0 32px 64px -16px rgba(15, 23, 42, 0.18),
    0 16px 32px -8px rgba(255, 122, 26, 0.08);
  overflow: hidden;
  transform: rotateX(1.5deg);
  transform-origin: top center;
}
.product-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.product-chrome .dot { width: 11px; height: 11px; border-radius: 50%; }
.product-chrome .url {
  margin-left: 12px;
  padding: 5px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
}
.product-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 480px;
}
@media (max-width: 720px) {
  .product-body { grid-template-columns: 1fr; }
  .product-sidebar { display: none; }
}

/* Mock sidebar (mirrors the actual ERP sidebar) */
.product-sidebar {
  background: #13151a;
  color: #d4d8e0;
  padding: 16px 12px;
  border-right: 1px solid #1a1f2a;
  font-size: 12px;
}
.product-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 16px;
  border-bottom: 1px solid #1a1f2a;
  margin-bottom: 14px;
}
.product-sidebar-brand img { height: 22px; width: auto; filter: brightness(1.1); }
.product-sidebar-group {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(212, 216, 224, 0.4);
  padding: 12px 10px 4px;
}
.product-sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 5px;
  color: rgba(212, 216, 224, 0.65);
  position: relative;
  margin-bottom: 1px;
}
.product-sidebar-item.active {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.product-sidebar-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 2px; height: 16px;
  background: var(--primary);
  border-radius: 1px;
}
.product-sidebar-item svg { opacity: 0.7; flex-shrink: 0; }
.product-sidebar-item.active svg { color: var(--primary); opacity: 1; }

/* Content area inside the product frame */
.product-content {
  padding: 24px 28px;
  background: var(--bg);
}
.product-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  font-size: 11.5px;
}
.product-topbar-trail { color: var(--fg-muted); }
.product-topbar-trail strong { color: var(--fg-strong); font-weight: 600; }
.product-topbar-pills { display: flex; gap: 8px; }

.product-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg-strong);
  margin-bottom: 16px;
}

.product-kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
@media (min-width: 720px) {
  .product-kpis { grid-template-columns: repeat(4, 1fr); }
}
.product-kpi {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
}
.product-kpi-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.product-kpi-icon {
  display: inline-grid;
  place-items: center;
  width: 24px; height: 24px;
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--fg-muted);
}
.product-kpi-icon.primary { background: var(--primary-50); color: var(--primary); }
.product-kpi-icon.accent { background: var(--accent-50); color: var(--accent); }
.product-kpi-icon.warn { background: rgba(234, 88, 12, 0.1); color: var(--warning); }
.product-kpi-icon.success { background: rgba(22, 163, 74, 0.1); color: var(--success); }
.product-kpi-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--fg-muted);
  margin-bottom: 2px;
}
.product-kpi-value {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg-strong);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.product-chart-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}
.product-chart-card .header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}
.product-chart-card .title { font-size: 11.5px; font-weight: 600; color: var(--fg-strong); }
.product-chart-card .meta { font-size: 10.5px; color: var(--fg-muted); }
.product-chart-bars {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 3px;
  height: 56px;
  align-items: flex-end;
}
.product-chart-bar {
  background: linear-gradient(to top, var(--primary), var(--primary-hover));
  border-radius: 2px 2px 0 0;
  opacity: 0.85;
}
.product-chart-bar.accent {
  background: linear-gradient(to top, var(--accent), var(--accent-hover));
  opacity: 0.7;
}

/* ──────────────────────────────────────────────────────────────
   Screen thumbnails — "see the platform" section
   ────────────────────────────────────────────────────────────── */

.screens-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 720px) {
  .screens-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .screens-strip { grid-template-columns: repeat(2, 1fr); }
}

.screen-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 240ms var(--ease-out);
  display: flex;
  flex-direction: column;
}
.screen-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.screen-card-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 14px 16px;
}
.screen-card-frame::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.screen-card-frame::after {
  content: '';
  position: absolute;
  top: 8px; left: 12px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
  box-shadow:
    14px 0 0 var(--border-strong),
    28px 0 0 var(--border-strong);
}
.screen-card-content {
  position: absolute;
  top: 32px; left: 14px; right: 14px; bottom: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
.screen-mini-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  background: var(--bg-soft);
  border-radius: 4px;
  font-size: 9px;
  color: var(--fg-muted);
  font-family: var(--font-mono);
}
.screen-mini-row.highlight {
  background: var(--card);
  border: 1px solid var(--primary-100);
  color: var(--fg-strong);
  font-weight: 500;
}
.screen-mini-bar {
  width: 60%;
  height: 6px;
  background: linear-gradient(to right, var(--primary), var(--primary-hover));
  border-radius: 3px;
  opacity: 0.7;
}
.screen-mini-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 8px;
  font-weight: 500;
}
.screen-mini-chip.success { background: rgba(22, 163, 74, 0.12); color: var(--success); }
.screen-mini-chip.warn { background: rgba(234, 88, 12, 0.12); color: var(--warning); }
.screen-mini-chip.accent { background: var(--accent-50); color: var(--accent); }
.screen-mini-chip .dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }

.screen-card-meta {
  padding: 20px 22px;
}
.screen-card-eyebrow {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}
.screen-card h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--fg-strong);
  margin-bottom: 6px;
}
.screen-card p {
  font-size: 13.5px;
  color: var(--fg-muted);
  line-height: 1.55;
}

/* ── Massive number callout (editorial moment) ──────────────── */
.big-number {
  text-align: center;
  margin: 0 auto;
  max-width: 720px;
}
.big-number-value {
  font-size: clamp(72px, 12vw, 160px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: var(--fg-strong);
  margin-bottom: 16px;
  background: linear-gradient(180deg, var(--fg-strong) 0%, var(--fg-muted) 110%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-variant-numeric: tabular-nums;
}
.big-number-caption {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* ── Misc ───────────────────────────────────────────────────── */
.tabular { font-variant-numeric: tabular-nums; }
.muted { color: var(--fg-muted); }
.subtle { color: var(--fg-subtle); }
.text-center { text-align: center; }
