/* ============================================================
   MYGENTIC SITE STYLES
   Brand language: Instrument Serif display, sans body,
   terra cotta + marigold on cream paper. Editorial monochrome
   foundation. Color enters via visuals/imagery only.
   ============================================================ */

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  /* Surfaces — white-first per ClickUp direction */
  --paper: #FFFFFF;
  --paper-deep: #F7F8FA;
  --card: #FFFFFF;
  --ink: #292D34;
  --ink-soft: #3A3F47;
  --ink-mute: #6B7280;
  --rule: rgba(41, 45, 52, 0.08);
  --rule-strong: rgba(41, 45, 52, 0.16);

  /* Brand accents (legacy — kept for footer, hero, smaller accents) */
  --terra: #C84D2C;
  --neon-green: #1F8F3A;
  --feature-blue: #1E3A8A;
  --terra-deep: #9F3A1E;
  --terra-soft: #F4D5C9;
  --marigold: #D89534;
  --marigold-deep: #B17821;
  --marigold-soft: #F5E2BC;

  /* Sage cyan (from dashboard.html) */
  --sage: #4FC3E0;
  --sage-bright: #7DD8EE;
  --sage-deep: #2A9DC4;

  /* Meet Sage banner — orb gradient palette */
  --sage-blue: #4AA8E8;
  --sage-blue-deep: #1F6FB8;
  --sage-violet: #8B7AE8;

  /* ClickUp accent palette — for card top stripes */
  --c-blue:    #7B68EE;  /* Cornflower — hero/Sage */
  --c-pink:    #FD71AF;  /* Hot Pink — energetic */
  --c-cyan:    #49CCF9;  /* Malibu — fresh, technical */
  --c-yellow:  #FFC800;  /* Supernova — savings, money */
  --c-mint:    #00C9A7;  /* fresh — growth, positive */
  --c-lavender:#A78BFA;  /* softer purple — secondary */
  --c-coral:   #FF8C7A;  /* warm — human, personal */
  --c-emerald: #10B981;  /* deeper green — trust, security */

  /* Type families */
  --f-display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --f-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --f-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  --f-label: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;

  /* Spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* Radii */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-xl: 22px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--terra); color: var(--paper); }

/* ── Typography ──────────────────────────────────────────── */
.t-display {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1;
  color: var(--ink);
}
.t-hero { font-size: clamp(56px, 7vw, 96px); }
.t-h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(40px, 5vw, 64px); line-height: 1.05; letter-spacing: -0.015em; }
.t-h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -0.01em; }
.t-h3 { font-family: var(--f-body); font-weight: 600; font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; }
.t-h4 { font-family: var(--f-body); font-weight: 600; font-size: 16px; line-height: 1.4; }

.t-body-large { font-size: 19px; line-height: 1.55; color: var(--ink-soft); }
.t-body { font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.t-body-small { font-size: 14px; line-height: 1.55; color: var(--ink-mute); }

.t-italic { font-style: italic; }

.t-label-mono {
  font-family: var(--f-label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.t-terra { color: var(--terra); }
.t-mute { color: var(--ink-mute); }

/* ── Layout ──────────────────────────────────────────────── */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--s-6);
}
.wrap-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--s-6);
}
.section {
  padding: var(--s-8) 0;
}
.section-tight {
  padding: var(--s-7) 0;
}
.section-alt {
  padding: var(--s-8) 0;
  background: var(--paper-deep);
}
.section-dark {
  padding: var(--s-8) 0;
  background: var(--ink);
  color: var(--paper);
}

@media (max-width: 720px) {
  .section, .section-alt, .section-dark { padding: var(--s-7) 0; }
}

/* ── Topbar (NAV) ────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--rule);
}
.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--s-3) var(--s-6);
  display: flex;
  align-items: center;
  gap: var(--s-5);
}
.brand {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
/* App-icon mark sits to the left of the wordmark. 32px keeps the topbar
   height in line with the existing 26px display type — the icon's
   internal padding makes its visual weight roughly equivalent. */
.brand-logo {
  width: 32px;
  height: 32px;
  display: block;
  flex-shrink: 0;
}
.brand-wordmark { display: inline-flex; align-items: baseline; line-height: 1; }
.brand .accent { color: #6D28D9; }

.topnav { display: flex; align-items: center; gap: 2px; flex: 1; margin-left: var(--s-3); }
.topnav-item { position: relative; }
.topnav-link {
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s var(--ease);
}
.topnav-link:hover { background: rgba(200, 77, 44, 0.06); color: var(--terra); }
.topnav-link.active { color: var(--terra); }
.topnav-link.has-menu::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.4px solid currentColor;
  border-bottom: 1.4px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  opacity: 0.5;
  transition: transform 0.2s var(--ease);
}
.topnav-item:hover .topnav-link.has-menu::after { transform: rotate(225deg); margin-top: 2px; }

.topcta { display: flex; align-items: center; gap: var(--s-2); flex-shrink: 0; }
.btn-ghost {
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  border-radius: 6px;
  transition: all 0.18s var(--ease);
}
.btn-ghost:hover { background: rgba(26, 22, 20, 0.05); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--paper);
  background: var(--ink);
  border-radius: 8px;
  transition: all 0.2s var(--ease);
}
.btn-primary:hover { background: var(--terra); transform: translateY(-1px); }
.btn-primary.btn-lg { padding: 15px 26px; font-size: 16px; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  transition: all 0.2s var(--ease);
}
.btn-secondary:hover { border-color: var(--ink); }
.btn-secondary.btn-lg { padding: 15px 26px; font-size: 16px; }

.btn-tertiary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--terra);
  transition: gap 0.2s var(--ease);
}
.btn-tertiary:hover { gap: 10px; }

/* ── Mega-menu panels ────────────────────────────────────── */
.megamenu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  width: 760px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s var(--ease);
  box-shadow:
    0 24px 64px rgba(26, 22, 20, 0.12),
    0 8px 16px rgba(26, 22, 20, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  z-index: 50;
}
.topnav-item:hover .megamenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.topnav-item:first-child .megamenu { left: 0; transform: translateX(0) translateY(-4px); }
.topnav-item:first-child:hover .megamenu { transform: translateX(0) translateY(0); }
.topnav-item.menu-right .megamenu { left: auto; right: 0; transform: translateX(0) translateY(-4px); }
.topnav-item.menu-right:hover .megamenu { transform: translateX(0) translateY(0); }

.megamenu-title {
  font-family: var(--f-label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: var(--s-4);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--rule);
}
.megamenu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-2);
}
.megamenu-grid.three { grid-template-columns: 1fr 1fr 1fr; }
.megamenu-item {
  position: relative;
  display: flex;
  gap: var(--s-3);
  padding: var(--s-3);
  border-radius: var(--r-md);
  border: 1px solid var(--rule-strong);
  background: var(--paper-2);
  transition: all 0.2s var(--ease);
  text-decoration: none;
}
.megamenu-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 3px;
  height: 60%;
  border-radius: 0 2px 2px 0;
  background: var(--mm-accent, var(--terra));
  transition: transform 0.2s var(--ease);
}
.megamenu-item:hover {
  background: color-mix(in srgb, var(--mm-accent, var(--terra)) 4%, var(--paper));
  border-color: color-mix(in srgb, var(--mm-accent, var(--terra)) 18%, var(--rule));
  transform: translateY(-1px);
}
.megamenu-item:hover::before {
  transform: translateY(-50%) scaleY(1);
}
/* Featured item (Sage in Features menu) — slightly stronger background, always-visible accent */
.megamenu-item.mm-featured {
  background: color-mix(in srgb, var(--mm-accent, var(--terra)) 5%, var(--paper));
  border-color: color-mix(in srgb, var(--mm-accent, var(--terra)) 22%, var(--rule));
}
.megamenu-item.mm-featured::before {
  transform: translateY(-50%) scaleY(1);
}

/* Pillar accent overrides — each pillar's mega menu uses its own color */
.mm-pillar-context   { --mm-accent: var(--terra); }
.mm-pillar-features  { --mm-accent: var(--feature-blue); }
.mm-pillar-libraries { --mm-accent: var(--neon-green); }
.mm-pillar-trust     { --mm-accent: var(--terra); }

.megamenu-item .mm-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--mm-accent, var(--terra)) 10%, white);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--mm-accent, var(--terra));
  transition: all 0.2s var(--ease);
  /* Inner border in pillar accent + subtle drop shadow gives the chip
     a sense of elevation against the card without feeling heavy. */
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--mm-accent, var(--terra)) 22%, transparent),
    0 1px 2px rgba(20, 17, 15, 0.06);
}
.megamenu-item:hover .mm-icon {
  background: color-mix(in srgb, var(--mm-accent, var(--terra)) 16%, white);
  transform: scale(1.04);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--mm-accent, var(--terra)) 38%, transparent),
    0 3px 8px rgba(20, 17, 15, 0.10);
}
.megamenu-item .mm-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.7;
}
.megamenu-item .mm-text { flex: 1; min-width: 0; }
.megamenu-item h5 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 3px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.megamenu-item p {
  font-size: 12.5px;
  color: var(--ink-mute);
  line-height: 1.45;
  margin: 0;
}
.mm-tag {
  font-family: var(--f-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
}
.mm-tag.hero  { background: var(--terra); color: var(--paper); }
.mm-tag.live  { background: rgba(31, 143, 58, 0.15); color: var(--neon-green); border: 1px solid var(--neon-green); }
.mm-tag.soon  { background: var(--paper-deep); color: var(--ink-mute); }
.mm-tag.free  { background: var(--ink); color: var(--marigold); }
.mm-tag.saves { background: rgba(216, 149, 52, 0.15); color: #B17821; border: 1px solid var(--marigold); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  padding: var(--s-6) 0 var(--s-5);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
/* Full-width Siri-style conic gradient backdrop, 50% opacity */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: conic-gradient(
    from 180deg at 50% 50%,
    #FEEAF1 0deg,
    #FBC5DB 60deg,
    #C8B8F5 120deg,
    #B5D9F7 180deg,
    #E8F1FE 240deg,
    #FBC5DB 300deg,
    #FEEAF1 360deg
  );
  opacity: 0.5;
  z-index: -2;
}
/* Soft breathing radial halo overlay for depth */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 35%, rgba(253, 113, 175, 0.18), transparent 55%),
    radial-gradient(ellipse at 75% 65%, rgba(123, 104, 238, 0.16), transparent 55%);
  filter: blur(20px);
  pointer-events: none;
  z-index: -1;
  animation: closeGlowBreathe 6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .hero::after { animation: none; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--s-7);
  align-items: center;
  position: relative;
}
.hero-eyebrow { margin-bottom: var(--s-5); }
.hero-headline {
  font-size: clamp(56px, 7vw, 96px);
  margin-bottom: var(--s-4);
}
.hero-rule {
  border: 0;
  border-top: 1px solid var(--rule-strong);
  width: 80px;
  margin: var(--s-5) 0;
}
.hero-sub {
  max-width: 540px;
  margin-bottom: var(--s-6);
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
}

/* Right column — holds the hero brain image */
.hero-image-col {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-brain-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Responsive: stack columns */
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-image-col { min-height: 0; margin-top: var(--s-5); }
}

.hero-trust {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--s-3);
  font-size: 13px;
  color: var(--ink-mute);
}
.trust-item { display: inline-flex; align-items: center; gap: 6px; }
.trust-item::before {
  content: "✓";
  color: var(--terra);
  font-weight: 700;
}
.trust-dot { color: var(--rule-strong); }

/* ── Connected sources ticker ───────────────────────────── */
/* Outer halo wrapper — owns the static gradient ring and breathing glow,
   does NOT clip overflow (so the halo can bleed beyond the band edges). */
.ticker-halo {
  position: relative;
  isolation: isolate;
  margin: 0;
}
.ticker-halo::before {
  content: "";
  position: absolute;
  inset: -3px 0;
  background: conic-gradient(
    from 180deg at 50% 50%,
    #FEEAF1 0deg,
    #FBC5DB 60deg,
    #C8B8F5 120deg,
    #B5D9F7 180deg,
    #E8F1FE 240deg,
    #FBC5DB 300deg,
    #FEEAF1 360deg
  );
  z-index: -2;
}
.ticker-halo::after {
  content: "";
  position: absolute;
  inset: -16px 0;
  background: radial-gradient(ellipse at 30% 40%, rgba(253, 113, 175, 0.18), transparent 55%),
              radial-gradient(ellipse at 70% 60%, rgba(123, 104, 238, 0.16), transparent 55%);
  z-index: -3;
  filter: blur(14px);
  pointer-events: none;
  animation: closeGlowBreathe 6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .ticker-halo::after { animation: none; }
}
/* Inner ticker — owns the band background and overflow clipping for the scroll */
.ticker {
  background: linear-gradient(90deg, #EFEBFE 0%, #E8F7FE 100%);
  padding: var(--s-5) 0;
  overflow: hidden;
  position: relative;
}
.ticker-label {
  text-align: center;
  font-family: var(--f-label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: var(--s-4);
}
.ticker-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: tickerScroll 32s linear infinite;
}
.ticker-item {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: 0 var(--s-7);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.ticker-item .logo {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.ticker-item .logo svg {
  width: 100%;
  height: 100%;
  display: block;
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ticker:hover .ticker-track {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ── Generic visual placeholders (color enters here) ─────── */
.visual {
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: grid;
  place-items: center;
  min-height: 180px;
  color: var(--ink-mute);
  font-family: var(--f-mono);
  font-size: 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.visual--lg { min-height: 380px; }
.visual--md { min-height: 280px; }
.visual--graph { background: linear-gradient(135deg, var(--paper-deep) 0%, var(--card) 100%); }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  transition: all 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}
/* Top accent stripe — color set per-card via inline --c-accent variable */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--c-accent, var(--ink));
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  transition: height 0.25s var(--ease);
}
.card:hover {
  border-color: var(--rule-strong);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(41, 45, 52, 0.08);
}
.card:hover::before {
  height: 6px;
}

/* ── CARD VARIANTS — backgrounds for ~1 in 3 cards, ClickUp-style ────── */

/* Charcoal — bold/serious (e.g. for technical or trust-related cards) */
.card.card-fill-dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.card.card-fill-dark .card-icon {
  background: rgba(255, 255, 255, 0.1);
  color: var(--c-accent, var(--paper));
}
.card.card-fill-dark .card-what { color: var(--paper); }
.card.card-fill-dark .card-why { color: rgba(255, 255, 255, 0.65); }
.card.card-fill-dark .card-link { color: var(--c-accent, var(--paper)); }
.card.card-fill-dark h3 { color: var(--paper); }

/* Pastel fills — soft tinted backgrounds */
.card.card-fill-cyan {
  background: #E8F7FE;  /* tinted from --c-cyan */
  border-color: rgba(73, 204, 249, 0.25);
}
.card.card-fill-blue {
  background: #EFEBFE;  /* tinted from --c-blue */
  border-color: rgba(123, 104, 238, 0.25);
}
.card.card-fill-lavender {
  background: #F3EEFE;  /* tinted from --c-lavender */
  border-color: rgba(167, 139, 250, 0.25);
}
.card.card-fill-pink {
  background: #FEEAF1;  /* tinted from --c-pink */
  border-color: rgba(253, 113, 175, 0.25);
}
.card.card-fill-yellow {
  background: #FFF6D6;  /* tinted from --c-yellow */
  border-color: rgba(255, 200, 0, 0.3);
}
.card.card-fill-mint {
  background: #DDF7F1;  /* tinted from --c-mint */
  border-color: rgba(0, 201, 167, 0.25);
}
.card.card-fill-coral {
  background: #FFE9E4;  /* tinted from --c-coral */
  border-color: rgba(255, 140, 122, 0.25);
}
.card.card-fill-emerald {
  background: #D5F5E8;  /* tinted from --c-emerald */
  border-color: rgba(16, 185, 129, 0.25);
}

/* On pastel cards, icons get a stronger fill (since the card is already tinted) */
.card[class*="card-fill-"]:not(.card-fill-dark) .card-icon {
  background: rgba(255, 255, 255, 0.7);
}

.card-featured {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(123, 104, 238, 0.08);
}
.card-featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--c-accent, var(--c-blue));
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.card-featured:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(123, 104, 238, 0.12);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--c-accent, var(--ink)) 12%, white);
  border: none;
  display: grid;
  place-items: center;
  margin-bottom: var(--s-3);
  margin-top: var(--s-2);
  font-size: 20px;
  color: var(--c-accent, var(--ink));
  font-weight: 600;
}
.card-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}
.card h3 { margin-bottom: var(--s-2); }
.card-what {
  margin-bottom: var(--s-2);
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.5;
}
.card-why {
  color: var(--ink-mute);
  font-size: 13.5px;
  line-height: 1.55;
  margin-bottom: var(--s-3);
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--c-accent, var(--terra));
  font-weight: 600;
  font-size: 14px;
  transition: gap 0.2s var(--ease);
}
.card-link:hover { gap: 10px; }

/* ── Pill tags ───────────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--f-label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--rule);
}
.pill-terra { background: var(--terra-soft); border-color: var(--terra); color: var(--terra-deep); }
.pill-neon { background: rgba(31, 143, 58, 0.14); border-color: var(--neon-green); color: var(--neon-green); }
.pill-soon { background: var(--paper-deep); color: var(--ink-mute); }
.pill-live { background: #d8efe2; color: #1a6e3f; border-color: #1a6e3f; }
.pill-free { background: var(--ink); color: var(--marigold); border-color: var(--ink); }
.pill-saves { background: var(--marigold-soft); color: var(--marigold-deep); border-color: var(--marigold); }

/* ── Section header ──────────────────────────────────────── */
.section-head {
  max-width: 720px;
  margin-bottom: var(--s-5);
}
.section-head .pill { margin-bottom: var(--s-3); }
.section-head h2 { margin-bottom: var(--s-2); }
.section-head .section-deck { font-size: 18px; line-height: 1.5; color: var(--ink-soft); }
.section-head--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ── Pillar grid (3-up & 2-up cards) ─────────────────────── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}
@media (max-width: 920px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--paper-deep);
  padding: var(--s-9) 0 var(--s-6);
  border-top: 1px solid var(--rule);
}
.site-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: var(--s-6);
  margin-bottom: var(--s-7);
}
.footer-brand p {
  font-size: 14px;
  color: var(--ink-mute);
  max-width: 280px;
  margin-top: var(--s-3);
  line-height: 1.6;
}
.footer-col h4 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: var(--s-3);
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--ink-soft);
  padding: 4px 0;
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--terra); }
.site-footer-bottom {
  padding-top: var(--s-5);
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}
@media (max-width: 920px) {
  .site-footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Breadcrumb ──────────────────────────────────────────── */
.breadcrumb {
  padding: var(--s-5) 0;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--ink-mute);
}
.breadcrumb a { color: var(--ink-mute); transition: color 0.2s var(--ease); }
.breadcrumb a:hover { color: var(--terra); }
.breadcrumb .sep { margin: 0 var(--s-2); opacity: 0.5; }
.breadcrumb .current { color: var(--ink); font-weight: 500; }

/* ── Product page hero ───────────────────────────────────── */
.product-hero {
  padding: var(--s-7) 0 var(--s-9);
  border-bottom: 1px solid var(--rule);
}
.product-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  align-items: center;
}
.product-hero h1 { margin-bottom: var(--s-4); }
.product-hero .product-hero-sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: var(--s-5);
}
.product-hero-actions {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.product-hero-fineprint {
  margin-top: var(--s-3);
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}
@media (max-width: 720px) {
  .product-hero-grid { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
}

/* ── Product page hero image + caption ───────────────────── */
.product-hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
}
.product-hero-image {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
}
.product-hero-image-caption {
  font-family: var(--f-display);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.25;
  color: var(--ink);
  text-align: center;
  margin: 0;
  max-width: 380px;
}
.product-hero-headline {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

/* ── Product features section: section-deck full width ───── */
.product-features-section .section-head { max-width: none; }

/* ── Product spotlight (dark contrast section) ───────────── */
.product-spotlight {
  position: relative;
  overflow: hidden;
}
.product-spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, color-mix(in srgb, var(--c-accent, var(--terra)) 12%, transparent), transparent 55%),
    radial-gradient(ellipse at 80% 70%, color-mix(in srgb, var(--c-accent, var(--terra)) 8%, transparent), transparent 55%);
  pointer-events: none;
}
.product-spotlight > .wrap { position: relative; z-index: 1; }
.product-spotlight-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--s-7);
  align-items: center;
}
.spotlight-eyebrow {
  color: var(--c-accent, var(--terra));
  margin-bottom: var(--s-3);
}
.spotlight-title {
  color: var(--paper);
  margin-bottom: var(--s-4);
}
.spotlight-body {
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}
.spotlight-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.spotlight-bullet {
  position: relative;
  padding: var(--s-3) var(--s-4) var(--s-3) var(--s-6);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--c-accent, var(--terra));
  border-radius: var(--r-md);
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  line-height: 1.5;
  transition: all 0.25s var(--ease);
}
.spotlight-bullet::before {
  content: "→";
  position: absolute;
  left: var(--s-3);
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-accent, var(--terra));
  font-weight: 700;
}
.spotlight-bullet:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateX(2px);
}
@media (max-width: 920px) {
  .product-spotlight-grid { grid-template-columns: 1fr; gap: var(--s-5); }
}

/* ── Back-outro updated for new template ─────────────────── */
.back-outro-sub {
  font-family: var(--f-display);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 auto var(--s-5);
  max-width: 580px;
}
.back-outro-actions {
  display: flex;
  gap: var(--s-3);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--s-3);
}

/* ── Deep dive (dark contrast section on product pages) ──── */
.deep-dive {
  background: var(--ink);
  color: var(--paper);
  padding: var(--s-10) 0;
  position: relative;
  overflow: hidden;
}
.deep-dive::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(216, 149, 52, 0.1), transparent 50%);
  pointer-events: none;
}
.deep-dive-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--s-7);
  align-items: center;
  position: relative;
}
.deep-dive .pill-terra {
  background: rgba(245, 213, 201, 0.15);
  color: var(--marigold);
  border-color: var(--marigold);
}
.deep-dive h2 { color: var(--paper); margin-bottom: var(--s-4); }
.deep-dive .section-deck { color: rgba(251, 246, 236, 0.72); }
.deep-dive-bullets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-2);
  margin-top: var(--s-5);
}
.deep-dive-bullet {
  background: rgba(251, 246, 236, 0.05);
  border: 1px solid rgba(251, 246, 236, 0.1);
  border-radius: var(--r-md);
  padding: var(--s-3) var(--s-4);
  font-size: 13.5px;
}
.deep-dive-visual {
  background: rgba(251, 246, 236, 0.04);
  border: 1px solid rgba(251, 246, 236, 0.1);
  border-radius: var(--r-lg);
  min-height: 380px;
  display: grid;
  place-items: center;
  color: rgba(251, 246, 236, 0.45);
  font-family: var(--f-mono);
  font-size: 12px;
  padding: var(--s-5);
  text-align: center;
}
@media (max-width: 720px) {
  .deep-dive-grid { grid-template-columns: 1fr; }
  .deep-dive-bullets { grid-template-columns: 1fr; }
}

/* ── How it fits (architecture context) ──────────────────── */
.how-fits {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--s-3);
  margin-top: var(--s-5);
}
.how-fits-cell {
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: var(--s-4);
  font-size: 14px;
}
.how-fits-cell.current {
  background: var(--terra-soft);
  border-color: var(--terra);
}
.how-fits-cell strong { display: block; margin-bottom: 4px; }
.how-fits-cell p { font-size: 13px; color: var(--ink-mute); }

/* ── Back-to-MyGentic outro ──────────────────────────────── */
.back-outro {
  background: var(--ink);
  color: var(--paper);
  padding: var(--s-10) 0;
  text-align: center;
}
.back-outro h2 { color: var(--paper); margin-bottom: var(--s-3); }
.back-outro p {
  color: rgba(251, 246, 236, 0.72);
  font-size: 17px;
  margin-bottom: var(--s-5);
}
.back-outro .btn-primary { background: var(--terra); }
.back-outro .btn-primary:hover { background: var(--terra-deep); }
.back-outro-fineprint {
  margin-top: var(--s-3);
  font-family: var(--f-mono);
  font-size: 12px;
  color: rgba(251, 246, 236, 0.5);
}

/* ── Pricing tier cards ──────────────────────────────────── */
.pricing-tiers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
  margin-top: var(--s-7);
}
/* Three-tier variant — wider cards, more breathing room */
.pricing-tiers-grid--three {
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 980px) {
  .pricing-tiers-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-tiers-grid--three { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .pricing-tiers-grid { grid-template-columns: 1fr; }
}
.pricing-tier-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: var(--s-6) var(--s-5);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s var(--ease);
}
/* Wrap the colored top stripe in a clipping container so it respects border-radius */
.pricing-tier-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--c-accent, var(--ink));
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  pointer-events: none;
}
.pricing-tier-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(41, 45, 52, 0.08);
}
.pricing-tier-card.featured {
  border: 2px solid var(--c-accent, var(--terra));
  position: relative;
  box-shadow: 0 12px 32px rgba(200, 77, 44, 0.12);
  /* Soft terracotta wash so the recommended tier reads as elevated against
     its plain-white neighbors. Pairs with the existing 2px terra border +
     "Most Popular" ribbon. Matches the alpha used on the dark-grid variant
     scaled down slightly (8% → 6%) for use over the white page background. */
  background: rgba(200, 77, 44, 0.06);
}
.pricing-tier-card.featured::before {
  height: 6px;
}
/* Recommended ribbon — uses data-recommended attribute for custom label */
.pricing-tier-card.featured::after {
  content: attr(data-recommended);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--c-accent, var(--terra));
  color: var(--paper);
  padding: 4px 14px;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pricing-tier-name {
  font-family: var(--f-display);
  font-size: 32px;
  line-height: 1.05;
  margin-bottom: var(--s-2);
}
.pricing-tier-audience {
  color: var(--ink-mute);
  font-family: var(--f-label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: var(--s-4);
  line-height: 1.5;
}
/* For longer audience descriptions in three-tier layout, switch to body styling */
.pricing-tiers-grid--three .pricing-tier-audience {
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-mute);
  font-style: italic;
  line-height: 1.55;
  padding-bottom: var(--s-4);
  margin-bottom: var(--s-4);
  border-bottom: 1px solid var(--rule);
}
.pricing-tier-price {
  font-family: var(--f-display);
  font-size: 56px;
  line-height: 1;
  margin-bottom: var(--s-1);
}
.pricing-tier-price .unit {
  font-size: 18px;
  color: var(--ink-mute);
  font-style: italic;
  font-weight: 400;
}
.pricing-tier-price-meta {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--rule);
}
.pricing-tier-tagline {
  color: var(--ink-mute);
  font-size: 14px;
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--rule);
}
.pricing-tier-features {
  list-style: none;
  margin: 0 0 var(--s-5) 0;
  padding: 0;
  flex: 1;
}
.pricing-tier-features li {
  padding: 7px 0;
  font-size: 14px;
  color: var(--ink-soft);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.pricing-tier-features li::before {
  content: "→";
  color: var(--c-accent, var(--terra));
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0;
}
.pricing-tier-features li.muted { color: var(--ink-mute); }
.pricing-tier-features li.muted::before { content: "—"; color: var(--ink-mute); }
.pricing-tier-features li strong { color: var(--ink); font-weight: 600; }

/* Highlighted feature row — used to call out the key upsell on Power tier */
.pricing-tier-features li.feature-highlight {
  background: rgba(200, 77, 44, 0.10);
  border: 1px solid rgba(200, 77, 44, 0.35);
  border-radius: 6px;
  padding: 10px 12px 10px 14px;
  margin: 4px -4px;
  color: var(--ink);
  font-weight: 600;
  position: relative;
}
.pricing-tier-features li.feature-highlight::before {
  color: var(--terra);
  font-weight: 700;
}
/* Dark variant: stronger contrast on dark teaser background */
.pricing-tiers-grid--dark .pricing-tier-features li.feature-highlight {
  background: rgba(200, 77, 44, 0.18);
  border-color: rgba(200, 77, 44, 0.5);
  color: var(--paper);
}
.pricing-tiers-grid--dark .pricing-tier-features li.feature-highlight::before {
  color: rgba(255, 200, 170, 1);
}

/* Prose summary alternative to feature list — used on homepage teaser */
.pricing-tier-summary {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 var(--s-5) 0;
  flex: 1;
}
.pricing-tier-summary strong {
  color: var(--ink);
  font-weight: 600;
}
/* CTA button — full width within the card */
.pricing-cta {
  width: 100%;
  justify-content: center;
}

/* Dark variant — pricing cards rendered on the dark homepage teaser section.
   Override card surface, text, borders, and rules for dark contrast. */
.pricing-tiers-grid--dark .pricing-tier-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.pricing-tiers-grid--dark .pricing-tier-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}
.pricing-tiers-grid--dark .pricing-tier-card.featured {
  background: rgba(200, 77, 44, 0.08);
  border: 2px solid var(--c-accent, var(--terra));
  box-shadow: 0 12px 32px rgba(200, 77, 44, 0.25);
}
.pricing-tiers-grid--dark .pricing-tier-name {
  color: var(--paper);
}
.pricing-tiers-grid--dark .pricing-tier-audience {
  color: rgba(255, 255, 255, 0.65);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
.pricing-tiers-grid--dark .pricing-tier-price {
  color: var(--paper);
}
.pricing-tiers-grid--dark .pricing-tier-price .unit {
  color: rgba(255, 255, 255, 0.55);
}
.pricing-tiers-grid--dark .pricing-tier-price-meta {
  color: rgba(255, 255, 255, 0.55);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
.pricing-tiers-grid--dark .pricing-tier-features li {
  color: rgba(255, 255, 255, 0.78);
}
.pricing-tiers-grid--dark .pricing-tier-features li strong {
  color: var(--paper);
}
.pricing-tiers-grid--dark .pricing-tier-features li::before {
  color: var(--c-accent, var(--terra));
}
.pricing-tiers-grid--dark .pricing-tier-summary {
  color: rgba(255, 255, 255, 0.78);
}
.pricing-tiers-grid--dark .pricing-tier-summary strong {
  color: var(--paper);
}
/* Secondary CTAs in dark mode pick up a translucent border + text */
.pricing-tiers-grid--dark .btn-secondary {
  background: transparent;
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.25);
}
.pricing-tiers-grid--dark .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}
/* ── Constellation/architecture visual ───────────────────── */
.architecture-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  align-items: center;
  margin-top: var(--s-6);
}
@media (max-width: 920px) {
  .architecture-grid { grid-template-columns: 1fr; }
}
.architecture-layers {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.architecture-layer {
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
  padding: var(--s-4);
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
}
.architecture-layer .pill { flex-shrink: 0; }
.architecture-layer p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; }

.constellation {
  width: 100%;
  aspect-ratio: 1;
  max-width: 480px;
  margin: 0 auto;
}

.architecture-dimensions {
  margin-top: var(--s-6);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-3);
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}
.architecture-dimensions .dot { color: var(--rule-strong); }

/* ── Architecture section: dark variant with brain SVG layout ──────── */
.architecture-section {
  background: #000000;
  position: relative;
  overflow: hidden;
  padding: var(--s-6) 0;
}
.architecture-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 80%, rgba(167, 139, 250, 0.08), transparent 55%),
    radial-gradient(ellipse at 85% 20%, rgba(123, 104, 238, 0.06), transparent 55%);
  pointer-events: none;
}
.architecture-section > .wrap { position: relative; z-index: 1; }
.architecture-section .section-head h2 { color: var(--paper); }
.architecture-section .section-head .section-deck { color: #FFFFFF; }
/* Let the headline and deck run full wrap width on this section */
.architecture-section .section-head { max-width: none; margin-bottom: var(--s-4); }
.architecture-section .section-head .pill {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

/* Top row: brain visual + dimensions list */
.architecture-top {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s-7);
  align-items: start;
  margin-top: var(--s-5);
  margin-bottom: var(--s-5);
}
.brain-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.brain-svg {
  width: 100%;
  height: auto;
  max-width: 600px;
}

/* Three depth-layers horizontal row spanning full section width */
.layers-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
  margin-top: var(--s-7);
}
.layer-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid var(--terra);
  border-radius: var(--r-md);
  padding: var(--s-5);
  transition: all 0.25s var(--ease);
}
.layer-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  border-top-color: var(--terra);
  transform: translateY(-2px);
}
.layer-eyebrow {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: var(--s-2);
}
.layer-title {
  font-family: var(--f-display);
  font-size: clamp(28px, 2.4vw, 36px);
  line-height: 1.1;
  color: var(--paper);
  margin: 0 0 var(--s-3) 0;
  letter-spacing: -0.01em;
}
.layer-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}
@media (max-width: 920px) {
  .layers-row { grid-template-columns: 1fr; gap: var(--s-3); }
}

/* Slim variant — homepage only. Tight 4-step cards (title only, no description),
   smaller brain SVG, more vertical-balanced layout. */
.architecture-section--slim .architecture-top {
  align-items: center;
}
.architecture-section--slim .brain-svg {
  max-width: 520px;
}
.architecture-section--slim .howit-step {
  padding: var(--s-3) var(--s-4) var(--s-3) var(--s-3);
  gap: var(--s-3);
  align-items: center;
}
.architecture-section--slim .howit-num {
  font-size: 28px;
}
.architecture-section--slim .howit-title {
  font-size: clamp(17px, 1.4vw, 20px);
  margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════════
   Architecture v2 — homepage rebuild
   - 4 step cards on a horizontal connector line with progress dots
   - 6×3 matrix grid showing context architecture
   - Small radial inset visualizing depth as concentric layers
   ═══════════════════════════════════════════════════════════ */

.architecture-section--v2 .section-head {
  max-width: 720px;
  margin: 0 auto;
}

.architecture-section--v3 .section-head {
  max-width: 1080px;
  margin: 0 auto;
}
.architecture-section--v3 .section-head h2 {
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .architecture-section--v3 .section-head h2 {
    white-space: normal;
  }
}

/* ═══════════════════════════════════════════════════════════
   Architecture v3 — homepage (brain on left, vertical flow on right,
   three layer cards full-width below)
   ═══════════════════════════════════════════════════════════ */
.architecture-section--v3 .architecture-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  align-items: stretch;
  margin-top: var(--s-7);
}
.architecture-section--v3 .brain-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.architecture-section--v3 .brain-svg {
  max-width: 600px;
}

/* Vertical flow: connector line down the left, 4 cards on the right.
   Cards stretch vertically to match the brain graphic's height. */
.howit-flow-vertical {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s-3);
  padding-left: 36px;
}
.howit-flow-line-vertical {
  position: absolute;
  left: 11px;
  top: 16px;
  bottom: 16px;
  width: 1.5px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(200, 77, 44, 0.5) 4%,
    rgba(200, 77, 44, 0.5) 96%,
    transparent 100%
  );
  z-index: 0;
}
.howit-flow-card-v {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5);
  transition: all 0.25s var(--ease);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.howit-flow-card-v:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateX(2px);
}
.howit-flow-dot-v {
  position: absolute;
  left: -32px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--terra);
  border: 3px solid #1A1614;
  box-shadow:
    0 0 0 1px rgba(200, 77, 44, 0.5),
    0 0 14px rgba(200, 77, 44, 0.5);
  transition: all 0.25s var(--ease);
  z-index: 1;
}
.howit-flow-card-v:hover .howit-flow-dot-v {
  transform: translateY(-50%) scale(1.18);
  box-shadow:
    0 0 0 1px rgba(200, 77, 44, 0.7),
    0 0 22px rgba(200, 77, 44, 0.85);
}
.howit-flow-num-v {
  font-family: var(--f-display);
  font-size: 32px;
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  color: var(--terra);
  letter-spacing: -0.02em;
  display: inline-block;
  margin-bottom: var(--s-2);
}
.howit-flow-title-v {
  font-family: var(--f-display);
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.15;
  color: var(--paper);
  margin: 0 0 var(--s-2) 0;
  letter-spacing: -0.01em;
}
.howit-flow-tagline-v {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

/* Learn More CTA — centered at bottom of the section */
.howit-learn-more {
  display: flex;
  justify-content: center;
  margin-top: var(--s-7);
}

@media (max-width: 920px) {
  .architecture-section--v3 .architecture-top {
    grid-template-columns: 1fr;
    gap: var(--s-5);
  }
  .howit-flow-vertical {
    justify-content: flex-start;
  }
  .howit-flow-card-v {
    flex: 0 0 auto;
  }
}

/* ── 4-step flow with connector line ──────────────────────── */
.howit-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
  margin-top: var(--s-7);
  padding-top: var(--s-4);
}
/* Horizontal line behind the cards, runs through the dots */
.howit-flow-line {
  position: absolute;
  top: calc(var(--s-4) + 8px);
  left: 8%;
  right: 8%;
  height: 1.5px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(200, 77, 44, 0.5) 8%,
    rgba(200, 77, 44, 0.5) 92%,
    transparent 100%
  );
  z-index: 0;
}
.howit-flow-card {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-md);
  padding: var(--s-6) var(--s-4) var(--s-4);
  text-align: center;
  transition: all 0.25s var(--ease);
  margin-top: 16px; /* leave room for the dot above */
}
.howit-flow-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}
.howit-flow-dot {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--terra);
  border: 3px solid #1A1614;
  box-shadow:
    0 0 0 1px rgba(200, 77, 44, 0.5),
    0 0 18px rgba(200, 77, 44, 0.5);
  transition: all 0.25s var(--ease);
}
.howit-flow-card:hover .howit-flow-dot {
  transform: translateX(-50%) scale(1.15);
  box-shadow:
    0 0 0 1px rgba(200, 77, 44, 0.7),
    0 0 28px rgba(200, 77, 44, 0.8);
}
.howit-flow-num {
  font-family: var(--f-display);
  font-size: 40px;
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  color: var(--terra);
  margin-bottom: var(--s-3);
  letter-spacing: -0.02em;
}
.howit-flow-title {
  font-family: var(--f-display);
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.2;
  color: var(--paper);
  margin: 0 0 var(--s-2) 0;
  letter-spacing: -0.01em;
}
.howit-flow-tagline {
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}
@media (max-width: 980px) {
  .howit-flow { grid-template-columns: 1fr 1fr; gap: var(--s-3); }
  .howit-flow-line { display: none; }
  .howit-flow-card { margin-top: 0; }
  .howit-flow-dot { position: relative; top: 0; left: auto; transform: none; margin: 0 auto var(--s-3); }
}
@media (max-width: 600px) {
  .howit-flow { grid-template-columns: 1fr; }
}

/* ── Context matrix wrapper ───────────────────────────────── */
.context-matrix-wrap {
  margin-top: var(--s-9);
  padding-top: var(--s-7);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.matrix-eyebrow {
  color: var(--terra);
  margin-bottom: var(--s-3);
}
.matrix-title {
  font-family: var(--f-display);
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.1;
  color: var(--paper);
  margin: 0 0 var(--s-3) 0;
  letter-spacing: -0.01em;
  font-weight: 400;
}
.matrix-deck {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 var(--s-7) 0;
  max-width: 720px;
}

/* ── Matrix layout: radial inset + 7×2 grid side by side ──── */
.context-matrix-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--s-6);
  align-items: start;
}
@media (max-width: 980px) {
  .context-matrix-layout { grid-template-columns: 1fr; }
}

/* ── Radial inset (depth visualization) ───────────────────── */
.depth-inset {
  position: sticky;
  top: var(--s-4);
}
.depth-inset svg {
  width: 100%;
  height: auto;
  max-width: 220px;
  margin-bottom: var(--s-3);
}
.depth-inset-caption {
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* ── The matrix itself ────────────────────────────────────── */
.context-matrix {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-md);
  padding: 10px;
  overflow-x: auto;
}
.matrix-row {
  display: grid;
  grid-template-columns: 140px repeat(7, 1fr);
  gap: 4px;
  min-width: 860px;
}
.matrix-row-header {
  margin-bottom: 4px;
}
.matrix-cell {
  padding: 12px 10px;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.85);
  border-radius: 6px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease);
}
.matrix-corner {
  background: transparent;
}
.matrix-domain-head {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(200, 77, 44, 0.18);
  border: 1px solid rgba(200, 77, 44, 0.35);
  padding: 10px 6px;
  white-space: normal;
}
/* Layer head: row label on the left edge */
.matrix-layer-head {
  background: rgba(200, 77, 44, 0.14);
  border: 1px solid rgba(200, 77, 44, 0.3);
  border-radius: 6px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}
.matrix-layer-num {
  font-family: var(--f-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: rgba(200, 77, 44, 0.95);
  margin-bottom: 2px;
}
.matrix-layer-name {
  font-family: var(--f-display);
  font-size: 22px;
  line-height: 1;
  color: var(--paper);
  font-style: italic;
  letter-spacing: -0.01em;
}
.matrix-layer-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.3;
  margin-top: 2px;
}
/* Data cells get a saturated background by field kind.
   Row 1 (Facts): lighter tint.
   Row 2 (Preferences): deeper tint. */
.matrix-row:nth-of-type(2) .matrix-data {
  background: rgba(200, 77, 44, 0.06);
  border: 1px solid rgba(200, 77, 44, 0.12);
}
.matrix-row:nth-of-type(3) .matrix-data {
  background: rgba(200, 77, 44, 0.10);
  border: 1px solid rgba(200, 77, 44, 0.20);
}
.matrix-row:nth-of-type(4) .matrix-data {
  background: rgba(200, 77, 44, 0.16);
  border: 1px solid rgba(200, 77, 44, 0.32);
}
.matrix-data:hover {
  background: rgba(200, 77, 44, 0.28) !important;
  border-color: rgba(200, 77, 44, 0.55) !important;
  color: var(--paper);
  transform: translateY(-1px);
}

@media (max-width: 980px) {
  .matrix-row { min-width: 820px; }
  .matrix-row { grid-template-columns: 110px repeat(7, 1fr); }
  .matrix-layer-head { padding: 10px; }
  .matrix-layer-name { font-size: 18px; }
}

/* Dimensions list — six rows on the right */
.dimensions-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.dimensions-list-title {
  font-family: var(--f-label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: var(--s-3);
}
.dimension {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-md);
  align-items: center;
  transition: all 0.25s var(--ease);
}
.dimension:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}
.dimension-num {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #FFFFFF;
}
.dimension-name {
  font-family: var(--f-display);
  font-size: 18px;
  line-height: 1.1;
  color: var(--paper);
}
/* Show description as a third column on the right — compact, single-line */
.dimension-desc {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
  text-align: right;
  max-width: 240px;
}

/* ── How-It-Works steps (1-2-3 value prop) ──────────────── */
.howit-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-4) var(--s-4) var(--s-3);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--terra);
  border-radius: var(--r-md);
  margin-bottom: var(--s-3);
  align-items: start;
  transition: all 0.25s var(--ease);
}
.howit-step:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
  border-left-color: var(--terra);
  transform: translateY(-1px);
}
.howit-num {
  font-family: var(--f-display);
  font-size: 36px;
  line-height: 1;
  color: var(--terra);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.howit-body { min-width: 0; }
.howit-title {
  font-family: var(--f-display);
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.2;
  color: var(--paper);
  margin: 0 0 var(--s-2) 0;
  letter-spacing: -0.01em;
}
.howit-desc {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

/* Bottom row: 3 layers — now nested inside dimensions column */
.architecture-layers-row {
  margin-top: var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.layers-row-title {
  font-family: var(--f-label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-top: var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: var(--s-3);
}
.architecture-layers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-2);
}
.architecture-section .architecture-layer {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-md);
  padding: var(--s-3);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  transition: all 0.25s var(--ease);
}
.architecture-section .architecture-layer:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}
.architecture-section .architecture-layer p { color: #FFFFFF; font-size: 11px; line-height: 1.4; margin: 0; }
.architecture-section .architecture-layer .pill {
  align-self: flex-start;
  background: rgba(216, 149, 52, 0.16);
  border-color: var(--marigold);
  color: #FFFFFF;
  font-size: 10px;
  padding: 2px 8px;
}

/* Responsive collapse */
@media (max-width: 920px) {
  .architecture-top { grid-template-columns: 1fr; gap: var(--s-6); }
  .architecture-layers-grid { grid-template-columns: 1fr; }
}

/* ── Problem stats ───────────────────────────────────────── */
.problem-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-7);
}
@media (max-width: 720px) {
  .problem-stats { grid-template-columns: 1fr; }
}
.stat {
  text-align: center;
  padding: var(--s-5);
}
.stat-num {
  font-family: var(--f-display);
  font-size: 88px;
  line-height: 1;
  color: var(--terra);
  margin-bottom: var(--s-3);
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 220px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ── Connections in/out ──────────────────────────────────── */
.connections-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  margin-top: var(--s-6);
}
@media (max-width: 720px) {
  .connections-grid { grid-template-columns: 1fr; }
}
.connections-col h4 {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: var(--s-4);
}
.connections-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.connections-item {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3);
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
}
.connections-item .icon {
  width: 32px;
  height: 32px;
  background: var(--paper-deep);
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 16px;
  color: var(--ink);
}
.connections-item .name {
  flex: 1;
  font-weight: 500;
  font-size: 14px;
}
.connections-item .meta {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
}
.connections-item.muted { opacity: 0.6; }

/* ── Testimonial strip ─────────────────────────────────── */
.testimonial-strip {
  padding: var(--s-7) 0 var(--s-6);
  background: var(--paper);
}
.testimonial-rail {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  min-height: 360px;
}
.testimonial {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s-7);
  align-items: center;
  text-align: left;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}
.testimonial.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.testimonial-mark {
  display: none; /* moved away from quote-on-top layout — keeping the mark would crowd the new side-by-side */
}
.testimonial-quote {
  font-family: var(--f-display);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  position: relative;
  padding-left: var(--s-5);
}
.testimonial-quote::before {
  content: "\201C"; /* opening curly quote */
  position: absolute;
  left: -8px;
  top: -16px;
  font-size: 1.6em;
  line-height: 1;
  color: var(--terra);
  opacity: 0.4;
  font-family: var(--f-display);
}
.testimonial-attribution {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  border-left: 2px solid var(--terra);
  padding-left: var(--s-4);
  min-width: 200px;
  max-width: 260px;
}
.testimonial-name {
  font-family: var(--f-label);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.testimonial-role {
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 1.4;
  color: var(--ink-mute);
}

@media (max-width: 768px) {
  .testimonial {
    grid-template-columns: 1fr;
    gap: var(--s-3);
  }
  .testimonial-quote {
    font-size: clamp(22px, 4.5vw, 30px);
  }
  .testimonial-attribution {
    border-left: none;
    border-top: 2px solid var(--terra);
    padding-left: 0;
    padding-top: var(--s-3);
    max-width: none;
  }
}
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: var(--s-4);
}
.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rule-strong);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.testimonial-dot:hover { background: var(--ink-mute); }
.testimonial-dot.active {
  background: var(--terra);
  width: 24px;
  border-radius: 999px;
}

/* ── Segment-benefit strip (3 value statements) ─────────── */
.segments-section {
  background: var(--paper);
  padding: var(--s-6) 0;
}
.segments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
.segment-card {
  position: relative;
  padding: var(--s-5) var(--s-4);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  transition: all 0.25s var(--ease);
}
.segment-card:hover {
  border-color: var(--rule-strong);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(41, 45, 52, 0.05);
}
.segment-tag {
  font-family: var(--f-label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra);
}
.segment-headline {
  font-family: var(--f-display);
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.15;
  color: var(--ink);
  margin: 0;
}
@media (max-width: 920px) {
  .segments-grid { grid-template-columns: 1fr; }
}

/* ── Pipeline outcome line ─────────────────────────────── */
.pipeline-outcome {
  margin-top: var(--s-5);
  text-align: center;
  font-family: var(--f-display);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.3;
  color: var(--ink);
}

/* ── Close-zone promise line ───────────────────────────── */
.close-zone-promise {
  margin: 0 auto var(--s-4);
  max-width: 540px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ── Connections section (light) ──────────────────── */
.connections-section .section-head h2 {
  white-space: nowrap;
  font-size: clamp(32px, 4vw, 52px);
}
/* ── Animated pipeline visual: sources → hub → AI tools ─── */
.pipeline {
  position: relative;
  width: 100%;
  height: 360px;
  margin-top: var(--s-5);
  isolation: isolate;
}

/* SVG layer (behind nodes) */
.pipeline-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.pipeline-svg .pipe {
  fill: none;
  stroke-width: 1.8;
  opacity: 0.7;
}
.pipeline-svg .hub-ring {
  animation: hubPulse 3.5s ease-in-out infinite;
  transform-origin: 500px 240px;
}
@keyframes hubPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.92); }
  50%      { opacity: 0.9; transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .pipeline-svg .hub-ring,
  .pipeline-svg .flow-dot { animation: none; }
  .pipeline-svg animateMotion { display: none; }
}

/* Foreground node columns */
.pipeline-col {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  padding-top: 20px;
  padding-bottom: 20px;
  z-index: 2;
}
.pipeline-sources {
  left: 0;
  align-items: flex-start;
}
.pipeline-outputs {
  right: 0;
  align-items: flex-end;
}
.pipeline-col-label {
  position: absolute;
  top: -8px;
  font-family: var(--f-label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.pipeline-sources .pipeline-col-label { left: 0; }
.pipeline-outputs .pipeline-col-label { right: 0; }

/* Node tiles */
.pipeline-node {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 10px 14px;
  box-shadow: 0 4px 12px rgba(41, 45, 52, 0.04);
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.pipeline-node:hover {
  border-color: var(--rule-strong);
  box-shadow: 0 8px 20px rgba(41, 45, 52, 0.08);
  transform: translateY(-1px);
}
.pipeline-node.muted {
  opacity: 0.6;
}
.pipeline-logo {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.pipeline-logo svg {
  width: 100%;
  height: 100%;
}
.pipeline-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.pipeline-meta {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  margin-left: auto;
}

/* Center hub label */
.pipeline-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  text-align: center;
  pointer-events: none;
}
.pipeline-hub-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.pipeline-hub-name {
  font-family: var(--f-display);
  font-size: 16px;
  font-style: italic;
  color: var(--ink);
}
.pipeline-hub-tag {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* Responsive: stack vertically on small screens */
@media (max-width: 920px) {
  .pipeline { height: auto; padding: var(--s-5) 0; }
  .pipeline-svg { display: none; }
  .pipeline-col {
    position: static;
    width: 100%;
    margin-bottom: var(--s-5);
    align-items: stretch;
    flex-direction: column;
    gap: var(--s-2);
  }
  .pipeline-col-label { position: static; margin-bottom: var(--s-3); display: block; }
  .pipeline-hub {
    position: static;
    transform: none;
    margin: var(--s-4) 0;
    padding: var(--s-4);
    border: 1px solid var(--rule);
    border-radius: var(--r-md);
  }
}

/* ── Trust & Efficiency section: stacked cards left, image right ───── */
.trust-section {
  background: var(--paper);
}
.trust-section .section-head {
  max-width: none;
}
.trust-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  align-items: center;
}
.trust-stack {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.trust-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--s-4);
  align-items: flex-start;
  padding: var(--s-4) var(--s-5);
}
.trust-card .card-icon {
  width: 48px;
  height: 48px;
  margin-top: var(--s-2);
  margin-bottom: 0;
  background: color-mix(in srgb, var(--terra) 12%, white);
  color: var(--terra);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
}
.trust-card .card-icon svg {
  width: 24px;
  height: 24px;
}
.trust-card-body {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.trust-card-body .t-h3 {
  margin: 0 0 var(--s-1) 0;
}
.trust-card-body .card-what,
.trust-card-body .card-why {
  margin: 0;
}
.trust-card-body .card-link {
  margin-top: var(--s-2);
}

.trust-image-col {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}
.trust-image-glow {
  position: absolute;
  inset: -8% -4%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(200, 77, 44, 0.18) 0%,
    rgba(216, 149, 52, 0.10) 35%,
    transparent 70%
  );
  filter: blur(30px);
  pointer-events: none;
}
.trust-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-xl);
}
.trust-placeholder-banner {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 2;
  padding: 10px 14px;
  background: rgba(216, 149, 52, 0.95);
  color: #1A1614;
  font: 500 13px/1.4 var(--f-body);
  letter-spacing: 0.01em;
  border-radius: 8px;
  border: 1px solid rgba(177, 120, 33, 0.9);
  box-shadow: 0 6px 18px rgba(20, 17, 15, 0.18);
  text-align: center;
}
.trust-placeholder-banner strong {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
  margin-right: 4px;
}
@media (max-width: 920px) {
  .trust-layout { grid-template-columns: 1fr; gap: var(--s-5); }
  .trust-image-col { order: -1; }
}

/* ── Pricing Teaser section: dark gradient (vertical, was on Connections) ─ */
.pricing-teaser-section {
  background: linear-gradient(180deg, #1A1614 0%, #2A1F35 55%, #3A2754 100%);
  position: relative;
  overflow: hidden;
}
.pricing-teaser-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(167, 139, 250, 0.1), transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(123, 104, 238, 0.08), transparent 55%);
  pointer-events: none;
}
.pricing-teaser-section > .wrap { position: relative; z-index: 1; }
.pricing-teaser-section .section-head h2 { color: var(--paper); }
.pricing-teaser-section .section-head .section-deck { color: rgba(255, 255, 255, 0.78); }

/* Tier cards on dark — translucent, white text */
.pricing-teaser-section .card,
.pricing-teaser-section .card-featured {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--paper);
}
.pricing-teaser-section .card:hover,
.pricing-teaser-section .card-featured:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}
.pricing-teaser-section .pricing-tier-name { color: var(--paper); }
.pricing-teaser-section .pricing-tier-price { color: var(--paper); }
.pricing-teaser-section .pricing-tier-price .unit { color: rgba(255, 255, 255, 0.55); }
.pricing-teaser-section .card-what { color: rgba(255, 255, 255, 0.85); }
.pricing-teaser-section .card-why { color: rgba(255, 255, 255, 0.65); }
.pricing-teaser-section .btn-tertiary { color: var(--marigold); }

/* Featured card on dark — keep blue accent stripe but don't lose visibility */
.pricing-teaser-section .card-featured {
  background: rgba(123, 104, 238, 0.1);
  border-color: rgba(123, 104, 238, 0.4);
}

/* Close zone on dark teaser still works (keeps its own white card halo) */
.pricing-teaser-section .close-zone { background: var(--paper); color: var(--ink); }
.pricing-teaser-section .close-zone h2 { color: var(--ink); }
.pricing-teaser-section .close-zone .t-body-small { color: var(--ink-mute); }

/* ── Features section: cards flank center image (2 cards left, image, 2 cards right) ─ */
.features-section .section-head { max-width: none; }
.features-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
  align-items: stretch;
}
.features-col {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.features-image-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  position: relative;
}
/* Clickable video frame around the Sage orb */
.features-video-frame {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  isolation: isolate;
  transition: transform 0.3s var(--ease);
}
.features-video-frame:hover {
  transform: translateY(-2px);
}
.features-image {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  display: block;
  transition: filter 0.3s var(--ease);
}
.features-video-frame:hover .features-image {
  filter: brightness(0.94);
}

/* Centered overlay — always shows play button; reveals label + meta on hover */
.features-video-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
  pointer-events: none;
}

.features-video-play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(168, 192, 255, 0.55), transparent 70%),
    linear-gradient(135deg, #1E3A8A 0%, #0a1830 100%);
  border: 2px solid rgba(168, 192, 255, 0.7);
  display: grid;
  place-items: center;
  color: rgba(230, 240, 255, 0.95);
  flex-shrink: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 0 6px rgba(15, 22, 30, 0.35),
    0 0 30px rgba(99, 130, 230, 0.5),
    0 8px 24px rgba(0, 0, 0, 0.4);
  transition: all 0.3s var(--ease);
}
.features-video-frame:hover .features-video-play-btn {
  background:
    radial-gradient(circle at 35% 30%, rgba(168, 192, 255, 0.75), transparent 60%),
    linear-gradient(135deg, #2a4ba8 0%, #0a1830 100%);
  border-color: rgba(230, 240, 255, 0.95);
  color: #FFFFFF;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 0 0 6px rgba(15, 22, 30, 0.4),
    0 0 50px rgba(99, 130, 230, 0.8),
    0 12px 28px rgba(0, 0, 0, 0.5);
  transform: scale(1.06);
}
.features-video-play-btn svg {
  width: 28px;
  height: 28px;
  margin-left: 3px;
  filter: drop-shadow(0 0 8px rgba(168, 192, 255, 0.7));
}

/* Label + meta wrap below the button — fade in on hover */
.features-video-label,
.features-video-meta {
  opacity: 0;
  transition: opacity 0.3s var(--ease) 0.05s;
  white-space: nowrap;
  pointer-events: none;
}
.features-video-frame:hover .features-video-label,
.features-video-frame:hover .features-video-meta {
  opacity: 1;
}
.features-video-label {
  margin-top: var(--s-2);
  font-family: var(--f-display);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.2;
  color: var(--paper);
  background: rgba(15, 22, 30, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(168, 192, 255, 0.3);
}
.features-video-meta {
  font-family: var(--f-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(168, 192, 255, 0.9);
}

.features-image-caption {
  font-family: var(--f-display);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.25;
  color: var(--ink);
  text-align: center;
  margin: 0;
  max-width: 420px;
}
@media (max-width: 920px) {
  .features-layout {
    grid-template-columns: 1fr;
    gap: var(--s-4);
  }
  .features-image-center { order: -1; }
  .features-image { max-width: 360px; margin: 0 auto; }
  .features-video-play-btn { width: 56px; height: 56px; }
  .features-video-play-btn svg { width: 22px; height: 22px; }
}

/* ── Skills Libraries section: charcoal → dark purple gradient ─────── */
.libraries-section {
  background: linear-gradient(135deg, #0A0E0A 0%, #0D1A0F 55%, #122A18 100%);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.libraries-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(57, 200, 100, 0.08), transparent 55%),
    radial-gradient(ellipse at 15% 85%, rgba(80, 230, 130, 0.05), transparent 55%);
  pointer-events: none;
}
.libraries-section > .wrap { position: relative; z-index: 1; }
.libraries-section .section-head { max-width: none; }
.libraries-section .section-head h2 { color: var(--paper); }
.libraries-section .section-head .section-deck { color: rgba(255, 255, 255, 0.72); }

/* Video trigger placeholder — full-width, clickable, gradient-bordered */
/* ── Libraries section: stacked cards on left, square image on right ─ */
.libraries-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  align-items: stretch;
}
.libraries-stack {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.libraries-card .pill {
  align-self: flex-start;
  margin-bottom: var(--s-2);
}
/* Strong, exciting card titles */
.libraries-card h3.t-h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(26px, 2.2vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: var(--s-3);
}
/* Darker forest-green link with subtle bloom — readable on the dark gradient bg */
.libraries-card .card-link {
  text-shadow: 0 0 12px rgba(31, 143, 58, 0.5);
  font-weight: 700;
}
.libraries-card .card-link:hover {
  text-shadow: 0 0 20px rgba(31, 143, 58, 0.8);
}

/* Video frame: square format that fills the right column */
.libraries-video-frame {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: var(--r-xl);
  overflow: hidden;
  cursor: pointer;
  font-family: inherit;
  isolation: isolate;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.libraries-video-frame:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}
.libraries-video-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-xl);
}

/* CTA pill — centered horizontally, bottom of image */
.libraries-video-cta {
  position: absolute;
  bottom: var(--s-5);
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: 10px 10px 10px 20px;
  background: rgba(15, 22, 30, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(125, 214, 255, 0.35);
  border-radius: 999px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(125, 214, 255, 0.08);
  transition: all 0.25s var(--ease);
  pointer-events: none;
  white-space: nowrap;
}
.libraries-video-frame:hover .libraries-video-cta {
  background: rgba(15, 22, 30, 0.92);
  border-color: rgba(125, 214, 255, 0.7);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 12px 32px rgba(0, 0, 0, 0.6),
    0 0 50px rgba(125, 214, 255, 0.25);
  transform: translateX(-50%) translateY(-2px);
}
.libraries-video-cta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}
.libraries-video-label {
  font-family: var(--f-display);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.2;
  color: var(--paper);
  white-space: nowrap;
}
.libraries-video-meta {
  font-family: var(--f-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(125, 214, 255, 0.85);
  white-space: nowrap;
}

/* Tech-style play button */
.libraries-video-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(125, 214, 255, 0.4), transparent 70%),
    linear-gradient(135deg, #1a2332 0%, #0a1018 100%);
  border: 1px solid rgba(125, 214, 255, 0.5);
  display: grid;
  place-items: center;
  color: rgba(125, 214, 255, 0.95);
  flex-shrink: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 16px rgba(125, 214, 255, 0.25);
  transition: all 0.25s var(--ease);
}
.libraries-video-frame:hover .libraries-video-play-btn {
  background:
    radial-gradient(circle at 35% 30%, rgba(125, 214, 255, 0.6), transparent 60%),
    linear-gradient(135deg, #1f2d40 0%, #0a1018 100%);
  border-color: rgba(125, 214, 255, 0.9);
  color: #FFFFFF;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 0 28px rgba(125, 214, 255, 0.55);
  transform: scale(1.06);
}
.libraries-video-play-btn svg {
  width: 18px;
  height: 18px;
  margin-left: 2px;
  filter: drop-shadow(0 0 4px rgba(125, 214, 255, 0.6));
}

@media (max-width: 920px) {
  .libraries-layout { grid-template-columns: 1fr; gap: var(--s-5); }
  .libraries-video-frame { aspect-ratio: 1 / 1; }
  .libraries-video-cta {
    bottom: var(--s-3);
    padding: 8px 8px 8px 14px;
    gap: var(--s-2);
  }
  .libraries-video-play-btn { width: 36px; height: 36px; }
  .libraries-video-play-btn svg { width: 14px; height: 14px; }
}

/* ── Close zone ("Ready to be known?") — Siri-style gradient border ─── */
.close-zone {
  text-align: center;
  margin-top: var(--s-9);
  padding: var(--s-9) var(--s-7);
  position: relative;
  background: var(--paper);
  border-radius: var(--r-xl);
  isolation: isolate;
}
/* Outer gradient ring — static, no rotation */
.close-zone::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: calc(var(--r-xl) + 3px);
  background: conic-gradient(
    from 180deg at 50% 50%,
    #FEEAF1 0deg,
    #FBC5DB 60deg,
    #C8B8F5 120deg,
    #B5D9F7 180deg,
    #E8F1FE 240deg,
    #FBC5DB 300deg,
    #FEEAF1 360deg
  );
  z-index: -2;
}
/* Soft outer glow — Siri-like halo */
.close-zone::after {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: calc(var(--r-xl) + 16px);
  background: radial-gradient(ellipse at 30% 40%, rgba(253, 113, 175, 0.18), transparent 55%),
              radial-gradient(ellipse at 70% 60%, rgba(123, 104, 238, 0.16), transparent 55%);
  z-index: -3;
  filter: blur(14px);
  pointer-events: none;
  animation: closeGlowBreathe 6s ease-in-out infinite;
}
@keyframes closeGlowBreathe {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .close-zone::after { animation: none; }
}
.close-zone h2 { margin-bottom: var(--s-5); }
.close-zone .t-body-small { margin-top: var(--s-4); color: var(--ink-mute); }

/* ── Mobile nav (hamburger) ──────────────────────────────── */
.burger {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  flex-shrink: 0;
}
.burger:hover { background: rgba(26, 22, 20, 0.05); }
.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.burger span::before, .burger span::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 2px;
  background: var(--ink);
  left: 0;
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }

@media (max-width: 920px) {
  .topnav, .topcta .btn-ghost { display: none; }
  .burger { display: flex; }
}

/* ═══════════════════════ MEET SAGE BANNER ═══════════════════════
   Dark, animated section introducing Sage. Orb cycles through three
   states (idle / thinking / acting) in lockstep with the rotating
   message window. Mounted on landing (index.html) and sage.html.
   Behaviour driven by sage-banner.js.
   ════════════════════════════════════════════════════════════════ */
.sage-banner {
  position: relative;
  background:
    radial-gradient(1100px 700px at 18% 50%, rgba(74,168,232,0.12), transparent 60%),
    radial-gradient(900px 600px at 92% 12%, rgba(139,122,232,0.10), transparent 60%),
    radial-gradient(800px 500px at 80% 95%, rgba(74,168,232,0.06), transparent 65%),
    linear-gradient(180deg, #0A0E1F 0%, #0E1228 50%, #0A0E1F 100%);
  color: #F2EFEA;
  padding: 88px 0 96px;
  overflow: hidden;
  isolation: isolate;
}
.sage-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(255,255,255,0.5), transparent 50%),
    radial-gradient(1px 1px at 78% 18%, rgba(255,255,255,0.35), transparent 50%),
    radial-gradient(1px 1px at 33% 78%, rgba(255,255,255,0.4), transparent 50%),
    radial-gradient(1px 1px at 88% 64%, rgba(255,255,255,0.3), transparent 50%),
    radial-gradient(1px 1px at 24% 52%, rgba(255,255,255,0.25), transparent 50%),
    radial-gradient(1px 1px at 64% 88%, rgba(255,255,255,0.4), transparent 50%),
    radial-gradient(1px 1px at 92% 42%, rgba(255,255,255,0.28), transparent 50%);
  opacity: 0.7;
  z-index: 0;
  pointer-events: none;
}

.sage-banner-head {
  position: relative;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto 56px;
  z-index: 2;
}
.sage-banner-head h2 {
  font: 400 clamp(38px, 4.4vw, 64px)/1.04 var(--f-display);
  letter-spacing: -0.02em;
  color: #F8F5EF;
  margin: 0 auto;
  max-width: 1140px;
  white-space: nowrap;
}
.sage-banner-head h2 em {
  font-style: italic;
  color: var(--sage-blue);
  font-weight: 400;
}
.sage-banner-head .deck {
  margin: 22px auto 0;
  font: 300 18px/1.55 var(--f-body);
  color: rgba(242,239,234,0.72);
  max-width: 1140px;
  white-space: nowrap;
}

.sage-banner-body {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  z-index: 2;
}

.sage-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
}

.orb-wrap {
  position: relative;
  width: 460px;
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orb-svg {
  width: 100%;
  height: 100%;
  display: block;
  transition: filter 1800ms cubic-bezier(.4,0,.2,1);
  /* Pin the filter compositing layer so Chrome doesn't briefly expose
     the layer's bounding rectangle when the drop-shadow's blur radius
     interpolates between states (60px → 70px). */
  will-change: filter;
  transform: translateZ(0);
}
.orb-wrap[data-state="idle"] .orb-svg     { filter: drop-shadow(0 30px 60px rgba(74,168,232,0.22)); }
.orb-wrap[data-state="thinking"] .orb-svg { filter: drop-shadow(0 30px 70px rgba(139,122,232,0.32)); }
.orb-wrap[data-state="acting"] .orb-svg   { filter: drop-shadow(0 30px 70px rgba(184,71,31,0.30)); }

/* Graph rotation — single constant rate so state changes don't restart the spin.
   State variation is conveyed via color, pulse, flicker, and packet behaviour. */
.graph-group {
  transform-origin: 230px 230px;
  transform-box: view-box;
  animation: graphSpin 60s linear infinite;
}
.core-group {
  transform-origin: 230px 230px;
  transform-box: view-box;
  animation: coreSpin 80s linear infinite;
}
@keyframes graphSpin { to { transform: rotate(360deg); } }
@keyframes coreSpin  { to { transform: rotate(-360deg); } }

.gnode {
  fill: var(--sage-blue);
  transition: fill 1800ms cubic-bezier(.4,0,.2,1),
              r 800ms cubic-bezier(.4,0,.2,1),
              opacity 800ms cubic-bezier(.4,0,.2,1);
}
.orb-wrap[data-state="thinking"] .gnode { fill: var(--sage-violet); }
.orb-wrap[data-state="acting"]   .gnode { fill: #E8957A; }

.gedge {
  stroke: rgba(74,168,232,0.32);
  stroke-width: 0.5;
  fill: none;
  transition: stroke 1800ms cubic-bezier(.4,0,.2,1),
              opacity 1800ms cubic-bezier(.4,0,.2,1),
              stroke-width 1800ms cubic-bezier(.4,0,.2,1);
}
.orb-wrap[data-state="thinking"] .gedge {
  stroke: rgba(139,122,232,0.45);
  stroke-width: 0.6;
}
.orb-wrap[data-state="acting"] .gedge {
  stroke: rgba(232,149,122,0.5);
  stroke-width: 0.7;
}
.gedge.alt-edge { opacity: 0; }
.orb-wrap[data-state="thinking"] .gedge.alt-edge.thinking-edge { opacity: 1; }
.orb-wrap[data-state="acting"]   .gedge.alt-edge.acting-edge   { opacity: 1; }
.gedge.base-edge { opacity: 0.85; }
.orb-wrap[data-state="thinking"] .gedge.base-edge { opacity: 0.55; }
.orb-wrap[data-state="acting"]   .gedge.base-edge { opacity: 0.4; }

.gpacket {
  fill: #FFFFFF;
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.85));
  opacity: 0;
  transition: opacity 1200ms cubic-bezier(.4,0,.2,1);
}
.orb-wrap[data-state="acting"] .gpacket { opacity: 1; }

.sage-copy { max-width: 540px; }

.sage-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 11px/1 var(--f-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-blue);
  margin-bottom: 22px;
}
.sage-copy .eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sage-blue);
  box-shadow: 0 0 8px var(--sage-blue);
}

.sage-copy h3 {
  font: 400 clamp(36px, 4.4vw, 56px)/1.08 var(--f-display);
  letter-spacing: -0.018em;
  color: #F8F5EF;
  margin-bottom: 28px;
}
.sage-copy h3 .accent { color: var(--sage-blue); font-style: italic; }

.sage-copy .lead {
  font: 300 18px/1.6 var(--f-body);
  color: rgba(242,239,234,0.78);
  margin-bottom: 36px;
}

.sage-roles {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 36px;
}
.sage-role {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.sage-role-icon {
  flex: none;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(74,168,232,0.12);
  border: 1px solid rgba(74,168,232,0.32);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sage-blue);
  font-size: 18px;
}
.sage-role-text strong {
  display: block;
  font: 600 16px/1.35 var(--f-body);
  color: #F2EFEA;
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}
.sage-role-text span {
  font: 300 15px/1.55 var(--f-body);
  color: rgba(242,239,234,0.66);
}

.sage-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 28px;
  border-top: 1px solid rgba(242,239,234,0.10);
}
.sage-channels .label {
  flex: 1 0 100%;
  font: 500 11px/1 var(--f-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint, #A89F93);
  margin-bottom: 6px;
}
.sage-channel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(242,239,234,0.16);
  background: rgba(255,255,255,0.03);
  font: 500 13px/1 var(--f-body);
  color: rgba(242,239,234,0.86);
  transition: border-color 200ms ease, color 200ms ease, background 200ms ease;
}
.sage-channel i { font-size: 16px; color: var(--sage-blue); }
.sage-channel:hover {
  border-color: rgba(74,168,232,0.45);
  color: #F8F5EF;
  background: rgba(74,168,232,0.06);
}

/* Single rotating interaction window */
.sage-stream {
  width: 100%;
  max-width: 540px;
  position: relative;
  height: 116px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(242,239,234,0.12);
  border-radius: 12px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow: hidden;
  transition: border-color 800ms ease, background 800ms ease;
}
.sage-stream[data-tag="ask"]     { border-color: rgba(74,168,232,0.32); }
.sage-stream[data-tag="doing"]   { border-color: rgba(232,149,122,0.32); }
.sage-stream[data-tag="noticed"] { border-color: rgba(139,122,232,0.32); }

.sage-stream-slot {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px 26px;
  opacity: 0;
  transition: opacity 350ms ease;
}
.sage-stream-slot.is-active {
  opacity: 1;
}
.sage-stream-slot.is-leaving {
  opacity: 0;
}

.sage-stream-tag {
  flex: none;
  font: 500 10px/1 var(--f-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 9px;
  border-radius: 4px;
  align-self: flex-start;
  margin-top: 2px;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 300ms ease, transform 300ms cubic-bezier(.34,1.56,.64,1);
}
.sage-stream-slot.is-active .sage-stream-tag {
  opacity: 1;
  transform: scale(1);
}
.sage-stream-tag.ask     { background: rgba(74,168,232,0.18);  color: #95CFF7; border: 1px solid rgba(74,168,232,0.4); }
.sage-stream-tag.doing   { background: rgba(184,71,31,0.20);   color: #F4B197; border: 1px solid rgba(184,71,31,0.45); }
.sage-stream-tag.noticed { background: rgba(139,122,232,0.18); color: #C7BCF4; border: 1px solid rgba(139,122,232,0.4); }

.sage-stream-text {
  font: 400 15px/1.5 var(--f-body);
  color: rgba(242,239,234,0.92);
}
.sage-stream-text em {
  font-style: italic;
  color: rgba(242,239,234,0.62);
}
.sage-stream-text .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(4px);
  filter: blur(2px);
  transition:
    opacity 380ms cubic-bezier(.4,0,.2,1),
    transform 380ms cubic-bezier(.4,0,.2,1),
    filter 380ms cubic-bezier(.4,0,.2,1);
}
.sage-stream-text .w.is-in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.sage-stream-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}
.sage-stream-dots .d {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(242,239,234,0.16);
  transition: background 400ms ease, transform 400ms ease;
}
.sage-stream-dots .d.is-active {
  background: var(--sage-blue);
  transform: scale(1.2);
}

@media (max-width: 1200px) {
  .sage-banner-head h2 {
    white-space: normal;
    max-width: 880px;
    font-size: clamp(34px, 5vw, 56px);
  }
  .sage-banner-head .deck {
    white-space: normal;
    max-width: 720px;
  }
}
@media (max-width: 980px) {
  .sage-banner-head h2 { font-size: clamp(32px, 6.5vw, 46px); }
  .sage-banner-body {
    grid-template-columns: 1fr;
    gap: 64px;
  }
  .sage-stage { order: 2; }
  .sage-copy  { order: 1; max-width: none; text-align: center; margin: 0 auto; }
  .sage-copy .eyebrow { justify-content: center; }
  .sage-roles { text-align: left; }
  .orb-wrap { width: min(380px, 80vw); height: min(380px, 80vw); }
  .sage-channels .label { text-align: center; }
}
@media (max-width: 560px) {
  .sage-banner { padding: 80px 0 88px; }
  .sage-banner-head { margin-bottom: 40px; }
  .orb-wrap { width: min(320px, 78vw); height: min(320px, 78vw); }
  .sage-stream { height: 140px; }
  .sage-stream-text { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .graph-group, .core-group { animation: none !important; }
  .sage-stream-slot { transition: none; }
}
