/* =========================================================================
   Only Cloud — design tokens + components
   ========================================================================= */

/* ---------- Tokens: light (default) ---------- */
:root,
[data-theme="light"] {
  /* Color */
  --c-bg:              #ffffff;
  --c-bg-soft:         #fafafa;
  --c-surface:         #ffffff;
  --c-surface-soft:    #f7f8fa;
  --c-surface-sunken:  #f3f4f6;
  --c-text:            #0a0a0a;
  --c-text-strong:     #050505;
  --c-text-muted:      #5b6470;
  --c-text-subtle:     #8a92a0;
  --c-border:          #ececef;
  --c-border-strong:   #dcdfe4;
  --c-border-soft:     #f1f2f4;
  --c-accent:          #1668ff;
  --c-accent-hover:    #0a52e8;
  --c-accent-soft:     #e8efff;
  --c-accent-ink:      #ffffff;
  --c-success:         #10a36b;
  --c-warning:         #c47700;
  --c-grid-line:       rgba(10, 10, 10, 0.06);

  /* Typography */
  --font-body: ui-sans-serif, system-ui, -apple-system, "SF Pro Text", "Segoe UI Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-body);
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Fira Code", "Menlo", "Consolas", monospace;
  --w-display: 600;
  --w-heading: 600;
  --w-body: 400;
  --w-strong: 540;
  --tracking-display: -0.025em;
  --tracking-tight: -0.012em;

  /* Shape */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-2xl: 28px;
  --r-pill: 999px;

  /* Shadow */
  --sh-xs: 0 1px 0 rgba(10,10,10,0.04);
  --sh-sm: 0 1px 2px rgba(10,10,10,0.04), 0 0 0 1px rgba(10,10,10,0.04);
  --sh-card: 0 1px 0 rgba(10,10,10,0.03), 0 8px 24px -16px rgba(10,10,10,0.10);
  --sh-elev: 0 8px 32px -12px rgba(10,10,10,0.16), 0 1px 0 rgba(10,10,10,0.04);
  --sh-glow-accent: 0 0 0 4px rgba(22,104,255,0.10);

  /* Layout */
  --w-page: 1240px;
  --w-narrow: 920px;
  --pad-x: clamp(20px, 4vw, 56px);
  --pad-section: clamp(64px, 9vw, 128px);
  --gap-grid: clamp(12px, 1.6vw, 20px);

  /* Motion */
  --ease-spring: cubic-bezier(0.22, 1.2, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 160ms;
  --t-mid: 320ms;
  --t-slow: 540ms;

  color-scheme: light;
}

/* ---------- Tokens: dark ----------
   Page bg sampled from the dark hero image's own background (#020306-ish)
   so the image blends seamlessly with the page — no visible seam. */
[data-theme="dark"] {
  --c-bg:              #020306;
  --c-bg-soft:         #060810;
  --c-surface:         #0c1018;
  --c-surface-soft:    #11151d;
  --c-surface-sunken:  #050709;
  --c-text:            #f1f3f7;
  --c-text-strong:     #ffffff;
  --c-text-muted:      #8a93a3;
  --c-text-subtle:     #5c6471;
  --c-border:          #1a1f2a;
  --c-border-strong:   #242a37;
  --c-border-soft:     #131822;
  --c-accent:          #4d8bff;
  --c-accent-hover:    #6aa1ff;
  --c-accent-soft:     #14213a;
  --c-accent-ink:      #ffffff;
  --c-success:         #2bd693;
  --c-warning:         #ffb547;
  --c-grid-line:       rgba(255,255,255,0.04);

  --sh-xs: 0 1px 0 rgba(0,0,0,0.4);
  --sh-sm: 0 1px 2px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.03);
  --sh-card: 0 1px 0 rgba(0,0,0,0.4), 0 12px 32px -16px rgba(0,0,0,0.6);
  --sh-elev: 0 12px 40px -12px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.03);
  --sh-glow-accent: 0 0 0 4px rgba(77,139,255,0.16);

  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --c-bg:              #020306;
    --c-bg-soft:         #060810;
    --c-surface:         #0c1018;
    --c-surface-soft:    #11151d;
    --c-surface-sunken:  #050709;
    --c-text:            #f1f3f7;
    --c-text-strong:     #ffffff;
    --c-text-muted:      #8a93a3;
    --c-text-subtle:     #5c6471;
    --c-border:          #1a1f2a;
    --c-border-strong:   #242a37;
    --c-border-soft:     #131822;
    --c-accent:          #4d8bff;
    --c-accent-hover:    #6aa1ff;
    --c-accent-soft:     #14213a;
    --c-grid-line:       rgba(255,255,255,0.04);
    color-scheme: dark;
  }
}

/* =========================================================================
   Reset / base
   ========================================================================= */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; tab-size: 4; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-weight: var(--w-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11", "tnum" 0;
  transition: background var(--t-mid) var(--ease-out), color var(--t-mid) var(--ease-out);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: var(--w-heading); letter-spacing: var(--tracking-tight); }
code, pre { font-family: var(--font-mono); font-size: 0.86em; }
pre { margin: 0; }

::selection { background: var(--c-accent); color: var(--c-accent-ink); }

.skip-link {
  position: absolute; top: -40px; left: 16px;
  background: var(--c-text); color: var(--c-bg);
  padding: 8px 12px; border-radius: var(--r-md);
  z-index: 1000;
}
.skip-link:focus { top: 12px; }

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

/* =========================================================================
   Reveal (scroll-in)
   ========================================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-spring);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0ms !important; transition-duration: 0ms !important; }
}

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0 18px;
  height: 40px;
  font-weight: var(--w-strong);
  font-size: 14px;
  letter-spacing: -0.005em;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform var(--t-fast) var(--ease-spring),
              background var(--t-fast) var(--ease-out),
              border-color var(--t-fast) var(--ease-out),
              color var(--t-fast) var(--ease-out),
              box-shadow var(--t-fast) var(--ease-out);
  cursor: pointer;
  user-select: none;
}
.btn--sm { height: 32px; padding: 0 14px; font-size: 13px; }
.btn--lg { height: 48px; padding: 0 22px; font-size: 15px; }

.btn--primary {
  background: var(--c-text);
  color: var(--c-bg);
  border-color: var(--c-text);
}
.btn--primary:hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-accent-ink);
  transform: translateY(-1px);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--c-text);
  border-color: var(--c-border-strong);
}
.btn--ghost:hover {
  border-color: var(--c-text);
  transform: translateY(-1px);
}

.btn__arrow {
  display: inline-block;
  transition: transform var(--t-fast) var(--ease-spring);
}
.btn:hover .btn__arrow { transform: translateX(3px); }

/* =========================================================================
   NAV
   ========================================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--c-bg) 86%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-mid) var(--ease-out), background var(--t-mid) var(--ease-out);
}
.nav.is-scrolled { border-bottom-color: var(--c-border); }

.nav__inner {
  max-width: var(--w-page);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.012em;
  color: var(--c-text);
}
.nav__mark { width: 22px; height: 22px; color: var(--c-text); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  flex: 1;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  font-size: 13.5px;
  color: var(--c-text-muted);
  border-radius: var(--r-md);
  transition: color var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out);
}
.nav__link:hover { color: var(--c-text); background: var(--c-surface-soft); }
.nav__chev { width: 10px; height: 10px; opacity: 0.6; }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__signin {
  font-size: 13.5px;
  color: var(--c-text-muted);
  padding: 6px 10px;
  border-radius: var(--r-md);
  transition: color var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out);
}
.nav__signin:hover { color: var(--c-text); background: var(--c-surface-soft); }

.theme-toggle {
  width: 32px; height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--r-md);
  color: var(--c-text-muted);
  transition: color var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out);
  position: relative;
}
.theme-toggle:hover { color: var(--c-text); background: var(--c-surface-soft); }
.theme-toggle svg { width: 15px; height: 15px; position: absolute; transition: opacity var(--t-fast) var(--ease-out), transform var(--t-mid) var(--ease-spring); }
.theme-toggle__moon { opacity: 0; transform: rotate(-30deg) scale(0.7); }
.theme-toggle__sun { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="dark"] .theme-toggle__moon { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="dark"] .theme-toggle__sun { opacity: 0; transform: rotate(30deg) scale(0.7); }

.nav__menu {
  display: none;
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  color: var(--c-text);
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background var(--t-fast) var(--ease-out);
}
.nav__menu:hover { background: var(--c-surface-soft); }
.nav__menu svg { width: 18px; height: 18px; position: absolute; transition: opacity var(--t-fast) var(--ease-out), transform var(--t-mid) var(--ease-spring); }
.nav__menu-close { opacity: 0; transform: scale(0.85); }
.nav.is-drawer-open .nav__menu-open { opacity: 0; transform: scale(0.85); }
.nav.is-drawer-open .nav__menu-close { opacity: 1; transform: scale(1); }

@media (max-width: 880px) {
  .nav__links { display: none; }
  .nav__signin { display: none; }
  .nav__cta { display: none; }
  .nav__menu { display: inline-flex; }
  .nav__inner { gap: 12px; height: 56px; }
  .nav__brand { flex: 1; }
}

/* Drawer */
.drawer {
  position: fixed;
  inset: 56px 0 auto 0;
  z-index: 49;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
  padding: 16px var(--pad-x) 24px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-mid) var(--ease-out), transform var(--t-mid) var(--ease-spring);
  max-height: calc(100dvh - 56px);
  overflow-y: auto;
}
.drawer[hidden] { display: none; }
.drawer.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.drawer__nav {
  display: flex;
  flex-direction: column;
  padding: 8px 0 16px;
  border-bottom: 1px solid var(--c-border);
}
.drawer__link {
  font-size: 17px;
  font-weight: 540;
  color: var(--c-text);
  padding: 14px 4px;
  border-bottom: 1px solid var(--c-border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer__link::after {
  content: "→";
  color: var(--c-text-subtle);
  font-size: 14px;
}
.drawer__link:last-of-type { border-bottom: none; }
.drawer__foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 18px;
}
.drawer__signin {
  font-size: 14px;
  color: var(--c-text-muted);
  padding: 10px 4px;
  text-align: left;
}
.drawer__cta {
  justify-content: center;
  width: 100%;
  height: 48px;
}
.is-drawer-locked { overflow: hidden; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative;
  padding: clamp(48px, 7vw, 88px) var(--pad-x) clamp(20px, 3vw, 32px);
  text-align: center;
  isolation: isolate;
}
.hero::before {
  /* fine grid wash, very low opacity */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--c-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--c-grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
  pointer-events: none;
  z-index: -1;
}

.hero__inner {
  max-width: var(--w-narrow);
  margin: 0 auto;
}

.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 6px 5px 12px;
  font-size: 12.5px;
  color: var(--c-text-muted);
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  background: var(--c-surface);
  box-shadow: var(--sh-xs);
  transition: border-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-spring);
}
.hero__pill:hover { border-color: var(--c-border-strong); color: var(--c-text); transform: translateY(-1px); }
.hero__pill-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--c-accent) 22%, transparent);
  animation: pulse 2.4s var(--ease-out) infinite;
}
.hero__pill-label { color: var(--c-text); font-weight: 540; }
.hero__pill-sep {
  width: 1px; height: 12px; background: var(--c-border);
  display: inline-block;
}
.hero__pill-tail {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px 2px 0;
}
.hero__pill-tail svg { width: 10px; height: 10px; opacity: 0.6; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px color-mix(in oklab, var(--c-accent) 22%, transparent); }
  50%      { box-shadow: 0 0 0 5px color-mix(in oklab, var(--c-accent) 0%, transparent); }
}

.hero__title {
  margin-top: 28px;
  font-size: clamp(40px, 6.4vw, 76px);
  font-weight: var(--w-display);
  letter-spacing: var(--tracking-display);
  line-height: 1.02;
  color: var(--c-text-strong);
}

.hero__sub {
  margin: 20px auto 0;
  max-width: 540px;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.5;
  color: var(--c-text-muted);
}

.hero__ctas {
  margin-top: 30px;
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero__map {
  position: relative;
  /* Full-bleed: extend beyond the hero's horizontal padding to viewport edge */
  margin: clamp(24px, 4vw, 56px) calc(-1 * var(--pad-x)) 0;
}
.hero__map img {
  width: 100%;
  height: auto;
  display: block;
  /* The image's own bg is white (light) / graphite (dark). Blend modes
     drop those backgrounds so only network content shows on the page. */
  mix-blend-mode: multiply;
  /* Soften both top and bottom edges so the image dissolves into the
     page background instead of cutting at a hard line. */
  mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 88%, transparent 100%);
}
[data-theme="dark"] .hero__map img {
  mix-blend-mode: screen;
}
.hero__regions {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__regions li {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
}
.hero__regions span {
  display: inline-block;
  font-size: 10.5px;
  font-family: var(--font-mono);
  color: var(--c-text-muted);
  background: var(--c-bg);
  padding: 2px 6px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  letter-spacing: 0.01em;
  white-space: nowrap;
  opacity: 0.85;
}
@media (max-width: 720px) {
  .hero__regions { display: none; }
}

/* =========================================================================
   METRICS
   ========================================================================= */
.metrics {
  padding: 0 var(--pad-x) clamp(48px, 7vw, 96px);
  position: relative;
  z-index: 2;
}
.metrics__inner {
  max-width: var(--w-page);
  /* Pull up so the card overlaps the bottom of the hero map fade.
     Negative margin scales with viewport: gentle on mobile, stronger on desktop. */
  margin: clamp(-180px, -12vw, -56px) auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  box-shadow: var(--sh-card);
  overflow: hidden;
}
.metric {
  position: relative;
  padding: 24px 24px 24px;
  border-right: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px;
}
.metric:last-child { border-right: none; }

.metric__head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--c-text-muted);
}
.metric__icon {
  width: 18px; height: 18px;
  display: inline-grid; place-items: center;
  color: var(--c-text-muted);
}
.metric__icon svg { width: 14px; height: 14px; }
.metric__name {
  font-size: 12.5px;
  font-weight: var(--w-strong);
  color: var(--c-text);
  letter-spacing: -0.005em;
}

.metric__value {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-mono);
  font-feature-settings: "tnum";
  color: var(--c-text-strong);
}
.metric__num {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}
.metric__unit {
  font-size: 13px;
  color: var(--c-text-muted);
}

.metric__note {
  font-size: 12.5px;
  color: var(--c-text-muted);
  line-height: 1.5;
  flex: 1;
}

.metric__link {
  font-size: 12px;
  color: var(--c-text-muted);
  display: inline-flex;
  gap: 4px;
  transition: color var(--t-fast) var(--ease-out);
}
.metric__link:hover { color: var(--c-accent); }

.metric__spark {
  width: 100%; height: 28px;
  color: var(--c-accent);
}

.metric__bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 28px;
}
.metric__bars li {
  flex: 1;
  background: var(--c-accent);
  opacity: 0.7;
  border-radius: 1px;
  height: 65%;
}
.metric__bars li:nth-child(7n) { height: 90%; }
.metric__bars li:nth-child(5n) { height: 50%; }
.metric__bars li:nth-child(11n) { height: 78%; }
.metric__bars li:nth-child(3n) { height: 72%; }
.metric__bars li:nth-child(13n) { height: 100%; opacity: 1; }

.metric__logos {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.metric__logos li {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-text-muted);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 3px 7px;
  background: var(--c-surface);
}

/* deploy strip */
.metrics__strip {
  max-width: var(--w-page);
  margin: 16px auto 0;
}
.metrics__strip-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface);
  flex-wrap: wrap;
  font-size: 12.5px;
  font-family: var(--font-mono);
  box-shadow: var(--sh-xs);
}
.metrics__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--c-surface-soft);
  border: 1px solid var(--c-border);
  color: var(--c-text);
}
.metrics__pill-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-success);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--c-success) 18%, transparent);
}
.metrics__cell {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}
.metrics__cell-label {
  font-family: var(--font-body);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-text-subtle);
}
.metrics__cell code { color: var(--c-text); font-size: 12px; }
.metrics__cell-link {
  margin-left: auto;
  color: var(--c-text-muted);
  font-family: var(--font-body);
  font-size: 12.5px;
  transition: color var(--t-fast) var(--ease-out);
}
.metrics__cell-link:hover { color: var(--c-accent); }

@media (max-width: 980px) {
  .metrics__inner { grid-template-columns: repeat(2, 1fr); }
  .metric { border-bottom: 1px solid var(--c-border); }
  .metric:nth-child(2) { border-right: none; }
  .metric:nth-child(3), .metric:nth-child(4) { border-bottom: none; }
}
@media (max-width: 600px) {
  .metrics__inner { grid-template-columns: 1fr; }
  .metric { border-right: none; }
  .metric:not(:last-child) { border-bottom: 1px solid var(--c-border); }
  .metrics__cell-link { margin-left: 0; }
}

/* =========================================================================
   Section heads
   ========================================================================= */
.section-head {
  max-width: var(--w-page);
  margin: 0 auto var(--gap-grid);
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 16px;
  margin-bottom: clamp(24px, 3vw, 36px);
}
.section-eyebrow {
  grid-column: 1;
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--c-text-subtle);
  margin-bottom: 10px;
}
.section-title {
  grid-column: 1;
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: var(--w-display);
  letter-spacing: var(--tracking-display);
  line-height: 1.05;
  color: var(--c-text-strong);
  max-width: 760px;
}
.section-desc {
  grid-column: 1;
  margin-top: 14px;
  max-width: 560px;
  color: var(--c-text-muted);
  font-size: 16px;
}
.section-link {
  grid-column: 2;
  align-self: end;
  font-size: 13.5px;
  color: var(--c-text-muted);
  transition: color var(--t-fast) var(--ease-out);
  white-space: nowrap;
}
.section-link:hover { color: var(--c-accent); }

@media (max-width: 720px) {
  .section-head { grid-template-columns: 1fr; }
  .section-link { grid-column: 1; }
}

/* =========================================================================
   BENTO
   ========================================================================= */
.bento {
  padding: 0 var(--pad-x) var(--pad-section);
}
.bento__grid {
  max-width: var(--w-page);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(260px, auto);
  gap: var(--gap-grid);
}

.bento__card {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-2xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  transition: border-color var(--t-mid) var(--ease-out), transform var(--t-mid) var(--ease-spring), box-shadow var(--t-mid) var(--ease-out);
}
.bento__card:hover {
  border-color: var(--c-border-strong);
  transform: translateY(-2px);
  box-shadow: var(--sh-card);
}
.bento__card--wide { grid-column: span 8; }
.bento__card--narrow { grid-column: span 4; }

.bento__title {
  font-size: 20px;
  font-weight: var(--w-heading);
  letter-spacing: -0.014em;
  color: var(--c-text-strong);
}
.bento__desc {
  color: var(--c-text-muted);
  font-size: 14.5px;
  line-height: 1.55;
  max-width: 48ch;
}
.bento__copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 460px;
}
.bento__bullets {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
.bento__bullets li {
  display: flex;
  gap: 8px;
  font-size: 13.5px;
  color: var(--c-text-muted);
  align-items: baseline;
}
.bento__check {
  color: var(--c-accent);
  font-family: var(--font-mono);
  font-size: 14px;
  width: 12px;
}
.bento__link {
  margin-top: auto;
  font-size: 13.5px;
  color: var(--c-accent);
  display: inline-flex;
  gap: 4px;
}
.bento__link:hover { text-decoration: underline; }

.bento__foot {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: auto;
}
.bento__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  color: var(--c-text-muted);
  background: var(--c-bg-soft);
}

/* card variants */
.bento__card--instant {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 24px;
  padding-right: 0;
  padding-bottom: 0;
}
.bento__card--instant .bento__copy { padding-bottom: 28px; }
.bento__visual--dashboard {
  position: relative;
  align-self: end;
  margin-right: -1px;
  margin-bottom: -1px;
  border-top-left-radius: var(--r-lg);
  overflow: hidden;
  border-left: 1px solid var(--c-border);
  border-top: 1px solid var(--c-border);
  background: var(--c-surface-soft);
  min-height: 280px;
}
.bento__visual--dashboard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  display: block;
}
.bento__visual-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 70%, var(--c-surface) 100%);
}

/* edge functions code */
.bento__code {
  background: var(--c-surface-soft);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 14px 16px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--c-text);
  overflow: hidden;
  white-space: pre;
}
.tk-c { color: var(--c-text-subtle); }
.tk-k { color: var(--c-accent); }
.tk-s { color: var(--c-success); }
.tk-f { color: var(--c-text-strong); }
.tk-i { color: var(--c-warning); }
.tk-d { color: var(--c-text-subtle); }

/* AI pipeline */
.bento__pipe {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: auto;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface-soft);
  overflow: hidden;
}
.bento__pipe li {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 12.5px;
  border-bottom: 1px solid var(--c-border);
}
.bento__pipe li:last-child { border-bottom: none; }
.bento__pipe-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-text-subtle);
  justify-self: center;
}
.bento__pipe-dot--active {
  background: var(--c-accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--c-accent) 18%, transparent);
  animation: pulse 2s var(--ease-out) infinite;
}
.bento__pipe-name { color: var(--c-text); font-weight: 540; }
.bento__pipe-meta { color: var(--c-text-muted); font-family: var(--font-mono); font-size: 11px; }

/* preview environments */
.bento__card--preview {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(0, 1.1fr);
  gap: 24px;
}
.bento__previews {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bento__preview {
  background: var(--c-surface-soft);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bento__preview header {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
}
.bento__preview header strong { color: var(--c-text-strong); font-weight: 540; }
.bento__preview-branch {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-text-muted);
  margin-left: auto;
}
.bento__preview-dot {
  width: 6px; height: 6px; border-radius: 50%;
}
.bento__preview-dot--ok { background: var(--c-success); }
.bento__preview-dot--build { background: var(--c-warning); animation: pulse 1.6s var(--ease-out) infinite; }
.bento__preview code {
  font-size: 11.5px;
  color: var(--c-accent);
  font-family: var(--font-mono);
}
.bento__preview footer {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-text-muted);
}

/* observability */
.bento__card--obs {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  gap: 0;
  padding: 0;
  min-height: 420px;
}
.bento__visual--obs {
  align-self: stretch;
  border-right: 1px solid var(--c-border);
  overflow: hidden;
  background: var(--c-surface-soft);
  min-height: 420px;
  position: relative;
}
.bento__visual--obs img {
  width: 100%;
  height: 100%;
  position: absolute; inset: 0;
  object-fit: cover;
  object-position: top left;
  display: block;
}
.bento__card--obs .bento__copy { padding: 32px; max-width: none; }
.bento__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--c-border);
}
.bento__stat-num {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 500;
  color: var(--c-text-strong);
  letter-spacing: -0.02em;
  display: block;
}
.bento__stat-label {
  font-size: 11.5px;
  color: var(--c-text-muted);
  display: block;
  margin-top: 2px;
}

/* template launchpad */
.bento__card--templates {
  padding-bottom: 28px;
}
.bento__visual--templates {
  margin: 8px -28px 0;
  border-top: 1px solid var(--c-border);
  background: var(--c-surface-soft);
  min-height: 320px;
  flex: 1;
  overflow: hidden;
  position: relative;
}
.bento__visual--templates img {
  width: 100%;
  height: 100%;
  position: absolute; inset: 0;
  object-fit: cover;
  object-position: top center;
}
.bento__card--templates .bento__link {
  align-self: flex-start;
  margin-top: 4px;
}

/* observability layout reorder for left-image */
.bento__card--obs > .bento__visual--obs {
  order: 1;
  border-left: none;
  border-right: 1px solid var(--c-border);
  border-radius: 0;
  margin: 0;
}
.bento__card--obs > .bento__copy {
  order: 2;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (max-width: 980px) {
  .bento__grid {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: auto;
  }
  .bento__card--wide { grid-column: span 6; }
  .bento__card--narrow { grid-column: span 6; }

  .bento__card--instant,
  .bento__card--preview,
  .bento__card--obs {
    grid-template-columns: 1fr;
  }
  .bento__visual--dashboard,
  .bento__visual--obs {
    margin: 0;
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    min-height: 220px;
  }
  .bento__card--obs > .bento__copy { padding: 0; }
  .bento__card--obs { padding-left: 28px; padding-bottom: 28px; }
  .bento__card--instant { padding: 28px; }
  .bento__card--instant .bento__copy { padding-bottom: 0; }
}

/* =========================================================================
   FLOW (workflow)
   ========================================================================= */
.flow {
  padding: 0 var(--pad-x) var(--pad-section);
  background: var(--c-bg-soft);
  position: relative;
}
.flow::before, .flow::after {
  content: "";
  position: absolute; left: 0; right: 0; height: 1px;
  background: var(--c-border);
}
.flow::before { top: 0; }
.flow::after { bottom: 0; }
.flow .section-head { padding-top: var(--pad-section); }

.flow__stages {
  max-width: var(--w-page);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.flow__stages::before {
  /* connector line */
  content: "";
  position: absolute;
  top: 56px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-border-strong) 12%, var(--c-border-strong) 88%, transparent);
  pointer-events: none;
}
.flow__stage {
  position: relative;
  padding: 0 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.flow__head {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 32px;
  background: var(--c-bg-soft);
  z-index: 1;
}
.flow__step {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-text-subtle);
  width: 28px; height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-pill);
  background: var(--c-bg);
  letter-spacing: 0.04em;
}
.flow__name {
  font-size: 16px;
  font-weight: var(--w-heading);
  letter-spacing: -0.012em;
  color: var(--c-text-strong);
}

.flow__card {
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface);
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
  color: var(--c-text);
  min-height: 168px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.flow__card--terminal { white-space: pre; }
.flow__card--preview {
  font-family: var(--font-body);
}
.flow__preview-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
}
.flow__preview-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-success); }
.flow__preview-row strong { font-weight: 540; }
.flow__preview-branch {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-text-muted);
  margin-left: auto;
}
.flow__preview-url {
  display: block;
  color: var(--c-accent);
  font-size: 11.5px;
  border: 1px dashed var(--c-border-strong);
  padding: 6px 8px;
  border-radius: var(--r-sm);
  background: var(--c-surface-soft);
}
.flow__preview-meta {
  display: flex; flex-direction: column; gap: 2px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  margin-top: auto;
}
.flow__preview-meta li { display: flex; justify-content: space-between; color: var(--c-text-muted); }
.flow__preview-meta li span:last-child { color: var(--c-text); }
.flow__ok { color: var(--c-success); }

.flow__graph-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-body);
}
.flow__graph-label { font-size: 11.5px; color: var(--c-text-muted); }
.flow__graph-value {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--c-text-strong);
  letter-spacing: -0.02em;
}
.flow__graph {
  width: 100%;
  height: 60px;
  color: var(--c-accent);
}
.flow__graph-meta {
  display: flex; flex-direction: column; gap: 2px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  margin-top: auto;
}
.flow__graph-meta li { display: flex; justify-content: space-between; color: var(--c-text-muted); }

.flow__caption {
  font-size: 13px;
  color: var(--c-text-muted);
  line-height: 1.5;
}

@media (max-width: 920px) {
  .flow__stages { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
  .flow__stages::before { display: none; }
}
@media (max-width: 560px) {
  .flow__stages { grid-template-columns: 1fr; }
}

/* =========================================================================
   FOUNDER
   ========================================================================= */
.founder {
  padding: var(--pad-section) var(--pad-x);
}
.founder__inner {
  max-width: var(--w-page);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.founder__portrait {
  position: relative;
  margin: 0;
  border-radius: var(--r-2xl);
  overflow: hidden;
  border: 1px solid var(--c-border);
  background: var(--c-surface-soft);
}
.founder__portrait img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  display: block;
}

.founder__plate {
  position: absolute;
  left: 16px; bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 12px;
  background: color-mix(in oklab, var(--c-bg) 88%, transparent);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  font-size: 12.5px;
}
.founder__plate-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-success);
}
.founder__plate-name { color: var(--c-text); font-weight: 540; }
.founder__plate-role { color: var(--c-text-muted); }

.founder__text {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.founder__eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--c-text-subtle);
}
.founder__quote {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.25;
  letter-spacing: -0.018em;
  color: var(--c-text-strong);
  font-weight: var(--w-heading);
}
.founder__quote em {
  color: var(--c-accent);
  font-style: italic;
  font-weight: inherit;
}
.founder__sig {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--c-border);
  margin-top: 8px;
}
.founder__sig-name { font-weight: 540; color: var(--c-text); }
.founder__sig-meta { color: var(--c-text-muted); font-size: 13px; }

@media (max-width: 800px) {
  .founder__inner { grid-template-columns: 1fr; gap: 28px; }
  .founder__portrait img { aspect-ratio: 1 / 1; object-position: 50% 25%; }
}

/* =========================================================================
   CTA
   ========================================================================= */
.cta {
  padding: 0 var(--pad-x) var(--pad-section);
}
.cta__inner {
  max-width: var(--w-page);
  margin: 0 auto;
  border: 1px solid var(--c-border);
  border-radius: var(--r-2xl);
  padding: clamp(48px, 7vw, 96px) clamp(24px, 5vw, 64px);
  text-align: center;
  background:
    radial-gradient(ellipse 100% 80% at 50% 0%, color-mix(in oklab, var(--c-accent) 7%, transparent), transparent 60%),
    var(--c-surface);
  position: relative;
  overflow: hidden;
}
.cta__inner::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--c-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--c-grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 0%, transparent 65%);
  pointer-events: none;
}
.cta__title {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: var(--w-display);
  letter-spacing: var(--tracking-display);
  line-height: 1.05;
  color: var(--c-text-strong);
  position: relative;
}
.cta__sub {
  margin: 16px auto 0;
  max-width: 520px;
  color: var(--c-text-muted);
  font-size: 16px;
  position: relative;
}
.cta__actions {
  margin-top: 28px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
}
.cta__meta {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--c-text-muted);
  position: relative;
}
.cta__meta li { display: inline-flex; align-items: center; gap: 6px; }
.cta__meta-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--c-text-subtle); }

/* =========================================================================
   FOOTER
   ========================================================================= */
.foot {
  border-top: 1px solid var(--c-border);
  background: var(--c-bg);
  padding: clamp(48px, 6vw, 80px) var(--pad-x) 28px;
}
.foot__inner {
  max-width: var(--w-page);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 2.4fr);
  gap: clamp(28px, 5vw, 64px);
}
.foot__brand-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--c-text);
}
.foot__brand-row svg { width: 22px; height: 22px; }
.foot__tag {
  margin-top: 12px;
  color: var(--c-text-muted);
  font-size: 13.5px;
  max-width: 26ch;
}
.foot__status {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--c-text-muted);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  background: var(--c-surface);
}
.foot__status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-success);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--c-success) 18%, transparent);
}

.foot__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.foot__col { display: flex; flex-direction: column; gap: 10px; }
.foot__col-name {
  font-size: 12px;
  font-weight: 540;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-text-subtle);
  margin-bottom: 4px;
}
.foot__col a {
  font-size: 13.5px;
  color: var(--c-text-muted);
  transition: color var(--t-fast) var(--ease-out);
}
.foot__col a:hover { color: var(--c-text); }

.foot__base {
  max-width: var(--w-page);
  margin: 48px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--c-border);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--c-text-subtle);
  flex-wrap: wrap;
  gap: 12px;
}

.foot__sample-note {
  max-width: var(--w-page);
  margin: 18px auto 0;
  color: var(--c-text-subtle);
  font-size: 11px;
  line-height: 1.55;
}

@media (max-width: 880px) {
  .foot__inner { grid-template-columns: 1fr; }
  .foot__cols { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* =========================================================================
   MOBILE POLISH (≤720px)
   - Tighter spacing, compressed cards, code-block scroll, image cropping
   - This block intentionally lives at the bottom so it overrides earlier rules.
   ========================================================================= */
@media (max-width: 720px) {

  /* Body: tighten base scale a touch */
  :root {
    --pad-x: 18px;
    --pad-section: 56px;
  }

  /* Hero: compress, slightly smaller headline, tighter map */
  .hero { padding: 36px var(--pad-x) 12px; }
  .hero__title {
    font-size: clamp(34px, 9vw, 44px);
    letter-spacing: -0.022em;
    line-height: 1.04;
  }
  .hero__sub { margin-top: 14px; font-size: 15.5px; max-width: 460px; padding: 0 8px; }
  .hero__pill { font-size: 12px; padding-left: 10px; }
  .hero__pill-tail { padding-right: 8px; }
  .hero__ctas { margin-top: 22px; width: 100%; }
  .hero__ctas .btn { flex: 1; justify-content: center; min-width: 0; }
  .hero__map { padding: 0; margin-top: 24px; }

  /* Metrics: compress vertical rhythm */
  .metrics { padding: 32px var(--pad-x) 56px; }
  .metric { padding: 20px; min-height: 0; }
  .metric__num { font-size: 30px; }
  .metrics__strip-row {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 14px;
    gap: 10px;
  }
  .metrics__strip-row .metrics__pill { align-self: flex-start; }
  .metrics__strip-row .metrics__cell { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 12px; }
  .metrics__strip-row .metrics__cell-label { font-size: 10px; }
  .metrics__strip-row .metrics__cell code { text-align: right; }
  .metrics__cell-link { margin-left: 0; align-self: flex-start; }

  /* Section heads */
  .section-head { margin-bottom: 20px; }
  .section-title { font-size: clamp(26px, 7vw, 32px); letter-spacing: -0.02em; }
  .section-desc { font-size: 14.5px; }

  /* Bento: compress card padding, ensure no overflow, refine images */
  .bento__card {
    padding: 20px;
    border-radius: var(--r-xl);
    gap: 12px;
  }
  .bento__title { font-size: 18px; }
  .bento__desc { font-size: 14px; }
  .bento__bullets li { font-size: 13px; }

  /* Code block: allow horizontal scroll instead of clipping mid-character */
  .bento__code {
    font-size: 11.5px;
    padding: 12px 14px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    mask-image: linear-gradient(to right, black calc(100% - 24px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black calc(100% - 24px), transparent 100%);
  }

  /* Instant deploys: reframe the dashboard preview so it's legible */
  .bento__card--instant {
    grid-template-columns: 1fr;
    padding: 20px 20px 0;
    gap: 16px;
  }
  .bento__card--instant .bento__copy { padding-bottom: 0; max-width: none; }
  .bento__visual--dashboard {
    min-height: 0;
    height: 200px;
    margin: 4px -20px -1px;
    border-left: none;
    border-right: 1px solid var(--c-border);
    border-top: 1px solid var(--c-border);
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    position: relative;
    overflow: hidden;
  }
  .bento__visual--dashboard img {
    /* zoom in on the top-left so detail is legible at narrow widths */
    width: 200%;
    height: auto;
    min-height: 100%;
    object-position: top left;
    transform-origin: top left;
  }

  /* Preview environments */
  .bento__card--preview { grid-template-columns: 1fr; gap: 14px; padding: 20px; }
  .bento__preview header { font-size: 12.5px; flex-wrap: wrap; row-gap: 4px; }
  .bento__preview-branch { margin-left: auto; }
  .bento__preview footer { font-size: 10.5px; }

  /* AI workflow */
  .bento__pipe li { padding: 9px 12px; font-size: 12px; grid-template-columns: 14px 1fr auto; gap: 8px; }

  /* Observability: turn into vertical card with cropped image */
  .bento__card--obs {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 0;
  }
  .bento__visual--obs {
    height: 220px;
    min-height: 0;
    border-right: none;
    border-bottom: 1px solid var(--c-border);
    border-radius: var(--r-xl) var(--r-xl) 0 0;
  }
  .bento__visual--obs img {
    /* zoom to make UI text readable */
    width: 220%;
    height: auto;
    min-height: 100%;
    object-position: top left;
  }
  .bento__card--obs > .bento__copy { padding: 20px; gap: 12px; }

  /* Bento stats row: 2x2 not 3x1 */
  .bento__stats {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .bento__stat-num { font-size: 18px; }
  .bento__stat-label { font-size: 11px; line-height: 1.4; }

  /* Template launchpad */
  .bento__card--templates { padding: 20px 20px 20px; }
  .bento__visual--templates {
    margin: 8px -20px 0;
    min-height: 280px;
  }

  /* Workflow */
  .flow .section-head { padding-top: 56px; }
  .flow__stage { padding: 0; }
  .flow__card { font-size: 11.5px; padding: 12px 14px; min-height: 0; }
  .flow__card--terminal {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: pre;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .flow__caption { font-size: 13px; }
  .flow__stages { gap: 28px 0; }

  /* Founder */
  .founder { padding: 56px var(--pad-x); }
  .founder__quote { font-size: clamp(20px, 5vw, 26px); line-height: 1.3; }
  .founder__portrait img { aspect-ratio: 1 / 1; }

  /* CTA */
  .cta { padding: 0 var(--pad-x) 56px; }
  .cta__inner { padding: 48px 24px; border-radius: var(--r-xl); }
  .cta__title { font-size: clamp(26px, 7.4vw, 36px); }
  .cta__sub { font-size: 14.5px; padding: 0 4px; }
  .cta__actions { width: 100%; }
  .cta__actions .btn { flex: 1; justify-content: center; min-width: 0; }
  .cta__meta { gap: 12px; font-size: 11px; }

  /* Footer */
  .foot { padding-top: 48px; }
  .foot__cols { grid-template-columns: 1fr 1fr; gap: 20px; }
  .foot__base { flex-direction: column; gap: 6px; align-items: flex-start; }
}

/* very narrow (iPhone SE class) */
@media (max-width: 360px) {
  .hero__pill-tail { display: none; }
  .hero__pill-sep { display: none; }
  .hero__title { font-size: 30px; }
  .bento__stats { grid-template-columns: 1fr; }
}
