/* ══════════════════════════════════════════════════════════════════════
   home.css — the marketing home page (served at /).
   Everything is namespaced `th-` to stay isolated from base.css/landing.css.
   Colors come from the Phantom tokens in base.css (--accent, --bg, …); the
   few locals below just refine glass/line/shadow for a more "expensive" feel.
   ══════════════════════════════════════════════════════════════════════ */

.th-home {
  /* Local refinements layered on top of the shared Phantom palette. */
  --th-ink: #eef4ff;
  --th-line: rgba(147, 197, 253, .10);
  --th-line-2: rgba(147, 197, 253, .18);
  --th-fill: rgba(96, 165, 250, .045);
  --th-fill-2: rgba(96, 165, 250, .08);
  --th-card: rgba(16, 18, 30, .55);
  --th-card-2: rgba(20, 23, 38, .72);
  --th-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
  --th-shadow-sm: 0 12px 34px -18px rgba(0, 0, 0, .7);
  --th-glow: rgba(96, 165, 250, .35);
  --th-ease: cubic-bezier(.22, 1, .36, 1);
  --th-ease-out: cubic-bezier(.16, 1, .3, 1);
  --th-maxw: 1180px;

  position: relative;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* This page ships its own background — retire base.html's default mesh. */
.th-home .mesh-bg { display: none !important; }

.th-main { position: relative; z-index: 1; }

/* ─────────────────────────────────────────────
   LIVING BACKGROUND
   Layered: mesh gradient · aurora · drifting orbs · constellation canvas ·
   fine grid · film noise · vignette. All fixed, all pointer-transparent,
   all GPU-friendly (transforms/opacity only).
   ───────────────────────────────────────────── */
.th-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 72% -8%, rgba(59, 130, 246, .14), transparent 60%),
    radial-gradient(900px 600px at 8% 8%, rgba(147, 197, 253, .08), transparent 55%),
    linear-gradient(180deg, #08080e 0%, #070710 45%, #06060c 100%);
}

.th-bg-aurora {
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 90vh;
  background:
    conic-gradient(from 120deg at 50% 40%,
      rgba(96, 165, 250, 0) 0deg,
      rgba(96, 165, 250, .16) 70deg,
      rgba(59, 130, 246, .05) 150deg,
      rgba(147, 197, 253, .14) 240deg,
      rgba(96, 165, 250, 0) 360deg);
  filter: blur(70px);
  opacity: .55;
  animation: thAurora 26s linear infinite;
}
@keyframes thAurora {
  from { transform: rotate(0deg) scale(1.1); }
  to   { transform: rotate(360deg) scale(1.1); }
}

.th-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .8;
}
.th-bg-orb-1 { width: 520px; height: 520px; top: -12%; left: -8%;  background: rgba(96, 165, 250, .10); animation: thOrb1 24s ease-in-out infinite; }
.th-bg-orb-2 { width: 460px; height: 460px; top: 24%; right: -10%; background: rgba(59, 130, 246, .08); animation: thOrb2 30s ease-in-out infinite; }
.th-bg-orb-3 { width: 420px; height: 420px; bottom: -14%; left: 38%; background: rgba(147, 197, 253, .06); animation: thOrb3 22s ease-in-out infinite; }
@keyframes thOrb1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(60px,50px)} }
@keyframes thOrb2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-50px,40px)} }
@keyframes thOrb3 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(40px,-40px)} }

.th-bg-constellation { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }

.th-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(147, 197, 253, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 197, 253, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  /* Fade the grid out toward the bottom so it reads as "surface", not a table. */
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 78%);
          mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 78%);
  opacity: .6;
}

.th-bg-noise {
  position: absolute;
  inset: 0;
  opacity: .04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.th-bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(130% 100% at 50% 0%, transparent 55%, rgba(4, 4, 9, .55) 100%);
}

/* ─────────────────────────────────────────────
   BUTTONS
   ───────────────────────────────────────────── */
.th-btn {
  --th-btn-shift: 0px, 0px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.01em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform .3s var(--th-ease), box-shadow .3s var(--th-ease),
              background .25s var(--th-ease), border-color .25s var(--th-ease), color .25s;
  transform: translate(var(--th-btn-shift));
}
.th-btn svg { width: 16px; height: 16px; }
.th-btn-lg { padding: 15px 28px; font-size: 15px; }

.th-btn-primary {
  color: #061021;
  background:
    radial-gradient(120% 160% at 30% 0%, #cfe4ff 0%, #93c5fd 34%, #60a5fa 72%, #3b82f6 100%);
  box-shadow: 0 10px 30px -10px var(--th-glow), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.th-btn-primary:hover {
  box-shadow: 0 16px 44px -12px var(--th-glow), inset 0 1px 0 rgba(255, 255, 255, .6);
  filter: saturate(1.05);
}
.th-btn-primary svg { stroke: #061021; }

.th-btn-glass {
  color: var(--th-ink);
  background: var(--th-fill-2);
  border-color: var(--th-line-2);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.th-btn-glass:hover {
  background: rgba(96, 165, 250, .14);
  border-color: rgba(96, 165, 250, .45);
  color: #fff;
}

.th-btn-ghost {
  color: var(--text-muted);
  padding: 10px 16px;
  background: transparent;
}
.th-btn-ghost:hover { color: var(--th-ink); background: var(--th-fill); }

/* ─────────────────────────────────────────────
   SCROLL PROGRESS + NAVBAR
   ───────────────────────────────────────────── */
.th-scrollbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 95;
  pointer-events: none;
}
.th-scrollbar i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #3b82f6, #93c5fd);
  box-shadow: 0 0 12px rgba(96, 165, 250, .6);
  transition: width .1s linear;
}

.th-nav {
  position: fixed;
  top: 14px; left: 0; right: 0;
  z-index: 90;
  display: flex;
  justify-content: center;
  padding: 0 20px;
  transition: top .35s var(--th-ease);
}
.th-nav-inner {
  width: 100%;
  max-width: var(--th-maxw);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 9px 10px 9px 20px;
  border-radius: var(--radius-pill);
  background: rgba(10, 11, 20, .55);
  border: 1px solid var(--th-line);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 10px 40px -20px rgba(0, 0, 0, .8);
  transition: background .35s var(--th-ease), border-color .35s var(--th-ease), box-shadow .35s var(--th-ease);
}
.th-nav.is-scrolled .th-nav-inner {
  background: rgba(9, 10, 18, .82);
  border-color: var(--th-line-2);
  box-shadow: 0 14px 50px -20px rgba(0, 0, 0, .9);
}
.th-nav-brand { display: flex; align-items: center; flex-shrink: 0; }
.th-nav-logo { width: 112px; height: auto; display: block; }

.th-nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0 auto;
}
.th-nav-links a {
  position: relative;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s var(--th-ease), background .2s var(--th-ease);
}
.th-nav-links a:hover { color: var(--th-ink); background: var(--th-fill); }

.th-nav-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.th-nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  background: var(--th-fill);
  border: 1px solid var(--th-line);
  border-radius: 12px;
  cursor: pointer;
}
.th-nav-burger span {
  width: 17px; height: 2px; border-radius: 2px;
  background: var(--th-ink);
  transition: transform .3s var(--th-ease), opacity .2s;
}
.th-nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.th-nav-burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.th-nav-mobile {
  position: absolute;
  top: calc(100% + 10px);
  left: 20px; right: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(10, 11, 20, .96);
  border: 1px solid var(--th-line-2);
  backdrop-filter: blur(20px);
  box-shadow: var(--th-shadow);
  animation: thDrop .25s var(--th-ease);
}
/* The class sets display:flex, which would otherwise beat the UA [hidden]
   rule (equal specificity, later source wins) — so JS toggling `hidden`
   wouldn't hide it. Make hidden win explicitly, and never show it on desktop. */
.th-nav-mobile[hidden] { display: none !important; }
.th-nav-mobile a { padding: 11px 12px; border-radius: 12px; font-size: 15px; font-weight: 500; color: var(--text); text-decoration: none; }
.th-nav-mobile a:hover { background: var(--th-fill); }
.th-nav-mobile .th-btn { justify-content: center; }
@keyframes thDrop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* ─────────────────────────────────────────────
   REVEAL ON SCROLL
   ───────────────────────────────────────────── */
.th-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--th-ease-out), transform .8s var(--th-ease-out);
  will-change: opacity, transform;
}
.th-reveal.in-view { opacity: 1; transform: none; }

/* ─────────────────────────────────────────────
   CURSOR SPOTLIGHT (shared by .th-spot cards)
   JS sets --mx/--my (px); overlay only shows on hover.
   ───────────────────────────────────────────── */
.th-spot { position: relative; }
.th-spot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%),
              rgba(96, 165, 250, .16), transparent 62%);
  opacity: 0;
  transition: opacity .35s var(--th-ease);
  pointer-events: none;
  z-index: 0;
}
.th-spot:hover::before { opacity: 1; }
.th-spot > * { position: relative; z-index: 1; }

/* ─────────────────────────────────────────────
   HERO
   ───────────────────────────────────────────── */
.th-hero {
  max-width: var(--th-maxw);
  margin: 0 auto;
  padding: 168px 24px 40px;
  position: relative;
}
.th-hero-glow {
  position: absolute;
  top: 40px; left: 50%;
  width: 900px; height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(96, 165, 250, .16), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}
.th-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
}
.th-hero-copy { max-width: 600px; }

.th-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 8px 6px 12px;
  margin-bottom: 26px;
  border-radius: var(--radius-pill);
  background: var(--th-fill);
  border: 1px solid var(--th-line-2);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--accent2);
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: border-color .25s var(--th-ease), background .25s var(--th-ease);
}
.th-eyebrow:hover { border-color: rgba(96, 165, 250, .4); background: var(--th-fill-2); }
.th-eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(110, 231, 183, .16); }
.th-eyebrow-sep { width: 1px; height: 14px; background: var(--th-line-2); }
.th-eyebrow-tag {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: #061021; background: var(--gradient-1); padding: 3px 8px; border-radius: var(--radius-pill);
}

.th-hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(42px, 6.4vw, 76px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.035em;
  color: var(--th-ink);
  margin-bottom: 24px;
}
.th-hero-title-grad {
  background: linear-gradient(105deg, #93c5fd 0%, #60a5fa 45%, #3b82f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* faint moving sheen */
  background-size: 220% 100%;
  animation: thSheen 8s ease-in-out infinite;
}
@keyframes thSheen { 0%,100%{background-position:0% 50%} 50%{background-position:100% 50%} }
.th-hero-title-sub { color: rgba(200, 216, 240, .55); font-weight: 700; }

.th-hero-lede {
  font-size: clamp(16px, 1.5vw, 18.5px);
  line-height: 1.62;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 34px;
}
.th-hero-lede code {
  font-family: 'JetBrains Mono', monospace;
  font-size: .88em;
  color: var(--accent2);
  background: rgba(96, 165, 250, .1);
  border: 1px solid var(--th-line);
  padding: 1px 6px;
  border-radius: 6px;
}

.th-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }

.th-hero-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.th-hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-muted);
}
.th-hero-trust svg { width: 15px; height: 15px; color: var(--success); }

/* ── Hero stage (floating glass panels + parallax) ── */
.th-hero-stage {
  position: relative;
  height: 460px;
  perspective: 1400px;
}
.th-stage-depth {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
.th-panel {
  position: absolute;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--th-card-2), var(--th-card));
  border: 1px solid var(--th-line-2);
  backdrop-filter: blur(20px) saturate(1.1);
  box-shadow: var(--th-shadow);
  transition: transform .2s var(--th-ease);
  will-change: transform;
}
.th-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.th-panel-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--th-line);
}
.th-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(200, 216, 240, .18); }
.th-dot:nth-child(1) { background: rgba(252, 165, 165, .5); }
.th-dot:nth-child(2) { background: rgba(253, 230, 138, .5); }
.th-dot:nth-child(3) { background: rgba(110, 231, 183, .5); }
.th-panel-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.th-agent-avatar {
  width: 18px; height: 18px; border-radius: 6px;
  background: var(--gradient-1); color: #061021;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800;
}
.th-live-dot { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(110, 231, 183, .15); animation: thBlink 2.4s ease-in-out infinite; }
@keyframes thBlink { 0%,100%{opacity:1} 50%{opacity:.4} }

/* Front chat panel */
.th-panel-chat { right: 0; top: 30px; width: min(360px, 100%); z-index: 3; }
.th-chat { padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 10px; }
.th-msg {
  max-width: 84%;
  padding: 10px 13px;
  font-size: 13px;
  line-height: 1.5;
  border-radius: 14px;
}
.th-msg-user {
  align-self: flex-end;
  color: #eaf2ff;
  background: linear-gradient(180deg, rgba(96, 165, 250, .28), rgba(59, 130, 246, .2));
  border: 1px solid rgba(96, 165, 250, .3);
  border-bottom-right-radius: 5px;
}
.th-msg-ai {
  align-self: flex-start;
  color: var(--text);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--th-line);
  border-bottom-left-radius: 5px;
  min-height: 20px;
}
.th-toolcall {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent2);
  background: rgba(96, 165, 250, .08);
  border: 1px solid var(--th-line);
  border-radius: var(--radius-pill);
}
.th-toolcall svg { width: 12px; height: 12px; }
.th-toolcall em { font-style: normal; color: var(--success); font-size: 10px; margin-left: 2px; }
.th-caret { display: inline-block; width: 2px; height: 1em; margin-left: 1px; background: var(--accent2); vertical-align: -2px; animation: thCaret 1s steps(1) infinite; }
@keyframes thCaret { 50% { opacity: 0; } }
.th-chat-input {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 12px 12px;
  padding: 9px 10px 9px 14px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, .3);
  border: 1px solid var(--th-line);
  font-size: 12.5px;
  color: var(--text-muted);
}
.th-chat-input span { flex: 1; }
.th-chat-send {
  width: 28px; height: 28px; flex-shrink: 0;
  border: none; border-radius: 50%;
  background: var(--gradient-1); color: #061021;
  display: flex; align-items: center; justify-content: center;
  cursor: default;
}
.th-chat-send svg { width: 14px; height: 14px; }

/* Behind: workflow mini panel */
.th-panel-flow { left: 0; top: 0; width: 232px; z-index: 1; opacity: .96; }
.th-flow { position: relative; height: 150px; }
.th-flow-wires { position: absolute; inset: 0; width: 100%; height: 100%; }
.th-flow-wires path { fill: none; stroke: rgba(147, 197, 253, .3); stroke-width: 1.5; }
.th-flow-wires .th-flow-pulse {
  stroke: var(--accent2);
  stroke-width: 2;
  stroke-dasharray: 22 200;
  filter: drop-shadow(0 0 4px rgba(96, 165, 250, .8));
  animation: thWire 2.6s linear infinite;
}
@keyframes thWire { from { stroke-dashoffset: 222; } to { stroke-dashoffset: 0; } }
.th-node {
  position: absolute;
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 9px;
  background: rgba(20, 23, 38, .9);
  border: 1px solid var(--th-line-2);
  color: var(--text);
}
.th-node-start { border-color: rgba(110, 231, 183, .4); color: var(--success); }
.th-node-agent { border-color: rgba(96, 165, 250, .5); color: var(--accent2); box-shadow: 0 0 18px -4px rgba(96, 165, 250, .5); }
.th-node-tool { border-color: rgba(253, 230, 138, .35); color: var(--warning); }

/* Floating latency chip */
.th-chip-metric {
  left: 24px; bottom: 6px; z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
}
.th-chip-pulse {
  width: 26px; height: 26px; border-radius: 8px;
  background: rgba(110, 231, 183, .14);
  position: relative;
}
.th-chip-pulse::after {
  content: ''; position: absolute; inset: 0; margin: auto;
  width: 8px; height: 8px; border-radius: 50%; background: var(--success);
  box-shadow: 0 0 0 0 rgba(110, 231, 183, .5);
  animation: thPing 2s ease-out infinite;
}
@keyframes thPing { 0%{box-shadow:0 0 0 0 rgba(110,231,183,.5)} 100%{box-shadow:0 0 0 12px rgba(110,231,183,0)} }
.th-chip-metric b { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 700; color: var(--th-ink); }
.th-chip-metric b i { font-style: normal; font-size: 12px; color: var(--text-muted); font-weight: 500; }
.th-chip-metric small { font-size: 10.5px; color: var(--text-muted); }

/* ── One-line deploy block ── */
.th-deploy {
  margin: 56px auto 0;
  max-width: 780px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(10, 12, 20, .8), rgba(6, 7, 12, .85));
  border: 1px solid var(--th-line-2);
  box-shadow: var(--th-shadow-sm);
  overflow: hidden;
}
.th-deploy-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--th-line);
}
.th-copy {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--th-fill-2);
  border: 1px solid var(--th-line-2);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s var(--th-ease), border-color .2s var(--th-ease), color .2s;
}
.th-copy svg { width: 14px; height: 14px; }
.th-copy:hover { border-color: rgba(96, 165, 250, .45); color: #fff; }
.th-copy.is-copied { color: var(--success); border-color: rgba(110, 231, 183, .4); }
.th-code {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.75;
}
.th-code code { white-space: pre; color: var(--accent2); }
.th-c-comment { color: rgba(200, 216, 240, .32); }
.th-c-punc { color: var(--accent3); }
.th-c-tag { color: #7dd3fc; }
.th-c-attr { color: var(--accent2); }
.th-c-str { color: var(--success); }

.th-kicker {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--accent);
}

/* ─────────────────────────────────────────────
   MODEL STRIP / MARQUEE
   ───────────────────────────────────────────── */
.th-strip { max-width: var(--th-maxw); margin: 48px auto 0; padding: 0 24px; text-align: center; }
.th-strip-label { font-size: 12.5px; color: var(--text-muted); margin-bottom: 22px; }
.th-marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.th-marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
  animation: thMarquee 30s linear infinite;
  will-change: transform;
}
.th-marquee:hover .th-marquee-track { animation-play-state: paused; }
.th-marquee-track span:not(.th-marquee-dot) {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: rgba(200, 216, 240, .34);
  transition: color .25s var(--th-ease);
}
.th-marquee-track span:not(.th-marquee-dot):hover { color: var(--accent2); }
.th-marquee-dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(96, 165, 250, .3); }
@keyframes thMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─────────────────────────────────────────────
   SECTION SHELL
   ───────────────────────────────────────────── */
.th-section {
  max-width: var(--th-maxw);
  margin: 0 auto;
  padding: 120px 24px 0;
}
.th-sec-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.th-sec-head h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.08;
  color: var(--th-ink);
  margin: 14px 0 14px;
}
.th-sec-head p { font-size: 16.5px; line-height: 1.6; color: var(--text-muted); }

/* ─────────────────────────────────────────────
   BENTO GRID
   ───────────────────────────────────────────── */
.th-bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.th-cell {
  grid-column: span 2;
  min-height: 220px;
  padding: 26px;
  border-radius: 22px;
  background: linear-gradient(180deg, var(--th-card), rgba(12, 13, 22, .5));
  border: 1px solid var(--th-line);
  backdrop-filter: blur(12px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .4s var(--th-ease), border-color .4s var(--th-ease), box-shadow .4s var(--th-ease);
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.th-cell:hover {
  border-color: var(--th-line-2);
  box-shadow: var(--th-shadow);
}
.th-cell-lg { grid-column: span 4; grid-row: span 2; }
.th-cell-wide { grid-column: span 3; }
.th-cell-lg .th-cell-body { max-width: 380px; }

.th-badge-ic {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(120% 120% at 30% 20%, rgba(96, 165, 250, .22), rgba(96, 165, 250, .05));
  border: 1px solid var(--th-line-2);
  margin-bottom: 16px;
  flex-shrink: 0;
}
.th-badge-ic svg { width: 23px; height: 23px; color: var(--accent2); }
.th-cell h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--th-ink);
  margin-bottom: 8px;
}
.th-cell p { font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.th-cell-split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: center; height: 100%; }

/* Cell mini-visual: workflow */
.th-cell-visual { position: relative; margin-top: auto; }
.th-viz-flow { height: 180px; margin: 14px -6px -6px; }
.th-viz-wires { position: absolute; inset: 0; width: 100%; height: 100%; }
.th-viz-wires path { fill: none; stroke: rgba(147, 197, 253, .28); stroke-width: 1.5; }
.th-viz-wires .th-viz-pulse {
  stroke: var(--accent2); stroke-width: 2.2;
  stroke-dasharray: 26 400;
  filter: drop-shadow(0 0 5px rgba(96, 165, 250, .8));
  animation: thVizPulse 3.4s linear infinite;
}
@keyframes thVizPulse { from { stroke-dashoffset: 426; } to { stroke-dashoffset: 0; } }
.th-vnode {
  position: absolute;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 10px;
  background: rgba(20, 23, 38, .92);
  border: 1px solid var(--th-line-2);
  color: var(--text);
}
.th-vnode-a { border-color: rgba(110, 231, 183, .4); color: var(--success); }
.th-vnode-b { border-color: rgba(96, 165, 250, .5); color: var(--accent2); box-shadow: 0 0 20px -4px rgba(96, 165, 250, .5); }
.th-vnode-c { border-color: rgba(253, 230, 138, .35); color: var(--warning); }
.th-vnode-d { border-color: rgba(147, 197, 253, .3); }

/* Orchestrator (sub-agents) */
.th-orch { position: relative; margin-top: auto; height: 92px; }
.th-orch-lead, .th-orch-sub {
  position: absolute;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: 1px solid var(--th-line-2);
  background: rgba(20, 23, 38, .9);
}
.th-orch-lead { left: 0; top: 34px; color: var(--accent2); border-color: rgba(96, 165, 250, .45); }
.th-orch-sub { color: var(--text-muted); animation: thFloatY 4s ease-in-out infinite; }
.th-orch-s1 { right: 4px; top: 2px; animation-delay: 0s; }
.th-orch-s2 { right: 40px; top: 36px; animation-delay: .6s; }
.th-orch-s3 { right: 8px; top: 66px; animation-delay: 1.2s; }
@keyframes thFloatY { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-5px)} }

/* Knowledge base */
.th-kb { margin-top: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.th-kb-doc {
  font-size: 11px; font-weight: 700; letter-spacing: .03em;
  padding: 5px 9px; border-radius: 8px;
  color: var(--text-muted); background: var(--th-fill); border: 1px solid var(--th-line);
}
.th-kb-arrow { color: var(--accent); font-weight: 700; }
.th-kb-store {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--accent2);
  padding: 5px 11px; border-radius: var(--radius-pill);
  background: rgba(96, 165, 250, .1); border: 1px solid rgba(96, 165, 250, .28);
}
.th-kb-store svg { width: 15px; height: 15px; }

/* Tool grid */
.th-toolgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.th-toolgrid span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--text-muted);
  background: var(--th-fill);
  border: 1px solid var(--th-line);
  text-align: center;
  transition: color .2s var(--th-ease), border-color .2s var(--th-ease), background .2s;
}
.th-toolgrid span:hover { color: var(--accent2); border-color: var(--th-line-2); background: var(--th-fill-2); }
.th-tool-custom { color: var(--accent2) !important; }
.th-tool-mcp { color: var(--warning) !important; }

/* Guardrails */
.th-guard { margin-top: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.th-guard-in { font-size: 12px; padding: 6px 11px; border-radius: var(--radius-pill); color: var(--text-muted); background: var(--th-fill); border: 1px solid var(--th-line); }
.th-guard-pass { font-size: 12px; font-weight: 600; padding: 6px 11px; border-radius: var(--radius-pill); color: var(--success); background: var(--success-tint); border: 1px solid rgba(110, 231, 183, .3); }
.th-guard-block { font-size: 12px; font-weight: 600; padding: 6px 11px; border-radius: var(--radius-pill); color: var(--danger); background: var(--danger-tint); border: 1px solid rgba(252, 165, 165, .3); }

/* Widget mock */
.th-widget-mock { position: relative; margin-top: auto; height: 96px; }
.th-wm-bubble { position: absolute; max-width: 74%; padding: 8px 12px; font-size: 12px; border-radius: 13px; }
.th-wm-in { left: 0; top: 4px; color: var(--text); background: rgba(255, 255, 255, .05); border: 1px solid var(--th-line); border-bottom-left-radius: 4px; }
.th-wm-out { right: 46px; top: 40px; color: #eaf2ff; background: linear-gradient(180deg, rgba(96, 165, 250, .28), rgba(59, 130, 246, .2)); border: 1px solid rgba(96, 165, 250, .3); border-bottom-right-radius: 4px; }
.th-wm-launch {
  position: absolute; right: 0; bottom: 0;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--gradient-1); color: #061021;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px -6px var(--th-glow);
  animation: thFloatY 3.6s ease-in-out infinite;
}
.th-wm-launch svg { width: 19px; height: 19px; }

/* Analytics sparkline */
.th-spark { height: 100%; min-height: 110px; display: flex; align-items: flex-end; }
.th-spark svg { width: 100%; height: 90px; overflow: visible; }
.th-spark-line { stroke: var(--accent2); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 4px 10px rgba(96, 165, 250, .4)); stroke-dasharray: 1000; stroke-dashoffset: 1000; }
.th-cell.in-view .th-spark-line { animation: thDraw 2s var(--th-ease-out) forwards; }
@keyframes thDraw { to { stroke-dashoffset: 0; } }

/* ─────────────────────────────────────────────
   HOW IT WORKS
   ───────────────────────────────────────────── */
.th-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.th-step-line {
  position: absolute;
  top: 32px; left: 12%; right: 12%;
  height: 1px;
  background: var(--th-line-2);
  overflow: hidden;
}
.th-step-line i {
  position: absolute; inset: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, var(--accent2), transparent);
  animation: thTrace 4s ease-in-out infinite;
}
@keyframes thTrace { 0%{transform:translateX(-100%)} 100%{transform:translateX(350%)} }
.th-step {
  position: relative;
  padding: 30px 26px;
  border-radius: 20px;
  background: var(--th-card);
  border: 1px solid var(--th-line);
  backdrop-filter: blur(10px);
  transition: transform .4s var(--th-ease), border-color .4s var(--th-ease);
}
.th-step:hover { transform: translateY(-4px); border-color: var(--th-line-2); }
.th-step-num {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #061021;
  background: var(--gradient-1);
  width: 40px; height: 40px; line-height: 40px; text-align: center;
  border-radius: 12px;
  margin-bottom: 18px;
  box-shadow: 0 8px 22px -8px var(--th-glow);
}
.th-step h3 { font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 700; color: var(--th-ink); margin-bottom: 8px; }
.th-step p { font-size: 14px; line-height: 1.6; color: var(--text-muted); }

/* ─────────────────────────────────────────────
   METRICS
   ───────────────────────────────────────────── */
.th-metrics {
  max-width: var(--th-maxw);
  margin: 96px auto 0;
  padding: 34px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 5vw, 64px);
  flex-wrap: wrap;
  text-align: center;
}
.th-metric b {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1;
  background: linear-gradient(180deg, #eaf2ff, #93c5fd);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.th-metric span { display: block; margin-top: 8px; font-size: 13px; color: var(--text-muted); }
.th-metric-div { width: 1px; height: 44px; background: var(--th-line-2); }

/* ─────────────────────────────────────────────
   PRICING
   ───────────────────────────────────────────── */
.th-bill-toggle {
  position: relative;
  display: inline-flex;
  margin-top: 26px;
  padding: 5px;
  border-radius: var(--radius-pill);
  background: var(--th-fill);
  border: 1px solid var(--th-line-2);
}
.th-bill-toggle button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border: none;
  background: transparent;
  border-radius: var(--radius-pill);
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: color .3s var(--th-ease);
}
.th-bill-toggle button.is-active { color: #061021; }
.th-bill-toggle button em {
  position: absolute;
  top: -10px;
  right: -10px;
  z-index: 2;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  color: #061021;
  background: var(--success);
  padding: 4px 7px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 10px -3px rgba(0, 0, 0, .35);
}
.th-bill-toggle button.is-active em { color: #061021; }
.th-bill-pill {
  position: absolute;
  top: 5px; bottom: 5px; left: 5px;
  width: calc(50% - 5px);
  border-radius: var(--radius-pill);
  background: var(--gradient-1);
  box-shadow: 0 6px 18px -6px var(--th-glow);
  transition: transform .35s var(--th-ease);
}
.th-bill-toggle[data-period="yearly"] .th-bill-pill { transform: translateX(100%); }

.th-price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: start;
}
.th-price {
  position: relative;
  padding: 30px 28px;
  border-radius: 22px;
  background: linear-gradient(180deg, var(--th-card), rgba(12, 13, 22, .5));
  border: 1px solid var(--th-line);
  backdrop-filter: blur(12px);
  transition: transform .4s var(--th-ease), border-color .4s var(--th-ease), box-shadow .4s var(--th-ease);
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.th-price:hover { border-color: var(--th-line-2); box-shadow: var(--th-shadow); }
.th-price-featured {
  border-color: rgba(96, 165, 250, .4);
  background: linear-gradient(180deg, rgba(20, 26, 44, .7), rgba(12, 14, 26, .6));
  box-shadow: 0 24px 70px -30px var(--th-glow);
}
.th-price-glow {
  position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(80% 60% at 50% 0%, rgba(96, 165, 250, .18), transparent 70%);
  pointer-events: none;
}
.th-price-flag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: #061021; background: var(--gradient-1);
  box-shadow: 0 8px 24px -8px var(--th-glow);
  white-space: nowrap;
}
.th-price-head { position: relative; margin-bottom: 18px; }
.th-price-head h3 { font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 700; color: var(--th-ink); margin-bottom: 5px; }
.th-price-head p { font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }
.th-price-amt { position: relative; display: flex; align-items: baseline; gap: 3px; margin-bottom: 22px; flex-wrap: wrap; }
.th-price-cur { font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 600; color: var(--text-muted); align-self: flex-start; margin-top: 6px; }
.th-price-num { font-family: 'Space Grotesk', sans-serif; font-size: 44px; font-weight: 700; letter-spacing: -.02em; color: var(--th-ink); transition: opacity .2s var(--th-ease); }
.th-price-per { font-size: 13px; color: var(--text-muted); margin-left: 2px; }
.th-price-cta { width: 100%; margin-bottom: 22px; }
.th-price-feat { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.th-price-feat li {
  position: relative;
  padding-left: 26px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text);
}
.th-price-feat li::before {
  content: '';
  position: absolute; left: 0; top: 1px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: rgba(110, 231, 183, .12);
  border: 1px solid rgba(110, 231, 183, .3);
}
.th-price-feat li::after {
  content: '';
  position: absolute; left: 5px; top: 6px;
  width: 7px; height: 4px;
  border-left: 1.8px solid var(--success);
  border-bottom: 1.8px solid var(--success);
  transform: rotate(-45deg);
}
.th-price-fine { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 26px; }

/* ─────────────────────────────────────────────
   FAQ
   ───────────────────────────────────────────── */
.th-section-faq { max-width: 780px; }
.th-faq { display: flex; flex-direction: column; gap: 12px; }
.th-faq-item {
  border-radius: 16px;
  background: var(--th-card);
  border: 1px solid var(--th-line);
  overflow: hidden;
  transition: border-color .3s var(--th-ease), background .3s var(--th-ease);
}
.th-faq-item:hover { border-color: var(--th-line-2); }
.th-faq-item[open] { border-color: rgba(96, 165, 250, .35); background: rgba(96, 165, 250, .05); }
.th-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text);
  transition: color .2s var(--th-ease);
}
.th-faq-item summary::-webkit-details-marker { display: none; }
.th-faq-item summary:hover { color: var(--th-ink); }
.th-faq-ic {
  position: relative;
  flex-shrink: 0;
  width: 18px; height: 18px;
}
.th-faq-ic::before, .th-faq-ic::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  background: var(--accent2);
  border-radius: 2px;
  transition: transform .3s var(--th-ease), opacity .3s var(--th-ease);
}
.th-faq-ic::before { width: 12px; height: 2px; transform: translate(-50%, -50%); }
.th-faq-ic::after { width: 2px; height: 12px; transform: translate(-50%, -50%); }
.th-faq-item[open] .th-faq-ic::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.th-faq-a { padding: 0 22px 20px; }
.th-faq-a p { font-size: 14.5px; line-height: 1.7; color: var(--text-muted); }
.th-faq-a code { font-family: 'JetBrains Mono', monospace; font-size: .88em; color: var(--accent2); background: rgba(96, 165, 250, .1); padding: 1px 5px; border-radius: 5px; }
/* Smooth open (progressive enhancement; ignored where unsupported). */
@supports (interpolate-size: allow-keywords) {
  .th-faq-item { interpolate-size: allow-keywords; }
}

/* ─────────────────────────────────────────────
   FINAL CTA
   ───────────────────────────────────────────── */
.th-finale { max-width: var(--th-maxw); margin: 0 auto; padding: 130px 24px 90px; }
.th-finale-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 72px 32px;
  border-radius: 30px;
  background:
    radial-gradient(120% 140% at 50% -20%, rgba(96, 165, 250, .18), transparent 60%),
    linear-gradient(180deg, rgba(18, 22, 38, .7), rgba(9, 10, 18, .8));
  border: 1px solid var(--th-line-2);
  box-shadow: var(--th-shadow);
}
.th-finale-glow {
  position: absolute; left: 50%; bottom: -60%; transform: translateX(-50%);
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(96, 165, 250, .22), transparent 70%);
  pointer-events: none;
}
.th-finale-card h2 {
  position: relative;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(30px, 4.4vw, 50px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.06;
  color: var(--th-ink);
  margin-bottom: 16px;
}
.th-finale-card p { position: relative; font-size: 16.5px; line-height: 1.6; color: var(--text-muted); max-width: 480px; margin: 0 auto 32px; }
.th-finale-actions { position: relative; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ─────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────── */
.th-footer {
  border-top: 1px solid var(--th-line);
  background: linear-gradient(180deg, transparent, rgba(6, 7, 12, .6));
}
.th-footer-top {
  max-width: var(--th-maxw);
  margin: 0 auto;
  padding: 64px 24px 40px;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
}
.th-footer-logo { width: 128px; height: auto; display: block; margin-bottom: 14px; }
.th-footer-brand p { font-size: 14px; line-height: 1.6; color: var(--text-muted); max-width: 300px; }
.th-footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.th-footer-col h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-bottom: 14px; }
.th-footer-col a { display: block; font-size: 14px; color: var(--text); text-decoration: none; margin-bottom: 11px; transition: color .2s var(--th-ease); }
.th-footer-col a:hover { color: var(--accent); }
.th-footer-bottom {
  max-width: var(--th-maxw);
  margin: 0 auto;
  padding: 22px 24px;
  border-top: 1px solid var(--th-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ─────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .th-hero-inner { grid-template-columns: 1fr; gap: 8px; }
  .th-hero-copy { max-width: 640px; }
  .th-hero-stage { height: 420px; margin-top: 12px; }
  .th-cell-lg { grid-column: span 6; grid-row: auto; }
  .th-cell-wide { grid-column: span 6; }
  .th-cell { grid-column: span 3; }
}

/* The burger + its dropdown belong to the compact layout only. */
@media (min-width: 861px) {
  .th-nav-mobile { display: none !important; }
}
@media (max-width: 860px) {
  .th-nav-links { display: none; }
  .th-nav-right { display: none; }
  .th-nav-burger { display: flex; }
  .th-nav-inner { margin: 0; }
}

@media (max-width: 720px) {
  .th-hero { padding-top: 128px; }
  .th-hero-stage { height: 400px; }
  .th-panel-chat { width: min(320px, 92%); right: 0; }
  .th-panel-flow { width: 200px; opacity: .85; }
  .th-section { padding-top: 90px; }
  .th-bento { grid-template-columns: 1fr; }
  .th-cell, .th-cell-lg, .th-cell-wide { grid-column: auto; min-height: 0; }
  .th-cell-split { grid-template-columns: 1fr; gap: 18px; }
  .th-steps { grid-template-columns: 1fr; }
  .th-step-line { display: none; }
  .th-price-grid { grid-template-columns: 1fr; }
  .th-price-featured { order: -1; }
  .th-metric-div { display: none; }
  .th-footer-top { grid-template-columns: 1fr; }
  .th-finale { padding: 90px 20px 70px; }
  .th-finale-card { padding: 52px 24px; }
}

@media (max-width: 480px) {
  .th-hero-stage { height: 380px; }
  .th-footer-cols { grid-template-columns: 1fr 1fr; }
  .th-footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ─────────────────────────────────────────────
   REDUCED MOTION — kill idle/ambient loops, keep static composition
   ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .th-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .th-bg-aurora, .th-bg-orb, .th-marquee-track, .th-step-line i, .th-flow-pulse,
  .th-viz-pulse, .th-orch-sub, .th-wm-launch, .th-chip-pulse::after, .th-live-dot,
  .th-hero-title-grad, .th-caret {
    animation: none !important;
  }
  .th-spark-line { stroke-dashoffset: 0 !important; }
  .th-btn, .th-cell, .th-price, .th-step, .th-panel { transition: none !important; }
}
