/* ==========================================================================
   Insiro design system
   Enterprise SaaS minimalism · violet glass · high-contrast precision
   ========================================================================== */

:root {
  --ink: #0f172a;
  --ink-2: #1e1b2e;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: rgba(15, 23, 42, 0.08);
  --line-2: rgba(15, 23, 42, 0.14);

  --bg: #ffffff;
  --bg-alt: #f8f7fc;
  --bg-tint: #f3f0fd;

  --v-50: #f5f3ff;
  --v-100: #ede9fe;
  --v-200: #ddd6fe;
  --v-300: #c4b5fd;
  --v-400: #a78bfa;
  --v-500: #8b5cf6;
  --v-600: #7c3aed;
  --v-700: #6d28d9;
  --v-800: #5b21b6;
  --v-900: #2e1065;

  --lime: #e2e31a;
  --lime-soft: #f6f7c4;
  --lime-ink: #4a4b00;

  --ok: #059669;
  --ok-bg: #ecfdf5;
  --warn: #b45309;
  --warn-bg: #fffbeb;
  --bad: #dc2626;
  --bad-bg: #fef2f2;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --sh-card: 0 1px 2px rgba(46, 16, 101, 0.04), 0 8px 24px -10px rgba(46, 16, 101, 0.12);
  --sh-float: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 2px 6px rgba(46, 16, 101, 0.05),
    0 18px 40px -12px rgba(46, 16, 101, 0.18), 0 48px 96px -32px rgba(76, 29, 149, 0.3);
  --sh-btn: 0 1px 2px rgba(46, 16, 101, 0.2), 0 6px 16px -6px rgba(109, 40, 217, 0.55);
  --sh-btn-hover: 0 2px 4px rgba(46, 16, 101, 0.22), 0 14px 28px -8px rgba(109, 40, 217, 0.6);

  --f-display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --f-brand: "Archivo", "Inter Tight", system-ui, sans-serif;

  --wrap: 1200px;
  --gutter: 24px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}
.i {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  flex: none;
  vertical-align: -0.15em;
}

a {
  color: var(--v-700);
  text-decoration: none;
}
a:hover {
  color: var(--v-800);
}

h1,
h2,
h3,
h4 {
  font-family: var(--f-display);
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0;
  font-weight: 700;
}
h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.4rem);
  letter-spacing: -0.04em;
}
h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
}
h3 {
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
h4 {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--v-600);
  outline-offset: 3px;
  border-radius: 6px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
}
.skip:focus {
  top: 12px;
  color: #fff;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Brand mark ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--f-brand);
  font-weight: 800;
  font-stretch: 125%;
  font-size: 22px;
  letter-spacing: 0.02em;
  line-height: 1;
}
.brand:hover {
  color: var(--ink);
}
.brand svg {
  width: 26px;
  height: 26px;
  flex: none;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  height: 68px;
  gap: 28px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links > li {
  position: relative;
}
.nav-links a,
.nav-links button {
  font: 500 14.5px/1 var(--f-body);
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 999px;
  background: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-links a:hover,
.nav-links button:hover,
.nav-links a[aria-current="page"] {
  background: var(--v-50);
  color: var(--v-800);
}
.nav-links button svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s;
}
.nav-links li:hover > button svg,
.nav-links li:focus-within > button svg {
  transform: rotate(180deg);
}

.mega {
  position: absolute;
  top: calc(100% + 8px);
  left: -16px;
  width: 620px;
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-float);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}
.nav-links li:hover > .mega,
.nav-links li:focus-within > .mega {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.mega::before {
  content: "";
  position: absolute;
  inset: -10px 0 auto 0;
  height: 10px;
}
.mega a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: var(--r-md);
  line-height: 1.35;
}
.mega a:hover {
  background: var(--v-50);
}
.mega strong {
  display: block;
  font-size: 14.5px;
  color: var(--ink);
  margin-bottom: 3px;
}
.mega span.d {
  display: block;
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
}

.nav-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg {
  width: 20px;
  height: 20px;
}

.mobile-nav {
  display: none;
}

@media (max-width: 980px) {
  .nav-links,
  .nav-cta .btn-ghost {
    display: none;
  }
  .nav-cta {
    margin-left: auto;
  }
  .nav-toggle {
    display: inline-flex;
    margin-left: 0;
  }
  .mobile-nav.open {
    display: block;
    border-top: 1px solid var(--line);
    padding: 12px 0 20px;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
  }
  .mobile-nav a {
    display: block;
    padding: 12px 4px;
    color: var(--ink);
    font-weight: 500;
    border-bottom: 1px solid var(--line);
  }
  .mobile-nav .mono-label {
    margin: 16px 0 4px;
  }
}
.lbl-s {
  display: none;
}
.mnav-cta {
  display: none;
}
@media (max-width: 980px) {
  .nav {
    gap: 12px;
  }
  .mnav-cta {
    display: flex;
    margin: 4px 0 8px;
    border-bottom: 0 !important;
    color: #fff !important;
  }
}
@media (max-width: 520px) {
  .nav-cta .btn {
    padding: 9px 13px;
    font-size: 13px;
  }
  .lbl-l {
    display: none;
  }
  .lbl-s {
    display: inline;
  }
  .brand {
    font-size: 19px;
    gap: 8px;
  }
  .brand svg {
    width: 22px;
    height: 22px;
  }
}
@media (max-width: 360px) {
  /* Very small phones: the header keeps the logo and menu; the button lives inside the menu. */
  .nav-cta {
    display: none;
  }
  .nav-toggle {
    margin-left: auto;
  }
}

/* ---------- Buttons ---------- */

.btn {
  --b-bg: var(--v-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font: 600 15px/1 var(--f-body);
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s;
}
.btn svg {
  width: 16px;
  height: 16px;
}
.btn-primary {
  background: linear-gradient(180deg, var(--v-600), var(--v-700));
  color: #fff;
  box-shadow: var(--sh-btn);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--sh-btn-hover);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover {
  color: var(--ink);
  background: #fff;
  transform: translateY(-1px);
  box-shadow: var(--sh-card);
}
.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -10px rgba(15, 23, 42, 0.5);
}
.btn-lime {
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 8px 24px -8px rgba(226, 227, 26, 0.6);
}
.btn-lime:hover {
  color: var(--ink);
  transform: translateY(-1px);
}
.btn-sm {
  padding: 10px 16px;
  font-size: 14px;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 15px;
}
.link-arrow svg {
  width: 14px;
  height: 14px;
  transition: transform 0.18s;
}
.link-arrow:hover svg {
  transform: translateX(3px);
}

/* ---------- Labels / badges ---------- */

.mono-label,
.overline {
  font: 500 12px/1.2 var(--f-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--v-700);
}
.overline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.overline::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(226, 227, 26, 0.25);
}
.mono-label {
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.pill b {
  font: 600 11px/1 var(--f-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--lime);
  padding: 5px 8px;
  border-radius: 999px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font: 600 12px/1.3 var(--f-body);
  background: var(--v-50);
  color: var(--v-800);
  border: 1px solid var(--v-100);
  white-space: nowrap;
}
.tag.ok {
  background: var(--ok-bg);
  color: var(--ok);
  border-color: #a7f3d0;
}
.tag.warn {
  background: var(--warn-bg);
  color: var(--warn);
  border-color: #fde68a;
}
.tag.bad {
  background: var(--bad-bg);
  color: var(--bad);
  border-color: #fecaca;
}
.tag.lime {
  background: var(--lime-soft);
  color: var(--lime-ink);
  border-color: #e9ea7a;
}
.tag.grey {
  background: #f1f5f9;
  color: #475569;
  border-color: #e2e8f0;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}
.dot.live {
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

/* ---------- Sections ---------- */

.section {
  padding: 112px 0;
  position: relative;
}
.section.alt {
  background: var(--bg-alt);
}
.section.tight {
  padding: 72px 0;
}
.section-head {
  max-width: 760px;
  margin-bottom: 56px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head .lead {
  margin-top: 18px;
}
.lead {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: var(--muted);
  line-height: 1.6;
}
.muted {
  color: var(--muted);
}
.answer {
  /* AEO: self-contained answer-first block under question headings */
  font-size: 1.05rem;
  color: #334155;
  max-width: 68ch;
}

@media (max-width: 720px) {
  .section {
    padding: 76px 0;
  }
  .section-head {
    margin-bottom: 40px;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 88px 0 72px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 820px;
  z-index: -1;
  background: radial-gradient(40% 50% at 20% 30%, rgba(167, 139, 250, 0.38), transparent 70%),
    radial-gradient(35% 45% at 82% 20%, rgba(236, 72, 153, 0.18), transparent 70%),
    radial-gradient(40% 40% at 60% 70%, rgba(99, 102, 241, 0.2), transparent 70%),
    radial-gradient(20% 25% at 50% 10%, rgba(226, 227, 26, 0.14), transparent 70%);
  filter: blur(10px);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(15, 23, 42, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 70%);
}
.hero-center {
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}
.hero-center .lead {
  max-width: 680px;
  margin: 22px auto 0;
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--v-700) 10%, #a855f7 55%, #db2777 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 34px;
}
.hero-note {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--muted);
}
.hero .pill {
  margin-bottom: 26px;
}

.hero-split {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-split .hero-ctas {
  justify-content: flex-start;
}
.hero-split .lead {
  margin-top: 22px;
  max-width: 560px;
}
@media (max-width: 980px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* Metric badges */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 56px;
}
.metric {
  padding: 22px 22px 20px;
  text-align: left;
}
.metric .num {
  font: 700 clamp(2rem, 3.4vw, 2.75rem) / 1 var(--f-display);
  letter-spacing: -0.04em;
  color: var(--ink);
}
.metric .num small {
  font-size: 0.55em;
  color: var(--v-600);
  margin-left: 2px;
}
.metric .lbl {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}
.metric .lbl b {
  color: var(--ink);
  font-weight: 600;
}
@media (max-width: 860px) {
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Glass surfaces ---------- */

.glass {
  background: rgba(255, 255, 255, 0.64);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--sh-float);
  border-radius: var(--r-lg);
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-card);
}

/* Stage: aurora backdrop that holds floating product mockups */
.stage {
  position: relative;
  border-radius: var(--r-xl);
  padding: 36px;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(135deg, #ede9fe 0%, #f5e8ff 40%, #fce7f3 75%, #eef2ff 100%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 30px 80px -40px rgba(76, 29, 149, 0.45);
  min-width: 0;
}
.stage::before {
  content: "";
  position: absolute;
  inset: -30%;
  z-index: -1;
  background: radial-gradient(30% 30% at 25% 25%, rgba(139, 92, 246, 0.55), transparent 70%),
    radial-gradient(30% 35% at 80% 30%, rgba(236, 72, 153, 0.35), transparent 70%),
    radial-gradient(35% 30% at 55% 85%, rgba(99, 102, 241, 0.4), transparent 70%);
  filter: blur(30px);
  animation: drift 18s ease-in-out infinite alternate;
}
.stage.dots::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(46, 16, 101, 0.13) 1px, transparent 1px);
  background-size: 18px 18px;
}
.stage.deep {
  background: linear-gradient(135deg, #2e1065, #4c1d95 50%, #1e1b4b);
}
.stage.deep::before {
  opacity: 0.8;
}
@keyframes drift {
  from {
    transform: translate3d(-3%, -2%, 0) rotate(0deg);
  }
  to {
    transform: translate3d(3%, 2%, 0) rotate(8deg);
  }
}
@media (max-width: 600px) {
  .stage {
    padding: 18px;
    border-radius: 22px;
  }
}

/* Window chrome for mockups */
.win {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  box-shadow: var(--sh-float);
  overflow: hidden;
  min-width: 0;
}
.win {
  container-type: inline-size;
}
.nl-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1.25fr;
}
@container (max-width: 560px) {
  .nl-grid {
    grid-template-columns: 1fr;
  }
  .nl-grid .steps {
    grid-template-columns: 1fr 1fr;
  }
  .nl-grid .steps li .ms {
    display: none;
  }
  .tbl .hide-sm {
    display: none;
  }
  .win-bar .muted {
    display: none;
  }
}
.win-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.win-bar .lights {
  display: flex;
  gap: 6px;
}
.win-bar .lights i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e2e8f0;
}
.win-bar .lights i:nth-child(1) {
  background: #fca5a5;
}
.win-bar .lights i:nth-child(2) {
  background: #fcd34d;
}
.win-bar .lights i:nth-child(3) {
  background: #86efac;
}
.win-bar .title {
  font-weight: 600;
  color: var(--ink);
}
.win-bar .right {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}
.win-body {
  padding: 20px;
}

/* ---------- Grids ---------- */

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 20px;
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 980px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Split feature block */
.split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: center;
}
.split + .split {
  margin-top: 128px;
}
.split.flip > :first-child {
  order: 2;
}
.split-copy .lead {
  margin-top: 18px;
}
.split-copy h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
}
@media (max-width: 980px) {
  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .split.flip > :first-child {
    order: 0;
  }
  .split + .split {
    margin-top: 88px;
  }
}

.checks {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 14px;
}
.checks li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  font-size: 15.5px;
  color: #334155;
  line-height: 1.5;
}
.checks li::before {
  content: "";
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 7px;
  background: var(--v-100)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d28d9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E")
    center/13px no-repeat;
}
.checks li b {
  color: var(--ink);
  font-weight: 600;
}

/* Why-Insiro callout */
.why {
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(237, 233, 254, 0.8), rgba(246, 247, 196, 0.45));
  border: 1px solid var(--v-100);
  font-size: 14.5px;
  color: #3b3355;
  line-height: 1.55;
}
.why strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 600 11.5px/1 var(--f-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--v-800);
  margin-bottom: 8px;
}
.why strong svg {
  width: 14px;
  height: 14px;
}

/* Feature cards */
.feature {
  padding: 28px;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.feature:hover {
  transform: translateY(-2px);
  border-color: var(--v-200);
  box-shadow: 0 1px 2px rgba(46, 16, 101, 0.04), 0 18px 40px -16px rgba(76, 29, 149, 0.25);
}
.feature .ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--v-100), #fae8ff);
  color: var(--v-700);
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 14px -6px rgba(109, 40, 217, 0.35);
}
.feature .ico svg {
  width: 22px;
  height: 22px;
}
.feature h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.feature p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.feature .num-tag {
  position: absolute;
  top: 26px;
  right: 26px;
  font: 500 12px/1 var(--f-mono);
  color: var(--muted-2);
}

/* Product cards (home) */
.product-card {
  display: flex;
  flex-direction: column;
  padding: 30px;
  color: var(--ink);
  min-height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
  position: relative;
}
.product-card:hover {
  color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 1px 2px rgba(46, 16, 101, 0.04), 0 24px 48px -20px rgba(76, 29, 149, 0.35);
}
.product-card .mono-label {
  color: var(--v-700);
}
.product-card h3 {
  margin: 12px 0 10px;
}
.product-card p {
  color: var(--muted);
  font-size: 15px;
}
.product-card .link-arrow {
  margin-top: auto;
  padding-top: 22px;
  color: var(--v-700);
}
.product-card .mini {
  margin: 22px 0 0;
}
.product-card.wide {
  grid-column: span 2;
}
@media (max-width: 640px) {
  .product-card.wide {
    grid-column: auto;
  }
}

/* Numbered value grid (01 / 02 / 03) */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  overflow: hidden;
}
.value-grid > div {
  padding: 34px 30px;
  border-right: 1px solid var(--line);
}
.value-grid > div:last-child {
  border-right: 0;
}
.value-grid .idx {
  font: 500 12.5px/1 var(--f-mono);
  color: var(--v-700);
  letter-spacing: 0.06em;
}
.value-grid .big {
  font: 700 clamp(2.4rem, 4vw, 3.4rem) / 1 var(--f-display);
  letter-spacing: -0.045em;
  margin: 18px 0 8px;
}
.value-grid h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.value-grid p {
  color: var(--muted);
  font-size: 14.5px;
}
@media (max-width: 860px) {
  .value-grid {
    grid-template-columns: 1fr;
  }
  .value-grid > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .value-grid > div:last-child {
    border-bottom: 0;
  }
}

/* Problem → agitation → solution arc */
.arc {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.arc .card {
  padding: 30px;
}
.arc .step {
  font: 600 12px/1 var(--f-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.arc .s1 .step {
  background: #f1f5f9;
  color: #475569;
}
.arc .s2 .step {
  background: var(--bad-bg);
  color: var(--bad);
}
.arc .s3 .step {
  background: var(--v-100);
  color: var(--v-800);
}
.arc .s3 {
  background: linear-gradient(160deg, #fff, var(--v-50));
  border-color: var(--v-200);
}
.arc h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.arc p {
  color: var(--muted);
  font-size: 15px;
}
@media (max-width: 860px) {
  .arc {
    grid-template-columns: 1fr;
  }
}

/* ---------- Compare table ---------- */

.compare-wrap {
  overflow-x: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--sh-card);
}
.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 14.5px;
}
.compare th,
.compare td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.compare thead th {
  font: 600 12px/1.3 var(--f-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-alt);
}
.compare thead th.us {
  color: var(--v-800);
  background: var(--v-50);
}
.compare td.us {
  background: rgba(245, 243, 255, 0.55);
  color: var(--ink);
  font-weight: 500;
}
.compare tbody th {
  font-weight: 600;
  color: var(--ink);
  width: 26%;
}
.compare td {
  color: var(--muted);
}
.compare tr:last-child th,
.compare tr:last-child td {
  border-bottom: 0;
}
.yes,
.no,
.part {
  display: inline-flex;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  vertical-align: -5px;
  margin-right: 8px;
  flex: none;
}
.yes {
  background: var(--ok-bg)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E")
    center/12px no-repeat;
}
.no {
  background: var(--bad-bg)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E")
    center/11px no-repeat;
}
.part {
  background: var(--warn-bg)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b45309' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E")
    center/11px no-repeat;
}
.compare-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr;
  gap: 64px;
  align-items: start;
}
.faq-list {
  border-top: 1px solid var(--line-2);
}
.faq details {
  border-bottom: 1px solid var(--line-2);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 44px 22px 0;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary h3 {
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  line-height: 1.4;
  font-weight: 600;
}
.faq summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 24px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--v-50)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d28d9' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E")
    center/13px no-repeat;
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq .faq-a {
  padding: 0 44px 24px 0;
  color: #475569;
  font-size: 15.5px;
  line-height: 1.65;
}
.faq .faq-a p + p {
  margin-top: 10px;
}
.faq-side {
  position: sticky;
  top: 100px;
}
.faq-side .lead {
  margin-top: 16px;
}
@media (max-width: 900px) {
  .faq {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .faq-side {
    position: static;
  }
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: 72px 56px;
  background: radial-gradient(60% 80% at 85% 10%, rgba(236, 72, 153, 0.35), transparent 60%),
    radial-gradient(50% 70% at 10% 100%, rgba(139, 92, 246, 0.55), transparent 60%),
    linear-gradient(135deg, #1e0b44 0%, #2e1065 45%, #3b0764 100%);
  color: #fff;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
  isolation: isolate;
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 340px;
  height: 340px;
  z-index: -1;
  opacity: 0.18;
  background: url("../img/asterisk.svg") center/contain no-repeat;
  animation: spin 60s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.cta-band h2 {
  color: #fff;
}
.cta-band p {
  color: rgba(237, 233, 254, 0.82);
  margin-top: 16px;
  font-size: 1.1rem;
}
.cta-band .proof {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--r-lg);
  padding: 26px;
}
.cta-band .proof p {
  margin: 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
}
.cta-band .proof ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.cta-band .proof li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 14.5px;
  color: rgba(237, 233, 254, 0.88);
}
.cta-band .proof li b {
  font: 700 22px/1 var(--f-display);
  color: var(--lime);
  min-width: 78px;
  letter-spacing: -0.03em;
}
.cta-band .hero-ctas {
  justify-content: flex-start;
  margin-top: 30px;
}
@media (max-width: 900px) {
  .cta-band {
    grid-template-columns: 1fr;
    padding: 48px 28px;
  }
}

/* ---------- Logos / app bubbles ---------- */

.app {
  --c: var(--v-600);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 7px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.app i {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--c);
  color: #fff;
  font: 700 11px/22px var(--f-display);
  font-style: normal;
  text-align: center;
  flex: none;
}
.apps-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bubbles {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.bubbles .row {
  display: flex;
  gap: 14px;
}
.bubbles .row:nth-child(2) {
  transform: translateX(36px);
}
.bubble {
  --c: var(--v-600);
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.45), 0 10px 24px -10px rgba(76, 29, 149, 0.35);
  font: 800 13px/1.1 var(--f-display);
  color: var(--c);
  text-align: center;
  letter-spacing: -0.02em;
  transition: transform 0.25s;
}
.bubble:hover {
  transform: translateY(-4px) scale(1.04);
}
.bubble span {
  display: block;
  padding: 0 6px;
}
@media (max-width: 600px) {
  .bubble {
    width: 56px;
    height: 56px;
    font-size: 10.5px;
  }
  .bubbles .row {
    gap: 10px;
  }
  .bubbles .row:nth-child(2) {
    transform: translateX(20px);
  }
}

/* Marquee of capabilities */
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: marquee 50s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Mockup primitives ---------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 7px;
  background: var(--v-50);
  border: 1px solid var(--v-200);
  color: var(--v-800);
  font: 600 12.5px/1.4 var(--f-body);
}
.kbd {
  font: 500 11px/1 var(--f-mono);
  padding: 4px 6px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  background: #fff;
  color: var(--muted);
}
.field {
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 14px 16px;
  background: #fff;
  font-size: 14px;
  color: #334155;
  line-height: 1.6;
}
.field ol {
  margin: 10px 0 0;
  padding-left: 20px;
}

/* Ask bar */
.askbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 18px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  box-shadow: 0 10px 30px -14px rgba(76, 29, 149, 0.35);
}
.askbar .plus {
  font-size: 20px;
  color: var(--ink);
  line-height: 1;
}
.askbar .q {
  flex: 1;
  min-width: 0;
  font-size: 15.5px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}
.askbar .q .caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--v-600);
  vertical-align: -3px;
  margin-left: 1px;
  animation: pulse 1s infinite;
}
.askbar .go {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  background: var(--ink);
  display: grid;
  place-items: center;
  color: #fff;
}
.askbar .go svg {
  width: 18px;
  height: 18px;
}

/* Flow nodes */
.flow {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.node {
  width: 100%;
  max-width: 340px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 6px 18px -10px rgba(46, 16, 101, 0.3);
  font-size: 13.5px;
  text-align: left;
}
.node .k {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}
.node .k .ic {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--v-100);
  color: var(--v-700);
}
.node .k .ic svg {
  width: 12px;
  height: 12px;
}
.node .t {
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}
.node.active {
  border-color: var(--v-400);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.14), 0 10px 24px -10px rgba(109, 40, 217, 0.4);
}
.node.ghost {
  background: rgba(241, 245, 249, 0.7);
  border-style: dashed;
  color: var(--muted);
  text-align: center;
  box-shadow: none;
}
.edge {
  width: 2px;
  height: 22px;
  background: linear-gradient(var(--v-300), var(--v-400));
  position: relative;
}
.edge.anim::after {
  content: "";
  position: absolute;
  left: -3px;
  top: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--v-600);
  animation: flowdot 1.6s linear infinite;
}
@keyframes flowdot {
  from {
    top: -4px;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  to {
    top: 18px;
    opacity: 0;
  }
}
.branch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
  position: relative;
  padding-top: 22px;
}
.branch::before {
  content: "";
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  height: 12px;
  border: 2px solid var(--v-300);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}
.branch .lbl {
  justify-self: center;
  font-size: 11.5px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 8px;
}
.branch > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Progress steps (pipeline) */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.steps li {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--muted);
}
.steps li .s {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line-2);
}
.steps li.done {
  color: var(--ink);
}
.steps li.done .s {
  border: 0;
  background: var(--v-600)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E")
    center/11px no-repeat;
}
.steps li.run {
  background: var(--v-50);
  color: var(--v-800);
  font-weight: 600;
}
.steps li.run .s {
  border-color: var(--v-300);
  border-top-color: var(--v-700);
  animation: spin 0.8s linear infinite;
}
.steps li time,
.steps li .ms {
  font: 500 11px/1 var(--f-mono);
  color: var(--muted-2);
}

/* Toggle */
.toggle {
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: #cbd5e1;
  border: 0;
  cursor: pointer;
  flex: none;
  transition: background 0.2s;
  padding: 0;
}
.toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s;
}
.toggle[aria-checked="true"] {
  background: var(--v-600);
}
.toggle[aria-checked="true"]::after {
  transform: translateX(16px);
}

/* Segmented control */
.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: #f1f5f9;
  border: 1px solid var(--line);
  gap: 2px;
}
.seg button {
  border: 0;
  background: none;
  font: 600 12px/1 var(--f-body);
  color: var(--muted);
  padding: 7px 10px;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
}
.seg button[aria-pressed="true"] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}
.seg button[aria-pressed="true"][data-v="off"] {
  color: var(--bad);
}
.seg button[aria-pressed="true"][data-v="read"] {
  color: var(--ok);
}
.seg button[aria-pressed="true"][data-v="write"] {
  color: var(--v-700);
}

/* Data table in mockups */
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.tbl th {
  text-align: left;
  font: 600 11px/1.2 var(--f-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.tbl td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  color: #334155;
  vertical-align: middle;
}
.tbl tr:last-child td {
  border-bottom: 0;
}
.tbl .r {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.tbl tr.click {
  cursor: pointer;
}
.tbl tr.click:hover td {
  background: var(--v-50);
}
.tbl-scroll {
  overflow-x: auto;
}

/* Code */
.code {
  font: 12.5px/1.65 var(--f-mono);
  background: #1e1b2e;
  color: #e9e5ff;
  border-radius: 12px;
  padding: 14px 16px;
  overflow-x: auto;
  white-space: pre;
}
.code .k {
  color: #c4b5fd;
}
.code .s {
  color: #e2e31a;
}
.code .c {
  color: #8b86a8;
}
.code .n {
  color: #f9a8d4;
}

/* KPI tiles in mockups */
.kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}
.kpi .l {
  font-size: 11.5px;
  color: var(--muted);
}
.kpi .v {
  font: 700 20px/1.2 var(--f-display);
  letter-spacing: -0.03em;
  margin-top: 4px;
}
.kpi .d {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ok);
}
.kpi .d.neg {
  color: var(--bad);
}

/* Bars (pure CSS chart) */
.bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 140px;
  padding: 10px 4px 0;
  border-bottom: 1px solid var(--line-2);
}
.bars .b {
  flex: 1;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--v-400), var(--v-600));
  position: relative;
  transform-origin: bottom;
  animation: grow 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.bars .b.hi {
  background: linear-gradient(180deg, #f0f15a, var(--lime));
}
.bars .b:nth-child(2) {
  animation-delay: 0.05s;
}
.bars .b:nth-child(3) {
  animation-delay: 0.1s;
}
.bars .b:nth-child(4) {
  animation-delay: 0.15s;
}
.bars .b:nth-child(5) {
  animation-delay: 0.2s;
}
.bars .b:nth-child(6) {
  animation-delay: 0.25s;
}
.bars .b:nth-child(7) {
  animation-delay: 0.3s;
}
@keyframes grow {
  from {
    transform: scaleY(0.05);
  }
}
.bar-labels {
  display: flex;
  gap: 8px;
  padding: 6px 4px 0;
}
.bar-labels span {
  flex: 1;
  text-align: center;
  font: 500 10.5px/1 var(--f-mono);
  color: var(--muted);
}

/* Chat bubbles */
.msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.5;
}
.msg + .msg {
  margin-top: 12px;
}
.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font: 700 11.5px/1 var(--f-display);
  color: #fff;
  background: linear-gradient(135deg, var(--v-500), #c026d3);
}
.avatar.lime {
  background: var(--lime);
  color: var(--ink);
}
.avatar.ink {
  background: var(--ink);
}
.avatar.blue {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
}
.avatar.teal {
  background: linear-gradient(135deg, #14b8a6, #0ea5e9);
}
.avatar.amber {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}
.msg .bub {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px 14px 14px 14px;
  padding: 9px 12px;
  color: #334155;
}
.msg.me {
  flex-direction: row-reverse;
}
.msg.me .bub {
  background: var(--v-700);
  color: #fff;
  border-color: var(--v-700);
  border-radius: 14px 4px 14px 14px;
}
.msg .who {
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 3px;
}

/* Approval card */
.approve {
  border: 1px solid #fde68a;
  background: linear-gradient(180deg, #fffbeb, #fff);
  border-radius: 14px;
  padding: 14px;
  font-size: 13.5px;
}
.approve .h {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.approve .args {
  font: 12px/1.6 var(--f-mono);
  color: #475569;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
}
.approve .acts {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

/* Mini lifecycle rail (13 steps) */
.rail {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  counter-reset: rail;
}
.rail li {
  list-style: none;
  counter-increment: rail;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  position: relative;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.rail li::before {
  content: counter(rail, decimal-leading-zero);
  display: block;
  font: 500 11px/1 var(--f-mono);
  color: var(--v-600);
  margin-bottom: 8px;
}
.rail li span {
  display: block;
  font-weight: 400;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
}
.rail li.lit {
  border-color: var(--v-400);
  background: var(--v-50);
  transform: translateY(-2px);
}
.rail.on-dark li {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.rail.on-dark li span {
  color: rgba(237, 233, 254, 0.7);
}
.rail.on-dark li::before {
  color: var(--lime);
}
.rail.on-dark li.lit {
  background: rgba(226, 227, 26, 0.14);
  border-color: rgba(226, 227, 26, 0.6);
}
ol.rail {
  padding: 0;
  margin: 0;
}

/* Tabs (hero product switcher) */
.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 auto 22px;
}
.tabs button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font: 600 13.5px/1 var(--f-body);
  color: var(--muted);
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s;
}
.tabs button:hover {
  color: var(--ink);
}
.tabs button[aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.tab-panel[hidden] {
  display: none;
}
.tab-panel {
  animation: fadeUp 0.35s ease both;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* Dark section */
.section.dark {
  background: radial-gradient(60% 60% at 80% 0%, rgba(139, 92, 246, 0.35), transparent 60%),
    radial-gradient(50% 60% at 0% 100%, rgba(219, 39, 119, 0.2), transparent 60%), #120826;
  color: #fff;
}
.section.dark h2,
.section.dark h3 {
  color: #fff;
}
.section.dark .lead,
.section.dark .muted {
  color: rgba(237, 233, 254, 0.75);
}
.section.dark .overline {
  color: var(--v-300);
}

/* Breadcrumbs */
.crumbs {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 26px;
}
.crumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--muted-2);
}
.crumbs a {
  color: var(--muted);
}
.crumbs a:hover {
  color: var(--v-700);
}

/* Sub-nav (product pages) */
.subnav {
  position: sticky;
  top: 68px;
  z-index: 40;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.subnav .wrap {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-top: 8px;
  padding-bottom: 8px;
}
.subnav .wrap::-webkit-scrollbar {
  display: none;
}
.subnav a {
  font: 500 13.5px/1 var(--f-body);
  color: var(--muted);
  padding: 9px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.subnav a:hover,
.subnav a.on {
  color: var(--v-800);
  background: var(--v-50);
}
.subnav .btn {
  margin-left: auto;
  padding: 9px 14px;
}
.subnav .btn-primary,
.subnav .btn-primary:hover {
  color: #fff;
  background: linear-gradient(180deg, var(--v-600), var(--v-700));
}
.split .stage {
  padding: 28px;
}
@media (max-width: 600px) {
  .split .stage {
    padding: 14px;
  }
}

/* Forms */
.form-card {
  padding: 34px;
}
.demo-grid {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  grid-template-areas: "copy form" "details form";
  gap: 28px 56px;
  align-items: start;
}
@media (max-width: 980px) {
  .demo-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "form" "details";
  }
}
.form-steps {
  display: flex;
  gap: 8px;
  margin-bottom: 26px;
}
.form-steps span {
  flex: 1;
  height: 4px;
  border-radius: 99px;
  background: var(--line-2);
}
.form-steps span.on {
  background: linear-gradient(90deg, var(--v-600), #c026d3);
}
.form-row {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}
.form-row label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.form-row input,
.form-row select,
.form-row textarea {
  font: 15px/1.4 var(--f-body);
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--v-500);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.16);
}
.form-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}
.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.check-grid label {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  background: #fff;
}
.check-grid label:has(input:checked) {
  border-color: var(--v-500);
  background: var(--v-50);
}
.check-grid input {
  accent-color: var(--v-700);
}
.form-err {
  color: var(--bad);
  font-size: 13px;
  min-height: 18px;
}
@media (max-width: 560px) {
  .form-2,
  .check-grid {
    grid-template-columns: 1fr;
  }
  .form-card {
    padding: 22px;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  background: #0d0620;
  color: rgba(237, 233, 254, 0.7);
  padding: 80px 0 40px;
  font-size: 14px;
}
.site-footer .brand {
  color: #fff;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px;
}
.foot-grid .foot-h {
  color: #fff;
  font: 500 12px/1 var(--f-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.foot-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.foot-grid a {
  color: rgba(237, 233, 254, 0.7);
}
.foot-grid a:hover {
  color: #fff;
}
.foot-about p {
  margin-top: 18px;
  max-width: 320px;
  line-height: 1.6;
}
.foot-bottom {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}
@media (max-width: 900px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  .foot-about {
    grid-column: 1 / -1;
  }
}

/* ---------- Reveal on scroll (transform/opacity only: no CLS) ---------- */

/* Content is visible at rest (thumbnails, no-JS, crawlers); entering the viewport only adds a short lift. */
.reveal.in {
  animation: lift 0.6s ease both;
}
@keyframes lift {
  from {
    transform: translateY(12px);
  }
}
.no-js .reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  /* Stop large ambient motion only; step changes, fades and progress still play. */
  html {
    scroll-behavior: auto;
  }
  .rb-move,
  .rb-shine,
  .stage::before,
  .marquee-track,
  .orbit-ring,
  .orbit-bub,
  .orbit-core svg,
  .float-a,
  .float-b,
  .orb,
  .cta-band::after,
  .eco-flow {
    animation: none !important;
  }
}

/* Utilities */
.mt-8 {
  margin-top: 8px;
}
.mt-16 {
  margin-top: 16px;
}
.mt-24 {
  margin-top: 24px;
}
.mt-32 {
  margin-top: 32px;
}
.mt-48 {
  margin-top: 48px;
}
.center {
  text-align: center;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.between {
  justify-content: space-between;
}
.wrap-gap {
  flex-wrap: wrap;
}
.stack > * + * {
  margin-top: 12px;
}
.float-a {
  animation: floaty 7s ease-in-out infinite;
}
.float-b {
  animation: floaty 8s ease-in-out -3s infinite;
}
@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
.overlap {
  position: relative;
}
.overlap > .win + .win {
  margin-top: -28px;
  margin-left: 12%;
  position: relative;
}

/* AEO answer strip under product heroes */
.answer-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, var(--bg-alt));
}
.as-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}
.answer-strip h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}
.as-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.as-facts li {
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}
.as-facts b {
  display: block;
  font: 700 1.4rem/1.1 var(--f-display);
  letter-spacing: -0.03em;
  color: var(--v-700);
}
.as-facts span {
  font-size: 12.5px;
  color: var(--muted);
}
@media (max-width: 860px) {
  .as-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Display labels inside product visuals (styled like h4, not part of the page outline) */
.h4 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--ink);
  margin: 0;
}

/* ---------- Feature switcher (accordion left, live visual right) ---------- */

.switcher {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: stretch;
}
.sw-list {
  border-top: 1px solid var(--line-2);
  margin-top: 36px;
}
.sw-item {
  border-bottom: 1px solid var(--line-2);
}
.sw-item > button {
  appearance: none;
  background: none;
  border: 0;
  width: 100%;
  cursor: pointer;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 20px 0;
  text-align: left;
  font: 600 1.15rem/1.3 var(--f-display);
  letter-spacing: -0.015em;
  color: var(--muted-2);
  transition: color 0.2s;
}
.sw-item > button svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.sw-item .sw-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}
.sw-item .sw-body > div {
  overflow: hidden;
}
.sw-item .sw-body p {
  color: var(--muted);
  font-size: 15px;
  padding: 0 0 22px 30px;
  max-width: 470px;
}
.sw-item .sw-body .link-arrow {
  margin: -8px 0 22px 30px;
}
.sw-item.on > button {
  color: var(--ink);
}
.sw-item.on > button svg {
  color: var(--v-700);
}
.sw-item.on .sw-body {
  grid-template-rows: 1fr;
}
.sw-item .bar {
  height: 2px;
  margin-bottom: -1px;
  overflow: hidden;
}
.sw-item.on .bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--v-600), #c026d3);
  transform-origin: left;
  animation: swprog var(--sw-dur, 7s) linear both;
}
.switcher.paused .sw-item.on .bar i {
  animation: none;
}
@keyframes swprog {
  from {
    transform: scaleX(0);
  }
}
.sw-stage {
  position: relative;
  min-height: 540px;
  border-radius: var(--r-xl);
  border: 1px solid var(--line-2);
  background: radial-gradient(70% 60% at 50% 40%, rgba(237, 233, 254, 0.95), rgba(255, 255, 255, 0) 70%),
    radial-gradient(40% 40% at 90% 90%, rgba(226, 227, 26, 0.18), transparent 70%), #fff;
  display: grid;
  place-items: center;
  padding: 36px 28px;
  overflow: hidden;
}
.sw-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(46, 16, 101, 0.09) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: radial-gradient(60% 60% at 50% 50%, #000, transparent);
  -webkit-mask-image: radial-gradient(60% 60% at 50% 50%, #000, transparent);
  pointer-events: none;
}
.sw-pane {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 430px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.sw-pane[hidden] {
  display: none;
}
.sw-pane > * {
  animation: fadeUp 0.45s ease both;
}
.sw-pane > *:nth-child(2) {
  animation-delay: 0.12s;
}
.sw-pane > *:nth-child(3) {
  animation-delay: 0.24s;
}
.prompt-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line-2);
  box-shadow: 0 6px 16px -10px rgba(46, 16, 101, 0.35);
  font-size: 14px;
  color: var(--ink);
  max-width: 100%;
}
.prompt-pill svg {
  width: 16px;
  height: 16px;
  color: var(--v-600);
  flex: none;
}
.skill-card {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--sh-float);
  padding: 22px;
  text-align: left;
}
.skill-card .path {
  font: 500 12px/1 var(--f-mono);
  color: var(--muted);
}
.skill-card .h4 {
  margin: 14px 0 4px;
  font-size: 1.1rem;
}
.skill-card .sub {
  font-size: 13px;
  color: var(--muted);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.skill-card ol {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 12px;
}
.skill-card li {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 8px;
  font-size: 14px;
  align-items: start;
}
.skill-card li .n {
  font: 500 12px/1.6 var(--f-mono);
  color: var(--muted-2);
}
.skill-card li b {
  font-weight: 600;
  display: block;
}
.skill-card li small {
  color: var(--muted);
  font-size: 12.5px;
}
.skill-card li .apps-row {
  gap: 4px;
}
.skill-card li .apps-row i {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  font: 700 9.5px/18px var(--f-display);
  font-style: normal;
  color: #fff;
  text-align: center;
  background: var(--c, var(--v-600));
}
.skill-card .watch {
  margin-top: 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--lime-soft);
  font-size: 13px;
  color: #3f4000;
}
.skill-card .watch b {
  font-weight: 600;
  color: #6b6c00;
}

/* compute grid */
.compute {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: var(--sh-float);
  overflow: hidden;
  font-family: var(--f-mono);
}
.compute .top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}
.compute .cells {
  display: grid;
  grid-template-columns: repeat(22, 1fr);
  gap: 3px;
  padding: 4px 14px 10px;
}
.compute .cells i {
  aspect-ratio: 1;
  background: #eef0f4;
  border-radius: 2px;
  transition: background 0.3s;
}
.compute .cells i.a {
  background: var(--v-300);
}
.compute .cells i.b {
  background: var(--v-700);
}
.compute .cells i.c {
  background: var(--lime);
}
.compute .phases {
  padding: 4px 14px 12px;
  display: grid;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.compute .phases span {
  display: flex;
  gap: 8px;
  align-items: center;
}
.compute .phases span::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid currentColor;
  box-sizing: border-box;
}
.compute .phases span.on {
  color: var(--ink);
}
.compute .phases span.on::before {
  border-color: var(--v-300);
  border-top-color: var(--v-700);
  animation: spin 0.8s linear infinite;
}
.compute .phases span.ok {
  color: var(--ok);
}
.compute .phases span.ok::before {
  background: var(--ok);
  border-color: var(--ok);
}
.compute .foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.compute .foot b {
  font-size: 15px;
  color: var(--ink);
  letter-spacing: 0;
}

/* budget card + receipt */
.budget-wrap {
  position: relative;
  width: 100%;
  height: 420px;
}
.bcard {
  position: absolute;
  left: 0;
  top: 10px;
  width: 82%;
  aspect-ratio: 1.6;
  border-radius: 18px;
  padding: 20px 22px;
  color: #fff;
  transform: rotate(-5deg);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), transparent 40%),
    radial-gradient(80% 60% at 85% 100%, rgba(226, 227, 26, 0.55), transparent 60%),
    radial-gradient(70% 70% at 10% 100%, rgba(139, 92, 246, 0.95), transparent 60%),
    linear-gradient(135deg, #1e0b44, #3b0764);
  box-shadow: 0 30px 50px -20px rgba(46, 16, 101, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.bcard .r1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bcard .r1 .brand {
  color: #fff;
  font-size: 15px;
}
.bcard .r1 .brand svg {
  width: 18px;
  height: 18px;
}
.bcard .cap {
  font: 600 11px/1 var(--f-mono);
  letter-spacing: 0.1em;
  border: 1px solid var(--lime);
  color: var(--lime);
  padding: 5px 8px;
  border-radius: 6px;
}
.bcard .chipx {
  width: 40px;
  height: 30px;
  border-radius: 6px;
  background: linear-gradient(135deg, #e5e7eb, #9ca3af);
}
.bcard .r3 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font: 600 12px/1 var(--f-mono);
  letter-spacing: 0.1em;
}
.bcard .r3 b {
  font-size: 15px;
  color: var(--lime);
}
.receipt {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 58%;
  background: #fff;
  padding: 18px 18px 64px;
  font: 12px/1.9 var(--f-mono);
  color: #475569;
  transform: rotate(3deg);
  filter: drop-shadow(0 18px 24px rgba(15, 23, 42, 0.22));
  clip-path: polygon(0 0, 100% 0, 100% 95%, 95% 100%, 90% 95%, 85% 100%, 80% 95%, 75% 100%, 70% 95%, 65% 100%, 60% 95%, 55% 100%, 50% 95%, 45% 100%, 40% 95%, 35% 100%, 30% 95%, 25% 100%, 20% 95%, 15% 100%, 10% 95%, 5% 100%, 0 95%);
}
.receipt div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  text-transform: uppercase;
}
.receipt hr {
  border: 0;
  border-top: 1px dashed var(--line-2);
  margin: 6px 0;
}
.receipt .stamp {
  position: absolute;
  right: 18px;
  bottom: 22px;
  border: 2px solid var(--v-500);
  color: var(--v-600);
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 0 10px;
  border-radius: 6px;
  transform: rotate(-10deg);
  opacity: 0.8;
  background: rgba(255, 255, 255, 0.7);
}
@media (max-width: 980px) {
  .switcher {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .sw-stage {
    min-height: 480px;
  }
}
@media (max-width: 520px) {
  .compute .cells {
    grid-template-columns: repeat(16, 1fr);
  }
  .budget-wrap {
    height: 380px;
  }
  .receipt {
    width: 70%;
    font-size: 11px;
  }
  .sw-stage {
    padding: 28px 16px;
  }
}

/* ==========================================================================
   Story layer: liquid glass, neon violet chapters, interactive narrative
   ========================================================================== */

:root {
  --neon-bg: #0b0418;
  --neon-1: #7c3aed;
  --neon-2: #c026d3;
  --neon-3: #3b82f6;
  --neon-ink: #f5f3ff;
  --neon-muted: rgba(226, 220, 255, 0.72);
}

/* Scroll progress */
.progress {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  right: 0;
  height: 3px;
  z-index: 60;
  transform-origin: left;
  transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--v-600), #c026d3, var(--lime));
  pointer-events: none;
}

/* ---------- Liquid glass (Apple-like) ---------- */

.liquid,
.liquid-dark {
  position: relative;
  border-radius: 22px;
  isolation: isolate;
  backdrop-filter: blur(26px) saturate(190%);
  -webkit-backdrop-filter: blur(26px) saturate(190%);
}
.liquid {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.46));
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 -1px 0 rgba(255, 255, 255, 0.35),
    0 1px 2px rgba(46, 16, 101, 0.06), 0 22px 50px -18px rgba(76, 29, 149, 0.28);
}
.liquid::before,
.liquid-dark::before {
  /* specular rim */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 35%, rgba(196, 181, 253, 0.5) 70%, rgba(255, 255, 255, 0.7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}
.liquid-dark {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 30px 60px -30px rgba(0, 0, 0, 0.6);
  color: var(--neon-ink);
}
.liquid-dark::before {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 40%, rgba(192, 38, 211, 0.45) 75%, rgba(124, 58, 237, 0.5));
}
.liquid-pill {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 #fff, 0 8px 20px -12px rgba(76, 29, 149, 0.4);
}

/* Cursor spotlight */
.spot {
  --mx: 50%;
  --my: 50%;
}
.spot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(167, 139, 250, 0.22), transparent 60%);
  z-index: 0;
}
.spot:hover::after {
  opacity: 1;
}
.liquid-dark.spot::after {
  background: radial-gradient(280px circle at var(--mx) var(--my), rgba(192, 38, 211, 0.22), transparent 60%);
}
.product-card,
.metric {
  position: relative;
}
.tilt {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.25s ease, box-shadow 0.25s;
}

.grad-neon {
  background: linear-gradient(95deg, #c4b5fd, #f0abfc 50%, var(--lime));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Thematic art ---------- */

.ribbon {
  position: absolute;
  pointer-events: none;
  z-index: -1;
}
.rb-move {
  animation: rbfloat 16s ease-in-out infinite alternate;
  transform-origin: 600px 300px;
}
@keyframes rbfloat {
  from {
    transform: translate3d(-2%, 2%, 0) rotate(-3deg) scale(1);
  }
  to {
    transform: translate3d(2%, -3%, 0) rotate(3deg) scale(1.05);
  }
}
.rb-shine {
  animation: shine 6s linear infinite;
}
.rb-shine.b {
  animation-duration: 9s;
  animation-direction: reverse;
}
@keyframes shine {
  to {
    stroke-dashoffset: -2160;
  }
}
.hero-ribbon {
  left: -6%;
  right: -6%;
  width: 112%;
  bottom: -70px;
  height: 560px;
  opacity: 0.95;
}
.neon-ribbon {
  inset: auto -10% -120px -10%;
  width: 120%;
  height: 520px;
  opacity: 0.35;
  mix-blend-mode: screen;
}
.invite-ribbon {
  inset: -40px -10% auto -10%;
  width: 120%;
  height: 520px;
  opacity: 0.7;
  z-index: 0;
}

.orb {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, #fff 0 6%, rgba(255, 255, 255, 0.4) 14%, transparent 32%),
    radial-gradient(circle at 70% 75%, rgba(236, 72, 153, 0.7), transparent 50%),
    radial-gradient(circle at 40% 60%, #7c3aed, #3b0764 75%);
  box-shadow: inset -20px -30px 60px rgba(30, 11, 68, 0.6), inset 10px 14px 40px rgba(255, 255, 255, 0.35),
    0 40px 80px -30px rgba(124, 58, 237, 0.7);
  animation: floaty 9s ease-in-out infinite;
}

/* ---------- Chapter 01 hero ---------- */

.story-hero {
  padding-bottom: 96px;
}
.story-hero::before {
  height: 100%;
}
.story-hero .hero-center h1 {
  text-wrap: balance;
}
.journey {
  max-width: 980px;
  margin: 64px auto 0;
  padding: 26px;
}
.journey > * {
  position: relative;
  z-index: 2;
}
.journey-track {
  position: relative;
  height: 4px;
  border-radius: 9px;
  background: rgba(124, 58, 237, 0.12);
  margin: 4px 16% 22px;
}
.journey-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--v-600), #c026d3);
  transform-origin: left;
  transform: scaleX(calc(var(--step, 0) / 2));
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.journey-packet {
  position: absolute;
  top: 50%;
  left: calc(var(--step, 0) * 50%);
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(226, 227, 26, 0.3), 0 0 18px rgba(226, 227, 26, 0.9);
  transition: left 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.journey-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.jstep {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  padding: 12px 14px;
  border-radius: 14px;
  cursor: pointer;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 2px 10px;
  color: var(--ink);
  font: inherit;
  transition: background 0.25s, border-color 0.25s;
}
.jstep .jn {
  grid-row: span 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 600 12px/1 var(--f-mono);
  background: var(--v-100);
  color: var(--v-700);
}
.jstep b {
  font-size: 15px;
}
.jstep small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.jstep.on {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--v-200);
  box-shadow: 0 10px 24px -14px rgba(76, 29, 149, 0.45);
}
.jstep.on .jn {
  background: var(--v-700);
  color: #fff;
}
.journey-panes {
  margin-top: 16px;
  min-height: 132px;
}
.jpane {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  animation: fadeUp 0.4s ease both;
}
.crew {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.crew-m {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 4px;
  padding: 10px 6px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  animation: fadeUp 0.45s ease both;
  animation-delay: var(--d);
}
.crew-m b {
  font-size: 13.5px;
}
.crew-m small {
  font-size: 12px;
  color: var(--muted);
}
.ledger {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.ledger li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13.5px;
  animation: fadeUp 0.4s ease both;
}
.ledger li:nth-child(2) {
  animation-delay: 0.08s;
}
.ledger li:nth-child(3) {
  animation-delay: 0.16s;
}
.ledger li:nth-child(4) {
  animation-delay: 0.24s;
}
.ledger li:nth-child(5) {
  animation-delay: 0.32s;
}
.ledger li:nth-child(6) {
  animation-delay: 0.4s;
}
.ledger li span {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #334155;
}
.ledger li span .i {
  color: var(--v-600);
}
.ledger b {
  font: 600 12.5px/1 var(--f-mono);
}
.ledger b.ok {
  color: var(--ok);
}
.story-hero .metrics {
  margin-top: 28px;
}
@media (max-width: 760px) {
  .journey {
    padding: 16px;
  }
  .journey-steps {
    grid-template-columns: 1fr;
  }
  .journey-track {
    display: none;
  }
  .crew {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Connected work: orbit ---------- */

.orbit {
  position: relative;
  aspect-ratio: 1;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  border-radius: 50%;
  container-type: inline-size;
  background: radial-gradient(circle, rgba(237, 233, 254, 0.9) 0 30%, rgba(250, 245, 255, 0.5) 55%, transparent 72%);
}
.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(124, 58, 237, 0.28);
}
.orbit::before {
  inset: 22%;
}
.orbit::after {
  inset: 4%;
}
.orbit-core {
  position: absolute;
  inset: 37%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  background: linear-gradient(160deg, #1e0b44, #4c1d95);
  color: #fff;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.6), 0 20px 50px -10px rgba(76, 29, 149, 0.7), inset 0 2px 6px rgba(255, 255, 255, 0.3);
  z-index: 3;
}
.orbit-core svg {
  width: 38%;
  height: auto;
  animation: spin 24s linear infinite;
}
.orbit-core b {
  font: 800 12px/1 var(--f-brand);
  font-stretch: 125%;
  letter-spacing: 0.08em;
}
.orbit-ring {
  position: absolute;
  inset: 22%;
  animation: spin 40s linear infinite;
}
.orbit-ring.r2 {
  inset: 4%;
  animation-duration: 64s;
  animation-direction: reverse;
}
.orbit:hover .orbit-ring {
  animation-play-state: paused;
}
.orbit-item {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform: rotate(var(--a)) translateY(calc(-1 * var(--rad, 100px)));
}
.orbit-ring.r1 .orbit-item {
  --rad: 28cqw;
}
.orbit-ring.r2 .orbit-item {
  --rad: 46cqw;
}
.orbit-bub {
  position: absolute;
  left: -24px;
  top: -24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--c);
  font: 800 13px/1 var(--f-display);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.55), 0 10px 20px -10px rgba(76, 29, 149, 0.5);
  transform: rotate(calc(-1 * var(--a)));
  animation: counter 40s linear infinite;
}
.orbit-ring.r2 .orbit-bub {
  animation: counter2 64s linear infinite;
}
.orbit:hover .orbit-bub {
  animation-play-state: paused;
}
@keyframes counter {
  from {
    transform: rotate(calc(-1 * var(--a)));
  }
  to {
    transform: rotate(calc(-1 * var(--a) - 360deg));
  }
}
@keyframes counter2 {
  from {
    transform: rotate(calc(-1 * var(--a)));
  }
  to {
    transform: rotate(calc(-1 * var(--a) + 360deg));
  }
}
.orbit-bub em {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  font: 600 11.5px/1 var(--f-body);
  font-style: normal;
  color: var(--ink);
  background: #fff;
  padding: 5px 8px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 6px 14px -8px rgba(15, 23, 42, 0.4);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.orbit-bub:hover em {
  opacity: 1;
}
@media (max-width: 600px) {
  .orbit-bub {
    width: 38px;
    height: 38px;
    left: -19px;
    top: -19px;
    font-size: 11px;
  }
}

/* ---------- Chapter 02 maze ---------- */

.maze {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
  align-items: start;
}
.maze-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 18px;
}
.maze-toggle button {
  padding: 10px;
  font-size: 13px;
}
.maze-toggle button[aria-pressed="true"][data-maze-mode="without"] {
  color: var(--bad);
}
.maze-toggle button[aria-pressed="true"][data-maze-mode="with"] {
  color: var(--v-700);
}
.maze-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}
.maze-steps button {
  appearance: none;
  width: 100%;
  border: 1px solid transparent;
  background: none;
  font: inherit;
  text-align: left;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.25s;
}
.maze-steps .ms-n {
  font: 600 12px/1.5 var(--f-mono);
  color: var(--muted-2);
}
.maze-steps b {
  display: block;
  color: var(--ink);
  font-size: 15px;
}
.maze-steps small {
  font-size: 13px;
}
.maze-steps button.on {
  background: #fff;
  border-color: var(--line-2);
  box-shadow: 0 12px 24px -16px rgba(76, 29, 149, 0.4);
}
.maze-steps button.on .ms-n {
  color: var(--v-700);
}
.maze-main {
  min-width: 0;
}
.maze-board {
  position: relative;
  height: 340px;
  border-radius: 22px;
  background: radial-gradient(60% 70% at 50% 50%, rgba(237, 233, 254, 0.8), transparent 70%), #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  background-image: radial-gradient(rgba(46, 16, 101, 0.08) 1px, transparent 1px);
  background-size: 18px 18px;
}
.maze-board > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.5s;
}
.maze-tangle path {
  fill: none;
  stroke: rgba(220, 38, 38, 0.45);
  stroke-width: 0.5;
  stroke-dasharray: 2 1.5;
  vector-effect: non-scaling-stroke;
  stroke-width: 1.6px;
  animation: dash 12s linear infinite;
}
.maze-tangle path.t2 {
  stroke: rgba(100, 116, 139, 0.4);
}
@keyframes dash {
  to {
    stroke-dashoffset: -60;
  }
}
.maze-straight {
  opacity: 0;
}
.maze-straight path {
  fill: none;
  stroke: var(--v-500);
  vector-effect: non-scaling-stroke;
  stroke-width: 2.5px;
  stroke-dasharray: 6 6;
  animation: dash 3s linear infinite;
}
.mz-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transition: left 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), top 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s, transform 0.3s;
  z-index: 2;
}
.mz-node .app {
  box-shadow: 0 8px 18px -12px rgba(15, 23, 42, 0.5);
  transition: box-shadow 0.3s, border-color 0.3s;
}
.maze.has-hl .mz-node {
  opacity: 0.4;
}
.maze.has-hl .mz-node.hl {
  opacity: 1;
  transform: scale(1.06);
}
.mz-node.hl .app {
  border-color: var(--v-400);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.16), 0 10px 22px -12px rgba(109, 40, 217, 0.6);
}
.maze:not(.with) .mz-node.owner .app {
  animation: wobble 2.4s ease-in-out infinite;
}
@keyframes wobble {
  0%,
  100% {
    transform: rotate(0);
  }
  10% {
    transform: rotate(-3deg);
  }
  20% {
    transform: rotate(3deg);
  }
  30% {
    transform: rotate(0);
  }
}
.mz-core,
.mz-out {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  transition: all 0.5s 0.2s;
  z-index: 3;
}
.mz-core {
  left: 52%;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  background: linear-gradient(160deg, #1e0b44, #5b21b6);
  color: #fff;
  font: 800 10px/1 var(--f-brand);
  font-stretch: 125%;
  letter-spacing: 0.08em;
  gap: 4px;
  box-shadow: 0 0 0 8px rgba(139, 92, 246, 0.15), 0 0 40px rgba(139, 92, 246, 0.5);
}
.mz-core svg {
  width: 30px;
  height: 30px;
  animation: spin 20s linear infinite;
}
.mz-out {
  left: 86%;
}
.maze.with .maze-tangle {
  opacity: 0;
}
.maze.with .maze-straight,
.maze.with .mz-core,
.maze.with .mz-out {
  opacity: 1;
}
.maze.with .mz-core,
.maze.with .mz-out {
  transform: translate(-50%, -50%) scale(1);
}
.maze.with .mz-node {
  left: 4%;
  top: var(--wy);
}
.maze.with .mz-node.owner {
  left: 64%;
  top: 80%;
}
.maze-panes {
  margin-top: 18px;
}
.maze-pane {
  animation: fadeUp 0.35s ease both;
}
.maze-pane h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}
.wv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.wv > div {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14.5px;
  transition: opacity 0.3s, transform 0.3s, box-shadow 0.3s;
}
.wv p {
  margin-top: 10px;
  color: #334155;
}
.maze:not(.with) .wv-i,
.maze.with .wv-w {
  opacity: 0.5;
}
.maze.with .wv-i {
  border-color: var(--v-300);
  box-shadow: 0 14px 30px -18px rgba(109, 40, 217, 0.5);
  transform: translateY(-2px);
}
.maze:not(.with) .wv-w {
  border-color: #fecaca;
}
.maze-coda {
  margin: 40px auto 0;
  max-width: 720px;
  text-align: center;
  font: 600 clamp(1.1rem, 1.6vw, 1.35rem) / 1.45 var(--f-display);
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}
@media (max-width: 980px) {
  .maze {
    grid-template-columns: 1fr;
  }
  .maze-steps {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .maze-steps {
    grid-template-columns: 1fr;
  }
  .maze-board {
    height: 300px;
  }
  .mz-node .app {
    font-size: 11px;
    padding: 5px 8px 5px 5px;
  }
  .mz-node .app i {
    width: 18px;
    height: 18px;
    line-height: 18px;
    font-size: 9px;
  }
  .wv {
    grid-template-columns: 1fr;
  }
  .mz-out {
    left: 80%;
  }
  .maze .mz-node.owner,
  .maze.with .mz-node.owner {
    left: 40%;
  }
}

/* ---------- Neon chapters ---------- */

.section.neon {
  background: radial-gradient(50% 50% at 15% 0%, rgba(124, 58, 237, 0.45), transparent 60%),
    radial-gradient(45% 50% at 95% 30%, rgba(192, 38, 211, 0.28), transparent 60%),
    radial-gradient(60% 60% at 50% 110%, rgba(59, 130, 246, 0.25), transparent 60%), var(--neon-bg);
  color: var(--neon-ink);
  overflow: hidden;
  isolation: isolate;
}
.section.neon::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent);
}
.section.neon h2,
.section.neon h3 {
  color: #fff;
}
.section.neon .lead,
.section.neon p {
  color: var(--neon-muted);
}
.section.neon .overline {
  color: #c4b5fd;
}
.section.neon .mono-label {
  color: #c4b5fd;
}

/* ---------- Chapter 03 handoff ---------- */

.handoff {
  position: relative;
}
.ho-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 40px;
}
.ho-track::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 19px;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
}
.ho-fill {
  position: absolute;
  left: 10%;
  top: 19px;
  height: 2px;
  width: calc(80% * var(--step, 0) / 4);
  background: linear-gradient(90deg, #a78bfa, #f0abfc, var(--lime));
  box-shadow: 0 0 12px rgba(240, 171, 252, 0.8);
  transition: width 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ho-stop {
  appearance: none;
  background: none;
  border: 0;
  cursor: pointer;
  display: grid;
  justify-items: center;
  gap: 10px;
  color: var(--neon-muted);
  font: 600 13.5px/1.3 var(--f-body);
  position: relative;
  z-index: 1;
  text-align: center;
}
.ho-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 600 13px/1 var(--f-mono);
  background: #160a2e;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  transition: all 0.3s;
}
.ho-stop.done .ho-dot {
  background: #4c1d95;
  border-color: #a78bfa;
}
.ho-stop.on {
  color: #fff;
}
.ho-stop.on .ho-dot {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
  box-shadow: 0 0 0 6px rgba(226, 227, 26, 0.18), 0 0 26px rgba(226, 227, 26, 0.7);
}
.ho-pane {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  animation: fadeUp 0.45s ease both;
}
.ho-pane[hidden] {
  display: none;
}
.ho-copy h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  margin: 14px 0 14px;
  letter-spacing: -0.03em;
  line-height: 1.12;
}
.ho-copy p {
  font-size: 1.05rem;
}
.ho-out {
  margin-top: 24px;
  display: inline-flex;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(226, 227, 26, 0.1);
  border: 1px solid rgba(226, 227, 26, 0.35);
  color: #fff;
  font-weight: 600;
}
.ho-out span {
  font: 600 11px/1 var(--f-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
}
.ho-visual {
  min-width: 0;
}
.ho-visual .win {
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 40px 80px -30px rgba(124, 58, 237, 0.8), 0 0 60px -20px rgba(192, 38, 211, 0.6);
}
.ho-visual .win p {
  color: inherit;
}
.goalgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.gg {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
}
.gg span {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 6px;
  align-items: center;
}
.gg b {
  font-size: 13.5px;
}
.dod {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
  font-size: 13.5px;
}
.dod li {
  display: flex;
  gap: 8px;
  align-items: center;
}
.dod .i {
  color: var(--ok);
}
.ctx-run {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  position: relative;
}
.ctx-run li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: #334155;
  animation: fadeUp 0.45s ease both;
  animation-delay: var(--d);
}
.ctx-run li .app {
  min-width: 132px;
}
.receipt-line {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--lime-soft);
  font-size: 13px;
  color: #3f4000;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.crew-tree {
  display: grid;
  gap: 14px;
}
.ct-lead,
.ct-kid {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13.5px;
}
.ct-lead {
  border-color: var(--v-300);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}
.ct-lead small,
.ct-kid small {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
}
.ct-kids {
  display: grid;
  gap: 8px;
  padding-left: 22px;
  border-left: 2px dashed var(--v-200);
  margin-left: 14px;
}
.ct-kid {
  animation: fadeUp 0.45s ease both;
  animation-delay: var(--d);
}
.ct-kid > div {
  flex: 1;
}
.ab {
  display: inline-block;
  border-radius: 6px;
  background: var(--c);
  color: #fff;
  font: 700 10px var(--f-display);
  font-style: normal;
  text-align: center;
  flex: none;
}
.pipe {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  position: relative;
}
.pipe-s {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 3px;
  padding: 10px 4px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 12.5px;
  animation: pulseIn 2s ease both;
  animation-delay: var(--d);
}
@keyframes pulseIn {
  0% {
    opacity: 0.35;
  }
  40% {
    opacity: 1;
    border-color: var(--v-400);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
  }
  100% {
    opacity: 1;
  }
}
.pipe-s small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}
.ps-i {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--v-100);
  color: var(--v-700);
}
.finish {
  margin: 56px auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  font: 700 clamp(1.2rem, 2vw, 1.6rem) / 1.3 var(--f-display);
  letter-spacing: -0.02em;
  color: #fff !important;
  text-align: center;
}
.finish svg {
  width: 30px;
  height: 30px;
  flex: none;
  animation: spin 18s linear infinite;
}
@media (max-width: 900px) {
  .ho-pane {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .ho-l {
    font-size: 11.5px;
  }
}
@media (max-width: 560px) {
  .ho-l {
    display: none;
  }
  .ho-track {
    margin-bottom: 28px;
  }
  .pipe {
    grid-template-columns: repeat(3, 1fr);
  }
  .goalgrid {
    grid-template-columns: 1fr;
  }
  .ctx-run li .app {
    min-width: 0;
  }
}

/* ---------- Insiro Platform diagram ---------- */

.platform-sec {
  background: var(--bg-alt);
}
.plat {
  border-radius: 28px;
  padding: 44px 40px 36px;
  background: radial-gradient(60% 50% at 50% 0%, rgba(124, 58, 237, 0.35), transparent 70%), #17112a;
  color: #fff;
  box-shadow: 0 40px 80px -40px rgba(46, 16, 101, 0.7);
  position: relative;
  overflow: hidden;
}
.plat-top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.pcard {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  position: relative;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.pcard:hover,
.pcard:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(167, 139, 250, 0.6);
  transform: translateY(-2px);
}
.pcard::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.22);
}
.pc-i {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex: none;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--v-500), #4f46e5);
  box-shadow: 0 8px 18px -8px rgba(124, 58, 237, 0.9);
}
.pc-i .i {
  width: 20px;
  height: 20px;
}
.pcard b {
  display: block;
  font-size: 14.5px;
}
.pcard small {
  color: rgba(226, 220, 255, 0.65);
  font-size: 12.5px;
}
.plat-bus {
  height: 22px;
  margin: 22px 12.5% 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  position: relative;
}
.plat-bus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.22);
}
.plat-core {
  margin-top: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 10px;
  display: grid;
  gap: 10px;
}
.layer {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  padding: 16px 20px;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  transition: opacity 0.3s, background 0.3s, box-shadow 0.3s;
}
.ly-t b {
  display: block;
  font-size: 15px;
}
.ly-t small {
  color: rgba(226, 220, 255, 0.65);
  font-size: 13px;
}
.ly-r {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  color: rgba(226, 220, 255, 0.78);
  font-size: 13.5px;
}
.ly-r i {
  font-style: normal;
  opacity: 0.5;
}
.models {
  display: inline-flex;
  gap: 6px;
  margin-left: 6px;
}
.models em {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  display: grid;
  place-items: center;
  font: 700 11px/1 var(--f-display);
  font-style: normal;
}
.layer.ctx {
  display: block;
}
.cg {
  width: 100%;
  max-width: 760px;
  display: block;
  margin: 6px auto 0;
  height: auto;
}
.cg-lines path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.28);
  stroke-dasharray: 3 4;
}
.cg-c {
  fill: rgba(79, 70, 229, 0.28);
  stroke: #6366f1;
  stroke-width: 1.5;
}
.cg-ct {
  fill: #fff;
  font: 500 12.5px var(--f-body);
}
.cg-pill rect {
  fill: rgba(23, 17, 42, 0.9);
  stroke: rgba(255, 255, 255, 0.3);
}
.cg-pill text {
  fill: #fff;
  font: 500 11.5px var(--f-body);
}
.cg-dot {
  fill: #a5b4fc;
  filter: drop-shadow(0 0 4px #818cf8);
}
.cg-chips {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.cg-chips span {
  font-size: 12.5px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.layer.gov {
  border-top: 1px solid rgba(74, 222, 128, 0.6);
  background: linear-gradient(180deg, rgba(74, 222, 128, 0.1), rgba(255, 255, 255, 0.03) 60%);
}
.plat.focus .layer {
  opacity: 0.35;
}
.plat.focus .layer.lit {
  opacity: 1;
  background-color: rgba(124, 58, 237, 0.16);
  box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.55);
}
.plat-apps {
  margin-top: 44px;
  display: flex;
  justify-content: space-between;
  gap: 6px;
  position: relative;
  padding-top: 22px;
}
.plat-apps::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}
.plat-apps::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -22px;
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.22);
}
.pa {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #241b3d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font: 700 11px/1 var(--f-display);
  position: relative;
  box-shadow: inset 0 0 0 2px var(--c);
  animation: blink 4s ease-in-out infinite;
  animation-delay: var(--d);
}
@keyframes blink {
  0%,
  80%,
  100% {
    box-shadow: inset 0 0 0 2px var(--c);
  }
  88% {
    box-shadow: inset 0 0 0 2px var(--c), 0 0 16px var(--c);
  }
}
@media (max-width: 1000px) {
  .plat-apps .pa:nth-child(n + 15) {
    display: none;
  }
}
@media (max-width: 900px) {
  .plat {
    padding: 28px 18px;
  }
  .plat-top {
    grid-template-columns: 1fr 1fr;
  }
  .pcard::after,
  .plat-bus {
    display: none;
  }
  .plat-core {
    margin-top: 16px;
  }
  .plat-apps .pa:nth-child(n + 11) {
    display: none;
  }
}
@media (max-width: 560px) {
  .plat-top {
    grid-template-columns: 1fr;
  }
  .cg {
    display: none;
  }
  .cg-chips {
    display: flex;
  }
  .plat-apps .pa:nth-child(n + 7) {
    display: none;
  }
}

/* ---------- Industries ---------- */

.ind-tabs {
  justify-content: flex-start;
  margin: 0 0 28px;
}
.ind-panel {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
}
.ind-panel[hidden] {
  display: none;
}
.ind-copy h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin-bottom: 12px;
}
.ind-j {
  list-style: none;
  counter-reset: j;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 10px;
}
.ind-j li {
  counter-increment: j;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  font-size: 15px;
  color: #334155;
}
.ind-j li::before {
  content: counter(j);
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font: 600 12px/1 var(--f-mono);
  background: var(--v-100);
  color: var(--v-700);
}
.ind-stage {
  padding: 32px;
}
.ind-card {
  padding: 26px;
}
.ind-card > * {
  position: relative;
  z-index: 2;
}
.ind-q {
  margin-top: 10px;
  font: 600 1.15rem/1.45 var(--f-display);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.chain-node {
  animation: chainPulse 3.2s ease-in-out infinite;
  animation-delay: var(--d);
  border-radius: 10px;
}
@keyframes chainPulse {
  0%,
  70%,
  100% {
    box-shadow: none;
  }
  15% {
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.25);
  }
}
.chain-arrow {
  width: 18px;
  height: 2px;
  background: linear-gradient(90deg, var(--v-300), var(--v-600));
  position: relative;
}
.chain-arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -3px;
  border: 4px solid transparent;
  border-left: 5px solid var(--v-600);
  border-right: 0;
}
@media (max-width: 900px) {
  .ind-panel {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .ind-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .ind-tabs button {
    white-space: nowrap;
  }
  .ind-stage {
    padding: 16px;
  }
}

/* ---------- A day with Insiro ---------- */

.section.day {
  overflow: hidden;
  isolation: isolate;
}
.sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  transition: background 1.2s ease;
  background: linear-gradient(180deg, #fdf4ff, #ede9fe 55%, #fff);
}
.day[data-active="0"] .sky {
  background: linear-gradient(180deg, #fff7ed, #fce7f3 45%, #ede9fe 80%, #fff);
}
.day[data-active="1"] .sky {
  background: linear-gradient(180deg, #e0f2fe, #ede9fe 50%, #fff);
}
.day[data-active="2"] .sky {
  background: linear-gradient(180deg, #dbeafe, #e0e7ff 50%, #fff);
}
.day[data-active="3"] .sky {
  background: linear-gradient(180deg, #4c1d95, #9d174d 40%, #fbcfe8 75%, #fff);
}
.sun {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  left: calc(10% + var(--step, 0) * 26%);
  top: calc(140px - var(--arc, 0px));
  background: radial-gradient(circle, #fffbeb, #fde68a 45%, rgba(253, 224, 71, 0) 70%);
  filter: blur(2px);
  transition: left 1.2s ease, top 1.2s ease, opacity 1.2s;
  opacity: 0.9;
}
.day[data-active="1"] .sun,
.day[data-active="2"] .sun {
  --arc: 80px;
}
.day[data-active="3"] .sun {
  background: radial-gradient(circle, #fff7ed, #fb923c 45%, rgba(251, 146, 60, 0) 70%);
}
.day[data-active="3"] .section-head h2 {
  color: #fff;
}
.day[data-active="3"] .section-head .lead,
.day[data-active="3"] .section-head .overline {
  color: rgba(255, 255, 255, 0.85);
}
.day-line {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 860px;
  margin: 0 auto 32px;
}
.day-line::before {
  content: "";
  position: absolute;
  left: 12.5%;
  right: 12.5%;
  top: 22px;
  height: 2px;
  background: rgba(15, 23, 42, 0.12);
}
.day-fill {
  position: absolute;
  left: 12.5%;
  top: 22px;
  height: 2px;
  width: calc(75% * var(--step, 0) / 3);
  background: linear-gradient(90deg, #f59e0b, var(--v-600));
  transition: width 0.8s ease;
}
.day-stop {
  appearance: none;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  justify-items: center;
  gap: 8px;
  font: inherit;
  position: relative;
  z-index: 1;
}
.day-stop time {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line-2);
  font: 600 11.5px/1 var(--f-mono);
  color: var(--ink);
  transition: all 0.3s;
  backdrop-filter: blur(8px);
}
.day-stop span {
  font: 600 12px/1 var(--f-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.day-stop.on time {
  background: var(--ink);
  color: var(--lime);
  border-color: var(--ink);
  transform: scale(1.12);
  box-shadow: 0 10px 24px -10px rgba(15, 23, 42, 0.6);
}
.day-stop.on span {
  color: var(--ink);
}
.day[data-active="3"] .day-stop span {
  color: rgba(255, 255, 255, 0.8);
}
.day-panes {
  max-width: 920px;
  margin: 0 auto;
}
.day-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  padding: 30px;
  animation: fadeUp 0.45s ease both;
}
.day-card > * {
  position: relative;
  z-index: 2;
}
.dc-time {
  display: grid;
  gap: 10px;
  align-content: start;
}
.dc-time time {
  font: 700 2.6rem/1 var(--f-display);
  letter-spacing: -0.04em;
}
.dc-time .tag {
  justify-self: start;
}
.dc-body h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.dc-meta {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 18px;
  margin: 22px 0 0;
}
.dc-meta dt {
  font: 600 11px/1 var(--f-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.dc-meta dd {
  margin: 0;
  font-size: 14px;
}
@media (max-width: 760px) {
  .day-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 22px;
  }
  .dc-time {
    grid-auto-flow: column;
    justify-content: start;
    align-items: center;
  }
  .dc-time time {
    font-size: 2rem;
  }
  .dc-meta {
    grid-template-columns: 1fr;
  }
  .sun {
    width: 120px;
    height: 120px;
  }
}

/* ---------- Buying group ---------- */

.roles {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  align-items: start;
}
.roles-list {
  display: grid;
  gap: 6px;
}
.roles-list button {
  appearance: none;
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid transparent;
  background: none;
  padding: 14px 16px;
  border-radius: 14px;
  cursor: pointer;
  font: 600 15px/1.2 var(--f-body);
  color: var(--muted);
  text-align: left;
  transition: all 0.2s;
}
.roles-list button .i {
  width: 20px;
  height: 20px;
}
.roles-list button[aria-selected="true"] {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-2);
  box-shadow: 0 12px 24px -16px rgba(76, 29, 149, 0.45);
}
.roles-list button[aria-selected="true"] .i {
  color: var(--v-700);
}
.role-panel {
  padding: 40px;
  min-height: 300px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.9), rgba(245, 243, 255, 0.7)),
    radial-gradient(60% 80% at 100% 0%, rgba(192, 38, 211, 0.15), transparent);
}
.role-panel > * {
  position: relative;
  z-index: 2;
}
.role-ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--lime);
}
.role-ico .i {
  width: 22px;
  height: 22px;
}
.role-panel blockquote {
  margin: 22px 0 0;
  font: 700 clamp(1.4rem, 2.4vw, 2rem) / 1.25 var(--f-display);
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
}
@media (max-width: 860px) {
  .roles {
    grid-template-columns: 1fr;
  }
  .roles-list {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .role-panel {
    padding: 26px;
  }
}

/* ---------- Practical trust ---------- */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.tcard {
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.tcard > * {
  position: relative;
  z-index: 2;
}
.tc-n {
  font: 600 12px/1 var(--f-mono);
  color: var(--lime);
}
.tcard h3 {
  font-size: 1.15rem;
  margin: 14px 0 8px;
}
.tcard > p {
  font-size: 14px;
}
.tc-ui {
  margin-top: auto;
  padding-top: 20px;
  font-size: 13.5px;
  color: var(--neon-ink);
}
.ceil {
  appearance: none;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 5px 9px 5px 5px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.55);
  font: 500 12px/1 var(--f-body);
  cursor: pointer;
  transition: all 0.2s;
}
.ceil i {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font: 700 9px/18px var(--f-display);
  font-style: normal;
  text-align: center;
}
.ceil[aria-pressed="true"] {
  color: #fff;
  border-color: rgba(167, 139, 250, 0.7);
  background: rgba(124, 58, 237, 0.25);
}
.ceil[aria-pressed="true"] i {
  background: var(--c);
}
.tc-status {
  margin-top: 12px;
  font-size: 13px;
}
.tc-status b {
  color: #fff;
}
.appr {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.appr b {
  font: 600 12.5px var(--f-mono);
}
.appr small {
  display: block;
  margin-top: 6px;
  color: var(--neon-muted);
}
.ghost-dark {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}
.ghost-dark:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}
.appr .btn[disabled] {
  opacity: 0.4;
  cursor: default;
}
[data-budget] label {
  font-size: 13px;
  margin-bottom: 8px;
}
[data-budget] input[type="range"] {
  width: 100%;
  accent-color: var(--lime);
}
.cap-bar {
  height: 8px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin-top: 10px;
}
.cap-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--v-500), #c026d3);
  border-radius: inherit;
  transition: width 0.3s, background 0.3s;
}
.cap-bar i.over {
  background: linear-gradient(90deg, #f97316, var(--bad));
}
.replay {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: grid;
  gap: 6px;
  font: 12px/1.4 var(--f-mono);
}
.replay li {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 7px 9px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: opacity 0.3s, transform 0.3s, border-color 0.3s;
}
.replay.playing li {
  opacity: 0.25;
}
.replay li.lit {
  opacity: 1 !important;
  border-color: rgba(226, 227, 26, 0.6);
}
@media (max-width: 1080px) {
  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Invitation ---------- */

.invite {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 32px;
  background: radial-gradient(60% 70% at 50% 120%, rgba(226, 227, 26, 0.25), transparent 60%), linear-gradient(160deg, #13072b, #2e1065 60%, #4a044e);
  color: #fff;
  text-align: center;
  padding: 88px 32px;
}
.invite-in {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}
.invite h2 {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: -0.04em;
  margin-top: 22px;
}
.invite .lead {
  color: rgba(237, 233, 254, 0.85);
  max-width: 620px;
  margin: 18px auto 0;
}
.invite .liquid-pill {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  box-shadow: none;
}
.inv-steps {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  text-align: left;
}
.inv-steps li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 14.5px;
  font-weight: 500;
  transition: transform 0.25s, background 0.25s;
}
.inv-steps li:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
}
.inv-steps li span {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 600 12px/1 var(--f-mono);
  background: var(--lime);
  color: var(--ink);
}
@media (max-width: 760px) {
  .inv-steps {
    grid-template-columns: 1fr;
  }
  .invite {
    padding: 56px 18px;
  }
}

/* ---------- Agent Harness: auto routing ---------- */

.router {
  display: grid;
  grid-template-columns: 1fr 190px 1fr;
  gap: 18px;
  padding: 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--sh-float);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.rt-col {
  display: grid;
  gap: 8px;
  align-content: center;
}
.rq {
  appearance: none;
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font: 500 13px/1.35 var(--f-body);
  color: var(--ink);
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}
.rq::after {
  content: "";
  position: absolute;
  right: -18px;
  top: 50%;
  width: 16px;
  border-top: 2px dashed var(--line-2);
}
.rq[aria-pressed="true"] {
  border-color: var(--v-400);
  background: var(--v-50);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}
.rq[aria-pressed="true"]::after {
  border-color: var(--v-500);
}
.rt-mid {
  border-radius: 16px;
  background: #f4f2fa;
  background-image: radial-gradient(rgba(46, 16, 101, 0.1) 1px, transparent 1px);
  background-size: 12px 12px;
  padding: 14px 12px;
  justify-items: start;
  border: 1px solid var(--line);
}
.rt-title {
  font: 600 13.5px/1 var(--f-body);
  justify-self: center;
  margin-bottom: 4px;
}
.rf {
  font-size: 12.5px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line-2);
  transition: all 0.25s;
}
.rf.on {
  background: var(--v-700);
  color: #fff;
  border-color: var(--v-700);
  box-shadow: 0 6px 14px -6px rgba(109, 40, 217, 0.7);
}
.rt-mc {
  justify-self: stretch;
  text-align: center;
  margin-top: 6px;
  font: 600 12.5px/1 var(--f-body);
  padding: 9px;
  border-radius: 999px;
  border: 1px solid var(--v-400);
  background: #fff;
  color: var(--v-800);
}
.rm {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13.5px;
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--muted);
  position: relative;
  transition: all 0.25s;
}
.rm::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 50%;
  width: 16px;
  border-top: 2px dashed var(--line-2);
}
.rm i {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e2e8f0;
  color: var(--ink);
  font: 700 11px/1 var(--f-display);
  font-style: normal;
}
.rm.on {
  color: var(--ink);
  font-weight: 600;
  background: #fff;
  box-shadow: 0 0 0 1px var(--v-300), 0 10px 20px -12px rgba(109, 40, 217, 0.6);
}
.rm.on i {
  background: var(--v-700);
  color: #fff;
}
.rm.on::before {
  border-color: var(--v-500);
}
.rt-foot {
  grid-column: 1 / -1;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.rt-out {
  font-size: 13.5px;
  color: #334155;
}
.rt-out b {
  color: var(--v-700);
}
@media (max-width: 720px) {
  .router {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .rq::after,
  .rm::before {
    display: none;
  }
  .rt-mid {
    grid-auto-flow: row;
    display: flex;
    flex-wrap: wrap;
  }
  .rt-title,
  .rt-mc {
    width: 100%;
  }
  .rt-models {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Agent Harness: context graph ---------- */

.cgraph {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-float);
}
.cg-chat {
  padding: 22px;
  border-right: 1px solid var(--line);
  font-size: 14px;
  color: #334155;
}
.cg-ans {
  margin-top: 16px;
}
.cg-ans ul {
  padding-left: 18px;
  margin: 10px 0 0;
  display: grid;
  gap: 8px;
}
.ent {
  font-weight: 600;
  color: var(--ink);
  border-bottom: 2px solid var(--v-200);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  border-radius: 3px;
}
.ent:hover,
.ent:focus-visible,
.ent.on {
  background: var(--v-100);
  border-color: var(--v-600);
  outline: none;
}
.cg-svg {
  width: 100%;
  height: auto;
  display: block;
  background: radial-gradient(60% 60% at 50% 50%, rgba(237, 233, 254, 0.7), transparent);
}
.cg-edges line {
  stroke: #c7d2fe;
  stroke-width: 1.6;
  transition: stroke 0.25s, stroke-width 0.25s, opacity 0.25s;
}
.cg-n {
  cursor: pointer;
  outline: none;
}
.cg-n circle {
  transition: r 0.25s, filter 0.25s;
  stroke: #fff;
  stroke-width: 2;
}
.cg-n text {
  font: 500 11.5px var(--f-body);
  fill: #334155;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 3px;
}
.t-p circle {
  fill: #c084fc;
}
.t-x circle {
  fill: #fb923c;
}
.t-d circle {
  fill: #4f46e5;
}
.t-c circle {
  fill: #a8a29e;
}
.t-t circle {
  fill: #2563eb;
}
.cgraph.hov .cg-edges line {
  opacity: 0.25;
}
.cgraph.hov .cg-edges line.on {
  opacity: 1;
  stroke: var(--v-600);
  stroke-width: 2.6;
}
.cgraph.hov .cg-n {
  opacity: 0.45;
}
.cgraph.hov .cg-n.on {
  opacity: 1;
}
.cg-n.on circle {
  filter: drop-shadow(0 0 6px rgba(124, 58, 237, 0.7));
}
.cg-n.on text {
  font-weight: 700;
  fill: var(--ink);
}
.cg-legend {
  grid-column: 1 / -1;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 22px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}
.lgd::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: 0;
}
.lgd.p::before {
  background: #c084fc;
}
.lgd.x::before {
  background: #fb923c;
}
.lgd.d::before {
  background: #4f46e5;
}
.lgd.c::before {
  background: #a8a29e;
}
.lgd.t::before {
  background: #2563eb;
}
@media (max-width: 860px) {
  .cgraph {
    grid-template-columns: 1fr;
  }
  .cg-chat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

/* Stepper/tab shared states */
[data-step-pane] {
  min-width: 0;
}

/* ---------- Real logos ---------- */

.lg {
  display: inline-block;
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: none;
}
.app .lg {
  width: 20px;
  height: 20px;
}
.apps-row .lg {
  width: 18px;
  height: 18px;
}
.orbit-bub .lg {
  width: 26px;
  height: 26px;
}
.orbit-bub {
  background: #fff;
}
.pa {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}
.pa .lg {
  width: 20px;
  height: 20px;
}
@keyframes blink {
  0%,
  80%,
  100% {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
  }
  88% {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12), 0 0 18px rgba(196, 181, 253, 0.9);
  }
}
.bubble .lg {
  width: 36px;
  height: 36px;
}
.models em .lg,
.models em svg {
  width: 16px;
  height: 16px;
}
.rm i {
  background: #fff;
  border: 1px solid var(--line);
}
.rm i .lg,
.rm i svg {
  width: 15px;
  height: 15px;
}
.rm.on i {
  background: #fff;
  border-color: var(--v-400);
}
.ceil .lg {
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 5px;
  padding: 2px;
  opacity: 0.55;
  transition: opacity 0.2s;
}
.ceil[aria-pressed="true"] .lg {
  opacity: 1;
}
.db-tag .lg {
  width: 16px;
  height: 16px;
}
@media (max-width: 600px) {
  .orbit-bub .lg {
    width: 20px;
    height: 20px;
  }
  .bubble .lg {
    width: 26px;
    height: 26px;
  }
}

/* Logo marquee */
.logo-marquee .marquee-track {
  gap: 12px;
  animation-duration: 70s;
}
.mq-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  font: 600 14px/1 var(--f-body);
  color: var(--ink);
  white-space: nowrap;
  box-shadow: 0 6px 16px -12px rgba(46, 16, 101, 0.35);
}

/* Connector catalog */
.cat-bar {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.cat-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: #fff;
  min-width: 260px;
  flex: 1 1 260px;
  max-width: 360px;
  color: var(--muted);
}
.cat-search input {
  border: 0;
  outline: 0;
  font: 15px var(--f-body);
  width: 100%;
  background: transparent;
  color: var(--ink);
}
.cat-search:focus-within {
  border-color: var(--v-500);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
}
.cat-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.cat-chips button {
  border: 1px solid var(--line-2);
  background: #fff;
  border-radius: 999px;
  padding: 9px 14px;
  font: 600 13px/1 var(--f-body);
  color: var(--muted);
  cursor: pointer;
}
.cat-chips button[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}
.ctile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 18px 16px;
  display: grid;
  gap: 4px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.ctile:hover {
  border-color: var(--v-300);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -18px rgba(76, 29, 149, 0.45);
}
.ct-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.lg.big {
  width: 32px;
  height: 32px;
}
.ct-caps {
  display: flex;
  gap: 6px;
  color: var(--muted-2);
}
.ct-caps .i {
  width: 14px;
  height: 14px;
}
.ctile b {
  font-size: 15px;
}
.ctile small {
  color: var(--muted);
  font-size: 12px;
}
.cat-empty {
  text-align: center;
  color: var(--muted);
  padding: 24px;
}
@media (max-width: 560px) {
  .cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cat-search {
    max-width: none;
  }
}

/* Ribbons run edge to edge and fade out instead of ending on a hard line */
.ribbon {
  overflow: visible;
}
.hero-ribbon {
  left: 0;
  right: 0;
  width: 100%;
  bottom: -40px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 72%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 72%, transparent 100%);
}
.neon-ribbon,
.invite-ribbon {
  left: 0;
  right: 0;
  width: 100%;
}

/* ==========================================================================
   Story layer, wave 2: live journey, dual maze, telemetry, demos, ecosystem,
   data connectors
   ========================================================================== */

/* Staggered entrance that replays each time a pane becomes active */
.is-live .seq > *,
.is-live .ledger li,
.is-live .crew-m {
  animation: fadeUp 0.45s ease both;
}
.is-live .seq > *:nth-child(2) {
  animation-delay: 0.1s;
}
.is-live .seq > *:nth-child(3) {
  animation-delay: 0.2s;
}
.is-live .seq > *:nth-child(4) {
  animation-delay: 0.3s;
}
.is-live .seq > *:nth-child(5) {
  animation-delay: 0.4s;
}
[data-typein].typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -2px;
  background: var(--v-600);
  animation: pulse 0.8s infinite;
}

/* Step progress bars (journey, maze, demos) */
.jstep,
.maze-steps button,
.demo-item {
  position: relative;
  overflow: hidden;
}
.jbar,
.sbar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: rgba(124, 58, 237, 0.1);
  overflow: hidden;
  opacity: 0;
}
.jbar i,
.sbar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--v-600), #c026d3);
  transform-origin: left;
  transform: scaleX(0);
}
.on > .jbar,
.on > .sbar {
  opacity: 1;
}
.on > .jbar i,
.on > .sbar i {
  animation: swprog var(--dur, 5s) linear forwards;
}

/* ---------- Live journey ---------- */

.ledger b {
  white-space: nowrap;
}

.journey-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.live-pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font: 600 12px/1 var(--f-mono);
  letter-spacing: 0.04em;
  color: var(--ok);
  background: var(--ok-bg);
  border: 1px solid #a7f3d0;
  padding: 6px 10px;
  border-radius: 999px;
}
.jh-hint {
  font-size: 13px;
}
.jstep {
  padding-bottom: 16px;
}
.jstep:hover {
  background: rgba(255, 255, 255, 0.6);
}
.who .lg,
.who .ab {
  vertical-align: -3px;
  margin-right: 4px;
}
.crew-m small {
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.crew-m small .lg {
  width: 14px;
  height: 14px;
}
.crew-st {
  font: 600 11px/1 var(--f-mono);
  color: var(--ok);
  display: inline-flex;
  gap: 5px;
  align-items: center;
  margin-top: 4px;
}

/* ---------- Dual maze ---------- */

.maze.dual {
  grid-template-columns: 300px 1fr;
}
.maze-boards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.maze-board {
  height: 360px;
}
.maze-board .mb-label {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
}
.maze-board .mb-stats {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}
.mb-stats span {
  padding: 6px 4px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
}
.mb-stats b {
  display: block;
  font: 700 14px/1.2 var(--f-display);
  color: var(--ink);
}
.maze-board.without .mb-stats b {
  color: var(--bad);
}
.maze-board.with .mb-stats b {
  color: var(--v-700);
}
.maze-board.without {
  background-color: #fffafa;
}
.maze-board.with {
  background-color: #fcfbff;
}
.maze-board .mz-node {
  top: calc(var(--y) * 0.78 + 8%);
}
.maze-board.with .mz-node {
  left: 3%;
  top: calc(var(--wy) * 0.78 + 8%);
}
.maze-board.with .maze-tangle {
  opacity: 0;
}
.maze-board.with .maze-straight,
.maze-board.with .mz-core,
.maze-board.with .mz-out {
  opacity: 1;
}
.maze-board.with .mz-core,
.maze-board.with .mz-out {
  transform: translate(-50%, -50%) scale(1);
}
.maze-board.with .mz-core {
  left: 58%;
  top: 46%;
  width: 70px;
  height: 70px;
}
.maze-board.with .mz-out {
  left: 84%;
  top: 46%;
}
.maze-board .maze-straight path {
  stroke-width: 1.4px;
  stroke-dasharray: 4 5;
  opacity: 0.7;
}
.maze-board .maze-straight path.main {
  stroke-width: 2.5px;
  opacity: 1;
}
.maze-board.without .mz-node .app {
  animation: jitter 3.2s ease-in-out infinite;
}
.maze-board.without .mz-node:nth-child(odd) .app {
  animation-delay: -1.4s;
}
@keyframes jitter {
  0%,
  100% {
    transform: translate(0, 0);
  }
  33% {
    transform: translate(2px, -2px);
  }
  66% {
    transform: translate(-2px, 1px);
  }
}
.maze-board.without .mz-node.owner .app {
  border-color: #fecaca;
  background: #fff5f5;
}
.maze.has-hl .maze-board.with .mz-node.hl .app {
  border-color: var(--v-400);
}
.maze.has-hl .maze-board.without .mz-node.hl .app {
  border-color: #fca5a5;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}
.maze.dual .wv {
  margin-top: 0;
}
.maze.dual .wv-w,
.maze.dual .wv-i {
  opacity: 1 !important;
  transform: none !important;
}
.maze.dual .wv-w {
  border-color: #fecaca;
  background: linear-gradient(180deg, #fff7f7, #fff);
}
.maze.dual .wv-i {
  border-color: var(--v-200);
  background: linear-gradient(180deg, var(--v-50), #fff);
}
.maze.dual .wv .mono-label {
  color: var(--bad);
}
.maze.dual .wv-i .mono-label {
  color: var(--v-700);
}
.maze.dual .wv p {
  font-size: 15px;
}
.maze-steps button {
  padding-bottom: 18px;
}
@media (max-width: 1100px) {
  .maze.dual {
    grid-template-columns: 1fr;
  }
  .maze.dual .maze-steps {
    grid-template-columns: repeat(4, 1fr);
  }
  .maze.dual .maze-steps small {
    display: none;
  }
}
@media (max-width: 760px) {
  .maze-boards {
    grid-template-columns: 1fr;
  }
  .maze.dual .maze-steps {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Handoff nav + telemetry ---------- */

.ho-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: -18px 0 30px;
  color: var(--neon-muted);
  font-size: 13px;
}
.ho-nav button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.ho-nav button:hover {
  background: rgba(255, 255, 255, 0.14);
}
.ho-nav button .i {
  width: 16px;
  height: 16px;
}
.ho-nav .prev .i {
  transform: rotate(180deg);
}
.ho-stop {
  cursor: pointer;
}
.ho-stop:hover .ho-dot {
  border-color: #c4b5fd;
  transform: scale(1.06);
}
.ho-stop.on .ho-dot {
  position: relative;
}
.ho-stop.on .ho-dot::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--lime);
  animation: spin 1.4s linear infinite;
}
.tele td {
  white-space: nowrap;
}
.tele td .lg,
.tele td .ab {
  vertical-align: -3px;
  margin-right: 4px;
}
.tele small {
  font: 500 11px/1 var(--f-mono);
  color: var(--muted);
  margin-left: 8px;
}
.tbar {
  display: inline-block;
  width: 90px;
  height: 6px;
  border-radius: 6px;
  background: #eef0f4;
  overflow: hidden;
  vertical-align: middle;
}
.tbar i {
  display: block;
  height: 100%;
  width: var(--w);
  background: linear-gradient(90deg, var(--v-500), #c026d3);
  border-radius: inherit;
}
.is-live .tele tbody tr {
  animation: fadeUp 0.4s ease both;
  animation-delay: var(--d);
}
.is-live .tbar i {
  animation: growx 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes growx {
  from {
    width: 0;
  }
}
.gov-line {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--ok-bg);
  color: #065f46;
  font: 500 12px/1.4 var(--f-mono);
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ---------- Industry agent demos ---------- */

.ind-panel.v2 {
  display: block;
}
.ind-panel.v2[hidden] {
  display: none;
}
.ind-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: end;
  margin-bottom: 26px;
}
.ind-top h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin-bottom: 10px;
}
.ind-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.ind-flow .tag {
  background: #fff;
}
.demo {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}
.demo-list {
  display: grid;
  gap: 10px;
}
.demo-item {
  appearance: none;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  text-align: left;
  padding: 16px 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.25s;
}
.demo-item:hover {
  transform: translateY(-1px);
  border-color: var(--v-200);
}
.demo-item.on {
  border-color: var(--v-300);
  box-shadow: 0 14px 30px -18px rgba(109, 40, 217, 0.55);
  background: radial-gradient(120% 140% at 100% 100%, rgba(240, 171, 252, 0.25), transparent 50%), #fff;
}
.di-logos {
  display: flex;
  gap: 4px;
}
.di-logos .lg,
.di-logos .ab {
  width: 18px;
  height: 18px;
}
.di-t b {
  display: block;
  font-size: 15px;
}
.di-t small {
  font-size: 12.5px;
  color: var(--muted);
}
.demo-chat {
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-float);
  display: flex;
  flex-direction: column;
  min-height: 430px;
  overflow: hidden;
}
.dc-head {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.dc-head b {
  margin-right: auto;
}
.dc-head svg:first-child {
  margin-left: 0;
}
.dc-run {
  padding: 20px 22px;
  flex: 1;
}
.dc-user {
  margin-left: auto;
  max-width: 82%;
  background: #f1f0f5;
  border-radius: 18px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.5;
}
.dc-calls {
  display: grid;
  gap: 8px;
  justify-items: start;
  margin: 16px 0;
}
.dc-call {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  background: #fff;
  font: 12px/1.3 var(--f-mono);
  color: var(--muted);
  max-width: 100%;
  flex-wrap: wrap;
}
.dc-call code {
  font: inherit;
}
.dc-call b {
  color: var(--ink);
  font-weight: 600;
}
.dc-call em {
  font-style: normal;
}
.dc-call em::before {
  content: "· ";
}
.dc-call code::after {
  content: " ·";
}
.dc-result {
  font-size: 14.5px;
  line-height: 1.6;
  color: #1f2937;
}
.is-live .dc-user {
  animation: fadeUp 0.4s ease both;
}
.is-live .dc-call {
  animation: callIn 0.5s ease both;
  animation-delay: var(--d);
}
@keyframes callIn {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  60% {
    border-color: var(--v-400);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.14);
  }
}
.is-live .dc-result {
  animation: fadeUp 0.5s ease both;
  animation-delay: var(--d);
}
.dc-input {
  margin: 0 16px 16px;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 12px 12px 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}
.dc-model {
  margin-left: auto;
  font-size: 12.5px;
}
.dc-send {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--v-700);
  color: #fff;
  display: grid;
  place-items: center;
}
.dc-send .i {
  transform: rotate(-90deg);
}
@media (max-width: 900px) {
  .ind-top,
  .demo {
    grid-template-columns: 1fr;
  }
  .ind-flow {
    justify-content: flex-start;
  }
  .demo-chat {
    min-height: 0;
  }
}

/* ---------- Ecosystem network ---------- */

.eco-sec {
  background: radial-gradient(60% 50% at 50% 50%, rgba(124, 58, 237, 0.22), transparent 70%), #0d0a14;
  color: #fff;
  overflow: hidden;
}
.eco-sec h2 {
  color: #fff;
}
.eco-sec .lead {
  color: rgba(226, 220, 255, 0.75);
}
.eco-sec .overline {
  color: #c4b5fd;
}
.eco {
  position: relative;
}
.eco-svg {
  width: 100%;
  height: auto;
  display: block;
}
.eco-spokes line {
  stroke-width: 1;
  opacity: 0.12;
  stroke-dasharray: 2 4;
}
.eco-flow {
  fill: none;
  stroke-width: 2;
  opacity: 0.22;
  stroke-dasharray: 6 8;
  animation: dash 6s linear infinite;
  transition: opacity 0.3s, stroke-width 0.3s;
}
.eco.focus .eco-flow {
  opacity: 0.08;
}
.eco.focus .eco-flow.on {
  opacity: 1;
  stroke-width: 3.5;
  stroke-dasharray: 10 6;
  animation-duration: 1.6s;
  filter: drop-shadow(0 0 6px currentColor);
}
.eco-packet {
  opacity: 0;
  transition: opacity 0.25s;
}
.eco-packet.on {
  opacity: 1;
  filter: drop-shadow(0 0 6px currentColor) drop-shadow(0 0 3px #fff);
}
.eco-via {
  font: 800 11px/1 var(--f-brand);
  letter-spacing: 0.08em;
  color: var(--ink);
  background: var(--lime);
  padding: 5px 8px;
  border-radius: 999px;
}
.eco.focus .eco-hub > circle:first-child {
  animation: hubPulse 1.6s ease-in-out infinite;
}
@keyframes hubPulse {
  50% {
    filter: drop-shadow(0 0 22px rgba(167, 139, 250, 0.95));
  }
}
.eco-cl {
  font: 600 14px var(--f-mono);
  letter-spacing: 0.12em;
}
.eco-hub .eco-ring {
  stroke-dasharray: 3 6;
  opacity: 0.6;
  transform-origin: 600px 405px;
  animation: spin 30s linear infinite;
}
.eco-hubt {
  fill: #fff;
  font: 800 11px var(--f-brand);
  letter-spacing: 0.12em;
}
.eco-node {
  cursor: pointer;
  outline: none;
}
.eco-dot {
  fill: #ffffff;
  stroke-width: 2.5;
  stroke-dasharray: 2 3;
  transition: fill 0.25s, stroke-width 0.25s;
}
.eco-node text {
  fill: rgba(255, 255, 255, 0.82);
  font: 500 12.5px var(--f-body);
}
.eco-node image {
  transition: transform 0.25s;
}
.eco.focus .eco-node {
  opacity: 0.45;
  transition: opacity 0.25s;
}
.eco.focus .eco-node.on {
  opacity: 1;
}
.eco-node.on .eco-dot,
.eco-node:hover .eco-dot,
.eco-node:focus-visible .eco-dot {
  fill: #f5f3ff;
  stroke-width: 3.5;
  stroke-dasharray: none;
}
.eco-cap {
  margin: 8px auto 0;
  max-width: 760px;
  min-height: 74px;
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}
.eco-cap-apps {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 14px;
}
.eco-cap-apps img {
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 5px;
  padding: 2px;
}
.eco-arrow {
  color: var(--lime);
}
.eco-cap-t {
  color: rgba(226, 220, 255, 0.85);
  font-size: 15px;
}
@media (max-width: 700px) {
  .eco-node text,
  .eco-cl {
    display: none;
  }
}

/* ---------- Data connectors (Datasight) ---------- */

.dsrc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.dsrc {
  border-radius: 22px;
  padding: 14px;
  background: linear-gradient(160deg, #e3fbdc, #eef2ff 70%);
  transition: transform 0.25s, box-shadow 0.25s;
}
.dsrc[style*="--g:1"] {
  background: linear-gradient(160deg, #ffe4e6, #fdf4ff 70%);
}
.dsrc[style*="--g:2"] {
  background: linear-gradient(160deg, #ede9fe, #fff1f2 70%);
}
.dsrc[style*="--g:3"] {
  background: linear-gradient(160deg, #e0f2fe, #f5f3ff 70%);
}
.dsrc:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -24px rgba(76, 29, 149, 0.45);
}
.dsrc-in {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  height: 100%;
}
.dsrc-logo {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px -10px rgba(15, 23, 42, 0.35);
}
.dsrc-logo .lg {
  width: 44px;
  height: 44px;
}
.dsrc h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.dsrc p {
  font-size: 13.5px;
  color: #334155;
  line-height: 1.5;
}
@media (max-width: 980px) {
  .dsrc-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .dsrc-grid {
    grid-template-columns: 1fr;
  }
}
.logo-marquee.rev .marquee-track {
  animation-direction: reverse;
}


/* ---------- Platform: a request rises from the apps through Governance, Context and the Harness ---------- */
/* One 4s cycle: apps pulse (0-0.9s) -> rail to centre -> Governance (1.2s) -> Context (1.9s) -> Harness (2.6s) -> products (3.2s) */

.plat {
  --cyc: 4s;
}
.plat-apps {
  position: relative;
}
.pa {
  animation: paPulse var(--cyc) ease-in-out infinite;
  animation-delay: var(--d);
}
@keyframes paPulse {
  0%,
  30%,
  100% {
    transform: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
  }
  12% {
    transform: translateY(-3px);
    box-shadow: 0 0 0 3px rgba(196, 181, 253, 0.6), 0 0 18px rgba(167, 139, 250, 0.9);
  }
}
.apps-rail {
  position: absolute;
  top: -1px;
  left: 18px;
  right: 18px;
  height: 2px;
  pointer-events: none;
}
.apps-rail b {
  position: absolute;
  top: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c4b5fd;
  box-shadow: 0 0 10px #a78bfa;
  animation: railL var(--cyc) linear infinite;
  opacity: 0;
}
.apps-rail b:nth-child(2) {
  animation-delay: 0.25s;
}
.apps-rail b:nth-child(3) {
  animation-name: railR;
}
.apps-rail b:nth-child(4) {
  animation-name: railR;
  animation-delay: 0.25s;
}
@keyframes railL {
  0% {
    left: 0;
    opacity: 0;
  }
  4% {
    opacity: 1;
  }
  26% {
    left: calc(50% - 4px);
    opacity: 1;
  }
  30%,
  100% {
    left: calc(50% - 4px);
    opacity: 0;
  }
}
@keyframes railR {
  0% {
    left: calc(100% - 8px);
    opacity: 0;
  }
  4% {
    opacity: 1;
  }
  26% {
    left: calc(50% - 4px);
    opacity: 1;
  }
  30%,
  100% {
    left: calc(50% - 4px);
    opacity: 0;
  }
}
.apps-up {
  position: absolute;
  left: calc(50% - 4px);
  top: -6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime);
  opacity: 0;
  animation: appsUp var(--cyc) linear infinite;
}
@keyframes appsUp {
  0%,
  26% {
    transform: translateY(0);
    opacity: 0;
  }
  28% {
    opacity: 1;
  }
  34% {
    transform: translateY(-30px);
    opacity: 1;
  }
  36%,
  100% {
    transform: translateY(-30px);
    opacity: 0;
  }
}
.plat-core {
  position: relative;
}
.plat-core > .layer {
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.plat-beam {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.05), rgba(167, 139, 250, 0.35), rgba(167, 139, 250, 0.05));
  z-index: 2;
  pointer-events: none;
}
.plat-beam b {
  position: absolute;
  left: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 14px var(--lime), 0 0 4px #fff;
  opacity: 0;
  animation: beamUp var(--cyc) cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
.plat-beam b:nth-child(2) {
  animation-delay: 0.12s;
  transform: scale(0.7);
}
.plat-beam b:nth-child(3) {
  animation-delay: 0.24s;
  transform: scale(0.5);
}
@keyframes beamUp {
  0%,
  32% {
    bottom: 0;
    opacity: 0;
  }
  34% {
    opacity: 1;
  }
  78% {
    bottom: calc(100% - 10px);
    opacity: 1;
  }
  82%,
  100% {
    bottom: calc(100% - 10px);
    opacity: 0;
  }
}
/* Each layer lights up as the request passes through it */
.plat-core > .layer::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.22), transparent);
  transform: translateX(-100%);
  animation: laySweep var(--cyc) ease-in-out infinite;
}
.plat-core > .layer.gov::after {
  background: linear-gradient(90deg, transparent, rgba(74, 222, 128, 0.22), transparent);
  animation-delay: 1.2s;
}
.plat-core > .layer.ctx::after {
  animation-delay: 1.9s;
}
.plat-core > .layer[data-layer="harness"]::after {
  animation-delay: 2.6s;
}
@keyframes laySweep {
  0% {
    transform: translateX(-100%);
  }
  25%,
  100% {
    transform: translateX(100%);
  }
}
.ly-stamp {
  position: absolute;
  right: 16px;
  top: 10px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font: 600 11px/1 var(--f-mono);
  letter-spacing: 0.04em;
  color: var(--lime);
  background: rgba(226, 227, 26, 0.1);
  border: 1px solid rgba(226, 227, 26, 0.35);
  padding: 5px 8px;
  border-radius: 999px;
  opacity: 0;
  animation: stamp var(--cyc) ease infinite;
  z-index: 3;
}
.ly-stamp .i {
  width: 12px;
  height: 12px;
}
.layer.gov .ly-stamp {
  color: #86efac;
  background: rgba(74, 222, 128, 0.1);
  border-color: rgba(74, 222, 128, 0.4);
  animation-delay: 1.3s;
}
.layer.ctx .ly-stamp {
  animation-delay: 2s;
}
.layer[data-layer="harness"] .ly-stamp {
  animation-delay: 2.7s;
}
@keyframes stamp {
  0% {
    opacity: 0;
    transform: translateY(4px);
  }
  6%,
  22% {
    opacity: 1;
    transform: none;
  }
  30%,
  100% {
    opacity: 0;
  }
}
.bus-dot {
  position: absolute;
  left: calc(50% - 4px);
  bottom: -22px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime);
  opacity: 0;
  animation: busUp var(--cyc) linear infinite;
}
@keyframes busUp {
  0%,
  78% {
    transform: translateY(0);
    opacity: 0;
  }
  80% {
    opacity: 1;
  }
  86% {
    transform: translateY(-22px);
    opacity: 1;
  }
  88%,
  100% {
    transform: translateY(-22px);
    opacity: 0;
  }
}
.pcard {
  animation: pcGlow var(--cyc) ease infinite;
  animation-delay: 3.3s;
}
@keyframes pcGlow {
  0%,
  20%,
  100% {
    box-shadow: none;
  }
  8% {
    box-shadow: 0 0 0 1px rgba(226, 227, 26, 0.5), 0 0 24px -4px rgba(226, 227, 26, 0.45);
  }
}
@media (max-width: 900px) {
  .ly-stamp {
    position: static;
    margin-top: 8px;
  }
  .apps-rail,
  .apps-up,
  .bus-dot {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .plat-beam b,
  .apps-rail b,
  .apps-up,
  .bus-dot {
    animation-duration: 6s;
  }
}


/* ---------- Neon chapters: violet gradient type instead of plain white ---------- */

.section.neon h2 {
  background: linear-gradient(100deg, #f5f3ff 0%, #ddd6fe 35%, #c4b5fd 65%, #e9a8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section.neon h2 .grad-neon {
  background: linear-gradient(95deg, #c084fc, #f0abfc 55%, var(--lime));
  -webkit-background-clip: text;
  background-clip: text;
}
.section.neon .ho-copy h3,
.section.neon .tcard h3 {
  background: linear-gradient(95deg, #ede9fe, #c4b5fd 55%, #f0abfc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section.neon .lead,
.section.neon .ho-copy p,
.section.neon .tcard > p {
  color: #c4b5fd;
}
.section.neon .ho-stop {
  color: #a78bfa;
}
.section.neon .ho-stop.on {
  color: #f0abfc;
}
.section.neon .ho-out {
  color: #ede9fe;
}
.section.neon .ho-nav {
  color: #a78bfa;
}
.section.neon .finish span {
  background: linear-gradient(95deg, #ddd6fe, #f0abfc, var(--lime));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section.neon .tc-status,
.section.neon .tc-ui {
  color: #ddd6fe;
}
.section.neon .tc-status b {
  color: #f0abfc;
}

/* Glowing orbs behind neon chapters */
.neon-orb {
  z-index: -1;
  opacity: 0.55;
  filter: blur(1px);
}
.neon-orb.a {
  width: 220px;
  height: 220px;
  right: -60px;
  top: 120px;
}
.neon-orb.b {
  width: 140px;
  height: 140px;
  left: 4%;
  bottom: 80px;
  animation-delay: -4s;
}
.neon-orb.c {
  width: 200px;
  height: 200px;
  left: -50px;
  top: 80px;
}
.neon-orb.d {
  width: 120px;
  height: 120px;
  right: 6%;
  bottom: 60px;
  animation-delay: -3s;
}

/* Chapter 03: floating app logos around the stage screen */
.ho-visual {
  position: relative;
}
.ho-floats {
  position: absolute;
  inset: -34px -26px;
  pointer-events: none;
  z-index: 2;
}
.hof {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.08), 0 16px 30px -12px rgba(124, 58, 237, 0.8), 0 0 30px -8px rgba(240, 171, 252, 0.6);
  animation: floaty 6s ease-in-out infinite;
}
.hof .lg {
  width: 26px;
  height: 26px;
}
.hof-0 {
  left: -6px;
  top: 0;
}
.hof-1 {
  right: -4px;
  top: 18%;
  animation-delay: -1.5s;
}
.hof-2 {
  left: -14px;
  bottom: 14%;
  animation-delay: -3s;
}
.hof-3 {
  right: 6%;
  bottom: -6px;
  animation-delay: -4.5s;
}
.is-live .hof {
  animation: hofIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both, floaty 6s ease-in-out 0.6s infinite;
}
.is-live .hof-1 {
  animation-delay: 0.1s, -1.5s;
}
.is-live .hof-2 {
  animation-delay: 0.2s, -3s;
}
.is-live .hof-3 {
  animation-delay: 0.3s, -4.5s;
}
@keyframes hofIn {
  from {
    opacity: 0;
    transform: scale(0.4) rotate(-12deg);
  }
}
.ho-visual > .win {
  position: relative;
  z-index: 1;
}
@media (max-width: 600px) {
  .ho-floats {
    inset: -20px -8px;
  }
  .hof {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }
  .hof .lg {
    width: 20px;
    height: 20px;
  }
}

/* Practical trust: animated icon badges and a guardrail that connects the four controls */
.guardrail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 0 22px;
  height: 34px;
  align-items: center;
}
.guardrail > i {
  position: absolute;
  left: 12.5%;
  right: 12.5%;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, rgba(167, 139, 250, 0.2), rgba(240, 171, 252, 0.5), rgba(226, 227, 26, 0.4));
  overflow: hidden;
}
.guardrail > i::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 60px;
  height: 8px;
  border-radius: 8px;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  animation: rail 3.2s linear infinite;
}
@keyframes rail {
  from {
    transform: translateX(-60px);
  }
  to {
    transform: translateX(1200px);
  }
}
.guardrail span {
  position: relative;
  justify-self: center;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #160a2e;
  border: 1px solid rgba(196, 181, 253, 0.35);
  color: #c4b5fd;
  font: 600 12px/1 var(--f-mono);
  letter-spacing: 0.04em;
  animation: grPing 3.2s ease-in-out infinite;
}
.guardrail span:nth-of-type(2) {
  animation-delay: 0.8s;
}
.guardrail span:nth-of-type(3) {
  animation-delay: 1.6s;
}
.guardrail span:nth-of-type(4) {
  animation-delay: 2.4s;
}
@keyframes grPing {
  0%,
  30%,
  100% {
    border-color: rgba(196, 181, 253, 0.35);
    color: #c4b5fd;
    box-shadow: none;
  }
  10% {
    border-color: var(--lime);
    color: var(--lime);
    box-shadow: 0 0 18px -2px rgba(226, 227, 26, 0.6);
  }
}
.guardrail .i {
  width: 13px;
  height: 13px;
}
.tc-badge {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #7c3aed, #c026d3);
  color: #fff;
  position: relative;
  box-shadow: 0 12px 26px -10px rgba(192, 38, 211, 0.8);
}
.tc-badge .i {
  width: 24px;
  height: 24px;
}
.tc-badge::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 20px;
  border: 1.5px solid rgba(240, 171, 252, 0.6);
  animation: badgePing 2.6s ease-out infinite;
}
.tcard:nth-child(2) .tc-badge::after {
  animation-delay: 0.65s;
}
.tcard:nth-child(3) .tc-badge::after {
  animation-delay: 1.3s;
}
.tcard:nth-child(4) .tc-badge::after {
  animation-delay: 1.95s;
}
@keyframes badgePing {
  0% {
    opacity: 0.9;
    transform: scale(0.9);
  }
  100% {
    opacity: 0;
    transform: scale(1.35);
  }
}
.tcard {
  transition: transform 0.3s, box-shadow 0.3s;
}
.tcard:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 30px 60px -24px rgba(192, 38, 211, 0.55);
}
@media (max-width: 1080px) {
  .guardrail {
    display: none;
  }
}

/* ==========================================================================
   Wave 3: sliders, agent mesh, team flow, goal attachment, Datasight story,
   ontology graph, 10-step pipeline, harness hero, skills, sandbox, consent
   ========================================================================== */

/* ---------- Slider ---------- */
.slider {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.sl-panes {
  min-height: 0;
}
.sl-pane {
  animation: slideIn 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
}
.sl-nav {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.sl-dot {
  position: relative;
  overflow: hidden;
  appearance: none;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  padding: 7px 12px 9px;
  font: 600 12px/1 var(--f-body);
  color: var(--muted);
  cursor: pointer;
}
.sl-dot.on {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.sl-dot .sbar {
  left: 8px;
  right: 8px;
  bottom: 3px;
}
.sl-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
}
.sl-arrow .i {
  width: 14px;
  height: 14px;
}
.sl-arrow.prev .i {
  transform: rotate(180deg);
}
.gen-btn {
  animation: genPulse 1.8s ease-in-out infinite;
}
@keyframes genPulse {
  50% {
    box-shadow: 0 0 0 6px rgba(124, 58, 237, 0.18), var(--sh-btn);
  }
}

/* ---------- Agent mesh (Multiplayer hero) ---------- */
.mesh {
  padding: 16px;
}
.mesh > * {
  position: relative;
  z-index: 2;
}
.mesh-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.mesh-budget {
  font: 500 12px/1 var(--f-mono);
  color: var(--muted);
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.mesh-budget b {
  color: var(--ink);
}
.mesh-budget > i {
  width: 70px;
  height: 6px;
  border-radius: 6px;
  background: #eef0f4;
  overflow: hidden;
  display: inline-block;
}
.mesh-budget > i > i {
  display: block;
  height: 100%;
  width: calc(10% + var(--step, 0) * 4%);
  background: linear-gradient(90deg, var(--v-500), #c026d3);
  transition: width 0.6s;
}
.mesh-stage {
  position: relative;
  aspect-ratio: 600 / 420;
}
.mesh-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.m-down,
.m-lat {
  fill: none;
  stroke: rgba(124, 58, 237, 0.22);
  stroke-width: 2;
  stroke-dasharray: 5 6;
}
.m-lat {
  stroke: rgba(192, 38, 211, 0.25);
}
.mesh[data-active="1"] .m-down,
.mesh[data-active="3"] .m-down {
  stroke: var(--v-500);
  animation: dash 1s linear infinite;
}
.mesh[data-active="2"] .m-lat {
  stroke: #c026d3;
  animation: dash 1s linear infinite;
}
.pk {
  opacity: 0;
  transition: opacity 0.3s;
}
.pk-down {
  fill: var(--v-600);
}
.pk-up {
  fill: var(--ok);
}
.pk-lat {
  fill: #c026d3;
}
.mesh[data-active="1"] .pk-down,
.mesh[data-active="2"] .pk-lat,
.mesh[data-active="3"] .pk-up {
  opacity: 1;
}
.m-sub circle {
  fill: rgba(255, 255, 255, 0.6);
  stroke: rgba(124, 58, 237, 0.2);
}
.m-ring {
  fill: none;
  stroke: var(--v-400);
  stroke-dasharray: 4 6;
  transform-origin: 300px 78px;
  animation: spin 12s linear infinite;
}
.mesh[data-active="0"] .m-master circle:first-child,
.mesh[data-active="4"] .m-master circle:first-child {
  animation: hubPulse 1.4s ease-in-out infinite;
}
.m-node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  gap: 2px;
  text-align: center;
  font-size: 12.5px;
  z-index: 3;
}
.m-node b {
  font-size: 13px;
}
.m-node small {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.m-node small .lg,
.m-node small .i {
  width: 12px;
  height: 12px;
}
.m-node.master .avatar {
  width: 44px;
  height: 44px;
  font-size: 16px;
  box-shadow: 0 0 0 4px #fff;
}
.m-node .avatar {
  box-shadow: 0 0 0 3px #fff;
}
.m-think {
  position: absolute;
  right: 0;
  top: 2%;
  width: 46%;
  max-width: 230px;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--v-200);
  box-shadow: 0 10px 24px -14px rgba(76, 29, 149, 0.5);
  font-size: 11.5px;
  z-index: 4;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s, transform 0.35s;
}
.m-think .mono-label {
  font-size: 10px;
  color: var(--v-700);
}
.m-think span {
  display: flex;
  gap: 5px;
  align-items: center;
  color: #334155;
}
.m-think .i {
  width: 11px;
  height: 11px;
  color: var(--ok);
  flex: none;
}
.mesh[data-active="0"] .m-think {
  opacity: 1;
  transform: none;
}
.mesh[data-active="0"] .m-think span {
  animation: fadeUp 0.4s ease both;
  animation-delay: var(--d);
}
.m-bub {
  position: absolute;
  transform: translate(-50%, -50%) scale(0.9);
  padding: 6px 10px;
  border-radius: 12px 12px 12px 4px;
  background: #fff;
  border: 1px solid var(--line-2);
  box-shadow: 0 8px 18px -10px rgba(15, 23, 42, 0.4);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  max-width: 31%;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 4;
}
.m-bub.ph2 {
  border-color: #f0abfc;
  background: #fdf4ff;
}
.m-bub.ph3 {
  border-color: #a7f3d0;
  background: var(--ok-bg);
}
.mesh[data-active="1"] .m-bub.ph1,
.mesh[data-active="2"] .m-bub.ph2,
.mesh[data-active="3"] .m-bub.ph3 {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.mesh[data-active="2"] .m-bub.ph2:nth-of-type(odd) {
  transition-delay: 0.5s;
}
.m-hand {
  position: absolute;
  left: 50%;
  top: 56%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s;
  z-index: 4;
}
.m-hand span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--ok-bg);
  color: var(--ok);
  border: 1px solid #a7f3d0;
  font: 600 11.5px/1 var(--f-body);
}
.m-hand .i {
  width: 12px;
  height: 12px;
}
.mesh[data-active="4"] .m-hand {
  opacity: 1;
}
.mesh-phases {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 8px;
}
.mph {
  position: relative;
  overflow: hidden;
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  padding: 8px 6px 10px;
  cursor: pointer;
  display: grid;
  justify-items: center;
  gap: 2px;
  font: inherit;
  color: var(--ink);
}
.mph-n {
  font: 600 10.5px/1 var(--f-mono);
  color: var(--muted);
}
.mph b {
  font-size: clamp(10.5px, 0.95vw, 12.5px);
  white-space: nowrap;
}
.mph.on {
  border-color: var(--v-300);
  background: #fff;
  box-shadow: 0 8px 18px -12px rgba(109, 40, 217, 0.6);
}
.mph.on .mph-n {
  color: var(--v-700);
}
.mph .sbar {
  left: 8px;
  right: 8px;
  bottom: 3px;
}
.mesh-panes {
  margin-top: 10px;
  font-size: 13.5px;
  color: #334155;
  min-height: 42px;
}
.mesh-panes > div {
  animation: fadeUp 0.35s ease both;
}
@media (max-width: 560px) {
  .m-node small,
  .m-think,
  .m-bub {
    display: none;
  }
  .mesh-phases b {
    font-size: 10.5px;
  }
}

/* ---------- Team flow ---------- */
.tflow {
  padding: 20px;
}
.tflow > * {
  position: relative;
  z-index: 2;
}
.tf-rail {
  display: flex;
  align-items: center;
  gap: 0;
}
.tf-st {
  appearance: none;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  justify-items: center;
  gap: 3px;
  text-align: center;
  font: inherit;
  color: var(--ink);
  flex: none;
  width: 84px;
}
.tf-ico {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line-2);
  color: var(--v-700);
  transition: all 0.3s;
}
.tf-ico .i {
  width: 20px;
  height: 20px;
}
.tf-st b {
  font-size: 13px;
}
.tf-st small {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.25;
}
.tf-st.on .tf-ico {
  background: linear-gradient(135deg, var(--v-600), #c026d3);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 0 5px rgba(139, 92, 246, 0.15), 0 10px 20px -8px rgba(124, 58, 237, 0.7);
  transform: scale(1.06);
}
.tf-st.done .tf-ico {
  background: var(--v-50);
  border-color: var(--v-200);
}
.tf-link {
  flex: 1;
  height: 2px;
  background: var(--line-2);
  position: relative;
  margin-top: -36px;
  overflow: hidden;
}
.tf-link i {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--v-500), #c026d3);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s;
}
.tf-st.done + .tf-link i,
.tf-st.on + .tf-link i {
  transform: scaleX(1);
}
.tf-st.on + .tf-link i {
  animation: swprog var(--dur, 3s) linear both;
}
.tf-fan {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 16px 0 10px;
}
.tf-sub {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 8px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 600;
  opacity: 0.45;
  transition: opacity 0.4s, border-color 0.4s, transform 0.4s;
}
.tf-sub em {
  margin-left: auto;
  font-style: normal;
}
.tf-sub .lg {
  width: 13px;
  height: 13px;
}
.tf-sub .avatar {
  width: 22px;
  height: 22px;
  font-size: 10px;
}
.tflow[data-active="2"] .tf-sub,
.tflow[data-active="3"] .tf-sub {
  opacity: 1;
  border-color: var(--v-200);
}
.tflow[data-active="2"] .tf-sub {
  animation: workBob 1.2s ease-in-out infinite;
}
.tflow[data-active="2"] .tf-sub:nth-child(2) {
  animation-delay: 0.2s;
}
.tflow[data-active="2"] .tf-sub:nth-child(3) {
  animation-delay: 0.4s;
}
.tflow[data-active="2"] .tf-sub:nth-child(4) {
  animation-delay: 0.6s;
}
@keyframes workBob {
  50% {
    transform: translateY(-3px);
  }
}
.tf-panes p {
  font-size: 14px;
  color: #334155;
  min-height: 42px;
  animation: fadeUp 0.35s ease both;
}
.tf-meters {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 14px;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.tf-budget {
  display: grid;
  gap: 6px;
}
.tf-bar {
  height: 8px;
  border-radius: 8px;
  background: #eef0f4;
  overflow: hidden;
}
.tf-bar i {
  display: block;
  height: 100%;
  width: calc(4% + var(--step, 0) * 5.4%);
  background: linear-gradient(90deg, var(--v-500), #c026d3);
  transition: width 0.6s;
}
.tf-b-v {
  font: 600 12px/1 var(--f-mono);
}
.tf-guards {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tf-guards span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  font-size: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--ok-bg);
  color: var(--ok);
  border: 1px solid #a7f3d0;
}
.tf-guards .i {
  width: 12px;
  height: 12px;
}
@media (max-width: 600px) {
  .tf-st {
    width: 58px;
  }
  .tf-st small {
    display: none;
  }
  .tf-fan {
    grid-template-columns: 1fr 1fr;
  }
  .tf-meters {
    grid-template-columns: 1fr;
  }
}

/* ---------- Goal attachment ---------- */
.gatt {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: center;
}
.gatt-goal {
  padding: 24px;
}
.gatt-goal > * {
  position: relative;
  z-index: 2;
}
.gatt-pin {
  position: absolute;
  top: -16px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 8px 18px -6px rgba(226, 227, 26, 0.8);
  animation: floaty 4s ease-in-out infinite;
}
.gatt-goal .h4 {
  font-size: 1.15rem;
  margin: 8px 0 12px;
}
.gatt-goal ul {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: grid;
  gap: 6px;
  font-size: 13.5px;
}
.gatt-goal li {
  display: flex;
  gap: 8px;
  align-items: center;
}
.gatt-goal li .i {
  color: var(--ok);
}
.gatt-agents {
  display: grid;
  gap: 10px;
}
.gatt-ag {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  animation: pinIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: var(--d);
}
@keyframes pinIn {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }
}
.gatt-link {
  position: absolute;
  left: -28px;
  top: 50%;
  width: 28px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--v-400) 0 5px, transparent 5px 10px);
  animation: dashx 0.8s linear infinite;
}
.gatt-ag b {
  font-size: 14px;
}
.gatt-ag small {
  display: block;
  font-size: 12px;
  color: #334155;
}
.gatt-ag small.muted {
  color: var(--muted);
}
.gatt-focus {
  display: grid;
  justify-items: end;
  gap: 2px;
  min-width: 84px;
}
.gatt-focus span {
  font: 700 18px/1 var(--f-display);
  color: var(--v-700);
}
.gatt-focus small {
  font-size: 10.5px;
  color: var(--muted);
}
.gatt-focus > i {
  width: 84px;
  height: 5px;
  border-radius: 5px;
  background: #eef0f4;
  overflow: hidden;
}
.gatt-focus > i > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--v-500), var(--ok));
  animation: growx 1.2s ease both;
}
.gatt-drift {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px dashed #fca5a5;
  background: #fff7f7;
  animation: pinIn 0.6s ease both 0.9s;
}
.gatt-drift b {
  font-size: 13.5px;
}
.gatt-drift small {
  display: flex;
  gap: 5px;
  align-items: center;
  color: var(--bad);
  font-size: 12px;
}
.gatt-drift .i {
  width: 12px;
  height: 12px;
}
/* Inside a half-width split column, stack the goal above the agents. */
.split .gatt {
  grid-template-columns: 1fr;
  gap: 22px;
}
.split .gatt-link {
  left: 50%;
  top: -12px;
  width: 2px;
  height: 12px;
  background: repeating-linear-gradient(180deg, var(--v-400) 0 4px, transparent 4px 8px);
}
@media (max-width: 900px) {
  .gatt {
    grid-template-columns: 1fr;
  }
  .gatt-link {
    display: none;
  }
}

/* ---------- Datasight story (hero) ---------- */
.ds-steps {
  display: flex;
  gap: 4px;
  align-items: center;
  margin: 14px 0 12px;
}
.ds-steps i {
  flex: 1;
  height: 5px;
  border-radius: 5px;
  background: var(--v-500);
  transform-origin: left;
  animation: growx2 0.4s ease both;
  animation-delay: var(--d);
}
@keyframes growx2 {
  from {
    transform: scaleX(0);
    opacity: 0.3;
  }
}
.ds-steps span {
  font: 500 11px/1 var(--f-mono);
  color: var(--muted);
  margin-left: 6px;
  white-space: nowrap;
}
.ds-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 10px;
}
.ds-chart {
  position: relative;
}
.ds-bars {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  height: 130px;
  margin-top: 10px;
  border-bottom: 1px solid var(--line-2);
  position: relative;
  z-index: 1;
}
.ds-col {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  position: relative;
}
.ds-col i {
  width: 100%;
  height: var(--h);
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--v-400), var(--v-600));
  transform-origin: bottom;
  animation: grow 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(1.3s + var(--d));
}
.ds-col.hi i {
  background: linear-gradient(180deg, #f0f15a, var(--lime));
  box-shadow: 0 0 18px rgba(226, 227, 26, 0.6);
}
.ds-col.neg i {
  background: linear-gradient(180deg, #fca5a5, #ef4444);
}
.ds-col small {
  position: absolute;
  bottom: -18px;
  font: 500 10px/1 var(--f-mono);
  color: var(--muted);
}
.ds-v {
  font: 600 10.5px/1 var(--f-mono);
  color: var(--ink);
  animation: fadeUp 0.4s ease both;
  animation-delay: calc(2s + var(--d));
}
.ds-col.hi .ds-v {
  background: var(--ink);
  color: var(--lime);
  padding: 3px 5px;
  border-radius: 5px;
  animation: fadeUp 0.4s ease both 2.2s, floaty 3s ease-in-out 2.6s infinite;
}
.ds-line {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 34px;
  height: 90px;
  width: calc(100% - 24px);
  z-index: 2;
  pointer-events: none;
}
.ds-line path {
  fill: none;
  stroke: #c026d3;
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: draw 1.6s ease forwards 2.1s;
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
.ds-chart {
  padding-bottom: 26px;
}
.ds-story {
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(160deg, var(--v-50), #fff);
  border: 1px solid var(--v-200);
  font-size: 13px;
  line-height: 1.5;
  display: grid;
  gap: 8px;
  align-content: start;
}
.ds-story p {
  animation: fadeUp 0.5s ease both;
}
.ds-story p:nth-child(2) {
  animation-delay: 2.4s;
}
.ds-story p:nth-child(3) {
  animation-delay: 3s;
}
.ds-story p:nth-child(4) {
  animation-delay: 3.6s;
}
.ds-story .mono-label {
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--v-700);
}
.ds-next {
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--v-700);
  font-weight: 600;
}
.ds-next .i {
  width: 13px;
  height: 13px;
}
@media (max-width: 560px) {
  .ds-grid {
    grid-template-columns: 1fr;
  }
}
.ds-rows tbody tr {
  animation: fadeUp 0.35s ease both;
  animation-delay: var(--d);
}
.ds-trend {
  width: 100%;
  height: 120px;
  margin: 12px 0 8px;
}
.ds-trend .area {
  fill: rgba(139, 92, 246, 0.15);
}
.ds-trend .ln {
  fill: none;
  stroke: var(--v-600);
  stroke-width: 2.5;
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: draw 1.4s ease forwards 0.2s;
}
.ds-trend circle {
  fill: var(--lime);
  stroke: var(--v-700);
  stroke-width: 2;
  animation: pulse 1.2s infinite;
}

/* ---------- Ontology knowledge graph ---------- */
#ontology.split,
#ask.split {
  grid-template-columns: 0.8fr 1.3fr;
  gap: 48px;
}
@media (max-width: 980px) {
  #ontology.split,
  #ask.split {
    grid-template-columns: 1fr;
  }
}
.onto {
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-float);
  overflow: hidden;
}
.onto-bar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.onto-stats {
  font: 500 12px/1 var(--f-mono);
  color: var(--muted);
}
.onto-stats b {
  color: var(--ink);
}
.onto-svg {
  width: 100%;
  height: auto;
  display: block;
  background: radial-gradient(60% 60% at 50% 50%, rgba(237, 233, 254, 0.7), transparent),
    radial-gradient(rgba(46, 16, 101, 0.08) 1px, transparent 1px) 0 0 / 16px 16px;
}
.oe path {
  stroke: var(--v-400);
  stroke-width: 1.8;
  fill: none;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: draw 1s ease forwards;
  animation-delay: var(--d);
}
.oe text {
  font: 500 10px var(--f-mono);
  fill: var(--v-700);
  opacity: 0;
  animation: fadeIn 0.4s ease forwards;
  animation-delay: calc(var(--d) + 0.6s);
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 3px;
}
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}
.on {
  opacity: 0;
  animation: nodeIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: var(--d);
}
@keyframes nodeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.on rect {
  fill: #fff;
  stroke: var(--line-2);
  stroke-width: 1.2;
}
.on.fact rect {
  stroke: var(--v-400);
  fill: #faf8ff;
}
.on-t {
  font: 700 12.5px var(--f-body);
  fill: var(--ink);
}
.on-k {
  font: 600 9.5px var(--f-mono);
  fill: var(--muted);
  text-transform: uppercase;
}
.on-c {
  font: 500 10.5px var(--f-mono);
  fill: #475569;
}
.on-c.met {
  fill: var(--v-700);
}
.on-c.pii {
  fill: var(--bad);
}
.onto-erp rect {
  fill: var(--lime-soft);
  stroke: #e9ea7a;
}
.onto-erp text {
  font: 600 11px var(--f-mono);
  fill: var(--lime-ink);
}
.onto-erp {
  animation: floaty 4s ease-in-out infinite;
}
.onto-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}
.onto-foot span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  font-size: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--v-50);
  color: var(--v-800);
}
.onto-foot .i {
  width: 12px;
  height: 12px;
}

/* ---------- 10-step pipeline ---------- */
.p10 {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
  align-items: start;
}
.p10-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.p10-step {
  position: relative;
  overflow: hidden;
  appearance: none;
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 12px 12px 16px;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  display: grid;
  gap: 4px;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.p10-n {
  font: 600 11px/1 var(--f-mono);
  color: var(--v-600);
}
.p10-step b {
  font-size: 13.5px;
  line-height: 1.25;
}
.p10-step small {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.35;
}
.p10-ms {
  font: 500 10.5px/1 var(--f-mono);
  color: var(--muted-2);
}
.p10-step.done {
  border-color: var(--v-200);
  background: var(--v-50);
}
.p10-step.done .p10-n::after {
  content: " ✓";
  color: var(--ok);
}
.p10-step.on {
  border-color: var(--v-500);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15), 0 14px 26px -16px rgba(109, 40, 217, 0.7);
  transform: translateY(-2px);
}
.p10-step.repair.on {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}
.p10-step .sbar {
  left: 10px;
  right: 10px;
  bottom: 5px;
}
.p10-loop {
  position: absolute;
  left: 20%;
  right: 20%;
  top: calc(50% - 4px);
  height: 22px;
  width: 60%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.p10-loop path {
  fill: none;
  stroke: #f59e0b;
  stroke-width: 2;
  stroke-dasharray: 4 4;
  vector-effect: non-scaling-stroke;
  animation: dash 1s linear infinite;
}
.p10[data-active="5"] .p10-loop {
  opacity: 1;
}
.p10-detail {
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-card);
  padding: 18px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.p10-detail [data-step-pane] {
  animation: fadeUp 0.3s ease both;
}
.p10-detail .h4 {
  font-size: 1.1rem;
  margin: 6px 0;
}
.p10-detail p {
  font-size: 14px;
  color: #334155;
}
.p10-total {
  margin-top: auto;
  display: flex;
  gap: 6px;
  align-items: center;
  font: 500 12px/1 var(--f-mono);
  color: var(--ok);
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
@media (max-width: 1000px) {
  .p10 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .p10-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .p10-loop {
    display: none;
  }
}

/* ---------- Harness hero slides ---------- */
.hb-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.hb-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  animation: fadeUp 0.4s ease both;
  animation-delay: var(--d);
}
.hb-list b {
  font-size: 13.5px;
}
.hb-list small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.hb-i {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--v-100);
  color: var(--v-700);
}
.hb-ok {
  color: var(--ok);
  animation: fadeIn 0.3s ease both;
  animation-delay: calc(var(--d) + 0.3s);
  opacity: 0;
}
.hb-vs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.hb-vs > div {
  padding: 12px;
  border-radius: 12px;
  font-size: 13px;
}
.hb-vs p {
  margin-top: 6px;
  color: #334155;
}
.hb-bad {
  background: #fff7f7;
  border: 1px solid #fecaca;
}
.hb-bad .mono-label {
  color: var(--bad);
}
.hb-good {
  background: linear-gradient(160deg, var(--v-50), #fff);
  border: 1px solid var(--v-200);
  animation: winnerGlow 2s ease-in-out infinite;
}
.hb-good .mono-label {
  color: var(--v-700);
}
@keyframes winnerGlow {
  50% {
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.14), 0 10px 24px -12px rgba(124, 58, 237, 0.6);
  }
}
.bt-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  animation: fadeUp 0.35s ease both;
  animation-delay: var(--d);
}
.bt-row:last-of-type {
  border-bottom: 0;
}
.bt-row b {
  font-size: 13.5px;
}
.bt-row small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.bt-row .lg {
  width: 22px;
  height: 22px;
}

/* ---------- Router badge ---------- */
.router-badge {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1e0b44, #4c1d95);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(76, 29, 149, 0.8);
  margin: 0 auto 16px;
}
.rb-mark {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
}
.rb-mark svg {
  animation: spin 10s linear infinite;
}
.rb-mark > i {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px dashed rgba(226, 227, 26, 0.7);
  animation: spin 6s linear infinite reverse;
}
.router-badge b {
  display: block;
  font: 800 13px/1.1 var(--f-brand);
  font-stretch: 125%;
  letter-spacing: 0.04em;
}
.router-badge small {
  font: 500 11px/1 var(--f-mono);
  color: rgba(226, 220, 255, 0.75);
}
.router-wrap {
  display: grid;
  justify-items: center;
}

/* ---------- Skills gallery ---------- */
.skills-g {
  width: 100%;
}
.sg-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}
.sg-tab {
  position: relative;
  overflow: hidden;
  appearance: none;
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  padding: 8px 6px 11px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  font: 600 12px/1.2 var(--f-body);
  color: var(--ink);
  cursor: pointer;
}
.sg-tab .avatar {
  width: 22px;
  height: 22px;
  font-size: 10px;
  flex: none;
}
.sg-tab.on {
  border-color: var(--v-300);
  background: #fff;
  box-shadow: 0 8px 18px -12px rgba(109, 40, 217, 0.6);
}
.sg-tab .sbar {
  left: 8px;
  right: 8px;
  bottom: 3px;
}
.sg-pane {
  display: grid;
  gap: 10px;
}
.sg-card {
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-card);
  animation: fadeUp 0.4s ease both;
}
.sg-card + .sg-card {
  animation-delay: 0.15s;
}
.sg-card .path {
  font-size: 10.5px;
}
.sg-card .h4 {
  margin: 10px 0 4px;
}
.sg-card p {
  font-size: 13px;
  color: var(--muted);
}
.sg-card .apps-row .lg {
  width: 18px;
  height: 18px;
}
@media (max-width: 560px) {
  .sg-tabs {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Sandbox: org boundary ---------- */
.org-b {
  position: relative;
  border-radius: 20px;
  border: 2px dashed var(--v-300);
  background: rgba(255, 255, 255, 0.85);
  padding: 34px 16px 16px;
}
.org-l {
  position: absolute;
  top: -13px;
  left: 16px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--lime);
  font: 600 11.5px/1 var(--f-mono);
}
.org-in {
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1fr;
  align-items: center;
  gap: 4px;
}
.org-src {
  display: grid;
  gap: 6px;
}
.org-src span {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 12.5px;
  padding: 6px 8px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid var(--line);
}
.org-flow {
  position: relative;
  height: 2px;
  background: var(--v-200);
}
.org-flow i {
  position: absolute;
  top: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--v-600);
  animation: hop 1.4s linear infinite;
}
.org-flow i:nth-child(2) {
  animation-delay: 0.45s;
}
.org-flow i:nth-child(3) {
  animation-delay: 0.9s;
}
.org-sb {
  display: grid;
  gap: 4px;
  justify-items: center;
  text-align: center;
  padding: 16px 8px;
  border-radius: 14px;
  background: linear-gradient(160deg, #1e0b44, #4c1d95);
  color: #fff;
  font-size: 13px;
  box-shadow: 0 0 0 6px rgba(139, 92, 246, 0.15);
  animation: floaty 4s ease-in-out infinite;
}
.org-sb b {
  display: flex;
  gap: 6px;
  align-items: center;
}
.org-sb small {
  color: rgba(226, 220, 255, 0.8);
  font: 500 11px var(--f-mono);
}
.org-ans {
  display: grid;
  gap: 2px;
  padding: 10px;
  border-radius: 12px;
  background: var(--ok-bg);
  border: 1px solid #a7f3d0;
  color: var(--ok);
  font-size: 12.5px;
  font-weight: 600;
}
.org-ans small {
  color: #065f46;
  font-weight: 400;
}
.org-out {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff7f7;
  border: 1px solid #fecaca;
  font-size: 13px;
}
.org-out small {
  display: block;
  color: var(--muted);
  font: 500 11px var(--f-mono);
}
.org-x {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bad);
  color: #fff;
  animation: pulse 1.2s infinite;
}
.org-x .i {
  width: 14px;
  height: 14px;
}
@media (max-width: 600px) {
  .org-in {
    grid-template-columns: 1fr;
  }
  .org-flow {
    height: 18px;
    width: 2px;
    justify-self: center;
  }
  .org-flow i {
    display: none;
  }
}
.br-rows {
  display: grid;
  gap: 6px;
  margin: 12px 0;
}
.br-rows div {
  padding: 8px 10px;
  border-radius: 9px;
  background: var(--bg-alt);
  font: 12.5px var(--f-mono);
  animation: fadeUp 0.35s ease both;
  animation-delay: var(--d);
}
.br-block {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 9px 12px;
  border-radius: 10px;
  background: #fff7f7;
  border: 1px solid #fecaca;
  color: var(--bad);
  font-size: 12.5px;
  margin-top: 6px;
  animation: fadeUp 0.4s ease both 0.8s;
}
.br-block.soft {
  background: var(--v-50);
  border-color: var(--v-200);
  color: var(--v-800);
  animation-delay: 1.2s;
}

/* ---------- MCP consent checks ---------- */
.consent {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}
.cs-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  animation: csLight 6.4s ease infinite;
  animation-delay: var(--d);
}
@keyframes csLight {
  0%,
  100% {
    border-color: rgba(255, 255, 255, 0.12);
  }
  8%,
  20% {
    border-color: rgba(74, 222, 128, 0.7);
    background: rgba(74, 222, 128, 0.08);
  }
}
.cs-item b {
  color: #fff;
  font-size: 14px;
}
.cs-item small {
  display: block;
  color: #c4b5fd;
  font-size: 12.5px;
}
.cs-i {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--v-600), #c026d3);
  color: #fff;
}
.cs-ok {
  color: #4ade80;
}
.cs-final {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(226, 227, 26, 0.1);
  border: 1px solid rgba(226, 227, 26, 0.4);
  color: var(--lime);
  font-size: 13.5px;
  font-weight: 600;
}

/* Responsive: hover labels on the orbit would widen the page on touch screens (no hover there). */
@media (max-width: 900px) {
  .orbit-bub em {
    display: none;
  }
}

@media (max-width: 900px) {
  .orbit {
    overflow: hidden;
  }
  .orbit-ring.r1 .orbit-item {
    --rad: 25cqw;
  }
  .orbit-ring.r2 .orbit-item {
    --rad: 41cqw;
  }
}

@media (min-width: 901px) {
  /* The spinning rings are square boxes; their rotated corners must not widen the page. */
  .orbit {
    overflow: clip;
    overflow-clip-margin: 20px;
  }
}

/* ==========================================================================
   Automation builder canvas
   ========================================================================== */

.builder {
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-float);
  overflow: hidden;
}
.bd-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #faf9fe);
}
.bd-title {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.bd-title small {
  color: var(--muted);
  font-size: 12.5px;
}
.bd-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.bd-run-status {
  font: 500 12px/1 var(--f-mono);
  color: var(--muted);
  margin-right: 6px;
}
.bd-body {
  display: grid;
  grid-template-columns: 1fr 280px;
}
.bd-scroll {
  overflow-x: auto;
  min-width: 0;
  background-color: #f7f7f8;
  background-image: radial-gradient(rgba(15, 23, 42, 0.13) 1px, transparent 1px);
  background-size: 16px 16px;
}
.bd-canvas {
  position: relative;
  min-width: 900px;
  aspect-ratio: 1180 / 560;
}
.bd-edges {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.be {
  fill: none;
  stroke: #d4d4d8;
  stroke-width: 2.2;
  vector-effect: non-scaling-stroke;
  transition: stroke 0.3s;
}
.be-tool {
  stroke-dasharray: 5 5;
}
.be.hot {
  stroke: var(--v-400);
}
.be.done {
  stroke: var(--v-600);
}
.be.pulse {
  stroke: var(--v-500);
  animation: dash 0.8s linear infinite;
}
.bd-packet {
  fill: var(--lime);
  stroke: var(--v-700);
  stroke-width: 2;
  opacity: 0;
  filter: drop-shadow(0 0 6px rgba(226, 227, 26, 0.9));
}

/* nodes */
.bn {
  position: absolute;
  transform: translate(-50%, -50%);
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  display: grid;
  justify-items: center;
  z-index: 2;
}
.bn-tile {
  width: 88px;
  height: 88px;
  border-radius: 14px;
  background: #ececef;
  display: grid;
  place-items: center;
  position: relative;
  transition: box-shadow 0.25s, transform 0.25s, background 0.25s;
}
.bn-tile .lg {
  width: 40px;
  height: 40px;
}
.bn-tile .i {
  width: 36px;
  height: 36px;
  stroke-width: 1.6;
}
.bn-text {
  font: 500 30px/1 var(--f-mono);
}
.bn-tile::before,
.bn-tile::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: #52525b;
}
.bn-tile::before {
  left: -14px;
}
.bn-tile::after {
  right: -14px;
}
.bn-trigger .bn-tile {
  border-radius: 44px 14px 14px 44px;
}
.bn-trigger .bn-tile::before {
  display: none;
}
.bn-label {
  position: absolute;
  top: calc(100% + 10px);
  white-space: nowrap;
  font-size: 14.5px;
  font-weight: 500;
}
.bn:hover .bn-tile {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -12px rgba(15, 23, 42, 0.4);
}
.bn.sel .bn-tile {
  box-shadow: 0 0 0 2px var(--v-500), 0 10px 24px -12px rgba(109, 40, 217, 0.6);
}
.bn.active .bn-tile {
  background: #fff;
  box-shadow: 0 0 0 3px var(--v-400), 0 0 0 9px rgba(139, 92, 246, 0.16), 0 12px 26px -10px rgba(109, 40, 217, 0.6);
  animation: nodePulse 0.9s ease-in-out infinite;
}
.bn.done .bn-tile {
  background: #fff;
  box-shadow: 0 0 0 2px var(--v-200);
}
.bn.waiting .bn-tile {
  background: #fff;
  box-shadow: 0 0 0 3px #f59e0b, 0 0 0 9px rgba(245, 158, 11, 0.18);
  animation: nodePulse 1.2s ease-in-out infinite;
}
@keyframes nodePulse {
  50% {
    transform: scale(1.04);
  }
}
/* agent card */
.bn-agent .bn-tile {
  width: 240px;
  height: 92px;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 0 18px;
  justify-items: start;
  text-align: left;
}
.bn-agent .bn-tile b {
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.3;
}
.bn-ports {
  position: absolute;
  bottom: -7px;
  left: 50%;
  width: 180px;
  margin-left: -90px;
  display: flex;
  justify-content: space-between;
}
.bn-ports i {
  width: 10px;
  height: 10px;
  background: #52525b;
  transform: rotate(45deg);
}
/* tools */
.bn-tool .bn-tile {
  width: 92px;
  height: 92px;
  border-radius: 50%;
}
.bn-tool .bn-tile::before,
.bn-tool .bn-tile::after {
  display: none;
}
.bn-tool .bn-tile .lg {
  width: 32px;
  height: 32px;
}
.bn-tool .bn-label {
  white-space: normal;
  width: 112px;
  text-align: center;
  line-height: 1.3;
  font-size: 13px;
}
/* add */
.bn-add {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px -8px rgba(15, 23, 42, 0.6);
}
.bn-add .i {
  width: 20px;
  height: 20px;
}
.bn-add:hover {
  background: var(--v-700);
}
.bn-new {
  animation: newNode 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes newNode {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
}
/* status chips */
.bn-chip {
  position: absolute;
  bottom: calc(100% + 8px);
  white-space: nowrap;
  font: 600 11.5px/1 var(--f-mono);
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--v-50);
  color: var(--v-800);
  border: 1px solid var(--v-200);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}
.bn-chip.show {
  opacity: 1;
  transform: none;
}
.bn-chip.ok {
  background: var(--ok-bg);
  color: var(--ok);
  border-color: #a7f3d0;
}
.bn-chip.warn {
  background: var(--warn-bg);
  color: var(--warn);
  border-color: #fde68a;
}
.bn-tool .bn-chip {
  bottom: auto;
  top: calc(100% + 54px);
}
/* add-step picker */
.bd-picker {
  position: absolute;
  right: 3%;
  top: 52%;
  width: 250px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  box-shadow: var(--sh-float);
  z-index: 5;
  display: grid;
  gap: 6px;
  animation: fadeUp 0.25s ease both;
}
.bd-picker[hidden] {
  display: none;
}
.bd-pick {
  appearance: none;
  display: flex;
  gap: 10px;
  align-items: center;
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 9px 10px;
  font: 500 13.5px/1.2 var(--f-body);
  cursor: pointer;
  box-shadow: inset 3px 0 0 var(--v-300);
}
.bd-pick:hover {
  border-color: var(--v-300);
  background: var(--v-50);
}
/* inspector */
.bd-inspect {
  border-left: 1px solid var(--line);
  padding: 18px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.bi-name {
  font-size: 1.05rem;
}
.bi-type {
  font-size: 13px;
}
.bi-cfg {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.bi-cfg li {
  font: 12px/1.45 var(--f-mono);
  color: #334155;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 9px;
}
.bi-out {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--ok-bg);
  border: 1px solid #a7f3d0;
}
.bi-out p {
  font-size: 13px;
  color: #065f46;
  margin-top: 6px;
}
.bi-log {
  margin-top: auto;
}
.bi-log ol {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: grid;
  gap: 4px;
  max-height: 190px;
  overflow: hidden;
}
.bi-log li {
  font: 11.5px/1.45 var(--f-mono);
  color: var(--muted);
  animation: fadeUp 0.3s ease both;
}
.bi-log li b {
  color: var(--ink);
}
.bi-log time {
  color: var(--v-600);
}
@media (max-width: 1180px) {
  .bd-body {
    grid-template-columns: 1fr;
  }
  .bd-inspect {
    border-left: 0;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;
  }
  .bd-inspect > .mono-label,
  .bi-name,
  .bi-type {
    grid-column: 1;
  }
  .bi-log {
    grid-column: 2;
    grid-row: 1 / span 5;
    margin-top: 0;
  }
}
@media (max-width: 640px) {
  .bd-inspect {
    grid-template-columns: 1fr;
  }
  .bi-log {
    grid-column: 1;
    grid-row: auto;
  }
}

/* ==========================================================================
   Integrations: hub, category and per-app pages
   ========================================================================== */

.hub-search {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hub-search .cat-search {
  max-width: 520px;
  flex: 1 1 320px;
  height: 52px;
  box-shadow: 0 14px 30px -18px rgba(76, 29, 149, 0.45);
}
.hub-count {
  font: 600 13px/1 var(--f-mono);
  color: var(--v-700);
  background: var(--v-50);
  border: 1px solid var(--v-200);
  padding: 8px 12px;
  border-radius: 999px;
}
.hub-cats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hub-cats button {
  border: 1px solid var(--line-2);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font: 600 12.5px/1 var(--f-body);
  color: var(--muted);
  cursor: pointer;
}
.hub-cats button span {
  font: 500 11px var(--f-mono);
  color: var(--muted-2);
  margin-left: 2px;
}
.hub-cats button[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.hub-cats button[aria-pressed="true"] span {
  color: var(--lime);
}
.hub-h {
  font-size: 1.25rem;
  margin: 8px 0 16px;
}
.hub-popular {
  margin-bottom: 44px;
}
.tk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}
.tk {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 4px 12px;
  align-items: center;
  padding: 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  content-visibility: auto;
  contain-intrinsic-size: 120px;
}
.tk[hidden] {
  display: none;
}
.tk:hover {
  color: var(--ink);
  border-color: var(--v-300);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -18px rgba(76, 29, 149, 0.45);
}
.tki {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 8px;
}
.tki-l {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--v-500), #c026d3);
  color: #fff;
  font: 700 12px/1 var(--f-display);
}
.tk-t b {
  display: block;
  font-size: 15px;
  line-height: 1.25;
}
.tk-t small {
  color: var(--muted);
  font-size: 12px;
}
.tk-d {
  grid-column: 1 / -1;
  color: #475569;
  font-size: 13px;
  line-height: 1.5;
  margin-top: 6px;
}
.cat-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.cat-links a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
}
.cat-links a span {
  color: var(--muted);
  font: 500 12px var(--f-mono);
}
.cat-links a:hover {
  border-color: var(--v-300);
}

/* per-app page */
.tkp-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
}
.tkp-logos {
  display: flex;
  align-items: center;
  gap: 0;
}
.tkp-l {
  width: 92px;
  height: 92px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-float);
}
.tkp-l .tki.big {
  width: 48px;
  height: 48px;
}
.tkp-l.insiro {
  background: linear-gradient(160deg, #1e0b44, #5b21b6);
}
.tkp-l.insiro svg {
  width: 44px;
  height: 44px;
  animation: spin 24s linear infinite;
}
.tkp-link {
  width: 70px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--v-400) 0 6px, transparent 6px 12px);
  position: relative;
  animation: dashx 1s linear infinite;
}
@keyframes dashx {
  to {
    background-position: 12px 0;
  }
}
.tkp-link i {
  position: absolute;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
  animation: hop 1.8s ease-in-out infinite;
}
.tkp-link i + i {
  animation-delay: 0.9s;
}
@keyframes hop {
  0% {
    left: -4px;
    opacity: 0;
  }
  15%,
  85% {
    opacity: 1;
  }
  100% {
    left: calc(100% - 6px);
    opacity: 0;
  }
}
.tkp-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}
.tkp-h {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  margin-bottom: 12px;
}
.tkp-facts {
  padding: 22px;
}
.tkp-facts dl {
  margin: 0;
  display: grid;
  gap: 12px;
}
.tkp-facts dt {
  font: 600 11px/1 var(--f-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.tkp-facts dd {
  margin: 4px 0 0;
  font-size: 14px;
}
.tkp-journey {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.tkp-j {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 14px;
}
.tkp-j .tki {
  width: 22px;
  height: 22px;
}
.tkp-j.ins {
  background: var(--ink);
  color: var(--lime);
  font: 800 12px/1 var(--f-brand);
  letter-spacing: 0.08em;
}
.tkp-journey > i {
  width: 28px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--v-400) 0 5px, transparent 5px 10px);
  animation: dashx 0.8s linear infinite;
}
@media (max-width: 860px) {
  .tkp-head,
  .tkp-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Lead forms: phone, calendar, slots */
.phone-row { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 10px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cal { border: 1px solid rgba(124, 58, 237, 0.2); border-radius: 16px; padding: 14px; background: rgba(255, 255, 255, 0.55); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-nav { width: 34px; height: 34px; border-radius: 10px; border: 1px solid rgba(124, 58, 237, 0.25); background: transparent; font-size: 20px; line-height: 1; cursor: pointer; color: inherit; }
.cal-nav:disabled { opacity: 0.35; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow { text-align: center; font-size: 11px; opacity: 0.6; padding: 4px 0; }
.cal-day { aspect-ratio: 1; border: 0; border-radius: 10px; background: transparent; font: inherit; font-size: 13.5px; cursor: pointer; color: inherit; }
.cal-day:hover:not(:disabled) { background: rgba(124, 58, 237, 0.12); }
.cal-day:disabled { opacity: 0.3; cursor: default; }
.cal-day.today { box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.5); }
.cal-day.on, .slot.on { background: linear-gradient(135deg, #7c3aed, #a855f7); color: #fff; }
.cal-slots-t { margin: 14px 0 8px; font-size: 13px; font-weight: 600; }
.slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.slot { padding: 9px 4px; border-radius: 10px; border: 1px solid rgba(124, 58, 237, 0.3); background: transparent; font: inherit; font-size: 13px; cursor: pointer; color: inherit; }
.cal-hint, .cal-tz { font-size: 12.5px; opacity: 0.7; margin: 12px 0 0; }
@media (max-width: 560px) { .phone-row { grid-template-columns: 1fr; } .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
