/* Lurion Landing — Main styles */

@import url("https://fonts.googleapis.com/css2?family=Fragment+Mono:ital@0;1&family=Inter:ital,opsz,wght@0,14..32,400..600;1,14..32,400..600&display=swap");

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  max-width: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--page-bg);
  background-image: linear-gradient(
    145deg,
    var(--bg-a) 0%,
    var(--bg-b) 32%,
    var(--bg-c) 68%,
    var(--bg-d) 100%
  );
  background-attachment: fixed;
  transition: background-color var(--dur-med) var(--ease), color var(--dur-med) var(--ease);
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
}

#main {
  overflow-x: clip;
  max-width: 100%;
}

.light body {
  background-image: none;
  background-color: var(--page-bg);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 9999;
  padding: var(--space-2) var(--space-4);
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: var(--space-4); }

.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (min-width: 768px) {
  .wrap { padding: 0 var(--space-10); }
}

/* ── Typography ── */

.display {
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.display em {
  font-style: normal;
  color: var(--text-secondary);
  font-weight: 400;
}

.heading-2 {
  font-size: var(--text-h2);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.heading-3 {
  font-size: var(--text-h3);
  font-weight: 400;
  line-height: 1.3;
}

.lead {
  font-size: var(--text-lead);
  line-height: 1.55;
  color: var(--text-front);
  max-width: 42rem;
}

.text-front,
.hero-announce-text,
.feature-body,
.feature-context,
.product-card p,
.tier-desc,
.why-item p,
.faq-answer,
.cta-card .lead,
.pricing-head .lead,
.product-showcase .lead {
  color: var(--text-front);
}

.label {
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-tertiary);
}

.section-eyebrow {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}

/* ── Navigation ── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  z-index: 100;
  height: var(--nav-height);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background var(--dur-med) var(--ease), border-color var(--dur-med) var(--ease);
}

.nav.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: var(--nav-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (min-width: 768px) {
  .nav-inner { padding: 0 var(--space-10); }
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
  transition: opacity var(--dur-fast) var(--ease);
}
.brand:hover { opacity: 0.85; }

.brand-mark {
  width: 28px;
  height: 28px;
}
.brand-mark img { width: 100%; height: 100%; }

.brand-name {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-1);
  flex: 1;
}

@media (min-width: 900px) {
  .nav-links { display: flex; }
}

.nav-item {
  position: relative;
}

.nav-item.open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-item.open .nav-link svg {
  transform: rotate(180deg);
}

.nav-link.nav-link--trigger {
  cursor: default;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
  border: none;
  background: none;
  font-family: inherit;
  line-height: inherit;
  text-align: left;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--text-primary);
  background: transparent;
}

.nav-link svg {
  width: 12px;
  height: 12px;
  opacity: 0.6;
  transition: transform var(--dur-fast) var(--ease);
}

.nav-item:hover .nav-link svg,
.nav-item:focus-within .nav-link svg {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 260px;
  padding: var(--space-2);
  padding-top: var(--space-3);
  background: var(--dropdown-bg);
  border: 1px solid var(--edge);
  border-radius: var(--radius-md);
  box-shadow: var(--dropdown-shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), visibility var(--dur-fast);
  z-index: 200;
}

/* Invisible bridge so hover doesn't break between trigger and menu */
.nav-dropdown::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown,
.nav-item.open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-link {
  display: block;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast) var(--ease);
}

.dropdown-link:hover {
  background: var(--accent-soft);
}

.dropdown-link strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.dropdown-link span {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  line-height: 1.4;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  color: var(--text-tertiary);
  background: var(--surface-2);
  border: 1px solid var(--edge);
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.theme-toggle:hover {
  color: var(--text-primary);
  border-color: var(--edge-hover);
}

.theme-toggle svg { width: 18px; height: 18px; }
.dark .theme-toggle .icon-sun { display: block; }
.dark .theme-toggle .icon-moon { display: none; }
.light .theme-toggle .icon-sun { display: none; }
.light .theme-toggle .icon-moon { display: block; }

.nav-cta {
  display: none;
  align-items: center;
  gap: var(--space-2);
  padding: 7px 14px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--btn-primary-text);
  background: var(--btn-primary-bg);
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: background var(--dur-fast) var(--ease);
}

.nav-cta--ghost {
  display: none;
  color: var(--text-primary);
  background: transparent;
  border-color: var(--btn-secondary-border);
}

@media (min-width: 640px) {
  .nav-cta { display: inline-flex; }
  .nav-cta--ghost { display: inline-flex; }
}

.nav-cta:hover {
  background: var(--btn-primary-hover);
  transform: none;
}

.nav-cta--ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--edge-hover);
}

.nav-cta svg { width: 14px; height: 14px; }

.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
}

@media (min-width: 900px) {
  .menu-btn { display: none; }
}

.menu-btn svg { width: 18px; height: 18px; }

.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--nav-height) 0 0 0;
  z-index: 99;
  background: var(--page-bg);
  padding: var(--space-6);
  overflow-y: auto;
  border-top: 1px solid var(--edge);
}

.mobile-menu.open { display: block; }

.mobile-menu a {
  display: block;
  padding: var(--space-4) 0;
  font-size: var(--text-body);
  color: var(--text-secondary);
  border-bottom: 1px solid var(--edge);
}

.mobile-menu a:hover { color: var(--text-primary); }

.mobile-menu .mobile-group {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--edge);
}

.mobile-menu .mobile-group-title {
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin-bottom: var(--space-2);
}

.mobile-menu .mobile-group a {
  padding: var(--space-2) 0;
  border: none;
  font-size: var(--text-sm);
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 9px 16px;
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-pill);
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
  white-space: nowrap;
}

.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-primary {
  color: var(--btn-primary-text);
  background: var(--btn-primary-bg);
}
.btn-primary:hover {
  background: var(--btn-primary-hover);
}

.btn-secondary {
  color: var(--text-primary);
  background: transparent;
  border: 1px solid var(--edge-strong);
}
.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.04);
}

.light .btn-secondary {
  color: var(--text-primary);
  border-color: var(--edge-strong);
}
.light .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.03);
}

.btn-ghost {
  color: var(--text-secondary);
  padding: var(--space-2) var(--space-4);
}
.btn-ghost:hover { color: var(--text-primary); }

/* ── Retool-style hero shell ── */

.hero-section {
  position: relative;
  padding: calc(var(--nav-height) - var(--space-4)) 8px var(--space-6);
  overflow: hidden;
  max-width: 100%;
}

.hero-section--engine {
  overflow: visible;
  margin-bottom: calc(-1 * var(--space-12));
}

@media (min-width: 768px) {
  .hero-section {
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: var(--space-10);
  }

  .hero-section--engine {
    margin-bottom: calc(-1 * var(--space-16));
  }
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  top: calc(-1 * (var(--nav-height) + var(--space-8)));
  height: calc(100% + var(--nav-height) + var(--space-8));
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero-atmosphere--engine {
  top: calc(-1 * (var(--nav-height) + var(--space-10)));
  height: calc(100% + var(--nav-height) + var(--space-10) + var(--space-20));
}

.hero-atmosphere picture {
  position: absolute;
  inset: 0;
  display: block;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
  opacity: 0.82;
  mask-image: radial-gradient(ellipse 100% 100% at 50% 34%, #000 42%, transparent 86%);
  -webkit-mask-image: radial-gradient(ellipse 100% 100% at 50% 34%, #000 42%, transparent 86%);
}

.hero-atmosphere--engine .hero-bg-image--base {
  inset: -5%;
  width: 110%;
  max-width: none;
  height: 110%;
  object-position: center 42%;
  opacity: 0.86;
  mask-image: none;
  -webkit-mask-image: none;
}

.hero-atmosphere--engine .hero-bg-image--accent {
  z-index: 0;
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-atmosphere--engine .hero-bg-image--assist {
  inset: auto;
  top: -4%;
  left: -6%;
  width: min(54vw, 680px);
  height: min(54vw, 680px);
  max-width: none;
  object-fit: cover;
  object-position: 0% 0%;
  opacity: 0.14;
  mask-image: radial-gradient(ellipse 100% 100% at 0% 0%, #000 36%, transparent 74%);
  -webkit-mask-image: radial-gradient(ellipse 100% 100% at 0% 0%, #000 36%, transparent 74%);
}

.hero-atmosphere--engine .hero-bg-image--runtime {
  inset: auto;
  top: -6%;
  right: -8%;
  left: auto;
  width: min(52vw, 660px);
  height: min(52vw, 660px);
  max-width: none;
  object-fit: cover;
  object-position: 100% 0%;
  opacity: 0.15;
  mask-image: radial-gradient(ellipse 100% 100% at 100% 0%, #000 34%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 100% 100% at 100% 0%, #000 34%, transparent 72%);
}

.light .hero-atmosphere--engine .hero-bg-image--accent {
  mix-blend-mode: soft-light;
  opacity: 0.1;
}

.dark .hero-atmosphere--engine .hero-bg-image--base {
  opacity: 0.82;
}

.light .hero-atmosphere--engine .hero-bg-image--base {
  opacity: 0.72;
}

.hero-spotlight {
  position: absolute;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  background:
    radial-gradient(
      ellipse 68% 56% at 50% 46%,
      rgba(196, 168, 255, 0.26) 0%,
      rgba(108, 148, 228, 0.14) 34%,
      rgba(var(--slot-cyan-glow), 0.07) 54%,
      transparent 78%
    ),
    radial-gradient(
      ellipse 105% 95% at 50% 44%,
      rgba(92, 64, 176, 0.16) 0%,
      rgba(56, 120, 200, 0.07) 42%,
      transparent 72%
    );
}

.light .hero-spotlight {
  mix-blend-mode: soft-light;
  opacity: 0.88;
}

.hero-atmosphere--engine::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, var(--page-bg) 0%, var(--page-bg) 7%, rgba(21, 21, 21, 0.9) 15%, transparent 36%),
    radial-gradient(ellipse 34% 30% at 10% 24%, rgba(var(--slot-assist-glow), 0.055) 0%, transparent 72%),
    radial-gradient(ellipse 30% 26% at 90% 20%, rgba(var(--slot-runtime-glow), 0.05) 0%, transparent 70%),
    radial-gradient(ellipse 24% 22% at 86% 76%, rgba(var(--slot-console-glow), 0.045) 0%, transparent 74%);
}

.light .hero-atmosphere--engine::before {
  background:
    linear-gradient(180deg, var(--page-bg) 0%, var(--page-bg) 7%, rgba(250, 250, 248, 0.9) 15%, transparent 36%),
    radial-gradient(ellipse 34% 30% at 10% 24%, rgba(var(--slot-assist-glow), 0.04) 0%, transparent 72%),
    radial-gradient(ellipse 30% 26% at 90% 20%, rgba(var(--slot-runtime-glow), 0.035) 0%, transparent 70%),
    radial-gradient(ellipse 24% 22% at 86% 76%, rgba(var(--slot-console-glow), 0.035) 0%, transparent 74%);
}

.hero-atmosphere--engine::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(0deg, var(--page-bg) 0%, var(--page-bg) 10%, rgba(21, 21, 21, 0.94) 26%, transparent 64%);
}

.light .hero-atmosphere--engine::after {
  background: linear-gradient(0deg, var(--page-bg) 0%, var(--page-bg) 10%, rgba(250, 250, 248, 0.94) 26%, transparent 64%);
}

.dark .hero-bg-image {
  mix-blend-mode: normal;
  opacity: 0.78;
}

.light .hero-bg-image {
  mix-blend-mode: lighten;
  opacity: 0.86;
}

/* Light-mode hero — teal brand plate only; dark stack hidden via --dark */
.hero-bg-image--light {
  display: none;
}

.light .hero-bg-image--dark {
  display: none;
}

.light .hero-atmosphere--engine .hero-bg-image--light {
  display: block;
  inset: -5%;
  width: 110%;
  max-width: none;
  height: 110%;
  object-position: center 36%;
  opacity: 0.62;
  mix-blend-mode: normal;
  mask-image: radial-gradient(ellipse 108% 92% at 50% 30%, #000 48%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 108% 92% at 50% 30%, #000 48%, transparent 90%);
}

.hero-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(28vh, 220px);
  background: linear-gradient(180deg, transparent 0%, var(--page-bg) 88%);
  pointer-events: none;
  z-index: 1;
}

.hero-section--engine::after {
  height: min(40vh, 300px);
  background: linear-gradient(180deg, transparent 0%, var(--page-bg) 70%);
}

.hero-atmosphere--engine .hero-glows {
  z-index: 0;
}

.hero-atmosphere--engine .hero-glow--core {
  width: min(52vw, 480px);
  height: min(44vw, 400px);
  top: 44%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.58;
  filter: blur(72px);
  background: radial-gradient(
    ellipse,
    rgba(168, 140, 255, 0.5) 0%,
    rgba(88, 132, 220, 0.28) 45%,
    transparent 72%
  );
}

.hero-atmosphere--engine .hero-glow--halo {
  width: min(92vw, 880px);
  height: min(72vw, 680px);
  top: 44%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.44;
  filter: blur(110px);
  background: radial-gradient(
    ellipse,
    rgba(108, 72, 196, 0.34) 0%,
    rgba(72, 128, 210, 0.16) 38%,
    transparent 70%
  );
}

.hero-atmosphere--engine .hero-glow--cool {
  opacity: 0.5;
}

.hero-atmosphere--engine .hero-glow--warm {
  opacity: 0.44;
}

.hero-shell {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: var(--space-8) var(--space-4) var(--space-6);
  border: none;
  border-radius: 0;
  background: transparent;
  overflow-x: clip;
  min-height: min(90svh, 920px);
}

@media (min-width: 768px) {
  .hero-shell {
    padding: var(--space-10) var(--space-8) var(--space-8);
  }
}

.hero-glows {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.62;
}

.hero-glow--cool {
  width: min(62vw, 560px);
  height: min(62vw, 560px);
  top: 8%;
  left: 6%;
  background: radial-gradient(circle, rgba(56, 120, 220, 0.5) 0%, rgba(56, 120, 220, 0) 68%);
}

.hero-glow--warm {
  width: min(58vw, 520px);
  height: min(58vw, 520px);
  top: 14%;
  right: 6%;
  left: auto;
  background: radial-gradient(circle, rgba(220, 90, 60, 0.46) 0%, rgba(220, 90, 60, 0) 65%);
}

.hero-glow--halo {
  width: min(85vw, 800px);
  height: min(68vw, 640px);
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.42;
  filter: blur(100px);
  background: radial-gradient(
    ellipse,
    rgba(100, 68, 188, 0.3) 0%,
    rgba(56, 120, 220, 0.14) 42%,
    transparent 68%
  );
}

.hero-head {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 42rem;
  padding-top: var(--space-6);
}

.hero-title {
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: var(--space-5);
}

.hero-title br {
  display: none;
}

@media (min-width: 640px) {
  .hero-title br { display: inline; }
}

.hero-announce {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.hero-badge {
  display: inline-flex;
  padding: 3px 8px;
  font-size: var(--text-micro);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c45c42;
  background: rgba(196, 92, 66, 0.14);
  border-radius: var(--radius-pill);
}

.hero-announce-text {
  font-size: var(--text-sm);
}

.hero-chips {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 14px;
  font-size: var(--text-xs);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--edge);
  border-radius: var(--radius-pill);
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.hero-chip:hover {
  color: var(--text-primary);
  border-color: var(--edge-hover);
  background: rgba(255, 255, 255, 0.06);
}

.hero-chip-icons {
  display: flex;
  align-items: center;
}

.hero-chip-icons svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.hero-foot {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding-top: var(--space-4);
}

.hero-film {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 18px;
  font-size: var(--text-sm);
  color: var(--text-front);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--edge);
  border-radius: var(--radius-pill);
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.hero-film:hover {
  color: var(--text-primary);
  border-color: var(--edge-hover);
}

.hero-film svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.hero-film strong {
  font-weight: 500;
  color: var(--text-primary);
}

/* legacy hero (removed split layout) */
.hero-bg, .hero-grid, .hero-content, .hero-stage-wrap, .hero-stage,
.hero-stage-glow, .hero-curve { display: none; }

/* ── Scroll story (Retool feature showcase) ── */

.scroll-story {
  position: relative;
  padding: var(--space-24) 0 var(--space-32);
  border-top: 1px solid var(--edge);
}

.scroll-story-layout {
  display: grid;
  gap: var(--space-12);
}

@media (min-width: 900px) {
  .scroll-story-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: var(--space-16);
    align-items: start;
  }
}

.scroll-story-content {
  position: relative;
  z-index: 2;
}

/* Section header (Retool treatment), hard-left aligned */
.feature-lead {
  position: relative;
  text-align: left;
  max-width: 34rem;
  margin: 0 0 var(--space-12);
}

/* Desktop: give the header its own rectangular box, pulled toward the left
   edge with wider, more elongated text. */
@media (min-width: 900px) {
  /* Pull the whole left column toward the edge; let the heading + desc run
     long so only 1–2 words wrap to a second line. No box. */
  .scroll-story-content {
    margin-left: calc(-1 * var(--space-20));
  }
  .feature-lead {
    max-width: 38rem;
  }
  .feature-lead .feature-title {
    max-width: none;
  }
  .feature-lead .feature-lead-text {
    max-width: 44ch;
  }
}


/* Mic + eyebrow — single hard-left axis with the heading + lead */
.feature-lead-badge {
  margin-bottom: var(--space-6);
}
.feature-lead-badge .section-eyebrow {
  margin-bottom: 0;
}

/* Mic icon — sized to match the platform stack icon (15px, muted) */
.feature-mic {
  display: block;
  width: 15px;
  height: 15px;
  margin: 0 0 10px;
  color: var(--text-secondary);
  opacity: 0.72;
}
.feature-mic svg { width: 100%; height: 100%; display: block; }

/* Eyebrow as a bordered chip */
.feature-context {
  display: inline-flex;
  align-items: center;
  padding: 0.35em 0.85em;
  border: 1px solid var(--edge-strong);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  letter-spacing: -0.005em;
  margin-bottom: var(--space-6);
}

/* Dominant hero heading */
.feature-title {
  font-size: var(--text-h2);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--space-5);
  max-width: none;
  text-wrap: balance;
}

.feature-lead-text {
  font-size: var(--text-lead);
  line-height: 1.55;
  color: var(--text-front);
  max-width: 36ch;
}

/* Lead CTA (outline) */
.feature-lead-actions {
  margin-top: var(--space-7);
}

.feature-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.7em 1.3em;
  border-radius: var(--radius-pill);
  border: 1px solid var(--edge-strong, rgba(255, 255, 255, 0.18));
  font-size: var(--text-body);
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  transition: border-color var(--dur-med) var(--ease), background var(--dur-med) var(--ease),
    transform var(--dur-med) var(--ease);
}

.feature-cta:hover {
  border-color: var(--magenta);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.feature-cta:focus-visible {
  outline: 2px solid var(--burgundy-text);
  outline-offset: 3px;
}

/* Airy scroll blocks (left column, model A) */
.feature-blocks {
  display: flex;
  flex-direction: column;
}

.feature-block {
  position: relative;
  padding: var(--space-7) 0;
  opacity: 0.32;
  cursor: pointer;
  transition: opacity var(--dur-slow, 420ms) var(--ease);
}

.feature-block.is-active {
  opacity: 1;
}

.feature-block:focus-visible {
  outline: 2px solid var(--burgundy-text);
  outline-offset: 8px;
  border-radius: var(--radius-md);
}

/* Bare line icon — accent only, no box/fill/glow (Retool restraint) */
.feature-block-icon {
  display: inline-flex;
  margin-bottom: var(--space-5);
  color: var(--accent);
}

.feature-block-icon svg {
  width: 28px;
  height: 28px;
}

.feature-block-heading {
  font-size: 1.5rem;
  font-weight: 450;
  line-height: 1.22;
  letter-spacing: -0.018em;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  text-wrap: balance;
}

.feature-block-body {
  font-size: var(--text-lead);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 32ch;
  text-wrap: pretty;
}

/* Mono tag — borrowed from the platform cards, bracketed, unique copy per step */
.feature-block-tag {
  display: inline-block;
  margin-top: var(--space-5);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  transition: color var(--dur-med) var(--ease);
}
.feature-block-tag::before { content: "[\00a0"; }
.feature-block-tag::after { content: "\00a0]"; }

/* Single warm-orange accent for the active step */
.feature-block { --step-color: #d0824e; }

/* Active step: colored tag */
.feature-block.is-active .feature-block-tag { color: var(--step-color); }

/* Active step: left accent rule (desktop, where the column has left room) */
@media (min-width: 900px) {
  .feature-block::before {
    content: "";
    position: absolute;
    left: -22px;
    top: 27%;
    bottom: 27%;
    width: 2px;
    border-radius: 2px;
    background: var(--step-color);
    opacity: 0;
    transform: scaleY(0.6);
    transform-origin: center;
    transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease);
  }
  .feature-block.is-active::before {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* Desktop: tall blocks so one centers under the pinned panel at a time */
@media (min-width: 900px) {
  .feature-block {
    min-height: 53vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-6) 0;
  }
}

@media (max-width: 899px) {
  .feature-block {
    opacity: 1;
    cursor: default;
  }
}

@media (prefers-reduced-motion: reduce) {
  .feature-block {
    opacity: 1;
    transition: none;
  }
}

.scroll-story-track {
  display: flex;
  flex-direction: column;
  gap: 0;
  pointer-events: none;
  margin-top: calc(var(--space-12) * -1);
}

@media (min-width: 900px) {
  .scroll-story-track {
    margin-top: calc(var(--space-24) * -1);
  }
}

.scroll-step {
  min-height: 50vh;
  padding: 0;
  border: none;
  opacity: 1;
}

.scroll-story-visual {
  position: relative;
  min-height: 340px;
  isolation: isolate;
  overflow: hidden;
  max-width: 100%;
}

@media (min-width: 900px) {
  .scroll-story-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    /* Right panel pins while the left blocks scroll past (model A) */
    position: sticky;
    top: calc(var(--nav-height) + var(--space-6));
    align-self: start;
    height: calc(100vh - var(--nav-height) - var(--space-10));
    max-height: 760px;
    min-height: 520px;
  }
}

.scroll-story-panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  padding: var(--space-6);
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  background: transparent;
  box-shadow: none;
}

.scroll-story-panel::before {
  display: none;
}

/* ── Meridian Console desktop panel (right side) ── */
.console-device {
  position: relative;
  width: 100%;
  font-size: 12px;
  line-height: 1.4;
}

.console-window {
  position: relative;
  /* Borderless app sitting directly on the grid backdrop (Retool) */
  background: transparent;
  overflow: visible;
}

/* The whole app is faded context; the crisp white cards are the hero */
.console-topbar, .console-subbar { opacity: 0.62; }
.console-table {
  opacity: 0.4;
  max-height: 300px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 52%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 52%, transparent 100%);
}

.console-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.console-breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-secondary);
  font-weight: 450;
}

.console-logo {
  width: 13px;
  height: 13px;
  border-radius: 4px;
  background: linear-gradient(150deg, var(--accent-light), var(--accent-dark));
}

.console-sep { color: var(--text-tertiary); }
.console-crumb-cur { color: var(--text-primary); }

.console-tools { display: flex; align-items: center; gap: 9px; }

.console-search {
  padding: 4px 10px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-tertiary);
  background: rgba(255, 255, 255, 0.02);
}

.console-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(224, 64, 64, 0.12);
  color: #ff7a7a;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.console-live-pill i {
  width: 5px; height: 5px; border-radius: 50%;
  background: #ff5a5a; box-shadow: 0 0 0 3px rgba(255, 90, 90, 0.18);
}

.console-subbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 9px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-tertiary);
}
.console-tab { cursor: default; }
.console-tab.is-active { color: var(--text-primary); position: relative; }
.console-tab.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -10px;
  height: 1.5px; background: var(--accent);
}
.console-subbar-spacer { flex: 1; }
.console-chip {
  padding: 3px 8px; border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1); color: var(--text-secondary);
}

.console-table { padding: 4px 0; }
.console-row {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) 0.9fr 0.5fr 0.8fr;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  transition: background var(--dur-med) var(--ease);
}
.console-row--head {
  color: var(--text-tertiary);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-top: 7px; padding-bottom: 7px;
}
.console-row:not(.console-row--head) { border-top: 1px solid rgba(255, 255, 255, 0.04); color: var(--text-secondary); }
.console-caller { display: inline-flex; align-items: center; gap: 8px; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.console-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-tertiary); flex: none; }
.console-dot--amber { background: #e0a13a; box-shadow: 0 0 0 3px rgba(224, 161, 58, 0.16); }
.console-dot--red { background: #ff5a5a; box-shadow: 0 0 0 3px rgba(255, 90, 90, 0.16); }

.console-risk { font-variant-numeric: tabular-nums; font-weight: 500; }
.console-risk--low { color: var(--text-tertiary); }
.console-risk--mid { color: #e0a13a; }
.console-risk--high { color: #ff6a6a; }
.console-cell-status { color: var(--text-tertiary); white-space: nowrap; }

/* Active row highlight per scroll state */
.console-device[data-state="standby"] .console-row[data-row="standby"],
.console-device[data-state="live"] .console-row[data-row="live"],
.console-device[data-state="alert"] .console-row[data-row="alert"] {
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 2px 0 0 var(--accent);
}

/* Floating cards — swap per state, layered over the table */
.console-cards {
  position: absolute;
  left: 18px;
  top: 52%;
  transform: translateY(-50%);
  width: min(68%, 296px);
}
/* Decorative second card peeking behind — Retool's layered-modal depth */
.console-cards::before {
  content: "";
  position: absolute;
  left: 22px;
  top: -16px;
  right: -22px;
  height: 64px;
  border-radius: 12px;
  background: rgba(232, 234, 240, 0.5);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.55);
}
.console-card {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  padding: 16px 17px;
  border-radius: 13px;
  background: #f6f6fa;
  color: #1a1a1f;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7), 0 2px 8px -2px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(8px) scale(0.985);
  transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease);
  pointer-events: none;
}
.console-device[data-state="standby"] .console-card--standby,
.console-device[data-state="live"] .console-card--live,
.console-device[data-state="alert"] .console-card--alert {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.console-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-weight: 600; font-size: 14.5px; color: #14141a; margin-bottom: 7px;
}
.console-card p { color: #50505a; margin: 0; font-size: 13px; line-height: 1.5; }
.console-card-risk { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 6px; white-space: nowrap; }
.console-card-risk--mid { background: rgba(224, 161, 58, 0.16); color: #9a6a12; }
.console-card-risk--high { background: rgba(224, 64, 64, 0.14); color: #b42020; }
.console-transcript { display: flex; gap: 8px; margin-bottom: 8px; }
.console-transcript-who { color: #8a8a94; font-weight: 600; flex: none; }
.console-transcript p { color: #2a2a30; }
.console-guidance {
  padding: 8px 10px; border-radius: 8px;
  background: rgba(107, 138, 253, 0.1); color: #2f3d7a; font-weight: 450;
}
.console-card-actions { display: flex; gap: 8px; margin-top: 11px; }
.console-btn {
  padding: 6px 12px; border-radius: 7px; font-weight: 500; font-size: 12px;
  border: 1px solid rgba(20, 20, 25, 0.14); color: #2a2a30; cursor: default;
}
.console-btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Desktop: size + modest right-edge bleed for the console */
@media (min-width: 900px) {
  .scroll-story-panel {
    max-width: none;
    padding: 0;
    display: block;
    width: 100%;
    height: 100%;
  }
  .console-device {
    position: absolute;
    top: var(--space-7);
    left: var(--space-3);
    width: 640px;
    font-size: 13px;
  }
}

/* ── Meridian Console — high-fidelity live-call dashboard ── */
/* Per-state visibility: each toggled node declares --d; shown when state matches */
.console-device :is(.s-standby, .s-live, .s-alert) { display: none; }
.console-device[data-state="standby"] .s-standby,
.console-device[data-state="live"] .s-live,
.console-device[data-state="alert"] .s-alert { display: var(--d, block); }

.console-app {
  display: flex;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, #15171f 0%, #0e0f16 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 44px 96px -34px rgba(0, 0, 0, 0.78), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}

.console-side {
  flex: none;
  width: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 0;
  background: rgba(255, 255, 255, 0.015);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.console-side-logo {
  width: 22px; height: 22px; border-radius: 7px; margin-bottom: 10px;
  background: linear-gradient(150deg, var(--accent-light), var(--accent-dark));
  box-shadow: 0 5px 14px -4px var(--accent);
}
.console-side-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.console-side-foot { margin-top: auto; }
.console-side-item {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 9px; color: var(--text-tertiary);
}
.console-side-item svg { width: 18px; height: 18px; }
.console-side-item.is-active {
  color: #fff; background: rgba(122, 150, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(122, 150, 255, 0.28);
}

.console-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.console-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.console-crumb { display: flex; align-items: center; gap: 7px; color: var(--text-tertiary); }
.console-crumb b { color: var(--text-primary); font-weight: 550; }
.console-crumb-sep { opacity: 0.5; }
.console-head-tools { display: flex; align-items: center; gap: 9px; }
.console-search {
  padding: 4px 12px; border-radius: 7px; border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-tertiary); background: rgba(255, 255, 255, 0.02);
}
.console-livepill {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px;
  border-radius: 999px; background: rgba(224, 64, 64, 0.12); color: #ff7a7a; font-weight: 500;
}
.console-livepill i { width: 5px; height: 5px; border-radius: 50%; background: #ff5a5a; box-shadow: 0 0 0 3px rgba(255, 90, 90, 0.18); }
.console-userdot { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(150deg, #3a4a8a, #1f2540); border: 1px solid rgba(255, 255, 255, 0.1); }

.console-callbar { display: flex; align-items: center; gap: 12px; padding: 14px 16px 12px; }
.console-avatar {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  font-weight: 600; font-size: 12px; color: #cdd6ff; flex: none;
  background: rgba(122, 150, 255, 0.14); border: 1px solid rgba(122, 150, 255, 0.22);
}
.console-callmeta { flex: 1; min-width: 0; }
.console-callname { color: var(--text-primary); font-weight: 550; font-size: 14px; }
.console-callid { color: var(--text-tertiary); font-weight: 400; font-size: 12.5px; margin-left: 6px; }
.console-callsub { color: var(--text-tertiary); font-size: 12px; margin-top: 2px; }
.console-statuslive { color: #ff8a8a; }
.console-statuslive i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #ff5a5a; margin-right: 5px; vertical-align: middle; }

.console-riskbadge { flex: none; }
.rb { --d: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 11px; }
.rb b { font-size: 19px; font-weight: 650; font-variant-numeric: tabular-nums; line-height: 1; }
.rb span { font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.8; }
.rb--low { background: rgba(255, 255, 255, 0.05); color: var(--text-secondary); }
.rb--mid { background: rgba(224, 161, 58, 0.14); color: #f0b450; }
.rb--high { background: rgba(255, 70, 70, 0.14); color: #ff7a7a; box-shadow: 0 0 0 1px rgba(255, 90, 90, 0.22), 0 8px 20px -8px rgba(255, 60, 60, 0.5); }

.console-cardrow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 16px; }
.console-pcard {
  border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 12px;
  background: rgba(255, 255, 255, 0.02); padding: 12px 13px;
}
.console-pcard-h { display: flex; align-items: center; justify-content: space-between; color: var(--text-secondary); font-weight: 500; font-size: 12px; margin-bottom: 10px; }
.console-pcard-meta { color: var(--text-tertiary); font-size: 11px; font-weight: 400; }

.console-spark-wrap { height: 46px; }
.console-spark { width: 100%; height: 100%; display: block; }
.sp { display: none; }
.console-device[data-state="standby"] .sp-calm { display: inline; }
.console-device[data-state="live"] .sp-rise,
.console-device[data-state="alert"] .sp-rise { display: inline; }
.console-pcard-foot { margin-top: 8px; font-size: 11.5px; color: var(--text-tertiary); }
.console-up { --d: inline; color: #e0a13a; font-weight: 500; }
.console-up--high { color: #ff6a6a; }

.console-signals { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.console-signal-empty { --d: block; color: var(--text-tertiary); font-size: 12px; padding: 4px 0; }
.console-signal { --d: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-secondary); }
.console-signal i { width: 6px; height: 6px; border-radius: 2px; flex: none; }
.console-signal--mid i { background: #e0a13a; }
.console-signal--high { color: var(--text-primary); }
.console-signal--high i { background: #ff5a5a; box-shadow: 0 0 0 3px rgba(255, 90, 90, 0.14); }

.console-tcard { margin: 12px 16px 0; }
.console-tlines { display: flex; flex-direction: column; gap: 9px; }
.console-tline { --d: grid; grid-template-columns: 50px minmax(0, 1fr) auto; align-items: baseline; gap: 10px; font-size: 12.5px; }
.console-tspk { color: var(--text-tertiary); font-size: 11px; }
.console-tline p { margin: 0; color: var(--text-secondary); line-height: 1.45; }
.console-tline--muted p { color: var(--text-tertiary); font-style: italic; }
.console-ttime { color: var(--text-tertiary); font-size: 11px; font-variant-numeric: tabular-nums; }
.console-tline--flag p { color: var(--text-primary); }
.console-tline mark { background: rgba(255, 80, 80, 0.16); color: #ff9a9a; padding: 0 3px; border-radius: 3px; }
.console-tflag { font-size: 10px; color: #ff8a8a; background: rgba(255, 70, 70, 0.12); padding: 2px 7px; border-radius: 999px; white-space: nowrap; }

.console-action {
  display: flex; align-items: center; gap: 12px;
  margin: 14px 16px 16px; padding: 12px 13px;
  border-radius: 12px; border: 1px solid rgba(122, 150, 255, 0.2);
  background: linear-gradient(180deg, rgba(122, 150, 255, 0.1), rgba(122, 150, 255, 0.04));
}
.console-action-icon { --d: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; flex: none; color: #aebdff; background: rgba(122, 150, 255, 0.16); }
.console-action-icon svg { width: 19px; height: 19px; }
.console-action-icon--warn { color: #ffb0b0; background: rgba(255, 80, 80, 0.16); }
.console-action-copy { flex: 1; min-width: 0; }
.console-action-copy b { --d: block; color: var(--text-primary); font-weight: 600; font-size: 13px; }
.console-action-copy p { --d: block; color: var(--text-secondary); font-size: 12px; margin: 2px 0 0; }
.console-action-btns { display: flex; gap: 8px; flex: none; }
.console-btn2 { --d: inline-flex; align-items: center; padding: 7px 13px; border-radius: 8px; font-weight: 500; font-size: 12px; border: 1px solid rgba(255, 255, 255, 0.14); color: var(--text-secondary); white-space: nowrap; }
.console-btn2--primary { background: var(--accent); border-color: var(--accent); color: #fff; }

.console-device[data-state="alert"] .console-action {
  border-color: rgba(255, 80, 80, 0.32);
  background: linear-gradient(180deg, rgba(255, 80, 80, 0.12), rgba(255, 80, 80, 0.04));
}
.console-device[data-state="alert"] .console-btn2--primary { background: #e5484d; border-color: #e5484d; }

@media (min-width: 900px) {
  .console-app {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
  }
}

.visual-atmosphere {
  position: absolute;
  inset: -12% 0 -8%;
  z-index: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  pointer-events: none;
}

.visual-atmosphere img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.dark .visual-atmosphere img {
  opacity: 0.42;
  filter: brightness(0.55) saturate(0.9);
}

.visual-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 70% 55% at 58% 48%, var(--warm-glow) 0%, transparent 68%),
    radial-gradient(ellipse 50% 40% at 42% 62%, var(--accent-glow) 0%, transparent 65%);
  pointer-events: none;
}

.visual-grid {
  position: absolute;
  inset: 8% 0 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, transparent 0%, black 25%, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 25%, black 85%, transparent 100%);
  pointer-events: none;
}

.scroll-panel-label {
  display: none;
}

.scroll-panel-deco {
  display: none;
}

/* Blueprint backdrop treatment for the right column (Retool-style) */
.scroll-story-visual--blueprint {
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse 80% 60% at 72% 8%, rgba(120, 28, 28, 0.55) 0%, transparent 62%),
    linear-gradient(160deg, #1c1413 0%, #140d0d 46%, #0c0808 100%);
  box-shadow: var(--shadow-float);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

/* Bleed the panel off the right viewport edge; square the right corners */
@media (min-width: 900px) {
  .scroll-story-visual--blueprint {
    max-width: none;
    margin-right: calc(-1 * (var(--space-10) + max(0px, (100vw - var(--max-width)) / 2)));
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
  }
}

/* Higgsfield blueprint backdrop image fills the panel */
.scroll-story-visual--blueprint .visual-atmosphere {
  display: block;
  inset: 0;
  border-radius: inherit;
  opacity: 1;
}

.scroll-story-visual--blueprint .visual-atmosphere img,
.dark .scroll-story-visual--blueprint .visual-atmosphere img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  filter: none;
}

/* Crisp engineering grid over the backdrop (Retool's technical surface) */
.scroll-story-visual--blueprint .visual-grid {
  display: block;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(160, 180, 255, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160, 180, 255, 0.2) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.85) 40%, #000 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.85) 40%, #000 100%);
}

/* Darken the backdrop so the grid + cards read; keep a soft glow */
.scroll-story-visual--blueprint .visual-glow {
  background:
    radial-gradient(ellipse 70% 50% at 64% 16%, rgba(120, 150, 255, 0.14) 0%, transparent 62%),
    radial-gradient(ellipse 120% 95% at 50% 50%, transparent 48%, rgba(0, 0, 0, 0.55) 100%);
  mix-blend-mode: normal;
}

/* Mute the aurora photo so the grid + UI carry the surface */
.scroll-story-visual--blueprint .visual-atmosphere img,
.dark .scroll-story-visual--blueprint .visual-atmosphere img {
  opacity: 0.5;
  filter: brightness(0.7) saturate(0.95);
}

/* Corner crop marks (viewport framing) */
.visual-crop {
  position: absolute;
  inset: 18px;
  z-index: 2;
  pointer-events: none;
}

.visual-crop-mark {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(150, 170, 255, 0.4);
}

.visual-crop-mark--tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.visual-crop-mark--tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.visual-crop-mark--bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.visual-crop-mark--br { bottom: 0; right: 0; border-left: none; border-top: none; }

.scroll-story-visual--blueprint .scroll-story-panel {
  filter: drop-shadow(0 28px 60px rgba(0, 0, 0, 0.55));
}

/* legacy hero tags */
.hero-tag {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.hero-tag-dot {
  display: none;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-6);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-8);
  padding-top: 0;
  border-top: none;
}

.hero-proof li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.hero-proof li::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
}

/* ── Surface cards ── */

.surface-card {
  background: var(--surface-2);
  border: 1px solid var(--edge);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.surface-card::before {
  content: "";
  position: absolute;
  inset-x: 0;
  top: 0;
  height: 120px;
  background: var(--card-sheen);
  pointer-events: none;
}

.surface-card::after {
  content: "";
  position: absolute;
  inset-x: 0;
  top: 0;
  height: 1px;
  background: var(--card-hairline);
  pointer-events: none;
}

/* Product showcase — fade only (no translate) keeps bento copy sharp */
.product-showcase .reveal {
  transform: none;
  transition: opacity var(--dur-slow) var(--ease);
}

/* ── Product showcase ── */

.product-showcase {
  /* Lift above the hero atmosphere, which bleeds down over this section's top
     and was washing out the (dim) eyebrow. */
  position: relative;
  z-index: 1;
  padding: var(--space-20) 0 var(--space-24);
}

@media (min-width: 768px) {
  .product-showcase {
    padding: var(--space-24) 0 var(--space-24);
  }
}

.product-showcase > .wrap {
  max-width: calc(var(--platform-bento-max) + 2 * var(--space-6));
}

@media (min-width: 768px) {
  .product-showcase > .wrap {
    max-width: calc(var(--platform-bento-max) + 2 * var(--space-10));
  }
}

.platform-showcase-lead {
  max-width: 40rem;
  margin: 0 auto var(--space-10);
  text-align: center;
}

.platform-showcase-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  color: var(--text-secondary);
}

.platform-showcase-icon svg {
  width: 15px;
  height: 15px;
  opacity: 0.72;
}

.platform-showcase-head {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
  text-align: center;
}

.platform-showcase-head .section-eyebrow {
  margin-bottom: var(--space-6);
}

.platform-showcase-head .heading-2 {
  max-width: none;
}

/* Bento editorial grid — image slots via data-higgs-slot on .platform-media
 *
 * Higgsfield art direction (dark mode only for lp_new):
 *
 * ── GENERATION PROTOCOL (every new abstract image) ──
 * 1. Model: Nano Banana 2 @ 4K native (resolution: 4k) — no upscale-from-preview
 *    Style ref: assets/assist-hero.png (crisp grain + contrast baseline)
 * 2. Finish: match Assist — heavy film grain, high-contrast charcoal, defined light;
 *    NOT soft haze, NOT dreamy blur, NOT airbrush gradients
 * 3. Color: unique palette per slot unless user specifies otherwise
 * 4. Layout: unique spatial concept per slot — refs inform grain/mood only
 * 5. ALWAYS forbid: text, watermark, signature, logo, letters, typography
 * 6. Export: 4K master → web PNG
 *      assist (hero cell): 2560×1717
 *      runtime / console (thumb): 1600×1600
 *
 * Assigned palettes + spatial concepts (avoid copycat layouts):
 *   assist  → mint green — diagonal leak + low horizon curve (established)
 *   runtime → violet/indigo — flowing S-curve light mass (established)
 *   console → amber/orange — bottom-up thermal ember rise, horizontal haze
 *             bands, scattered bokeh nodes; NO diagonal corner leak, NO
 *             mirrored horizon arch from Assist/Runtime
 *   brand/hero → tri-corner engine void (batch A → hero-atmosphere-engine-v2.png, 3:2)
 *             accents: hero-engine-{assist,runtime,console}-whisper-web.png
 */
.platform-bento {
  display: grid;
  border: 1px solid var(--edge);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-1);
}

@media (min-width: 900px) {
  .platform-bento {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    /* 10-row grid: 80% image left aligns with Runtime+Console right; 20% copy aligns with Explore */
    grid-template-rows: repeat(10, minmax(0, 1fr));
    min-height: clamp(540px, 38vw, 660px);
    max-height: none;
    width: 100%;
    max-width: var(--platform-bento-max);
    margin-left: auto;
    margin-right: auto;
  }

  .platform-bento-left {
    grid-column: 1;
    grid-row: 1 / 11;
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-right: 1px solid var(--edge);
  }

  .platform-bento-stack {
    grid-column: 2;
    grid-row: 1 / 11;
  }
}

.platform-media--spacer {
  display: none;
}

.platform-bento-left {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.platform-bento-left .platform-cell--assist-copy {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  min-height: 0;
  border-bottom: none;
}

.platform-copy--assist {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-6) var(--space-8);
}

.platform-copy--assist p {
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--text-front);
  max-width: none;
}

@media (min-width: 900px) {
  .platform-bento-left .platform-media--hero {
    flex: 1 1 65%;
    min-height: 0;
    aspect-ratio: auto;
    height: auto;
    border-bottom: 1px solid var(--edge);
    border-right: none;
  }
}

.platform-bento-stack {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

@media (min-width: 900px) {
  .platform-bento-stack {
    height: 100%;
    min-height: 0;
  }
}

.platform-cell--grow {
  min-height: 0;
}

@media (min-width: 900px) {
  .platform-cell--grow {
    flex: 4 1 0;
  }
}

.platform-cell--row {
  display: grid;
  grid-template-columns: 1fr;
  border-bottom: 1px solid var(--edge);
  min-width: 0;
}

@media (min-width: 640px) {
  .platform-cell--row {
    grid-template-columns: minmax(0, 1fr) minmax(120px, 34%);
  }

  .platform-bento .platform-cell--row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (min-width: 640px) {
  .platform-bento .platform-media--thumb {
    aspect-ratio: 1;
    height: 100%;
    width: auto;
    min-height: 0;
    min-width: 120px;
    align-self: stretch;
  }
}

.platform-cell--row:last-of-type.platform-cell--grow {
  border-bottom: 1px solid var(--edge);
}

.platform-media--hero {
  aspect-ratio: 16 / 11;
  min-height: 220px;
  border-bottom: 1px solid var(--edge);
}

@media (max-width: 899px) {
  .platform-bento-left {
    border-bottom: 1px solid var(--edge);
  }
}

.platform-media {
  position: relative;
  overflow: hidden;
  background: var(--surface-inset);
  min-width: 0;
}

.platform-media-inner--quiet {
  opacity: 0.72;
}

.platform-media--thumb {
  aspect-ratio: 1;
  min-height: 160px;
  border-top: 1px solid var(--edge);
}

@media (min-width: 640px) {
  .platform-media--thumb {
    border-top: none;
    border-left: 1px solid var(--edge);
    min-height: 100%;
    aspect-ratio: auto;
  }
}

.platform-media-inner {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 58% 42%, rgba(107, 138, 253, 0.1) 0%, transparent 68%),
    radial-gradient(ellipse 55% 50% at 32% 68%, rgba(232, 132, 90, 0.08) 0%, transparent 72%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: auto, auto, 28px 28px, 28px 28px;
}

.platform-media-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.18) 100%);
  pointer-events: none;
}

.platform-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Real imagery replaces placeholder grid; keep vignette only */
.platform-media:has(img) .platform-media-inner {
  background: none;
}

.platform-cell:hover .platform-media:has(img) .platform-media-inner,
.platform-bento:hover .platform-media--hero:has(img) .platform-media-inner {
  background: none;
}

.platform-media[data-higgs-slot]:has(img) .platform-media-inner::after {
  background: linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, 0.22) 100%);
}

.platform-media[data-higgs-slot="assist"]:has(img) .platform-media-inner::after {
  background:
    linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, 0.22) 100%),
    radial-gradient(ellipse 45% 38% at 88% 12%, rgba(var(--slot-assist-glow), 0.05) 0%, transparent 72%);
}

.platform-media[data-higgs-slot="runtime"]:has(img) .platform-media-inner::after {
  background:
    linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, 0.24) 100%),
    radial-gradient(ellipse 45% 38% at 88% 12%, rgba(var(--slot-runtime-glow), 0.06) 0%, transparent 72%);
}

.platform-media[data-higgs-slot="console"]:has(img) .platform-media-inner::after {
  background:
    linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, 0.24) 100%),
    radial-gradient(ellipse 45% 38% at 88% 12%, rgba(var(--slot-console-glow), 0.05) 0%, transparent 72%);
}

.platform-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-6) var(--space-8);
}

.platform-cell--row .platform-copy {
  padding: var(--space-5) var(--space-6);
  justify-content: center;
}

.platform-title {
  font-size: var(--text-h3);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-primary);
}

.platform-title--sm {
  font-size: clamp(1rem, 2vw, 1.125rem);
}

.platform-copy p {
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--text-front);
  max-width: 36rem;
}

.platform-cell--row .platform-copy p {
  font-size: var(--text-xs);
  line-height: 1.5;
}

/* Bento copy — OG typography; title/desc tight, CTA breathes */
.platform-bento .platform-cell--row .platform-copy {
  padding: var(--space-5) var(--space-6);
  gap: var(--space-2);
}

.platform-bento .platform-copy--assist {
  padding: var(--space-6) var(--space-6) var(--space-8);
  gap: var(--space-2);
}

.platform-bento .platform-copy .platform-title {
  margin: 0;
}

.platform-bento .platform-copy p {
  margin: 0;
  max-width: none;
}

/* Bento copy — crisp type (no fractional sizes, higher contrast) */
.platform-bento .platform-copy {
  position: relative;
  z-index: 1;
  background: var(--surface-1);
}

.platform-bento .platform-title--sm {
  font-size: 1.0625rem;
}

.platform-bento .platform-copy p {
  color: rgba(255, 255, 255, 0.84);
}

.platform-bento .platform-cell--row .platform-copy p {
  font-size: var(--text-sm);
  line-height: 1.5;
}

.platform-bento .platform-copy--assist p {
  color: rgba(255, 255, 255, 0.84);
}

.platform-bento .platform-copy .platform-link {
  margin-top: var(--space-4);
  color: rgba(255, 255, 255, 0.58);
}

.platform-bento .platform-copy .platform-link:hover {
  color: var(--text-primary);
}

.platform-bento .platform-copy .platform-link svg {
  opacity: 0.85;
}

.platform-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--dur-fast) var(--ease);
}

.platform-link:hover {
  color: var(--text-primary);
}

.platform-link svg {
  width: 12px;
  height: 12px;
  opacity: 0.7;
}

.platform-cell:hover .platform-media-inner,
.platform-bento:hover .platform-media--hero .platform-media-inner {
  background:
    radial-gradient(ellipse 70% 60% at 58% 42%, rgba(107, 138, 253, 0.14) 0%, transparent 68%),
    radial-gradient(ellipse 55% 50% at 32% 68%, rgba(232, 132, 90, 0.11) 0%, transparent 72%),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: auto, auto, 28px 28px, 28px 28px;
}

.platform-bento-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex: 0.5 0 0;
  min-height: 0;
  padding: var(--space-5) var(--space-6);
  border-top: 1px solid var(--edge);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  background: var(--surface-inset);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

@media (min-width: 900px) {
  .platform-bento-action {
    margin-top: 0;
  }
}

.platform-bento-action:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-front);
}

.platform-bento-action svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.75;
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}

.platform-bento-action:hover svg {
  transform: translateX(3px);
  opacity: 1;
}

@media (max-width: 639px) {
  .platform-cell--row .platform-media {
    order: -1;
  }
}

.showcase-grid {
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .showcase-grid { grid-template-columns: repeat(3, 1fr); }
}

.product-card {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: border-color var(--dur-med) var(--ease);
}

.product-card:hover {
  border-color: var(--edge-hover);
  transform: none;
}

.product-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--warm);
  border: 1px solid var(--edge);
}

.product-icon svg { width: 20px; height: 20px; }

.product-card h3 { font-weight: 400; }

.product-card p {
  font-size: var(--text-sm);
  line-height: 1.55;
  flex: 1;
}

.product-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-top: auto;
}

.product-card .card-link:hover {
  color: var(--text-primary);
}

.product-card .card-link svg { width: 14px; height: 14px; }

/* ── Live demo mockup ── */

.demo-section {
  padding: var(--space-24) 0;
  background: var(--surface-inset);
  border-top: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
}

.demo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--edge);
  box-shadow: var(--shadow-float), var(--shadow-glow);
}

.demo-frame img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.demo-ui {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 320px;
  pointer-events: none;
}

@media (max-width: 768px) {
  .demo-ui { display: none; }
}

.demo-panel {
  align-self: end;
  margin: var(--space-6);
  padding: var(--space-5);
  background: rgba(22, 22, 22, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--edge);
  border-radius: var(--radius-md);
}

.light .demo-panel {
  background: rgba(255, 255, 255, 0.92);
}

.demo-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.demo-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
}

.demo-live-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse-dot 1.5s ease-in-out infinite;
}

.score-ring-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.score-ring {
  width: 56px;
  height: 56px;
  position: relative;
}

.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }

.score-ring-track {
  fill: none;
  stroke: var(--edge);
  stroke-width: 4;
}

.score-ring-fill {
  fill: none;
  stroke: var(--red);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 163;
  stroke-dashoffset: 49;
}

.score-value {
  font-size: var(--text-h3);
  font-weight: 300;
  color: var(--red);
}

.score-label {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.signal-alert {
  padding: var(--space-3) var(--space-4);
  background: var(--threat-surface);
  border: 1px solid var(--threat-border);
  border-radius: var(--radius-sm);
  margin-top: var(--space-3);
}

.signal-alert strong {
  display: block;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--red);
  margin-bottom: 4px;
}

.signal-alert p {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ── Why section ── */

.why-section {
  padding: var(--space-24) 0;
}

.why-grid {
  display: grid;
  gap: var(--space-12);
  margin-top: var(--space-12);
}

@media (min-width: 768px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
}

.why-item {
  position: relative;
  padding-top: var(--space-6);
}

.why-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--edge) 100%);
}

.why-num {
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  color: var(--accent-light);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
}

.why-item h3 {
  font-weight: 400;
  margin-bottom: var(--space-3);
}

.why-item p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ── Stats strip ── */

.stats-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  padding: var(--space-10) 0;
  border-top: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
}

@media (min-width: 768px) {
  .stats-strip { grid-template-columns: repeat(4, 1fr); }
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: var(--text-h2);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: var(--space-1);
}

/* ── Signals section ── */

.signals-section {
  padding: var(--space-24) 0;
}

/* Centered lead — mirrors .platform-showcase-lead */
.signals-lead {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}

.signals-lead .heading-2 {
  max-width: none;
}

.signals-lead .lead {
  max-width: 36rem;
  margin: var(--space-4) auto 0;
}

.signals-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  color: var(--text-secondary);
}

.signals-icon svg {
  width: 32px;
  height: 32px;
  overflow: visible;
}

.signals-icon-scan {
  stroke: var(--accent);
  stroke-width: 40;
  stroke-linecap: round;
  transform-box: view-box;
  transform-origin: center;
  animation: signals-scan 1.4s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 18px var(--accent-glow));
}

@keyframes signals-scan {
  from { transform: translateY(-120px); }
  to   { transform: translateY(120px); }
}

@media (prefers-reduced-motion: reduce) {
  .signals-icon-scan { animation: none; }
}

.signal-row {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--edge);
  transition: color var(--dur-fast) var(--ease);
}

@media (min-width: 640px) {
  .signal-row {
    grid-template-columns: 160px 1fr;
    gap: var(--space-10);
    align-items: baseline;
  }
}

.signal-row:hover .signal-title { color: var(--accent-light); }

.signal-num {
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: 0.15em;
  color: var(--accent-light);
}

.signal-title {
  font-size: var(--text-sm);
  font-weight: 400;
  transition: color var(--dur-fast) var(--ease);
}

.signal-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Signal chips (public-facing, minimal detail) ── */

.signal-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-12);
}

.signal-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  padding: var(--space-3) var(--space-5);
  background: transparent;
  border: 1px solid var(--edge);
  border-radius: var(--radius-pill);
  min-width: auto;
  transition: border-color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease);
}

.signal-chip:hover {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.signal-chip-label {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-primary);
}

.signal-chip-type {
  font-size: var(--text-micro);
  color: var(--text-tertiary);
}

.signal-chip.more {
  justify-content: center;
  align-items: center;
  background: transparent;
  border-color: var(--edge);
}

.signal-chip.more .signal-chip-label {
  color: var(--text-secondary);
  font-weight: 400;
}

.signals-foot {
  margin-top: var(--space-10);
  text-align: center;
}

/* ── CTA section ── */

.cta-section {
  padding: var(--space-24) 0;
}

.cta-card {
  padding: var(--space-12) var(--space-8);
  text-align: center;
  background: transparent;
  border: 1px solid var(--edge);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 70% at 50% 100%, var(--warm-soft) 0%, transparent 70%);
  pointer-events: none;
}

.cta-card .heading-2 {
  position: relative;
  margin-bottom: var(--space-4);
}

.cta-card .lead {
  position: relative;
  margin: 0 auto var(--space-8);
}

.cta-card .lead a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cta-card .lead a:hover {
  color: var(--text-primary);
}

.cta-card .hero-actions {
  position: relative;
  justify-content: center;
}

/* ── Footer ── */

.footer {
  padding: var(--space-16) 0 var(--space-10);
  border-top: 1px solid var(--edge);
}

.footer-grid {
  display: grid;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr repeat(3, 1fr); }
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin-top: var(--space-4);
  max-width: 280px;
  line-height: 1.55;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin-bottom: var(--space-4);
}

.footer-col a {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  padding: var(--space-1) 0;
  transition: color var(--dur-fast) var(--ease);
}

.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-8);
  border-top: 1px solid var(--edge);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.footer-bottom a {
  color: var(--text-secondary);
  transition: color var(--dur-fast) var(--ease);
}
.footer-bottom a:hover { color: var(--text-primary); }

/* ── Page header (subpages) ── */

.page-header {
  padding-top: calc(var(--nav-height) + var(--space-16));
  padding-bottom: var(--space-12);
  border-bottom: 1px solid var(--edge);
}

.page-header .display {
  margin-bottom: var(--space-4);
}

/* ── Page hero banner (subpages with atmospheric art) ── */

.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--edge);
}

.page-hero__atmosphere {
  position: absolute;
  inset: 0;
  top: calc(-1 * var(--nav-height));
  height: calc(100% + var(--nav-height));
  pointer-events: none;
  z-index: 0;
}

.page-hero__image {
  position: absolute;
  inset: -6%;
  width: 112%;
  max-width: none;
  height: 112%;
  object-fit: cover;
  object-position: center 42%;
  opacity: 0.72;
}

.dark .page-hero__image {
  opacity: 0.68;
}

.light .page-hero__image {
  opacity: 0.58;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, var(--page-bg) 0%, rgba(21, 21, 21, 0.72) 14%, transparent 42%),
    linear-gradient(0deg, var(--page-bg) 0%, rgba(21, 21, 21, 0.88) 18%, transparent 52%);
}

.light .page-hero::before {
  background:
    linear-gradient(180deg, var(--page-bg) 0%, rgba(250, 250, 248, 0.82) 14%, transparent 42%),
    linear-gradient(0deg, var(--page-bg) 0%, rgba(250, 250, 248, 0.92) 18%, transparent 52%);
}

.page-hero--business::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 55% at 50% 38%, rgba(var(--slot-console-glow), 0.08) 0%, transparent 72%);
}

.page-hero--assist::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 55% at 50% 38%, rgba(var(--slot-assist-glow), 0.07) 0%, transparent 72%);
}

.page-hero--assist .page-hero__image {
  object-position: center 38%;
  opacity: 0.78;
}

.dark .page-hero--assist .page-hero__image {
  opacity: 0.74;
}

.page-hero--section {
  border-bottom: none;
}

.page-hero--section .page-hero__atmosphere {
  top: 0;
  height: 100%;
}

.page-hero--section::before {
  background:
    linear-gradient(180deg, var(--page-bg) 0%, transparent 28%),
    linear-gradient(0deg, var(--page-bg) 0%, rgba(21, 21, 21, 0.9) 22%, transparent 55%);
}

.light .page-hero--section::before {
  background:
    linear-gradient(180deg, var(--page-bg) 0%, transparent 28%),
    linear-gradient(0deg, var(--page-bg) 0%, rgba(250, 250, 248, 0.92) 22%, transparent 55%);
}

.page-hero--section .page-hero__content {
  padding: var(--space-16) 0 var(--space-10);
  max-width: 42rem;
}

.page-hero--section .page-hero__content .heading-2 {
  margin-bottom: var(--space-4);
}

.page-hero--runtime::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 55% at 50% 38%, rgba(var(--slot-runtime-glow), 0.1) 0%, transparent 72%);
}

.page-hero--runtime .page-hero__image {
  object-position: center 36%;
}

.page-hero__content {
  position: relative;
  z-index: 2;
  padding: calc(var(--nav-height) + var(--space-16)) 0 var(--space-12);
  max-width: 42rem;
}

.page-hero__content .display {
  margin-bottom: var(--space-4);
}

.page-hero__content .lead {
  max-width: 36rem;
}

/* ── Pricing (Retool-style) ── */

.pricing-page {
  padding-bottom: var(--space-24);
}

.pricing-head {
  display: grid;
  gap: var(--space-8);
  padding: calc(var(--nav-height) + var(--space-16)) 0 var(--space-12);
}

@media (min-width: 768px) {
  .pricing-head {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: start;
    gap: var(--space-8) var(--space-16);
  }

  .pricing-display {
    grid-column: 1;
    grid-row: 1;
  }

  .pricing-head__controls {
    grid-column: 2;
    grid-row: 1;
  }

  .pricing-lead {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

.pricing-display {
  font-weight: 600;
}

.pricing-head__controls {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .pricing-head__controls {
    align-items: flex-end;
    margin-top: var(--space-2);
  }
}

.pricing-lead {
  max-width: 42rem;
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--text-secondary);
}

.billing-toggle {
  display: inline-flex;
  padding: 3px;
  background: var(--surface-2);
  border: 1px solid var(--edge);
  border-radius: var(--radius-pill);
  gap: 2px;
}

.billing-toggle button {
  padding: 6px 14px;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.billing-toggle button.is-active {
  color: var(--text-primary);
  background: var(--surface-elevated);
  box-shadow: 0 1px 3px rgba(20, 20, 20, 0.08);
}

.billing-toggle .save-badge {
  margin-left: 4px;
  padding: 1px 6px;
  font-size: var(--text-micro);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: rgba(20, 20, 20, 0.06);
  border-radius: var(--radius-pill);
}

.light .billing-toggle .save-badge {
  color: rgba(20, 20, 20, 0.62);
  background: rgba(20, 20, 20, 0.06);
}

.pricing-tiers {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--edge);
  background: var(--surface-elevated);
}

@media (min-width: 900px) {
  .pricing-tiers {
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--edge);
  }
}

.pricing-tier-card {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--edge);
  position: relative;
  background: var(--surface-elevated);
}

@media (min-width: 900px) {
  .pricing-tier-card {
    border-bottom: none;
    border-right: 1px solid var(--edge);
  }
  .pricing-tier-card:last-child {
    border-right: none;
  }
}

.pricing-tier-card--business { --tier-accent: var(--tier-business); }
.pricing-tier-card--pro { --tier-accent: var(--tier-pro); }
.pricing-tier-card--enterprise { --tier-accent: var(--tier-enterprise); }

.tier-header {
  padding: var(--space-5) var(--space-6);
  min-height: 6rem;
  background: var(--tier-accent);
}

@media (min-width: 900px) {
  .tier-header {
    padding: var(--space-6);
    min-height: 6.5rem;
  }
}

.tier-header .tier-name {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.light .tier-header .tier-name {
  color: #141414;
}

.light .tier-header .tier-desc {
  color: rgba(20, 20, 20, 0.68);
}

.dark .tier-header .tier-name {
  color: #faf9f5;
}

.dark .tier-header .tier-desc {
  color: rgba(250, 249, 245, 0.72);
}

.tier-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--space-6);
}

@media (min-width: 900px) {
  .tier-body {
    padding: var(--space-6) var(--space-6) var(--space-8);
  }
}

.tier-name {
  display: block;
  font-size: var(--text-body);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.tier-price {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

.tier-price--custom {
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  font-weight: 600;
}

.tier-price small {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--text-tertiary);
  letter-spacing: 0;
}

.tier-meta {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-bottom: var(--space-5);
  min-height: 1.25em;
}

.tier-desc {
  font-size: var(--text-sm);
  line-height: 1.45;
  margin: 0;
}

.tier-features {
  flex: 1;
  margin: var(--space-6) 0 0;
}

.tier-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.45;
}

.light .tier-features li {
  color: rgba(20, 20, 20, 0.72);
}

.tier-features li svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--text-tertiary);
}

.tier-cta {
  width: 100%;
  margin-top: 0;
}

.pricing-footnote {
  margin-top: var(--space-8);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  line-height: 1.6;
  max-width: 52rem;
}

.pricing-footnote a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pricing-footnote a:hover {
  color: var(--text-primary);
}

.pricing-trust {
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* legacy pricing grid (other pages) */
.pricing-grid {
  display: grid;
  gap: var(--space-6);
  padding: var(--space-16) 0;
}

@media (min-width: 768px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}

.pricing-card {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.pricing-card.featured {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-glow);
}

.pricing-tier {
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
}

.pricing-price {
  font-size: var(--text-h2);
  font-weight: 300;
}

.pricing-price span {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

.pricing-features {
  flex: 1;
  margin: var(--space-4) 0;
}

.pricing-features li {
  display: flex;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  padding: var(--space-2) 0;
}

.pricing-features li::before {
  content: "✓";
  color: var(--accent-light);
  font-size: var(--text-xs);
}

/* ── FAQ ── */

.faq-list {
  padding: var(--space-12) 0 var(--space-24);
  max-width: 720px;
}

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

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-5) 0;
  font-size: var(--text-body);
  font-weight: 400;
  text-align: left;
  color: var(--text-primary);
}

.faq-question svg {
  width: 16px;
  height: 16px;
  color: var(--text-tertiary);
  transition: transform var(--dur-fast) var(--ease);
  flex-shrink: 0;
}

.faq-item.open .faq-question svg { transform: rotate(180deg); }

.faq-answer {
  display: none;
  padding-bottom: var(--space-5);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.faq-item.open .faq-answer { display: block; }

/* ── Reveal animations ── */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-tag-dot, .demo-live-badge::before { animation: none; }
  html { scroll-behavior: auto; }
}

/* ── Utility ── */

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.max-w-narrow { max-width: 640px; }

.gradient-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--edge) 12%, var(--edge) 88%, transparent 100%);
}

.two-col {
  display: grid;
  gap: var(--space-12);
  align-items: center;
}

@media (min-width: 768px) {
  .two-col { grid-template-columns: 1fr 1fr; }
}

.content-section {
  padding: var(--space-16) 0;
}

.content-section p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: var(--space-4);
}

.content-section p:last-child { margin-bottom: 0; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-light);
  border: 1px solid rgba(74, 108, 247, 0.2);
}

.badge-orange {
  background: rgba(230, 126, 34, 0.12);
  color: var(--orange);
  border-color: rgba(230, 126, 34, 0.25);
}

.badge-green {
  background: rgba(46, 204, 113, 0.12);
  color: var(--green);
  border-color: rgba(46, 204, 113, 0.25);
}

.runtime-decisions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.runtime-pill {
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-pill);
  border: 1px solid var(--edge);
  color: var(--text-secondary);
}

.runtime-pill.allow { border-color: rgba(46, 204, 113, 0.3); color: var(--green); }
.runtime-pill.verify { border-color: rgba(241, 196, 15, 0.3); color: var(--yellow); }
.runtime-pill.warn { border-color: rgba(230, 126, 34, 0.3); color: var(--orange); }
.runtime-pill.escalate { border-color: rgba(74, 108, 247, 0.3); color: var(--accent-light); }
.runtime-pill.block { border-color: rgba(214, 52, 68, 0.3); color: var(--red); }

/* ── AI agents page ── */

.agents-hero {
  position: relative;
  overflow: visible;
  margin-bottom: calc(-1 * var(--space-8));
}

@media (min-width: 768px) {
  .agents-hero {
    margin-bottom: calc(-1 * var(--space-12));
  }
}

.agents-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(38vh, 280px);
  background: linear-gradient(180deg, transparent 0%, var(--page-bg) 72%);
  pointer-events: none;
  z-index: 1;
}

.agents-hero__atmosphere {
  position: absolute;
  inset: 0;
  top: calc(-1 * (var(--nav-height) + var(--space-8)));
  height: calc(100% + var(--nav-height) + var(--space-8));
  pointer-events: none;
  z-index: 0;
}

@media (min-width: 768px) {
  .agents-hero__atmosphere {
    top: calc(-1 * (var(--nav-height) + var(--space-10)));
    height: calc(100% + var(--nav-height) + var(--space-10));
  }
}

.agents-hero__bg {
  position: absolute;
  inset: -8%;
  width: 116%;
  max-width: none;
  height: 116%;
  object-fit: cover;
  object-position: center 36%;
  opacity: 0.82;
}

.agents-hero__bg--light {
  display: none;
}

.light .agents-hero__bg--dark {
  display: none;
}

.light .agents-hero__bg--light {
  display: block;
  opacity: 0.62;
}

.agents-hero__accent {
  position: absolute;
  top: -4%;
  right: -6%;
  width: min(58vw, 720px);
  height: min(58vw, 720px);
  max-width: none;
  object-fit: cover;
  object-position: 100% 0%;
  opacity: 0.18;
  mix-blend-mode: screen;
  mask-image: radial-gradient(ellipse 100% 100% at 100% 0%, #000 34%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 100% 100% at 100% 0%, #000 34%, transparent 72%);
}

.light .agents-hero__accent {
  mix-blend-mode: soft-light;
  opacity: 0.12;
}

.agents-hero__atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, var(--page-bg) 0%, transparent 22%),
    radial-gradient(ellipse 70% 55% at 18% 32%, rgba(var(--slot-runtime-glow), 0.14) 0%, transparent 72%),
    radial-gradient(ellipse 55% 48% at 82% 18%, rgba(108, 72, 196, 0.12) 0%, transparent 70%);
}

.light .agents-hero__atmosphere::before {
  background:
    linear-gradient(180deg, var(--page-bg) 0%, transparent 24%),
    radial-gradient(ellipse 70% 55% at 18% 32%, rgba(var(--slot-runtime-glow), 0.08) 0%, transparent 72%),
    radial-gradient(ellipse 55% 48% at 82% 18%, rgba(108, 72, 196, 0.06) 0%, transparent 70%);
}

.agents-hero__atmosphere::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  z-index: 1;
  background: linear-gradient(0deg, var(--page-bg) 0%, transparent 68%);
}

.agents-hero__grid-floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  z-index: 1;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(var(--slot-runtime-glow), 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--slot-runtime-glow), 0.22) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(0deg, #000 0%, transparent 88%);
  -webkit-mask-image: linear-gradient(0deg, #000 0%, transparent 88%);
}

.light .agents-hero__grid-floor {
  opacity: 0.22;
}

.agents-hero__stack {
  position: relative;
  width: 100%;
  min-height: 380px;
}

.agents-hero__ghost-app {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 0;
  width: 104%;
  max-width: 520px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(18, 18, 22, 0.55);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  opacity: 0.42;
  filter: saturate(0.75);
  pointer-events: none;
  mask-image: linear-gradient(180deg, #000 0%, #000 58%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 58%, transparent 100%);
}

.light .agents-hero__ghost-app {
  background: rgba(240, 239, 234, 0.72);
  border-color: rgba(20, 20, 20, 0.08);
  opacity: 0.5;
}

.agents-ghost-chrome {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.light .agents-ghost-chrome {
  border-bottom-color: rgba(20, 20, 20, 0.06);
}

.agents-ghost-chrome span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.light .agents-ghost-chrome span {
  background: rgba(20, 20, 20, 0.1);
}

.agents-ghost-body {
  display: grid;
  grid-template-columns: 72px 1fr;
  min-height: 168px;
}

.agents-ghost-sidebar {
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
}

.light .agents-ghost-sidebar {
  border-right-color: rgba(20, 20, 20, 0.06);
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.03) 0%, transparent 100%);
}

.agents-ghost-main {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.agents-ghost-row {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
}

.agents-ghost-row--short {
  width: 62%;
}

.light .agents-ghost-row {
  background: rgba(20, 20, 20, 0.08);
}

.agents-ghost-block {
  flex: 1;
  min-height: 72px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.light .agents-ghost-block {
  border-color: rgba(20, 20, 20, 0.06);
  background: rgba(20, 20, 20, 0.03);
}

.agents-hero__stack .agents-prompt-frame {
  position: relative;
  z-index: 2;
  margin-top: 24%;
  padding: 16px;
}

.agents-hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: var(--space-12);
  align-items: center;
  min-height: min(82svh, 820px);
  padding: calc(var(--nav-height) + var(--space-12)) 0 var(--space-20);
}

@media (min-width: 1024px) {
  .agents-hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, 500px);
    gap: var(--space-10);
    align-items: center;
    padding-bottom: var(--space-24);
  }
}

.agents-hero__copy {
  max-width: 38rem;
}

.agents-eyebrow {
  margin: 0 0 var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.agents-hero__title {
  font-weight: 500;
  letter-spacing: -0.038em;
  line-height: 1.05;
  margin-bottom: var(--space-6);
  text-wrap: balance;
}

.agents-hero__lead {
  max-width: 34rem;
  color: var(--text-front);
  margin-bottom: var(--space-10);
}

.agents-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.dark .agents-page .agents-hero .btn-primary,
.dark .agents-page .agents-cta .btn-primary {
  color: #141414;
  background: #e8e6df;
  border-color: #e8e6df;
}

.dark .agents-page .agents-hero .btn-primary:hover,
.dark .agents-page .agents-cta .btn-primary:hover {
  background: #f2f0e8;
  border-color: #f2f0e8;
}

.dark .agents-page .agents-hero .btn-secondary,
.dark .agents-page .agents-cta .btn-secondary {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
}

.dark .agents-page .agents-hero .btn-secondary:hover,
.dark .agents-page .agents-cta .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.22);
}

.agents-hero__visual {
  width: 100%;
  max-width: 480px;
  justify-self: center;
}

@media (min-width: 1024px) {
  .agents-hero__visual {
    justify-self: end;
    align-self: center;
  }
}

.agents-prompt-frame {
  position: relative;
  padding: 16px;
}

.agents-prompt-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: rgba(148, 120, 255, 0.82);
  border-style: solid;
  pointer-events: none;
  z-index: 3;
}

.agents-prompt-corner--tl { top: 0; left: 0; border-width: 2px 0 0 2px; }
.agents-prompt-corner--tr { top: 0; right: 0; border-width: 2px 2px 0 0; }
.agents-prompt-corner--bl { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.agents-prompt-corner--br { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

.light .agents-prompt-corner {
  border-color: rgba(88, 72, 168, 0.45);
}

.agents-prompt-card {
  padding: var(--space-6);
  background: var(--surface-elevated);
  border: 1px solid var(--edge);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
}

.dark .agents-page .agents-prompt-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(255, 255, 255, 0.06);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.dark .agents-page .agents-prompt-scenario {
  color: #5c5c5c;
}

.dark .agents-page .agents-prompt-scenario strong {
  color: #141414;
}

.dark .agents-page .agents-prompt-label {
  color: #8a8a8a;
}

.dark .agents-page .agents-prompt-divider {
  background: rgba(0, 0, 0, 0.08);
}

.dark .agents-page .agents-prompt-card .agents-code-block {
  background: #f4f4f2;
  color: #2a2a2a;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.light .agents-prompt-card {
  background: #faf9f5;
}

.agents-prompt-scenario {
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}

.agents-prompt-scenario strong {
  color: var(--text-primary);
  font-weight: 500;
}

.agents-prompt-divider {
  height: 1px;
  margin: var(--space-4) 0;
  background: var(--edge);
}

.agents-prompt-label {
  margin: 0 0 var(--space-2);
  font-size: var(--text-micro);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.agents-code-block {
  margin: var(--space-2) 0 0;
  padding: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: 1.55;
  color: var(--text-secondary);
  background: var(--surface-inset);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

.agents-intro {
  position: relative;
  z-index: 1;
  background: var(--page-bg);
  padding: var(--space-16) 0 var(--space-12);
}

@media (min-width: 768px) {
  .agents-intro {
    padding-top: var(--space-20);
  }
}

.agents-trust {
  margin: var(--space-16) 0 0;
  padding-top: var(--space-10);
  border-top: 1px solid var(--edge);
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--text-tertiary);
  letter-spacing: 0.01em;
}

.agents-intro__grid {
  display: grid;
  gap: var(--space-12);
}

@media (min-width: 768px) {
  .agents-intro__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
}

.agents-intro__card h2 {
  margin-bottom: var(--space-5);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.agents-intro__card p {
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
  max-width: 34rem;
}

.agents-section-head {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto var(--space-16);
}

.agents-section-head .heading-2 {
  font-size: clamp(1.75rem, 2.8vw, 2.375rem);
  letter-spacing: -0.032em;
  line-height: 1.14;
  text-wrap: balance;
}

.agents-section-head .lead {
  margin-top: var(--space-5);
  font-size: var(--text-base);
  color: var(--text-secondary);
}

.agents-section-head--left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  max-width: 38rem;
}

.agents-section-head--left .heading-2 {
  text-wrap: pretty;
}

.agents-govern {
  padding: var(--space-24) 0;
  background: var(--surface-inset);
  border-top: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
}

.agents-govern__layout {
  display: grid;
  gap: var(--space-12);
}

@media (min-width: 900px) {
  .agents-govern__layout {
    grid-template-columns: minmax(280px, 360px) 1fr;
    gap: var(--space-20);
    align-items: start;
  }
}

.agents-govern__tabs {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.agents-govern__tab {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5) var(--space-6);
  text-align: left;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.agents-govern__tab-title {
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: inherit;
}

.agents-govern__tab-desc {
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-tertiary);
}

.agents-govern__tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.agents-govern__tab:hover .agents-govern__tab-desc {
  color: var(--text-secondary);
}

.light .agents-govern__tab:hover {
  background: rgba(20, 20, 20, 0.03);
}

.agents-govern__tab.is-active {
  color: var(--text-primary);
  background: var(--surface-elevated);
  border-color: var(--edge);
}

.agents-govern__tab:not(.is-active) {
  padding-left: 0;
  padding-right: var(--space-2);
}

.agents-govern__tab:not(.is-active) .agents-govern__tab-title {
  color: var(--text-tertiary);
  font-weight: 400;
}

.agents-govern__tab:not(.is-active) .agents-govern__tab-desc {
  display: none;
}

@media (min-width: 900px) {
  .agents-govern__panel > h3,
  .agents-govern__panel > p {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .agents-govern__panels {
    display: flex;
    align-items: stretch;
    min-height: 280px;
  }

  .agents-govern__panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .agents-govern__panel[hidden] {
    display: none !important;
  }

  .agents-govern__visual {
    max-width: none;
    width: 100%;
  }
}

.agents-govern__panel h3 {
  margin-bottom: var(--space-3);
}

.agents-govern__panel p {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
  max-width: 36rem;
}

.agents-govern__visual {
  padding: var(--space-6);
  max-width: 32rem;
}

.agents-govern__visual p {
  margin: var(--space-4) 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

.agents-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin: var(--space-4) 0 var(--space-5);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.agents-flow__highlight {
  padding: 4px 10px;
  color: var(--accent-light);
  background: rgba(74, 108, 247, 0.1);
  border: 1px solid rgba(74, 108, 247, 0.22);
  border-radius: var(--radius-pill);
}

.agents-audit-list {
  margin-top: var(--space-4);
}

.agents-audit-list li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--edge);
}

.agents-audit-list li:last-child {
  border-bottom: none;
}

.agents-audit-list span {
  color: var(--text-tertiary);
}

.agents-govern__integrate {
  margin: var(--space-5) 0 0;
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--text-secondary);
}

.agents-compare {
  padding: var(--space-24) 0;
}

.agents-compare__grid {
  display: grid;
  gap: var(--space-10);
}

@media (min-width: 768px) {
  .agents-compare__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
}

.agents-compare__label {
  margin: 0 0 var(--space-5);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.agents-compare__col--muted .agents-compare__label {
  color: var(--text-tertiary);
}

.agents-compare__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.agents-compare__row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--edge);
  border-radius: var(--radius-md);
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.agents-compare__col:not(.agents-compare__col--muted) .agents-compare__row {
  border-color: var(--edge-strong);
}

.agents-compare__row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.light .agents-compare__row:hover {
  background: rgba(20, 20, 20, 0.02);
}

.agents-compare__row::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 10px;
}

.agents-compare__row.is-hit {
  color: var(--text-front);
}

.agents-compare__row.is-hit::before {
  background-color: rgba(46, 204, 113, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%232ea043' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m2 6 3 3 5-6'/%3E%3C/svg%3E");
}

.agents-compare__row.is-miss::before {
  background-color: rgba(214, 52, 68, 0.08);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23b33a45' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M3 3l6 6M9 3 3 9'/%3E%3C/svg%3E");
}

.agents-needs {
  padding: var(--space-24) 0;
}

.agents-needs__grid {
  display: grid;
  gap: var(--space-12);
}

@media (min-width: 900px) {
  .agents-needs__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-16);
  }
}

.agents-needs__item h3 {
  font-weight: 400;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.5;
  letter-spacing: -0.015em;
  color: var(--text-front);
}

.agents-ship {
  padding: var(--space-16) 0;
  background: var(--surface-inset);
  border-top: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
}

.agents-ship .agents-section-head {
  margin-bottom: var(--space-6);
}

.agents-ship__toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.agents-ship__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
}

.agents-ship__more,
.agents-ship__disclaimer {
  font-size: var(--text-micro);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
}

.agents-ship__more {
  display: inline-flex;
  align-items: center;
  padding: 0;
}

.agents-ship__disclaimer {
  margin: 0 auto var(--space-8);
  max-width: 28rem;
  line-height: 1.4;
  text-align: center;
}

.agents-ship__tab {
  padding: 10px 16px;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--edge);
  border-radius: var(--radius-pill);
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.agents-ship__tab:hover {
  color: var(--text-primary);
  border-color: var(--edge-hover);
}

.agents-ship__tab.is-active {
  color: var(--text-primary);
  background: var(--surface-elevated);
  border-color: var(--edge-strong);
}

.agents-ship__layout {
  display: grid;
  gap: var(--space-8);
  align-items: start;
}

@media (min-width: 900px) {
  .agents-ship__layout {
    grid-template-columns: 1fr minmax(260px, 340px);
    gap: var(--space-10);
    align-items: start;
  }
}

.agents-ship__panel h3 {
  margin-bottom: var(--space-5);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.agents-ship__panel p {
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 40rem;
}

.agents-ship__visual {
  padding: var(--space-6);
}

.agents-ship__signals-panel[hidden] {
  display: none;
}

.agents-ship__signals {
  margin-top: var(--space-4);
}

.agents-ship__signals li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--edge);
}

.agents-ship__signals li:last-child {
  border-bottom: none;
}

.agents-ship__signals span {
  color: var(--text-secondary);
}

.agents-ship__signals strong {
  font-weight: 500;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: lowercase;
  color: var(--text-primary);
}

.agents-faq {
  padding: var(--space-24) 0 var(--space-8);
}

.agents-faq .faq-list {
  margin: 0 auto;
  padding-bottom: var(--space-20);
  max-width: 40rem;
}

.agents-cta {
  padding-top: var(--space-8);
}

.agents-cta .cta-card {
  padding: var(--space-16) var(--space-8);
  border-color: var(--edge);
}

.agents-cta .cta-card .heading-2 {
  font-size: clamp(1.75rem, 2.8vw, 2.375rem);
  letter-spacing: -0.032em;
  line-height: 1.14;
}

.dark .agents-cta .cta-card::before {
  opacity: 0.85;
}
