:root {
  --bg: #f8faff;
  --bg-soft: #f1f5ff;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-solid: #ffffff;
  --surface-dark: #0b1020;
  --line: rgba(23, 37, 84, 0.1);
  --line-strong: rgba(23, 37, 84, 0.18);
  --text: #111827;
  --text-soft: #5c6578;
  --text-faint: #8b94a7;
  --blue: #0877f9;
  --blue-deep: #0757d5;
  --violet: #7448f5;
  --cyan: #22b9e6;
  --green: #16a875;
  --orange: #f59e42;
  --danger: #ef5a67;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --radius-xl: 42px;
  --shadow-sm: 0 10px 30px rgba(31, 51, 94, 0.07);
  --shadow-md: 0 24px 70px rgba(31, 51, 94, 0.11);
  --shadow-lg: 0 36px 100px rgba(31, 51, 94, 0.16);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.25, 0.8, 0.25, 1);
  --nav-height: 68px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color-scheme: light;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background:
    radial-gradient(circle at 50% -20%, rgba(50, 142, 255, 0.08), transparent 38%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  color: inherit;
}

img,
svg {
  display: block;
}

::selection {
  background: rgba(8, 119, 249, 0.2);
}

:focus-visible {
  outline: 3px solid rgba(8, 119, 249, 0.45);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  padding: 10px 16px;
  border-radius: 12px;
  background: #111827;
  color: #fff;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - 48px, 1360px);
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

.ambient-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.34;
  transform: translateZ(0);
}

.ambient-orb-cyan {
  width: 680px;
  height: 680px;
  top: -280px;
  left: 8%;
  background: rgba(38, 190, 232, 0.22);
}

.ambient-orb-violet {
  width: 820px;
  height: 820px;
  top: 26%;
  right: -330px;
  background: rgba(116, 72, 245, 0.15);
}

.ambient-grid {
  position: absolute;
  inset: 0;
  opacity: 0.7;
  background-image:
    linear-gradient(rgba(32, 68, 128, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 68, 128, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.65) 50%, transparent 95%);
}

#motion-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.72;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* Navigation */
.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--nav-height);
  border-bottom: 1px solid transparent;
  background: rgba(248, 250, 255, 0.68);
  backdrop-filter: blur(22px) saturate(160%);
  transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-nav.scrolled {
  border-color: var(--line);
  background: rgba(252, 253, 255, 0.92);
  box-shadow: 0 8px 30px rgba(35, 52, 88, 0.05);
}

.nav-shell {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand-unit {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
  color: var(--text);
  text-decoration: none;
}

.brand-symbol {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(8, 119, 249, 0.18);
  transition: transform 280ms var(--ease-out);
}

.brand-unit:hover .brand-symbol {
  transform: rotate(-4deg) scale(1.06);
}

.brand-copy {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-copy strong {
  font-size: 17px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.version-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border: 1px solid rgba(8, 119, 249, 0.18);
  border-radius: 999px;
  background: rgba(8, 119, 249, 0.07);
  color: var(--blue-deep);
  font-size: 11px;
  font-weight: 700;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(23, 37, 84, 0.07);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
}

.desktop-nav a {
  position: relative;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 4px 18px rgba(31, 51, 94, 0.07);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-github,
.nav-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms var(--ease-out), box-shadow 180ms ease, background-color 180ms ease;
}

.nav-github {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.nav-github svg {
  width: 16px;
  height: 16px;
}

.nav-download {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(8, 119, 249, 0.24);
}

.nav-github:hover,
.nav-download:hover {
  transform: translateY(-1px);
}

.nav-download:hover {
  background: var(--blue-deep);
  box-shadow: 0 10px 26px rgba(8, 119, 249, 0.3);
}

.mobile-menu-toggle,
.mobile-menu {
  display: none;
}

/* Shared */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 220ms var(--ease-out), box-shadow 220ms ease, background-color 220ms ease, border-color 220ms ease;
}

.button svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.button-primary {
  background: linear-gradient(135deg, #121826, #090c14);
  color: #fff;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.18);
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.24);
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.button-secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(8, 119, 249, 0.24);
  background: #fff;
}

.section-space {
  padding: 132px 0;
}

.section-heading {
  width: min(100%, 760px);
  margin: 0 auto 64px;
  text-align: center;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.section-kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

.section-heading h2,
.story-heading h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.section-heading p,
.story-heading p {
  margin: 20px auto 0;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.7;
}

/* Hero */
.hero-section {
  min-height: 100svh;
  padding: calc(var(--nav-height) + 92px) 0 72px;
  display: flex;
  align-items: center;
}

.hero-content {
  text-align: center;
}

.hero-brand-mark {
  position: relative;
  width: 82px;
  height: 82px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
}

.hero-brand-mark img {
  position: relative;
  z-index: 1;
  width: 82px;
  height: 82px;
  border-radius: 24px;
  object-fit: cover;
  filter: drop-shadow(0 18px 28px rgba(8, 119, 249, 0.18));
}

.hero-brand-halo {
  position: absolute;
  inset: -14px;
  border: 1px solid rgba(8, 119, 249, 0.14);
  border-radius: 31px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(8, 119, 249, 0.06) 56%, transparent 72%);
  box-shadow: 0 0 50px rgba(56, 164, 255, 0.15);
  transform: rotate(8deg);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border: 1px solid rgba(8, 119, 249, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 8px 30px rgba(8, 119, 249, 0.06);
  color: var(--blue-deep);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.1em;
  backdrop-filter: blur(16px);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(22, 168, 117, 0.1), 0 0 18px rgba(22, 168, 117, 0.5);
}

.hero-title {
  margin: 30px auto 26px;
  font-size: clamp(54px, 5.8vw, 86px);
  font-weight: 850;
  line-height: 0.94;
  letter-spacing: -0.072em;
}

.hero-line {
  display: block;
  overflow: hidden;
  padding: 0.04em 0.08em 0.1em;
  margin: -0.05em -0.08em;
}

.hero-line > span {
  display: inline-block;
  transform-origin: 50% 100%;
}

.hero-line-gradient {
  color: inherit;
}

.hero-line-gradient > span {
  background: linear-gradient(100deg, #0877f9 5%, #4f66ed 45%, #8e3ff2 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  width: min(100%, 820px);
  margin: 0 auto;
  color: var(--text-soft);
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.75;
  letter-spacing: -0.015em;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-trust {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-faint);
  font-size: 13px;
}

.hero-trust li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero-trust li span {
  color: var(--green);
  font-weight: 900;
}

.signal-runway {
  position: relative;
  width: min(100%, 940px);
  margin: 72px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 72px;
}

.runway-line {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 13%;
  right: 13%;
  height: 1px;
  background: linear-gradient(90deg, rgba(8, 119, 249, 0.08), rgba(8, 119, 249, 0.38), rgba(116, 72, 245, 0.12));
  overflow: hidden;
}

.runway-line span {
  position: absolute;
  top: -1px;
  left: -18%;
  width: 18%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #37c5ee, #7d5cff, transparent);
  filter: drop-shadow(0 0 8px rgba(8, 119, 249, 0.7));
  animation: runway-flow 3.4s linear infinite;
}

@keyframes runway-flow {
  to { transform: translateX(660%); }
}

.runway-node {
  position: relative;
  min-height: 80px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
}

.runway-node > span:last-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--text);
  font-size: 14px;
  font-weight: 750;
}

.runway-node small {
  color: var(--text-faint);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.runway-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(8, 119, 249, 0.08);
  color: var(--blue);
  font-size: 18px;
}

.runway-node-core {
  border-color: rgba(8, 119, 249, 0.28);
  background: #fff;
  box-shadow: 0 18px 55px rgba(8, 119, 249, 0.16);
  transform: scale(1.04);
}

.core-pulse {
  position: absolute;
  inset: -1px;
  border: 1px solid rgba(8, 119, 249, 0.3);
  border-radius: inherit;
  animation: core-pulse 2.8s var(--ease-out) infinite;
}

@keyframes core-pulse {
  0%, 45% { opacity: 0; transform: scale(1); }
  70% { opacity: 0.65; }
  100% { opacity: 0; transform: scale(1.12, 1.32); }
}

.scroll-cue {
  width: max-content;
  margin: 58px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.scroll-cue-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(var(--blue), transparent);
  transform-origin: top;
  animation: cue-stretch 1.8s ease-in-out infinite;
}

@keyframes cue-stretch {
  0%, 100% { transform: scaleY(0.35); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* Cinematic story */
.story-section {
  position: relative;
  height: 520vh;
  background:
    linear-gradient(180deg, rgba(246, 249, 255, 0) 0%, rgba(235, 242, 255, 0.86) 8%, rgba(242, 246, 255, 0.96) 88%, transparent 100%);
}

.story-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 720px;
  padding: calc(var(--nav-height) + 20px) 0 24px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.story-layout {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.62fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 22px;
}

.story-heading .section-kicker {
  grid-column: 1 / -1;
  margin-bottom: -26px;
}

.story-heading h2 {
  font-size: clamp(34px, 3.5vw, 52px);
}

.story-heading p {
  margin: 0 0 4px;
  font-size: 15px;
}

.story-stage {
  min-height: 0;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 250px;
  gap: 22px;
  align-items: center;
}

.scene-rail {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-left: 18px;
}

.scene-progress-track {
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 4px;
  width: 2px;
  border-radius: 999px;
  background: rgba(8, 119, 249, 0.1);
  overflow: hidden;
}

.scene-progress-track span {
  display: block;
  width: 100%;
  height: 0;
  border-radius: inherit;
  background: linear-gradient(var(--blue), var(--violet));
  box-shadow: 0 0 14px rgba(8, 119, 249, 0.5);
}

.scene-nav-item {
  width: 100%;
  min-height: 61px;
  padding: 8px 9px;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--text-faint);
  text-align: left;
  cursor: pointer;
  transition: color 200ms ease, background-color 200ms ease, transform 200ms var(--ease-out);
}

.scene-nav-item:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.52);
}

.scene-nav-item.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 28px rgba(31, 51, 94, 0.08);
  transform: translateX(3px);
}

.scene-index {
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
}

.scene-nav-item > span:last-child {
  display: flex;
  flex-direction: column;
}

.scene-nav-item strong {
  font-size: 13px;
  line-height: 1.25;
}

.scene-nav-item small {
  margin-top: 3px;
  color: var(--text-faint);
  font-size: 10px;
  line-height: 1.25;
}

.product-frame-wrap {
  position: relative;
  min-width: 0;
  perspective: 1400px;
}

.product-glow {
  position: absolute;
  inset: 12% 8% -9%;
  border-radius: 50%;
  background: linear-gradient(110deg, rgba(35, 185, 230, 0.26), rgba(91, 88, 238, 0.24));
  filter: blur(60px);
  opacity: 0.56;
}

.product-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(23, 37, 84, 0.13);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-lg), inset 0 1px rgba(255, 255, 255, 0.9);
  transform: translateZ(0);
}

.product-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.38), transparent 26%, transparent 74%, rgba(122, 92, 255, 0.06));
}

.window-bar {
  height: 45px;
  padding: 0 14px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 252, 255, 0.9);
}

.window-lights {
  display: flex;
  gap: 6px;
}

.window-lights span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.window-lights span:nth-child(1) { background: #ff6259; }
.window-lights span:nth-child(2) { background: #ffbd2e; }
.window-lights span:nth-child(3) { background: #28c940; }

.window-title {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 700;
}

.window-title img {
  width: 18px;
  height: 18px;
  border-radius: 5px;
}

.window-live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(22, 168, 117, 0.08);
  color: var(--green);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.window-live i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.window-controls {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  color: var(--text-faint);
  font-size: 10px;
}

.product-body {
  height: 485px;
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
}

.agent-tabs {
  padding: 18px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-right: 1px solid var(--line);
  background: rgba(246, 248, 252, 0.82);
}

.agent-tab {
  min-width: 0;
  min-height: 45px;
  padding: 8px 9px;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.agent-tab:hover,
.agent-tab.active {
  border-color: rgba(23, 37, 84, 0.07);
  background: #fff;
  color: var(--text);
  box-shadow: 0 6px 18px rgba(31, 51, 94, 0.06);
}

.agent-tab small {
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(8, 119, 249, 0.07);
  color: var(--blue-deep);
  font-size: 7px;
}

.agent-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}

.dot-green { background: #27c991; color: #27c991; }
.dot-purple { background: #8758ef; color: #8758ef; }
.dot-orange { background: #f58a45; color: #f58a45; }
.dot-gold { background: #f0a423; color: #f0a423; }
.dot-blue { background: #278cf5; color: #278cf5; }

.product-workspace {
  min-width: 0;
  padding: 22px 24px 18px;
  display: flex;
  flex-direction: column;
}

.workspace-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.workspace-overline {
  margin-bottom: 5px;
  color: var(--blue-deep);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.workspace-head h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.workspace-head p {
  margin: 5px 0 0;
  color: var(--text-soft);
  font-size: 10px;
  line-height: 1.5;
}

.status-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid rgba(22, 168, 117, 0.2);
  border-radius: 999px;
  background: rgba(22, 168, 117, 0.07);
  color: var(--green);
  font-size: 8px;
  font-weight: 800;
}

.status-badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.discovery-strip {
  margin: 14px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-height: 70px;
  opacity: 1;
  transform: translateY(0);
  transition: max-height 320ms var(--ease-out), margin 320ms var(--ease-out), opacity 220ms ease, transform 320ms var(--ease-out);
}

.product-frame:not(.show-discovery) .discovery-strip {
  max-height: 0;
  margin-top: 0;
  margin-bottom: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
}

.product-frame[data-scene-state="stream"] .terminal-panel {
  border-color: rgba(36, 216, 162, 0.24);
  box-shadow: 0 0 0 1px rgba(36, 216, 162, 0.05), 0 16px 36px rgba(14, 26, 49, 0.16);
}

.product-frame[data-scene-state="write"] .config-panel input {
  border-color: rgba(8, 119, 249, 0.22);
  background: rgba(8, 119, 249, 0.035);
}

.product-frame[data-scene-state="restart"] .product-action {
  background: var(--green);
  box-shadow: 0 7px 16px rgba(22, 168, 117, 0.22);
}

.discovery-item {
  min-width: 0;
  padding: 9px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(22, 168, 117, 0.13);
  border-radius: 10px;
  background: rgba(22, 168, 117, 0.04);
}

.discovery-check {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(22, 168, 117, 0.1);
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
}

.discovery-item > span:last-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.discovery-item strong {
  overflow: hidden;
  color: var(--text);
  font-size: 8px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discovery-item small {
  color: var(--text-faint);
  font-size: 7px;
}

.config-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 12px;
}

.config-panel label {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--text-soft);
  font-size: 8px;
  font-weight: 700;
}

.field-wide {
  grid-column: 1 / -1;
}

.config-panel label > span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.config-panel input {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  background: #fbfcff;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 9px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.config-panel input:focus {
  border-color: rgba(8, 119, 249, 0.42);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(8, 119, 249, 0.08);
}

.text-action {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: inherit;
  font-weight: 800;
  cursor: pointer;
}

.model-chips {
  display: flex;
  gap: 6px;
  overflow: hidden;
}

.model-chip {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7f9fd;
  color: var(--text-soft);
  font-size: 7px;
  font-weight: 750;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.model-chip:hover,
.model-chip.active {
  border-color: rgba(8, 119, 249, 0.22);
  background: rgba(8, 119, 249, 0.08);
  color: var(--blue-deep);
}

.terminal-panel {
  min-height: 104px;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: linear-gradient(145deg, #101728, #090e19);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
}

.terminal-head {
  height: 30px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: #8895ac;
  font-family: var(--font-mono);
  font-size: 7px;
}

.terminal-head span:first-child {
  display: flex;
  align-items: center;
  gap: 6px;
}

.terminal-head i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #39d89b;
  box-shadow: 0 0 8px #39d89b;
}

#sim-latency-badge {
  color: #44d9a2;
}

.terminal-panel pre {
  height: 74px;
  margin: 0;
  padding: 10px 12px;
  overflow: hidden;
  color: #aeb9cc;
  font-family: var(--font-mono);
  font-size: 7.5px;
  line-height: 1.62;
  white-space: pre-wrap;
}

.workspace-footer {
  margin-top: auto;
  padding-top: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.write-state {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-faint);
  font-size: 8px;
}

.write-state span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #dce2ed;
  transition: background-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.write-state.active span {
  background: var(--blue);
  box-shadow: 0 0 8px rgba(8, 119, 249, 0.65);
  animation: state-dot 900ms ease-in-out infinite alternate;
}

.write-state.active span:nth-child(2) { animation-delay: 130ms; }
.write-state.active span:nth-child(3) { animation-delay: 260ms; }

@keyframes state-dot {
  to { transform: translateY(-3px); }
}

.write-state.complete span {
  background: var(--green);
  box-shadow: 0 0 8px rgba(22, 168, 117, 0.5);
}

.product-action {
  min-height: 31px;
  padding: 7px 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 7px 16px rgba(8, 119, 249, 0.22);
  transition: transform 180ms var(--ease-out), background-color 180ms ease;
}

.product-action:hover {
  transform: translateY(-1px);
  background: var(--blue-deep);
}

.product-action svg {
  width: 11px;
  height: 11px;
}

.scene-copy {
  min-width: 0;
  padding: 24px 4px;
}

.scene-copy-index {
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.scene-copy h3 {
  margin: 15px 0 12px;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.scene-copy > p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
}

.scene-bullets {
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  color: var(--text-soft);
  font-size: 12px;
}

.scene-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.scene-bullets li::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  margin-top: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 0 9px rgba(8, 119, 249, 0.35);
}

.replay-button {
  margin-top: 26px;
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.replay-button svg {
  width: 16px;
  height: 16px;
  transition: transform 260ms var(--ease-out);
}

.replay-button:hover svg {
  transform: rotate(-80deg);
}

.mobile-story {
  display: none;
}

/* Capability */
.capability-section {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.72) 35%, rgba(255, 255, 255, 0.72) 75%, transparent);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 22px;
}

.capability-card {
  position: relative;
  min-height: 270px;
  padding: 30px;
  overflow: hidden;
  grid-column: span 4;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
  transition: transform 300ms var(--ease-out), border-color 300ms ease, box-shadow 300ms ease;
}

.capability-card:hover {
  transform: translateY(-5px);
  border-color: rgba(8, 119, 249, 0.22);
  box-shadow: var(--shadow-md);
}

.card-glare {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(380px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(8, 119, 249, 0.11), transparent 68%);
  transition: opacity 260ms ease;
}

.spotlight-card:hover .card-glare {
  opacity: 1;
}

.capability-card > :not(.card-glare),
.download-primary > :not(.card-glare),
.download-compact > :not(.card-glare) {
  position: relative;
  z-index: 1;
}

.capability-card-main {
  min-height: 416px;
  grid-column: span 8;
  grid-row: span 2;
  padding: 42px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(238, 245, 255, 0.9)),
    #fff;
}

.card-label {
  width: max-content;
  padding: 5px 10px;
  border: 1px solid rgba(8, 119, 249, 0.15);
  border-radius: 999px;
  background: rgba(8, 119, 249, 0.06);
  color: var(--blue-deep);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.capability-card h3 {
  margin: 18px 0 10px;
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.capability-card-main h3 {
  width: min(100%, 640px);
  margin-top: 24px;
  font-size: clamp(30px, 3.5vw, 48px);
  line-height: 1.08;
}

.capability-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.75;
}

.capability-card-main > p {
  width: min(100%, 650px);
  font-size: 16px;
}

.agent-orbit {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.agent-orbit > div {
  min-width: 0;
  padding: 14px;
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.74);
}

.agent-orbit i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.agent-orbit span {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.agent-orbit strong,
.agent-orbit small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-orbit strong {
  font-size: 12px;
}

.agent-orbit small {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 8px;
}

.agent-orbit b {
  color: var(--green);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(8, 119, 249, 0.14);
  border-radius: 14px;
  background: rgba(8, 119, 249, 0.07);
  color: var(--blue);
  font-size: 21px;
  font-weight: 500;
}

.metric-value {
  display: block;
  margin-top: 24px;
  font-size: 44px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.055em;
}

.metric-card h3 {
  margin-top: 12px;
}

.mini-flow {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-deep);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 800;
}

.mini-flow i {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, rgba(8, 119, 249, 0.14), rgba(8, 119, 249, 0.5));
}

.process-status {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.process-status span {
  padding: 6px 9px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: rgba(22, 168, 117, 0.07);
  color: var(--green);
  font-size: 9px;
  font-weight: 750;
}

.process-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.inline-demo-button {
  margin-top: 26px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--blue-deep);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.inline-demo-button span {
  transition: transform 180ms var(--ease-out);
}

.inline-demo-button:hover span {
  transform: translate(3px, -3px);
}

/* Workflow */
.workflow-section {
  overflow: hidden;
}

.workflow-path {
  position: relative;
  padding-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.workflow-line {
  position: absolute;
  top: 58px;
  left: 16.66%;
  right: 16.66%;
  height: 2px;
  background: rgba(8, 119, 249, 0.1);
}

.workflow-line span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  box-shadow: 0 0 16px rgba(8, 119, 249, 0.35);
}

.workflow-step {
  position: relative;
  min-height: 270px;
  padding: 58px 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 280ms var(--ease-out), border-color 280ms ease, background-color 280ms ease;
}

.workflow-step.active,
.workflow-step:hover {
  transform: translateY(-5px);
  border-color: rgba(8, 119, 249, 0.24);
  background: #fff;
}

.workflow-number {
  position: absolute;
  top: 18px;
  left: 22px;
  color: rgba(8, 119, 249, 0.18);
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 850;
}

.workflow-dot {
  position: absolute;
  z-index: 2;
  top: -15px;
  left: 50%;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 7px solid var(--bg);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 18px rgba(31, 51, 94, 0.1);
  transform: translateX(-50%);
}

.workflow-dot i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(8, 119, 249, 0.28);
  transition: background-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.workflow-step.active .workflow-dot i {
  background: var(--blue);
  box-shadow: 0 0 12px rgba(8, 119, 249, 0.65);
  transform: scale(1.25);
}

.workflow-step h3 {
  margin: 10px 0;
  font-size: 22px;
  letter-spacing: -0.035em;
}

.workflow-step p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.75;
}

.workflow-step small {
  display: block;
  margin-top: 22px;
  color: var(--blue-deep);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

/* Downloads */
.download-section {
  background:
    radial-gradient(circle at 30% 48%, rgba(8, 119, 249, 0.08), transparent 32%),
    radial-gradient(circle at 75% 62%, rgba(116, 72, 245, 0.07), transparent 30%);
}

.download-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
  gap: 24px;
}

.download-primary,
.download-compact {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
}

.download-primary {
  min-height: 556px;
  padding: 44px;
  border-radius: var(--radius-xl);
}

.download-primary::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -140px;
  width: 390px;
  height: 390px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(8, 119, 249, 0.16), transparent 70%);
}

.download-recommend {
  position: absolute;
  top: 24px;
  right: 26px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 10px;
  font-weight: 850;
}

.download-platform-icon,
.compact-icon {
  display: grid;
  place-items: center;
  border: 1px solid rgba(8, 119, 249, 0.15);
  background: rgba(8, 119, 249, 0.07);
  color: var(--blue);
}

.download-platform-icon {
  width: 66px;
  height: 66px;
  margin-bottom: 26px;
  border-radius: 20px;
}

.download-platform-icon svg {
  width: 30px;
  height: 30px;
}

.download-kicker {
  color: var(--blue-deep);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.download-primary h3,
.download-compact h3 {
  margin: 8px 0 10px;
  letter-spacing: -0.04em;
}

.download-primary h3 {
  font-size: clamp(32px, 3.6vw, 50px);
}

.download-primary > p,
.download-compact p {
  color: var(--text-soft);
}

.download-primary > p {
  width: min(100%, 660px);
  margin: 0;
  font-size: 16px;
}

.download-primary ul {
  margin: 28px 0 34px;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
  color: var(--text-soft);
  font-size: 13px;
}

.download-primary li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.download-primary li span {
  color: var(--green);
  font-weight: 900;
}

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.download-secondary-column {
  display: grid;
  grid-template-rows: repeat(2, 1fr);
  gap: 24px;
}

.download-compact {
  padding: 30px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  border-radius: var(--radius-lg);
  transition: transform 280ms var(--ease-out), border-color 280ms ease, box-shadow 280ms ease;
}

.download-compact:hover {
  transform: translateY(-4px);
  border-color: rgba(8, 119, 249, 0.22);
  box-shadow: var(--shadow-md);
}

.compact-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 800;
}

.download-compact h3 {
  font-size: 22px;
}

.download-compact p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
}

.compact-actions {
  grid-column: 1 / -1;
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  border-top: 1px solid var(--line);
}

.compact-actions a,
.compact-actions button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.security-strip {
  margin-top: 24px;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-sm);
}

.security-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(22, 168, 117, 0.09);
  color: var(--green);
  font-weight: 900;
}

.security-strip strong {
  font-size: 14px;
}

.security-strip p {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 10px;
}

.security-strip button {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--blue-deep);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

/* FAQ */
.faq-container {
  width: min(100% - 48px, 940px);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item h3 {
  margin: 0;
}

.faq-trigger {
  width: 100%;
  padding: 25px 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 17px;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}

.faq-trigger i {
  position: relative;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
}

.faq-trigger i::before,
.faq-trigger i::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.5px;
  border-radius: 999px;
  background: var(--text-soft);
  transform: translate(-50%, -50%);
  transition: transform 220ms var(--ease-out);
}

.faq-trigger i::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-trigger[aria-expanded="true"] i::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 340ms var(--ease-out);
}

.faq-panel > div {
  overflow: hidden;
}

.faq-item.open .faq-panel {
  grid-template-rows: 1fr;
}

.faq-panel p {
  margin: 0;
  padding: 0 50px 25px 2px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.8;
}

/* Floating CTA and footer */
.floating-download {
  position: fixed;
  z-index: 800;
  right: 24px;
  bottom: 24px;
  padding: 8px 8px 8px 15px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(23, 37, 84, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 220ms ease, transform 220ms var(--ease-out);
}

.floating-download.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.floating-download > span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.floating-download strong {
  font-size: 12px;
}

.floating-download small {
  color: var(--text-faint);
  font-size: 9px;
}

.floating-download a {
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.site-footer {
  padding: 72px 0 28px;
  border-top: 1px solid var(--line);
  background: rgba(246, 248, 253, 0.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
}

.footer-brand p {
  width: min(100%, 430px);
  margin: 20px 0 0;
  color: var(--text-soft);
  font-size: 14px;
}

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

.footer-links > div {
  min-width: 110px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links strong {
  margin-bottom: 4px;
  font-size: 12px;
}

.footer-links a {
  color: var(--text-soft);
  font-size: 12px;
  text-decoration: none;
}

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

.footer-legal {
  margin-top: 50px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 10px;
}

.toast {
  position: fixed;
  z-index: 2000;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 17px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: #101624;
  color: #fff;
  box-shadow: 0 18px 45px rgba(10, 17, 30, 0.25);
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 200ms ease, transform 200ms var(--ease-out);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Tablet */
@media (max-width: 1180px) {
  .desktop-nav {
    gap: 0;
  }

  .desktop-nav a {
    padding-inline: 10px;
  }

  .story-stage {
    grid-template-columns: 150px minmax(0, 1fr) 210px;
    gap: 14px;
  }

  .product-body {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .agent-tab span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .scene-copy h3 {
    font-size: 26px;
  }

  .agent-orbit {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  :root {
    --nav-height: 64px;
  }

  .container {
    width: min(100% - 36px, 960px);
  }

  .desktop-nav {
    display: none;
  }

  .hero-section {
    padding-top: calc(var(--nav-height) + 80px);
  }

  .story-sticky {
    min-height: 820px;
  }

  .story-heading {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-bottom: 14px;
  }

  .story-heading .section-kicker {
    grid-column: auto;
    margin-bottom: 0;
  }

  .story-heading p {
    display: none;
  }

  .story-stage {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .scene-rail {
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
  }

  .scene-progress-track {
    display: none;
  }

  .scene-nav-item {
    min-height: 52px;
    padding: 7px;
    grid-template-columns: 1fr;
    gap: 0;
    text-align: center;
  }

  .scene-nav-item.active {
    transform: translateY(-2px);
  }

  .scene-nav-item small {
    display: none;
  }

  .product-frame-wrap {
    width: min(100%, 820px);
    margin: 0 auto;
  }

  .product-body {
    height: 510px;
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .scene-copy {
    display: none;
  }

  .capability-card {
    grid-column: span 6;
  }

  .capability-card-main {
    grid-column: span 12;
    grid-row: auto;
  }

  .download-layout {
    grid-template-columns: 1fr;
  }

  .download-secondary-column {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
}

/* Mobile story cards */
@media (max-width: 767px) {
  :root {
    --nav-height: 60px;
  }

  html {
    scroll-padding-top: 68px;
  }

  .container,
  .faq-container {
    width: min(100% - 28px, 620px);
  }

  .site-nav {
    height: var(--nav-height);
  }

  .brand-symbol {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .brand-copy strong {
    font-size: 15px;
  }

  .version-pill,
  .nav-github {
    display: none;
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-download {
    min-height: 34px;
    padding: 7px 12px;
    font-size: 11px;
    white-space: nowrap;
  }

  .mobile-menu-toggle {
    width: 36px;
    height: 36px;
    padding: 0;
    display: grid;
    place-content: center;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
  }

  .mobile-menu-toggle span {
    width: 14px;
    height: 1.5px;
    border-radius: 999px;
    background: var(--text);
    transition: transform 200ms var(--ease-out);
  }

  .mobile-menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.25px) rotate(45deg);
  }

  .mobile-menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.25px) rotate(-45deg);
  }

  .mobile-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 14px;
    left: 14px;
    padding: 10px;
    display: grid;
    gap: 3px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top;
    transition: opacity 180ms ease, transform 180ms var(--ease-out);
  }

  .mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .mobile-menu a {
    padding: 11px 12px;
    border-radius: 12px;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
  }

  .mobile-menu a:hover {
    background: var(--bg-soft);
    color: var(--text);
  }

  .ambient-orb {
    filter: blur(70px);
    opacity: 0.24;
  }

  #motion-grid {
    display: none;
  }

  .hero-section {
    min-height: auto;
    padding: calc(var(--nav-height) + 66px) 0 64px;
  }

  .hero-brand-mark {
    width: 68px;
    height: 68px;
    margin-bottom: 18px;
  }

  .hero-brand-mark img {
    width: 68px;
    height: 68px;
    border-radius: 20px;
  }

  .hero-eyebrow {
    padding: 6px 11px;
    font-size: 9px;
    letter-spacing: 0.06em;
  }

  .hero-title {
    margin-top: 24px;
    font-size: clamp(46px, 15vw, 66px);
    line-height: 0.98;
  }

  .hero-lead {
    font-size: 16px;
    line-height: 1.75;
  }

  .hero-actions {
    margin-top: 28px;
    display: grid;
  }

  .hero-actions .button {
    width: 100%;
    min-height: 54px;
  }

  .hero-trust {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    width: max-content;
    margin-inline: auto;
  }

  .signal-runway {
    margin-top: 48px;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .runway-line {
    top: 10%;
    bottom: 10%;
    left: 50%;
    right: auto;
    width: 1px;
    height: auto;
  }

  .runway-line span {
    top: -20%;
    left: -1px;
    width: 3px;
    height: 20%;
    animation-name: runway-flow-mobile;
  }

  @keyframes runway-flow-mobile {
    to { transform: translateY(600%); }
  }

  .runway-node {
    width: min(100%, 310px);
    min-height: 64px;
    margin-inline: auto;
  }

  .runway-node-core {
    transform: none;
  }

  .scroll-cue {
    margin-top: 38px;
  }

  .story-section {
    height: auto;
    padding: 76px 0 40px;
    background: linear-gradient(180deg, rgba(235, 242, 255, 0.78), rgba(248, 250, 255, 0));
  }

  .story-sticky {
    display: none;
  }

  .mobile-story {
    display: grid;
    gap: 16px;
  }

  .mobile-story-intro {
    margin-bottom: 18px;
    text-align: left;
  }

  .mobile-story-intro h2 {
    margin: 12px 0;
    font-size: 39px;
    line-height: 1.06;
    letter-spacing: -0.055em;
  }

  .mobile-story-intro p {
    margin: 0;
    color: var(--text-soft);
    font-size: 15px;
  }

  .mobile-scene-card {
    position: relative;
    min-height: 310px;
    padding: 24px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 500ms ease, transform 650ms var(--ease-out);
  }

  .mobile-scene-card.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .mobile-scene-card::before {
    content: "";
    position: absolute;
    top: -90px;
    right: -70px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(8, 119, 249, 0.13), transparent 70%);
  }

  .mobile-scene-top,
  .mobile-scene-ui,
  .mobile-scene-card h3,
  .mobile-scene-card p,
  .mobile-scene-card ul {
    position: relative;
    z-index: 1;
  }

  .mobile-scene-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--blue-deep);
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.1em;
  }

  .mobile-scene-card h3 {
    margin: 20px 0 10px;
    font-size: 25px;
    line-height: 1.12;
    letter-spacing: -0.04em;
  }

  .mobile-scene-card > p {
    margin: 0;
    color: var(--text-soft);
    font-size: 14px;
  }

  .mobile-scene-ui {
    margin-top: 22px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: rgba(247, 249, 253, 0.86);
  }

  .mobile-ui-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
    font-size: 11px;
  }

  .mobile-ui-row:last-child {
    border-bottom: 0;
  }

  .mobile-ui-row span {
    color: var(--text-soft);
  }

  .mobile-ui-row strong {
    text-align: right;
    font-family: var(--font-mono);
    font-size: 10px;
  }

  .section-space {
    padding: 88px 0;
  }

  .section-heading {
    margin-bottom: 42px;
    text-align: left;
  }

  .section-heading h2 {
    font-size: 40px;
  }

  .section-heading p {
    margin-top: 15px;
    font-size: 15px;
  }

  .capability-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .capability-card,
  .capability-card-main {
    min-height: auto;
    padding: 26px;
    grid-column: auto;
  }

  .capability-card-main h3 {
    font-size: 32px;
  }

  .capability-card-main > p {
    font-size: 14px;
  }

  .agent-orbit {
    grid-template-columns: 1fr;
  }

  .metric-value {
    font-size: 40px;
  }

  .workflow-path {
    padding-top: 0;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .workflow-line {
    top: 42px;
    bottom: 42px;
    left: 22px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .workflow-line span {
    width: 100%;
    height: 0;
  }

  .workflow-step {
    min-height: 0;
    padding: 26px 22px 26px 70px;
    text-align: left;
  }

  .workflow-number {
    top: 24px;
    left: auto;
    right: 20px;
    font-size: 20px;
  }

  .workflow-dot {
    top: 30px;
    left: 22px;
    width: 34px;
    height: 34px;
    border-width: 6px;
    transform: translateX(-50%);
  }

  .workflow-step h3 {
    margin-top: 0;
  }

  .workflow-step small {
    margin-top: 14px;
  }

  .download-primary {
    min-height: 0;
    padding: 30px 24px;
    border-radius: 28px;
  }

  .download-recommend {
    top: 18px;
    right: 18px;
  }

  .download-primary h3 {
    font-size: 34px;
  }

  .download-buttons {
    display: grid;
  }

  .download-buttons .button {
    width: 100%;
  }

  .download-secondary-column {
    grid-template-columns: 1fr;
  }

  .download-compact {
    padding: 24px;
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .compact-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 14px;
  }

  .security-strip {
    grid-template-columns: 38px 1fr;
    padding: 18px;
  }

  .security-mark {
    width: 38px;
    height: 38px;
  }

  .security-strip button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .faq-trigger {
    padding-block: 21px;
    font-size: 15px;
  }

  .faq-panel p {
    padding-right: 8px;
  }

  .floating-download {
    right: 14px;
    bottom: 14px;
    left: 14px;
    justify-content: space-between;
  }

  .site-footer {
    padding-top: 54px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .footer-links {
    gap: 45px;
  }

  .footer-legal {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .nav-download {
    padding-inline: 10px;
  }

  .hero-title {
    font-size: 46px;
  }

  .button {
    padding-inline: 18px;
    font-size: 14px;
  }

  .section-heading h2,
  .mobile-story-intro h2 {
    font-size: 36px;
  }

  .download-compact {
    grid-template-columns: 1fr;
  }

  .compact-actions {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  #motion-grid,
  .runway-line span,
  .core-pulse,
  .scroll-cue-line {
    display: none;
  }

  .story-section {
    height: auto;
    padding: 90px 0;
  }

  .story-sticky {
    position: relative;
    height: auto;
    min-height: 0;
    padding: 0;
  }
}
