/* ===================================================================
   TECHINDIKA AI AGENT PLATFORM — LANDING PAGE
   Architecture inspired by megontech-landing/css/custom.css
   Adapted to the Techindika brand standard (deep blue gradient).
   =================================================================== */

/* ── A11Y ─────────────────────────────────────────────────────────── */
.skip-to-content {
  position: absolute; top: -100px; left: 16px;
  background: #1D4ED8; color: #fff;
  padding: .65rem 1rem; border-radius: 8px;
  font-size: .875rem; font-weight: 600;
  z-index: 9999; transition: top .2s ease;
}
.skip-to-content:focus { top: 16px; }
*:focus-visible {
  outline: 2px solid #38BDF8;
  outline-offset: 3px;
  border-radius: 6px;
}

/* ── BASE ─────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ── TOKENS ───────────────────────────────────────────────────────── */
:root {
  --ti-950: #020617;
  --ti-900: #06091A;
  --ti-800: #0F1424;
  --ti-700: #0D47A1;
  --ti-600: #1565C0;
  --ti-500: #1976D2;
  --ti-400: #29B6F6;
  --ti-300: #7DD3FC;
  --ti-100: #BFE7FF;
  --ti-50:  #E8F4FF;

  --indigo: #4338CA;
  --sky:    #38BDF8;
  --gold:   #F59E0B;
  --emerald:#10B981;

  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── GRADIENTS ────────────────────────────────────────────────────── */
.text-gradient-brand {
  background: linear-gradient(135deg, #38BDF8, #1D4ED8 60%, #4338CA);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-accent {
  background: linear-gradient(100deg, #7DD3FC 0%, #38BDF8 45%, #818CF8 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ── SECTION LABELS ───────────────────────────────────────────────── */
.label-blue {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .375rem 1rem; background: #E8F4FF; color: #0D47A1;
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  border-radius: 9999px; border: 1px solid #BFE7FF;
}
.label-dark {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .375rem 1rem; background: rgba(125,211,252,.1); color: #7DD3FC;
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  border-radius: 9999px; border: 1px solid rgba(125,211,252,.25);
}

/* ═══════════════════════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════════════════════ */
.ti-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(2, 6, 23, 0.55);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, .04);
  transition: background .3s ease, box-shadow .3s ease;
}
.ti-nav.scrolled {
  background: rgba(2, 6, 23, 0.92);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}
.ti-nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center; gap: 32px;
  padding: 14px 24px;
}
@media (min-width: 1024px) { .ti-nav-inner { padding: 14px 48px; } }

.ti-brand { display: inline-flex; align-items: center; gap: 12px; }
.ti-brand-logo {
  height: 32px; width: auto;
  filter: brightness(1.4) contrast(1.05);
}
.ti-brand-eyebrow {
  display: none;
  align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: .12em;
  color: #94A3B8;
  text-transform: uppercase;
  padding-left: 12px;
  border-left: 1px solid rgba(255,255,255,.12);
}
.ti-brand-pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  animation: pulseTiny 2s ease-in-out infinite;
}
@keyframes pulseTiny { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.55;transform:scale(.7)} }

@media (min-width: 768px) { .ti-brand-eyebrow { display: inline-flex; } }

.ti-nav-center {
  display: none; gap: 32px; justify-content: center;
}
@media (min-width: 1024px) { .ti-nav-center { display: flex; } }

.ti-nav-link {
  font-size: 14px; font-weight: 500; color: #CBD5E1;
  position: relative; padding: 6px 0;
  transition: color .25s ease;
}
.ti-nav-link::after {
  content: ''; position: absolute; left: 50%; bottom: -2px;
  width: 0; height: 1px; background: #38BDF8;
  transform: translateX(-50%);
  transition: width .35s var(--ease-spring);
}
.ti-nav-link:hover { color: #fff; }
.ti-nav-link:hover::after { width: 100%; }

.ti-nav-right {
  display: inline-flex; align-items: center; gap: 12px;
  justify-self: end;
}
.ti-nav-ghost {
  display: none; font-size: 14px; font-weight: 500; color: #94A3B8;
  padding: 8px 14px; transition: color .25s ease;
}
.ti-nav-ghost:hover { color: #38BDF8; }
@media (min-width: 1024px) { .ti-nav-ghost { display: inline-flex; } }

.ti-nav-cta {
  display: none; align-items: center; gap: 6px;
  padding: 10px 22px; border-radius: 9999px;
  background: linear-gradient(135deg, #1D4ED8, #4338CA);
  color: #fff; font-size: 14px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(29, 78, 216, .4), inset 0 1px 0 rgba(255,255,255,.18);
  transition: transform .25s var(--ease-spring), box-shadow .25s var(--ease-spring);
}
.ti-nav-cta:hover { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(29, 78, 216, .55); }
@media (min-width: 768px) { .ti-nav-cta { display: inline-flex; } }

.ti-nav-cta-sm {
  display: inline-flex; align-items: center;
  padding: 8px 16px; border-radius: 9999px;
  background: linear-gradient(135deg, #1D4ED8, #4338CA);
  color: #fff; font-size: 13px; font-weight: 600;
}
@media (min-width: 768px) { .ti-nav-cta-sm { display: none; } }

.ti-nav-burger {
  display: inline-flex; flex-direction: column; gap: 5px;
  background: transparent; border: 0; cursor: pointer;
  padding: 8px;
}
.ti-nav-burger span {
  display: block; width: 22px; height: 2px;
  background: #E2E8F0; border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
@media (min-width: 1024px) { .ti-nav-burger { display: none; } }

/* drawer */
.ti-drawer-bg {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(2,6,23,.7);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.ti-drawer-bg.active { opacity: 1; visibility: visible; }
.ti-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 95;
  width: min(360px, 90vw);
  background: #06091A;
  border-left: 1px solid rgba(255,255,255,.06);
  transform: translateX(100%);
  transition: transform .35s var(--ease-spring);
  display: flex; flex-direction: column;
  padding: 18px;
}
.ti-drawer.active { transform: translateX(0); }
.ti-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  margin-bottom: 16px;
}
.ti-drawer-close {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,.05); color: #fff; border: 0;
  font-size: 20px; cursor: pointer;
}
.ti-drawer-nav { display: flex; flex-direction: column; gap: 4px; }
.ti-drawer-nav a {
  padding: 14px 16px; border-radius: 10px; color: #E2E8F0;
  font-size: 15px; font-weight: 500;
  transition: background .2s ease;
}
.ti-drawer-nav a:hover { background: rgba(255,255,255,.05); color: #38BDF8; }
.ti-drawer-cta { margin-top: auto; padding-top: 18px; }

body.drawer-open { overflow: hidden; }

/* spacer for fixed nav */
main { padding-top: 0; }
.hero-v2 { padding-top: 72px; }

/* ═══════════════════════════════════════════════════════════════════
   HERO — KINETIC SUBLIME
   ═══════════════════════════════════════════════════════════════════ */
.hero-v2 {
  position: relative; overflow: hidden;
  min-height: auto;
  background: #020617;
  color: #fff;
}

/* Layer 1 — Nebula */
.sublime-nebula {
  position: absolute; inset: -50%; width: 200%; height: 200%;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(13, 71, 161, .42) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(67, 56, 202, .26) 0%, transparent 60%),
    radial-gradient(ellipse 70% 60% at 50% 90%, rgba(56, 189, 248, .16) 0%, transparent 65%);
  animation: sublimeNebula 28s ease-in-out infinite;
  will-change: transform; pointer-events: none; z-index: 0;
}
@keyframes sublimeNebula {
  0%,100% { transform: translate(0,0) scale(1) rotate(0deg); }
  25%     { transform: translate(3%,-2%) scale(1.04) rotate(.5deg); }
  50%     { transform: translate(-2%,3%) scale(.97) rotate(-.3deg); }
  75%     { transform: translate(1%,-1.5%) scale(1.02) rotate(.2deg); }
}

/* Layer 2 — Aurora */
.sublime-aurora {
  position: absolute; inset: -30%; width: 160%; height: 160%;
  background:
    radial-gradient(ellipse 120% 35% at 30% 50%, rgba(29, 78, 216, .32) 0%, transparent 50%),
    radial-gradient(ellipse 100% 40% at 75% 30%, rgba(124, 58, 237, .18) 0%, transparent 50%);
  filter: blur(80px);
  animation: sublimeAurora 20s ease-in-out infinite;
  will-change: transform, opacity; pointer-events: none; z-index: 0;
}
@keyframes sublimeAurora {
  0%,100% { transform: translateX(0) scaleY(1); opacity: .65; }
  33%     { transform: translateX(5%) scaleY(1.2); opacity: 1; }
  66%     { transform: translateX(-4%) scaleY(.85); opacity: .7; }
}

/* Layer 3 — Caustics */
.sublime-caustics {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle 350px at 20% 30%, rgba(125, 211, 252, .12) 0%, transparent 100%),
    radial-gradient(circle 250px at 80% 65%, rgba(129, 140, 248, .08) 0%, transparent 100%),
    radial-gradient(circle 180px at 50% 50%, rgba(56, 189, 248, .06) 0%, transparent 100%);
  animation: sublimeCaustics 12s ease-in-out infinite;
  will-change: transform, opacity; pointer-events: none; z-index: 0;
}
@keyframes sublimeCaustics {
  0%,100% { opacity: .45; transform: scale(1) rotate(0deg); }
  50%     { opacity: 1; transform: scale(1.06) rotate(.5deg); }
}

/* Film grain */
.sublime-grain {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 1;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* Breathing horizon */
.sublime-horizon {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; z-index: 2;
  background: linear-gradient(90deg,
    transparent 0%, rgba(29, 78, 216, .35) 15%,
    rgba(56, 189, 248, .85) 50%,
    rgba(29, 78, 216, .35) 85%, transparent 100%);
  animation: horizonPulse 6s ease-in-out infinite;
}
.sublime-horizon::after {
  content: ''; position: absolute; inset: -6px 15% -6px;
  background: rgba(56, 189, 248, .14);
  filter: blur(14px);
  animation: horizonGlow 6s ease-in-out infinite;
}
@keyframes horizonPulse { 0%,100%{opacity:.55} 50%{opacity:1} }
@keyframes horizonGlow  { 0%,100%{opacity:.3;transform:scaleX(.85)} 50%{opacity:1;transform:scaleX(1.15)} }

/* hero content z-layer */
.hero-v2 > .hero-content-wrap { position: relative; z-index: 1; width: 100%; }

/* glow separator at hero bottom */
.hero-glow-sep {
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px; z-index: 2;
  background: linear-gradient(90deg, transparent 0%, rgba(29, 78, 216, .55) 25%, rgba(56, 189, 248, .8) 50%, rgba(29, 78, 216, .55) 75%, transparent 100%);
}
.hero-glow-sep::after {
  content: ''; position: absolute; inset: -4px 20% -4px;
  background: rgba(56, 189, 248, .2); filter: blur(12px);
}

/* ── ANNOUNCEMENT BADGE ───────────────────────────────────────────── */
@keyframes heroFadeUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }
@keyframes badgePulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.6;transform:scale(.82)} }

.hero-announce {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 8px;
  background: rgba(29,78,216,.12);
  border: 1px solid rgba(56,189,248,.3);
  border-radius: 9999px;
  font-size: 12px; font-weight: 600; color: #93C5FD;
  letter-spacing: .04em;
  opacity: 0;
  animation: heroFadeUp .65s .05s var(--ease-spring) forwards;
}
.hero-announce-pulse {
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(16,185,129,.14); border: 1px solid rgba(16,185,129,.3);
  flex-shrink: 0;
}
.hero-announce-pulse::after {
  content:''; width: 8px; height: 8px; border-radius: 50%;
  background: #10B981; animation: badgePulse 2.2s ease-in-out infinite;
}
.hero-announce-sep { width: 1px; height: 12px; background: rgba(255,255,255,.15); }
.hero-announce-new {
  padding: 2px 8px; border-radius: 9999px;
  background: linear-gradient(135deg, rgba(29,78,216,.5), rgba(67,56,202,.5));
  font-size: 10px; font-weight: 700; color: #C7D2FE; letter-spacing: .06em;
  border: 1px solid rgba(56,189,248,.3);
}
@media (max-width: 640px) {
  .hero-announce > *:nth-child(n+3) { display: none; }
}

/* ── EYEBROW ──────────────────────────────────────────────────────── */
.hero-eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: #7DD3FC;
  margin: 0 0 18px;
  opacity: 0;
  animation: heroFadeUp .65s .15s var(--ease-spring) forwards;
}

/* ── HEADLINE ─────────────────────────────────────────────────────── */
.hero-h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  font-weight: 800; line-height: 1.05; letter-spacing: -.035em;
  color: #F0F6FF; margin-bottom: 0;
}
.hero-word { display: block; overflow: hidden; padding-bottom: .08em; }
.hero-word-inner {
  display: block;
  opacity: 0; transform: translateY(100%);
  animation: heroWordSlide .8s var(--ease-spring) forwards;
}
@keyframes heroWordSlide { to { opacity: 1; transform: translateY(0); } }

/* ── SUBTEXT ──────────────────────────────────────────────────────── */
.hero-sub {
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  color: #94A3B8; line-height: 1.7; max-width: 560px;
  opacity: 0; animation: heroFadeUp .8s .65s var(--ease-spring) forwards;
}
.hero-sub b { color: #E2E8F0; font-weight: 600; }

/* ── CTAs ─────────────────────────────────────────────────────────── */
.hero-ctas { opacity: 0; animation: heroFadeUp .8s .8s var(--ease-spring) forwards; }

.hero-btn-primary {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 28px; border-radius: 9999px;
  background: linear-gradient(135deg, #1D4ED8 0%, #4338CA 100%);
  color: #fff; font-weight: 700; font-size: 15px;
  letter-spacing: -.005em;
  box-shadow: 0 0 0 1px rgba(56,189,248,.4),
              0 8px 32px rgba(29,78,216,.45),
              inset 0 1px 0 rgba(255,255,255,.18);
  transition: transform .28s var(--ease-spring),
              box-shadow .28s var(--ease-spring),
              filter .28s ease;
  position: relative; overflow: hidden;
  cursor: pointer; border: 0;
}
.hero-btn-primary::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(to bottom, rgba(255,255,255,.14), rgba(255,255,255,0));
  pointer-events: none;
}
.hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(56,189,248,.6),
              0 16px 48px rgba(29,78,216,.6),
              inset 0 1px 0 rgba(255,255,255,.22);
  filter: brightness(1.05);
}
.hero-btn-primary svg { transition: transform .2s ease; }
.hero-btn-primary:hover svg { transform: translateX(4px); }

.hero-btn-secondary {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 9999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.13);
  color: #CBD5E1; font-weight: 500; font-size: 15px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: all .22s ease;
  cursor: pointer;
}
.hero-btn-secondary:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(56,189,248,.4);
  color: #fff;
}

/* ── TRUST ROW — industry chips ───────────────────────────────────── */
.hero-trust {
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.08);
  opacity: 0;
  animation: heroFadeUp .8s 1s var(--ease-spring) forwards;
}
.hero-trust-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: #64748B;
  margin: 0 0 12px;
}
.hero-trust-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.hero-trust-chips span {
  display: inline-flex; align-items: center;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(125, 211, 252, .06);
  border: 1px solid rgba(125, 211, 252, .18);
  font-size: 12px; font-weight: 600;
  color: #BFE7FF; letter-spacing: .02em;
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.hero-trust-chips span:hover {
  background: rgba(125, 211, 252, .14);
  border-color: rgba(125, 211, 252, .4);
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════════════
   HERO PRODUCT — Browser dashboard + floating phone widget
   ═══════════════════════════════════════════════════════════════════ */
.hero-stage-wrap {
  position: relative; min-width: 0;
  opacity: 0;
  animation: stageReveal 1.2s .35s var(--ease-spring) forwards;
}
@keyframes stageReveal {
  from { opacity: 0; transform: translateY(40px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.hero-v2 .hero-content-wrap > div > .grid > * { min-width: 0; }

/* ── Browser frame ──────────────────────────────────────────────── */
.hero-browser {
  margin: 0; position: relative;
  background: #080F1C;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px; overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.04),
    0 40px 96px rgba(0,0,0,.85),
    0 0 80px rgba(29,78,216,.18),
    inset 0 1px 0 rgba(255,255,255,.07);
}
.hb-chrome {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  background: #0D1829;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.hb-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.hb-dot.dot-r { background: rgba(239, 68, 68, .55); }
.hb-dot.dot-y { background: rgba(234, 179, 8, .55); }
.hb-dot.dot-g { background: rgba(34, 197, 94, .55); }
.hb-url {
  flex: 1; height: 26px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: #64748B;
}
.hb-lock { width: 11px; height: 11px; color: #10B981; flex-shrink: 0; }
.hb-url-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-action {
  width: 26px; height: 26px; border-radius: 6px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
}

/* ── App body ───────────────────────────────────────────────────── */
.hb-body {
  display: grid;
  grid-template-columns: 168px 1fr;
  min-height: 380px;
}
.hb-side {
  background: #0A1424;
  border-right: 1px solid rgba(255,255,255,.05);
  padding: 14px 12px;
}
.hb-ws {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 8px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  margin-bottom: 14px;
}
.hb-ws-mark {
  width: 26px; height: 26px; border-radius: 6px;
  background: linear-gradient(135deg, #1D4ED8, #4338CA);
  flex-shrink: 0;
  position: relative;
}
.hb-ws-mark::after {
  content: ''; position: absolute; inset: 7px;
  background: #fff; border-radius: 50%;
}
.hb-ws-name { font-size: 12px; font-weight: 700; color: #E2E8F0; margin: 0; line-height: 1.1; }
.hb-ws-region { font-size: 10px; color: #64748B; margin: 2px 0 0; line-height: 1.1; }
.hb-nav { display: flex; flex-direction: column; gap: 1px; margin: 0; padding: 0; list-style: none; }
.hb-nav li {
  font-size: 12px; color: #64748B;
  padding: 8px 10px; border-radius: 8px;
  cursor: default; transition: background .2s ease, color .2s ease;
}
.hb-nav li.active {
  background: linear-gradient(90deg, rgba(29, 78, 216, .25), rgba(29, 78, 216, .05));
  color: #BFE7FF;
  border-left: 2px solid #38BDF8;
  padding-left: 8px;
}

/* ── Main panel ─────────────────────────────────────────────────── */
.hb-main { padding: 18px 18px; overflow: hidden; }
.hb-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 14px;
}
.hb-crumb {
  font-size: 11px; color: #64748B;
  letter-spacing: .04em; margin: 0 0 4px;
  font-weight: 500;
}
.hb-crumb span { color: #475569; }
.hb-title {
  font-size: 16px; font-weight: 700;
  color: #F1F5F9; letter-spacing: -.015em;
  margin: 0;
}
.hb-live {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px;
  background: rgba(16,185,129,.1);
  border: 1px solid rgba(16,185,129,.22);
  border-radius: 999px;
  font-size: 10px; font-weight: 600;
  color: #10B981;
  white-space: nowrap;
}
.hb-live-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #10B981;
  animation: badgePulse 2s ease-in-out infinite;
}

.hb-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; margin-bottom: 14px;
}
.hb-stat {
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  padding: 10px 12px;
}
.hb-stat-num {
  display: block;
  font-size: 18px; font-weight: 800;
  color: #E2E8F0; line-height: 1;
  letter-spacing: -.025em;
  margin-bottom: 4px;
}
.hb-stat-lbl {
  display: block;
  font-size: 9.5px; font-weight: 600;
  color: #64748B;
  text-transform: uppercase; letter-spacing: .08em;
}

.hb-rows { display: flex; flex-direction: column; gap: 5px; margin: 0; padding: 0; list-style: none; }
.hb-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center; gap: 10px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 8px;
  padding: 8px 12px;
}
.hb-row-ico {
  width: 18px; height: 22px; flex-shrink: 0;
  background: linear-gradient(180deg, #1E3A8A, #1D4ED8);
  border-radius: 2px; position: relative;
}
.hb-row-ico::before {
  content: ''; position: absolute; top: 4px; left: 3px; right: 3px; height: 1.5px;
  background: rgba(255,255,255,.4); border-radius: 1px;
  box-shadow: 0 4px 0 rgba(255,255,255,.3), 0 8px 0 rgba(255,255,255,.2);
}
.hb-row-name {
  font-size: 11.5px; font-weight: 500; color: #CBD5E1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hb-row-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px; color: #475569;
  white-space: nowrap;
}
.hb-pill {
  font-size: 9.5px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
  letter-spacing: .04em;
}
.hb-pill.ok   { background: rgba(16,185,129,.12); color: #10B981; border: 1px solid rgba(16,185,129,.22); }
.hb-pill.busy { background: rgba(245,158,11,.12); color: #F59E0B; border: 1px solid rgba(245,158,11,.22); }
.hb-pill.err  { background: rgba(239,68,68,.12);  color: #EF4444; border: 1px solid rgba(239,68,68,.22); }

/* ── Floating phone widget ──────────────────────────────────────── */
@keyframes phoneFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

.hero-phone {
  position: absolute;
  right: -32px; bottom: -36px;
  width: 200px; z-index: 20;
  margin: 0;
  animation: phoneFloat 5.5s ease-in-out 1s infinite;
}
.hp-shell {
  position: relative;
  background: #0B1220;
  border-radius: 30px;
  padding: 8px;
  border: 2px solid #1E293B;
  box-shadow:
    0 28px 70px rgba(0,0,0,.7),
    0 0 0 1px rgba(255,255,255,.06),
    inset 0 1px 0 rgba(255,255,255,.08);
}
.hp-notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 56px; height: 14px;
  background: #000;
  border-radius: 0 0 12px 12px;
  z-index: 3;
}
.hp-screen {
  background: linear-gradient(180deg, #0F172A, #06091A);
  border-radius: 22px; overflow: hidden;
  aspect-ratio: 9 / 18.5;
  padding: 28px 10px 12px;
  display: flex;
}

.hp-widget {
  flex: 1; display: flex; flex-direction: column;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  overflow: hidden;
  min-height: 0;
}
.hpw-head {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 10px;
  background: linear-gradient(135deg, #0D47A1, #1565C0);
  color: #fff;
}
.hpw-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff;
  position: relative; flex-shrink: 0;
}
.hpw-avatar::before, .hpw-avatar::after {
  content: ''; position: absolute;
  background: #0D47A1;
}
.hpw-avatar::before {
  top: 6px; left: 5px;
  width: 4px; height: 4px; border-radius: 50%;
  box-shadow: 8px 0 0 #0D47A1;
}
.hpw-avatar::after {
  bottom: 5px; left: 5px; right: 5px; height: 4px;
  border-radius: 0 0 6px 6px;
}
.hpw-name { font-size: 10.5px; font-weight: 700; margin: 0; line-height: 1.1; }
.hpw-status {
  font-size: 8.5px; margin: 1px 0 0; line-height: 1.1;
  color: rgba(255,255,255,.75);
  display: inline-flex; align-items: center; gap: 4px;
}
.hpw-status span {
  width: 5px; height: 5px; border-radius: 50%;
  background: #34D399;
  animation: badgePulse 2s ease-in-out infinite;
}
.hpw-body {
  flex: 1; padding: 10px 8px;
  display: flex; flex-direction: column; gap: 7px;
  overflow: hidden;
}
.hpw-msg {
  font-size: 10px; line-height: 1.35;
  padding: 7px 10px; border-radius: 11px;
  max-width: 86%;
  word-wrap: break-word;
}
.hpw-msg-bot {
  background: rgba(255,255,255,.06);
  color: #E2E8F0;
  border: 1px solid rgba(255,255,255,.04);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.hpw-msg-user {
  background: linear-gradient(135deg, #1D4ED8, #4338CA);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.hpw-typing {
  display: inline-flex; align-items: center; gap: 3px;
  margin-left: 4px;
}
.hpw-typing span {
  width: 4px; height: 4px; border-radius: 50%;
  background: #7DD3FC;
  animation: typingBounce 1.2s ease-in-out infinite;
}
.hpw-typing span:nth-child(2) { animation-delay: .15s; }
.hpw-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typingBounce {
  0%,100% { opacity: .35; transform: translateY(0); }
  50%     { opacity: 1; transform: translateY(-2px); }
}
.hpw-source {
  display: inline-block;
  margin-top: 6px; padding: 2px 7px;
  background: rgba(56,189,248,.12);
  border: 1px solid rgba(56,189,248,.25);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px; color: #7DD3FC;
}
.hpw-input {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 10px;
  border-top: 1px solid rgba(255,255,255,.05);
  font-size: 9.5px; color: #475569;
  background: rgba(0,0,0,.2);
}
.hpw-send {
  width: 18px; height: 18px; border-radius: 50%;
  background: linear-gradient(135deg, #1D4ED8, #4338CA);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}

@media (max-width: 1100px) {
  .hero-phone { right: -8px; bottom: -28px; width: 168px; }
}
@media (max-width: 768px) {
  .hero-phone { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   MARQUEE
   ═══════════════════════════════════════════════════════════════════ */
.bg-ti-950 { background: #020617; }
.bg-ti-50  { background: #E8F4FF; }

.logo-marquee-wrap {
  flex: 1; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.logo-marquee {
  display: inline-flex; gap: 14px;
  animation: marquee 38s linear infinite;
  width: max-content;
}
.logo-pill-dark {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 9999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: #CBD5E1; font-size: 13px; font-weight: 500;
  white-space: nowrap;
}
.logo-pill-dark .dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════════════════════════
   SECTION GLOW DIVIDER
   ═══════════════════════════════════════════════════════════════════ */
.section-glow-divider {
  height: 1px; position: relative; overflow: visible;
  background: linear-gradient(90deg, transparent 0%, rgba(56, 189, 248, .15) 20%, rgba(67, 56, 202, .3) 50%, rgba(56, 189, 248, .15) 80%, transparent 100%);
}
.section-glow-divider::after {
  content: ''; position: absolute; inset: -3px 30% -3px;
  background: rgba(56, 189, 248, .08); filter: blur(6px);
}

/* ═══════════════════════════════════════════════════════════════════
   REVEAL SYSTEM
   ═══════════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s ease, transform .7s var(--ease-spring);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-scale {
  opacity: 0; transform: scale(.92);
  transition: opacity .7s ease, transform .7s var(--ease-spring);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

.stagger-1 { transition-delay: 0s; }
.stagger-2 { transition-delay: .08s; }
.stagger-3 { transition-delay: .16s; }
.stagger-4 { transition-delay: .24s; }
.stagger-5 { transition-delay: .32s; }
.stagger-6 { transition-delay: .4s; }

/* ═══════════════════════════════════════════════════════════════════
   PROBLEM v2 — light theme, severity-tinted, vs-comparison
   Page rhythm: dark hero → marquee → WHITE problem → light-blue solution
   Amber accents signal urgency on the white surface
   Cards use flex-column so implication line aligns to the bottom
   regardless of body length
   ═══════════════════════════════════════════════════════════════════ */
.problem-v2 {
  position: relative; overflow: hidden;
  background: #FFFFFF;
  color: #0F172A;
  padding: clamp(80px, 10vw, 140px) 0;
  border-top: 1px solid #DDE9F5;
}

/* atmosphere — barely-perceptible BLUE tints over white (in-brand) */
.problem-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.problem-aurora-1 {
  position: absolute; top: -20%; left: -10%;
  width: 70%; height: 70%;
  background: radial-gradient(ellipse, rgba(29, 78, 216, .08) 0%, transparent 65%);
  filter: blur(90px);
  animation: sublimeNebula 32s ease-in-out infinite;
}
.problem-aurora-2 {
  position: absolute; bottom: -25%; right: -10%;
  width: 70%; height: 70%;
  background: radial-gradient(ellipse, rgba(56, 189, 248, .07) 0%, transparent 65%);
  filter: blur(90px);
  animation: sublimeAurora 28s ease-in-out infinite;
}
.problem-grain {
  position: absolute; inset: 0;
  opacity: .025; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* warning label — small red signal, restrained */
.label-warn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .375rem 1rem;
  background: #FEE2E2;
  color: #991B1B;
  font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  border-radius: 9999px;
  border: 1px solid #FCA5A5;
}

/* heading — uses the same brand-blue gradient as every other section */
.problem-h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800; line-height: 1.06;
  letter-spacing: -.03em;
  color: #0F172A;
  margin: 0 0 18px;
}
.problem-accent {
  background: linear-gradient(135deg, #38BDF8, #1D4ED8 60%, #4338CA);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.problem-sub {
  font-size: 1.0625rem; line-height: 1.6;
  color: #64748B;
  max-width: 560px;
  margin: 0 auto;
}

/* cards grid */
.problem-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 64px;
  align-items: stretch;
}
@media (max-width: 1100px) { .problem-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .problem-cards { grid-template-columns: 1fr; } }

/* CARD — flex-column so implication anchors to bottom on any height */
.prob-v2 {
  position: relative;
  display: flex; flex-direction: column;
  height: 100%;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 26px 24px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .04),
              0 4px 16px rgba(15, 23, 42, .04);
  transition: transform .35s var(--ease-spring),
              border-color .35s ease,
              box-shadow .35s ease;
  overflow: hidden;
}
.prob-v2::before {
  content: ''; position: absolute; top: 0; left: 16px; right: 16px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38BDF8, transparent);
  opacity: .55;
  transition: opacity .35s ease, background .35s ease;
}
.prob-v2:hover {
  transform: translateY(-4px);
  border-color: #BFE7FF;
  box-shadow: 0 12px 36px rgba(29, 78, 216, .12),
              0 4px 12px rgba(15, 23, 42, .06);
}
.prob-v2:hover::before {
  opacity: 1;
  background: linear-gradient(90deg, transparent, #1D4ED8, transparent);
}

/* Icon — brand-blue family, matches .arch-card-ico and .inside accents */
.prob-v2-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #E8F4FF, #BFE7FF);
  border: 1px solid #BFE7FF;
  color: #0D47A1;
  margin-bottom: 18px;
  transition: transform .35s var(--ease-spring), background .35s ease, color .35s ease, border-color .35s ease;
  flex-shrink: 0;
}
.prob-v2-ico svg { width: 22px; height: 22px; }
.prob-v2:hover .prob-v2-ico {
  background: linear-gradient(135deg, #1D4ED8, #4338CA);
  color: #fff;
  border-color: transparent;
  transform: rotate(-6deg) scale(1.05);
}

/* Tag — brand-blue mono-caps, matches .inside-tag and .arch-tier-label */
.prob-v2-tag {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: #0D47A1;
  margin-bottom: 8px;
}
.prob-v2-title {
  font-size: 17px; font-weight: 700;
  color: #0F172A;
  letter-spacing: -.015em;
  line-height: 1.25;
  margin: 0 0 12px;
}
/* body grows to fill — pushes implication to the bottom */
.prob-v2-body {
  flex: 1 1 auto;
  font-size: 13.5px; line-height: 1.65;
  color: #475569;
  margin: 0 0 18px;
}
/* Inline code (text-davinci-003 etc.) — brand blue, in family */
.prob-v2-body code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #0D47A1;
  background: #E8F4FF;
  padding: 1px 5px; border-radius: 4px;
  border: 1px solid #BFE7FF;
}
/* Implication — the ONE deliberate severity signal, brand red */
.prob-v2-implication {
  display: inline-flex; align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 700;
  letter-spacing: .04em;
  color: #D32F2F;
  padding-top: 14px;
  border-top: 1px dashed #E2E8F0;
  margin: 0;
  width: 100%;
}

/* ── COMPARISON STRIP — light, equal columns ────────────────────── */
.problem-vs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: stretch;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 22px;
  padding: 32px;
  margin-bottom: 56px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .04),
              0 8px 24px rgba(15, 23, 42, .04);
}
.problem-vs::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 50% at 50% 0%, rgba(56, 189, 248, .04), transparent 70%);
}
@media (max-width: 820px) {
  .problem-vs {
    grid-template-columns: 1fr; gap: 16px;
    padding: 24px;
  }
}

.vs-col { display: flex; flex-direction: column; gap: 16px; position: relative; z-index: 1; }
.vs-col header { display: flex; flex-direction: column; gap: 6px; }
.vs-tag {
  display: inline-block; align-self: flex-start;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.vs-tag-them {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}
.vs-tag-us {
  background: #E8F4FF;
  color: #0D47A1;
  border: 1px solid #BFE7FF;
}
.vs-sub {
  font-size: 12px; color: #64748B;
  margin: 0;
}
.vs-col ul { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; list-style: none; }
.vs-col li {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed #E2E8F0;
  font-size: 13.5px;
}
.vs-col li:last-child { border-bottom: 0; }
.vs-col li span { color: #64748B; flex: 1; }
.vs-col li b {
  font-weight: 700; text-align: right;
  color: #0F172A;
}
.vs-col-them li b { color: #64748B; }   /* slate — the "dull" option */
.vs-col-us   li b { color: #0D47A1; }   /* brand blue — the "bright" option */

.vs-divider {
  width: 1px;
  background: linear-gradient(180deg, transparent, #E2E8F0, transparent);
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.vs-divider-vs {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 50%;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  color: #94A3B8;
  text-transform: lowercase;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .06);
}
@media (max-width: 820px) {
  .vs-divider { width: 100%; height: 1px; }
  .vs-divider-vs { position: relative; transform: none; }
}

/* ── BRIDGE — pull-quote + transition link, on white ────────────── */
.problem-bridge {
  text-align: center;
  max-width: 860px; margin: 0 auto;
}
.problem-thesis {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.25rem, 2.4vw, 1.875rem);
  font-weight: 500; font-style: italic;
  line-height: 1.4; letter-spacing: -.012em;
  color: #1E293B;
  margin: 0 0 28px;
  position: relative;
  padding: 0 18px;
}
.problem-thesis::before, .problem-thesis::after {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: normal;
  font-size: 2.2em;
  line-height: 0;
  color: rgba(29, 78, 216, .55);
  position: relative;
  top: .25em;
  margin: 0 .15em;
}
.problem-thesis::before { content: '\201C'; }
.problem-thesis::after  { content: '\201D'; }
.problem-thesis em {
  font-style: italic;
  background: linear-gradient(135deg, #38BDF8, #1D4ED8 60%, #4338CA);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  font-weight: 700;
}
.problem-bridge-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  background: linear-gradient(135deg, #1D4ED8, #4338CA);
  border: 0;
  border-radius: 9999px;
  font-size: 14px; font-weight: 700;
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(29, 78, 216, .28),
              inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: all .25s var(--ease-spring);
}
.problem-bridge-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(29, 78, 216, .4),
              inset 0 1px 0 rgba(255, 255, 255, .22);
  filter: brightness(1.04);
}
.problem-bridge-link svg { transition: transform .25s ease; }
.problem-bridge-link:hover svg { transform: translateX(3px); }

/* ═══════════════════════════════════════════════════════════════════
   ARCHITECTURE — How it works (3-tier flow inside perimeter)
   Inputs (5) → Brain → Outputs (2), all inside "Your infrastructure"
   ═══════════════════════════════════════════════════════════════════ */
.arch-section {
  position: relative; overflow: hidden;
  background: #E8F4FF;
  padding: clamp(80px, 10vw, 140px) 0;
}
.arch-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(13, 71, 161, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 71, 161, .035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 70% at center, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at center, #000 30%, transparent 90%);
}

/* ── Section heading ──────────────────────────────────────────────── */
.arch-h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800; line-height: 1.06; letter-spacing: -.03em;
  color: #0F172A; margin: 0 0 18px;
}
.arch-sub {
  font-size: 1.0625rem; line-height: 1.6;
  color: #475569;
  max-width: 620px; margin: 0 auto;
}

/* ── Container ────────────────────────────────────────────────────── */
.arch {
  max-width: 1100px;
  margin: 0 auto;
}

/* ── Perimeter — "Your infrastructure" wrapper ───────────────────── */
.arch-perimeter {
  position: relative;
  border: 1.5px dashed rgba(29, 78, 216, .35);
  border-radius: 24px;
  padding: 48px 40px 40px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .6), rgba(255, 255, 255, .85)),
    radial-gradient(circle at 50% 0%, rgba(56, 189, 248, .12), transparent 60%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .8) inset,
    0 24px 60px rgba(13, 71, 161, .08);
}
@media (max-width: 700px) {
  .arch-perimeter { padding: 40px 18px 28px; }
}

.arch-perimeter-tag {
  position: absolute; top: -14px; left: 32px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px;
  background: #E8F4FF;
  border: 1px solid #BFE7FF;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: #0D47A1;
}
.arch-perimeter-tag svg { width: 13px; height: 13px; color: #1D4ED8; }

.arch-perimeter-tag-r {
  left: auto; right: 32px;
  background: #FEF3C7;
  border-color: #FCD34D;
  color: #B45309;
}
.apt-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #B45309;
  box-shadow: 0 0 0 3px rgba(180, 83, 9, .15);
}
@media (max-width: 700px) {
  .arch-perimeter-tag-r { display: none; }
  .arch-perimeter-tag { left: 50%; transform: translateX(-50%); }
}

/* ── Tier scaffolding ─────────────────────────────────────────────── */
.arch-tier {
  position: relative;
}
.arch-tier-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
}
.arch-tier-head-center { justify-content: center; margin-bottom: 12px; }

.arch-tier-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 700;
  background: #0D47A1; color: #fff;
  border-radius: 50%; letter-spacing: 0;
}
.arch-tier-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: #0D47A1;
}

/* ── Cards — inputs row (5) and outputs row (2) ───────────────────── */
.arch-cards {
  display: grid;
  gap: 12px;
}
.arch-cards-5 { grid-template-columns: repeat(5, 1fr); }
.arch-cards-2 {
  grid-template-columns: repeat(2, minmax(0, 320px));
  justify-content: center;
}
@media (max-width: 900px) {
  .arch-cards-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .arch-cards-5 { grid-template-columns: repeat(2, 1fr); }
  .arch-cards-2 { grid-template-columns: 1fr; }
}

.arch-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid #DDE9F5;
  border-radius: 14px;
  padding: 18px 16px;
  text-align: center;
  transition: transform .3s var(--ease-spring),
              border-color .3s ease,
              box-shadow .3s ease;
  box-shadow: 0 1px 3px rgba(13, 71, 161, .04);
}
.arch-card:hover {
  transform: translateY(-3px);
  border-color: #38BDF8;
  box-shadow: 0 14px 30px rgba(13, 71, 161, .12);
}
.arch-card-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #E8F4FF, #BFE7FF);
  border: 1px solid #BFE7FF;
  color: #0D47A1;
  margin-bottom: 10px;
  transition: transform .3s var(--ease-spring), background .3s ease;
}
.arch-card-ico svg { width: 19px; height: 19px; }
.arch-card:hover .arch-card-ico {
  background: linear-gradient(135deg, #1D4ED8, #4338CA);
  color: #fff;
  border-color: transparent;
  transform: scale(1.06);
}
.arch-card h3 {
  font-size: 14px; font-weight: 700;
  color: #0F172A; letter-spacing: -.01em;
  line-height: 1.2;
  margin: 0 0 4px;
}
.arch-card p {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; color: #64748B;
  letter-spacing: .02em;
  margin: 0;
}

/* Output cards: slightly larger + darker accent */
.arch-card-out {
  padding: 22px 20px;
  background: linear-gradient(160deg, #FFFFFF 0%, #F0F9FF 100%);
}
.arch-card-out h3 { font-size: 15.5px; }
.arch-card-out p { font-family: 'Inter', sans-serif; font-size: 12.5px; color: #475569; letter-spacing: 0; }

/* ── Flow lines (SVG with arrowheads) ─────────────────────────────── */
.arch-flow {
  display: block;
  width: 100%; height: 90px;
  margin: 12px 0;
}
.arch-flow-converge { height: 90px; }
.arch-flow-diverge  { height: 80px; }
.arch-line {
  fill: none;
  stroke: #1D4ED8;
  stroke-width: 1.5;
  stroke-dasharray: 5 6;
  stroke-linecap: round;
  opacity: .55;
  animation: archFlow 4s linear infinite;
  animation-delay: var(--d, 0s);
}
@keyframes archFlow {
  from { stroke-dashoffset: 110; }
  to   { stroke-dashoffset: 0; }
}
@media (max-width: 600px) {
  /* on phone, the wide curves don't help — collapse to a thin vertical band */
  .arch-flow {
    height: 36px;
    background: linear-gradient(180deg, transparent, rgba(29, 78, 216, .4), transparent);
    background-size: 1.5px 100%;
    background-repeat: no-repeat;
    background-position: center;
  }
  .arch-flow svg, .arch-flow path { display: none; }
  .arch-flow::after {
    content: '↓'; display: block;
    text-align: center;
    color: #1D4ED8;
    font-weight: 700;
    line-height: 36px;
  }
}

/* ── Brain — the centerpiece ──────────────────────────────────────── */
.arch-tier-brain {
  display: flex; flex-direction: column; align-items: center;
}
.arch-brain {
  display: flex; align-items: center; gap: 28px;
  background: linear-gradient(160deg, #FFFFFF 0%, #F0F9FF 100%);
  border: 1px solid #BFE7FF;
  border-radius: 22px;
  padding: 24px 32px 24px 24px;
  width: 100%;
  max-width: 640px;
  box-shadow: 0 16px 44px rgba(13, 71, 161, .14);
  position: relative;
}
.arch-brain::before {
  content: ''; position: absolute; inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, #38BDF8, #1D4ED8, #4338CA);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
  opacity: .4;
}

.brain-vault {
  flex-shrink: 0;
  width: 140px; height: 140px;
}
.brain-vault svg { display: block; width: 100%; height: 100%; }

.brain-core-pulse {
  transform-origin: center;
  animation: brainCorePulse 3.5s ease-in-out infinite;
}
@keyframes brainCorePulse {
  0%, 100% { transform: scale(1);    opacity: .55; }
  50%      { transform: scale(1.12); opacity: .9; }
}
.brain-inner-spin {
  transform-origin: center;
  animation: spinRev 28s linear infinite;
}

.brain-meta { flex: 1; min-width: 0; }
.brain-name {
  font-size: 16px; font-weight: 800; color: #0F172A;
  letter-spacing: -.015em;
  margin: 8px 0 4px;
}
.brain-desc {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: #64748B;
  letter-spacing: .04em;
  margin: 0 0 14px;
}
.brain-pills {
  display: flex; flex-wrap: wrap; gap: 6px;
  list-style: none; padding: 0; margin: 0;
}
.brain-pills li {
  display: inline-flex; align-items: baseline; gap: 4px;
  padding: 5px 11px; border-radius: 999px;
  background: #E8F4FF;
  border: 1px solid #BFE7FF;
  font-size: 12px; font-weight: 500;
  color: #1565C0;
}
.brain-pills li b {
  font-weight: 800; color: #0D47A1; font-size: 13px;
}

@media (max-width: 700px) {
  .arch-brain {
    flex-direction: column; align-items: center;
    padding: 22px 20px; gap: 14px;
    text-align: center;
  }
  .brain-vault { width: 120px; height: 120px; }
  .arch-tier-head-center { margin-bottom: 4px; }
  .brain-pills { justify-content: center; }
}

/* ── Bottom thesis ────────────────────────────────────────────────── */
.arch-thesis {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 28px auto 0; padding: 14px 22px;
  max-width: 720px;
  background: rgba(13, 71, 161, .06);
  border: 1px solid rgba(13, 71, 161, .15);
  border-radius: 999px;
  font-size: 14px; line-height: 1.5;
  color: #1E293B;
  text-align: center;
}
.arch-thesis svg { width: 16px; height: 16px; color: #0D47A1; flex-shrink: 0; }
.arch-thesis strong {
  font-weight: 700; color: #0D47A1;
}
@media (max-width: 700px) {
  .arch-thesis { padding: 14px 18px; border-radius: 16px; }
}

/* ── CTA — escalates from hero (different label, different look) ── */
.arch-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px;
  background: #FFFFFF;
  border: 1.5px solid #1D4ED8;
  border-radius: 9999px;
  font-size: 14px; font-weight: 700;
  color: #0D47A1;
  transition: all .25s var(--ease-spring);
  box-shadow: 0 4px 12px rgba(13, 71, 161, .08);
}
.arch-cta:hover {
  background: #0D47A1; color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(13, 71, 161, .3);
}
.arch-cta svg { transition: transform .25s ease; }
.arch-cta:hover svg { transform: translateY(2px); }

/* ═══════════════════════════════════════════════════════════════════
   INSIDE — operator's view (Admin · Security · Deploy · Brand)
   2x2 grid, no holes, unified blue tint family, cards equal-height
   ═══════════════════════════════════════════════════════════════════ */
.inside-section { background: #FFFFFF; }

.inside-h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800; line-height: 1.06; letter-spacing: -.03em;
  color: #0F172A; margin: 0 0 18px;
}
.inside-sub {
  font-size: 1.0625rem; line-height: 1.6;
  color: #475569;
  max-width: 620px; margin: 0 auto;
}

.inside-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 880px) { .inside-grid { grid-template-columns: 1fr; } }

.inside-card {
  display: flex; flex-direction: column;
  height: 100%;
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #FFFFFF 0%, #F0F7FF 100%);
  border: 1px solid #DDE9F5;
  border-radius: 22px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .04),
              0 4px 16px rgba(15, 23, 42, .04);
  transition: transform .35s var(--ease-spring),
              border-color .35s ease,
              box-shadow .35s ease;
}
.inside-card:hover {
  transform: translateY(-4px);
  border-color: #BFE7FF;
  box-shadow: 0 16px 48px rgba(13, 71, 161, .12);
}

.inside-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.inside-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: #0D47A1;
}
.inside-tag-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #38BDF8;
  box-shadow: 0 0 6px #38BDF8;
}
.inside-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 600;
  letter-spacing: .06em;
  color: #1565C0;
  background: #E8F4FF;
  border: 1px solid #BFE7FF;
  padding: 4px 10px; border-radius: 999px;
}

.inside-title {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700; color: #0F172A;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin: 0 0 10px;
}
.inside-body {
  font-size: 14.5px; line-height: 1.6;
  color: #475569;
  margin: 0 0 22px;
}

.inside-viz {
  margin-top: auto;
  flex-shrink: 0;
}

/* ── ① Admin viz: mini panel mockup with 11 modules ───────────── */
.adm-panel {
  background: #06091A;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(13, 71, 161, .15);
}
.adm-panel-head {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 12px;
  background: #0D1829;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.adm-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, .25);
}
.adm-dot:nth-child(1) { background: rgba(239, 68, 68, .55); }
.adm-dot:nth-child(2) { background: rgba(234, 179, 8, .55); }
.adm-dot:nth-child(3) { background: rgba(34, 197, 94, .55); }
.adm-url {
  margin-left: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: #475569;
}
.adm-modules {
  list-style: none; margin: 0; padding: 10px 8px;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}
.adm-modules li {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px;
  font-size: 11.5px; font-weight: 500;
  color: #94A3B8;
  border-radius: 6px;
  transition: background .25s ease, color .25s ease;
}
.adm-modules li.active {
  background: linear-gradient(90deg, rgba(29, 78, 216, .35), rgba(29, 78, 216, .08));
  color: #BFE7FF;
}
.adm-i {
  width: 10px; height: 10px; border-radius: 2px;
  background: rgba(125, 211, 252, .25);
  flex-shrink: 0;
}
.adm-modules li.active .adm-i {
  background: #38BDF8;
  box-shadow: 0 0 6px #38BDF8;
}

/* ── ② Security viz: 10 layered bars ─────────────────────────── */
.sec-stack {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column;
  gap: 3px;
}
.sec-stack li {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center; gap: 12px;
  padding: 7px 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(13, 71, 161, .06), rgba(13, 71, 161, .02));
  border-left: 2px solid #1D4ED8;
  transition: background .25s ease, border-color .25s ease;
}
.sec-stack li:hover {
  background: linear-gradient(90deg, rgba(13, 71, 161, .12), rgba(13, 71, 161, .04));
  border-left-color: #38BDF8;
}
.sec-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 700;
  color: #1D4ED8;
  letter-spacing: .04em;
}
.sec-name {
  font-size: 12.5px; font-weight: 700;
  color: #0F172A;
}
.sec-meta {
  font-size: 10.5px;
  color: #64748B;
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: .02em;
}
@media (max-width: 700px) {
  .sec-stack li { grid-template-columns: 24px 1fr; gap: 8px; }
  .sec-meta { display: none; }
}

/* ── ③ Deployment viz: 5 horizontal package rows ─────────────── */
.deploy-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column;
  gap: 6px;
}
.deploy-list li {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  align-items: center; gap: 12px;
  padding: 10px 14px;
  background: #FFFFFF;
  border: 1px solid #DDE9F5;
  border-radius: 10px;
  transition: border-color .25s ease, transform .25s var(--ease-spring);
}
.deploy-list li:hover {
  border-color: #38BDF8;
  transform: translateX(2px);
}
.dep-name {
  font-size: 13px; font-weight: 700;
  color: #0D47A1;
  letter-spacing: -.01em;
}
.dep-meta {
  font-size: 11.5px;
  color: #64748B;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: .02em;
}
.dep-tag {
  font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 999px;
  background: #E8F4FF;
  color: #1565C0;
  border: 1px solid #BFE7FF;
  letter-spacing: .04em;
  text-transform: uppercase;
}
@media (max-width: 700px) {
  .deploy-list li { grid-template-columns: 80px 1fr; gap: 8px; }
  .dep-tag { display: none; }
}

/* ── ④ White-label viz: 4 brand widget bubbles ───────────────── */
.brand-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
@media (max-width: 700px) { .brand-row { grid-template-columns: repeat(2, 1fr); } }

.brand-bubble {
  position: relative;
  border-radius: 12px;
  padding: 14px 12px;
  min-height: 100px;
  display: flex; flex-direction: column; gap: 6px;
  border: 1px solid rgba(255, 255, 255, .25);
  box-shadow: 0 4px 14px rgba(15, 23, 42, .12), inset 0 1px 0 rgba(255, 255, 255, .15);
  transition: transform .3s var(--ease-spring);
}
.brand-bubble:hover {
  transform: translateY(-3px) scale(1.02);
}
.bb-head {
  display: block;
  width: 60%; height: 8px;
  background: rgba(255, 255, 255, .55);
  border-radius: 4px;
  margin-bottom: 4px;
}
.bb-msg {
  display: block;
  width: 90%; height: 6px;
  background: rgba(255, 255, 255, .35);
  border-radius: 3px;
}
.bb-msg.short { width: 60%; }

.bb-blue    { background: linear-gradient(160deg, #1D4ED8, #1E3A8A); }
.bb-emerald { background: linear-gradient(160deg, #059669, #047857); }
.bb-amber   { background: linear-gradient(160deg, #D97706, #B45309); }
.bb-violet  { background: linear-gradient(160deg, #7C3AED, #5B21B6); }

.brand-caption {
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 600;
  color: #64748B;
  letter-spacing: .04em;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   BRAIN — provider columns
   ═══════════════════════════════════════════════════════════════════ */
.brain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .brain-grid { grid-template-columns: 1fr; } }

.brain-col {
  background: #fff; border: 1px solid #E2E8F0;
  border-radius: 18px; padding: 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.05);
}
.brain-col header {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid #E2E8F0; padding-bottom: 14px; margin-bottom: 18px;
}
.brain-col h4 {
  font-size: 17px; font-weight: 700; color: #0F172A;
  letter-spacing: -.01em; margin: 0;
}
.brain-col header span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: #1D4ED8;
  letter-spacing: .1em; text-transform: uppercase;
  font-weight: 600;
}
.brain-col ul { display: grid; gap: 14px; }
.brain-col li { display: grid; gap: 2px; }
.brain-col b { font-size: 14px; font-weight: 700; color: #0F172A; letter-spacing: -.005em; }
.brain-col li span { font-size: 12.5px; color: #64748B; }

.brain-roles {
  background: #fff; border: 1px solid #E2E8F0;
  border-radius: 18px; padding: 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.05);
}
.brain-roles header { margin-bottom: 18px; }
.role-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.role-pills span {
  padding: 8px 16px; font-size: 13px; font-weight: 500;
  background: #F1F5F9; color: #334155;
  border: 1px solid #E2E8F0; border-radius: 999px;
  transition: all .25s ease;
}
.role-pills span:hover { background: #0D47A1; color: #fff; border-color: #0D47A1; }
.pill-feat {
  background: linear-gradient(135deg, #1D4ED8, #4338CA) !important;
  color: #fff !important;
  border-color: transparent !important;
}
.brain-foot {
  font-size: 14px; color: #64748B;
  padding-top: 18px; border-top: 1px solid #E2E8F0;
  margin: 0;
}
.brain-foot em { font-style: normal; font-weight: 600; color: #1D4ED8; }

/* ═══════════════════════════════════════════════════════════════════
   PLAN — 3-step horizontal timeline
   Proportional time-bar + 3 cards with arrows + result strip + CTA
   ═══════════════════════════════════════════════════════════════════ */
.plan-section { background: #FFFFFF; }

.plan-h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800; line-height: 1.06; letter-spacing: -.03em;
  color: #0F172A; margin: 0 0 18px;
}
.plan-sub {
  font-size: 1.0625rem; line-height: 1.6;
  color: #475569;
  max-width: 640px; margin: 0 auto;
}
.plan-sub code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
  color: #0D47A1; background: #E8F4FF;
  padding: 2px 6px; border-radius: 4px;
  border: 1px solid #BFE7FF;
}

/* ── Time totaler bar ─────────────────────────────────────────────── */
.plan-timer {
  max-width: 920px; margin: 0 auto 56px;
}
.plan-timer-bar {
  display: flex;
  height: 56px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #BFE7FF;
  box-shadow: 0 4px 14px rgba(13, 71, 161, .1),
              inset 0 1px 0 rgba(255, 255, 255, .15);
}
.plan-timer-seg {
  flex: 0 0 var(--w);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  border-right: 1px solid rgba(255,255,255,.22);
  transition: filter .25s ease;
}
.plan-timer-seg:last-child { border-right: 0; }
.plan-timer-seg:hover { filter: brightness(1.08); }
.seg-1 { background: linear-gradient(135deg, #0D47A1, #1565C0); }
.seg-2 { background: linear-gradient(135deg, #1565C0, #1976D2); }
.seg-3 { background: linear-gradient(135deg, #1976D2, #29B6F6); }
.seg-label {
  font-size: 14px; font-weight: 800;
  letter-spacing: .02em;
}
.seg-name {
  font-size: 9.5px;
  letter-spacing: .14em; text-transform: uppercase;
  opacity: .82;
  margin-top: 2px;
}
@media (max-width: 600px) {
  .plan-timer-bar { height: 48px; }
  .seg-label { font-size: 12px; }
  .seg-name { font-size: 8.5px; }
}

.plan-timer-meta {
  display: flex; justify-content: space-between;
  margin-top: 10px; padding: 0 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: #94A3B8;
  letter-spacing: .06em;
}
.plan-total { color: #0D47A1; font-weight: 700; }

/* ── 3-card grid ──────────────────────────────────────────────────── */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
  align-items: stretch;
}
@media (max-width: 900px) { .plan-grid { grid-template-columns: 1fr; gap: 36px; } }

.plan-step {
  display: flex; flex-direction: column;
  height: 100%;
  background: linear-gradient(160deg, #FFFFFF 0%, #F0F7FF 100%);
  border: 1px solid #DDE9F5;
  border-radius: 18px;
  padding: 24px;
  position: relative;
  transition: transform .35s var(--ease-spring),
              border-color .35s ease,
              box-shadow .35s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .04),
              0 4px 16px rgba(15, 23, 42, .04);
}
.plan-step:hover {
  transform: translateY(-4px);
  border-color: #BFE7FF;
  box-shadow: 0 16px 48px rgba(13, 71, 161, .12);
}

/* connecting arrow between cards (desktop: →, mobile: ↓) */
.plan-grid > .plan-step:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -22px; top: 50%;
  transform: translateY(-50%);
  width: 24px; height: 24px;
  background: #FFFFFF;
  border: 1px solid #BFE7FF;
  border-radius: 50%;
  z-index: 5;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  color: #1D4ED8;
  box-shadow: 0 4px 10px rgba(13, 71, 161, .12);
}
.plan-grid > .plan-step:nth-child(1)::after { content: '→'; }
.plan-grid > .plan-step:nth-child(2)::after { content: '→'; }
@media (max-width: 900px) {
  .plan-grid > .plan-step:not(:last-child)::after {
    right: 50%; top: auto; bottom: -28px;
    transform: translateX(50%);
  }
  .plan-grid > .plan-step:nth-child(1)::after,
  .plan-grid > .plan-step:nth-child(2)::after { content: '↓'; }
}

/* step head — number + meta in one tight unit */
.plan-step-head {
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 14px;
}
.plan-step-num {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: linear-gradient(135deg, #1D4ED8, #4338CA);
  color: #fff;
  border-radius: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px; font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 6px 16px rgba(29, 78, 216, .3),
              inset 0 1px 0 rgba(255, 255, 255, .18);
}
.plan-step-meta { flex: 1; min-width: 0; }
.plan-step-time {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: #0D47A1;
  background: #E8F4FF;
  padding: 3px 10px; border-radius: 999px;
  border: 1px solid #BFE7FF;
}
.plan-step-title {
  font-size: 17px; font-weight: 700;
  color: #0F172A;
  letter-spacing: -.015em;
  line-height: 1.2;
  margin: 6px 0 0;
}

.plan-step-body {
  font-size: 14px; line-height: 1.6;
  color: #475569;
  margin: 0 0 18px;
  flex: 1 1 auto;
}

.plan-step-viz { margin-top: auto; }

/* ── Step ① viz: terminal mockup with green ✓ output ─────────────── */
.plan-term {
  background: #06091A;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 10px;
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
  box-shadow: 0 8px 20px rgba(13, 71, 161, .12);
}
.plan-term-head {
  display: flex; align-items: center; gap: 5px;
  padding: 7px 10px;
  background: #0D1829;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.plan-term-head .t-dot {
  width: 7px; height: 7px; border-radius: 50%;
}
.plan-term-head .t-dot:nth-child(1) { background: rgba(239, 68, 68, .55); }
.plan-term-head .t-dot:nth-child(2) { background: rgba(234, 179, 8, .55); }
.plan-term-head .t-dot:nth-child(3) { background: rgba(34, 197, 94, .55); }
.t-title {
  margin-left: 8px;
  font-size: 9.5px; color: #475569;
}
.plan-term-body {
  padding: 10px 12px;
}
.t-line {
  margin: 0 0 3px;
  font-size: 10px; line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.t-line.t-cmd { color: #7DD3FC; }
.t-line.t-cmd::before { content: ''; }
.t-line.t-ok {
  color: #34D399;
  padding-left: 14px; position: relative;
}
.t-line.t-ok::before {
  content: '✓';
  position: absolute; left: 0; top: 0;
  color: #34D399;
}

/* ── Step ② viz: file upload list with progress ───────────────────── */
.plan-files {
  display: flex; flex-direction: column;
  gap: 6px;
}
.plan-file-row {
  display: grid;
  grid-template-columns: 14px 1fr 50px 56px;
  align-items: center; gap: 8px;
  padding: 8px 10px;
  background: #FFFFFF;
  border: 1px solid #DDE9F5;
  border-radius: 8px;
}
.pf-ico {
  width: 12px; height: 14px;
  background: linear-gradient(180deg, #1D4ED8, #4338CA);
  border-radius: 2px;
  position: relative;
}
.pf-ico::before {
  content: ''; position: absolute;
  top: 3px; left: 2px; right: 2px; height: 1px;
  background: rgba(255, 255, 255, .45);
  box-shadow: 0 3px 0 rgba(255, 255, 255, .35),
              0 6px 0 rgba(255, 255, 255, .25);
}
.pf-name {
  color: #0F172A;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pf-bar {
  height: 5px;
  background: #E2E8F0;
  border-radius: 4px;
  overflow: hidden;
}
.pf-fill {
  height: 100%;
  width: var(--p);
  background: linear-gradient(90deg, #38BDF8, #1D4ED8);
  border-radius: 4px;
}
.pf-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; font-weight: 700;
  padding: 3px 6px; border-radius: 999px;
  text-align: center;
  letter-spacing: .04em;
}
.pf-tag.ok   { background: rgba(16,185,129,.12); color: #059669; border: 1px solid rgba(16,185,129,.28); }
.pf-tag.busy { background: rgba(245,158,11,.12); color: #D97706; border: 1px solid rgba(245,158,11,.28); }

/* ── Step ③ viz: snippet + "live on your domain" result ──────────── */
.plan-deploy {
  display: flex; flex-direction: column;
  gap: 8px;
}
.plan-snippet {
  margin: 0;
  background: #06091A;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 10px;
  padding: 10px 12px;
  overflow-x: auto;
  box-shadow: 0 8px 20px rgba(13, 71, 161, .12);
}
.plan-snippet code {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; line-height: 1.45;
  color: #7DD3FC;
  white-space: pre;
}
.plan-result {
  display: flex; align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #E8F4FF, #BFE7FF);
  border: 1px solid #BFE7FF;
  border-radius: 10px;
}
.pr-text {
  flex: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 700;
  color: #0D47A1;
  letter-spacing: .04em;
}
.pr-bubble {
  position: relative;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1D4ED8, #4338CA);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(29, 78, 216, .35);
  flex-shrink: 0;
}
.pr-bubble::after {
  content: '';
  position: absolute; bottom: -2px; right: -1px;
  width: 7px; height: 7px;
  background: linear-gradient(135deg, #1D4ED8, #4338CA);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.pr-bubble-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 6px #34D399;
}

/* ── End-state strip — the payoff ─────────────────────────────────── */
.plan-end {
  margin: 56px auto 0;
  max-width: 760px;
  display: flex; align-items: flex-start; gap: 16px;
  padding: 22px 28px;
  background: linear-gradient(135deg, #06091A 0%, #0D47A1 100%);
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 48px rgba(13, 71, 161, .25),
              inset 0 1px 0 rgba(255, 255, 255, .08);
  position: relative;
  overflow: hidden;
}
.plan-end::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(56, 189, 248, .25), transparent 65%);
  pointer-events: none;
}
.plan-end-tag {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  background: rgba(56, 189, 248, .18);
  color: #7DD3FC;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, .35);
  position: relative; z-index: 1;
}
.plan-end-tag svg { width: 11px; height: 11px; }
.plan-end-text {
  margin: 0;
  font-size: 15px; line-height: 1.55;
  color: #CBD5E1;
  position: relative; z-index: 1;
}
.plan-end-text strong {
  color: #FFFFFF; font-weight: 700;
}
@media (max-width: 700px) {
  .plan-end { flex-direction: column; gap: 12px; padding: 22px 22px; }
}

/* ═══════════════════════════════════════════════════════════════════
   USE CASES
   ═══════════════════════════════════════════════════════════════════ */
.uc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 980px) { .uc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .uc-grid { grid-template-columns: 1fr; } }

.uc-card {
  background: #fff;
  border: 1px solid #E2E8F0; border-radius: 16px;
  padding: 24px;
  transition: all .35s var(--ease-spring);
  box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.05);
}
.uc-card:hover {
  transform: translateY(-5px);
  background: linear-gradient(160deg, #0D47A1, #1565C0);
  border-color: transparent;
  box-shadow: 0 24px 48px rgba(13, 71, 161, .35);
}
.uc-card:hover h3,
.uc-card:hover .uc-q { color: #fff; }
.uc-card:hover .uc-tag { color: #BFE7FF; border-color: rgba(255,255,255,.2); }
.uc-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #E8F4FF, #BFE7FF);
  border: 1px solid #BFE7FF;
  color: #0D47A1;
  margin-bottom: 14px;
  transition: background .35s ease, border-color .35s ease, color .35s ease, transform .35s var(--ease-spring);
}
.uc-icon svg { width: 22px; height: 22px; }
.uc-card:hover .uc-icon {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.25);
  color: #fff;
  transform: scale(1.06) rotate(-3deg);
}
.uc-card h3 {
  font-size: 17px; font-weight: 700; color: #0F172A;
  letter-spacing: -.01em; margin: 0 0 10px;
  transition: color .3s ease;
}
.uc-q {
  font-size: 16px; font-style: italic;
  color: #1D4ED8; line-height: 1.5;
  margin: 0 0 14px;
  transition: color .3s ease;
}
.uc-tag {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; color: #94A3B8;
  letter-spacing: .04em;
  border-top: 1px solid #E2E8F0; padding-top: 10px;
  transition: all .3s ease;
}

/* ═══════════════════════════════════════════════════════════════════
   DIFFERENTIATORS
   ═══════════════════════════════════════════════════════════════════ */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #E2E8F0;
  border-left: 1px solid #E2E8F0;
  counter-reset: diff;
  max-width: 1100px; margin: 0 auto;
}
@media (max-width: 900px) { .diff-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .diff-grid { grid-template-columns: 1fr; } }

.diff-grid li {
  border-right: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
  padding: 26px 24px;
  font-size: 14.5px; line-height: 1.6;
  color: #64748B;
  position: relative;
  counter-increment: diff;
  transition: background .3s ease;
}
.diff-grid li:hover { background: #F8FAFC; }
.diff-grid li::before {
  content: counter(diff, decimal-leading-zero);
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 700;
  color: #1D4ED8; letter-spacing: .12em;
  margin-bottom: 12px;
}
.diff-grid b {
  font-size: 15px; font-weight: 700;
  color: #0F172A; margin-right: 4px;
}

/* ═══════════════════════════════════════════════════════════════════
   PRICING
   ═══════════════════════════════════════════════════════════════════ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 980px) { .pricing-grid { grid-template-columns: 1fr; } }

.price-card {
  background: #fff; border: 1px solid #E2E8F0;
  border-radius: 22px; padding: 32px;
  display: grid; gap: 24px;
  position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.05);
  transition: all .35s var(--ease-spring);
}
.price-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(13, 71, 161, .15);
}
.price-featured {
  background: linear-gradient(165deg, #06091A 0%, #0D47A1 70%, #1565C0 100%);
  border: none; color: #fff;
  transform: scale(1.03);
  box-shadow: 0 24px 60px rgba(13, 71, 161, .35);
}
@media (max-width: 980px) { .price-featured { transform: none; } }

.price-banner {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: #fff;
  background: linear-gradient(90deg, #38BDF8, #4338CA);
  padding: 6px 14px; border-radius: 999px;
}
.price-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: #1D4ED8;
}
.price-featured .price-tag { color: #7DD3FC; }
.price-card h3 {
  font-size: 30px; font-weight: 800;
  letter-spacing: -.025em; margin: 6px 0 4px;
}
.price-sub { font-size: 13.5px; color: #64748B; margin: 0; }
.price-featured .price-sub { color: #BFE7FF; }

.price-share {
  display: flex; align-items: baseline; gap: 12px;
  padding: 18px 0;
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
}
.price-featured .price-share { border-color: rgba(255,255,255,.18); }
.share-num {
  font-size: 60px; font-weight: 800;
  letter-spacing: -.04em; line-height: 1;
  color: #0D47A1;
}
.share-num em {
  font-size: 32px; font-weight: 600; font-style: normal;
  color: #1D4ED8;
}
.price-featured .share-num { color: #fff; }
.price-featured .share-num em { color: #7DD3FC; }
.share-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: #64748B; max-width: 14ch; line-height: 1.4;
}
.price-featured .share-lbl { color: #BFE7FF; }

.price-detail { display: grid; gap: 12px; margin: 0; }
.price-detail > div {
  display: grid; grid-template-columns: 1fr auto; gap: 12px;
  padding-bottom: 8px; border-bottom: 1px dashed #E2E8F0;
  font-size: 13px;
}
.price-featured .price-detail > div { border-color: rgba(255,255,255,.18); }
.price-detail dt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: .04em;
  text-transform: uppercase;
  color: #64748B;
}
.price-featured .price-detail dt { color: #BFE7FF; }
.price-detail dd {
  margin: 0; text-align: right;
  font-weight: 600; color: #0F172A;
}
.price-featured .price-detail dd { color: #fff; }

.price-featured .hero-btn-secondary {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.2);
  color: #fff;
}

.pricing-foot {
  margin-top: 36px; text-align: center;
  font-size: 14.5px; color: #64748B;
  max-width: 70ch; margin-left: auto; margin-right: auto;
}
.pricing-foot em {
  font-style: italic; font-weight: 500;
  color: #1D4ED8;
}

/* ═══════════════════════════════════════════════════════════════════
   BECOME A PARTNER — placeholder section (form added later)
   ═══════════════════════════════════════════════════════════════════ */
.become-partner {
  position: relative;
  background: linear-gradient(180deg, #fff 0%, #E8F4FF 100%);
  border-top: 1px solid #BFE7FF;
}
.become-partner .text-ti-600 { color: #1565C0; }

/* ═══════════════════════════════════════════════════════════════════
   FINAL CTA
   ═══════════════════════════════════════════════════════════════════ */
.cta-final {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #020617 0%, #06091A 100%);
  color: #fff;
  padding: clamp(80px, 12vw, 160px) 0;
}
.sublime-drift {
  position: absolute; inset: -40%; width: 180%; height: 180%;
  background:
    radial-gradient(ellipse 80% 60% at 30% 40%, rgba(29,78,216,.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 70% at 75% 25%, rgba(67,56,202,.22) 0%, transparent 55%);
  filter: blur(80px);
  animation: sublimeNebula 24s ease-in-out infinite;
  pointer-events: none; z-index: 0;
}
.sublime-pulse {
  position: absolute; inset: 0;
  background: radial-gradient(circle 500px at 50% 50%, rgba(125,211,252,.08) 0%, transparent 100%);
  animation: stagePulse 8s ease-in-out infinite;
  pointer-events: none; z-index: 0;
}

.cta-h2 {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -.035em;
  color: #F0F6FF;
  margin: 18px 0 24px;
}
.cta-sub {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: #94A3B8; line-height: 1.7;
  max-width: 640px; margin: 0 auto 32px;
}
.cta-btns {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
}
.cta-foot {
  margin-top: 32px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: #475569;
  letter-spacing: .12em; text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════ */
.ti-foot {
  background: #02040E;
  border-top: 1px solid rgba(255,255,255,.05);
  color: #94A3B8;
}
.ti-foot-h {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: #38BDF8;
  margin: 0 0 16px;
}
.ti-foot a {
  display: block;
  font-size: 13.5px; color: #94A3B8;
  padding: 5px 0;
  transition: color .25s ease;
}
.ti-foot a:hover { color: #38BDF8; }
.ti-foot-base {
  border-top: 1px solid rgba(255,255,255,.05);
  padding: 22px 24px;
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-size: 11.5px; color: #475569;
  max-width: 1280px; margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════════
   SCROLLBAR & SELECTION
   ═══════════════════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #F8FAFC; }
::-webkit-scrollbar-thumb { background: #BFE7FF; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #38BDF8; }
::selection { background: #BFE7FF; color: #0D47A1; }

/* ═══════════════════════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-scale,
  .hero-announce, .hero-word-inner, .hero-sub, .hero-ctas, .hero-trust,
  .hero-stage-wrap {
    opacity: 1 !important; transform: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   DEFAULT INPUT FORM — modal + form fields + success state
   Triggered by any [data-open-form] CTA. One form, multiple intents.
   ═══════════════════════════════════════════════════════════════════ */

/* Backdrop */
.ti-form-bg {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(2, 6, 23, .65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.ti-form-bg.active { opacity: 1; visibility: visible; }

/* Modal wrapper */
.ti-form-wrap {
  position: fixed; inset: 0; z-index: 210;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(16px, 3vw, 32px);
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease-spring), visibility .35s ease;
  overflow-y: auto;
}
.ti-form-wrap.active { opacity: 1; visibility: visible; }

/* Card */
.ti-form-card {
  width: 100%;
  max-width: 580px;
  background: #FFFFFF;
  border-radius: 22px;
  padding: 32px;
  position: relative;
  box-shadow: 0 32px 80px rgba(2, 6, 23, .35),
              0 0 0 1px rgba(13, 71, 161, .08);
  transform: translateY(20px) scale(.96);
  transition: transform .4s var(--ease-spring);
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}
.ti-form-wrap.active .ti-form-card {
  transform: translateY(0) scale(1);
}
@media (max-width: 600px) {
  .ti-form-card { padding: 24px 20px; border-radius: 18px; }
}

/* Close button */
.ti-form-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  color: #64748B;
  cursor: pointer;
  transition: all .2s ease;
}
.ti-form-close:hover {
  background: #FEE2E2;
  border-color: #FCA5A5;
  color: #991B1B;
}
.ti-form-close svg { width: 14px; height: 14px; }

/* Modal head */
.ti-form-head {
  margin-bottom: 22px;
  padding-right: 36px;
}
.ti-form-eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: #1D4ED8;
  margin-bottom: 8px;
}
.ti-form-title {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800; line-height: 1.15;
  letter-spacing: -.02em;
  color: #0F172A;
  margin: 0 0 6px;
}
.ti-form-sub {
  font-size: 14px; line-height: 1.55;
  color: #64748B;
  margin: 0;
}

/* Form layout */
.ti-form {
  display: flex; flex-direction: column;
  gap: 14px;
}
.ti-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 600px) {
  .ti-form-row { grid-template-columns: 1fr; }
}

/* Field */
.ti-field {
  display: flex; flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.ti-field-lbl {
  font-size: 12.5px; font-weight: 600;
  color: #334155;
  letter-spacing: -.005em;
}
.ti-field-lbl em {
  font-style: normal;
  color: #DC2626;
  margin-left: 2px;
}

/* Inputs */
.ti-field input,
.ti-field select,
.ti-field textarea {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #0F172A;
  width: 100%;
  padding: 11px 14px;
  background: #FFFFFF;
  border: 1.5px solid #DDE9F5;
  border-radius: 10px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.ti-field input::placeholder,
.ti-field textarea::placeholder {
  color: #94A3B8;
}
.ti-field input:focus,
.ti-field select:focus,
.ti-field textarea:focus {
  border-color: #38BDF8;
  background: #F8FAFC;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, .18);
}
.ti-field input:invalid:not(:placeholder-shown) {
  border-color: #FCA5A5;
}
.ti-field input:invalid:not(:placeholder-shown):focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .15);
}
.ti-field textarea {
  resize: vertical;
  min-height: 70px;
  font-family: 'Inter', sans-serif;
}

/* Custom select chevron */
.ti-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%2364748B' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* Footer */
.ti-form-foot {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 12px;
  padding-top: 8px;
}
.ti-form-submit {
  width: 100%;
  justify-content: center;
  cursor: pointer;
}
.ti-form-submit[disabled] {
  opacity: .65;
  cursor: not-allowed;
}
.ti-form-submit.loading .ti-form-submit-label::after {
  content: '...';
}
.ti-form-meta {
  font-size: 12px; color: #94A3B8;
  margin: 0;
  text-align: center;
  width: 100%;
}
.ti-form-meta a { color: #1D4ED8; font-weight: 600; }
.ti-form-meta a:hover { text-decoration: underline; }

/* Success state */
.ti-form-thanks {
  text-align: center;
  padding: 24px 0 8px;
}
.ti-thanks-icon {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1D4ED8, #4338CA);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 14px 32px rgba(29, 78, 216, .35);
}
.ti-thanks-icon svg { width: 32px; height: 32px; }
.ti-form-thanks h3 {
  font-size: 22px; font-weight: 800;
  color: #0F172A; letter-spacing: -.02em;
  margin: 0 0 8px;
}
.ti-form-thanks p {
  font-size: 14px; line-height: 1.55;
  color: #64748B;
  margin: 0 0 20px;
}
.ti-form-thanks p a { color: #1D4ED8; font-weight: 600; }

body.form-open { overflow: hidden; }

/* ═══════════════════════════════════════════════════════════════════
   MOBILE AUDIT FIXES
   Targeted refinements for 320-600px viewports.
   Tap targets ≥ 44px, tighter spacing, full-width CTAs, no overflow.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Universal mobile typography & spacing ──────────────────────── */
@media (max-width: 600px) {

  /* Section headings — keep emphasis but never blow out the viewport */
  .hero-h1,
  .problem-h2,
  .arch-h2,
  .inside-h2,
  .plan-h2 {
    font-size: clamp(1.875rem, 8vw, 2.5rem);
    line-height: 1.1;
    letter-spacing: -.025em;
  }
  .cta-h2 {
    font-size: clamp(1.875rem, 8vw, 2.5rem);
    line-height: 1.1;
  }

  /* Section sub-paragraphs read tight on phones */
  .hero-sub,
  .problem-sub,
  .arch-sub,
  .inside-sub,
  .plan-sub,
  .cta-sub {
    font-size: 15px; line-height: 1.55;
  }

  /* Vertical rhythm on phones */
  section[id], .arch-section, .inside-section, .plan-section, .problem-v2 {
    padding-top: clamp(56px, 12vw, 80px) !important;
    padding-bottom: clamp(56px, 12vw, 80px) !important;
  }

  /* Container side padding tightened */
  .max-w-7xl, .max-w-5xl {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
}

/* ── Hero CTAs: stack full-width below 600px (44px+ tap targets) ── */
@media (max-width: 600px) {
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .hero-ctas .hero-btn-primary,
  .hero-ctas .hero-btn-secondary {
    width: 100%;
    justify-content: center;
    min-height: 50px;
    font-size: 15px;
    padding: 14px 22px;
  }
  .cta-btns {
    flex-direction: column;
    align-items: stretch;
  }
  .cta-btns .hero-btn-primary,
  .cta-btns .hero-btn-secondary {
    width: 100%;
    justify-content: center;
    min-height: 50px;
  }
}

/* ── Hero trust chips: keep readable on phones ──────────────────── */
@media (max-width: 600px) {
  .hero-trust-label {
    font-size: 9.5px;
  }
  .hero-trust-chips span {
    padding: 5px 11px;
    font-size: 11.5px;
  }
}

/* ── Hero browser mockup: shrink internal padding, hide noisiest ── */
@media (max-width: 600px) {
  .hb-body { grid-template-columns: 120px 1fr; min-height: 320px; }
  .hb-side { padding: 10px 8px; }
  .hb-ws-name { font-size: 11px; }
  .hb-ws-region { font-size: 9px; }
  .hb-nav li { font-size: 10.5px; padding: 6px 8px; }
  .hb-main { padding: 12px 12px; }
  .hb-title { font-size: 14px; }
  .hb-stat-num { font-size: 16px; }
  .hb-row-meta { display: none; }   /* clutter on phone */
  .hb-row { grid-template-columns: auto 1fr auto; }
  .hb-url-text { font-size: 9px; }
}
@media (max-width: 380px) {
  .hb-body { grid-template-columns: 1fr; }
  .hb-side { display: none; }     /* extreme phones: just main panel */
}

/* ── Marquee: faster on phone, shorter pills ─────────────────────── */
@media (max-width: 600px) {
  .logo-marquee { animation-duration: 28s; }
  .logo-pill-dark { padding: 7px 14px; font-size: 12px; }
}

/* ── Problem cards: tighter padding on phones ────────────────────── */
@media (max-width: 600px) {
  .prob-v2 { padding: 22px 20px; }
  .prob-v2-title { font-size: 16px; }
  .problem-thesis { font-size: 1.05rem; padding: 0 6px; }
  .vs-col li { font-size: 13px; flex-direction: column; align-items: flex-start; gap: 4px; }
  .vs-col li b { text-align: left; font-size: 13.5px; }
}

/* ── Architecture: tighter perimeter, smaller cards ──────────────── */
@media (max-width: 600px) {
  .arch-perimeter { padding: 36px 14px 24px; }
  .arch-card { padding: 14px 10px; }
  .arch-card h3 { font-size: 13px; }
  .arch-card p { font-size: 9.5px; }
  .arch-card-ico { width: 32px; height: 32px; margin-bottom: 8px; }
  .arch-card-ico svg { width: 16px; height: 16px; }
  .arch-thesis { font-size: 13px; padding: 12px 16px; }
  .brain-name { font-size: 14.5px; }
  .brain-pills li { font-size: 11px; padding: 4px 9px; }
}

/* ── Inside section: tighter card padding ────────────────────────── */
@media (max-width: 600px) {
  .inside-card { padding: 24px 20px; }
  .inside-title { font-size: 18px; }
  .inside-num { font-size: 10px; padding: 3px 8px; }
  .adm-modules { grid-template-columns: 1fr; }
  .adm-modules li { font-size: 10.5px; }
  .deploy-list li { padding: 9px 12px; }
  .dep-name { font-size: 12px; }
  .dep-meta { font-size: 10.5px; }
}

/* ── Brain section: tighter pills ────────────────────────────────── */
@media (max-width: 600px) {
  .brain-col { padding: 22px 20px; }
  .role-pills span { font-size: 12px; padding: 7px 12px; }
  .brain-roles { padding: 24px 20px; }
}

/* ── Plan timer bar: ensure labels fit at 320px ─────────────────── */
@media (max-width: 600px) {
  .plan-timer-bar { height: 52px; }
  .seg-label { font-size: 11px; }
  .seg-name  { font-size: 8px; }
}
@media (max-width: 380px) {
  .seg-name { display: none; } /* drop the word, keep the time */
}

/* ── Plan cards on phone: more breathing room between stacked steps */
@media (max-width: 900px) {
  .plan-grid { gap: 44px; }    /* extra room for the ↓ arrow circle */
}
@media (max-width: 600px) {
  .plan-step { padding: 22px 20px; }
  .plan-end { padding: 20px 20px; }
  .plan-end-text { font-size: 14px; }
}

/* ── Use case cards: tighter padding, smaller question text ─────── */
@media (max-width: 600px) {
  .uc-card { padding: 22px 18px; }
  .uc-card h3 { font-size: 16px; }
  .uc-q { font-size: 15px; }
  .uc-tag { font-size: 10px; }
}

/* ── Differentiators: cleaner cell padding ──────────────────────── */
@media (max-width: 600px) {
  .diff-grid li { padding: 22px 18px; font-size: 14px; }
  .diff-grid b { font-size: 14.5px; }
}

/* ── Become-a-Partner section ───────────────────────────────────── */
@media (max-width: 600px) {
  .become-partner .text-4xl { font-size: 1.875rem; }
}

/* ── Final CTA section ──────────────────────────────────────────── */
@media (max-width: 600px) {
  .cta-final { padding: clamp(64px, 12vw, 100px) 0; }
  .cta-foot { font-size: 11px; letter-spacing: .08em; }
}

/* ── Footer: cleaner mobile stacking + readable base bar ──────── */
@media (max-width: 600px) {
  .ti-foot .grid { gap: 32px !important; }
  .foot-cols { gap: 24px !important; }
  .ti-foot-base {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    text-align: left;
  }
}

/* ── Form modal: works at 320px ─────────────────────────────────── */
@media (max-width: 380px) {
  .ti-form-card { padding: 22px 16px; }
  .ti-form-title { font-size: 18px; }
  .ti-form-sub { font-size: 13px; }
  .ti-field input, .ti-field select, .ti-field textarea {
    font-size: 14px; padding: 10px 12px;
  }
}

/* ── Nav: drawer trigger at >= 44px tap target ─────────────────── */
@media (max-width: 1023px) {
  .ti-nav-burger { min-width: 44px; min-height: 44px; }
}

/* ── Universal: ensure tap targets ≥ 44px on small screens ─────── */
@media (max-width: 600px) {
  .hero-btn-primary, .hero-btn-secondary, .arch-cta, .ti-nav-cta-sm {
    min-height: 44px;
  }
  .ti-nav-link { padding: 10px 0; }
}

/* ── Prevent horizontal scroll on any narrow viewport ──────────── */
html, body { max-width: 100vw; overflow-x: hidden; }
.aurora { max-width: none; }   /* but allow background atmospheres to bleed */

