:root {
  --bg: #06080a;
  --surface: #0c1014;
  --ink: #e8edf2;
  --muted: #7b8a99;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --cyan: #4de8d4;
  --green: #a8ff53;
  --amber: #ffb830;
  --red: #ff4f5e;
  --magenta: #d65cff;
  --glow-cyan: rgba(77, 232, 212, 0.15);
  --glow-green: rgba(168, 255, 83, 0.12);
  --mono: "SF Mono", "Fira Code", "Cascadia Code", "JetBrains Mono", Consolas, monospace;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  /* Opaque backdrop + gradients live on <html> so the fixed #grid-field
     canvas (z-index:-1) paints ABOVE this backdrop. If these were on
     <body>, body's in-flow background would paint over the canvas and
     hide the whole network. */
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(77, 232, 212, 0.07), transparent),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(168, 255, 83, 0.04), transparent),
    var(--bg);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  background: transparent;
}

/* scan-line overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
}

/* subtle grid */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 20%, transparent 70%);
}

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

#grid-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

/* ═══════════════ HEADER ═══════════════ */

.hdr {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(6, 8, 10, 0.7);
  backdrop-filter: blur(24px) saturate(1.4);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 16px;
  margin-right: auto;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(77, 232, 212, 0.5);
  border-radius: 6px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
  box-shadow:
    0 0 16px rgba(77, 232, 212, 0.15),
    inset 0 0 12px rgba(77, 232, 212, 0.1);
}

.hdr nav {
  display: flex;
  gap: 4px;
}

.hdr nav a {
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}

.hdr nav a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.hdr-actions {
  display: flex;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

button.btn {
  font-family: inherit;
}

.btn[hidden] {
  display: none;
}

.btn-ghost {
  color: var(--muted);
}

.btn-ghost:hover {
  color: var(--ink);
}

.btn-accent {
  background: rgba(77, 232, 212, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(77, 232, 212, 0.3);
}

.btn-accent:hover {
  background: rgba(77, 232, 212, 0.2);
  box-shadow: 0 0 20px rgba(77, 232, 212, 0.15);
}

.btn-primary {
  background: var(--green);
  color: #0a0f08;
  box-shadow: 0 0 28px rgba(168, 255, 83, 0.2);
  padding: 14px 24px;
  font-size: 15px;
}

.btn-primary:hover {
  box-shadow: 0 0 40px rgba(168, 255, 83, 0.35);
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  padding: 14px 24px;
  font-size: 15px;
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
}

/* ═══════════════ DEMO MODAL ═══════════════ */

.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(6, 8, 10, 0.72);
  backdrop-filter: blur(12px);
}

.demo-modal[hidden] {
  display: none;
}

.demo-dialog {
  position: relative;
  width: min(100%, 560px);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(12, 16, 20, 0.98);
  padding: 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.demo-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.demo-dialog h2 {
  margin-top: 8px;
  font-size: 30px;
}

.demo-copy {
  margin-top: 12px;
  color: var(--muted);
}

.demo-status {
  margin-top: 18px;
  border: 1px solid rgba(77, 232, 212, 0.28);
  border-radius: 8px;
  background: rgba(77, 232, 212, 0.08);
  padding: 12px 14px;
  color: var(--cyan);
  font-size: 14px;
}

.demo-status[hidden] {
  display: none;
}

.demo-status.is-error {
  border-color: rgba(255, 79, 94, 0.35);
  background: rgba(255, 79, 94, 0.08);
  color: var(--red);
}

.demo-result {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.demo-result[hidden] {
  display: none;
}

.demo-result div {
  display: grid;
  gap: 4px;
}

.demo-result span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.demo-result code {
  overflow-wrap: anywhere;
  color: var(--green);
  font-family: var(--mono);
  font-size: 14px;
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

/* working / provisioning indicator */

.demo-working {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  padding: 18px 14px 16px;
}

.demo-working[hidden] {
  display: none;
}

.demo-graph {
  display: block;
  width: 100%;
  height: 124px;
}

.demo-edge {
  stroke: rgba(77, 232, 212, 0.35);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 3 7;
  animation: demo-flow 1s linear infinite;
}

.demo-edges line:nth-child(2) { animation-delay: 0.25s; }
.demo-edges line:nth-child(3) { animation-delay: 0.5s; }
.demo-edges line:nth-child(4) { animation-delay: 0.75s; }

.demo-node,
.demo-core,
.demo-ripple {
  transform-box: fill-box;
  transform-origin: center;
}

.demo-node {
  animation: demo-pulse 1.6s ease-in-out infinite;
}

.n1 { fill: var(--green); filter: drop-shadow(0 0 6px rgba(168, 255, 83, 0.6)); }
.n2 { fill: var(--amber); filter: drop-shadow(0 0 6px rgba(255, 184, 48, 0.6)); animation-delay: 0.4s; }
.n3 { fill: var(--magenta); filter: drop-shadow(0 0 6px rgba(214, 92, 255, 0.6)); animation-delay: 0.8s; }
.n4 { fill: var(--red); filter: drop-shadow(0 0 6px rgba(255, 79, 94, 0.6)); animation-delay: 1.2s; }

.demo-core {
  fill: var(--cyan);
  filter: drop-shadow(0 0 10px rgba(77, 232, 212, 0.7));
  animation: demo-pulse 1.6s ease-in-out infinite;
}

.demo-ripple {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.5;
  animation: demo-ripple 1.8s ease-out infinite;
}

@keyframes demo-flow {
  to { stroke-dashoffset: -20; }
}

@keyframes demo-pulse {
  0%, 100% { transform: scale(0.82); opacity: 0.55; }
  50%      { transform: scale(1.12); opacity: 1; }
}

@keyframes demo-ripple {
  0%   { transform: scale(0.7); opacity: 0.7; }
  100% { transform: scale(3.4); opacity: 0; }
}

.demo-bar {
  position: relative;
  height: 4px;
  margin-top: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.demo-bar span {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 38%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--green), transparent);
  animation: demo-sweep 1.4s ease-in-out infinite;
}

@keyframes demo-sweep {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(330%); }
}

.demo-caption {
  margin-top: 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  text-align: center;
  transition: opacity 0.25s ease;
}

@media (prefers-reduced-motion: reduce) {
  .demo-edge,
  .demo-node,
  .demo-core,
  .demo-ripple,
  .demo-bar span {
    animation: none;
  }
  .demo-node,
  .demo-core { opacity: 1; transform: none; }
  .demo-ripple { display: none; }
  .demo-bar span { width: 100%; opacity: 0.4; }
}

/* ═══════════════ HERO ═══════════════ */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 160px clamp(16px, 5vw, 64px) 80px;
  min-height: 100svh;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid rgba(77, 232, 212, 0.25);
  border-radius: 999px;
  background: rgba(77, 232, 212, 0.06);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse-glow 2s ease-in-out infinite;
}

h1 {
  font-size: clamp(48px, 7.5vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 850;
  max-width: 900px;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 55%, rgba(255, 255, 255, 0.82) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  max-width: 640px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.55;
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ═══ HERO TERMINAL ═══ */

.hero-terminal {
  position: relative;
  width: min(92vw, 680px);
  margin-top: 64px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(10, 14, 18, 0.85);
  box-shadow:
    0 0 0 1px rgba(77, 232, 212, 0.06),
    0 32px 80px rgba(0, 0, 0, 0.5),
    0 0 120px rgba(77, 232, 212, 0.06);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.term-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.term-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.term-dot:first-child { background: var(--red); opacity: 0.7; }
.term-dot:nth-child(2) { background: var(--amber); opacity: 0.7; }
.term-dot:nth-child(3) { background: var(--green); opacity: 0.7; }

.term-title {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.term-body {
  padding: 20px 24px 24px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
}

.term-line {
  white-space: nowrap;
  overflow: hidden;
}

.t-prompt { color: var(--green); margin-right: 8px; }
.t-cmd { color: var(--ink); }
.t-url { color: var(--cyan); }
.t-dim { color: var(--muted); }
.term-spacer { height: 16px; }
.t-response { color: var(--muted); }
.t-brace { color: var(--ink); }
.t-key { color: var(--cyan); }
.t-val-warn { color: var(--amber); }
.t-val-num { color: var(--magenta); }
.t-val-good { color: var(--green); }
.t-val-cyan { color: var(--cyan); }

.term-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--green);
  animation: cursor-blink 1s step-end infinite;
  margin-top: 4px;
  opacity: 0.8;
}

/* stream particles floating around terminal */
.stream-track {
  position: absolute;
  pointer-events: none;
}

.track-1 { top: 20%; left: -40px; }
.track-2 { bottom: 30%; right: -40px; }
.track-3 { top: 60%; left: -60px; }

.stream-particle {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
  animation: stream-float-r 4s ease-in-out infinite;
}

.p2 { margin-top: 24px; animation-delay: -1.5s; background: var(--green); box-shadow: 0 0 14px var(--green); }
.p3 { animation: stream-float-l 5s ease-in-out infinite; background: var(--amber); box-shadow: 0 0 14px var(--amber); }
.p4 { animation: stream-float-r 6s ease-in-out infinite; }
.p5 { margin-top: 16px; animation-delay: -2s; animation: stream-float-r 3.5s ease-in-out infinite; background: var(--magenta); box-shadow: 0 0 14px var(--magenta); }

/* ═══════════════ SIGNAL BAR ═══════════════ */

.signal-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  overflow: hidden;
  background: rgba(10, 14, 18, 0.5);
}

.signal-scroll {
  display: flex;
  gap: 16px;
  width: max-content;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  animation: scroll-left 40s linear infinite;
}

.sig-sep {
  color: rgba(77, 232, 212, 0.3);
}

/* ═══════════════ HOW IT WORKS ═══════════════ */

.how-section {
  padding: clamp(80px, 12vw, 140px) clamp(16px, 5vw, 64px);
  text-align: center;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}

h2 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 820;
  max-width: 800px;
  margin: 0 auto;
}

.how-section > p:last-of-type {
  max-width: 560px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 17px;
}

.pipeline {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-top: 72px;
  flex-wrap: wrap;
}

.pipe-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 220px;
  padding: 0 12px;
}

.pipe-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--cyan);
  margin-bottom: 16px;
  font-weight: 700;
}

.pipe-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(77, 232, 212, 0.04);
  color: var(--cyan);
  margin-bottom: 20px;
}

.pipe-icon svg {
  width: 28px;
  height: 28px;
}

.pipe-step h3 {
  font-size: 18px;
  font-weight: 750;
  margin-bottom: 8px;
}

.pipe-step p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.pipe-connector {
  display: flex;
  align-items: center;
  padding-top: 52px;
  width: 48px;
}

.pipe-connector span {
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(77, 232, 212, 0.5), rgba(77, 232, 212, 0.1));
}

/* ═══════════════ CAPABILITIES ═══════════════ */

.cap-section {
  padding: clamp(80px, 12vw, 140px) clamp(16px, 5vw, 64px);
}

.cap-section .eyebrow,
.cap-section h2 {
  text-align: center;
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 64px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.cap-card {
  padding: clamp(28px, 3vw, 40px);
  background: rgba(10, 14, 18, 0.92);
  transition: background 0.3s;
}

.cap-card:hover {
  background: rgba(15, 20, 26, 0.95);
}

.cap-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}

.cap-glyph {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
}

.cap-glyph svg {
  width: 100%;
  height: 100%;
}

/* ─── capability mini-viz: small labelled instruments ─── */
.cap-anim {
  position: relative;
  margin-bottom: 22px;
  font-family: var(--mono);
}

/* 0 · traffic split / rollout — shadow & rollout testing */
.anim-roll { display: flex; flex-direction: column; gap: 7px; }
.rl-head { display: flex; gap: 8px; font-size: 10px; }
.rl-tag { display: inline-flex; align-items: center; gap: 5px; }
.rl-tag::before { content: ""; width: 8px; height: 8px; border-radius: 2px; }
.rl-tag-live { color: var(--cyan); }
.rl-tag-live::before { background: var(--cyan); }
.rl-tag-cand { color: var(--green); }
.rl-tag-cand::before { background: var(--green); }
.rl-bar {
  position: relative; height: 14px; border-radius: 4px; overflow: hidden;
  background: rgba(77, 232, 212, 0.18);
}
.rl-cand-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 10%;
  background: linear-gradient(90deg, rgba(168, 255, 83, 0.55), rgba(168, 255, 83, 0.3));
  border-right: 1px solid var(--green);
  animation: rl-ramp 5s ease-in-out infinite;
}
@keyframes rl-ramp {
  0% { width: 10%; } 45% { width: 50%; } 55% { width: 50%; } 100% { width: 10%; }
}
.rl-foot { display: flex; justify-content: space-between; font-size: 10px; }
.rl-shadow { color: var(--muted); }
.rl-pct { color: var(--green); font-weight: 700; animation: rl-pct 5s ease-in-out infinite; }
@keyframes rl-pct { 0%, 100% { opacity: 0.7; } 45%, 55% { opacity: 1; text-shadow: 0 0 8px rgba(168, 255, 83, 0.5); } }

/* 1 · confusion matrix + live metrics — precision & recall */
.anim-pr { display: flex; align-items: center; gap: 16px; }
.pr-matrix {
  display: grid;
  grid-template-columns: repeat(2, 42px);
  grid-template-rows: repeat(2, 26px);
  gap: 3px;
}
.pr-cell {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5px; border-radius: 4px; font-size: 9px;
  border: 1px solid transparent;
}
.pr-cell b { font-weight: 800; opacity: 0.85; }
.pr-cell i { font-style: normal; font-weight: 700; }
.pr-tp { color: var(--green); background: rgba(168, 255, 83, 0.10); border-color: rgba(168, 255, 83, 0.30); animation: pr-cell 3s ease-in-out infinite; }
.pr-fp { color: var(--red);   background: rgba(255, 79, 94, 0.08);  border-color: rgba(255, 79, 94, 0.22);  animation: pr-cell 3s ease-in-out infinite 0.8s; }
.pr-fn { color: var(--amber); background: rgba(255, 184, 48, 0.08); border-color: rgba(255, 184, 48, 0.22); animation: pr-cell 3s ease-in-out infinite 1.6s; }
.pr-tn { color: var(--cyan);  background: rgba(77, 232, 212, 0.08); border-color: rgba(77, 232, 212, 0.22); animation: pr-cell 3s ease-in-out infinite 2.4s; }
@keyframes pr-cell { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.7); } }
.pr-metrics { display: flex; flex-direction: column; gap: 4px; font-size: 10px; }
.pr-metrics span { display: flex; justify-content: space-between; gap: 12px; }
.pr-metrics em { font-style: normal; color: var(--muted); }
.pr-metrics strong { color: var(--ink); font-weight: 700; }
.pr-f1 { color: var(--green); animation: pr-f1 3s ease-in-out infinite; }
@keyframes pr-f1 { 0%, 100% { opacity: 0.65; } 50% { opacity: 1; text-shadow: 0 0 8px rgba(168, 255, 83, 0.6); } }

/* 2 · state machine — rule lifecycle */
.anim-life { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lf-state {
  padding: 4px 9px; border-radius: 5px; font-size: 11px; font-weight: 600;
  border: 1px solid var(--line-strong); color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}
.lf-arrow { color: rgba(255, 255, 255, 0.25); font-size: 12px; }
.lf-0 { animation: lf-on 4.4s ease-in-out infinite; }
.lf-1 { animation: lf-on 4.4s ease-in-out infinite 1.1s; }
.lf-2 { animation: lf-on 4.4s ease-in-out infinite 2.2s; }
.lf-3 { animation: lf-on 4.4s ease-in-out infinite 3.3s; }
@keyframes lf-on {
  0%, 3% { color: #0a0f08; background: var(--green); border-color: var(--green); box-shadow: 0 0 12px rgba(168, 255, 83, 0.5); }
  20%, 100% { color: var(--muted); background: rgba(255, 255, 255, 0.03); border-color: var(--line-strong); box-shadow: none; }
}

/* 3 · replay timeline — backtesting */
.anim-bt { display: flex; flex-direction: column; gap: 6px; }
.bt-head { display: flex; align-items: center; justify-content: space-between; font-size: 10px; }
.bt-badge { color: var(--green); font-weight: 700; }
.bt-count { color: var(--muted); }
.bt-stage { position: relative; overflow: hidden; }
.bt-track { display: flex; align-items: flex-end; gap: 3px; width: 100%; height: 40px; }
.bt-bar { flex: 1; background: rgba(77, 232, 212, 0.20); border-radius: 2px 2px 0 0; }
.bt-bar:nth-child(1) { height: 38%; } .bt-bar:nth-child(2) { height: 62%; }
.bt-bar:nth-child(3) { height: 48%; } .bt-bar:nth-child(4) { height: 80%; }
.bt-bar:nth-child(5) { height: 55%; } .bt-bar:nth-child(6) { height: 92%; }
.bt-bar:nth-child(7) { height: 70%; } .bt-bar:nth-child(8) { height: 44%; }
.bt-bar:nth-child(9) { height: 66%; } .bt-bar:nth-child(10) { height: 85%; }
.bt-bar:nth-child(11) { height: 52%; } .bt-bar:nth-child(12) { height: 74%; }
.bt-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: linear-gradient(90deg, rgba(168, 255, 83, 0.20), rgba(168, 255, 83, 0.05));
  animation: bt-sweep 3.6s linear infinite;
}
.bt-playhead {
  position: absolute; top: 0; bottom: 0; left: 0; width: 2px;
  background: var(--green); box-shadow: 0 0 10px var(--green);
  animation: bt-head 3.6s linear infinite;
}
@keyframes bt-sweep { 0% { width: 0; opacity: 1; } 90% { width: 100%; opacity: 1; } 100% { width: 100%; opacity: 0; } }
@keyframes bt-head { 0% { left: 0; opacity: 1; } 90% { left: calc(100% - 2px); opacity: 1; } 100% { left: calc(100% - 2px); opacity: 0; } }
.bt-axis { display: flex; justify-content: space-between; font-size: 9px; color: var(--muted); }

/* 4 · fields → matched conditions — decision tracing */
.anim-tr { position: relative; display: flex; justify-content: space-between; height: 56px; }
.tr-links { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.tr-link { stroke: rgba(77, 232, 212, 0.30); stroke-width: 1; stroke-dasharray: 4 5; fill: none; }
.tl-0 { animation: tr-flow 1.5s linear infinite; }
.tl-1 { animation: tr-flow 1.5s linear infinite 0.5s; }
.tl-2 { animation: tr-flow 1.5s linear infinite 1s; }
@keyframes tr-flow { to { stroke-dashoffset: -18; } }
.tr-col { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; }
.tr-col span {
  font-size: 10px; padding: 2px 7px; border-radius: 4px;
  background: rgba(6, 8, 10, 0.92); border: 1px solid var(--line);
}
.tr-fields span { color: var(--cyan); }
.tr-rules .tr-rule { color: var(--magenta); border-color: rgba(214, 92, 255, 0.25); }
.tr-rr0 { animation: tr-hit 1.5s ease-in-out infinite; }
.tr-rr1 { animation: tr-hit 1.5s ease-in-out infinite 0.5s; }
.tr-rr2 { animation: tr-hit 1.5s ease-in-out infinite 1s; }
@keyframes tr-hit {
  0%, 55%, 100% { background: rgba(6, 8, 10, 0.92); box-shadow: none; }
  72% { background: rgba(214, 92, 255, 0.18); box-shadow: 0 0 12px rgba(214, 92, 255, 0.5); }
}

/* 5 · value checked against named lists — user lists & lookups */
.anim-lk { display: flex; flex-direction: column; gap: 7px; }
.lk-query {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content;
  padding: 3px 9px; border-radius: 5px; font-size: 11px; color: var(--ink);
  background: rgba(77, 232, 212, 0.08); border: 1px solid rgba(77, 232, 212, 0.3);
}
.lk-mag { color: var(--cyan); }
.lk-list { display: flex; gap: 6px; flex-wrap: wrap; }
.lk-item {
  font-size: 10px; padding: 3px 8px; border-radius: 4px; color: var(--muted);
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02);
}
.lk-match { position: relative; animation: lk-hit 3s ease-in-out infinite; }
.lk-tick { font-style: normal; margin-left: 5px; opacity: 0; }
@keyframes lk-hit {
  0%, 45% { color: var(--muted); border-color: var(--line); background: rgba(255, 255, 255, 0.02); }
  60%, 90% { color: var(--green); border-color: rgba(168, 255, 83, 0.5); background: rgba(168, 255, 83, 0.12); box-shadow: 0 0 12px rgba(168, 255, 83, 0.3); }
  100% { color: var(--muted); border-color: var(--line); background: rgba(255, 255, 255, 0.02); }
}
.lk-match .lk-tick { animation: lk-tick 3s ease-in-out infinite; }
@keyframes lk-tick { 0%, 50% { opacity: 0; } 62%, 90% { opacity: 1; color: var(--green); } 100% { opacity: 0; } }

.cap-card h3 {
  font-size: 18px;
  font-weight: 750;
  margin-bottom: 8px;
}

.cap-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* featured card visualization */
.cap-viz {
  position: relative;
  width: 100%;
  aspect-ratio: 1.2;
  max-width: 400px;
  margin: 0 auto;
}

.viz-ring {
  position: absolute;
  border: 1px solid;
  border-radius: 50%;
}

.ring-outer {
  inset: 0;
  border-color: rgba(77, 232, 212, 0.12);
  animation: spin 20s linear infinite;
}

.ring-mid {
  inset: 18%;
  border-color: rgba(168, 255, 83, 0.15);
  animation: spin 14s linear infinite reverse;
}

.ring-inner {
  inset: 36%;
  border-color: rgba(255, 184, 48, 0.12);
  animation: spin 10s linear infinite;
}

.viz-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(168, 255, 83, 0.15);
  border: 1px solid rgba(168, 255, 83, 0.4);
  box-shadow: 0 0 30px rgba(168, 255, 83, 0.2);
}

.viz-center span {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 900;
  color: var(--green);
  letter-spacing: 0.1em;
}

.viz-node {
  position: absolute;
  display: grid;
  place-items: center;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(10, 14, 18, 0.9);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--cyan);
  z-index: 2;
}

.vn-1 { top: 8%; left: 30%; animation: float-y 5s ease-in-out infinite; }
.vn-2 { top: 32%; right: 4%; animation: float-y 6s ease-in-out infinite reverse; }
.vn-3 { bottom: 18%; right: 14%; color: var(--amber); animation: float-y 5.5s ease-in-out infinite; }
.vn-4 { bottom: 8%; left: 18%; color: var(--magenta); animation: float-y 6.5s ease-in-out infinite reverse; }

.viz-pulse {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  z-index: 3;
}

.vp-1 {
  top: -5px;
  left: 50%;
  background: var(--green);
  box-shadow: 0 0 16px var(--green);
}

.vp-2 {
  top: 50%;
  right: -5px;
  margin-top: -5px;
  background: var(--cyan);
  box-shadow: 0 0 16px var(--cyan);
}

/* ═══════════════ GRAPH ANALYTICS (flagship) ═══════════════ */

.graph-section {
  padding: clamp(80px, 12vw, 140px) clamp(16px, 5vw, 64px);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 55% 50% at 75% 45%, rgba(77, 232, 212, 0.06), transparent 70%),
    transparent;
}

.graph-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.graph-copy h2 { text-align: left; margin: 0; }
.graph-copy > p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  margin-top: 20px;
  max-width: 520px;
}

.ver-badge {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(168, 255, 83, 0.12);
  border: 1px solid rgba(168, 255, 83, 0.35);
  color: var(--green);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.graph-points {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 16px;
}
.graph-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(232, 237, 242, 0.88);
}
.graph-points strong { color: var(--ink); }
.graph-points code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--cyan);
  background: rgba(77, 232, 212, 0.08);
  border: 1px solid rgba(77, 232, 212, 0.2);
  border-radius: 4px;
  padding: 1px 5px;
}
.gp-marker {
  flex-shrink: 0;
  width: 8px; height: 8px; margin-top: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(77, 232, 212, 0.5);
}

/* animated expanding entity graph */
.graph-viz {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 50%, rgba(168, 255, 83, 0.05), transparent 60%),
    rgba(8, 11, 14, 0.85);
  box-shadow: 0 0 0 1px rgba(77, 232, 212, 0.05), 0 30px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.gv-readout {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 3;
  display: flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px;
  padding: 5px 9px; border-radius: 6px;
  background: rgba(6, 8, 10, 0.85);
  border: 1px solid var(--line);
}
.gv-stat { color: var(--muted); }
.gv-eq { color: var(--muted); }
.gv-val { color: var(--green); font-weight: 800; animation: gv-val 6.5s ease-in-out infinite; }
@keyframes gv-val { 0%, 30% { opacity: 0; } 38%, 86% { opacity: 1; text-shadow: 0 0 8px rgba(168, 255, 83, 0.6); } 94%, 100% { opacity: 0; } }

.gv-cap {
  position: absolute;
  bottom: 12px; left: 0; right: 0;
  text-align: center;
  font-family: var(--mono); font-size: 10px;
  color: var(--muted);
}

.gv-edges { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.ge { stroke: rgba(77, 232, 212, 0.45); stroke-width: 0.5; fill: none; stroke-dasharray: 120; }
.ge-h1 { animation: ge-draw-1 6.5s ease-in-out infinite; }
.ge-h2 { stroke: rgba(168, 255, 83, 0.4); animation: ge-draw-2 6.5s ease-in-out infinite; }
@keyframes ge-draw-1 { 0%, 6% { stroke-dashoffset: 120; } 16%, 86% { stroke-dashoffset: 0; } 96%, 100% { stroke-dashoffset: 120; } }
@keyframes ge-draw-2 { 0%, 24% { stroke-dashoffset: 120; } 32%, 86% { stroke-dashoffset: 0; } 96%, 100% { stroke-dashoffset: 120; } }

.gn {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -50%);
  padding: 4px 9px;
  border-radius: 6px;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  background: rgba(6, 8, 10, 0.92);
  border: 1px solid var(--line-strong);
  white-space: nowrap;
}
.gn-user {
  color: #0a0f08; font-weight: 800;
  background: var(--green); border-color: var(--green);
  box-shadow: 0 0 18px rgba(168, 255, 83, 0.4);
  animation: gn-user-pulse 6.5s ease-in-out infinite;
}
@keyframes gn-user-pulse { 0%, 100% { box-shadow: 0 0 14px rgba(168, 255, 83, 0.3); } 50% { box-shadow: 0 0 24px rgba(168, 255, 83, 0.55); } }
.gn-card     { color: var(--cyan);    border-color: rgba(77, 232, 212, 0.4); }
.gn-device   { color: var(--amber);   border-color: rgba(255, 184, 48, 0.4); }
.gn-merchant { color: var(--magenta); border-color: rgba(214, 92, 255, 0.4); }
.gn-account  { color: var(--cyan);    border-color: rgba(77, 232, 212, 0.4); }
.gn-h1 { animation: gn-pop-1 6.5s ease-in-out infinite; }
.gn-h2 { color: var(--green); border-color: rgba(168, 255, 83, 0.35); font-size: 10px; padding: 3px 7px; animation: gn-pop-2 6.5s ease-in-out infinite; }
@keyframes gn-pop-1 {
  0%, 7% { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
  15%, 86% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  95%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
}
@keyframes gn-pop-2 {
  0%, 25% { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
  33%, 86% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  95%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
}

.graph-visual, .graph-copy {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.graph-copy { transition-delay: 0.1s; }
.graph-visual.visible, .graph-copy.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1024px) {
  .graph-inner { grid-template-columns: 1fr; }
  .graph-visual { order: 2; }
}

/* ═══════════════ NO LOCK-IN ═══════════════ */

.lockin-section {
  padding: clamp(80px, 12vw, 140px) clamp(16px, 5vw, 64px);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 50% 40% at 70% 50%, rgba(168, 255, 83, 0.04), transparent),
    transparent;
}

.lockin-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.lockin-copy h2 {
  text-align: left;
  margin: 0;
}

.lockin-copy > p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  margin-top: 20px;
  max-width: 500px;
}

.lockin-points {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 14px;
}

.lockin-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(232, 237, 242, 0.88);
}

.lp-marker {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(168, 255, 83, 0.4);
}

.lockin-points strong {
  color: var(--ink);
}

/* lock-in diagram */
.lockin-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.lockin-lane {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(10, 14, 18, 0.9);
  overflow: hidden;
}

.lane-label {
  padding: 12px 18px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}

.lane-cloud .lane-label {
  color: var(--cyan);
  background: rgba(77, 232, 212, 0.04);
}

.lane-self .lane-label {
  color: var(--green);
  background: rgba(168, 255, 83, 0.04);
}

.lane-items {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.lane-block {
  padding: 16px 14px;
  background: rgba(10, 14, 18, 0.95);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lane-block strong {
  font-size: 14px;
  font-weight: 750;
}

.lane-block span {
  font-size: 12px;
  color: var(--muted);
}

.lb-mono {
  font-family: var(--mono);
}

.lb-active {
  border-right: 1px solid var(--line);
}

.lb-icon {
  width: 24px;
  height: 24px;
  color: var(--cyan);
  margin-bottom: 4px;
}

.lb-icon svg {
  width: 100%;
  height: 100%;
}

.lb-self .lb-icon {
  color: var(--green);
}

.lockin-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
}

.lockin-arrow svg {
  width: 32px;
  height: 52px;
}

.arrow-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  text-align: center;
  line-height: 1.4;
  margin-top: 2px;
}

/* scroll reveal for lockin */
.lockin-visual,
.lockin-copy {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.lockin-copy {
  transition-delay: 0.1s;
}

.lockin-visual.visible,
.lockin-copy.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .lockin-inner {
    grid-template-columns: 1fr;
  }

  .lockin-visual {
    order: 2;
  }
}

@media (max-width: 480px) {
  .lane-items {
    grid-template-columns: 1fr 1fr;
  }
}

/* ═══════════════ INTEGRATE ═══════════════ */

.integrate-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  padding: clamp(80px, 12vw, 140px) clamp(16px, 5vw, 64px);
}

.integrate-copy h2 {
  text-align: left;
  margin: 0;
}

.integrate-copy > p {
  color: var(--muted);
  font-size: 17px;
  margin-top: 20px;
  max-width: 480px;
  line-height: 1.55;
}

.integrate-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
}

.stat strong {
  display: block;
  font-size: 24px;
  font-weight: 850;
  color: var(--cyan);
}

.stat span {
  font-size: 13px;
  color: var(--muted);
}

.integrate-code {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(10, 14, 18, 0.9);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.code-chrome {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}

.code-lang {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

.integrate-code pre {
  margin: 0;
  padding: 20px 24px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink);
}

.c-kw { color: var(--magenta); }
.c-str { color: var(--green); }
.c-num { color: var(--amber); }
.c-comment { color: var(--muted); font-style: italic; }

/* ═══════════════ CLOSING CTA ═══════════════ */

.cta-section {
  padding: clamp(80px, 12vw, 140px) clamp(16px, 5vw, 64px);
  display: flex;
  justify-content: center;
}

.cta-panel {
  position: relative;
  width: 100%;
  max-width: 880px;
  text-align: center;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(168, 255, 83, 0.08), transparent 70%),
    rgba(10, 14, 18, 0.85);
  box-shadow: 0 0 0 1px rgba(77, 232, 212, 0.06), 0 32px 90px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.cta-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
}

.cta-panel h2 {
  margin: 0 auto;
}

.cta-sub {
  max-width: 480px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* ═══════════════ FOOTER ═══════════════ */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px clamp(16px, 5vw, 64px);
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 15px;
}

.footer-tagline {
  color: var(--muted);
  font-size: 14px;
  margin-right: auto;
}

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

.footer-links a {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  transition: color 0.2s;
}

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

/* ═══════════════ ANIMATIONS ═══════════════ */

@keyframes pulse-glow {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px var(--cyan); }
  50% { opacity: 0.4; box-shadow: 0 0 4px var(--cyan); }
}

@keyframes cursor-blink {
  50% { opacity: 0; }
}

@keyframes stream-float-r {
  0% { transform: translateX(0) translateY(0); opacity: 0; }
  20% { opacity: 0.8; }
  80% { opacity: 0.8; }
  100% { transform: translateX(80px) translateY(-20px); opacity: 0; }
}

@keyframes stream-float-l {
  0% { transform: translateX(0) translateY(0); opacity: 0; }
  20% { opacity: 0.8; }
  80% { opacity: 0.8; }
  100% { transform: translateX(-80px) translateY(15px); opacity: 0; }
}

@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes float-y {
  50% { transform: translateY(-10px); }
}


/* ═══════════════ SCROLL REVEAL ═══════════════ */

.pipe-step,
.cap-card,
.integrate-copy,
.integrate-code {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.pipe-step.visible,
.cap-card.visible,
.integrate-copy.visible,
.integrate-code.visible {
  opacity: 1;
  transform: translateY(0);
}

.pipe-step:nth-child(3) { transition-delay: 0.08s; }
.pipe-step:nth-child(5) { transition-delay: 0.16s; }
.pipe-step:nth-child(7) { transition-delay: 0.24s; }

.cap-card:nth-child(2) { transition-delay: 0.06s; }
.cap-card:nth-child(3) { transition-delay: 0.12s; }
.cap-card:nth-child(4) { transition-delay: 0.18s; }
.cap-card:nth-child(5) { transition-delay: 0.24s; }
.cap-card:nth-child(6) { transition-delay: 0.3s; }

/* ═══════════════ RESPONSIVE ═══════════════ */

@media (max-width: 1024px) {
  .cap-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cap-featured {
    grid-template-columns: 1fr;
  }

  .integrate-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hdr nav { display: none; }

  .pipeline {
    flex-direction: column;
    align-items: center;
  }

  .pipe-connector {
    width: 1px;
    height: 32px;
    padding: 0;
  }

  .pipe-connector span {
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, rgba(77, 232, 212, 0.5), rgba(77, 232, 212, 0.1));
  }

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

  h1 {
    font-size: clamp(40px, 10vw, 64px);
  }

  .integrate-stats {
    flex-direction: column;
    gap: 20px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-tagline {
    margin-right: 0;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 120px 16px 60px;
  }

  .term-body {
    padding: 16px;
    font-size: 11px;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
    text-align: center;
  }
}

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

/* ═══════════════ BLOG ═══════════════ */

.blog-body {
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(77, 232, 212, 0.07), transparent),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(168, 255, 83, 0.04), transparent),
    var(--bg);
}

.blog-main {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--cyan); }

/* ── blog index ── */

.blog-index-head { margin-bottom: 40px; }

.blog-index-head h1 {
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.05;
  margin-top: 8px;
}

.blog-index-sub {
  margin-top: 14px;
  color: var(--muted);
  font-size: 18px;
  max-width: 60ch;
}

.post-list {
  list-style: none;
  display: grid;
  gap: 16px;
}

.post-card a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.post-card a:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

.post-card time {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cyan);
}

.post-card h2 {
  margin-top: 8px;
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
}

.post-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

.post-card .read-more {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
}

/* ── single post ── */

.post-head { margin-bottom: 32px; }

.post-head h1 {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.1;
  margin-top: 10px;
}

.post-meta {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}

.post-body {
  font-size: 17px;
  line-height: 1.75;
  color: #cdd6df;
}

.post-body > * + * { margin-top: 20px; }

.post-body h2 {
  margin-top: 44px;
  font-size: 27px;
  line-height: 1.2;
  color: var(--ink);
}

.post-body h3 {
  margin-top: 32px;
  font-size: 21px;
  color: var(--ink);
}

.post-body a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-body a:hover { color: var(--green); }

.post-body ul,
.post-body ol {
  padding-left: 24px;
  display: grid;
  gap: 8px;
}

.post-body li { padding-left: 4px; }

.post-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 28px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.post-body code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
}

.post-body pre {
  overflow-x: auto;
  margin: 24px 0;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
}

.post-body pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 13.5px;
  line-height: 1.6;
}

.post-body blockquote {
  border-left: 3px solid var(--cyan);
  padding-left: 18px;
  color: var(--muted);
  font-style: italic;
}

.post-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.post-body th,
.post-body td {
  border: 1px solid var(--line);
  padding: 8px 12px;
  text-align: left;
}

.post-body th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
}

.post-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
