/* ---------- Tokens ---------- */
:root {
  --bone: #f5f1ea;
  --bone-50: #faf7f2;
  --bone-100: #f5f1ea;
  --bone-200: #ece6da;
  --bone-300: #ddd4c1;

  --ink: #0a0a0a;
  --ink-soft: #18181b;

  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;

  --white: #ffffff;

  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --font-display: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;

  --radius-tile: 28px;
  --radius-card: 20px;
  --radius-control: 999px;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;

  --content-width: 1280px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bone);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--amber-300); color: var(--ink); }

.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

/* ---------- Typography ---------- */
h1, h2, h3 { font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }

h1 { font-size: 44px; line-height: 1.05; max-width: 22ch; }
h2 { font-size: 32px; line-height: 1.1; }
h3 { font-size: 22px; line-height: 1.25; }

p { color: rgba(10, 10, 10, 0.65); max-width: 60ch; }

.small { font-size: 15px; }

.font-display {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

@media (min-width: 1024px) {
  h1 { font-size: 60px; }
  h2 { font-size: 42px; }
  h3 { font-size: 26px; }
}

/* ---------- Eyebrow labels ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(10, 10, 10, 0.6);
}
.eyebrow::before { content: '→'; color: var(--amber-600); }
.eyebrow.on-dark { color: rgba(255, 255, 255, 0.5); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-control);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid transparent;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}

.btn-amber { background: var(--amber-500); color: var(--ink); }
.btn-amber:hover { background: var(--amber-400); }

.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(10, 10, 10, 0.15); }
.btn-ghost:hover { border-color: rgba(10, 10, 10, 0.4); background: rgba(10, 10, 10, 0.05); }

.btn-on-dark { background: var(--white); color: var(--ink); }
.btn-on-dark:hover { background: var(--bone); }

.btn-outline-dark { background: transparent; color: rgba(255, 255, 255, 0.85); border-color: rgba(255, 255, 255, 0.15); }
.btn-outline-dark:hover { border-color: rgba(255, 255, 255, 0.4); color: var(--white); }

.btn-sm { padding: 10px 18px; }

/* ---------- Tiles ---------- */
.tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-tile);
  border: 1px solid rgba(10, 10, 10, 0.08);
}
.tile-light { background: var(--white); }
.tile-bone { background: var(--bone-50); }
.tile-dark {
  background: var(--ink);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.08);
}

/* ---------- Backgrounds ---------- */
.dot-grid {
  background-image: radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.07) 1px, transparent 0);
  background-size: 22px 22px;
}
.dot-grid-dark {
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.06) 1px, transparent 0);
  background-size: 22px 22px;
}
.glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(64px);
  opacity: 0.3;
  pointer-events: none;
}

/* ---------- Terminal ---------- */
.terminal {
  position: relative;
  border-radius: 16px;
  background: var(--ink);
  color: #e5e5e5;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}
.terminal-dot { width: 9px; height: 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); }
.terminal-label { margin-left: 6px; color: rgba(255, 255, 255, 0.4); font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; }
.terminal-body { padding: 16px 18px; }
.terminal-body p { color: rgba(255, 255, 255, 0.85); max-width: none; }
.term-prompt::before { content: '$ '; color: var(--amber-500); }
.term-ok::before { content: '✓ '; color: #34d399; }
.term-info::before { content: '→ '; color: rgba(255, 255, 255, 0.45); }
.term-warn::before { content: '! '; color: var(--amber-400); }

/* ---------- Pulse / live indicator ---------- */
.pulse-dot {
  position: relative;
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #34d399;
}
.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 999px;
  border: 1px solid #34d399;
  opacity: 0;
  animation: pulse-ring 2.4s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.6); opacity: 0.6; }
  80%, 100% { transform: scale(1.8); opacity: 0; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 241, 234, 0.75);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.site-header.is-scrolled { border-bottom-color: rgba(10, 10, 10, 0.08); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo-link { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 36px; width: auto; }
.logo-badge {
  display: none;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(10, 10, 10, 0.15);
  background: rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(10, 10, 10, 0.7);
}
.logo-badge .slash { color: var(--amber-600); }

.main-nav { display: flex; gap: 4px; }
.main-nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(10, 10, 10, 0.55);
  transition: color 200ms ease, background-color 200ms ease;
}
.main-nav a:hover { color: var(--ink); background: rgba(10, 10, 10, 0.05); }
.nav-code { color: rgba(217, 119, 6, 0.7); }
.main-nav a:hover .nav-code { color: var(--amber-600); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  border-radius: 999px;
}
.nav-toggle:hover { background: rgba(10, 10, 10, 0.05); }
.nav-toggle span { display: block; height: 2px; width: 16px; margin: 0 auto; background: var(--ink); border-radius: 2px; }

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

.section-head { max-width: 640px; margin: 0 auto var(--space-5); text-align: center; }
.section-head h2 { margin-top: var(--space-2); }
.section-head p { margin: var(--space-2) auto 0; }
.section-head.on-dark h2 { color: var(--white); }
.section-head.on-dark p { color: rgba(255, 255, 255, 0.65); }
.section-head.align-left { margin-left: 0; text-align: left; max-width: 640px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: var(--space-6) 0 var(--space-7); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; opacity: 0.6; }
.hero-glow {
  top: -80px; right: -80px; width: 480px; height: 480px;
  background: radial-gradient(closest-side, rgba(245, 158, 11, 0.5), transparent);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(10, 10, 10, 0.15);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(10, 10, 10, 0.7);
}
.badge-pill .dot { color: var(--amber-600); }

.hero-content h1 { margin-top: var(--space-3); }
.hero-content .accent-line { display: block; color: rgba(10, 10, 10, 0.55); }
.hero-content .accent-line .font-display { color: var(--amber-600); font-size: 1.05em; }

.hero-desc { margin: var(--space-3) 0 var(--space-4); font-size: 17px; max-width: 46ch; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
  margin-top: var(--space-5);
}
.tag-row span {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(10, 10, 10, 0.4);
}

@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr 1fr; }
  .logo-badge { display: inline-flex; }
}

/* ---------- Status panel (hero media) ---------- */
.hero-media { position: relative; }
.status-panel { padding: var(--space-3) var(--space-3) var(--space-3); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.mono-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(10, 10, 10, 0.5);
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #059669;
}
.live-pill .pill-alert { color: #dc2626; }

.status-list { margin-top: var(--space-3); display: flex; flex-direction: column; gap: 2px; }
.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  border-top: 1px solid rgba(10, 10, 10, 0.06);
  font-size: 14px;
}
.status-row:first-child { border-top: none; }
.status-dot { width: 7px; height: 7px; border-radius: 999px; flex: none; }
.status-dot.ok { background: #34d399; }
.status-dot.warn { background: var(--amber-500); }
.status-dot.error { background: #dc2626; }
.status-name { flex: 1; font-weight: 500; color: var(--ink); }
.status-meta { font-family: var(--font-mono); font-size: 11px; color: rgba(10, 10, 10, 0.45); }

.spec-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(10, 10, 10, 0.08);
  margin-top: var(--space-2);
}
.spec-row > * {
  padding: 12px 4px;
  border-bottom: 1px solid rgba(10, 10, 10, 0.08);
  font-family: var(--font-mono);
  font-size: 11px;
}
.spec-row .k { color: rgba(10, 10, 10, 0.5); }
.spec-row .v { text-align: right; color: var(--ink); }

.hero-terminal {
  margin-top: var(--space-2);
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.35);
}

/* ---------- Video tiles ---------- */
.video-tile {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-tile);
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  color: rgba(255, 255, 255, 0.6);
  position: relative;
  overflow: hidden;
  font-family: inherit;
  transition: border-color 200ms ease, transform 200ms ease;
}
.video-tile:hover { border-color: rgba(245, 158, 11, 0.4); transform: translateY(-2px); }
.video-tile [data-lucide] { width: 30px; height: 30px; color: var(--amber-400); }
.video-tile .mono-label { color: rgba(255, 255, 255, 0.4); }

/* ---------- Video modal (lightbox) ---------- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}
.video-modal.is-open { opacity: 1; pointer-events: auto; }

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.85);
}

.video-modal-panel {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-tile);
  padding: var(--space-3);
}

.video-modal-title {
  display: block;
  margin-bottom: var(--space-2);
  color: rgba(255, 255, 255, 0.6);
}

.video-modal-player,
#video-modal-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background: #000;
  display: block;
}

.video-modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--amber-500);
  color: var(--ink);
  border: none;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 200ms ease;
}
.video-modal-close:hover { background: var(--amber-400); }
.video-tile .video-title { font-size: 13px; color: rgba(255, 255, 255, 0.75); }

/* ---------- Problem cards ---------- */
.card-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }

@media (min-width: 768px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative;
  background: var(--white);
  border: 1px solid rgba(10, 10, 10, 0.08);
  border-radius: var(--radius-card);
  padding: var(--space-4);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.card:hover { border-color: rgba(245, 158, 11, 0.4); box-shadow: 0 20px 50px -25px rgba(0, 0, 0, 0.15); }

.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-3); }
.card-num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--amber-600); }
.card-icon { width: 22px; height: 22px; color: var(--amber-600); }
.card h3 { margin-bottom: 8px; font-size: 19px; }
.card p { font-size: 15px; }

/* ---------- Podcast ---------- */
.podcast-section { padding: 0 0 var(--space-6); }

.podcast-bar {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: stretch;
  padding: var(--space-4);
}

.podcast-info h3 { color: var(--white); margin-top: 6px; }
.podcast-info p { color: rgba(255, 255, 255, 0.65); margin-top: 4px; font-size: 15px; }

.podcast-player {
  width: 100%;
  height: 44px;
  color-scheme: dark;
  border-radius: 999px;
}

@media (min-width: 768px) {
  .podcast-bar { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--space-4); }
  .podcast-info { flex: 1; }
  .podcast-player { max-width: 420px; flex: none; }
}

/* ---------- Compare (Fark) ---------- */
.compare-list { display: flex; flex-direction: column; gap: 10px; margin-top: var(--space-5); }

.compare-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: var(--space-3);
  border: 1px solid rgba(10, 10, 10, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
  transition: border-color 200ms ease, background-color 200ms ease;
}
.compare-row:hover { border-color: rgba(245, 158, 11, 0.35); background: var(--white); }

@media (min-width: 768px) {
  .compare-row { grid-template-columns: 1.2fr 1fr 1fr; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); }
  .compare-key { display: none; }
}

.compare-feat { font-weight: 500; font-size: 15px; }

.compare-key {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(10, 10, 10, 0.4);
}

.compare-val { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.compare-val svg { flex: none; width: 14px; height: 14px; }
.compare-old .compare-val { color: rgba(10, 10, 10, 0.55); }
.compare-old .compare-val svg { color: rgba(10, 10, 10, 0.35); }
.compare-new .compare-val { color: var(--ink); font-weight: 500; }
.compare-new .compare-val svg { color: var(--amber-600); }

/* ---------- Architecture (Mimari) ---------- */
.rule-321 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-1) var(--space-3);
  margin-top: var(--space-2);
}
.rule-321 span {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--amber-600);
}

.arch-flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin-top: var(--space-5);
  align-items: stretch;
}

@media (min-width: 1024px) {
  .arch-flow { grid-template-columns: 1fr auto 1fr; gap: var(--space-4); }
}

.arch-tile { padding: var(--space-4); }
.arch-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: var(--space-2);
}
.arch-badge.local { background: rgba(10, 10, 10, 0.06); color: rgba(10, 10, 10, 0.6); }
.arch-badge.cloud { background: rgba(245, 158, 11, 0.15); color: var(--amber-400); }

.arch-tile h3 { margin-bottom: 6px; }
.arch-tile.tile-dark h3 { color: var(--white); }
.arch-tile.tile-dark p { color: rgba(255, 255, 255, 0.65); }

.arch-list { margin-top: var(--space-3); display: flex; flex-direction: column; gap: 8px; }
.arch-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(10, 10, 10, 0.65);
}
.arch-list li::before { content: ''; width: 5px; height: 5px; margin-top: 6px; border-radius: 999px; background: var(--ink-soft); flex: none; }
.arch-tile.tile-dark .arch-list li { color: rgba(255, 255, 255, 0.75); }
.arch-tile.tile-dark .arch-list li::before { background: var(--amber-400); }

.arch-connector {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
@media (min-width: 1024px) { .arch-connector { flex-direction: column; } }
.arch-connector .arrow { font-family: var(--font-mono); font-size: 22px; color: var(--amber-600); }
.arch-connector .conn-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(10, 10, 10, 0.45);
  text-align: center;
  max-width: 130px;
}

/* ---------- Positioning statement ---------- */
.statement-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-tile);
  background: var(--ink);
  color: var(--white);
  padding: var(--space-5) var(--space-4);
  text-align: center;
  margin-top: var(--space-5);
}
.statement-banner p {
  position: relative;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.35;
  color: var(--white);
  max-width: 54ch;
  margin: 0 auto;
}
.statement-banner .amber {
  color: var(--amber-300);
  font-style: normal;
  font-family: var(--font-sans);
  font-weight: 500;
}
@media (min-width: 1024px) { .statement-banner p { font-size: 32px; } }

/* ---------- Steps (dark section) ---------- */
.steps-section {
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}
.steps-section .dot-grid-dark { position: absolute; inset: 0; }
.steps-section .glow { top: -120px; left: 20%; width: 420px; height: 420px; opacity: 0.25; }

.steps { position: relative; display: grid; grid-template-columns: 1fr; gap: var(--space-4); }

@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step { display: flex; flex-direction: column; gap: var(--space-2); }
.step-head { display: flex; align-items: baseline; gap: 12px; }
.step-num { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--amber-400); }
.step-rule { flex: 1; height: 1px; background: rgba(255, 255, 255, 0.15); }
.step h3 { color: var(--white); margin-top: 4px; }
.step p { color: rgba(255, 255, 255, 0.6); font-size: 15px; }

/* ---------- Feature (alternating) ---------- */
.feature-alt { background: var(--bone-50); }

.feature-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: center;
}

@media (min-width: 1024px) {
  .feature-inner { grid-template-columns: 1fr 1.15fr; }
  .feature-inner.reverse .feature-text { order: 2; }
  .feature-inner.reverse .feature-media { order: 1; }
}

.feature-text h2 { margin: var(--space-2) 0 var(--space-2); }
.feature-list { margin-top: var(--space-3); display: flex; flex-direction: column; gap: 10px; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(10, 10, 10, 0.7);
}
.feature-list li::before {
  content: '';
  width: 5px; height: 5px;
  margin-top: 7px;
  border-radius: 999px;
  background: var(--amber-500);
  flex: none;
}

.feature-media .tile { padding: var(--space-3); }

/* Dedup bars */
.dedup-bars { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-3); }
.dedup-row .dedup-label { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(10, 10, 10, 0.55); margin-bottom: 6px; }
.dedup-track { height: 10px; border-radius: 999px; background: var(--bone-200); overflow: hidden; }
.dedup-fill { height: 100%; border-radius: 999px; background: var(--amber-500); }

/* ---------- Demo grid ---------- */
.video-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }

@media (min-width: 768px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Contact ---------- */
.contact { background: var(--bone-50); }
.contact-inner { max-width: 640px; margin: 0 auto; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  background: var(--white);
  border: 1px solid rgba(10, 10, 10, 0.08);
  border-radius: var(--radius-tile);
  padding: var(--space-4);
}

.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(10, 10, 10, 0.6);
}
.form-row label .required {
  color: #d13438;
  margin-left: 2px;
}
.form-row input,
.form-row textarea {
  font-family: var(--font-sans);
  font-size: 15px;
  padding: 12px 16px;
  border: 1px solid rgba(10, 10, 10, 0.12);
  border-radius: 12px;
  background: var(--bone-50);
  color: var(--ink);
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--amber-500);
  background: var(--white);
}

.contact-form .btn { margin-top: 8px; align-self: flex-start; }
.contact-form .btn[disabled] { opacity: 0.6; pointer-events: none; }
.form-note { font-family: var(--font-mono); font-size: 12px; color: #059669; min-height: 18px; }
.form-note.is-error { color: #dc2626; }

/* Honeypot — hidden from humans, still reachable by bots that skip display:none */
.hp-field {
  position: absolute;
  left: -5000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: rgba(10, 10, 10, 0.7);
  cursor: pointer;
}
.form-check input { margin-top: 3px; accent-color: var(--amber-500); flex: none; }
.form-check a { color: var(--amber-500); text-decoration: underline; }
.form-check a:hover { color: var(--amber-600, var(--amber-500)); }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--ink); color: var(--white); overflow: hidden; }
.site-footer .dot-grid-dark { position: absolute; inset: 0; opacity: 0.5; }

.footer-inner { position: relative; padding-top: var(--space-6); padding-bottom: var(--space-4); }

.footer-top { display: grid; grid-template-columns: 1fr; gap: var(--space-5); }

.footer-brand .logo-img { height: 44px; }
.footer-brand .logo-badge { display: inline-flex; margin-top: 10px; border-color: rgba(255, 255, 255, 0.15); background: rgba(255, 255, 255, 0.05); color: rgba(255, 255, 255, 0.7); }
.footer-tagline { margin-top: var(--space-3); max-width: 34ch; font-size: 18px; color: rgba(255, 255, 255, 0.85); }
.footer-tagline .amber { color: var(--amber-300); }
.footer-tagline .font-display { color: var(--white); font-weight: 400; }

.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
.footer-col h3 {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
}
.footer-col h3::before { content: '— '; }
.footer-col ul { margin-top: var(--space-2); display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: rgba(255, 255, 255, 0.8); transition: color 200ms ease; }
.footer-col a:hover { color: var(--amber-300); }

.footer-bottom {
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-bottom p {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.4);
}

@media (min-width: 768px) {
  .footer-top { grid-template-columns: 1fr 1.2fr; gap: var(--space-6); }
  .footer-cols { grid-template-columns: repeat(4, 1fr); }
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- Scroll reveal ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms cubic-bezier(.2, .6, .2, 1), transform 700ms cubic-bezier(.2, .6, .2, 1);
}
.fade-in.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive: mobile nav ---------- */
@media (max-width: 1023px) {
  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bone);
    border-bottom: 1px solid rgba(10, 10, 10, 0.08);
    flex-direction: column;
    padding: var(--space-2) var(--space-3);
    gap: 4px;
    display: none;
  }
  .main-nav a { padding: 12px 14px; }
  .main-nav.is-open { display: flex; }
  .nav-toggle { display: flex; }
}

@media (max-width: 767px) {
  h1 { font-size: 34px; }
  h2 { font-size: 26px; }
  h3 { font-size: 20px; }
  .section { padding: var(--space-5) 0; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}
