/* Metroflow: Premium AI workspace design system */
:root {
  --bg: #000000;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #FFFFFF;
  --text-muted: rgba(255, 255, 255, 0.94);
  --text-faint: rgba(255, 255, 255, 0.76);
  --text-body: #F4F4F4;
  --accent: #22E59A;
  --accent-dim: #10B981;
  --accent-deep: #064E3B;
  --accent-wash: rgba(34, 229, 154, 0.1);
  --accent-glow: rgba(34, 229, 154, 0.45);
  --violet: #8B5CF6;
  --violet-wash: rgba(139, 92, 246, 0.12);
  --amber: #F59E0B;
  --amber-wash: rgba(245, 158, 11, 0.1);
  --blue: #3B82F6;
  --blue-wash: rgba(59, 130, 246, 0.1);
  --code-bg: rgba(255, 255, 255, 0.03);
  --shadow-glow: 0 0 80px rgba(34, 229, 154, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: 'Sora', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html[data-theme="light"] {
  --bg: #FFFFFF;
  --surface: rgba(0, 0, 0, 0.03);
  --surface-2: rgba(0, 0, 0, 0.05);
  --border: rgba(0, 0, 0, 0.1);
  --border-strong: rgba(0, 0, 0, 0.16);
  --text: #111111;
  --text-muted: #222222;
  --text-faint: #3D3D3D;
  --text-body: #1A1A1A;
  --accent: #10B981;
  --accent-dim: #059669;
  --accent-deep: #D1FAE5;
  --accent-wash: rgba(16, 185, 129, 0.08);
  --accent-glow: rgba(16, 185, 129, 0.35);
  --code-bg: rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 80px rgba(16, 185, 129, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/*
 * Single scroll root only. overflow-x on body is NOT "visible" and forces
 * overflow-y to auto → a second scrollbar that flashes while scrolling.
 */
html {
  scroll-behavior: smooth;
  overflow-x: clip;
  overflow-y: scroll; /* one stable vertical scrollbar on the document */
  background: var(--bg);
  color-scheme: dark;
}
html[data-theme="light"] { color-scheme: light; }
@view-transition { navigation: auto; }
@supports not (overflow: clip) {
  html { overflow-x: hidden; }
}
[id] { scroll-margin-top: 84px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: visible; /* never a nested scrollport */
  min-height: 100%;
  transition: background 0.35s ease, color 0.35s ease;
}
p { color: var(--text-body); }
::selection { background: var(--accent); color: #000; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.wrap-wide { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.mono { font-family: var(--font-mono); }

/* Global hover pop + glow */
.hover-pop {
  transition: transform 0.28s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}
.hover-pop:hover { transform: translateY(-4px) scale(1.02); }

.glow-border {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
.glow-border::before {
  content: '';
  position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: linear-gradient(135deg, var(--accent) 0%, transparent 40%, transparent 60%, var(--accent-dim) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
  animation: glow-pulse 3s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}

.glow-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
.glow-card::after {
  content: '';
  position: absolute; top: 0; left: -100%; width: 200%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: scan-line 4s linear infinite;
}
@keyframes scan-line {
  0% { transform: translateX(-30%); }
  100% { transform: translateX(30%); }
}
.glow-card:hover {
  border-color: var(--accent-dim);
  box-shadow: 0 12px 40px -8px var(--accent-glow);
}

.glow-line {
  height: 1px; border: none;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}

.grad-text {
  background: linear-gradient(92deg, var(--accent) 0%, var(--accent-dim) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-weight: 600;
}
/* No pulsing status dot before page titles */
.eyebrow::before { display: none; content: none; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

h1, h2, h3 {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em;
  color: var(--text);
}

/* Metroflow logo */
.mf-logo-brand { display: inline-flex; align-items: center; gap: 6px; }
.mf-logo-text { font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.mf-logo-mark { display: inline-flex; align-items: center; }
.mf-logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--mf-logo-size, 32px);
  flex-shrink: 0;
}
.mf-logo-icon .mf-logo-img,
.mf-logo-spin-inner .mf-logo-img,
.mf-logo-img,
.mf-logo-svg {
  display: block;
  height: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.35));
}
.mf-logo-icon .mf-logo-img { height: var(--mf-logo-size, 32px); }
.mf-logo-nav .mf-logo-icon { height: 28px; }
.mf-logo-nav .mf-logo-icon .mf-logo-img { height: 28px; }
.mf-logo-spin-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--mf-logo-size, 80px);
  height: var(--mf-logo-size, 80px);
  flex-shrink: 0;
  perspective: 700px;
}
.mf-logo-spin-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-origin: 50% 50%;
  transform-style: preserve-3d;
  animation: mf-logo-rotate 12s linear infinite;
}
.mf-logo-spin-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}
.mf-logo-spin-face-back { transform: rotateY(180deg); }
.mf-logo-spin-inner .mf-logo-img {
  height: 78%;
  width: auto;
  max-width: 88%;
}
@keyframes mf-logo-rotate {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}
.mf-logo-hero { margin-bottom: 20px; display: flex; justify-content: center; }
.mf-logo-hero .mf-logo-icon { height: 64px; }
.mf-logo-hero .mf-logo-icon .mf-logo-img { height: 64px; }
.mf-logo-strip { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 8px; }
.mf-logo-final { margin: 0 auto 24px; display: flex; justify-content: center; }
.logo-gem {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 15px; color: #000;
}
.logo-text { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.brand { display: flex; align-items: center; gap: 6px; }

/* Nav — stick the wrapper. header.nav is nested in #site-header,
   so sticky on the header alone has no scroll room. */
#site-header {
  position: sticky;
  top: 0;
  z-index: 200;
}
header.nav {
  position: relative;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  overflow: visible;
}
.nav-inner {
  max-width: 1320px; margin: 0 auto;
  padding: 0 20px 0 10px;
  height: 64px;
  display: flex;
  align-items: center;
  position: relative;
}
.nav-inner > .brand {
  flex: 0 0 auto;
  margin-right: 18px;
  position: relative;
  z-index: 2;
}
.nav-links {
  flex: 1 1 auto;
  display: flex; align-items: center;
  justify-content: space-evenly;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  min-width: 0;
  overflow: visible;
  padding: 0 12px;
}
.nav-links > a,
.nav-links > .nav-dropdown {
  position: relative;
  flex-shrink: 0;
}
.nav-links > a,
.nav-dropdown-trigger {
  padding: 8px 18px;
  border-radius: 8px;
}
.nav-links > a {
  transition: color 0.2s, background 0.2s;
}
.nav-links > a:hover, .nav-links > a.active { color: var(--text); }
.nav-links > a:hover { background: var(--surface); }
.nav-links > a.active::after {
  content: ''; position: absolute; left: 18px; right: 18px; bottom: 4px; height: 2px;
  border-radius: 2px;
  background: var(--accent); box-shadow: 0 0 8px var(--accent-glow);
}

/* Features mega menu */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: inline-flex; align-items: center; gap: 4px;
  background: none; border: none; color: var(--text-muted); font-size: 13px;
  font-family: var(--font-body); cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.nav-dropdown-trigger:hover, .nav-dropdown-trigger.active { color: var(--text); }
.nav-dropdown-trigger:hover { background: var(--surface); }
.nav-dropdown-trigger.active::after {
  content: ''; position: absolute; left: 18px; right: 18px; bottom: 4px; height: 2px;
  border-radius: 2px;
  background: var(--accent); box-shadow: 0 0 8px var(--accent-glow);
}
.nav-dropdown { position: relative; }
.nav-dropdown-trigger { position: relative; }
.nav-chevron { transition: transform 0.2s ease; opacity: 0.6; }
.nav-dropdown.is-open .nav-chevron { transform: rotate(180deg); }

.nav-mega-menu {
  position: fixed; top: 72px; left: 50%;
  width: min(920px, calc(100vw - 48px)); z-index: 300;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0,0,0,0.45), var(--shadow-glow);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
  transform: translateX(-50%) translateY(6px);
}
.nav-dropdown.is-open .nav-mega-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-mega-menu.nav-mega-wide { width: min(720px, calc(100vw - 48px)); }
.nav-mega-menu.nav-mega-uc { width: min(960px, calc(100vw - 48px)); }
.nav-mega-menu.nav-mega-narrow { width: min(360px, calc(100vw - 48px)); }
.nav-mega-grid.cols-1 { grid-template-columns: 1fr; }
.nav-mega-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.nav-mega-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .nav-mega-grid.cols-3 { grid-template-columns: 1fr; } }
.offerings-section { padding-top: 48px; }
.offerings-stack { max-width: 100%; margin: 0 auto; padding-bottom: 48px; }
.offerings-section .stack-card { padding: 36px 44px 40px; }
@media (min-width: 900px) {
  .offerings-section .section-head p { max-width: 680px; }
}
.uc-preview-dual { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 640px; margin: 0 auto 28px; }
@media (max-width: 640px) { .uc-preview-dual { grid-template-columns: 1fr; } }
.uc-preview-field-label { display: block; font-family: var(--font-display); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 8px; }
html[data-theme="light"] .uc-preview-field-label { color: var(--accent-dim); }
.nav-mega-inner { padding: 22px 24px 20px; }
.nav-mega-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px;
  padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--border);
}
.nav-mega-head strong { font-family: var(--font-display); font-size: 14px; }
.nav-mega-head span { font-size: 12px; color: var(--text-muted); flex: 1; min-width: 200px; }
.nav-mega-head .link-arrow { font-size: 12px; margin-left: auto; }
.nav-mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .nav-mega-grid { grid-template-columns: repeat(2, 1fr); } }
.nav-mega-col-head { margin-bottom: 10px; }
.nav-mega-col-head h4 {
  font-family: var(--font-display); font-size: 14px; font-weight: 700;
  color: var(--accent); margin-bottom: 5px; letter-spacing: -0.02em;
  text-shadow: 0 0 20px var(--accent-glow);
}
html[data-theme="light"] .nav-mega-col-head h4 { text-shadow: none; color: var(--accent-dim); }
.nav-mega-col-title {
  color: inherit; text-decoration: none;
  transition: color 0.2s ease;
}
.nav-mega-col-title:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.nav-mega-col-head p { font-size: 10px; color: var(--text-faint); line-height: 1.45; margin: 0; }
.nav-mega-links { list-style: none; }
.nav-mega-link {
  display: block; padding: 8px 10px; border-radius: 8px; margin-bottom: 2px;
  border: 1px solid transparent; transition: background 0.2s, border-color 0.2s;
}
.nav-mega-link span { display: block; font-size: 12px; font-weight: 500; color: var(--text); line-height: 1.3; }
.nav-mega-link small { display: block; font-size: 10px; color: var(--text-faint); margin-top: 2px; line-height: 1.35; }
.nav-mega-link:hover { background: var(--accent-wash); border-color: var(--accent-dim); }
.nav-mega-link:hover span { color: var(--accent); }

.nav-mobile-features { border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.nav-mobile-features-toggle {
  width: 100%; text-align: left; padding: 12px 0; background: none; border: none;
  color: var(--text-muted); font-size: 15px; font-family: inherit; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.nav-mobile-features-toggle.is-open { color: var(--accent); }
.nav-mobile-features-panel { padding-bottom: 12px; }
.nav-mobile-feat-col { margin-bottom: 14px; }
.nav-mobile-feat-col h5 a {
  color: var(--accent); text-decoration: none;
}
.nav-mobile-feat-col h5 a:hover { color: var(--text); }
.nav-mobile-feat-col h5 {
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--accent); margin-bottom: 8px;
}
.nav-mobile-feat-col a {
  display: block; font-size: 13px; color: var(--text-muted); padding: 6px 0 6px 10px;
  border-bottom: none !important;
}
.nav-mobile-feat-col a:hover { color: var(--accent); }
.nav-mobile-feat-all {
  display: block; font-family: var(--font-mono); font-size: 12px; color: var(--accent) !important;
  padding: 10px 0 !important; border-top: 1px solid var(--border); margin-top: 8px;
}

.nav-end {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 8px;
  margin-left: 14px;
  position: relative;
  z-index: 2;
}
.nav-right {
  display: flex; align-items: center; gap: 6px;
  padding-left: 10px;
  border-left: 1px solid var(--border);
}

.theme-toggle {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-muted); flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1), opacity 0.35s ease, border-color 0.2s, background 0.2s;
}
.theme-toggle:hover { border-color: var(--accent-dim); color: var(--text); background: var(--accent-wash); }
.theme-toggle svg { width: 17px; height: 17px; }
.icon-sun { display: none; }
html[data-theme="light"] .icon-moon { display: none; }
html[data-theme="light"] .icon-sun { display: block; }

#themeToggle.is-scroll-hidden {
  opacity: 0;
  transform: translateY(-14px) scale(0.92);
  pointer-events: none;
}

.nav-toggle { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); align-items: center; justify-content: center; cursor: pointer; color: var(--text-muted); }
.nav-toggle svg { width: 18px; height: 18px; }

/* Mobile nav: hidden until opened (fixes stray tab bug) */
.nav-mobile-overlay {
  display: none; position: fixed; inset: 0; z-index: 250;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
}
.nav-mobile-overlay.is-open { display: block; }
.nav-mobile {
  display: none; position: fixed; top: 0; right: 0; bottom: 0; z-index: 260;
  width: min(320px, 85vw); background: var(--bg);
  border-left: 1px solid var(--border);
  padding: 72px 24px 28px; flex-direction: column; gap: 4px;
  transform: translateX(100%); transition: transform 0.3s ease;
  overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  max-height: 100dvh;
}
.nav-mobile.is-open { display: flex; transform: translateX(0); }
.nav-mobile > a {
  padding: 12px 0; font-size: 15px; color: var(--text-muted); border-bottom: 1px solid var(--border);
}
.nav-mobile > a.active { color: var(--accent); }
.nav-mobile > a.nav-mobile-mode {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-weight: 700;
}
.nav-mobile > a.nav-mobile-mode .nav-mobile-mode-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  display: block;
}
html[data-theme="light"] .nav-mobile > a.nav-mobile-mode {
  color: var(--accent-dim);
}

/* Mobile drawer actions — grouped, not four stacked ugly pills */
.nav-mobile-actions {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nav-m-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.nav-mobile .nav-m-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surface);
  box-sizing: border-box;
  text-decoration: none;
  cursor: pointer;
}
.nav-mobile .nav-m-cta svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav-mobile .nav-m-cta-primary {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  font-weight: 700;
  padding: 14px 16px;
}
.nav-mobile .nav-m-cta-ghost:hover { border-color: var(--accent-dim); color: var(--accent); }
.nav-mobile .nav-m-cta-theme {
  background: transparent;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 13px;
  padding: 10px 14px;
}
.nav-mobile .nav-m-cta-theme .icon-sun { display: none; }
html[data-theme="light"] .nav-mobile .nav-m-cta-theme .icon-moon { display: none; }
html[data-theme="light"] .nav-mobile .nav-m-cta-theme .icon-sun { display: block; }

.btn {
  font-family: var(--font-body); font-size: 14px; font-weight: 600; padding: 9px 16px;
  border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  transition: all 0.22s ease; white-space: nowrap; background: transparent; color: var(--text);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--accent-dim); }
.btn-primary { background: var(--accent); color: #000; border-color: var(--accent); font-weight: 700; }
.btn-primary:hover { box-shadow: 0 0 28px var(--accent-glow); }
.btn-lg { padding: 13px 22px; font-size: 15px; }

/* Hero: stacked layout, large demo */
.hero {
  padding: 56px 0 40px;
  position: relative;
}
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, black, transparent);
}
.hero-stacked { position: relative; z-index: 1; }
.hero-copy { text-align: center; max-width: 960px; margin: 0 auto 40px; }
.hero-eyebrow { justify-content: center; margin-bottom: 14px; }
.hero-title {
  font-size: clamp(2.35rem, 5.4vw, 3.85rem);
  line-height: 1.06; margin: 0 0 10px; font-weight: 700;
  letter-spacing: -0.045em; color: var(--text);
  text-wrap: balance;
}
html[data-theme="dark"] .hero-title {
  text-shadow: 0 0 60px rgba(255, 255, 255, 0.06);
}
.hero-rotator {
  display: flex; align-items: center; justify-content: center;
  margin: 4px 0 20px; padding: 0 12px;
}
.hero-rotator-shell {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: clamp(1.85rem, 4vw, 2.4rem);
  min-width: 0;
  max-width: 100%;
  padding: 6px 12px 12px;
  overflow: visible;
}
.hero-rotator-glow {
  position: absolute; top: 52%; left: 50%; pointer-events: none;
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
}
.hero-rotator-glow-a {
  width: min(420px, 70vw); height: clamp(36px, 6vw, 52px);
  background: radial-gradient(ellipse 85% 100% at 50% 50%,
    rgba(16, 185, 129, 0.18) 0%,
    rgba(6, 78, 59, 0.12) 42%,
    rgba(34, 229, 154, 0.05) 72%,
    transparent 88%);
  filter: blur(26px);
  animation: hero-glow-luxury 16s cubic-bezier(0.42, 0, 0.58, 1) infinite;
}
.hero-rotator-glow-b {
  width: min(520px, 82vw); height: clamp(42px, 7vw, 60px);
  background: radial-gradient(ellipse 100% 100% at 50% 50%,
    rgba(52, 211, 153, 0.07) 0%,
    rgba(16, 185, 129, 0.08) 48%,
    transparent 80%);
  filter: blur(32px);
  animation: hero-glow-luxury 16s cubic-bezier(0.42, 0, 0.58, 1) infinite;
}
@keyframes hero-glow-luxury {
  0%, 100% {
    transform: translate(calc(-50% - 28%), -50%) scaleX(0.94);
    opacity: 0.38;
  }
  50% {
    transform: translate(calc(-50% + 28%), -50%) scaleX(1.06);
    opacity: 0.52;
  }
}
.hero-rotator-text {
  position: relative; z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.4vw, 1.55rem);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.2;
  background: linear-gradient(108deg, #064E3B 0%, #0D9488 24%, #10B981 48%, #34D399 74%, #6EE7B7 100%);
  background-size: 180% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: hero-rotator-shimmer 14s ease-in-out infinite;
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s ease;
  white-space: nowrap;
  text-wrap: nowrap;
  max-width: 100%;
  padding: 0 2px;
}
html[data-theme="light"] .hero-rotator-text {
  background: linear-gradient(108deg, #064E3B 0%, #047857 32%, #059669 62%, #10B981 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
@keyframes hero-rotator-shimmer {
  0%, 100% { background-position: 5% center; }
  50% { background-position: 95% center; }
}
.hero-rotator-line {
  position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%);
  width: min(200px, 48%); height: 1.5px; border-radius: 2px; z-index: 1;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(6, 78, 59, 0.55) 22%,
    rgba(16, 185, 129, 0.85) 50%,
    rgba(34, 229, 154, 0.7) 78%,
    transparent 100%);
  background-size: 200% 100%;
  animation: hero-line-luxury 16s cubic-bezier(0.42, 0, 0.58, 1) infinite;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.35), 0 0 28px rgba(34, 229, 154, 0.12);
  opacity: 0.7;
}
@keyframes hero-line-luxury {
  0%, 100% { background-position: 0% 0; opacity: 0.55; }
  50% { background-position: 100% 0; opacity: 0.85; }
}
.hero-rotator-text.is-out {
  opacity: 0;
  transform: translateY(22px) scale(0.94);
  filter: blur(6px);
}
.hero-rotator-text.is-in {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}
.hero-sub {
  font-size: clamp(16px, 2.2vw, 19px); line-height: 1.65;
  color: var(--text-body); margin: 0 auto 30px; max-width: 680px;
  font-weight: 500; text-wrap: balance;
}
html[data-theme="dark"] .hero-sub { color: rgba(255, 255, 255, 0.88); }
html[data-theme="light"] .hero-sub { color: rgba(0, 0, 0, 0.82); }

/* ONCE — amber, blinks once on each fresh load/refresh */
.hero-once {
  color: #F59E0B;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: inline-block;
  animation: hero-once-blink 1.1s ease-in-out 1.6s 1 both;
}
html[data-theme="dark"] .hero-once {
  text-shadow: 0 0 18px rgba(245, 158, 11, 0.45);
}
@keyframes hero-once-blink {
  0%   { opacity: 1; }
  35%  { opacity: 0.15; }
  70%  { opacity: 1; }
  100% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-once { animation: none; }
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; justify-content: center; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: center; }
.ht { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); font-family: var(--font-mono); }
.ht-check { color: var(--accent); font-size: 11px; }

.hero-workspace-wrap { position: relative; max-width: 1320px; margin: 0 auto; }
.hero-demo-reveal-btn {
  display: none;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-dim);
  background: var(--accent);
  color: #000;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.hero-demo-reveal-btn:hover { box-shadow: 0 0 24px var(--accent-glow); }
.uc-preview-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin: 8px 0 0;
}
@media (min-width: 901px) {
  .hero-demo-reveal-btn { display: none !important; }
  .hero-demo-inner { display: block !important; }
  .uc-preview-empty { display: none; }
}
.hero-workspace-wrap .ws-card { min-height: 560px; }
.hero-demo-caption {
  text-align: center; margin-top: 16px;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-faint);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.hero-demo-caption .pulse-dot { flex-shrink: 0; }
.hero-workspace-wrap .ws-orb {
  position: absolute; z-index: 5; background: var(--bg);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 14px; box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  animation: float-orb 5s ease-in-out infinite;
}
.ws-orb-t { top: -12px; right: -8px; }
.ws-orb-b { bottom: -10px; left: -12px; animation-delay: 1.2s; }
.ws-orb-num { font-size: 14px; font-weight: 800; color: var(--accent); }
.ws-orb-lbl { font-size: 10px; color: var(--text-faint); font-family: var(--font-mono); }
@keyframes float-orb { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Interactive workspace */
.ws-card { background: var(--bg); border-radius: 20px; position: relative; box-shadow: 0 40px 80px rgba(0,0,0,0.5), var(--shadow-glow); }
.ws-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px; border-bottom: 1px solid var(--border); background: var(--surface);
}
.ws-dots { display: flex; gap: 6px; }
.ws-dots span { width: 9px; height: 9px; border-radius: 50%; }
.dot-r { background: #FF5F57; } .dot-y { background: #FEBC2E; } .dot-g { background: #28C840; }
.ws-title { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); }
.ws-ver { font-family: var(--font-mono); font-size: 10px; color: var(--text-faint); }
/* Onboarding stepper */
.ws-stepper {
  display: flex; align-items: center; justify-content: center; gap: 0;
  padding: 14px 20px; border-bottom: 1px solid var(--border); background: var(--surface);
  flex-wrap: wrap;
}
.ws-step { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-faint); font-family: var(--font-mono); }
.ws-step-dot {
  width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700;
}
.ws-step.active .ws-step-dot { border-color: var(--accent); color: var(--accent); background: var(--accent-wash); box-shadow: 0 0 12px var(--accent-glow); }
.ws-step.done .ws-step-dot { border-color: var(--accent-dim); background: var(--accent); color: #000; }
.ws-step.active .ws-step-label, .ws-step.done .ws-step-label { color: var(--text); }
.ws-step-line { width: 28px; height: 1px; background: var(--border); margin: 0 6px; }
.ws-step.done + .ws-step-line { background: var(--accent-dim); }

.ws-stage { min-height: 440px; padding: 24px 28px; overflow: auto; }
@media (max-width: 600px) { .ws-stage { padding: 16px; min-height: 380px; } }

.ws-journey-head { text-align: center; margin-bottom: 24px; }
.ws-connect, .ws-graph { text-align: center; }
.ws-connect .ws-conn-grid { text-align: left; }
.ws-journey-head h3 { font-size: 1.25rem; margin-bottom: 8px; }
.ws-journey-head p { font-size: 13px; color: var(--text-muted); max-width: 420px; margin: 0 auto; }

.ws-auth-grid { display: flex; flex-direction: column; gap: 10px; max-width: 340px; margin: 0 auto 16px; }
.ws-auth-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 20px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: inherit; width: 100%;
}
.ws-auth-primary { background: var(--accent); color: #000; border-color: var(--accent); }
.ws-auth-hint { text-align: center; font-family: var(--font-mono); font-size: 10px; color: var(--text-faint); display: flex; align-items: center; justify-content: center; gap: 8px; }

.ws-conn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
@media (max-width: 700px) { .ws-conn-grid { grid-template-columns: 1fr; } }
.ws-conn-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 18px 16px; cursor: pointer; position: relative; color: inherit;
}
.ws-conn-card.selected { border-color: var(--accent-dim); background: var(--accent-wash); }
.ws-conn-icon { font-family: var(--font-mono); font-size: 18px; color: var(--accent); }
.ws-conn-card strong { font-size: 14px; display: block; }
.ws-conn-card small { font-size: 11px; color: var(--text-faint); }
.ws-conn-check {
  position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; border-radius: 50%;
  border: 1px solid var(--border); font-size: 10px; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s;
}
.ws-conn-card.selected .ws-conn-check { opacity: 1; background: var(--accent); color: #000; border-color: var(--accent); }

.ws-cta-btn {
  display: inline-flex; align-items: center; justify-content: center; margin: 0 auto;
  padding: 12px 24px; border-radius: var(--radius-sm); border: none;
  background: var(--accent); color: #000; font-weight: 700; font-size: 14px;
  cursor: pointer; font-family: inherit; width: 100%; max-width: 320px;
}
.ws-cta-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.ws-cta-btn:not(:disabled):hover { box-shadow: 0 0 24px var(--accent-glow); }

.ws-sync-list { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.ws-sync-top { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 6px; font-family: var(--font-mono); }
.ws-sync-pct { color: var(--accent); }
.ws-sync-bar { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.ws-sync-fill { height: 100%; background: linear-gradient(90deg, var(--accent-dim), var(--accent)); border-radius: 3px; transition: width 0.15s ease; }
.ws-sync-status { text-align: center; margin-top: 20px; font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); display: flex; align-items: center; justify-content: center; gap: 8px; }

.ws-graph-svg { width: 100%; max-width: 560px; margin: 0 auto; display: block; }
.g-node rect { fill: var(--surface); stroke: var(--accent-dim); stroke-width: 1.5; }
.g-node text { fill: var(--text-muted); font-family: JetBrains Mono, monospace; font-size: 10px; }
.g-edge { stroke-dasharray: 6 4; animation: dash-flow 1.2s linear infinite; }
.ws-graph-stats {
  display: flex; justify-content: center; gap: 28px; margin: 20px 0;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-muted);
}
.ws-graph-stats strong { color: var(--accent); font-size: 16px; display: block; }

.ws-dashboard { display: grid; grid-template-columns: 140px 1fr; gap: 0; min-height: 400px; }
@media (max-width: 600px) { .ws-dashboard { grid-template-columns: 1fr; } .ws-dash-nav { flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--border); } }
.ws-dash-nav { border-right: 1px solid var(--border); padding: 10px 8px; display: flex; flex-direction: column; gap: 4px; background: var(--surface); }
.ws-dash-tab {
  padding: 10px 12px; border-radius: 8px; border: 1px solid transparent; background: none;
  color: var(--text-muted); font-size: 11px; text-align: left; cursor: pointer; font-family: var(--font-mono);
}
.ws-dash-tab:hover, .ws-dash-tab.active { background: var(--accent-wash); color: var(--text); border-color: var(--accent-dim); }
.ws-dash-main { padding: 16px 20px; overflow: auto; }
.ws-dash-welcome h3 { font-size: 1.1rem; margin-bottom: 6px; }
.ws-dash-welcome p { font-size: 12px; color: var(--text-muted); margin-bottom: 16px; }
.ws-dash-badge {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10px;
  color: var(--accent); padding: 6px 12px; border: 1px solid var(--accent-dim); border-radius: 20px;
  background: var(--accent-wash); margin-bottom: 14px;
}
.ws-dash-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 600px) { .ws-dash-cards { grid-template-columns: 1fr; } }
.ws-dash-card {
  padding: 14px; text-align: left; cursor: pointer; border: none; color: inherit; font-family: inherit;
  background: var(--surface);
}
.ws-dash-card strong { display: block; font-size: 13px; margin-bottom: 4px; }
.ws-dash-card span { font-size: 11px; color: var(--text-faint); }

.ws-welcome-title { font-size: 1.1rem; font-weight: 700; text-align: center; margin-bottom: 6px; }
.ws-welcome-sub { font-size: 12px; color: var(--text-muted); text-align: center; margin-bottom: 16px; }
.ws-onboard-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.ws-onboard-step {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px; text-align: left;
  background: var(--surface); cursor: pointer; border: none; color: inherit; font-family: inherit;
}
.ws-onboard-step span:first-child {
  width: 22px; height: 22px; border-radius: 6px; background: var(--accent-wash);
  color: var(--accent); font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ws-onboard-step strong { display: block; font-size: 12px; margin-bottom: 2px; }
.ws-onboard-step small { font-size: 10px; color: var(--text-faint); }
.ws-loaded-badge {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10px; color: var(--text-faint);
  padding: 8px; border: 1px dashed var(--border); border-radius: 8px;
}
.pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); animation: pulse-dot 2s infinite; }

.ws-panel-head { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 12px; font-weight: 600; }
.ws-tag { font-family: var(--font-mono); font-size: 10px; color: var(--text-faint); padding: 2px 8px; border: 1px solid var(--border); border-radius: 20px; }
.ws-tag-live { color: var(--accent); border-color: var(--accent-dim); }
.ws-table-row, .ws-conn-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 6px; cursor: pointer;
}
.ws-table-icon { color: var(--accent); font-size: 14px; }
.ws-table-info { flex: 1; }
.ws-table-info strong { display: block; font-size: 12px; font-family: var(--font-mono); }
.ws-table-info small { font-size: 10px; color: var(--text-faint); }
.ws-table-meta { font-family: var(--font-mono); font-size: 9px; color: var(--text-faint); text-align: right; }
.ws-conn-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 6px var(--accent-glow); }

.ws-editor-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.ws-tab { font-family: var(--font-mono); font-size: 10px; padding: 5px 10px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); cursor: pointer; }
.ws-tab.active { border-color: var(--accent-dim); color: var(--accent); background: var(--accent-wash); }
.ws-code, .ws-code-sm {
  font-family: var(--font-mono); font-size: 11px; line-height: 1.65;
  background: var(--code-bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 12px; color: var(--text-muted); white-space: pre-wrap; overflow-x: auto;
}
.ws-code .c-kw, .ws-code-sm .c-kw { color: var(--accent); }
.ws-code .c-ref { color: var(--text); }
.ws-editor-hint { font-size: 10px; color: var(--text-faint); margin-top: 10px; font-family: var(--font-mono); }

.ws-chat-area { margin-bottom: 12px; }
.ws-chat-msg { font-size: 12px; line-height: 1.55; margin-bottom: 10px; padding: 10px 12px; border-radius: 10px; }
.ws-chat-msg.user { background: var(--surface-2); border: 1px solid var(--border); margin-left: 20%; }
.ws-chat-msg.bot { color: var(--text-muted); }
.ws-agent-label { display: block; font-family: var(--font-mono); font-size: 10px; color: var(--accent); margin-bottom: 4px; }
.ws-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ws-pill {
  font-size: 10px; padding: 6px 10px; border-radius: 20px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); cursor: pointer;
}
.ws-pill:hover { border-color: var(--accent-dim); color: var(--accent); }
.ws-input-row { display: flex; gap: 8px; }
.ws-input-field {
  flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 12px; font-size: 12px; color: var(--text); font-family: var(--font-body);
}
.ws-input-field:focus { outline: none; border-color: var(--accent-dim); box-shadow: 0 0 0 3px var(--accent-wash); }
.ws-send {
  background: var(--accent); color: #000; border: none; border-radius: 8px;
  padding: 8px 14px; font-size: 12px; font-weight: 700; cursor: pointer;
}

.ws-lineage-svg { width: 100%; height: auto; }
.ws-lineage-svg .flow-line {
  fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 6 4;
  animation: dash-flow 1.2s linear infinite; opacity: 0.7;
}
@keyframes dash-flow { to { stroke-dashoffset: -20; } }
.ln-node rect { fill: var(--surface); stroke: var(--border-strong); transition: stroke 0.2s; }
.ln-node text { fill: var(--text-muted); font-family: JetBrains Mono; font-size: 9px; }
.ln-node:hover rect, .ln-node.active-node rect { stroke: var(--accent); fill: var(--accent-wash); }
.ln-node:hover text, .ln-node.active-node text { fill: var(--text); }
.ws-lineage-detail { margin-top: 10px; padding: 10px; font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); }

.ws-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border); padding: 12px 18px; background: var(--surface);
}
.ws-stat { text-align: center; }
.ws-stat-num { font-size: 15px; font-weight: 800; }
.ws-stat-num.accent { color: var(--accent); }
.ws-stat-lbl { font-size: 9px; color: var(--text-faint); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; }

/* Sections */
section { padding: 88px 0; }
.section-head { max-width: 620px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); line-height: 1.12; margin-bottom: 14px; }
.section-head p { color: var(--text-body); font-size: 16px; line-height: 1.65; }

/* SVG illustrations: theme-aware, no raster */
.illus-art {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  position: relative; min-height: 300px; background: var(--surface);
}
.illus-art svg { width: 100%; height: 100%; display: block; }
.illus-overlay { position: relative; z-index: 1; padding: 28px; }

.stats-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; margin: 48px 0;
}
@media (max-width: 760px) { .stats-strip { grid-template-columns: repeat(2, 1fr); } }
.stat-cell { background: var(--bg); padding: 28px 20px; text-align: center; }
.stat-cell .stat-num { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; color: var(--accent); font-family: var(--font-display); }
.stat-cell .stat-lbl { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

.bento-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.bento-card {
  padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px;
  grid-column: span 4; min-height: 200px;
}
.bento-card.wide { grid-column: span 8; }
.bento-card.tall { grid-column: span 4; grid-row: span 2; }
.bento-card.accent-green { border-color: var(--accent-dim); background: linear-gradient(135deg, var(--accent-wash), transparent); }
.bento-card.accent-violet { border-color: rgba(139,92,246,0.4); background: linear-gradient(135deg, var(--violet-wash), transparent); }
.bento-card.accent-amber { border-color: rgba(245,158,11,0.35); background: linear-gradient(135deg, var(--amber-wash), transparent); }
.bento-icon { font-size: 22px; margin-bottom: 2px; line-height: 1; }
.bento-card h3 { font-size: 1.22rem; font-weight: 600; color: var(--text); line-height: 1.25; margin: 0; }
.bento-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin: 0; flex: 1; }
@media (max-width: 960px) { .bento-card, .bento-card.wide, .bento-card.tall { grid-column: span 12; grid-row: auto; } }

.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial-card { padding: 28px 24px; }
.testimonial-card blockquote { font-size: 14px; color: var(--text-muted); line-height: 1.65; margin-bottom: 18px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--accent-wash);
  border: 1px solid var(--accent-dim); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--accent);
}
.testimonial-author strong { display: block; font-size: 13px; }
.testimonial-author span { font-size: 11px; color: var(--text-faint); }

.uc-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 32px; }
.uc-tab {
  padding: 10px 18px; border-radius: 20px; border: 1px solid var(--border);
  background: transparent; color: var(--text-muted); font-size: 13px; cursor: pointer; font-family: inherit;
}
.uc-tab.active, .uc-tab:hover { border-color: var(--accent-dim); color: var(--accent); background: var(--accent-wash); }

.uc-preview-wrap { max-width: 960px; margin: 0 auto; }
.uc-preview-label {
  display: block; text-align: center; font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); margin-bottom: 10px;
}
.uc-preview-select-wrap {
  position: relative; max-width: 360px; margin: 0 auto 32px;
}
.uc-custom-select { position: relative; }
.uc-custom-select-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text); font-family: var(--font-display); font-size: 15px; font-weight: 600;
  cursor: pointer; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  text-align: left;
}
.uc-custom-select-trigger:hover,
.uc-custom-select-trigger:focus {
  outline: none; border-color: var(--accent-dim); background: var(--accent-wash);
}
.uc-custom-select.is-open .uc-custom-select-trigger {
  border-color: var(--accent-dim); background: var(--accent-wash);
  box-shadow: 0 0 0 3px var(--accent-wash);
}
.uc-custom-select-value { flex: 1; min-width: 0; }
.uc-preview-chevron {
  flex-shrink: 0; color: var(--text-faint);
  transition: transform 0.2s ease;
}
.uc-custom-select.is-open .uc-preview-chevron { transform: rotate(180deg); }
.uc-custom-select-menu {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 50;
  max-height: min(340px, 52vh); overflow-y: auto;
  border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--bg); box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  padding: 8px 0;
}
html[data-theme="light"] .uc-custom-select-menu {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}
.uc-custom-select-group + .uc-custom-select-group {
  margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--border);
}
.uc-custom-select-group-label {
  padding: 8px 16px 6px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}
html[data-theme="light"] .uc-custom-select-group-label { color: var(--accent-dim); }
.uc-custom-select-option {
  display: block; width: 100%; text-align: left;
  padding: 10px 16px; border: none; background: transparent;
  color: var(--text-muted); font-family: var(--font-body); font-size: 14px;
  cursor: pointer; transition: background 0.15s, color 0.15s;
}
.uc-custom-select-option:hover {
  background: var(--accent-wash); color: var(--text);
}
.uc-custom-select-option.selected,
.uc-custom-select-option[aria-selected="true"] {
  background: var(--accent-wash); color: var(--accent); font-weight: 600;
}
.uc-preview-tag {
  display: inline-block; font-family: var(--font-display); font-size: 13px;
  font-weight: 600; letter-spacing: -0.02em; color: var(--accent); margin-bottom: 6px;
  text-shadow: 0 0 24px var(--accent-glow);
}
.uc-preview-query {
  font-family: var(--font-mono); font-size: 12px; color: var(--text-muted);
  padding: 10px 14px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--code-bg); margin-bottom: 16px; line-height: 1.5;
}
.uc-preview-all { text-align: center; margin-top: 28px; }
.uc-panel { display: none; }
.uc-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .uc-panel.active { grid-template-columns: 1fr; } }
.uc-panel h3 { font-size: 1.5rem; font-weight: 600; color: var(--text); line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.035em; }
.uc-panel p { color: var(--text-muted); font-size: 15px; line-height: 1.65; margin-bottom: 16px; }
.uc-metrics { display: flex; gap: 24px; flex-wrap: wrap; }
.uc-metric strong { display: block; font-size: 1.5rem; color: var(--accent); }
.uc-metric span { font-size: 11px; color: var(--text-faint); font-family: var(--font-mono); }

.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; padding: 20px 0; background: none; border: none;
  color: var(--text); font-size: 15px; font-weight: 600; cursor: pointer; font-family: var(--font-display);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q::after { content: '+'; color: var(--accent); font-size: 18px; transition: transform 0.2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-item.open .faq-a { max-height: 200px; }
.faq-a p { padding: 0 0 20px; color: var(--text-muted); font-size: 14px; line-height: 1.65; }

.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare-table th, .compare-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); text-align: left; }
.compare-table th { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); }
.compare-table .check { color: var(--accent); }
.compare-table .cross { color: var(--text-faint); }
.compare-col-mf { background: var(--accent-wash); }

.brand-logo {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}
html[data-theme="light"] .brand-logo-img.brand-logo-invert { filter: brightness(0); }
html[data-theme="dark"] .brand-logo-img.brand-logo-invert {
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.nav-mobile-theme { display: none; }

.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 700px) { .before-after { grid-template-columns: 1fr; } }
.ba-card { padding: 20px 20px 22px; }
.ba-card.before { border-color: rgba(245,158,11,0.3); }
.ba-card.after { border-color: var(--accent-dim); background: var(--accent-wash); }
.ba-label {
  font-family: var(--font-display); font-size: 12px; font-weight: 600;
  letter-spacing: -0.01em; margin: 0 0 10px; line-height: 1.2;
}
.ba-card.before .ba-label { color: var(--amber); }
.ba-card.after .ba-label { color: var(--accent); }
.ba-card ul { list-style: none; }
.ba-card li { font-size: 13px; color: var(--text-muted); padding: 6px 0 6px 14px; position: relative; }
.ba-card li::before { content: '·'; position: absolute; left: 0; color: var(--text-faint); }

.trust-badges { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }
.trust-badge {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-muted);
  padding: 8px 14px; border: 1px solid var(--border); border-radius: 8px;
  display: flex; align-items: center; gap: 8px;
}

.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .split-section { grid-template-columns: 1fr; } }

.pain-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 700px) { .pain-grid { grid-template-columns: 1fr; } }
.pain-card { padding: 20px 20px 22px; }
.pain-card p { color: var(--text); font-size: 15px; font-weight: 600; font-family: var(--font-display); line-height: 1.35; margin: 0; letter-spacing: -0.02em; }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 6px; }
.feature-card .fc-num {
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  color: var(--accent); letter-spacing: -0.02em; line-height: 1.25; margin: 0;
  text-shadow: 0 0 24px var(--accent-glow);
}
.feature-card h3 { font-size: 1.28rem; font-weight: 600; color: var(--text); line-height: 1.25; margin: 0; letter-spacing: -0.035em; }
.feature-card p { color: var(--text-muted); font-size: 14px; line-height: 1.6; margin: 0; }

.phase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
@media (max-width: 960px) { .phase-grid { grid-template-columns: 1fr; } }

.feature-hub-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
@media (max-width: 720px) { .feature-hub-grid { grid-template-columns: 1fr; } }
.feature-hub-card {
  display: flex; flex-direction: column; gap: 10px; padding: 24px;
  color: inherit; text-decoration: none; min-height: 100%;
}
.feature-hub-card h3 {
  font-size: 1.15rem; font-weight: 600; color: var(--text);
  margin: 0; letter-spacing: -0.03em; line-height: 1.25;
}
.feature-hub-card p {
  font-size: 14px; color: var(--text-muted); line-height: 1.6; margin: 0; flex: 1;
}
.feature-hub-card .link-arrow { margin-top: 8px; font-size: 13px; }
/* Stacking sticky cards */
.stack-section { padding: 48px 0 80px; }
.stack-group { display: flex; flex-direction: column; gap: 0; isolation: isolate; }
.stack-card {
  position: sticky;
  padding: 32px 36px 36px;
  margin-bottom: 72px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.stack-card.glow-card { background: var(--bg); }
[data-theme="light"] .stack-card { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08); }
.stack-card:last-child { margin-bottom: 0; }
.stack-card:nth-child(1) { top: 88px; z-index: 1; }
.stack-card:nth-child(2) { top: 116px; z-index: 2; }
.stack-card:nth-child(3) { top: 144px; z-index: 3; }
.stack-card:nth-child(4) { top: 172px; z-index: 4; }
.stack-card:nth-child(5) { top: 200px; z-index: 5; }
.stack-card-tag { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 8px; display: block; }
.stack-card h3 { font-size: 1.35rem; font-weight: 600; margin: 0 0 12px; letter-spacing: -0.03em; }
.stack-card p { color: var(--text-muted); font-size: 15px; line-height: 1.65; margin-bottom: 14px; }
.stack-card ul { list-style: none; margin: 0; }
.stack-card li { font-size: 14px; color: var(--text-body); padding: 6px 0 6px 18px; position: relative; line-height: 1.55; }
.stack-card li::before { content: '→'; position: absolute; left: 0; color: var(--accent); font-size: 11px; }
.stack-card .code-block { margin-top: 18px; max-width: 100%; }
.stack-card-visual { margin-top: 20px; padding: 16px; min-height: 200px; display: flex; align-items: center; justify-content: center; }
.stack-card-visual .code-block { margin-top: 0; }
@media (max-width: 720px) {
  .stack-card:nth-child(1) { top: 72px; }
  .stack-card:nth-child(2) { top: 92px; }
  .stack-card:nth-child(3) { top: 112px; }
  .stack-card:nth-child(4) { top: 132px; }
  .stack-card:nth-child(5) { top: 152px; }
  .stack-card { padding: 24px 22px 28px; margin-bottom: 48px; }
  .stack-card:last-child { margin-bottom: 0; }
}

.feature-hub-card ul {
  list-style: none; margin: 8px 0 0; padding: 0;
}
.feature-hub-card li {
  font-size: 13px; color: var(--text-body); padding: 4px 0 4px 16px;
  position: relative; line-height: 1.5;
}
.feature-hub-card li::before {
  content: '→'; position: absolute; left: 0; color: var(--accent); font-size: 10px;
}

.phase-card { padding: 22px 24px 26px; }
.phase-label {
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  color: var(--accent); letter-spacing: -0.02em; line-height: 1.25; margin: 0 0 8px;
  text-shadow: 0 0 24px var(--accent-glow);
}
.phase-card h3 { font-size: 1.3rem; font-weight: 600; color: var(--text); line-height: 1.25; margin: 0 0 10px; letter-spacing: -0.035em; }
.phase-card p { color: var(--text-muted); font-size: 14px; line-height: 1.6; margin-bottom: 14px; }
.phase-list { list-style: none; }
.phase-list li { font-size: 13px; color: var(--text-muted); padding: 6px 0 6px 14px; position: relative; }
.phase-list li::before { content: ''; position: absolute; left: 0; top: 12px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

/* Integrations v2 */
.int-search-wrap { max-width: 480px; margin: 0 auto 40px; position: relative; }
.int-search {
  width: 100%; padding: 14px 18px 14px 44px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-size: 15px; font-family: var(--font-body);
}
.int-search:focus { outline: none; border-color: var(--accent-dim); box-shadow: 0 0 0 4px var(--accent-wash); }
.int-search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-faint); pointer-events: none; }
.int-filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 40px; }
.int-filter {
  padding: 8px 16px; border-radius: 20px; border: 1px solid var(--border);
  background: transparent; color: var(--text-muted); font-size: 13px; cursor: pointer; font-family: inherit;
}
.int-filter.active, .int-filter:hover { border-color: var(--accent-dim); color: var(--accent); background: var(--accent-wash); }
.int-category { margin-bottom: 44px; }
.int-category-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.int-category-head h3 { font-size: 1.1rem; font-weight: 600; color: var(--text); letter-spacing: -0.03em; }
.int-category-head span { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); }
.int-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.int-card-v2 {
  padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; min-height: 140px;
}
.int-card-v2 .int-top { display: flex; align-items: center; gap: 12px; }
.int-card-v2 .int-wordmark { margin-bottom: 4px; }
.int-card-v2 h4 { display: none; }
.int-logo-v2 {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent-wash); border: 1px solid var(--accent-dim);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--accent);
}
.int-wordmark {
  display: flex; flex-direction: column; justify-content: center;
  min-width: 108px; min-height: 44px; padding: 8px 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); flex-shrink: 0;
}
.int-wm-name {
  font-family: var(--font-display); font-size: 15px; font-weight: 700;
  letter-spacing: -0.03em; color: var(--text); line-height: 1.15;
}
.int-wm-cat {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent); margin-top: 3px;
}
.int-card-v2:hover .int-wordmark { border-color: var(--accent-dim); background: var(--accent-wash); }

.compare-section { margin-bottom: 56px; }
.compare-section:last-child { margin-bottom: 0; }
.compare-section-head { margin-bottom: 20px; }
.compare-section-head h2 { font-size: 1.35rem; margin-bottom: 8px; }
.compare-section-head p { color: var(--text-muted); font-size: 14px; line-height: 1.6; max-width: 640px; }
/* No hover scrollbar / scan-line “slider” on compare tables */
.compare-table-wrap {
  border-radius: var(--radius);
  overflow-x: visible;
  overflow-y: visible;
}
.compare-table-wrap.glow-card::after {
  display: none; /* animated top scan-line looked like a random slider */
}
.compare-table {
  width: 100%;
  min-width: 0;
  table-layout: auto;
}
/* Only scroll on narrow viewports; keep scrollbar thin and unobtrusive */
@media (max-width: 900px) {
  .compare-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
  }
  .compare-table-wrap::-webkit-scrollbar { height: 4px; }
  .compare-table-wrap::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 4px;
  }
  .compare-table-wrap::-webkit-scrollbar-track { background: transparent; }
  .compare-table { min-width: 640px; }
}

.uc-page .uc-section-title { margin-bottom: 36px; }
.uc-role-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: stretch;
}
.uc-card.glow-card { overflow: visible; }
.uc-card {
  padding: 32px 36px 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.uc-card-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 4px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
@media (max-width: 900px) { .uc-card-split { grid-template-columns: 1fr; gap: 24px; } }
.uc-card-panel { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.uc-panel-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin: 0 0 2px;
}
.uc-panel-label-accent { color: var(--accent); font-weight: 600; }
.uc-panel-impact {
  background: var(--accent-wash);
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  gap: 12px;
}
.uc-impact { list-style: none; margin: 0; padding: 0; }
.uc-impact li {
  font-size: 14px;
  color: var(--text-body);
  padding: 7px 0 7px 22px;
  position: relative;
  line-height: 1.55;
}
.uc-impact li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 7px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}
.about-team-section { padding-bottom: 88px; }
.about-team-lead {
  color: var(--text-muted);
  max-width: 520px;
  margin: 12px auto 0;
  font-size: 15px;
  line-height: 1.6;
}
.about-team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.about-team-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.about-team-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}
html[data-theme="light"] .about-team-card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}
.about-team-portrait {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 24px;
  background:
    radial-gradient(ellipse 90% 80% at 85% 15%, rgba(255, 255, 255, 0.14), transparent 55%),
    linear-gradient(145deg, rgba(0, 0, 0, 0.15), transparent 60%);
}
.about-team-portrait.accent-green {
  background-color: #0d3d2e;
  background-image:
    radial-gradient(ellipse 90% 80% at 85% 15%, rgba(34, 229, 154, 0.35), transparent 55%),
    linear-gradient(160deg, rgba(34, 229, 154, 0.22), transparent 65%);
}
.about-team-portrait.accent-violet {
  background-color: #2a1a4a;
  background-image:
    radial-gradient(ellipse 90% 80% at 85% 15%, rgba(139, 92, 246, 0.38), transparent 55%),
    linear-gradient(160deg, rgba(139, 92, 246, 0.24), transparent 65%);
}
.about-team-portrait.accent-amber {
  background-color: #3d2a0d;
  background-image:
    radial-gradient(ellipse 90% 80% at 85% 15%, rgba(245, 158, 11, 0.38), transparent 55%),
    linear-gradient(160deg, rgba(245, 158, 11, 0.22), transparent 65%);
}
html[data-theme="light"] .about-team-portrait.accent-green { background-color: #e8faf3; }
html[data-theme="light"] .about-team-portrait.accent-violet { background-color: #f3eeff; }
html[data-theme="light"] .about-team-portrait.accent-amber { background-color: #fff8eb; }
.about-team-initials {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
html[data-theme="light"] .about-team-initials {
  color: rgba(0, 0, 0, 0.78);
  text-shadow: none;
}
.about-team-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 14px;
  padding: 22px 24px 26px;
}
.about-team-meta { display: flex; flex-direction: column; gap: 4px; }
.about-team-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.035em;
  color: var(--text);
}
.about-team-role {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  margin: 0;
  letter-spacing: 0.03em;
}
.about-team-bio {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}
@media (max-width: 1024px) {
  .about-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-team-grid .about-team-card:last-child {
    grid-column: 1 / -1;
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }
}
@media (max-width: 640px) {
  .about-team-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  .about-team-grid .about-team-card:last-child { max-width: none; }
  .about-team-portrait { aspect-ratio: 16 / 9; }
}

.uc-team-roster {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 8px;
}
.uc-team-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
}
.uc-card-tag {
  font-family: var(--font-display); font-size: 14px; font-weight: 600;
  letter-spacing: -0.02em; color: var(--accent); line-height: 1.25; margin: 0;
  text-shadow: 0 0 24px var(--accent-glow);
}
.uc-card h3 {
  font-size: clamp(1.3rem, 2.1vw, 1.5rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.28;
  margin: 0;
  letter-spacing: -0.035em;
}
.uc-brief {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
  padding: 12px 14px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  border-left: 3px solid var(--accent-dim);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.uc-note {
  font-size: 13px;
  color: var(--text-faint);
  line-height: 1.6;
  margin: 0;
  font-style: italic;
}
.uc-impact-intro {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 4px;
}
.uc-steps li .uc-step-note {
  display: block;
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 3px;
  line-height: 1.5;
  font-weight: 400;
}
.uc-playbook-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px dashed var(--border);
}
.uc-playbook-btn {
  font-size: 14px;
  gap: 8px;
}
.uc-playbook-btn:not(.btn-ghost)::before {
  content: '↓';
  font-size: 13px;
}
.uc-playbook-hint {
  font-size: 12px;
  color: var(--text-faint);
  font-family: var(--font-mono);
}
.uc-card .uc-persona {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.65;
  margin: 0;
}
.uc-card .uc-pain {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}
.uc-card .uc-pain strong { color: var(--text); font-weight: 600; }
.uc-steps { list-style: none; margin: 4px 0 6px; padding: 0; }
.uc-steps li {
  font-size: 14px;
  color: var(--text-body);
  padding: 7px 0 7px 20px;
  position: relative;
  line-height: 1.55;
}
.uc-steps li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 9px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}
.uc-query {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
  color: var(--accent-dim);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--accent-wash);
  border: 1px solid var(--accent-dim);
  margin: 4px 0 0;
}
html[data-theme="dark"] .uc-query { color: var(--accent); }
.uc-outcome {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.55;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, var(--accent-dim) 35%, var(--border));
}
.uc-panel-impact .uc-outcome { border-top-color: color-mix(in srgb, var(--accent-dim) 45%, transparent); }
.uc-outcome span { color: var(--accent); font-family: var(--font-mono); font-weight: 700; }
.uc-section-title { margin-bottom: 28px; }
.uc-section-title h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: 8px; }
.uc-section-title p { color: var(--text-muted); font-size: 15px; }
.int-card-v2 h4 { font-size: 15px; font-weight: 600; }
.int-card-v2 p { font-size: 12.5px; color: var(--text-muted); line-height: 1.55; flex: 1; }
.int-card-v2 .int-meta { font-family: var(--font-mono); font-size: 10px; color: var(--accent); }
.int-empty { text-align: center; padding: 48px; color: var(--text-muted); grid-column: 1 / -1; }

.capability {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  padding: 60px 0; border-bottom: 1px solid var(--border);
}
.capability.glow-card {
  padding: 24px 32px 28px; margin-bottom: 14px; border-bottom: none;
}
.capability.glow-card:last-child { margin-bottom: 0; }
.capability:last-child { border-bottom: none; }
@media (max-width: 900px) { .capability { grid-template-columns: 1fr; } .capability.reverse .cap-visual { order: -1; } }
.capability.reverse .cap-visual { order: 2; }
.cap-text { display: flex; flex-direction: column; gap: 0; }
.cap-tag {
  font-family: var(--font-display); font-size: 14px; font-weight: 600;
  letter-spacing: -0.02em; color: var(--accent); line-height: 1.2;
  margin: 0 0 6px; display: block;
  text-shadow: 0 0 28px var(--accent-glow);
}
html[data-theme="light"] .cap-tag,
html[data-theme="light"] .uc-card-tag,
html[data-theme="light"] .phase-label,
html[data-theme="light"] .feature-card .fc-num,
html[data-theme="light"] .uc-preview-tag,
html[data-theme="light"] .oss-num,
html[data-theme="light"] .vt-label {
  text-shadow: none;
  color: var(--accent-dim);
}
.cap-text h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 600; color: var(--text);
  line-height: 1.15; margin: 0 0 14px; letter-spacing: -0.035em;
}
.cap-text p { color: var(--text-muted); font-size: 15px; line-height: 1.65; margin-bottom: 16px; }
.cap-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.cap-list li { font-size: 14px; color: var(--text-muted); padding-left: 14px; position: relative; }
.cap-list li::before { content: '→'; position: absolute; left: 0; color: var(--accent); font-size: 11px; }
.cap-visual { padding: 20px; min-height: 260px; display: flex; align-items: center; justify-content: center; }

.oss-section { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.oss-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 860px) { .oss-grid { grid-template-columns: 1fr; } }
.oss-card { background: var(--bg); padding: 28px 24px; }
.oss-num {
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  color: var(--accent); margin: 0 0 8px; letter-spacing: -0.02em;
  text-shadow: 0 0 24px var(--accent-glow);
}
.oss-card h4 { font-size: 1.15rem; font-weight: 600; color: var(--text); line-height: 1.25; margin: 0 0 8px; letter-spacing: -0.03em; }
.oss-card p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }

.oss-highlights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 28px 0; }
@media (max-width: 900px) { .oss-highlights { grid-template-columns: repeat(2, 1fr); } }
.oss-highlight { text-align: center; padding: 18px 14px; }
.oss-highlight strong { display: block; font-size: 13px; margin-bottom: 4px; }
.oss-highlight span { font-size: 11px; color: var(--text-muted); }

.quickstart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .quickstart-grid { grid-template-columns: 1fr; } }
.terminal { background: var(--code-bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; font-family: var(--font-mono); font-size: 13px; }
.terminal-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--border); color: var(--text-faint); font-size: 11px; }
.copy-btn { background: none; border: 1px solid var(--border); color: var(--text-muted); border-radius: 5px; padding: 4px 9px; font-family: var(--font-mono); font-size: 11px; cursor: pointer; }
.copy-btn:hover { color: var(--accent); border-color: var(--accent-dim); }
.terminal-body { padding: 18px 20px 22px; line-height: 2; }
.term-line { color: var(--text-muted); }
.term-prompt { color: var(--accent); margin-right: 8px; }
.term-comment { color: var(--text-faint); }

.final-cta { text-align: center; padding: 100px 0 110px; }
.final-cta-box {
  padding: 48px 32px; text-align: center; border-color: var(--accent-dim);
  max-width: 720px; margin: 0 auto;
}
.final-cta h2, .final-cta-box h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 16px; }
.final-cta-sub { color: var(--text-muted); margin: 0 0 28px; font-size: 15px; line-height: 1.6; }
.final-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.page-hero { padding: 56px 0 64px; text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1; margin-bottom: 16px; max-width: 720px; margin-left: auto; margin-right: auto; }
.page-hero p { font-size: 17px; color: var(--text-body); max-width: 560px; margin: 0 auto; line-height: 1.65; font-weight: 500; }

.content-section { padding: 72px 0; }
.content-section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.content-block { max-width: 720px; }
.content-block p { color: var(--text-muted); font-size: 15px; line-height: 1.65; margin-bottom: 14px; }
.quote-block { border-left: 2px solid var(--accent); padding: 14px 0 14px 20px; margin: 24px 0; font-size: 15px; color: var(--text-muted); font-style: italic; }
.moat-box { padding: 28px 24px; margin-top: 40px; }
.moat-box h3 { font-size: 1.3rem; font-weight: 600; color: var(--text); margin-bottom: 10px; letter-spacing: -0.03em; }
.moat-box p { color: var(--text-muted); font-size: 14px; line-height: 1.65; margin: 0; }

/* ── Vision & Roadmap page (always open · Now/Next/Later board) ── */
.vision-page .content-section { padding: 72px 0; }

.vr-hero {
  padding: 64px 0 56px;
  text-align: center;
  position: relative;
}
.vr-hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  max-width: 820px;
  margin: 0 auto 20px;
}
.vr-hero-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.vr-hero-lead {
  font-size: 17px;
  color: var(--text-body);
  max-width: 600px;
  margin: 0 auto 28px;
  line-height: 1.65;
  font-weight: 500;
}
.vr-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.vr-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--surface);
}
.vr-pill i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--text-faint);
  display: block;
}
.vr-pill-now { border-color: rgba(34, 229, 154, 0.35); color: var(--accent); }
.vr-pill-now i { background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }
.vr-pill-next i { background: #8B5CF6; }
.vr-pill-later i { background: #F59E0B; }

.vr-principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .vr-principle-grid { grid-template-columns: 1fr; }
}
.vr-principle {
  padding: 28px 26px 30px;
}
.vr-principle-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 12px;
}
.vr-principle h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  line-height: 1.3;
}
.vr-principle p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

.vr-path-section { padding-bottom: 40px; }
.vr-path {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  max-width: 720px;
  margin: 0 auto;
}
.vr-path-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 120px;
  text-align: center;
}
.vr-path-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  background: var(--bg);
  box-shadow: 0 0 0 4px var(--surface);
}
.vr-path-step.is-active .vr-path-dot {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-wash), 0 0 20px var(--accent-glow);
}
.vr-path-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.vr-path-step.is-active .vr-path-label { color: var(--accent); }
.vr-path-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}
.vr-path-connector {
  flex: 1;
  min-width: 40px;
  max-width: 100px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-dim), var(--border));
  margin: 0 8px 28px;
  border-radius: 2px;
  list-style: none;
}

/* Now / Next / Later board */
.vr-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
@media (max-width: 1000px) {
  .vr-board { grid-template-columns: 1fr; }
}
.vr-col {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  min-height: 100%;
}
.vr-col-now { border-color: rgba(34, 229, 154, 0.28); }
.vr-col-next { border-color: rgba(139, 92, 246, 0.28); }
.vr-col-later { border-color: rgba(245, 158, 11, 0.28); }

.vr-col-head {
  padding: 24px 22px 20px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 40%, transparent);
}
.vr-col-now .vr-col-head {
  background: linear-gradient(180deg, rgba(34, 229, 154, 0.1), transparent);
}
.vr-col-next .vr-col-head {
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.1), transparent);
}
.vr-col-later .vr-col-head {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.1), transparent);
}
.vr-col-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--accent);
}
.vr-col-next .vr-col-badge { color: #a78bfa; }
.vr-col-later .vr-col-badge { color: #fbbf24; }
.vr-col-head h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  line-height: 1.25;
}
.vr-col-head p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

.vr-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  flex: 1;
}
.vr-item {
  padding: 16px 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  transition: border-color 0.2s, transform 0.2s;
}
.vr-item:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.vr-status {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
}
.vr-status-shipped {
  color: var(--accent);
  background: var(--accent-wash);
  border: 1px solid rgba(34, 229, 154, 0.25);
}
.vr-status-planned {
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
}
.vr-status-horizon {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
}
.vr-item h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.vr-item p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}
.vr-col-link {
  display: block;
  padding: 16px 20px 20px;
  font-size: 13px;
}

/* Flywheel */
.vr-flywheel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .vr-flywheel { grid-template-columns: 1fr; gap: 36px; }
}
.vr-flywheel-copy h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 0 0 16px;
}
.vr-flywheel-copy > p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 22px;
  max-width: 480px;
}
.vr-flywheel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.vr-flywheel-list li {
  font-size: 14px;
  color: var(--text-muted);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
}
.vr-flywheel-list strong {
  color: var(--accent);
  font-weight: 600;
  margin-right: 6px;
}

.vr-flywheel-visual {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 1;
  margin: 0 auto;
}
.vr-ring {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px solid rgba(34, 229, 154, 0.2);
}
.vr-ring-1 { inset: 6%; border-color: rgba(34, 229, 154, 0.12); }
.vr-ring-2 { inset: 18%; border-color: rgba(34, 229, 154, 0.22); }
.vr-ring-3 {
  inset: 30%;
  border-color: rgba(34, 229, 154, 0.35);
  background: radial-gradient(circle, rgba(34, 229, 154, 0.08), transparent 70%);
}
.vr-ring-core {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 96px; height: 96px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(34, 229, 154, 0.25), rgba(16, 185, 129, 0.08));
  border: 1.5px solid var(--accent);
  box-shadow: 0 0 40px var(--accent-glow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.vr-ring-core span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--accent);
}
.vr-ring-core small {
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.vr-orbit-label {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
}
.vr-ol-1 { top: 4%; left: 50%; transform: translateX(-50%); }
.vr-ol-2 { top: 50%; right: 0; transform: translateY(-50%); }
.vr-ol-3 { bottom: 4%; left: 50%; transform: translateX(-50%); }
.vr-ol-4 { top: 50%; left: 0; transform: translateY(-50%); }

.vr-note {
  padding: 36px 36px 40px;
  max-width: 900px;
  margin: 0 auto;
}
.vr-note h3 {
  font-size: 1.25rem;
  margin: 0 0 20px;
  letter-spacing: -0.03em;
}
.vr-note-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
@media (max-width: 800px) {
  .vr-note-grid { grid-template-columns: 1fr; }
  .vr-note { padding: 28px 22px 32px; }
}
.vr-note-grid p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}
.vr-note-grid strong { color: var(--text); display: block; margin-bottom: 6px; }
.vr-note-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

html[data-theme="light"] .vr-col-now { border-color: rgba(5, 150, 105, 0.3); }
html[data-theme="light"] .vr-col-next { border-color: rgba(109, 40, 217, 0.25); }
html[data-theme="light"] .vr-col-later { border-color: rgba(180, 83, 9, 0.25); }
html[data-theme="light"] .vr-status-planned { color: #6d28d9; }
html[data-theme="light"] .vr-status-horizon { color: #b45309; }
html[data-theme="light"] .vr-col-next .vr-col-badge { color: #6d28d9; }
html[data-theme="light"] .vr-col-later .vr-col-badge { color: #b45309; }
html[data-theme="light"] .vr-item { background: #fff; }

/* Legacy expandable roadmap (unused on vision page; kept safe) */
.roadmap-card { padding: 0; overflow: hidden; cursor: default; }
.roadmap-toggle {
  width: 100%; text-align: left; background: none; border: none; padding: 22px 24px 18px;
  cursor: pointer; font-family: inherit; color: inherit;
}
.roadmap-toggle .phase-label { margin-bottom: 8px; }
.roadmap-toggle h3 { margin-bottom: 8px; }
.roadmap-toggle p { color: var(--text-muted); font-size: 14px; line-height: 1.6; margin: 0 0 8px; }
.roadmap-expand-hint {
  font-family: var(--font-mono); font-size: 10px; color: var(--text-faint);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.roadmap-card .phase-list { padding: 0 24px 18px; margin: 0; }
.roadmap-detail {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.45s ease, opacity 0.35s ease, padding 0.35s ease;
  padding: 0 24px; border-top: 1px solid transparent;
}
.roadmap-card.is-expanded .roadmap-detail {
  max-height: 420px; opacity: 1; padding: 18px 24px 22px;
  border-top-color: var(--border);
}
.roadmap-card.is-expanded .roadmap-expand-hint { color: var(--accent); }
.roadmap-card.is-expanded { border-color: var(--accent-dim); }
.roadmap-detail h4 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.roadmap-detail p { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px; }
.roadmap-detail-list { list-style: none; margin: 0 0 14px; }
.roadmap-detail-list li {
  font-size: 13px; color: var(--text-muted); padding: 4px 0 4px 14px; position: relative;
}
.roadmap-detail-list li::before { content: '→'; position: absolute; left: 0; color: var(--accent); font-size: 11px; }

.vision-teaser { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 760px) { .vision-teaser { grid-template-columns: 1fr; } }
.vision-teaser-item { background: var(--bg); padding: 26px 22px; }
.vt-label {
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  color: var(--accent); letter-spacing: -0.02em; margin: 0 0 8px; line-height: 1.2;
  text-shadow: 0 0 24px var(--accent-glow);
}
.vision-teaser-item p { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }

.community-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .community-grid { grid-template-columns: 1fr; } }
.community-card { padding: 24px 26px 28px; text-align: center; }
.community-card h3 { font-size: 1.25rem; font-weight: 600; color: var(--text); line-height: 1.25; margin: 0 0 10px; letter-spacing: -0.035em; }
.community-card p { color: var(--text-muted); font-size: 14px; line-height: 1.6; margin-bottom: 18px; }

.flow-steps { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 28px 0; }
.flow-step { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); border: 1px solid var(--border); border-radius: 20px; padding: 9px 16px; }
.flow-arrow { color: var(--accent); }

.logos-section { padding: 36px 0 64px; border-bottom: 1px solid var(--border); }
.logos-section-hero {
  padding: 28px 0 36px;
  border-bottom: none;
  max-width: 1100px;
  margin: 0 auto;
}
.logos-label { text-align: center; font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); margin-bottom: 28px; letter-spacing: 0.08em; }
.logos-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.logo-pill {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 12px 20px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  min-height: 52px;
}
.logo-pill:hover { border-color: var(--accent-dim); color: var(--text); }
.marquee-wrap { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 16px; animation: marquee 36s linear infinite; width: max-content; }
@keyframes marquee { to { transform: translateX(-50%); } }
.hero-logo-strips {
  padding: 28px 0 8px !important;
  border: none !important;
  max-width: none;
  width: 100%;
  margin: 0;
}
.hero-logo-row { margin-bottom: 18px; }
.hero-logo-row:last-child { margin-bottom: 0; }
.hero-logo-strips .logos-label {
  margin-bottom: 14px;
  font-size: 11px;
  letter-spacing: 0.12em;
}
.marquee-track-a { animation: marquee 42s linear infinite; }
.marquee-track-b { animation: marquee-reverse 48s linear infinite; }
@keyframes marquee-reverse {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.code-block { font-family: var(--font-mono); font-size: 12px; background: var(--code-bg); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; color: var(--text-muted); line-height: 1.7; }
.code-block .tok-kw { color: var(--accent); }
.tok-str { color: var(--text); }
.diff-add { color: var(--accent); }

.link-arrow { color: var(--accent); font-family: var(--font-mono); font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow:hover { gap: 10px; }

footer { padding: 56px 0 28px; }
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 48px;
  padding-bottom: 32px; flex-wrap: wrap;
}
.footer-brand { max-width: 280px; flex-shrink: 0; }
.footer-brand .mf-logo-brand { margin-bottom: 4px; }
.footer-brand .mf-logo-text { font-size: 20px; }
.footer-brand p { color: var(--text-muted); font-size: 13px; line-height: 1.6; margin-top: 14px; }
.footer-divider {
  margin: 0 0 28px; opacity: 0.45;
}
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; padding-top: 2px; }
.footer-col h5 {
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-faint); margin: 0 0 16px; padding-top: 2px;
}
.footer-col a { display: block; font-size: 14px; color: var(--text-muted); margin-bottom: 10px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; margin-top: 4px; border-top: 1px solid var(--border);
  flex-wrap: wrap; gap: 12px;
}
.footer-legal { display: flex; gap: 10px; font-size: 13px; }
.footer-legal a { color: var(--text-muted); }
.footer-legal a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.footer-social a:hover { color: var(--accent); border-color: var(--accent-dim); }
.footer-copy { font-size: 12px; color: var(--text-faint); font-family: var(--font-mono); }
.footer-copy-row { padding-top: 14px; margin-top: 8px; border-top: 1px solid var(--border); }

/* Prefer opacity-only fade so transforms don’t inflate overflow / scrollbar flash */
.reveal {
  opacity: 0;
  transform: none;
  transition: opacity 0.55s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    transform: translateY(12px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }
  .reveal.in { transform: translateY(0); }
}

.btn-github,
.btn-discord,
a.btn-github,
a.btn-discord { display: none !important; }

@media (max-width: 1100px) {
  .nav-links > a,
  .nav-dropdown-trigger { padding: 8px 12px; }
  .nav-links > a.active::after,
  .nav-dropdown-trigger.active::after { left: 12px; right: 12px; }
  .nav-inner > .brand { margin-right: 12px; }
  .nav-end { margin-left: 10px; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-inner {
    padding: 0 16px 0 10px;
    height: 60px;
    justify-content: space-between;
  }
  .nav-end { gap: 0; }
  .nav-toggle { display: flex; flex-shrink: 0; }
  .nav-right { display: none; border-left: none; padding-left: 0; }
  .brand { min-width: 0; }

  .theme-toggle-nav { display: none !important; }
  .theme-toggle-float {
    display: flex;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 210;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(14px);
  }
  html[data-theme="light"] .theme-toggle-float {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
  }
  #themeToggleFloat.is-scroll-hidden {
    opacity: 0;
    transform: translateY(80px) scale(0.92);
    pointer-events: none;
  }
}
@media (min-width: 901px) {
  .theme-toggle-float { display: none !important; }
}
@media (max-width: 720px) {
  .hero-ctas .btn { width: 100%; justify-content: center; }

  .wrap-wide { padding: 0 16px; }
  .hero-copy { margin-bottom: 20px; }
  .hero { padding: 40px 0 28px; }
  .hero-title { font-size: clamp(1.85rem, 7vw, 2.45rem); }
  .hero-rotator-shell { min-width: 0; width: 100%; padding: 4px 4px 10px; }
  .hero-rotator-text {
    font-size: clamp(0.88rem, 3.6vw, 1.15rem);
    white-space: nowrap;
  }
  .hero-sub { font-size: 15px; line-height: 1.6; }

  .hero-demo-reveal-btn { display: flex; }
  .hero-workspace-wrap:not(.is-demo-open) .hero-demo-inner { display: none; }
  .hero-workspace-wrap {
    margin-bottom: 28px;
    isolation: isolate;
    /* Vertical swipes scroll the page, not a nested demo scroller */
    touch-action: pan-y;
  }
  .hero-workspace-wrap .ws-orb { display: none; }
  .hero-workspace-wrap .ws-card,
  .hero-workspace-wrap .dm-shell-card {
    min-height: auto;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    overflow: visible;
  }
  .dm-app {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .dm-sidebar { display: none; }
  .dm-topbar {
    padding: 8px 12px;
    font-size: 10px;
    gap: 8px;
  }
  .dm-top-left {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .dm-top-brand { flex-shrink: 0; }
  .dm-top-brand span { display: none; }
  .ws-stepper {
    padding: 8px 10px;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    justify-content: flex-start;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
  }
  .ws-stepper::-webkit-scrollbar { display: none; }
  .ws-step-label { display: none; }
  .ws-step-line { width: 10px; margin: 0 3px; flex-shrink: 0; }
  .ws-step { flex-shrink: 0; }

  /*
   * Nested overflow:auto on the live demo was trapping mobile scroll.
   * Expand to natural height so the page (not the demo) scrolls.
   */
  .hero-workspace-wrap .ws-stage,
  .hero-workspace-wrap .ws-dash-main,
  .hero-workspace-wrap .dm-content,
  .hero-workspace-wrap .dm-chat-log,
  .hero-workspace-wrap .dm-table-wrap {
    overflow: visible !important;
    max-height: none !important;
    min-height: 0;
    -webkit-overflow-scrolling: auto;
    overscroll-behavior: auto;
  }
  .hero-workspace-wrap .dm-content {
    padding: 12px 14px 14px;
  }
  .hero-workspace-wrap .ws-code,
  .hero-workspace-wrap .ws-code-sm,
  .hero-workspace-wrap .dm-table-wrap {
    overflow-x: auto;
    overflow-y: visible;
    max-height: none !important;
    touch-action: pan-x pan-y;
  }

  .dm-welcome h2 { font-size: 1.1rem; }
  .dm-sub { font-size: 12px; margin-bottom: 12px; padding: 0 4px; }
  .dm-conn-pick { gap: 8px; margin-bottom: 8px; }
  .dm-conn-opt { padding: 12px; }
  /* Connect / CTA send: compact center button (not full-bleed) */
  .dm-send-btn {
    width: auto;
    max-width: none;
    margin: 12px auto 0;
    padding: 10px 20px;
    font-size: 13px;
    display: flex;
  }
  /* Agent prompt Send: stay small, bottom-right of the card */
  .dm-send-btn.dm-send-corner {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: auto;
    margin: 0;
    padding: 7px 14px;
    font-size: 12px;
    border-radius: 16px;
    line-height: 1.2;
  }
  .glow-border-dm { margin: 0 auto 10px; }
  .dm-prompt-inner {
    padding: 14px 14px 48px;
    min-height: 100px;
    position: relative;
  }
  .dm-cards-row { gap: 8px; }
  .hero-demo-caption {
    font-size: 10px;
    line-height: 1.55;
    padding: 0 4px;
    margin-top: 14px;
    position: relative;
    z-index: 2;
  }
  .ws-stats { padding: 10px 12px; }
  .ws-stage { min-height: auto; padding: 14px; }
}

/* Tablets / phones up to 900px — same scroll fix if demo is tall */
@media (max-width: 900px) {
  .hero-workspace-wrap {
    touch-action: pan-y;
  }
  .hero-workspace-wrap .ws-stage,
  .hero-workspace-wrap .ws-dash-main,
  .hero-workspace-wrap .dm-content,
  .hero-workspace-wrap .dm-chat-log {
    overflow: visible !important;
    max-height: none !important;
  }
  .hero-workspace-wrap .dm-table-wrap {
    overflow-x: auto;
    overflow-y: visible;
    max-height: none !important;
  }
}

/* Dataman-style workspace UI */
.dm-shell-card { overflow: hidden; border-radius: 20px; }
.dm-app { display: grid; grid-template-columns: 52px 1fr; min-height: 520px; background: var(--bg); }
.dm-sidebar {
  border-right: 1px solid var(--border); padding: 12px 8px; display: flex; flex-direction: column; gap: 4px;
  background: rgba(0,0,0,0.35);
}
html[data-theme="light"] .dm-sidebar { background: rgba(0,0,0,0.03); }
.dm-side-btn {
  width: 36px; height: 36px; border-radius: 8px; border: 1px solid transparent; background: none;
  color: var(--text-faint); font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.dm-side-btn:hover, .dm-side-btn.active { background: var(--accent-wash); border-color: var(--accent-dim); color: var(--accent); }
.dm-side-btn:disabled, .dm-side-btn.disabled { opacity: 0.35; cursor: not-allowed; pointer-events: none; }
.dm-side-spacer { flex: 1; }
.dm-main { display: flex; flex-direction: column; min-width: 0; background: radial-gradient(ellipse 80% 60% at 80% 20%, rgba(34,229,154,0.06), transparent 50%), radial-gradient(ellipse 60% 50% at 10% 80%, rgba(139,92,246,0.05), transparent 50%), var(--bg); }
.dm-topbar {
  display: flex; justify-content: space-between; align-items: center; padding: 10px 20px;
  border-bottom: 1px solid var(--border); font-family: var(--font-mono); font-size: 11px; color: var(--text-faint);
}
.dm-top-left { display: flex; align-items: center; gap: 8px; }
.dm-top-icon { color: var(--text-muted); }
.dm-back-btn {
  width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text-muted); font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit; line-height: 1; padding: 0;
}
.dm-back-btn:hover { border-color: var(--accent-dim); color: var(--accent); background: var(--accent-wash); }
.dm-top-brand { display: flex; align-items: center; gap: 8px; text-transform: lowercase; color: var(--text-muted); }
.dm-top-brand svg,
.dm-top-brand .mf-logo-icon { height: 22px; }
.dm-top-brand .mf-logo-icon .mf-logo-img { height: 22px; width: auto; }
.dm-stepper { border-bottom: 1px solid var(--border); }
.dm-content { flex: 1; padding: 20px 24px 16px; overflow: auto; }
.dm-welcome h2 { font-size: 1.5rem; text-align: center; margin-bottom: 6px; font-weight: 700; }
.dm-sub { text-align: center; font-size: 13px; color: var(--text-muted); margin-bottom: 20px; max-width: 480px; margin-left: auto; margin-right: auto; }

.glow-border-dm {
  position: relative; border-radius: 18px; padding: 2px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--violet) 50%, var(--accent-dim) 100%);
  box-shadow: 0 0 40px rgba(34,229,154,0.15), 0 0 60px rgba(139,92,246,0.08);
  max-width: 720px; margin: 0 auto 20px;
}
.dm-prompt-inner {
  background: var(--bg); border-radius: 16px; padding: 18px 20px 50px; position: relative; min-height: 140px;
}
.dm-prompt-top { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-faint); font-family: var(--font-mono); margin-bottom: 12px; }
.dm-model { color: var(--accent); }
.dm-prompt-input { font-size: 15px; color: var(--text); line-height: 1.5; min-height: 48px; }
.dm-prompt-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.dm-action-pill {
  font-size: 11px; padding: 7px 14px; border-radius: 20px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-muted); cursor: pointer; font-family: inherit;
}
.dm-action-pill:hover { border-color: var(--accent-dim); color: var(--accent); }
.dm-send-btn {
  display: inline-flex; align-items: center; justify-content: center; margin: 16px auto 0;
  padding: 12px 28px; border-radius: 24px; border: none; cursor: pointer; font-weight: 700; font-size: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim)); color: #000; font-family: inherit;
}
.dm-send-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.dm-send-btn:not(:disabled):hover { box-shadow: 0 0 28px var(--accent-glow); }
.dm-send-corner {
  position: absolute;
  bottom: 12px;
  right: 12px;
  margin: 0;
  width: auto;
  padding: 8px 16px;
  font-size: 12px;
  border-radius: 18px;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--accent), #8B5CF6);
  color: #000;
}

.dm-cards-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 720px; margin: 0 auto; }
@media (max-width: 700px) { .dm-cards-row { grid-template-columns: 1fr; } }
.dm-mini-card { padding: 16px 14px; text-align: left; cursor: default; }
.dm-mini-card h4 { font-size: 14px; font-weight: 600; color: var(--text); margin: 0 0 2px; letter-spacing: -0.02em; }
.dm-mini-card small { font-size: 10px; color: var(--text-faint); font-family: var(--font-mono); }
.dm-mini-card ul { list-style: none; margin-top: 10px; }
.dm-mini-card li { font-size: 11px; color: var(--text-muted); padding: 5px 0; cursor: pointer; }
.dm-mini-card li:hover { color: var(--accent); }
.dm-mini-card.hover-pop { cursor: pointer; }

.dm-auth-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.dm-auth-primary, .dm-auth-secondary {
  padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 13px; cursor: pointer; font-family: inherit; border: 1px solid var(--border);
}
.dm-auth-primary { background: var(--accent); color: #000; border-color: var(--accent); }
.dm-auth-secondary { background: var(--surface); color: var(--text); }
.dm-signin-copy { font-size: 13px; color: var(--text-muted); text-align: center; margin: 8px 0; }

.dm-conn-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 560px; margin: 0 auto 12px; }
@media (max-width: 600px) { .dm-conn-pick { grid-template-columns: 1fr; } }
.dm-conn-opt {
  padding: 18px 14px; text-align: center; cursor: pointer; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: inherit; font-family: inherit; position: relative;
}
.dm-conn-opt.on { border-color: var(--accent); background: var(--accent-wash); }
.dm-conn-ico { display: block; font-size: 20px; margin-bottom: 6px; color: var(--accent); }
.dm-conn-opt strong { display: block; font-size: 13px; }
.dm-conn-opt small { font-size: 10px; color: var(--text-faint); }
.dm-conn-tick {
  position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border-radius: 50%;
  font-size: 11px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); background: var(--bg);
}
.dm-conn-opt.on .dm-conn-tick { background: var(--accent); color: #000; border-color: var(--accent); }
.dm-conn-hint { text-align: center; font-size: 12px; color: var(--text-faint); font-family: var(--font-mono); margin-bottom: 8px; }

.dm-preview { margin-bottom: 16px; padding: 0; overflow: hidden; }
.dm-preview-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 12px; flex-wrap: wrap; }
.dm-preview-head strong { font-family: var(--font-mono); color: var(--accent); }
.dm-preview-head span { color: var(--text-faint); flex: 1; }
.dm-preview-close { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 14px; }
.dm-preview-empty { padding: 16px 14px; font-size: 12px; color: var(--text-faint); margin: 0; }
.dm-lineage-svg { display: block; margin: 0 auto 12px; max-width: 100%; }
.dm-lineage-cta { display: block; margin: 16px auto 0; }
.dm-conn-readonly .dm-conn-opt { cursor: default; pointer-events: none; }
.dm-conn-readonly .dm-conn-opt.off { opacity: 0.45; }
.dm-table-wrap { overflow-x: auto; max-height: 180px; }
.dm-data-table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 10px; }
.dm-data-table th, .dm-data-table td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--border); }
.dm-data-table th { color: var(--accent); font-weight: 600; background: var(--surface); position: sticky; top: 0; }
.dm-data-table td { color: var(--text-muted); }

.dm-catalog-list { display: flex; flex-direction: column; gap: 8px; max-width: 560px; margin: 0 auto; }
.dm-catalog-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; width: 100%; text-align: left;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface);
  cursor: pointer; color: inherit; font-family: inherit;
}
.dm-catalog-item strong { display: block; font-size: 12px; font-family: var(--font-mono); }
.dm-catalog-item small { font-size: 10px; color: var(--text-faint); }
.dm-catalog-item em { font-size: 10px; color: var(--accent); font-style: normal; margin-left: auto; }

.dm-recent-item { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; padding: 4px 0; }
.dm-recent-item:hover strong { color: var(--accent); }
.dm-recent-item strong { display: block; font-size: 11px; }
.dm-recent-item small { font-size: 10px; color: var(--text-faint); }

.dm-chat-log { max-height: 200px; overflow-y: auto; margin-bottom: 12px; }
.dm-chat { font-size: 12px; padding: 10px 12px; margin-bottom: 8px; border-radius: 10px; line-height: 1.55; }
.dm-chat.user { background: var(--surface-2); border: 1px solid var(--border); margin-left: 15%; }
.dm-chat.bot { color: var(--text-muted); }
.dm-chat-label { display: block; font-family: var(--font-mono); font-size: 9px; color: var(--accent); margin-bottom: 4px; }
.dm-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.dm-pill { font-size: 10px; padding: 6px 10px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); cursor: pointer; font-family: inherit; }
.dm-pill:hover { border-color: var(--accent); color: var(--accent); }
.dm-input-row { display: flex; gap: 8px; }
.dm-input-row input { flex: 1; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 12px; }
.dm-send-sm { background: var(--accent); color: #000; border: none; border-radius: 8px; padding: 8px 14px; font-weight: 700; cursor: pointer; font-size: 12px; }

/* Premium diagram panels */
.diagram-panel {
  border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg);
  overflow: hidden; position: relative;
}
.diagram-panel svg { width: 100%; display: block; }
.diagram-label {
  position: absolute; top: 14px; left: 16px; font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); z-index: 2;
}

/* Scroll-replay diagram animations */
.illus-anim .illus-fade,
.illus-anim .illus-node { opacity: 0; transform: translateY(6px); animation: none; }
.illus-anim .illus-draw {
  stroke-dasharray: 120; stroke-dashoffset: 120;
  opacity: 0; animation: none;
}
.illus-anim.illus-play .illus-fade,
.illus-anim.illus-play .illus-node {
  animation: illus-fade-in 0.55s ease forwards;
  animation-delay: var(--d, 0s);
}
.illus-anim.illus-play .illus-draw {
  animation: illus-draw-line 0.9s ease forwards, illus-fade-in 0.3s ease forwards;
  animation-delay: var(--d, 0s);
}
@keyframes illus-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes illus-draw-line {
  to { stroke-dashoffset: 0; opacity: 1; }
}
.cap-visual.illus-anim { min-height: 220px; display: flex; align-items: center; justify-content: center; }
.cap-visual.illus-anim svg { width: 100%; max-width: 400px; }

/* Impact / ROI metrics */
.impact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px;
}
@media (max-width: 960px) { .impact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .impact-grid { grid-template-columns: 1fr; } }
.impact-card { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.impact-num {
  font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800; color: var(--accent); line-height: 1; letter-spacing: -0.04em;
}
.impact-card h3 { font-size: 1.15rem; font-weight: 600; color: var(--text); margin: 0; letter-spacing: -0.03em; }
.impact-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin: 0; flex: 1; }
.impact-meta {
  font-family: var(--font-mono); font-size: 10px; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px;
}
.impact-roi {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: center;
  padding: 28px 28px 32px; margin-top: 8px;
}
@media (max-width: 860px) { .impact-roi { grid-template-columns: 1fr; } }
.impact-roi-label {
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--accent); display: block; margin-bottom: 8px;
}
.impact-roi-num {
  font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800; color: var(--text); line-height: 1; letter-spacing: -0.04em; margin-bottom: 12px;
}
.impact-roi-copy p { font-size: 14px; color: var(--text-muted); line-height: 1.65; margin: 0; }
.impact-roi-bars { display: flex; flex-direction: column; gap: 12px; }
.impact-bar { display: grid; grid-template-columns: 120px 1fr 44px; gap: 10px; align-items: center; }
@media (max-width: 560px) { .impact-bar { grid-template-columns: 1fr; gap: 4px; } }
.impact-bar-label { font-size: 12px; color: var(--text-muted); }
.impact-bar-track {
  height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden;
}
.impact-bar-fill {
  height: 100%; width: var(--w, 50%); border-radius: 4px;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  transform-origin: left; transform: scaleX(0);
}
.impact-roi.reveal.in .impact-bar-fill {
  animation: impact-bar-grow 1s ease forwards;
  animation-delay: calc(var(--i, 0) * 0.12s);
}
.impact-bar:nth-child(1) .impact-bar-fill { --i: 0; }
.impact-bar:nth-child(2) .impact-bar-fill { --i: 1; }
.impact-bar:nth-child(3) .impact-bar-fill { --i: 2; }
.impact-bar:nth-child(4) .impact-bar-fill { --i: 3; }
@keyframes impact-bar-grow { to { transform: scaleX(1); } }
.impact-bar-val { font-family: var(--font-mono); font-size: 11px; color: var(--accent); text-align: right; }

/* Integration brand logos */
.int-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  min-height: 40px;
}
.int-brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.int-brand-mark.wordmark-only { min-height: 32px; }
.int-brand-img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  padding: 4px;
}
html[data-theme="light"] .int-brand-img { background: rgba(0,0,0,0.04); }
html[data-theme="dark"] .int-brand-img.int-icon-invert { filter: brightness(0) invert(1); opacity: 0.92; }
.int-brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.int-brand-fallback .int-brand-letter {
  width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  background: var(--accent-wash); border: 1px solid var(--accent-dim);
  font-family: var(--font-display); font-weight: 700; color: var(--accent); font-size: 14px;
  flex-shrink: 0;
}
.int-card-v2 .int-wm-cat {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  flex-shrink: 0;
  padding-top: 2px;
  text-align: right;
  max-width: 42%;
}
.int-card-v2:hover .int-brand-img { transform: scale(1.04); transition: transform 0.2s ease; }

/* Per-brand typography & color */
.brand-dbt {
  color: #FF694B;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-transform: lowercase;
}
.brand-dagster { color: #4F43DD; font-weight: 600; font-size: 15px; letter-spacing: -0.025em; }
.brand-airflow { color: #017CEE; }
.brand-prefect { color: #2D6FF6; }
.brand-spark { color: #E25A1C; font-size: 13px; }
.brand-sqlmesh { color: #22E59A; }
.brand-dataform { color: #4285F4; }
.brand-coalesce { color: #5B4FE8; }
.brand-snowflake { color: #29B5E8; font-weight: 600; }
.brand-bigquery { color: #669DF6; }
.brand-databricks { color: #FF3621; font-weight: 700; font-size: 13px; }
.brand-redshift { color: #8C4FFF; }
.brand-athena { color: #FF9900; font-size: 13px; }
.brand-postgres { color: #4169E1; }
.brand-supabase { color: #3FCF8E; }
.brand-mysql { color: #4479A1; }
.brand-mongodb { color: #47A248; }
.brand-clickhouse { color: #FFCC01; }
.brand-fivetran { color: #0073FF; font-weight: 700; }
.brand-airbyte { color: #6554FF; }
.brand-stitch { color: #FF6D70; }
.brand-kafka { color: #231F20; }
html[data-theme="dark"] .brand-kafka,
html[data-theme="dark"] .brand-github { color: #e8e8e8; }
.brand-confluent { color: #4299FF; }
.brand-flink { color: #E6526F; }
.brand-looker { color: #4285F4; }
.brand-tableau { color: #E97627; font-weight: 700; }
.brand-metabase { color: #509EE3; }
.brand-atlas { color: #00A4E4; font-size: 13px; }
.brand-collibra { color: #00B2A9; }
.brand-montecarlo { color: #6C2BD9; font-size: 13px; }
.brand-gx { color: #FF6310; font-size: 12px; }
.brand-github { color: #181717; }
.brand-gitlab { color: #FC6D26; }
.brand-k8s { color: #326CE5; }
.brand-docker { color: #2496ED; }
.brand-s3 { color: #569A31; font-weight: 700; }
.brand-gcs { color: #4285F4; font-weight: 700; }
.brand-azure { color: #0078D4; font-size: 13px; }
.brand-trino { color: #DD00A9; }
.brand-presto { color: #5890FF; }
.brand-acceldata { color: #E85D24; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  *, .marquee-track, .glow-border::before, .glow-card::after, .mf-logo-spin-inner,
  .hero-rotator-text, .hero-rotator-glow, .hero-rotator-line { animation: none !important; transition: none !important; }
  .hover-pop:hover { transform: none; }
}

/* Business / Technical mode switch */
.site-mode-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  margin-right: 12px;
  flex-shrink: 0;
  white-space: nowrap;
}
.site-mode-tech {
  color: var(--accent);
  border: 1px solid rgba(34, 229, 154, 0.4);
  background: var(--accent-wash);
}
html[data-theme="light"] .site-mode-tech {
  color: var(--accent-dim);
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.1);
}
.nav-inner .site-mode-badge { align-self: center; }
.nav-tech-cta {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 6px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(34, 229, 154, 0.55) !important;
  background: linear-gradient(135deg, #22E59A 0%, #10B981 100%) !important;
  color: #04140c !important;
  font-family: var(--font-display) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  text-decoration: none !important;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.12) inset,
    0 6px 20px rgba(34, 229, 154, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.nav-tech-cta:hover {
  filter: brightness(1.04);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.1) inset,
    0 8px 28px rgba(34, 229, 154, 0.42);
  transform: translateY(-1px);
}
.nav-tech-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #0B1210;
  box-shadow:
    0 0 0 1.5px rgba(4, 20, 12, 0.35),
    0 0 0 1px rgba(34, 229, 154, 0.45) inset;
  overflow: hidden;
}
.nav-tech-icon {
  width: 30px;
  height: 30px;
  display: block;
  border-radius: 50%;
}
.nav-tech-label { padding-right: 4px; color: #04140c; line-height: 1; }
.nav-tech-cta-mobile {
  width: 100%;
  justify-content: center;
  padding: 10px 18px 10px 10px !important;
  font-size: 15px !important;
  margin-bottom: 10px;
}
.nav-tech-cta-mobile .nav-tech-icon-wrap { width: 36px; height: 36px; }
.nav-tech-cta-mobile .nav-tech-icon { width: 34px; height: 34px; }
html[data-theme="light"] .nav-tech-cta {
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06) inset,
    0 4px 14px rgba(16, 185, 129, 0.28);
}
.nav-back-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-back-btn:hover { color: var(--accent); background: var(--accent-wash); }
@media (max-width: 1080px) {
  .nav-tech-label { display: none; }
  .nav-tech-cta { padding: 6px !important; }
}