/* ============================================================
   Orob Landing — Light theme, network graph aesthetic
   ============================================================ */

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

:root {
  --bg: #f6f8fc;
  --bg-card: rgba(255, 255, 255, 0.76);
  --border: rgba(20, 40, 90, 0.08);
  --border-hover: rgba(20, 40, 90, 0.18);
  --t1: #0a1028;
  --t2: #3a4563;
  --t3: #5b6886;
  --t4: #8b96ae;
  --ac: #3b6fc7;
  --ac2: #5a86d8;
  --ac-rgb: 59, 111, 199;
  --ac-glow: rgba(59, 111, 199, 0.18);
  --ac-glow-strong: rgba(59, 111, 199, 0.32);
  --purple: #2a4a90;
  --blue: #3b6fc7;
  --cyan: #1d8ad6;
  --amber: #c88a2e;
  --rose: #d94262;
  --pink: #0e7490;
  --ff: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --fm: 'JetBrains Mono', 'Fira Code', monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body {
  background: var(--bg); color: var(--t2); font-family: var(--ff);
  line-height: 1.6; overflow-x: hidden; min-height: 100vh;
}
::selection { background: rgba(var(--ac-rgb), 0.15); color: var(--t1); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Page background — light with subtle network-graph grid ── */
.page-bg {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 18% 0%,  rgba(59, 111, 199, 0.10), transparent 62%),
    radial-gradient(ellipse 70% 55% at 85% 18%, rgba(30, 58, 138, 0.08), transparent 62%),
    radial-gradient(ellipse 90% 70% at 50% 100%, rgba(21, 155, 208, 0.07), transparent 65%),
    linear-gradient(180deg, #f8faff 0%, #f2f5fc 45%, #eef2fa 100%);
}
.page-bg::after {
  content: '';
  position: absolute; inset: 0;
  /* Faint network-graph grid — intersections look like node sites */
  background-image:
    linear-gradient(rgba(30, 50, 100, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 50, 100, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.85;
  mask-image: radial-gradient(ellipse 100% 90% at 50% 50%, black 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 100% 90% at 50% 50%, black 30%, transparent 90%);
}

/* ── Navbar ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 32px; height: 64px;
  display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 16px rgba(20, 40, 90, 0.06);
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-logo {
  width: 32px; height: 32px; border-radius: 10px;
  background: url('../img/logo.png') center/contain no-repeat;
}
.nav-name {
  font-size: 20px; font-weight: 700; color: var(--t1);
  letter-spacing: -0.03em;
}
.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 8px;
}
.nav-link {
  padding: 8px 14px; border-radius: 8px;
  font: 500 14px var(--ff); color: var(--t3);
  transition: all 0.2s ease;
}
.nav-link:hover { color: var(--t1); background: rgba(30, 50, 100, 0.05); }
/* Account cluster — visually separate from product nav */
.nav-auth {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding-left: 16px;
  border-left: 1px solid var(--border);
}
.nav-auth-link {
  padding: 8px 12px; border-radius: 8px;
  font: 500 14px var(--ff); color: var(--t3);
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.nav-auth-link:hover {
  color: var(--t1);
  background: rgba(30, 50, 100, 0.05);
}
.nav-cta {
  padding: 9px 18px; border-radius: 10px;
  font: 600 14px var(--ff); color: #fff;
  background: var(--ac);
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--ac2);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--ac-glow);
}
.nav-cta-signup {
  padding: 8px 16px;
  font-size: 13px;
}
.nav-cta-primary {
  background: #0f172a;
  color: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
}
.nav-cta-primary:hover {
  background: #1e293b;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.28);
}

/* ── Hero ── */
.hero {
  position: relative; z-index: 10;
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: flex-start; justify-content: center;
  padding: 120px 64px 32px;
  max-width: 1320px; margin: 0 auto;
}
.hero-wall {
  display: flex; flex-direction: column; align-items: flex-start;
  text-align: left; width: 100%; max-width: 1100px;
}

/* ── Split hero: text left, live demo right ── */
.hero.hero-split {
  flex-direction: row;
  align-items: center;
  gap: 56px;
}
.hero-split .hero-left {
  flex: 1 1 0;
  min-width: 0;
  max-width: 620px;
}
.hero-split .hero-left .hero-title { font-size: clamp(34px, 4vw, 62px); }
.hero-split .hero-left .hero-sub   { max-width: 640px; }
.hero-right {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  animation: fadeUp 0.9s var(--ease) 0.2s both;
}
.hero-right .live-demo {
  max-width: 560px;
  width: 100%;
  margin: 0;
}
.hero-right .live-body {
  padding: 30px 30px 26px;
  min-height: 440px;
}
.hero-right .live-code { font-size: clamp(14px, 1.15vw, 17px); }
.hero-right .live-trace { min-height: 150px; font-size: 12.5px; }
@media (max-width: 1040px) {
  .hero.hero-split { flex-direction: column; align-items: flex-start; gap: 48px; }
  .hero-split .hero-left, .hero-right { max-width: 100%; width: 100%; }
  .hero-right { justify-content: flex-start; }
  .hero-right .live-demo { max-width: 720px; }
}

/* Eyebrow — mono tag, research-paper vibe */
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 12px; border-radius: 3px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(20, 40, 90, 0.1);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font: 500 11px var(--fm);
  color: #556080;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 40px;
  animation: fadeUp 0.8s var(--ease) both;
}
.hero-eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #16a34a;
  box-shadow:
    0 0 0 3px rgba(22, 163, 74, 0.12),
    0 0 8px rgba(22, 163, 74, 0.5);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
.hero-eyebrow-text { opacity: 0.92; }
@keyframes pulse-dot {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.8); }
}

/* Title — grand, declarative, left-aligned */
.hero-title {
  font-size: clamp(38px, 5.4vw, 78px);
  font-weight: 500;
  color: #0a1028;
  letter-spacing: -0.045em;
  line-height: 1.02;
  max-width: 1100px;
  margin: 0 0 28px;
  text-align: left;
  animation: fadeUp 0.9s var(--ease) 0.08s both;
}
.hero-title .gradient-text {
  background: linear-gradient(135deg,
    #6ea8fe 0%,
    #3b82f6 50%,
    #a78bfa 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 500;
}
.hero-sub {
  font-size: clamp(15px, 1.35vw, 17px);
  color: #4a5678;
  max-width: 680px;
  line-height: 1.65;
  margin: 0 0 28px;
  font-weight: 400;
  letter-spacing: 0.002em;
  text-align: left;
  animation: fadeUp 0.8s var(--ease) 0.16s both;
}
.hero-sub strong {
  color: #1e2844; font-weight: 600;
}

/* Meta spec-bar — telemetry-style KPIs, below subtitle */
.hero-meta {
  display: inline-flex; align-items: center; justify-content: flex-start;
  gap: 18px; margin: 0 0 28px;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(20, 40, 90, 0.08);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -18px rgba(20, 40, 90, 0.25);
  animation: fadeUp 0.8s var(--ease) 0.24s both;
}
.hero-meta-item {
  display: inline-flex; align-items: baseline; gap: 8px;
  font: 500 12px var(--fm);
  color: #6a7690;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero-meta-k { color: #8995ad; }
.hero-meta-v {
  color: #0a1028;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
}
.hero-meta-sep {
  width: 1px; height: 16px;
  background: linear-gradient(to bottom, transparent, rgba(20, 40, 90, 0.18), transparent);
}

.hero-actions {
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: flex-start;
  animation: fadeUp 0.8s var(--ease) 0.32s both;
}

.hero-whitepaper-link {
  display: block;
  margin-top: 24px;
  font: 400 13px var(--ff);
  color: #111;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-primary {
  padding: 14px 30px; border-radius: 12px;
  font: 600 15px var(--ff); color: #ffffff;
  background: linear-gradient(180deg, #1a2c58 0%, #0a1028 100%);
  border: 1px solid rgba(10, 16, 40, 0.9);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.18),
    0 12px 30px -12px rgba(10, 16, 40, 0.55),
    0 2px 6px rgba(20, 40, 90, 0.2);
  letter-spacing: 0.005em;
  transition: all 0.3s var(--ease);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #243873 0%, #101a3a 100%);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.22),
    0 18px 40px -14px rgba(10, 16, 40, 0.6),
    0 2px 8px rgba(20, 40, 90, 0.25);
}
.btn-secondary {
  padding: 14px 30px; border-radius: 12px;
  font: 500 15px var(--ff); color: #1a2344;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(20, 40, 90, 0.15);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.9),
    0 8px 24px -14px rgba(20, 40, 90, 0.22);
  letter-spacing: 0.005em;
  transition: all 0.3s var(--ease);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(20, 40, 90, 0.3);
  color: #0a1028;
  transform: translateY(-2px);
}

/* (routing canvas removed — replaced by portal) */

/* ── Stats Bar ── */
.stats-bar {
  position: relative; z-index: 10;
  display: flex; justify-content: center; gap: 2px;
  max-width: 1200px; margin: 0 auto;
  padding: 0 32px 120px;
}
.stat-card {
  flex: 1; max-width: 230px; padding: 34px 28px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.3s var(--ease);
}
.stat-card:first-child { border-radius: 16px 0 0 16px; }
.stat-card:last-child { border-radius: 0 16px 16px 0; }
.stat-card:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--border-hover);
  box-shadow: 0 12px 40px -18px rgba(59, 111, 199, 0.22);
}
.stat-number {
  font: 700 32px var(--fm); color: var(--t1);
  letter-spacing: -0.02em; line-height: 1; margin-bottom: 6px;
}
.stat-number .stat-accent { color: var(--ac); }
.stat-label {
  font: 500 13px var(--ff); color: var(--t4);
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* ── Section Layout ── */
.section {
  position: relative; z-index: 10;
  padding: 110px 32px;
}
.hero + .section { padding-top: 40px; }
/* Radiance glow between panels — replaces the old gray overlay.
   Each .section-bg gets a large soft color bloom that bleeds between panels. */
.section-bg {
  background: transparent;
  position: relative;
  z-index: 10;
}
.section-bg::before {
  content: '';
  position: absolute; inset: -80px 0;
  z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 65% 55% at 30% 30%, rgba(59, 111, 199, 0.10), transparent 68%),
    radial-gradient(ellipse 60% 55% at 75% 70%, rgba(29, 138, 214, 0.08), transparent 68%);
  filter: blur(28px);
}
/* Alternate panel accent: cooler, cyan-leaning for variety */
#ecosystem.section-bg::before,
.section-bg:nth-of-type(2n)::before {
  background:
    radial-gradient(ellipse 65% 55% at 25% 40%, rgba(14, 116, 144, 0.09), transparent 68%),
    radial-gradient(ellipse 70% 60% at 80% 60%, rgba(59, 111, 199, 0.08), transparent 68%);
}
.section-inner { max-width: 1160px; margin: 0 auto; }
.section-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 12px var(--fm); color: var(--ac);
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 24px;
}
.section-tag::before {
  content: ''; width: 28px; height: 1px; background: var(--ac);
}
.section-title {
  font-size: clamp(30px, 4.2vw, 48px); font-weight: 700;
  color: var(--t1); letter-spacing: -0.035em; line-height: 1.12;
  margin-bottom: 24px; max-width: 700px;
}
.section-desc {
  font-size: 17px; color: var(--t3); max-width: 620px; line-height: 1.72;
  margin-bottom: 80px;
}

/* ── Feature Grid ── */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.feature-card {
  padding: 42px 36px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid var(--border);
  transition: all 0.35s var(--ease);
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--ac), transparent);
  opacity: 0; transition: opacity 0.3s ease;
}
.feature-card:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--border-hover);
  box-shadow: 0 20px 60px -24px rgba(59, 111, 199, 0.22);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 48px; height: 48px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 26px;
}
.feature-icon.warm   { background: rgba(59, 111, 199, 0.10); color: var(--ac); }
.feature-icon.purple { background: rgba(30, 58, 138, 0.10); color: #1e3a8a; }
.feature-icon.blue   { background: rgba(29, 138, 214, 0.10); color: #1d8ad6; }
.feature-icon.amber  { background: rgba(14, 116, 144, 0.10); color: #0e7490; }
.feature-icon.rose   { background: rgba(15, 32, 80, 0.10); color: #0f2050; }
.feature-icon svg {
  width: 22px; height: 22px; stroke: currentColor; fill: none;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.feature-title {
  font: 600 19px var(--ff); color: var(--t1);
  margin-bottom: 14px; letter-spacing: -0.01em;
}
.feature-desc { font-size: 14.5px; color: var(--t3); line-height: 1.7; }

/* ── How It Works — Icon flow: prompt → classify → route → sandbox → result ── */
.flow {
  max-width: 1060px;
  margin: 64px auto 0;
  padding: 64px 24px 48px;
  position: relative;
}

/* Framed variant — soft card that contains the whole protocol diagram */
.flow.flow-framed {
  padding: 96px 48px 72px;
  border-radius: 24px;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(90, 166, 255, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0%, rgba(246, 249, 255, 0.75) 100%);
  border: 1px solid rgba(20, 40, 90, 0.08);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.9),
    0 30px 70px -40px rgba(20, 40, 90, 0.22);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
}
/* Faint grid texture behind the track — looks like a technical schematic */
.flow.flow-framed::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background-image:
    linear-gradient(to right, rgba(59, 111, 199, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(59, 111, 199, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 40%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}
.flow.flow-framed .flow-track { position: relative; z-index: 1; }

.flow-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  align-items: start;
}

/* Step number badge floating above each node */
.flow-step {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  font: 700 10px var(--fm);
  letter-spacing: 0.16em;
  color: #8995ad;
  padding: 3px 9px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(20, 40, 90, 0.1);
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 6px 16px -10px rgba(20, 40, 90, 0.25);
}
.flow-node-sandbox .flow-step {
  color: #0f766e;
  border-color: rgba(59, 212, 127, 0.35);
  background: linear-gradient(180deg, #ffffff 0%, #f0faf5 100%);
}

/* Connecting line running horizontally through the centers of the nodes */
.flow-line {
  position: absolute;
  top: 34px; /* ~= half the node icon height */
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(to right,
    rgba(59, 111, 199, 0.0) 0%,
    rgba(59, 111, 199, 0.45) 8%,
    rgba(90, 166, 255, 0.55) 50%,
    rgba(59, 212, 127, 0.5) 75%,
    rgba(59, 111, 199, 0.45) 92%,
    rgba(59, 111, 199, 0.0) 100%);
  border-radius: 2px;
  z-index: 0;
  pointer-events: none;
}
/* Tiny tick marks on the line to emphasize step boundaries */
.flow-line::before,
.flow-line::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  border: 1.5px solid rgba(59, 111, 199, 0.45);
  background: #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.flow-line::before { left: 0; }
.flow-line::after  { left: 100%; }

/* Animated glowing packet that travels along the line */
.flow-packet {
  position: absolute;
  top: 50%;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #5aa6ff;
  box-shadow:
    0 0 0 3px rgba(90, 166, 255, 0.18),
    0 0 18px 4px rgba(90, 166, 255, 0.55);
  transform: translate(-50%, -50%);
  animation: flow-travel 6s cubic-bezier(0.65, 0.05, 0.35, 1) infinite;
}
@keyframes flow-travel {
  0%   { left: 0%;   opacity: 0; }
  6%   { opacity: 1; }
  20%  { left: 25%; }
  40%  { left: 50%; }
  55%  { left: 75%; }  /* enters sandbox */
  70%  { left: 75%; }  /* dwells inside sandbox */
  88%  { left: 100%; opacity: 1; }
  94%  { opacity: 0; }
  100% { left: 100%; opacity: 0; }
}

/* Individual flow node (icon + label + sub) */
.flow-node {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 8px;
}
.flow-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid rgba(20, 40, 90, 0.12);
  color: var(--ac);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.95),
    0 12px 30px -16px rgba(59, 111, 199, 0.4),
    0 2px 6px rgba(20, 40, 90, 0.06);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.flow-icon svg {
  stroke: currentColor; fill: none;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.flow-label {
  margin-top: 18px;
  font: 600 15px var(--ff);
  color: var(--t1);
  letter-spacing: -0.01em;
}
.flow-sub {
  margin-top: 5px;
  font: 500 11px var(--fm);
  color: #6a7690;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Pulse each node in sequence — lines up with the packet arrival time */
.flow-node[data-step="1"] .flow-icon { animation: flow-pulse 6s ease-in-out infinite; animation-delay: 0.0s; }
.flow-node[data-step="2"] .flow-icon { animation: flow-pulse 6s ease-in-out infinite; animation-delay: 1.2s; }
.flow-node[data-step="3"] .flow-icon { animation: flow-pulse 6s ease-in-out infinite; animation-delay: 2.4s; }
.flow-node[data-step="4"] .flow-icon { animation: flow-pulse-sandbox 6s ease-in-out infinite; animation-delay: 3.3s; }
.flow-node[data-step="5"] .flow-icon { animation: flow-pulse 6s ease-in-out infinite; animation-delay: 5.1s; }

@keyframes flow-pulse {
  0%, 100% {
    transform: translateY(0) scale(1);
    border-color: var(--border);
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.95), 0 10px 28px -14px rgba(59, 111, 199, 0.35);
  }
  6% {
    transform: translateY(-3px) scale(1.05);
    border-color: #5aa6ff;
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.95), 0 16px 36px -14px rgba(90, 166, 255, 0.6), 0 0 0 4px rgba(90, 166, 255, 0.12);
  }
}
@keyframes flow-pulse-sandbox {
  0%, 100% {
    transform: translateY(0) scale(1);
    border-color: var(--border);
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.95), 0 10px 28px -14px rgba(59, 111, 199, 0.35);
  }
  10%, 26% {
    transform: translateY(-3px) scale(1.06);
    border-color: #3bd47f;
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.95), 0 18px 40px -14px rgba(59, 212, 127, 0.55), 0 0 0 5px rgba(59, 212, 127, 0.14);
  }
}

/* Sandbox node — wrapped in a dashed "container" box to emphasize isolation */
.flow-node-sandbox {
  position: relative;
}
.flow-node-sandbox::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -28px;
  transform: translateX(-50%);
  width: 126px;
  height: 126px;
  border: 1.5px dashed rgba(59, 212, 127, 0.45);
  border-radius: 22px;
  z-index: 0;
  pointer-events: none;
  animation: flow-sandbox-glow 6s ease-in-out infinite;
  animation-delay: 3.3s;
}
@keyframes flow-sandbox-glow {
  0%, 100% {
    border-color: rgba(59, 212, 127, 0.28);
    box-shadow: 0 0 0 0 rgba(59, 212, 127, 0);
  }
  10%, 28% {
    border-color: rgba(59, 212, 127, 0.85);
    box-shadow: 0 0 0 4px rgba(59, 212, 127, 0.1), 0 0 32px 0 rgba(59, 212, 127, 0.22);
  }
}
.flow-sandbox-badge {
  position: absolute;
  top: -44px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: #0f172a;
  color: #8ee0a6;
  border-radius: 999px;
  font: 600 10px var(--fm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 2;
  box-shadow: 0 6px 20px -8px rgba(15, 23, 42, 0.4);
}
.flow-sandbox-badge svg { stroke: currentColor; fill: none; stroke-width: 2; }

/* Give the sandbox icon a slightly richer default so it already reads as "the important one" */
.flow-node-sandbox .flow-icon {
  color: #0f766e;
  background: linear-gradient(180deg, #ffffff 0%, #f3fbf7 100%);
  border-color: rgba(59, 212, 127, 0.35);
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .flow-packet,
  .flow-node .flow-icon,
  .flow-node-sandbox::before { animation: none !important; }
  .flow-packet { display: none; }
}

/* ══════════════════════════════════════════════════════════════
   The Flywheel — unified integration orbit
   Hub (Orob) at the center, 2 concentric rings of peer icons.
   Ring rotation is animated via an @property <angle> custom var
   so children can inherit it and counter-rotate to stay upright.
   ══════════════════════════════════════════════════════════════ */

/* Register --fw-spin as an interpolable angle so keyframes animate it */
@property --fw-spin {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: true;
}

.flywheel {
  position: relative;
  width: 640px;
  height: 640px;
  max-width: 100%;
  margin: 56px auto 0;
  --r-inner: 150px;
  --r-outer: 260px;
  --icon-size: 58px;
}

/* ── Flywheel split: wheel left, copy right ── */
.fw-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}
.fw-split .flywheel {
  margin: 0;
  justify-self: start;
  width: 560px;
  height: 560px;
  --r-inner: 130px;
  --r-outer: 228px;
  --icon-size: 52px;
}
.fw-split .fw-copy {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.fw-split .fw-copy .section-tag { margin-bottom: 20px; }
.fw-split .fw-copy .section-tag::before { display: none; }
.fw-split .fw-copy .section-tag::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--ac);
  margin-left: 10px;
}
.fw-split .fw-copy .section-title {
  margin-bottom: 22px;
  max-width: 100%;
}
.fw-split .fw-copy .section-desc {
  margin-bottom: 36px;
  max-width: 100%;
}
.fw-split .fw-copy .fw-legend {
  margin-top: 0;
  justify-content: flex-end;
  gap: 12px 22px;
}
@media (max-width: 1040px) {
  .fw-split {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .fw-split .flywheel {
    width: 520px;
    height: 520px;
    justify-self: center;
  }
  .fw-split .fw-copy {
    text-align: left;
    align-items: flex-start;
  }
  .fw-split .fw-copy .fw-legend { justify-content: flex-start; }
  .fw-split .fw-copy .section-tag::after { display: none; }
  .fw-split .fw-copy .section-tag::before {
    display: inline-block;
    content: '';
    width: 28px;
    height: 1px;
    background: var(--ac);
  }
}

/* Static background grid rings */
.fw-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.fw-grid-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  border: 1px dashed rgba(59, 111, 199, 0.16);
  transform: translate(-50%, -50%);
}
.fw-grid-ring-1 { width: 140px;  height: 140px; border-style: solid; border-color: rgba(59, 111, 199, 0.12); }
.fw-grid-ring-2 { width: 300px;  height: 300px; }
.fw-grid-ring-3 { width: 520px;  height: 520px; }

/* Subtle radial glow behind the wheel */
.flywheel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(90, 166, 255, 0.14) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(59, 111, 199, 0.06) 0%, transparent 65%);
  pointer-events: none;
  border-radius: 50%;
}

/* ── Central hub ── */
.fw-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 104px;
  height: 104px;
  transform: translate(-50%, -50%);
  z-index: 5;
}
.fw-hub-core {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff 0%, #f2f5fc 100%);
  border: 1px solid rgba(59, 111, 199, 0.28);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 1),
    0 20px 50px -16px rgba(59, 111, 199, 0.55),
    0 0 0 6px rgba(255, 255, 255, 0.6);
  display: grid;
  place-items: center;
  z-index: 2;
}
.fw-hub-core img {
  width: 60%;
  height: 60%;
  object-fit: contain;
  display: block;
}
.fw-hub-label {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  font: 700 13px var(--ff);
  color: var(--t1);
  letter-spacing: 0.02em;
  text-align: center;
  white-space: nowrap;
}
.fw-hub-label span {
  display: block;
  font: 500 10px var(--fm);
  color: var(--t4);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 2px;
}
.fw-hub-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(90, 166, 255, 0.55);
  animation: fw-hub-pulse 3.6s ease-out infinite;
  pointer-events: none;
}
.fw-hub-pulse-2 { animation-delay: 1.8s; }
@keyframes fw-hub-pulse {
  0%   { transform: scale(0.85); opacity: 0.9; }
  70%  { transform: scale(2.2);  opacity: 0;   }
  100% { transform: scale(2.2);  opacity: 0;   }
}

/* ── Orbit rings ── */
.fw-ring {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.fw-ring-inner {
  animation: fw-orbit 110s linear infinite;
}
.fw-ring-outer {
  animation: fw-orbit-rev 170s linear infinite;
}
@keyframes fw-orbit {
  from { --fw-spin: 0deg; }
  to   { --fw-spin: 360deg; }
}
@keyframes fw-orbit-rev {
  from { --fw-spin: 0deg; }
  to   { --fw-spin: -360deg; }
}
.fw-ring { transform: rotate(var(--fw-spin)); }

/* Individual nodes — positioned via polar (angle, radius) math */
.fw-node {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  pointer-events: auto;
}
.fw-ring-inner .fw-node {
  /* step = 45deg; radius = --r-inner */
  transform: rotate(calc(var(--i) * 45deg)) translateY(calc(-1 * var(--r-inner)));
}
.fw-ring-outer .fw-node {
  /* step = 30deg; radius = --r-outer; offset by 15deg so outer interleaves inner */
  transform: rotate(calc(var(--i) * 30deg + 15deg)) translateY(calc(-1 * var(--r-outer)));
}

/* Counter-rotate each node's content so icons/labels stay upright. Counter
   = -(ring rotation + node's static position angle). Each node's --i and
   the ring's --fw-spin combine here. */
.fw-counter {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: center center;
}
.fw-ring-inner .fw-counter {
  transform:
    translate(-50%, -50%)
    rotate(calc(-1 * var(--fw-spin) - var(--i) * 45deg));
}
.fw-ring-outer .fw-counter {
  transform:
    translate(-50%, -50%)
    rotate(calc(-1 * var(--fw-spin) - var(--i) * 30deg - 15deg));
}

/* Icon badge + label column */
.fw-counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 88px;
}
.fw-icon {
  width: var(--icon-size);
  height: var(--icon-size);
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 10px 28px -12px rgba(20, 40, 90, 0.35),
    0 0 0 1px rgba(20, 40, 90, 0.06),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.9);
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.fw-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.fw-ring-outer .fw-icon { width: 54px; height: 54px; }

.fw-label {
  font: 600 11px var(--fm);
  color: var(--t2);
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0.85;
  text-align: center;
}

/* Hover lift — works because .fw-node has pointer-events: auto */
.fw-node:hover .fw-icon {
  transform: scale(1.12);
  box-shadow:
    0 16px 36px -12px rgba(59, 111, 199, 0.5),
    0 0 0 2px rgba(90, 166, 255, 0.4),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.9);
}
.fw-node:hover .fw-label {
  opacity: 1;
  color: var(--t1);
}

/* ── Legend under the wheel ── */
.fw-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 24px;
  margin-top: 40px;
  font: 500 12.5px var(--fm);
  color: var(--t3);
}
.fw-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.fw-legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ac);
  box-shadow: 0 0 0 2px rgba(59, 111, 199, 0.15);
}
.fw-legend-dot-models { background: #10a37f; box-shadow: 0 0 0 2px rgba(16, 163, 127, 0.18); }
.fw-legend-dot-apps   { background: #4285f4; box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.18); }
.fw-legend-dot-infra  { background: #2496ed; box-shadow: 0 0 0 2px rgba(36, 150, 237, 0.18); }
.fw-legend-dot-tools  { background: #7c3aed; box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.18); }

/* Reduced motion — stop the orbit */
@media (prefers-reduced-motion: reduce) {
  .fw-ring-inner,
  .fw-ring-outer,
  .fw-hub-pulse { animation: none !important; }
  .fw-hub-pulse { display: none; }
}

/* ── Code Demo ── */
.demo-block {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(20, 40, 90, 0.22);
  margin-top: 72px;
}
.demo-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 20px;
  background: rgba(240, 244, 252, 0.9);
  border-bottom: 1px solid var(--border);
}
.demo-dot { width: 10px; height: 10px; border-radius: 50%; }
.demo-dot.red { background: #e74c67; }
.demo-dot.yellow { background: #e8a54c; }
.demo-dot.green { background: #4ac76a; }
.demo-bar-title { font: 500 12px var(--fm); color: var(--t4); margin-left: 12px; }
.demo-body {
  padding: 24px 28px; font: 400 13.5px/1.75 var(--fm); color: #2a3352;
  overflow-x: auto;
}
.demo-body .kw { color: #1e3a8a; font-weight: 500; }
.demo-body .fn { color: #1d6fc7; }
.demo-body .str { color: #0e7490; }
.demo-body .cm { color: #8b96ae; font-style: italic; }
.demo-body .num { color: #c88a2e; }

/* ── Live Demo (yourcode.js) ── */
.live-demo { max-width: 1000px; margin-left: auto; margin-right: auto; }
.live-body {
  padding: 44px 48px 36px;
  min-height: 480px;
}
.live-code {
  font: 500 clamp(16px, 1.9vw, 22px)/1.5 var(--fm);
  color: #1a1f2e;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(20, 40, 90, 0.1);
}
.live-code .kw  { color: #1e3a8a; font-weight: 600; }
.live-code .fn  { color: #1d6fc7; font-weight: 600; }
.live-code .str { color: #0e7490; }
#live-typed { color: #0e7490; }
#live-typed::after {
  content: '▍';
  color: #00b88a;
  margin-left: 1px;
  animation: live-blink 0.9s step-end infinite;
}
@keyframes live-blink { 50% { opacity: 0; } }

.live-trace {
  margin-top: 24px;
  min-height: 180px;
  font: 500 13.5px/1.75 var(--fm);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.trace-line {
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.trace-line.visible { opacity: 1; transform: translateX(0); }
.trace-arrow { color: #8b96ae; font-variant-numeric: tabular-nums; min-width: 64px; }
.trace-hop   { color: #1e3a8a; font-weight: 600; }
.trace-sep   { color: #00b88a; font-weight: 700; }
.trace-model { color: #1d6fc7; }

.live-cost {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.cost-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
  font: 500 14px/1 var(--fm);
}
.cost-label { width: 72px; color: #5a6378; text-transform: lowercase; letter-spacing: 0.02em; }
.cost-bar   { flex: 1; height: 10px; background: #eef1f7; border-radius: 6px; overflow: hidden; }
.cost-fill  {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 6px;
  transition: width 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.orob-fill  { background: linear-gradient(90deg, #10b981, #00dfa8); box-shadow: 0 0 14px rgba(0, 223, 168, 0.35); }
.gpt-fill   { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.cost-val   {
  width: 100px;
  text-align: right;
  color: #1a1f2e;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.savings-row {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 10px;
  margin-top: 14px;
}
.savings-label {
  font: 500 12px/1 var(--fm);
  color: #5a6378;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.savings-val {
  font: 700 22px/1 var(--fm);
  color: #00b88a;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 680px) {
  .live-body { padding: 28px 22px 26px; min-height: 460px; }
  .live-code { font-size: 16px; white-space: normal; }
  .trace-line { font-size: 12.5px; white-space: normal; }
}

/* ── Comparison ── */
.comparison {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px;
}
.compare-card {
  padding: 36px 32px; border-radius: 16px;
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.compare-card.old { background: rgba(225,29,72,0.03); border-color: rgba(225,29,72,0.1); }
.compare-card.new { background: rgba(15,118,110,0.03); border-color: rgba(15,118,110,0.12); }
.compare-label {
  font: 600 11px var(--fm); text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 20px;
}
.compare-card.old .compare-label { color: var(--rose); }
.compare-card.new .compare-label { color: var(--ac); }
.compare-list {
  list-style: none; display: flex; flex-direction: column; gap: 14px;
}
.compare-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font: 400 14px var(--ff); color: var(--t3); line-height: 1.5;
}
.compare-list li::before {
  content: ''; flex-shrink: 0; width: 18px; height: 18px;
  border-radius: 50%; margin-top: 2px;
}
.compare-card.old .compare-list li::before {
  background: rgba(225,29,72,0.06);
  box-shadow: inset 0 0 0 1.5px var(--rose);
}
.compare-card.new .compare-list li::before {
  background: rgba(15,118,110,0.06);
  box-shadow: inset 0 0 0 1.5px var(--ac);
}

/* ── Provider Grid (with logos) ── */
.provider-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px; margin-top: 56px;
}
.provider-tile {
  padding: 20px 24px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px;
  transition: all 0.25s var(--ease);
}
.provider-tile:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 40px -18px rgba(59, 111, 199, 0.22);
  transform: translateY(-2px);
}
.provider-logo { flex-shrink: 0; }
.provider-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.provider-name { font: 600 15px var(--ff); color: var(--t1); }
.provider-models { font: 400 12px var(--fm); color: var(--t4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── File Type Grid — reuses provider-tile styling but lets the extension
   list wrap across multiple lines since the enumerations are long. ── */
.filetype-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.filetype-grid .provider-tile { align-items: flex-start; padding: 22px 24px; }
.filetype-grid .provider-logo { margin-top: 2px; }
.filetype-grid .provider-name { margin-bottom: 4px; }
.filetype-grid .provider-models {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.55;
  font-size: 12px;
}

/* ── App Cards (ecosystem) ── */
.app-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.app-card {
  padding: 32px 28px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}
.app-card:hover {
  background: rgba(255, 255, 255, 0.98);
  border-color: var(--border-hover);
  box-shadow: 0 24px 60px -22px rgba(59, 111, 199, 0.25);
  transform: translateY(-3px);
}
.app-header {
  display: flex; align-items: center; gap: 14px; margin-bottom: 16px;
}
.app-logo { flex-shrink: 0; }
.app-logo.gmail { width: 24px; height: 24px; }
.app-name { font: 600 16px var(--ff); color: var(--t1); flex: 1; }
.app-count {
  font: 500 11px var(--fm); color: var(--ac);
  background: rgba(91,127,181,0.06);
  padding: 3px 10px; border-radius: 100px;
  letter-spacing: 0.02em;
}
.app-desc { font: 400 13.5px var(--ff); color: var(--t3); line-height: 1.6; }

/* ── Footer ── */
.footer {
  position: relative; z-index: 10;
  padding: 56px 32px 40px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.footer-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-logo {
  width: 24px; height: 24px; border-radius: 7px;
  background: url('../img/logo.png') center/contain no-repeat;
}
.footer-name { font: 600 16px var(--ff); color: var(--t2); }
.footer-links { display: flex; gap: 24px; }
.footer-link { font: 400 14px var(--ff); color: var(--t4); transition: color 0.2s ease; }
.footer-link:hover { color: var(--t1); }
.footer-copy { font: 400 13px var(--ff); color: var(--t4); }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .comparison { grid-template-columns: 1fr; }
  .provider-grid { grid-template-columns: repeat(2, 1fr); }
  .flow { padding: 56px 16px 40px; }
  .flow.flow-framed { padding: 80px 24px 56px; }
  .flow-icon { width: 60px; height: 60px; border-radius: 16px; }
  .flow-line { top: 30px; }
  .flow-label { font-size: 14px; margin-top: 14px; }
  .flow-sub { font-size: 10.5px; }
  .flow-step { top: -22px; font-size: 9.5px; padding: 2px 8px; }
  .flow-node-sandbox::before { width: 112px; height: 112px; top: -26px; }
  /* Shrink the flywheel to fit narrower tablet widths */
  .flywheel {
    width: 540px;
    height: 540px;
    --r-inner: 124px;
    --r-outer: 218px;
    --icon-size: 54px;
  }
  .fw-grid-ring-2 { width: 248px; height: 248px; }
  .fw-grid-ring-3 { width: 440px; height: 440px; }
}
@media (max-width: 768px) {
  /* ── Prevent horizontal overflow ── */
  body { overflow-x: hidden; }

  /* ── Nav: single row, scrollable if needed ── */
  .nav { padding: 10px 16px; height: auto; min-height: 48px; }
  .nav-links {
    gap: 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-link { padding: 6px 8px; font-size: 12px; white-space: nowrap; }
  .nav-auth { margin-left: 4px; padding-left: 6px; gap: 2px; }
  .nav-auth-link { padding: 6px 8px; font-size: 12px; white-space: nowrap; }
  .nav-cta-signup { padding: 6px 10px; font-size: 11px; }

  /* ── Hero ── */
  .hero { padding: 80px 16px 48px; }
  .hero-title { font-size: clamp(26px, 7vw, 40px); margin-bottom: 16px; }
  .hero-sub { font-size: 14px; max-width: 100%; }
  .hero-meta { flex-wrap: wrap; gap: 6px; padding: 10px 12px; }
  .hero-meta-item { padding: 4px 8px; font-size: 10px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-secondary { width: 100%; max-width: 320px; text-align: center; margin: 0 auto; }
  .hero-right { display: none; }
  .hero-whitepaper-link { font-size: 12px; }

  /* ── Stats Bar ── */
  .stats-bar { flex-direction: column; align-items: stretch; padding: 0 16px 48px; gap: 0; }
  .stat-card { max-width: 100%; width: 100%; border-radius: 0; }
  .stat-card:first-child { border-radius: 16px 16px 0 0; }
  .stat-card:last-child { border-radius: 0 0 16px 16px; }

  /* ── Sections ── */
  .section { padding: 48px 16px; }
  .section-inner { padding: 0; }
  .section-tag { font-size: 11px; }
  .section-title { font-size: clamp(22px, 6vw, 30px); }
  .section-sub { font-size: 14px; }

  /* ── Grids ── */
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { border-radius: 12px !important; }
  .app-grid { grid-template-columns: 1fr; }
  .provider-grid { grid-template-columns: 1fr; }

  /* ── Flow ── */
  .flow { margin-top: 40px; padding: 48px 16px 24px; }
  .flow.flow-framed { padding: 56px 16px 32px; border-radius: 16px; }
  .flow.flow-framed::before { background-size: 32px 32px; }
  .flow-track { grid-template-columns: 1fr; row-gap: 48px; }
  .flow-line, .flow-packet { display: none; }
  .flow-node { padding: 0; }
  .flow-step { position: static; transform: none; display: inline-block; margin-bottom: 8px; }
  .flow-node-sandbox::before { width: 100px; height: 100px; top: -20px; }
  .flow-sandbox-badge { top: -36px; }

  /* ── Flywheel: hide the decorative orbit, show just the text ── */
  .fw-split { grid-template-columns: 1fr; gap: 24px; }
  .flywheel { display: none; }
  .fw-copy { text-align: center; align-items: center; }
  .fw-copy .section-tag::after { display: none; }
  .fw-legend { justify-content: center; flex-wrap: wrap; gap: 8px 16px; }

  /* ── Protocol ── */
  .protocol-inner { grid-template-columns: 1fr; gap: 40px; }

  /* ── Footer ── */
  .footer { padding: 40px 16px 32px; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .footer-links { justify-content: center; flex-wrap: wrap; gap: 12px; }
  .footer-link { font-size: 13px; }
  .footer-copy { font-size: 12px; }
}

/* ── Extra small phones (<480px) ── */
@media (max-width: 480px) {
  .nav-name { font-size: 16px; }
  .hero-title { font-size: 24px; }
  .stat-number { font-size: 24px; }
}
@media (max-width: 480px) {
  .stat-number { font-size: 24px; }
  .hero-title { font-size: 32px; }
  .hero-meta { gap: 10px; padding: 12px 16px; flex-wrap: wrap; }
}

/* ═══════════════════════════════════════════════════════════════
   Protocol — carousel (5 stages, one at a time)
   ═══════════════════════════════════════════════════════════════ */
.protocol-section .section-inner { max-width: 1160px; }
.protocol-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 80px;
  align-items: center;
}

.protocol-head {
  text-align: left;
  max-width: 520px;
  margin: 0;
}
.protocol-head .section-tag { margin-left: 0; }
.protocol-head .section-title {
  text-align: left;
  margin-left: 0;
}
.protocol-head .section-desc {
  text-align: left;
  margin-left: 0;
  margin-bottom: 0;
}

/* Stage area — borderless, sits on the right column */
.protocol-stage {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  justify-self: end;
}
.protocol-stage::before { display: none; }

/* minimal dots at the bottom */
.stage-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}
.stage-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(10, 16, 40, 0.16);
  cursor: pointer;
  transition: background 320ms ease, width 320ms ease;
}
.stage-dot:hover { background: rgba(10, 16, 40, 0.32); }
.stage-dot.active {
  background: var(--ac);
  width: 24px;
  border-radius: 4px;
}

/* hover arrows */
.stage-arrow {
  position: absolute;
  top: 50%;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(59, 111, 199, 0.18);
  background: #ffffff;
  color: var(--ac);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  padding: 0;
  box-shadow: 0 8px 24px rgba(10, 16, 40, 0.10);
  opacity: 0;
  transform: translateY(-50%) scale(0.9);
  transition: opacity 240ms ease, transform 240ms ease, background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.stage-arrow svg { width: 18px; height: 18px; }
.stage-arrow-prev { left: -12px; }
.stage-arrow-next { right: -12px; }
.protocol-stage:hover .stage-arrow {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}
.stage-arrow:hover {
  background: var(--ac);
  color: #fff;
  border-color: var(--ac);
}

/* slide viewport + slides */
.stage-viewport {
  position: relative;
  overflow: hidden;
  min-height: 340px;
}
.stage-slides {
  position: relative;
  width: 100%;
  min-height: 340px;
}
@keyframes stage-icon-sweep { to { transform: rotate(360deg); } }
.stage-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  text-align: center;
  opacity: 0;
  transform: translateX(120%) scale(0.86);
  transform-origin: center;
  transition:
    opacity 520ms ease,
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.stage-slide.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}
.stage-slide.prev {
  opacity: 0;
  transform: translateX(-120%) scale(0.86);
}
/* peek of the next slide hinting at what's coming */
.stage-slide.next {
  opacity: 0.18;
  transform: translateX(72%) scale(0.78);
  filter: blur(0.5px);
}
.stage-icon {
  width: 200px;
  height: 200px;
  border-radius: 32px;
  border: 1px solid rgba(59, 111, 199, 0.18);
  background:
    radial-gradient(ellipse at 30% 25%, rgba(255, 255, 255, 0.9), rgba(241, 245, 252, 0.6) 70%),
    linear-gradient(180deg, #ffffff, #eef2f9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ac);
  box-shadow:
    0 24px 60px rgba(10, 16, 40, 0.10),
    0 2px 6px rgba(10, 16, 40, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  position: relative;
  overflow: hidden;
}
.stage-icon svg {
  width: 92px;
  height: 92px;
  position: relative;
  z-index: 1;
  stroke: var(--ac);
}
.stage-tagline {
  font-size: 20px;
  font-weight: 500;
  color: var(--t1);
  max-width: 460px;
  line-height: 1.4;
  letter-spacing: -0.012em;
}

@media (max-width: 980px) {
  .protocol-inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .protocol-head { max-width: 100%; }
  .protocol-stage { max-width: 100%; justify-self: stretch; }
  .stage-viewport, .stage-slides { min-height: 320px; }
  .stage-icon { width: 170px; height: 170px; border-radius: 28px; }
  .stage-icon svg { width: 80px; height: 80px; }
  .stage-tagline { font-size: 18px; max-width: 340px; }
}
@media (max-width: 560px) {
  .stage-viewport, .stage-slides { min-height: 300px; }
  .stage-icon { width: 140px; height: 140px; border-radius: 24px; }
  .stage-icon svg { width: 66px; height: 66px; }
  .stage-tagline { font-size: 16px; }
  .stage-dot.active { width: 20px; }
}

