/*!
 * SDO Landing — Pixel-faithful vanilla CSS
 * Ported from demo-sdo globals.css + Tailwind utility equivalents
 * Scope: .sdo-landing (and .demo-nav / .demo-mobile-menu for homepage chrome)
 */

/* ═══════════════════════════════════════════════
   0. DESIGN TOKENS (exact from globals.css)
   ═══════════════════════════════════════════════ */
.sdo-landing,
.sdo-page,
.demo-nav,
.demo-mobile-menu,
.demo-footer,
.sdo-tip {
  --background: #030712;
  --foreground: #e8eef4;
  --muted: #8b9aab;
  /* Soft brand teal — not neon candy */
  --accent-cyan: #5bb8c9;
  --accent-violet: #8fa3b8;
  --accent-emerald: #5fad8f;
  --accent-amber: #c9a227;
  --accent-rose: #c97b88;
  --accent-blue: #6f95c4;
  --surface: rgba(15, 23, 42, 0.72);
  --border: rgba(148, 163, 184, 0.14);
  --header-bg: rgba(3, 7, 18, 0.9);
  --header-shadow: rgba(0, 0, 0, 0.25);
  --glow-cyan: rgba(91, 184, 201, 0.12);
  --glow-violet: rgba(143, 163, 184, 0.1);
  --mesh-1: rgba(91, 184, 201, 0.08);
  --mesh-2: rgba(143, 163, 184, 0.06);
  --mesh-3: rgba(95, 173, 143, 0.05);
  --grid-line: rgba(148, 163, 184, 0.04);
  --particle-opacity: 0.28;
  --placeholder-bg: rgba(255, 255, 255, 0.02);
  --placeholder-border: rgba(255, 255, 255, 0.12);
  --selection-bg: rgba(91, 184, 201, 0.22);
  --selection-color: #fff;
  --btn-fill: #2f8fa0;
  --btn-fill-hover: #3aa0b2;
  --font-sans: "Vazirmatn", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
  --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Light only when Django theme.js resolved to light (avoids FOUC) */
[data-theme="light"] .sdo-landing,
[data-theme="light"] .sdo-page,
[data-theme="light"] .demo-nav,
[data-theme="light"] .demo-mobile-menu,
[data-theme="light"] .demo-footer {
  --background: #f7f8fa;
  --foreground: #152033;
  --muted: #5f6f82;
  --accent-cyan: #1f7a8a;
  --accent-violet: #5b6b7c;
  --accent-emerald: #2f7d63;
  --accent-amber: #9a7418;
  --accent-rose: #a85a66;
  --accent-blue: #3b6ea5;
  --surface: rgba(255, 255, 255, 0.92);
  --border: rgba(21, 32, 51, 0.1);
  --header-bg: rgba(247, 248, 250, 0.94);
  --header-shadow: rgba(15, 23, 42, 0.06);
  --glow-cyan: rgba(31, 122, 138, 0.1);
  --glow-violet: rgba(91, 107, 124, 0.08);
  --mesh-1: rgba(31, 122, 138, 0.07);
  --mesh-2: rgba(91, 107, 124, 0.05);
  --mesh-3: rgba(47, 125, 99, 0.05);
  --grid-line: rgba(15, 23, 42, 0.05);
  --particle-opacity: 0.14;
  --placeholder-bg: rgba(15, 23, 42, 0.03);
  --placeholder-border: rgba(15, 23, 42, 0.1);
  --selection-bg: rgba(31, 122, 138, 0.18);
  --selection-color: #152033;
  --btn-fill: #1f7a8a;
  --btn-fill-hover: #186575;
}

/* Landing + site pages body */
body.sdo-landing-page,
body.sdo-site-page {
  --background: #030712;
  --foreground: #f1f5f9;
}
[data-theme="light"] body.sdo-landing-page,
[data-theme="light"] body.sdo-site-page {
  --background: #f8fafc;
  --foreground: #0f172a;
}

body.sdo-landing-page,
body.sdo-site-page {
  background: var(--background, #030712) !important;
  color: var(--foreground, #f1f5f9);
  font-family: "Vazirmatn", ui-sans-serif, system-ui, sans-serif;
  overflow-x: hidden;
  min-height: 100%;
}

[data-theme="light"] body.sdo-landing-page,
[data-theme="light"] body.sdo-site-page {
  background: #f8fafc !important;
  color: #0f172a;
}

body.sdo-landing-page .preloader,
body.sdo-landing-page #scroll-top,
body.sdo-site-page .preloader,
body.sdo-site-page #scroll-top {
  display: none !important;
}

.sdo-landing {
  position: relative;
  z-index: 10;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
}

.sdo-landing *,
.sdo-landing *::before,
.sdo-landing *::after,
.sdo-page *,
.sdo-page *::before,
.sdo-page *::after,
.demo-nav *,
.demo-mobile-menu *,
.demo-footer *,
.demo-footer *::before,
.demo-footer *::after {
  box-sizing: border-box;
}

.sdo-landing a,
.demo-footer a {
  text-decoration: none;
  color: inherit;
}

/* Nav/menu links must NOT inherit page body colors (Bootstrap/Tailwind) */
.demo-nav,
.demo-mobile-menu {
  color: var(--foreground);
  font-family: var(--font-sans);
}

.demo-nav a,
.demo-mobile-menu a {
  text-decoration: none;
}

.sdo-landing ::selection {
  background: var(--selection-bg);
  color: var(--selection-color);
}

/* ═══════════════════════════════════════════════
   1. SHARED UTILITY CLASSES (from globals.css)
   ═══════════════════════════════════════════════ */
.mesh-bg {
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--mesh-1), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, var(--mesh-2), transparent),
    radial-gradient(ellipse 50% 30% at 0% 50%, var(--mesh-3), transparent);
}

.grid-overlay {
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000, transparent);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000, transparent);
}

.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.glass-strong {
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

.glow-ring {
  box-shadow:
    0 0 0 1px var(--border),
    0 8px 24px -12px rgba(0, 0, 0, 0.35);
}

.header-bar {
  background: var(--header-bg) !important;
  border-color: var(--border) !important;
  box-shadow: 0 4px 24px -4px var(--header-shadow);
}

.demo-nav-link {
  color: var(--muted) !important;
  transition: color 0.2s, background-color 0.2s;
}

.demo-nav-link:hover {
  color: var(--foreground) !important;
  background-color: color-mix(in srgb, var(--foreground) 5%, transparent);
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, color-mix(in srgb, var(--accent-cyan) 55%, var(--foreground)) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-shimmer {
  background: linear-gradient(90deg, var(--foreground) 0%, var(--accent-cyan) 45%, var(--foreground) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}

@keyframes shimmer {
  to { background-position: 200% center; }
}

.counter-gradient {
  background: linear-gradient(135deg, var(--foreground) 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.particles-layer {
  opacity: var(--particle-opacity);
  transition: opacity 0.3s ease;
}

.spotlight-card {
  position: relative;
  overflow: hidden;
  --mouse-x: 50%;
  --mouse-y: 50%;
}

.spotlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mouse-x) var(--mouse-y), var(--glow-cyan), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.spotlight-card:hover::before { opacity: 1; }
.spotlight-card > * { position: relative; z-index: 1; }

.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
}

.magnetic-btn {
  transition: transform 0.2s var(--ease-out-expo);
}

.bento-glow {
  box-shadow: 0 0 0 1px var(--border), 0 4px 24px -12px rgba(0, 0, 0, 0.25);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.bento-glow:hover {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--foreground) 14%, transparent), 0 16px 32px -18px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.widget-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.ticker-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 30s linear infinite;
}

.ticker-track:hover { animation-play-state: paused; }

@keyframes ticker {
  to { transform: translateX(50%); }
}

.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.placeholder-box {
  border: 1px dashed var(--placeholder-border);
  background: var(--placeholder-bg);
}

/* ═══════════════════════════════════════════════
   2. LAYOUT PRIMITIVES (Tailwind → rem)
   max-w-7xl=80rem, px-4=1rem, sm:px-6=1.5rem, lg:px-8=2rem
   py-24=6rem, sm:py-32=8rem
   ═══════════════════════════════════════════════ */
.demo-container {
  width: 100%;
  max-width: 80rem; /* max-w-7xl */
  margin-inline: auto;
  padding-inline: 1rem; /* px-4 */
}

@media (min-width: 640px) {
  .demo-container { padding-inline: 1.5rem; } /* sm:px-6 */
}

@media (min-width: 1024px) {
  .demo-container { padding-inline: 2rem; } /* lg:px-8 */
}

.demo-section {
  position: relative;
  padding-block: 6rem; /* py-24 */
}

@media (min-width: 640px) {
  .demo-section { padding-block: 8rem; } /* sm:py-32 */
}

.demo-section-header {
  display: flex;
  flex-direction: column;
  gap: 1rem; /* gap-4 */
  align-items: center;
  text-align: center;
}

.demo-section-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--foreground) 4%, transparent);
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}

.demo-section-title {
  margin: 0;
  max-width: 48rem; /* max-w-3xl */
  font-size: 1.875rem; /* text-3xl */
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--foreground);
}

@media (min-width: 640px) {
  .demo-section-title { font-size: 2.25rem; } /* sm:text-4xl */
}

@media (min-width: 1024px) {
  .demo-section-title { font-size: 3rem; } /* lg:text-5xl */
}

.demo-section-subtitle {
  margin: 0;
  max-width: 42rem; /* max-w-2xl */
  font-size: 1rem;
  line-height: 1.625;
  color: var(--muted);
}

@media (min-width: 640px) {
  .demo-section-subtitle { font-size: 1.125rem; } /* sm:text-lg */
}

.text-muted { color: var(--muted); }
.text-foreground { color: var(--foreground); }
.text-cyan { color: var(--accent-cyan); }
.text-violet { color: var(--accent-violet); }
.text-emerald { color: var(--accent-emerald); }
.text-amber { color: var(--accent-amber); }
.text-rose { color: var(--accent-rose); }
.text-blue { color: var(--accent-blue); }

/* Tone helpers for borders/bg */
.tone-cyan { color: var(--accent-cyan); border-color: color-mix(in srgb, var(--accent-cyan) 20%, transparent); background: color-mix(in srgb, var(--accent-cyan) 5%, transparent); }
.tone-violet { color: var(--accent-violet); border-color: color-mix(in srgb, var(--accent-violet) 20%, transparent); background: color-mix(in srgb, var(--accent-violet) 5%, transparent); }
.tone-emerald { color: var(--accent-emerald); border-color: color-mix(in srgb, var(--accent-emerald) 20%, transparent); background: color-mix(in srgb, var(--accent-emerald) 5%, transparent); }
.tone-blue { color: var(--accent-blue); border-color: color-mix(in srgb, var(--accent-blue) 20%, transparent); background: color-mix(in srgb, var(--accent-blue) 5%, transparent); }
.tone-amber { color: var(--accent-amber); border-color: color-mix(in srgb, var(--accent-amber) 20%, transparent); background: color-mix(in srgb, var(--accent-amber) 5%, transparent); }
.tone-rose { color: var(--accent-rose); border-color: color-mix(in srgb, var(--accent-rose) 20%, transparent); background: color-mix(in srgb, var(--accent-rose) 5%, transparent); }

.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid currentColor;
  background: color-mix(in srgb, currentColor 10%, transparent);
}

.chip {
  display: inline-block;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--foreground) 5%, transparent);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  color: color-mix(in srgb, var(--foreground) 80%, transparent);
}

/* ═══════════════════════════════════════════════
   3. DEMO NAVBAR (Next.js Navbar pixel map)
   ═══════════════════════════════════════════════ */
.demo-nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--background) 72%, transparent);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
  animation: demo-nav-in 0.5s var(--ease-out-expo);
  color: var(--foreground);
}

@keyframes demo-nav-in {
  from { transform: translateY(-80px); }
  to { transform: translateY(0); }
}

.demo-nav__inner {
  display: flex;
  max-width: 80rem;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.85rem;
}

@media (min-width: 640px) {
  .demo-nav__inner { padding: 0.75rem 1.5rem; }
}

@media (min-width: 1024px) {
  .demo-nav__inner { padding-inline: 2rem; }
}

.demo-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}

.demo-nav__logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.6rem;
  border-radius: 0.65rem;
  line-height: 0;
  /* Dark mode: light plate under the dark logo asset */
  background: #f8fafc;
  box-shadow: 0 0 0 1px color-mix(in srgb, #fff 14%, transparent);
}

.demo-nav__logo-wrap--sm {
  padding: 0.25rem 0.45rem;
  border-radius: 0.5rem;
}

[data-theme="light"] .demo-nav__logo-wrap {
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.demo-nav__logo {
  display: block;
  height: 2rem;
  width: auto;
  max-width: 7.5rem;
  object-fit: contain;
}

.demo-nav__logo--sm {
  height: 1.65rem;
  max-width: 5.5rem;
}

/* Match footer: on light theme, ink-black logo */
[data-theme="light"] .demo-nav__logo {
  filter: brightness(0);
  opacity: 0.88;
}

.demo-nav__mark {
  display: flex;
  height: 2.25rem; /* h-9 */
  width: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem; /* rounded-xl */
  background: linear-gradient(to bottom right, color-mix(in srgb, var(--accent-cyan) 16%, transparent), color-mix(in srgb, var(--foreground) 8%, transparent));
  box-shadow: 0 0 0 1px var(--border);
}

.demo-nav__mark span {
  font-size: 1.125rem;
  font-weight: 700;
}

.demo-nav__brand-text strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  color: var(--foreground) !important;
}

.demo-nav__brand-text small {
  display: block;
  font-size: 10px;
  color: var(--muted) !important;
}

.demo-nav__links {
  display: none;
  align-items: center;
  gap: 0.25rem; /* gap-1 */
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 1024px) {
  .demo-nav__links { display: flex; }
}

.demo-nav__links a,
.demo-nav__links button {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: none;
  background: transparent;
  border-radius: 0.5rem; /* rounded-lg */
  padding: 0.5rem 0.75rem; /* py-2 px-3 */
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
}

.demo-nav__more {
  position: relative;
}

.demo-nav__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  width: 16rem; /* w-64 */
  origin: top right;
  border-radius: 1rem; /* rounded-2xl */
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--background) 95%, transparent);
  padding: 0.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  z-index: 60;
}

.demo-nav__more:hover .demo-nav__dropdown,
.demo-nav__more.is-open .demo-nav__dropdown {
  display: block;
  animation: demo-dropdown-in 0.2s var(--ease-out-expo);
}

@keyframes demo-dropdown-in {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.demo-nav__dropdown a {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border-radius: 0.75rem;
  padding: 0.625rem 0.75rem;
  width: 100%;
}

.demo-nav__dropdown a:hover {
  background: color-mix(in srgb, var(--foreground) 5%, transparent);
}

.demo-nav__drop-icon {
  display: flex;
  height: 2rem;
  width: 2rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: color-mix(in srgb, var(--accent-cyan) 10%, transparent);
  color: var(--accent-cyan);
  font-size: 0.875rem;
}

.demo-nav__drop-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground) !important;
}

.demo-nav__drop-desc {
  font-size: 11px;
  color: var(--muted) !important;
}

.demo-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

@media (min-width: 640px) {
  .demo-nav__actions { gap: 0.6rem; }
}

.demo-nav__theme {
  display: flex;
  align-items: center;
}

.demo-nav__cta-ghost {
  display: none;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  color: var(--foreground) !important;
  background: transparent;
  transition: transform 0.2s ease, background 0.2s ease;
}

@media (min-width: 1024px) {
  .demo-nav__cta-ghost { display: block; }
}

.demo-nav__cta-ghost:hover {
  transform: scale(1.03);
  background: color-mix(in srgb, var(--foreground) 5%, transparent);
}

.demo-nav-link.is-active {
  color: var(--accent-cyan) !important;
  font-weight: 600;
}

.demo-nav__cta-primary {
  display: none;
  align-items: center;
  gap: 0.375rem;
  border-radius: 0.7rem;
  background: var(--btn-fill);
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  transition: background 0.2s ease;
}

.demo-nav__cta-primary:hover {
  background: var(--btn-fill-hover);
}

@media (min-width: 1024px) {
  .demo-nav__cta-primary { display: flex; }
}

.demo-nav__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.65rem;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--accent-cyan) 10%, transparent);
  color: var(--accent-cyan);
  font-size: 0.8rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.demo-nav__icon-btn:hover {
  transform: scale(1.05);
  background: color-mix(in srgb, var(--accent-cyan) 18%, transparent);
}

@media (min-width: 1024px) {
  .demo-nav__icon-btn--phone { display: none; }
}

.demo-nav__menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--foreground) 4%, transparent);
  border-radius: 0.65rem;
  color: var(--foreground);
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.demo-nav__menu-btn:hover {
  background: color-mix(in srgb, var(--foreground) 8%, transparent);
}

@media (min-width: 1024px) {
  .demo-nav__menu-btn { display: none; }
}

.demo-nav__chevron {
  font-size: 0.65rem;
  transition: transform 0.2s;
}

.demo-nav__more.is-open .demo-nav__chevron,
.demo-nav__more:hover .demo-nav__chevron {
  transform: rotate(180deg);
}

/* ── Mobile sheet menu (compact, no-scroll) ── */
.demo-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  visibility: hidden;
}

.demo-mobile-menu.is-open {
  pointer-events: auto;
  visibility: visible;
}

.demo-mobile-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  touch-action: none;
}

.demo-mobile-menu.is-open .demo-mobile-menu__backdrop {
  opacity: 1;
}

.demo-mobile-menu__sheet {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  display: flex;
  flex-direction: column;
  width: min(100%, 18.5rem);
  max-width: 100%;
  max-height: 100dvh;
  background: var(--background);
  border-inline-start: 1px solid var(--border);
  box-shadow: -20px 0 50px -20px rgba(0, 0, 0, 0.45);
  transform: translateX(100%);
  transition: transform 0.28s var(--ease-out-expo);
  overscroll-behavior: contain;
  touch-action: pan-y;
}

[dir="rtl"] .demo-mobile-menu__sheet {
  transform: translateX(-100%);
  box-shadow: 20px 0 50px -20px rgba(0, 0, 0, 0.45);
}

.demo-mobile-menu.is-open .demo-mobile-menu__sheet {
  transform: translateX(0);
}

.demo-mobile-menu__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
  padding: 0.45rem 0.75rem;
  flex-shrink: 0;
}

.demo-mobile-menu__bar .demo-nav__logo {
  height: 1.85rem;
  max-width: 5.5rem;
}

.demo-mobile-menu__bar .demo-nav__mark {
  height: 1.85rem;
  width: 1.85rem;
  border-radius: 0.55rem;
}

.demo-mobile-menu__bar .demo-nav__mark span {
  font-size: 0.9rem;
}

.demo-mobile-menu__bar .demo-nav__brand-text strong {
  font-size: 0.75rem;
}

.demo-mobile-menu__bar .demo-nav__brand-text small {
  font-size: 9px;
}

.demo-mobile-menu__bar .demo-nav__menu-btn {
  width: 2.1rem;
  height: 2.1rem;
  font-size: 0.9rem;
}

.demo-mobile-menu__bar-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.demo-mobile-menu__quick {
  display: grid;
  grid-template-columns: 1.45fr 0.7fr;
  gap: 0.35rem;
  padding: 0.55rem 0.75rem 0.15rem;
  flex-shrink: 0;
}

.demo-mobile-menu__quick-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.15rem;
  border-radius: 0.65rem;
  padding: 0.35rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff !important;
  background: var(--btn-fill);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  white-space: nowrap;
}

.demo-mobile-menu__quick-btn span[dir="ltr"] {
  direction: ltr;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
}

.demo-mobile-menu__quick-btn--ghost {
  color: var(--foreground) !important;
  background: transparent;
  border: 1px solid var(--border);
  box-shadow: none;
}

.demo-mobile-menu__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  padding: 0.45rem 0.75rem 0.35rem;
  overscroll-behavior: contain;
}

.demo-mobile-menu__group {
  margin-bottom: 0.55rem;
}

.demo-mobile-menu__group + .demo-mobile-menu__group {
  padding-top: 0.45rem;
  border-top: 1px solid var(--border);
  margin-bottom: 0;
}

.demo-mobile-menu__label {
  margin: 0 0 0.3rem;
  padding-inline: 0.15rem;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
}

.demo-mobile-menu__pages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.3rem;
}

.demo-mobile-menu__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.15rem;
  border-radius: 0.6rem;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--foreground) 3%, transparent);
  padding: 0.35rem 0.45rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--foreground) !important;
}

.demo-mobile-menu__page i {
  font-size: 0.72rem;
  color: var(--accent-cyan) !important;
}

.demo-mobile-menu__page:active,
.demo-mobile-menu__page:hover {
  border-color: color-mix(in srgb, var(--accent-cyan) 30%, transparent);
  background: color-mix(in srgb, var(--accent-cyan) 8%, transparent);
}

.demo-mobile-menu__features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.3rem;
}

.demo-mobile-menu__chip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  border-radius: 0.55rem;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--accent-violet) 6%, transparent);
  padding: 0.3rem 0.4rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--foreground) !important;
  text-align: center;
}

.demo-mobile-menu__chip:hover,
.demo-mobile-menu__chip:active {
  border-color: color-mix(in srgb, var(--accent-cyan) 35%, transparent);
  color: var(--accent-cyan);
}

.demo-mobile-menu__ctas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--background) 94%, transparent);
}

.demo-mobile-menu__ctas a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  border-radius: 0.65rem;
  padding: 0.55rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  min-height: 2.25rem;
}

.demo-mobile-menu__ctas a.ghost {
  border: 1px solid var(--border);
  color: var(--foreground) !important;
  background: transparent;
}

.demo-mobile-menu__ctas a.primary {
  color: #fff !important;
  background: var(--btn-fill);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

/* Fixed header offset for non-landing intro pages */
body:not(.sdo-landing-page):has(.demo-nav) {
  padding-top: 3.75rem;
}

/* Same chrome on every page (not only landing) */
body:not(.sdo-landing-page) .demo-nav {
  background: color-mix(in srgb, var(--background) 82%, transparent);
}

body:not(.sdo-landing-page) .demo-nav.header-bar {
  background: var(--header-bg) !important;
}

/* Features dropdown on Bootstrap header (non-landing pages) */
.sdo-features-dropdown { position: relative; }
.sdo-features-dropdown > .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}
.sdo-features-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  min-width: 16rem;
  padding: 0.5rem;
  border-radius: 1rem;
  border: 1px solid var(--border, rgba(148,163,184,0.18));
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.45);
  z-index: 1050;
}
[data-theme="light"] .sdo-features-menu {
  background: rgba(255,255,255,0.98);
  border-color: rgba(15,23,42,0.1);
}
.sdo-features-dropdown:hover .sdo-features-menu,
.sdo-features-dropdown.is-open .sdo-features-menu { display: block; }
.sdo-features-menu a {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.75rem;
  color: inherit;
}
.sdo-features-menu a:hover { background: rgba(34,211,238,0.08); }
.sdo-feat-icon {
  display: flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 0.5rem;
  background: color-mix(in srgb, var(--foreground) 6%, transparent); color: var(--muted); flex-shrink: 0;
}
.sdo-feat-label { font-size: 0.875rem; font-weight: 600; display: block; }
.sdo-feat-desc { font-size: 0.7rem; opacity: 0.65; display: block; margin-top: 0.15rem; }
@media (max-width: 991.98px) {
  .sdo-features-dropdown .sdo-features-menu {
    position: static; display: none; box-shadow: none;
    background: transparent; border: none; padding: 0.25rem 0 0.25rem 0.75rem;
  }
  .sdo-features-dropdown.is-open .sdo-features-menu { display: block; }
  .sdo-features-dropdown:hover .sdo-features-menu { display: none; }
  .sdo-features-dropdown.is-open:hover .sdo-features-menu { display: block; }
}

/* ═══════════════════════════════════════════════
   4. HERO (#hero) — HeroBento exact map
   ═══════════════════════════════════════════════ */
.hero-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding-top: 7rem; /* pt-28 */
  padding-bottom: 5rem; /* pb-20 */
}

@media (min-width: 640px) {
  .hero-section {
    padding-top: 9rem; /* sm:pt-36 */
    padding-bottom: 7rem; /* sm:pb-28 */
  }
}

.hero-section > .mesh-bg,
.hero-section > .grid-overlay {
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.hero-orb {
  pointer-events: none;
  position: absolute;
  border-radius: 9999px;
  filter: blur(64px); /* blur-3xl */
}

.hero-orb--cyan {
  top: 6rem; /* top-24 */
  right: 15%;
  height: 18rem; /* h-72 */
  width: 18rem;
  background: rgba(6, 182, 212, 0.1); /* bg-cyan-500/10 */
  animation: hero-float-a 7s ease-in-out infinite;
}

.hero-orb--violet {
  bottom: 6rem;
  left: 10%;
  height: 16rem;
  width: 16rem;
  background: rgba(139, 92, 246, 0.1);
  animation: hero-float-b 8s ease-in-out infinite;
  animation-delay: 1s;
}

.hero-orb--emerald {
  top: 50%;
  left: 50%;
  height: 24rem;
  width: 24rem;
  background: rgba(16, 185, 129, 0.05);
  animation: hero-pulse 10s ease-in-out infinite;
}

@keyframes hero-float-a {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-24px) scale(1.05); }
}

@keyframes hero-float-b {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(18px) scale(1.08); }
}

@keyframes hero-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.1); }
}

.hero-grid {
  position: relative;
  display: grid;
  align-items: center;
  gap: 4rem; /* gap-16 */
}

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; } /* lg:grid-cols-2 */
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 2rem; /* gap-8 */
}

.hero-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--foreground) 4%, transparent);
  padding: 0.45rem 0.9rem;
  font-size: 0.75rem;
  color: var(--muted);
}

[data-theme="light"] .hero-badge {
  color: var(--muted);
}

.hero-badge-dot {
  position: relative;
  display: flex;
  height: 0.5rem;
  width: 0.5rem;
}

.hero-badge-dot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: var(--accent-cyan);
  opacity: 0.35;
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.hero-badge-dot::after {
  content: "";
  position: relative;
  display: inline-flex;
  height: 0.5rem;
  width: 0.5rem;
  border-radius: 9999px;
  background: var(--accent-cyan);
}

@keyframes ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}

.hero-title {
  margin: 0;
  font-size: 2.25rem; /* text-4xl */
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--foreground);
}

@media (min-width: 640px) {
  .hero-title { font-size: 3rem; } /* sm:text-5xl */
}

@media (min-width: 1024px) {
  .hero-title { font-size: 3.75rem; } /* lg:text-6xl */
}

.hero-lead {
  margin: 0;
  max-width: 36rem; /* max-w-xl */
  font-size: 1.125rem;
  line-height: 1.625;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.hero-actions .hero-btn,
.hero-actions .btn-primary,
.hero-actions .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.25;
  border-radius: 0.65rem;
  min-height: 2.4rem;
  text-decoration: none;
  white-space: nowrap;
}

.hero-actions .btn-primary {
  border: none;
  background: var(--btn-fill);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-actions .btn-primary:hover {
  background: var(--btn-fill-hover);
  transform: translateY(-1px);
}

.hero-actions .btn-ghost {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--foreground) 5%, transparent);
  color: var(--foreground);
  cursor: pointer;
  font-family: inherit;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.hero-actions .btn-ghost:hover {
  background: color-mix(in srgb, var(--foreground) 10%, transparent);
  transform: translateY(-1px);
}

.hero-actions .hero-btn--quiet {
  border-color: transparent;
  background: transparent;
  padding-inline: 0.75rem;
  color: var(--muted);
}

.hero-actions .hero-btn--quiet:hover {
  color: var(--foreground);
  background: color-mix(in srgb, var(--foreground) 6%, transparent);
}

.hero-actions .hero-btn i {
  font-size: 0.7rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  border-radius: 0.75rem;
  background: var(--btn-fill);
  padding: 1rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background: var(--btn-fill-hover);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--foreground) 5%, transparent);
  padding: 1rem 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: color-mix(in srgb, var(--foreground) 10%, transparent);
  transform: scale(1.02);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
}

.hero-stat {
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
}

.hero-stat__value {
  font-size: 1.5rem;
  font-weight: 700;
}

.hero-stat__label {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.hero-mock { position: relative; }

.hero-bento {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-bento { grid-template-columns: 1fr 1fr; }
}

.hero-bento__main {
  grid-column: 1 / -1;
  border-radius: 1.5rem; /* rounded-3xl */
  padding: 1.25rem;
}

.hero-bento__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.hero-bento__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.hero-bento__kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.hero-bento__kpi {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--foreground) 2%, transparent);
  padding: 0.75rem;
  text-align: center;
}

.hero-bento__kpi strong {
  display: block;
  font-size: 1.125rem;
}

.hero-bento__kpi span {
  font-size: 10px;
  color: var(--muted);
}

.hero-widget {
  border-radius: 1rem;
  border: 1px solid;
  padding: 1rem;
}

.hero-widget__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--foreground);
}

.hero-widget ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-widget li {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 0.375rem;
}

.hero-ai {
  grid-column: 1 / -1;
  border-radius: 1rem;
  padding: 1rem;
}

.hero-ai__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
}

.hero-ai__body {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
}

.hero-ai__chart {
  flex: 1;
  height: 4rem; /* h-16 */
}

.hero-ai__notes {
  font-size: 10px;
  line-height: 1.625;
  color: var(--muted);
}

.hero-ai__notes p { margin: 0; }

.hero-float {
  position: absolute;
  bottom: -1rem;
  right: -0.5rem;
  max-width: 220px;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

@media (min-width: 640px) {
  .hero-float { right: -1.5rem; }
}

.hero-float__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-emerald);
}

.hero-float p {
  margin: 0.5rem 0 0;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.625;
}

/* Particles canvas */
#sdo-particles-canvas {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
}

/* Ticker chips */
.ticker-pad { padding-block: 2rem; } /* py-8 */

.ticker-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-inline: 0.75rem; /* mx-3 */
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--foreground) 3%, transparent);
  padding: 0.625rem 1.25rem; /* py-2.5 px-5 */
  font-size: 0.875rem;
  color: var(--muted);
  white-space: nowrap;
}

.ticker-chip::before {
  content: "";
  height: 0.375rem;
  width: 0.375rem;
  border-radius: 9999px;
  background: var(--accent-cyan);
  flex-shrink: 0;
}

/* Continue in part 2 file append... */


/* ═══════════════════════════════════════════════
   5. PROBLEM / PILLARS / GENERIC CARDS
   ═══════════════════════════════════════════════ */
.cards-4 {
  display: grid;
  gap: 1.5rem; /* gap-6 */
  margin-top: 4rem; /* mt-16 */
}

@media (min-width: 640px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .cards-4 { grid-template-columns: repeat(4, 1fr); }
}

.cards-2 {
  display: grid;
  gap: 1.5rem;
  margin-top: 4rem;
}

@media (min-width: 768px) {
  .cards-2 { grid-template-columns: repeat(2, 1fr); }
}

.cards-3 {
  display: grid;
  gap: 1.5rem;
  margin-top: 4rem;
}

@media (min-width: 768px) {
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
}

.problem-card {
  height: 100%;
  border-radius: 1rem; /* rounded-2xl */
  padding: 1.5rem; /* p-6 */
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
}

.problem-card:hover {
  transform: translateY(-6px);
  border-color: rgba(248, 113, 113, 0.25);
  background: color-mix(in srgb, rgba(248, 113, 113, 0.03) 100%, var(--surface));
}

.problem-cards .problem-card:hover {
  transform: translateY(0); /* tilt handler owns motion */
  background: color-mix(in srgb, rgba(248, 113, 113, 0.04) 100%, var(--surface));
  border-color: color-mix(in srgb, var(--accent-rose) 35%, transparent);
  box-shadow:
    0 16px 40px -22px rgba(0, 0, 0, 0.55),
    0 0 0 1px color-mix(in srgb, var(--accent-rose) 12%, transparent);
}

.problem-card i { font-size: 2rem; }

.problem-card h3 {
  margin: 1rem 0 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
}

.problem-card p {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted);
}

.problem-callout {
  margin-top: 3rem;
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, var(--accent-cyan) 20%, transparent);
  background: linear-gradient(to left, color-mix(in srgb, var(--accent-cyan) 6%, transparent), color-mix(in srgb, var(--foreground) 4%, transparent));
  padding: 2rem;
  text-align: center;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--foreground);
}

.pillar-card {
  border-radius: 1.5rem;
  border: 1px solid;
  padding: 2rem; /* p-8 */
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pillar-card:hover {
  transform: scale(1.02) translateY(-4px);
}

.pillars-grid .pillar-card:hover {
  transform: none;
}

.pillar-card .icon-box {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  margin-bottom: 1rem;
  border: none;
  background: color-mix(in srgb, var(--foreground) 5%, transparent);
}

.pillar-card h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
}

.pillar-card > p,
.pillar-card__surface > p {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted);
}

.pillar-card .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.pillar-card--cyan {
  border-color: color-mix(in srgb, var(--accent-cyan) 20%, transparent);
  background: linear-gradient(to bottom left, rgba(6, 182, 212, 0.2), rgba(6, 182, 212, 0.05));
}
.pillar-card--violet {
  border-color: color-mix(in srgb, var(--accent-violet) 20%, transparent);
  background: linear-gradient(to bottom left, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.05));
}
.pillar-card--emerald {
  border-color: color-mix(in srgb, var(--accent-emerald) 20%, transparent);
  background: linear-gradient(to bottom left, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.05));
}
.pillar-card--amber {
  border-color: color-mix(in srgb, var(--accent-amber) 20%, transparent);
  background: linear-gradient(to bottom left, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.05));
}

/* ═══════════════════════════════════════════════
   6. FEATURE TABS — pixel map of FeatureTabs.tsx
   pills: mt-12 gap-3 · panel: mt-12 lg:grid-cols-3
   active pill = accent tint (not white gradient)
   ═══════════════════════════════════════════════ */
.features-section {
  position: relative;
}

.features-section__glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(6, 182, 212, 0.05),
    transparent,
    rgba(139, 92, 246, 0.05)
  );
}

.features-section__inner {
  position: relative;
}

.features-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem; /* gap-3 */
  margin-top: 3rem; /* mt-12 */
}

.features-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem; /* gap-2 */
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  padding: 0.625rem 1.25rem; /* px-5 py-2.5 */
  font-size: 0.875rem; /* text-sm */
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease,
    transform 0.2s ease;
}

.features-pill i {
  font-size: 0.9rem; /* ~h-4 w-4 */
}

.features-pill:hover {
  border-color: color-mix(in srgb, var(--foreground) 20%, transparent);
  background: color-mix(in srgb, var(--foreground) 5%, transparent);
  color: var(--foreground);
  transform: scale(1.03);
}

.features-pill:active {
  transform: scale(0.97);
}

/* Active = colorClasses from FeatureTabs.tsx */
.features-pill[aria-selected="true"][data-color="cyan"],
.features-pill.is-active[data-color="cyan"] {
  color: var(--accent-cyan);
  border-color: color-mix(in srgb, var(--accent-cyan) 20%, transparent);
  background: color-mix(in srgb, var(--accent-cyan) 5%, transparent);
}

.features-pill[aria-selected="true"][data-color="violet"],
.features-pill.is-active[data-color="violet"] {
  color: var(--accent-violet);
  border-color: color-mix(in srgb, var(--accent-violet) 20%, transparent);
  background: color-mix(in srgb, var(--accent-violet) 5%, transparent);
}

.features-pill[aria-selected="true"][data-color="emerald"],
.features-pill.is-active[data-color="emerald"] {
  color: var(--accent-emerald);
  border-color: color-mix(in srgb, var(--accent-emerald) 20%, transparent);
  background: color-mix(in srgb, var(--accent-emerald) 5%, transparent);
}

.features-pill[aria-selected="true"][data-color="blue"],
.features-pill.is-active[data-color="blue"] {
  color: var(--accent-blue);
  border-color: color-mix(in srgb, var(--accent-blue) 20%, transparent);
  background: color-mix(in srgb, var(--accent-blue) 5%, transparent);
}

.features-pill[aria-selected="true"][data-color="amber"],
.features-pill.is-active[data-color="amber"] {
  color: var(--accent-amber);
  border-color: color-mix(in srgb, var(--accent-amber) 20%, transparent);
  background: color-mix(in srgb, var(--accent-amber) 5%, transparent);
}

.features-pill[aria-selected="true"][data-color="rose"],
.features-pill.is-active[data-color="rose"] {
  color: var(--accent-rose);
  border-color: color-mix(in srgb, var(--accent-rose) 20%, transparent);
  background: color-mix(in srgb, var(--accent-rose) 5%, transparent);
}

.features-panel {
  margin-top: 3rem; /* mt-12 */
  min-height: 22rem;
}

.features-panel__grid {
  display: grid;
  gap: 1.5rem; /* gap-6 */
  animation: features-panel-in 0.35s ease both;
}

.features-panel__grid.is-leaving {
  animation: features-panel-out 0.18s ease both;
}

@keyframes features-panel-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes features-panel-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-16px); }
}

@media (min-width: 1024px) {
  .features-panel__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .features-summary {
    grid-column: span 1 / span 1;
  }

  .features-cards {
    grid-column: span 2 / span 2;
  }
}

/* Summary — glass-strong rounded-3xl p-8 + tone colorClasses */
.features-summary {
  border-radius: 1.5rem; /* rounded-3xl */
  border: 1px solid;
  padding: 2rem; /* p-8 */
  height: 100%;
}

.features-summary__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem; /* h-14 */
  height: 3.5rem;
  border-radius: 1rem; /* rounded-2xl */
  border: 1px solid currentColor;
  background: color-mix(in srgb, currentColor 10%, transparent);
  font-size: 1.35rem; /* ~h-7 */
}

.features-summary__title {
  margin: 1.5rem 0 0; /* mt-6 */
  font-size: 1.5rem; /* text-2xl */
  font-weight: 700;
  color: var(--foreground);
}

.features-summary__desc {
  margin: 0.75rem 0 0; /* mt-3 */
  font-size: 0.875rem; /* text-sm */
  line-height: 1.625;
  color: var(--muted);
}

.features-summary__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem; /* gap-2 */
  margin-top: 1.5rem; /* mt-6 */
}

.features-summary__chip {
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--foreground) 5%, transparent);
  padding: 0.25rem 0.75rem; /* px-3 py-1 */
  font-size: 0.75rem; /* text-xs */
  color: color-mix(in srgb, var(--foreground) 80%, transparent);
}

/* Cards — gap-4 sm:grid-cols-2 */
.features-cards {
  display: grid;
  gap: 1rem; /* gap-4 */
}

@media (min-width: 640px) {
  .features-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.features-card {
  height: 100%;
  border-radius: 1.5rem; /* rounded-3xl via spotlight-card */
  padding: 1.25rem; /* p-5 */
  animation: features-card-in 0.4s ease both;
}

@keyframes features-card-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.features-card__row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem; /* gap-3 */
}

.features-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5rem; /* h-10 */
  height: 2.5rem;
  border-radius: 0.75rem; /* rounded-xl */
  border: 1px solid currentColor;
  background: color-mix(in srgb, currentColor 10%, transparent);
  font-size: 1rem;
}

.features-card__title {
  margin: 0;
  font-weight: 600;
  color: var(--foreground);
}

.features-card__desc {
  margin: 0.25rem 0 0; /* mt-1 */
  font-size: 0.875rem; /* text-sm */
  line-height: 1.625;
  color: var(--muted);
}

/* Features — mobile / tablet */
@media (max-width: 767.98px) {
  .features-section.demo-section {
    padding-block: 3.5rem;
    overflow-x: clip;
  }

  .features-section .demo-section-title {
    font-size: clamp(1.35rem, 6.2vw, 1.75rem);
    line-height: 1.35;
  }

  .features-section .demo-section-subtitle {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .features-pills {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.45rem;
    margin-top: 1.75rem;
    padding: 0.15rem 0.1rem 0.65rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: pan-x manipulation;
    max-width: 100%;
  }

  .features-pills::-webkit-scrollbar {
    display: none;
  }

  .features-pill {
    flex: 0 0 auto;
    scroll-snap-align: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    font-size: 0.75rem;
    min-height: 2.25rem;
    -webkit-tap-highlight-color: transparent;
  }

  .features-pill i {
    font-size: 0.75rem;
  }

  .features-pill:hover {
    transform: none;
  }

  .features-panel {
    margin-top: 1.35rem;
    min-height: 0;
  }

  .features-panel__grid {
    gap: 0.85rem;
  }

  .features-summary {
    border-radius: 1.1rem;
    padding: 1.1rem 1.15rem;
  }

  .features-summary__icon {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.75rem;
    font-size: 1.05rem;
  }

  .features-summary__title {
    margin-top: 0.85rem;
    font-size: 1.15rem;
  }

  .features-summary__desc {
    margin-top: 0.4rem;
    font-size: 0.82rem;
  }

  /* Chips duplicate card titles — hide on phone to save space */
  .features-summary__chips {
    display: none;
  }

  .features-cards {
    gap: 0.65rem;
    grid-template-columns: 1fr;
  }

  .features-card {
    border-radius: 1rem;
    padding: 0.9rem 1rem;
    transform: none !important;
    transform-style: flat;
  }

  .features-card__row {
    gap: 0.65rem;
  }

  .features-card__icon {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 0.65rem;
    font-size: 0.85rem;
  }

  .features-card__title {
    font-size: 0.9rem;
  }

  .features-card__desc {
    font-size: 0.78rem;
    line-height: 1.6;
  }
}

@media (min-width: 768px) and (max-width: 1023.98px) {
  .features-section.demo-section {
    padding-block: 5rem;
  }

  .features-pills {
    margin-top: 2.25rem;
    gap: 0.55rem;
  }

  .features-pill {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .features-panel {
    margin-top: 2rem;
    min-height: 16rem;
  }

  .features-summary {
    padding: 1.5rem;
  }

  .features-summary__title {
    font-size: 1.3rem;
    margin-top: 1.1rem;
  }
}


/* ═══════════════════════════════════════════════
   7. ANALYTICS — pixel map of AnalyticsSection.tsx
   KPI: mt-12 gap-4 sm:2 lg:4
   Charts: mt-8 gap-6 lg:grid-cols-3 (2+1, 2+1, 3)
   ═══════════════════════════════════════════════ */
.analytics-section {
  position: relative;
}

.analytics-section__mesh {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.4;
}

.analytics-section__inner {
  position: relative;
}

.analytics-kpis {
  display: grid;
  gap: 1rem; /* gap-4 */
  margin-top: 3rem; /* mt-12 */
}

@media (min-width: 640px) {
  .analytics-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .analytics-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.analytics-kpi {
  border-radius: 1rem; /* rounded-2xl */
  padding: 1.25rem; /* p-5 */
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.analytics-kpi:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.25);
}

.analytics-kpi__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.analytics-kpi__icon {
  display: flex;
  height: 2.5rem; /* h-10 */
  width: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem; /* rounded-xl */
  background: color-mix(in srgb, var(--accent-cyan) 10%, transparent);
  color: var(--accent-cyan);
  font-size: 1.05rem;
}

.analytics-kpi__change {
  border-radius: 9999px;
  padding: 0.125rem 0.5rem; /* px-2 py-0.5 */
  font-size: 10px;
  font-weight: 500;
}

.analytics-kpi__change--up {
  background: color-mix(in srgb, var(--accent-emerald) 10%, transparent);
  color: var(--accent-emerald);
}

.analytics-kpi__change--warn {
  background: color-mix(in srgb, var(--accent-amber) 10%, transparent);
  color: var(--accent-amber);
}

.analytics-kpi__value {
  margin: 1rem 0 0; /* mt-4 */
  font-size: 1.875rem; /* text-3xl */
  font-weight: 700;
  color: var(--foreground);
  line-height: 1.2;
}

.analytics-kpi__suffix {
  font-size: 1.125rem; /* text-lg */
  font-weight: 500;
  color: var(--muted);
  margin-right: 0.1rem;
}

.analytics-kpi__label {
  margin: 0.25rem 0 0; /* mt-1 */
  font-size: 0.875rem; /* text-sm */
  color: var(--muted);
}

.analytics-kpi__source {
  margin: 0.5rem 0 0; /* mt-2 */
  font-size: 10px;
  color: color-mix(in srgb, var(--accent-cyan) 50%, transparent);
}

/* Charts grid — mt-8 gap-6 lg:grid-cols-3 */
.analytics-charts {
  display: grid;
  gap: 1.5rem; /* gap-6 */
  margin-top: 2rem; /* mt-8 */
}

@media (min-width: 1024px) {
  .analytics-charts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .analytics-chart--span-2 {
    grid-column: span 2 / span 2;
  }

  .analytics-chart--span-3 {
    grid-column: span 3 / span 3;
  }
}

.analytics-chart {
  border-radius: 1.5rem; /* rounded-3xl */
  padding: 1.5rem; /* p-6 */
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease;
}

.analytics-chart[data-accent="cyan"]:hover {
  border-color: rgba(34, 211, 238, 0.15);
}

.analytics-chart[data-accent="violet"]:hover {
  border-color: rgba(167, 139, 250, 0.15);
}

.analytics-chart[data-accent="emerald"]:hover {
  border-color: rgba(52, 211, 153, 0.15);
}

.analytics-chart[data-accent="rose"]:hover {
  border-color: rgba(251, 113, 133, 0.15);
}

.analytics-chart__head {
  margin-bottom: 1rem; /* mb-4 */
}

.analytics-chart__head--tight {
  margin-bottom: 0.5rem; /* mb-2 */
}

.analytics-chart__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--foreground);
}

.analytics-chart__sub {
  margin: 0.25rem 0 0;
  font-size: 0.75rem; /* text-xs */
  color: var(--muted);
  line-height: 1.5;
}

.analytics-chart__canvas {
  position: relative;
  width: 100%;
  flex: 1;
}

.analytics-chart__canvas--280 { height: 280px; min-height: 280px; }
.analytics-chart__canvas--260 { height: 260px; min-height: 260px; }
.analytics-chart__canvas--200 { height: 200px; min-height: 200px; }

.analytics-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem; /* gap-2 */
  margin-top: 0.5rem; /* mt-2 */
}

.analytics-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 10px;
  color: var(--muted);
}

.analytics-legend__item i {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 9999px;
}

/* ═══════════════════════════════════════════════
   8. WORKFLOW — Mobile-First Interactive Process Map
   ═══════════════════════════════════════════════ */
.workflow-section {
  position: relative;
  overflow-x: hidden;
  max-width: 100vw;
}

.workflow-section__mesh {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.45;
}

.workflow-section__inner {
  position: relative;
  /* inherits max-width: 80rem + margin auto from .demo-container */
  overflow-x: hidden;
}

/* ── Mobile pill scroll-snap ── */
.wf-pills {
  display: flex;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 0.25rem 0.15rem 0.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-x manipulation;
  max-width: 100%;
}
.wf-pills::-webkit-scrollbar { display: none; }

@media (min-width: 768px) {
  .wf-pills { display: none; }
}

.wf-pill {
  flex: 0 0 auto;
  scroll-snap-align: center;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.55rem 0.9rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.wf-pill__num {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  background: color-mix(in srgb, var(--foreground) 6%, transparent);
  font-family: var(--font-mono);
}
.wf-pill.is-active {
  color: var(--foreground);
  border-color: color-mix(in srgb, var(--accent-cyan) 45%, transparent);
  background: color-mix(in srgb, var(--accent-cyan) 12%, var(--surface));
  box-shadow: 0 0 24px -10px rgba(34, 211, 238, 0.55);
}
.wf-pill.is-active .wf-pill__num {
  background: var(--accent-cyan);
  color: #041018;
}

/* ── Desktop stepper ── */
.wf-stepper {
  display: none;
  margin-top: 2.75rem;
}
@media (min-width: 768px) {
  .wf-stepper { display: block; }
}

.wf-stepper__track {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.25rem;
  width: 100%;
}

.wf-stepper__node {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.35rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.wf-stepper__dot {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-mono);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all 0.3s var(--ease-out-expo);
}
.wf-stepper__title {
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.35;
  max-width: 5.5rem;
}
.wf-stepper__node.is-done .wf-stepper__dot {
  border-color: color-mix(in srgb, var(--accent-emerald) 45%, transparent);
  color: var(--accent-emerald);
  background: color-mix(in srgb, var(--accent-emerald) 10%, transparent);
}
.wf-stepper__node.is-active {
  color: var(--foreground);
}
.wf-stepper__node.is-active .wf-stepper__dot {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
  color: #041018;
  box-shadow: 0 0 28px -6px rgba(34, 211, 238, 0.7);
  transform: scale(1.08);
}

.wf-stepper__line {
  flex: 0.35 1 0;
  height: 2px;
  margin-top: 1.15rem;
  border-radius: 9999px;
  background: var(--border);
  min-width: 0.5rem;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.wf-stepper__line.is-lit {
  background: linear-gradient(90deg, var(--accent-emerald), var(--accent-cyan));
  box-shadow: 0 0 12px -2px rgba(34, 211, 238, 0.55);
}

/* ── Mobile accordion ── */
.wf-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.75rem;
  width: 100%;
  max-width: 100%;
}
@media (min-width: 768px) {
  .wf-accordion { display: none; }
}

.wf-acc {
  border-radius: 1rem;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.wf-acc.is-open {
  border-color: color-mix(in srgb, var(--accent-cyan) 35%, transparent);
  box-shadow: 0 12px 32px -20px rgba(34, 211, 238, 0.4);
}

.wf-acc__trigger {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 56px;
  padding: 0.85rem 1rem;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: right;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.wf-acc__num {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 0.65rem;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-mono);
  background: color-mix(in srgb, var(--foreground) 6%, transparent);
  color: var(--muted);
  transition: background 0.25s ease, color 0.25s ease;
}
.wf-acc.is-open .wf-acc__num {
  background: color-mix(in srgb, var(--accent-cyan) 18%, transparent);
  color: var(--accent-cyan);
}
.wf-acc__copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.wf-acc__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--foreground);
  line-height: 1.4;
}
.wf-acc__role {
  font-size: 0.75rem;
  color: var(--muted);
}
.wf-acc__chev {
  color: var(--muted);
  font-size: 0.75rem;
  transition: transform 0.35s var(--ease-out-expo);
}
.wf-acc.is-open .wf-acc__chev {
  transform: rotate(180deg);
  color: var(--accent-cyan);
}

.wf-acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease-out-expo);
}
.wf-acc.is-open .wf-acc__panel {
  grid-template-rows: 1fr;
}
.wf-acc__inner {
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0 1rem;
  opacity: 0;
  transition: opacity 0.3s ease, padding 0.35s ease;
}
.wf-acc.is-open .wf-acc__inner {
  opacity: 1;
  padding-bottom: 1rem;
}

/* ── Shared layer cards ── */
.wf-layer {
  border-radius: 0.85rem;
  border: 1px solid var(--border);
  padding: 0.85rem 0.95rem;
  background: color-mix(in srgb, var(--foreground) 3%, transparent);
}
.wf-layer__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}
.wf-layer__head strong {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--foreground);
}
.wf-layer__icon {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 0.45rem;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
}
.wf-layer__text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted);
}
.wf-layer--cyan .wf-layer__icon {
  background: color-mix(in srgb, var(--accent-cyan) 14%, transparent);
  color: var(--accent-cyan);
}
.wf-layer--violet .wf-layer__icon {
  background: color-mix(in srgb, var(--accent-violet) 14%, transparent);
  color: var(--accent-violet);
}
.wf-layer--amber .wf-layer__icon {
  background: color-mix(in srgb, var(--accent-amber) 14%, transparent);
  color: var(--accent-amber);
}
.wf-layer--hero {
  padding: 1.1rem 1.15rem;
  border-color: color-mix(in srgb, var(--accent-cyan) 28%, transparent);
}

/* ── Desktop showcase ── */
.wf-showcase {
  display: none;
  margin-top: 1.75rem;
  border-radius: 1.35rem;
  border: 1px solid color-mix(in srgb, var(--accent-cyan) 22%, transparent);
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
  max-width: 100%;
}
@media (min-width: 768px) {
  .wf-showcase {
    display: block;
    padding: 1.75rem;
  }
}

.wf-showcase__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}
.wf-showcase__identity {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}
.wf-showcase__icon {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  border-radius: 0.9rem;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  background: color-mix(in srgb, var(--accent-cyan) 12%, transparent);
  color: var(--accent-cyan);
  border: 1px solid color-mix(in srgb, var(--accent-cyan) 25%, transparent);
}
.wf-showcase__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--foreground);
  line-height: 1.35;
}
.wf-showcase__role {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.wf-showcase__badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid var(--border);
  padding: 0.3rem 0.7rem;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--muted);
}

.wf-showcase__body {
  position: relative;
  min-height: 14rem;
}

.wf-show-layers {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .wf-show-layers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.wf-show-panel {
  position: relative;
  animation: workflow-panel-in 0.35s var(--ease-out-expo);
}
.wf-show-panel.is-leaving {
  animation: workflow-panel-out 0.18s ease forwards;
}
.wf-show-panel__glow {
  position: absolute;
  inset: auto -10% -40% auto;
  width: 50%;
  height: 70%;
  pointer-events: none;
  opacity: 0.45;
  filter: blur(40px);
}
.wf-show-panel__glow--cyan { background: rgba(34, 211, 238, 0.25); }
.wf-show-panel__glow--violet { background: rgba(167, 139, 250, 0.25); }
.wf-show-panel__glow--amber { background: rgba(251, 191, 36, 0.22); }

.wf-showcase__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.35rem;
}
.wf-nav-btn {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--foreground) 4%, transparent);
  color: var(--foreground);
  cursor: pointer;
  display: grid;
  place-items: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.wf-nav-btn:hover {
  border-color: color-mix(in srgb, var(--accent-cyan) 35%, transparent);
  background: color-mix(in srgb, var(--accent-cyan) 10%, transparent);
}
.wf-progress {
  flex: 1;
  min-width: 4rem;
  height: 4px;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--foreground) 8%, transparent);
  overflow: hidden;
}
.wf-progress__fill {
  display: block;
  height: 100%;
  width: 16.66%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-violet));
  transition: width 0.45s var(--ease-out-expo);
}
.wf-showcase__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

@keyframes workflow-panel-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes workflow-panel-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  .wf-show-panel,
  .wf-acc__panel,
  .wf-acc__inner,
  .wf-progress__fill {
    transition: none !important;
    animation: none !important;
  }
}

/* Legacy selectors kept inert so old styles don't leak */
.workflow-layout,
.workflow-timeline,
.workflow-detail,
.workflow-step {
  /* superseded by wf-* map */
}

@keyframes pulse-scale {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.pulse-icon {
  animation: pulse-scale 2s ease-in-out infinite;
  display: inline-block;
}

/* ═══════════════════════════════════════════════
   9. DASHBOARD BENTO — pixel map of DashboardBento.tsx
   grid lg:cols-12 → 5 / 7 | widgets cols-2 sm:cols-3
   ═══════════════════════════════════════════════ */
.dash-section {
  position: relative;
}

.dash-section__grid {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.2;
}

.dash-section__inner {
  position: relative;
}

/* lg:grid-cols-12 gap-8 mt-16 */
.dash-layout {
  display: grid;
  gap: 2rem; /* gap-8 */
  margin-top: 4rem; /* mt-16 */
  align-items: stretch;
}

@media (min-width: 1024px) {
  .dash-layout {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 2rem;
  }

  .dash-widgets {
    grid-column: span 5 / span 5; /* lg:col-span-5 */
  }

  .dash-detail {
    grid-column: span 7 / span 7; /* lg:col-span-7 */
  }
}

/* grid-cols-2 sm:grid-cols-3 gap-4 */
.dash-widgets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem; /* gap-4 */
  align-content: start;
}

@media (min-width: 640px) {
  .dash-widgets {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Widget button: rounded-2xl p-4 glass + color border/text */
.dash-widget {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-radius: 1rem; /* rounded-2xl */
  border: 1px solid;
  padding: 1rem; /* p-4 */
  text-align: right;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  opacity: 0.8;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); /* shadow-sm */
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
  -webkit-appearance: none;
  appearance: none;
  background: var(--surface);
}

.dash-widget:hover {
  opacity: 1;
  transform: translateY(-4px); /* whileHover y:-4 */
  box-shadow: 0 0 0 1px color-mix(in srgb, currentColor 20%, transparent);
}

.dash-widget.is-active {
  opacity: 1;
  transform: translateY(-2px);
  /* ring-1 ring-current/40 */
  box-shadow:
    0 0 0 1px color-mix(in srgb, currentColor 40%, transparent),
    0 12px 28px -12px color-mix(in srgb, currentColor 35%, transparent);
}

.dash-widget__icon {
  display: inline-flex;
  font-size: 1.25rem; /* ~h-5 w-5 */
  line-height: 1;
}

.dash-widget__label {
  display: block;
  margin-top: 0.75rem; /* mt-3 */
  font-size: 0.875rem; /* text-sm */
  font-weight: 600; /* font-semibold */
  color: var(--foreground);
  line-height: 1.35;
}

.dash-widget__hint {
  display: block;
  margin-top: 0.25rem; /* mt-1 */
  font-size: 0.75rem; /* text-xs */
  color: var(--muted);
  line-height: 1.45;
}

.dash-widget__metric {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-mono);
  opacity: 0.55;
  letter-spacing: 0.02em;
}

.dash-widget.is-active .dash-widget__metric {
  opacity: 1;
}

/* Color variants — text-*-400 border-*-400/20 */
.dash-widget--cyan {
  color: var(--accent-cyan);
  border-color: color-mix(in srgb, var(--accent-cyan) 20%, transparent);
}
.dash-widget--violet {
  color: var(--accent-violet);
  border-color: color-mix(in srgb, var(--accent-violet) 20%, transparent);
}
.dash-widget--rose {
  color: var(--accent-rose);
  border-color: color-mix(in srgb, var(--accent-rose) 20%, transparent);
}
.dash-widget--emerald {
  color: var(--accent-emerald);
  border-color: color-mix(in srgb, var(--accent-emerald) 20%, transparent);
}
.dash-widget--amber {
  color: var(--accent-amber);
  border-color: color-mix(in srgb, var(--accent-amber) 20%, transparent);
}
.dash-widget--blue {
  color: var(--accent-blue);
  border-color: color-mix(in srgb, var(--accent-blue) 20%, transparent);
}

/* Detail panel: rounded-3xl p-6 sm:p-8 min-h-[360px] */
.dash-detail {
  position: relative;
  border-radius: 1.5rem; /* rounded-3xl */
  padding: 1.5rem; /* p-6 */
  min-height: 360px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (min-width: 640px) {
  .dash-detail {
    padding: 2rem; /* sm:p-8 */
  }
}

.dash-detail__panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  animation: dash-panel-in 0.3s var(--ease-out-expo);
}

.dash-detail__panel.is-leaving {
  animation: dash-panel-out 0.2s ease forwards;
}

@keyframes dash-panel-in {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes dash-panel-out {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-20px);
  }
}

.dash-detail__head {
  display: flex;
  align-items: center;
  gap: 0.75rem; /* gap-3 */
}

.dash-detail__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem; /* h-12 w-12 */
  height: 3rem;
  flex-shrink: 0;
  border-radius: 1rem; /* rounded-2xl */
  border: 1px solid currentColor;
  background: color-mix(in srgb, currentColor 10%, transparent);
  font-size: 1.25rem;
}

.dash-detail__title {
  margin: 0;
  font-size: 1.25rem; /* text-xl */
  font-weight: 700;
  color: var(--foreground);
  line-height: 1.3;
}

.dash-detail__sub {
  margin: 0.15rem 0 0;
  font-size: 0.75rem; /* text-xs */
  color: var(--muted);
}

.dash-detail__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.dash-detail__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--foreground) 4%, transparent);
  padding: 0.25rem 0.65rem;
  font-size: 0.7rem;
  color: var(--muted);
}

.dash-detail__badge strong {
  color: var(--foreground);
  font-weight: 600;
}

.dash-detail__progress {
  margin-top: 1.25rem;
}

.dash-detail__progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  font-size: 0.7rem;
  color: var(--muted);
}

.dash-detail__progress-bar {
  height: 0.375rem;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--foreground) 8%, transparent);
  overflow: hidden;
}

.dash-detail__progress-fill {
  height: 100%;
  border-radius: inherit;
  width: 0;
  transition: width 0.6s var(--ease-out-expo);
  background: linear-gradient(to left, currentColor, color-mix(in srgb, currentColor 55%, transparent));
}

/* rows: mt-8 grid gap-3 */
.dash-rows {
  display: grid;
  gap: 0.75rem; /* gap-3 */
  margin-top: 2rem; /* mt-8 */
  flex: 1;
}

.dash-row {
  display: flex;
  align-items: center;
  gap: 0.75rem; /* gap-3 */
  border-radius: 0.75rem; /* rounded-xl */
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--foreground) 2%, transparent);
  padding: 0.75rem 1rem; /* py-3 px-4 */
  font-size: 0.875rem; /* text-sm */
  color: var(--foreground);
  opacity: 0;
  transform: translateX(-10px);
  animation: dash-row-in 0.35s var(--ease-out-expo) forwards;
}

.dash-row i {
  flex-shrink: 0;
  font-size: 0.9rem;
  width: 1rem;
  text-align: center;
}

@keyframes dash-row-in {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.dash-detail__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem; /* mt-8 */
  flex-wrap: wrap;
}

/* -space-x-2 space-x-reverse avatar stack */
.dash-avatars {
  display: flex;
  flex-direction: row-reverse;
}

.dash-avatars span {
  width: 2rem; /* h-8 w-8 */
  height: 2rem;
  border-radius: 9999px;
  border: 2px solid var(--background);
  margin-left: -0.5rem; /* overlap RTL */
  background: color-mix(in srgb, currentColor 20%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, currentColor 15%, transparent);
}

.dash-avatars span:last-child {
  margin-left: 0;
}

.dash-avatars .av-cyan { color: var(--accent-cyan); }
.dash-avatars .av-violet { color: var(--accent-violet); }
.dash-avatars .av-emerald { color: var(--accent-emerald); }
.dash-avatars .av-amber { color: var(--accent-amber); }

.dash-detail__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem; /* gap-1.5 */
  font-size: 0.875rem;
  font-weight: 500;
  transition: transform 0.2s ease;
}

.dash-detail__cta:hover {
  transform: translateX(-4px); /* whileHover x:-4 */
}

.dash-detail__cta i {
  font-size: 0.85rem;
}

/* ═══════════════════════════════════════════════
   10. WHY / MODULES / INTEGRATIONS / ROLES / SOCIAL / AI / CTA / FOOTER
   ═══════════════════════════════════════════════ */
/* ── Why: Chaos vs Clarity compare ── */
.why-section {
  position: relative;
  overflow-x: clip;
}
.why-section__mesh {
  opacity: 0.6;
  pointer-events: none;
  position: absolute;
  inset: 0;
}
.why-section__inner {
  position: relative;
  max-width: 72rem;
}

.compare-chaos {
  --chaos-muted: color-mix(in srgb, var(--muted) 88%, var(--accent-rose) 12%);
  --clarity-glow: rgba(91, 184, 201, 0.45);
  --clarity-emerald: rgba(95, 173, 143, 0.55);
  margin-top: 4rem;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent-cyan) 18%, transparent);
}

.compare__head,
.compare__row {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  align-items: center;
  padding: 1rem 1.5rem;
  gap: 0.65rem;
}

.compare__head {
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--foreground) 3%, transparent);
  font-size: 0.875rem;
  font-weight: 600;
}

.compare__row {
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  transition: background 0.35s ease;
  position: relative;
  isolation: isolate;
}

.compare__row:last-child { border-bottom: none; }

.compare__feature {
  font-weight: 500;
  color: var(--foreground);
}
.compare__feature--head { font-weight: 600; }

.compare__col--chaos,
.compare__cell--chaos {
  color: var(--chaos-muted);
  filter: saturate(0.72);
  transition: filter 0.35s ease, transform 0.35s var(--ease-out-expo);
}
.compare__col--clarity,
.compare__cell--clarity {
  color: var(--accent-emerald);
  transition: filter 0.35s ease, transform 0.35s var(--ease-out-expo);
}

.compare__col {
  text-align: center;
  font-weight: 600;
}
.compare__col--clarity {
  color: var(--accent-cyan);
  text-shadow: 0 0 18px var(--clarity-glow);
}

.compare__cell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-align: center;
  min-height: 2.5rem;
}
.compare__text { line-height: 1.5; }
.compare__text--glow {
  color: color-mix(in srgb, var(--accent-emerald) 88%, var(--foreground) 12%);
  transition: text-shadow 0.35s ease, color 0.35s ease;
}

.compare__icon {
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
}

/* Scatter vs core — tools row */
.compare__icon--scatter {
  position: relative;
  width: 2rem;
  height: 2rem;
}
.compare__dot {
  position: absolute;
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 9999px;
  background: var(--accent-rose);
  opacity: 0.85;
  transition: transform 0.45s var(--ease-out-expo);
}
.compare__dot:nth-child(1) { top: 8%; left: 12%; }
.compare__dot:nth-child(2) { top: 55%; left: 5%; }
.compare__dot:nth-child(3) { top: 20%; right: 8%; }
.compare__dot:nth-child(4) { bottom: 10%; right: 18%; }
.compare__dot:nth-child(5) { bottom: 22%; left: 42%; }
.compare__scatter-x {
  position: relative;
  z-index: 1;
  font-size: 0.7rem;
}
.compare__row[data-compare-row="tools"]:hover .compare__dot:nth-child(1) { transform: translate(-4px, -6px); }
.compare__row[data-compare-row="tools"]:hover .compare__dot:nth-child(2) { transform: translate(-8px, 4px); }
.compare__row[data-compare-row="tools"]:hover .compare__dot:nth-child(3) { transform: translate(6px, -5px); }
.compare__row[data-compare-row="tools"]:hover .compare__dot:nth-child(4) { transform: translate(7px, 5px); }
.compare__row[data-compare-row="tools"]:hover .compare__dot:nth-child(5) { transform: translate(-3px, 8px); }
.compare__row[data-compare-row="tools"]:hover .compare__scatter-x {
  animation: compare-glitch 0.35s steps(2) 2;
}

.compare__icon--core {
  position: relative;
  width: 2rem;
  height: 2rem;
  color: var(--accent-emerald);
}
.compare__core-glow {
  position: absolute;
  inset: -30%;
  border-radius: 9999px;
  background: radial-gradient(circle, var(--clarity-emerald), transparent 68%);
  opacity: 0.35;
  filter: blur(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.compare__core-ring {
  position: absolute;
  inset: 10%;
  border-radius: 9999px;
  border: 1px solid color-mix(in srgb, var(--accent-emerald) 45%, transparent);
  transition: transform 0.45s var(--ease-out-expo), box-shadow 0.35s ease;
}
.compare__row[data-compare-row="tools"]:hover .compare__core-glow {
  opacity: 0.85;
  transform: scale(1.15);
}
.compare__row[data-compare-row="tools"]:hover .compare__core-ring {
  transform: scale(0.55);
  box-shadow: 0 0 16px var(--clarity-emerald);
}

/* Heartbeat — health row */
.compare__row[data-compare-row="health"]:hover .compare__icon--heartbeat .fa-heartbeat {
  animation: compare-heartbeat 0.85s ease-in-out infinite;
}

/* Lock — access row */
.compare__row[data-compare-row="access"]:hover .compare__cell--chaos .compare__icon--lock {
  animation: compare-shake 0.4s ease;
}
.compare__row[data-compare-row="access"]:hover .compare__cell--clarity .compare__icon--lock .fa-lock {
  animation: compare-lock-snap 0.55s var(--ease-out-expo);
}

/* Row hover: chaos glitch + clarity glow */
.compare__row:hover {
  background: color-mix(in srgb, var(--foreground) 2.5%, transparent);
}
.compare__row:hover .compare__cell--chaos .compare__text {
  animation: compare-glitch 0.32s steps(2) 1;
}
.compare__row:hover .compare__cell--clarity .compare__text--glow {
  text-shadow:
    0 0 12px var(--clarity-emerald),
    0 0 22px var(--clarity-glow);
  color: color-mix(in srgb, var(--accent-cyan) 35%, var(--accent-emerald) 65%);
}
.compare__row:hover .compare__cell--clarity .fa-check {
  filter: drop-shadow(0 0 6px var(--clarity-emerald));
}

@keyframes compare-glitch {
  0%, 100% { transform: translate(0); filter: none; }
  25% { transform: translate(-1px, 1px); filter: hue-rotate(12deg); }
  50% { transform: translate(1px, -1px); opacity: 0.88; }
  75% { transform: translate(-1px, 0); }
}
@keyframes compare-heartbeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.22); }
  28% { transform: scale(1); }
  42% { transform: scale(1.15); }
}
@keyframes compare-shake {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-8deg); }
  40% { transform: rotate(8deg); }
  60% { transform: rotate(-5deg); }
  80% { transform: rotate(5deg); }
}
@keyframes compare-lock-snap {
  0% { transform: scale(1); }
  40% { transform: scale(1.15) rotate(-6deg); }
  70% { transform: scale(0.92); }
  100% { transform: scale(1); }
}

/* Mobile flip cards */
.compare-flips {
  display: none;
  margin-top: 2rem;
  gap: 0.75rem;
  flex-direction: column;
}
.compare-flip {
  border-radius: 1.1rem;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--foreground) 2%, transparent);
  overflow: hidden;
}
.compare-flip__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 0;
  background: transparent;
  color: var(--foreground);
  font: inherit;
  text-align: right;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.compare-flip__feature {
  font-weight: 600;
  font-size: 0.9rem;
}
.compare-flip__hint {
  font-size: 0.72rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.25s ease;
}
.compare-flip.is-revealed .compare-flip__hint {
  color: var(--accent-cyan);
}
.compare-flip__deck {
  position: relative;
  min-height: 4.5rem;
}
.compare-flip__face {
  padding: 0.85rem 1rem 1rem;
  transition: opacity 0.35s ease, transform 0.45s var(--ease-out-expo);
}
.compare-flip__face--pain {
  background: color-mix(in srgb, var(--accent-rose) 6%, transparent);
  border-top: 1px solid color-mix(in srgb, var(--accent-rose) 18%, transparent);
  filter: saturate(0.8);
}
.compare-flip__face--solve {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-emerald) 10%, transparent), color-mix(in srgb, var(--accent-cyan) 8%, transparent));
  border-top: 1px solid color-mix(in srgb, var(--accent-cyan) 25%, transparent);
  backdrop-filter: blur(12px);
}
.compare-flip.is-revealed .compare-flip__face--pain {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}
.compare-flip.is-revealed .compare-flip__face--solve {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.compare-flip__badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}
.compare-flip__badge--chaos {
  color: var(--accent-rose);
  background: color-mix(in srgb, var(--accent-rose) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-rose) 25%, transparent);
}
.compare-flip__badge--clarity {
  color: var(--accent-cyan);
  background: color-mix(in srgb, var(--accent-cyan) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-cyan) 28%, transparent);
  box-shadow: 0 0 18px -8px var(--clarity-glow);
}
.compare-flip__copy {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.compare-flip__face--solve .compare-flip__copy {
  color: color-mix(in srgb, var(--accent-emerald) 80%, var(--foreground) 20%);
  text-shadow: 0 0 14px color-mix(in srgb, var(--accent-emerald) 35%, transparent);
}

@media (max-width: 767px) {
  .compare-chaos { display: none; }
  .compare-flips { display: flex; }
}

@media (min-width: 768px) {
  .compare-flips { display: none; }
}

.module-card {
  border-radius: 1rem;
  padding: 1.5rem;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.module-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 20px 40px -20px rgba(34, 211, 238, 0.15);
}

.module-card .icon-box {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  margin-bottom: 1rem;
}

.module-card h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
}

.module-card p {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted);
}

.modules-footnote {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
}

.integ-card {
  height: 100%;
  border-radius: 1.5rem;
  border: 1px solid;
  padding: 1.5rem;
}

.integ-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.integ-card .icon-box {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
}

.integ-card h3 {
  margin: 1.25rem 0 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
}

.integ-card p {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted);
}

.integ-footer {
  margin-top: 3rem;
  border-radius: 1.5rem;
  padding: 2rem;
  text-align: center;
}

.integ-footer p:first-child {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--foreground);
}

.integ-footer p:last-child {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.ai-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 4rem;
}

.ai-flow--compact {
  margin-top: 2rem;
  flex-direction: row;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.ai-flow--compact .ai-step {
  padding: 0.65rem 1.1rem;
  min-width: 0;
  flex-direction: row;
  gap: 0.45rem;
  align-items: center;
}
.ai-flow--compact .ai-step .label { margin: 0; font-size: 0.8rem; }
.ai-flow--compact .ai-step .sub { display: none; }
.ai-flow--compact .ai-arrow {
  display: block;
  padding-inline: 0.35rem;
  font-size: 0.85rem;
  animation: none;
}

@media (min-width: 640px) {
  .ai-flow {
    flex-direction: row;
    justify-content: center;
    gap: 0;
  }
}

.ai-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  min-width: 10rem;
  transition: transform 0.3s, border-color 0.3s;
}

.ai-step:hover {
  transform: scale(1.04);
  border-color: color-mix(in srgb, var(--accent-cyan) 30%, transparent);
}

.ai-step .num { font-size: 0.75rem; color: var(--accent-cyan); }
.ai-step .label { margin-top: 0.5rem; font-weight: 600; color: var(--foreground); }
.ai-step .sub { margin-top: 0.25rem; font-size: 0.75rem; color: var(--muted); }

.ai-arrow {
  padding-inline: 1rem;
  color: color-mix(in srgb, var(--accent-cyan) 50%, transparent);
  display: none;
  animation: arrow-nudge 1.5s ease-in-out infinite;
}

@media (min-width: 640px) {
  .ai-arrow { display: block; }
}

@keyframes arrow-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-6px); }
}

.ai-grid {
  display: grid;
  gap: 3rem;
  margin-top: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .ai-grid { grid-template-columns: 1fr 1fr; }
}

.ai-features {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .ai-features { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1200px) {
  .ai-features { grid-template-columns: repeat(2, 1fr); }
}

.ai-feat {
  border-radius: 1rem;
  border: 1px solid;
  padding: 1.25rem;
  transition: transform 0.3s, box-shadow 0.3s ease;
  cursor: pointer;
}

.ai-feat:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 0 28px -12px rgba(91, 184, 201, 0.35);
}

.ai-feat__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-feat .tag {
  border-radius: 0.375rem;
  background: color-mix(in srgb, var(--foreground) 5%, transparent);
  padding: 0.15rem 0.5rem;
  font-size: 10px;
  color: color-mix(in srgb, var(--foreground) 60%, transparent);
}

.ai-feat h3 {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--foreground);
}

.ai-feat p {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  line-height: 1.625;
  color: var(--muted);
}

.ai-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 1.5rem;
  min-height: 280px;
  width: 100%;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
  padding: 2rem;
}

.ai-placeholder small {
  font-size: 0.75rem;
  opacity: 0.7;
}

.ai-terminal {
  margin-top: 3rem;
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, var(--accent-cyan) 20%, transparent);
  overflow: hidden;
}

.ai-terminal__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--accent-cyan) 5%, transparent);
  padding: 1rem 1.5rem;
  font-size: 0.75rem;
  color: #67e8f9; /* cyan-300 */
}

.ai-terminal__dot {
  height: 0.5rem;
  width: 0.5rem;
  border-radius: 9999px;
  background: var(--accent-cyan);
  animation: opacity-pulse 1.5s ease-in-out infinite;
}

@keyframes opacity-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.ai-terminal__body {
  min-height: 120px;
  padding: 1.5rem;
  font-size: 0.875rem;
  font-family: var(--font-mono);
}

.ai-terminal__prompt { color: var(--accent-cyan); }

.role-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border-radius: 1rem;
  padding: 1.5rem;
  transition: transform 0.3s, border-color 0.3s;
}

.role-card:hover {
  transform: translateX(-4px);
  border-color: color-mix(in srgb, var(--accent-violet) 25%, transparent);
}

.role-card .emoji { font-size: 1.5rem; line-height: 1; }

.role-card h3 {
  margin: 0;
  font-weight: 700;
  color: var(--foreground);
}

.role-card p {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted);
}

.diff-grid {
  display: grid;
  gap: 1rem;
  margin-top: 4rem;
}

@media (min-width: 640px) {
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .diff-grid { grid-template-columns: repeat(4, 1fr); }
}

.diff-card {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: linear-gradient(to bottom left, color-mix(in srgb, var(--foreground) 4%, transparent), transparent);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s;
}

.diff-card:hover { transform: scale(1.05); }

.diff-card h4 { margin: 0; font-weight: 700; }
.diff-card p { margin: 0.5rem 0 0; font-size: 0.75rem; color: var(--muted); }

.quote-card {
  position: relative;
  height: 100%;
  border-radius: 1.5rem;
  padding: 1.5rem;
  transition: transform 0.3s, border-color 0.3s;
}

.quote-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent-violet) 25%, transparent);
}

.quote-card__icon {
  font-size: 2rem;
  color: color-mix(in srgb, var(--accent-cyan) 20%, transparent);
}

.quote-card > p {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--foreground);
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.quote-avatar {
  display: flex;
  height: 2.5rem;
  width: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: linear-gradient(to bottom right, color-mix(in srgb, var(--accent-cyan) 14%, transparent), color-mix(in srgb, var(--foreground) 6%, transparent));
  font-size: 0.75rem;
  font-weight: 700;
}

.quote-author .name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}

.quote-author .org {
  font-size: 0.75rem;
  color: var(--muted);
}

/* CTA form */
.cta-wrap {
  max-width: 48rem;
  margin-inline: auto;
}

.cta-form-box {
  margin-top: 3rem;
  border-radius: 1.5rem;
  padding: 2rem;
  transition: border-color 0.3s;
}

@media (min-width: 640px) {
  .cta-form-box { padding: 2.5rem; }
}

.cta-form-box:hover {
  border-color: color-mix(in srgb, var(--accent-cyan) 20%, transparent);
}

.form-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field--full { grid-column: 1 / -1; }

.form-field label {
  font-size: 0.875rem;
  color: var(--muted);
}

.form-field input,
.form-field textarea {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--foreground) 5%, transparent);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--foreground);
  font-family: inherit;
  outline: none;
  resize: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: color-mix(in srgb, var(--foreground) 30%, transparent);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: color-mix(in srgb, var(--accent-cyan) 50%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent-cyan) 30%, transparent);
}

.btn-submit {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 0.75rem;
  background: var(--btn-fill);
  padding: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  transition: background 0.2s ease;
}

.btn-submit:hover {
  background: var(--btn-fill-hover);
}

.form-success {
  display: none;
  text-align: center;
  padding-block: 2rem;
}

.form-success.is-visible { display: block; }

.form-success__icon {
  display: flex;
  height: 4rem;
  width: 4rem;
  margin: 0 auto 1rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--accent-emerald) 10%, transparent);
  color: var(--accent-emerald);
  font-size: 2rem;
}

.form-success h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.form-success p {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

#lp-contact-form.is-hidden { display: none; }

.cta-note {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
}

.cta-note a { color: var(--accent-cyan); }
.cta-note a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════
   DEMO FOOTER — site contact data + new landing UI
   ═══════════════════════════════════════════════ */
.demo-footer {
  position: relative;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--background) 92%, #0a1628);
  color: var(--foreground);
  font-family: var(--font-sans);
  padding-block: 3rem 0;
}

.demo-footer__container {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 640px) {
  .demo-footer__container { padding-inline: 1.5rem; }
}

@media (min-width: 1024px) {
  .demo-footer__container { padding-inline: 2rem; }
}

/* Consultation banner */
.demo-footer__consult {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.25rem;
  border-radius: 1.25rem;
  padding: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .demo-footer__consult {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1.75rem 2rem;
  }
}

.demo-footer__consult-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
}

.demo-footer__consult-text {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 36rem;
}

.demo-footer__consult-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-shrink: 0;
  border-radius: 0.75rem;
  padding: 0.85rem 1.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff !important;
  background: var(--btn-fill);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  transition: background 0.2s ease, transform 0.2s ease;
}

.demo-footer__consult-btn:hover {
  background: var(--btn-fill-hover);
  transform: translateY(-1px);
}

.demo-footer__consult-btn i {
  font-size: 0.95rem;
}

/* Columns */
.demo-footer__grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

@media (min-width: 768px) {
  .demo-footer__grid {
    grid-template-columns: 1.4fr 0.8fr 1.2fr;
    gap: 2rem;
  }
}

.demo-footer__logo {
  display: inline-flex;
  margin-bottom: 1rem;
}

.demo-footer__logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.65rem;
  border-radius: 0.65rem;
  line-height: 0;
  /* Dark mode: light plate under the dark logo */
  background: #f8fafc;
  box-shadow: 0 0 0 1px color-mix(in srgb, #fff 14%, transparent);
}

[data-theme="light"] .demo-footer__logo-wrap {
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.demo-footer__logo-img {
  display: block;
  height: 2.5rem;
  width: auto;
  object-fit: contain;
  opacity: 0.95;
}

/* Match header: on light theme, ink-black logo */
[data-theme="light"] .demo-footer__logo-img {
  filter: brightness(0);
  opacity: 0.88;
}

.demo-footer__about-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.85;
  color: var(--muted);
  text-align: justify;
}

.demo-footer__linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.25rem;
  border-radius: 0.75rem;
  padding: 0.65rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff !important;
  background: linear-gradient(135deg, #0a66c2, #2563eb);
  box-shadow: 0 10px 24px -12px rgba(37, 99, 235, 0.55);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.demo-footer__linkedin:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.demo-footer__heading {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--foreground);
}

.demo-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.demo-footer__list a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

.demo-footer__list a:hover {
  color: var(--accent-cyan);
}

.demo-footer__contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.demo-footer__contact > li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.demo-footer__contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  background: color-mix(in srgb, var(--accent-cyan) 12%, transparent);
  color: var(--accent-cyan);
  font-size: 0.85rem;
}

.demo-footer__contact a,
.demo-footer__contact div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.demo-footer__contact strong {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--foreground);
}

.demo-footer__contact span:not(.demo-footer__contact-icon) {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted);
}

.demo-footer__contact a:hover span:last-child {
  color: var(--accent-cyan);
}

/* Bottom bar */
.demo-footer__bottom {
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--background) 70%, #000);
  padding-block: 1.25rem;
}

.demo-footer__bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  text-align: center;
}

@media (min-width: 768px) {
  .demo-footer__bottom-inner {
    flex-direction: row;
    text-align: start;
  }
}

.demo-footer__legal,
.demo-footer__credit {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--muted);
}

.demo-footer__legal a,
.demo-footer__credit a {
  color: var(--accent-cyan);
  font-weight: 500;
}

.demo-footer__legal a:hover,
.demo-footer__credit a:hover {
  text-decoration: underline;
}

.demo-footer__sep {
  display: inline-block;
  margin-inline: 0.5rem;
  opacity: 0.5;
}

.demo-footer__dot {
  display: inline-block;
  margin-inline: 0.35rem;
  opacity: 0.5;
}

/* Back to top */
.demo-footer__top {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 0.75rem;
  background: var(--btn-fill);
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 4px 14px -6px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.demo-footer__top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.demo-footer__top:hover {
  filter: brightness(1.08);
}

/* ═══════════════════════════════════════════════
   SITE PAGES — about / contact / shared shell
   ═══════════════════════════════════════════════ */
.sdo-page {
  position: relative;
  z-index: 10;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  min-height: 60vh;
}

.sdo-page a {
  text-decoration: none;
  color: inherit;
}

.sdo-page-container {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 640px) {
  .sdo-page-container { padding-inline: 1.5rem; }
}

@media (min-width: 1024px) {
  .sdo-page-container { padding-inline: 2rem; }
}

.sdo-page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 0 2.75rem;
}

.sdo-page-hero__glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 0%, var(--mesh-1), transparent 55%),
    radial-gradient(ellipse 50% 70% at 10% 100%, var(--mesh-2), transparent 50%);
}

.sdo-page-hero__inner {
  position: relative;
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .sdo-page-hero__inner { padding-inline: 1.5rem; }
}

@media (min-width: 1024px) {
  .sdo-page-hero__inner { padding-inline: 2rem; }
}

.sdo-page-hero__title {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--foreground);
}

.sdo-page-hero__subtitle {
  margin: 0;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
}

.sdo-page-hero__crumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.sdo-page-hero__crumb a {
  color: var(--accent-cyan) !important;
}

.sdo-page-hero__crumb a:hover {
  text-decoration: underline;
}

.sdo-page-hero__crumb i {
  font-size: 0.65rem;
  opacity: 0.7;
}

.sdo-page-section {
  padding: 3.5rem 0 4.5rem;
}

.sdo-page-alerts {
  margin-bottom: 1.25rem;
}

.sdo-page-alert {
  border-radius: 0.9rem;
  padding: 0.9rem 1rem;
  font-size: 0.875rem;
  color: var(--foreground);
  border: 1px solid color-mix(in srgb, var(--accent-emerald) 25%, var(--border));
  background: color-mix(in srgb, var(--accent-emerald) 10%, transparent);
}

.sdo-page-alert--error {
  border-color: color-mix(in srgb, var(--accent-rose) 30%, var(--border));
  background: color-mix(in srgb, var(--accent-rose) 10%, transparent);
}

/* About */
.sdo-about {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .sdo-about {
    grid-template-columns: 1fr 1.05fr;
    gap: 3rem;
  }
}

.sdo-about__media {
  border-radius: 1.5rem;
  padding: 0.75rem;
  overflow: hidden;
}

.sdo-about__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1rem;
  object-fit: cover;
}

.sdo-about__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.sdo-about__title {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 800;
  line-height: 1.45;
  color: var(--foreground);
}

.sdo-about__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--muted);
  text-align: justify;
}

.sdo-about__highlight {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.8;
  color: var(--accent-cyan);
}

.sdo-about__list {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
}

.sdo-about__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--foreground);
}

.sdo-about__list i {
  margin-top: 0.15rem;
  color: var(--accent-emerald);
}

.sdo-about__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.sdo-about__actions .btn-primary,
.sdo-about__actions .btn-ghost {
  padding: 0.85rem 1.35rem;
  font-size: 0.875rem;
}

/* Contact */
.sdo-contact {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .sdo-contact {
    grid-template-columns: 1.5fr 1fr;
    gap: 1.75rem;
    align-items: start;
  }
}

.sdo-contact__form {
  border-radius: 1.5rem;
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .sdo-contact__form { padding: 2rem; }
}

.sdo-contact__form-head {
  margin-bottom: 1.5rem;
}

.sdo-contact__form-head h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--foreground);
}

.sdo-contact__form-head p {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted);
}

.sdo-contact__grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .sdo-contact__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.sdo-contact__aside {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sdo-contact__card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

a.sdo-contact__card:hover {
  border-color: color-mix(in srgb, var(--accent-cyan) 30%, transparent);
  transform: translateY(-2px);
}

.sdo-contact__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  font-size: 0.95rem;
}

.sdo-contact__card > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.sdo-contact__card strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--foreground) !important;
}

.sdo-contact__card > span:last-child > span {
  display: block;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted) !important;
}

.sdo-page .form-field input,
.sdo-page .form-field textarea {
  width: 100%;
  border-radius: 0.85rem;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--foreground) 3%, transparent);
  color: var(--foreground);
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sdo-page .form-field input:focus,
.sdo-page .form-field textarea:focus {
  border-color: color-mix(in srgb, var(--accent-cyan) 45%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-cyan) 15%, transparent);
}

.sdo-page .form-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
}

.sdo-page .btn-submit {
  width: 100%;
}

/* ═══════════════════════════════════════════════
   BLOG LIST — articles_list.html
   ═══════════════════════════════════════════════ */
.sdo-blog-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .sdo-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .sdo-blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.sdo-blog-card {
  display: flex;
  flex-direction: column;
  border-radius: 1.25rem;
  overflow: hidden;
  height: 100%;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.sdo-blog-card:hover {
  border-color: color-mix(in srgb, var(--foreground) 16%, transparent);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -22px rgba(0, 0, 0, 0.55);
}

.sdo-blog-card__media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: color-mix(in srgb, var(--foreground) 4%, transparent);
}

.sdo-blog-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.sdo-blog-card:hover .sdo-blog-card__media img {
  transform: scale(1.03);
}

.sdo-blog-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 10rem;
  color: var(--muted);
  font-size: 1.5rem;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--foreground) 6%, transparent), transparent 60%),
    color-mix(in srgb, var(--foreground) 3%, transparent);
}

.sdo-blog-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
  padding: 1.1rem 1.15rem 1.25rem;
}

.sdo-blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.sdo-blog-card__cat {
  display: inline-flex;
  align-items: center;
  border-radius: 0.4rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  background: color-mix(in srgb, var(--foreground) 5%, transparent);
  border: 1px solid var(--border);
}

.sdo-blog-card__date,
.sdo-blog-card__time {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.sdo-blog-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.55;
}

.sdo-blog-card__title a {
  color: var(--foreground) !important;
  transition: color 0.2s ease;
}

.sdo-blog-card__title a:hover {
  color: var(--accent-cyan) !important;
}

.sdo-blog-card__excerpt {
  margin: 0;
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--muted);
}

.sdo-blog-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--foreground) !important;
  opacity: 0.8;
}

.sdo-blog-card__more:hover {
  color: var(--accent-cyan) !important;
  opacity: 1;
  text-decoration: underline;
}

.sdo-blog-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  margin-top: 2.5rem;
}

.sdo-blog-pager__status {
  font-size: 0.8125rem;
  color: var(--muted);
}

.sdo-blog-pager__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  padding: 0.55rem 0.95rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--foreground) !important;
  background: color-mix(in srgb, var(--foreground) 3%, transparent);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.sdo-blog-pager__btn:hover {
  border-color: color-mix(in srgb, var(--accent-cyan) 35%, transparent);
  background: color-mix(in srgb, var(--accent-cyan) 8%, transparent);
  color: var(--accent-cyan) !important;
}

.sdo-blog-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  border-radius: 1.25rem;
  padding: 3rem 1.5rem;
}

.sdo-blog-empty i {
  font-size: 1.75rem;
  color: var(--muted);
}

.sdo-blog-empty h2 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--foreground);
}

.sdo-blog-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.sdo-blog-empty .btn-ghost {
  margin-top: 0.5rem;
}

/* ═══════════════════════════════════════════════
   BLOG DETAIL — article_details.html
   ═══════════════════════════════════════════════ */
.sdo-article {
  max-width: 52rem;
  margin-inline: auto;
  border-radius: 1.25rem;
  overflow: hidden;
}

.sdo-article__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: color-mix(in srgb, var(--foreground) 4%, transparent);
}

.sdo-article__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sdo-article__media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 12rem;
  color: var(--muted);
  font-size: 1.75rem;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--foreground) 6%, transparent), transparent 60%),
    color-mix(in srgb, var(--foreground) 3%, transparent);
}

.sdo-article__body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.35rem 1.25rem 1.75rem;
}

@media (min-width: 768px) {
  .sdo-article__body {
    padding: 1.75rem 2rem 2.25rem;
  }
}

.sdo-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.sdo-article__content {
  color: var(--foreground);
  font-size: 1rem;
  line-height: 1.9;
  text-align: justify;
}

.sdo-article__content > *:first-child {
  margin-top: 0;
}

.sdo-article__content > *:last-child {
  margin-bottom: 0;
}

.sdo-article__content h2,
.sdo-article__content h3,
.sdo-article__content h4 {
  margin: 1.75rem 0 0.75rem;
  color: var(--foreground);
  font-weight: 700;
  line-height: 1.5;
}

.sdo-article__content h2 { font-size: 1.35rem; }
.sdo-article__content h3 { font-size: 1.15rem; }
.sdo-article__content h4 { font-size: 1.05rem; }

.sdo-article__content p {
  margin: 0 0 1rem;
  color: color-mix(in srgb, var(--foreground) 88%, var(--muted));
}

.sdo-article__content ul,
.sdo-article__content ol {
  margin: 0 0 1.15rem;
  padding-inline-start: 1.35rem;
  color: color-mix(in srgb, var(--foreground) 88%, var(--muted));
}

.sdo-article__content li {
  margin-bottom: 0.4rem;
}

.sdo-article__content a {
  color: var(--accent-cyan) !important;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.sdo-article__content a:hover {
  color: color-mix(in srgb, var(--accent-cyan) 80%, white) !important;
}

.sdo-article__content blockquote {
  margin: 1.25rem 0;
  padding: 0.85rem 1rem;
  border-inline-start: 3px solid var(--accent-cyan);
  border-radius: 0 0.75rem 0.75rem 0;
  background: color-mix(in srgb, var(--accent-cyan) 8%, transparent);
  color: var(--muted);
}

.sdo-article__content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.25rem auto;
  border-radius: 0.85rem;
}

.sdo-article__content pre,
.sdo-article__content code {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.875em;
}

.sdo-article__content code {
  padding: 0.1em 0.35em;
  border-radius: 0.35rem;
  background: color-mix(in srgb, var(--foreground) 6%, transparent);
  color: var(--accent-cyan);
}

.sdo-article__content pre {
  overflow-x: auto;
  margin: 1.15rem 0;
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--foreground) 4%, transparent);
}

.sdo-article__content pre code {
  padding: 0;
  background: transparent;
  color: var(--foreground);
}

.sdo-article__content hr {
  margin: 1.75rem 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.sdo-article__content table {
  width: 100%;
  margin: 1.25rem 0;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.sdo-article__content th,
.sdo-article__content td {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  text-align: right;
}

.sdo-article__content th {
  background: color-mix(in srgb, var(--foreground) 4%, transparent);
  color: var(--foreground);
}

.sdo-article__tags {
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.sdo-article__tags-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--foreground);
}

.sdo-article__tags-title i {
  color: var(--muted);
  font-size: 0.85rem;
}

.sdo-article__tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sdo-article__tag {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--foreground) 3%, transparent);
}

.sdo-article__nav {
  display: flex;
  justify-content: flex-start;
  padding-top: 0.25rem;
}

/* ═══════════════════════════════════════════════
   ELEVATE — Interactive AI / KPI / Bento / Tips
   ═══════════════════════════════════════════════ */

button.analytics-kpi {
  display: block;
  width: 100%;
  text-align: right;
  font: inherit;
  color: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background: var(--surface);
  border: 1px solid var(--border);
}

.analytics-kpi.is-active {
  border-color: color-mix(in srgb, var(--accent-cyan) 45%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent-cyan) 20%, transparent),
    0 12px 40px -18px rgba(34, 211, 238, 0.35);
  transform: translateY(-4px);
}

.analytics-kpi.is-active .analytics-kpi__icon {
  background: color-mix(in srgb, var(--accent-cyan) 22%, transparent);
}

.analytics-chart__canvas--320 {
  height: 320px;
  min-height: 280px;
}

.analytics-live {
  margin-top: 1.5rem;
  border-radius: 1.5rem;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent-cyan) 22%, transparent);
  transition: border-color 0.35s var(--ease-out-expo), box-shadow 0.35s ease;
}

.analytics-live::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 55%;
  height: 70%;
  background: radial-gradient(circle, var(--glow-cyan), transparent 70%);
  pointer-events: none;
  opacity: 0.55;
}

.analytics-live__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.analytics-live__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.analytics-live__legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.analytics-live__legend i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 9999px;
  display: inline-block;
}

/* ── AI Section — Compact Cockpit ── */
.ai-section { position: relative; }
.ai-section__glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 20% 10%, rgba(139, 92, 246, 0.08), transparent),
    radial-gradient(ellipse 45% 35% at 90% 60%, rgba(6, 182, 212, 0.07), transparent);
}

.ai-cockpit {
  position: relative;
  margin-top: 2rem;
  border-radius: 1.5rem;
  padding: 1rem 1rem 0.85rem;
  border: 1px solid color-mix(in srgb, var(--accent-cyan) 22%, transparent);
  overflow-x: clip;
  overflow-y: visible;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-cyan) 6%, transparent), transparent 40%),
    var(--surface);
  backdrop-filter: blur(18px);
  /* prevent child transforms / scroll from nudging layout */
  contain: layout;
}
@media (min-width: 768px) {
  .ai-cockpit { padding: 1.25rem 1.35rem 1rem; }
}
.ai-cockpit__aura {
  pointer-events: none;
  position: absolute;
  inset: -20% auto auto -10%;
  width: 55%;
  height: 60%;
  background: radial-gradient(circle, rgba(91, 184, 201, 0.14), transparent 70%);
  filter: blur(40px);
}

/* Horizontal agent chips */
.ai-agents {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.15rem 0.1rem 0.85rem;
  margin-bottom: 0.15rem;
  max-width: 100%;
  /* avoid mask + scroll fighting RTL layout */
}
.ai-agents::-webkit-scrollbar { display: none; }

.ai-agent {
  flex: 0 0 auto;
  scroll-snap-align: center;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--foreground) 3%, transparent);
  color: var(--muted);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.25s ease, transform 0.2s ease;
}
.ai-agent i { font-size: 0.75rem; opacity: 0.85; }
.ai-agent:hover {
  color: var(--foreground);
  border-color: color-mix(in srgb, var(--accent-cyan) 35%, transparent);
  transform: translateY(-1px);
}
.ai-agent.is-active {
  color: var(--foreground);
  border-color: color-mix(in srgb, var(--accent-cyan) 50%, transparent);
  background: color-mix(in srgb, var(--accent-cyan) 12%, transparent);
  box-shadow: 0 0 22px -8px rgba(91, 184, 201, 0.55);
}

/* Split: preview | live chat */
.ai-cockpit__split {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  align-items: stretch;
}
@media (min-width: 900px) {
  .ai-cockpit__split {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
    gap: 1.25rem;
  }
}

.ai-preview {
  position: relative;
  min-height: 16.5rem;
  height: 100%;
  border-radius: 1.15rem;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--foreground) 2.5%, transparent);
  padding: 1rem 1.1rem;
  overflow: hidden;
  max-width: 100%;
  min-width: 0;
  transition: opacity 0.16s ease;
}
.ai-preview.is-leaving {
  opacity: 0;
}
.ai-preview__inner {
  display: grid;
  gap: 1rem;
  min-width: 0;
  animation: ai-preview-in 0.35s var(--ease-out-expo);
}
@media (min-width: 640px) {
  .ai-preview__inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 1.15rem;
  }
}
@keyframes ai-preview-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.ai-preview__copy h3 {
  margin: 0.55rem 0 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--foreground);
  line-height: 1.35;
}
.ai-preview__copy > p {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--muted);
}
.ai-preview__copy .ai-demo__list {
  margin-top: 0.65rem;
}
.ai-preview__copy .ai-demo__list li {
  font-size: 0.78rem;
}

.ai-preview__viz {
  min-height: 8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mini visualizations */
.ai-mini {
  width: 100%;
  border-radius: 0.9rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--foreground) 3%, transparent);
}
.ai-mini--term {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.65;
  color: var(--muted);
}
.ai-mini__bar {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.55rem;
  font-size: 0.62rem;
  color: var(--muted);
}
.ai-mini__bar i {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 9999px;
  background: #fb7185;
  display: inline-block;
}
.ai-mini__bar i:nth-child(2) { background: #fbbf24; }
.ai-mini__bar i:nth-child(3) { background: #34d399; }
.ai-mini__who {
  color: var(--accent-cyan);
  margin-left: 0.35rem;
  font-size: 0.6rem;
  text-transform: uppercase;
}
.ai-mini__ai { color: color-mix(in srgb, var(--accent-cyan) 80%, var(--foreground)); }
.ai-mini--alert { display: flex; flex-direction: column; gap: 0.45rem; padding: 0.5rem; border: 0; background: transparent; }
.ai-mini--alert .ai-live-alert { margin: 0; }
.ai-mini--bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
  align-items: end;
  height: 7rem;
  padding: 0.5rem 0.35rem 0;
}
.ai-mini--bars span {
  display: block;
  height: var(--h, 50%);
  border-radius: 0.35rem 0.35rem 0.15rem 0.15rem;
  background: linear-gradient(to top, var(--accent-cyan), transparent);
  box-shadow: 0 0 14px -6px rgba(91, 184, 201, 0.5);
  animation: ai-cfo-grow 0.6s var(--ease-out-expo) both;
}
.ai-mini--bars span.is-warn {
  background: linear-gradient(to top, var(--accent-amber), transparent);
}
.ai-mini--bars span.is-danger {
  background: linear-gradient(to top, var(--accent-rose), transparent);
}
.ai-mini--stream {
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--muted);
}
.ai-mini--stream p { margin: 0.25rem 0; }
.ai-mini--stream .is-live {
  color: var(--accent-cyan);
  animation: ai-preview-in 0.8s ease infinite alternate;
}
.ai-mini--radar {
  position: relative;
  width: 8.5rem;
  height: 8.5rem;
  margin-inline: auto;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-cyan) 12%, transparent), transparent 70%);
}
.ai-mini__ring {
  position: absolute;
  inset: 12%;
  border-radius: 9999px;
  border: 1px solid color-mix(in srgb, var(--accent-rose) 35%, transparent);
}
.ai-mini__ring--2 { inset: 26%; border-color: color-mix(in srgb, var(--accent-amber) 30%, transparent); }
.ai-mini__core {
  position: relative;
  z-index: 1;
  text-align: center;
}
.ai-mini__core strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--foreground);
  font-family: var(--font-mono);
}
.ai-mini__core span { font-size: 0.65rem; color: var(--muted); }
.ai-mini--chat {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.ai-mini--chat p {
  margin: 0;
  padding: 0.4rem 0.55rem;
  border-radius: 0.55rem;
  background: color-mix(in srgb, var(--foreground) 4%, transparent);
  border: 1px solid var(--border);
}
.ai-mini--chat strong { color: var(--foreground); margin-left: 0.25rem; }
.ai-mini--chat .ai-mini__ai {
  border-color: color-mix(in srgb, var(--accent-cyan) 35%, transparent);
  background: color-mix(in srgb, var(--accent-cyan) 10%, transparent);
}
.ai-mini--scores { display: flex; flex-direction: column; gap: 0.4rem; }
.ai-mini__lead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.65rem;
  border-radius: 0.55rem;
  border: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--foreground);
}
.ai-mini__lead em {
  font-style: normal;
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--accent-cyan);
}
.ai-mini__lead.is-hot {
  border-color: color-mix(in srgb, var(--accent-emerald) 35%, transparent);
  box-shadow: 0 0 16px -8px rgba(95, 173, 143, 0.45);
}
.ai-mini__lead.is-hot em { color: var(--accent-emerald); }
.ai-mini__lead.is-cold em { color: var(--accent-rose); }
.ai-mini--quests { display: flex; flex-direction: column; gap: 0.45rem; }
.ai-mini__quest {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.65rem;
  border: 1px solid color-mix(in srgb, var(--accent-amber) 30%, transparent);
  background: color-mix(in srgb, var(--accent-amber) 8%, transparent);
  font-size: 0.78rem;
  color: var(--foreground);
}
.ai-mini__quest i { color: var(--accent-amber); }
.ai-mini__quest span { flex: 1; }
.ai-mini__quest em {
  font-style: normal;
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--accent-amber);
}

/* Live assistant column */
.ai-live {
  min-height: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.ai-live .ai-assistant-mock {
  height: 100%;
  min-height: 16.5rem;
  max-width: 100%;
  border: 1px solid color-mix(in srgb, var(--accent-cyan) 25%, transparent);
  box-shadow: 0 0 40px -18px rgba(91, 184, 201, 0.35);
  /* disable tilt shift that can nudge panel sideways */
  transform: none !important;
}
.ai-assistant-mock__msgs {
  min-height: 7.5rem;
}
.ai-assistant-mock__msgs.is-swap {
  animation: ai-preview-in 0.3s ease;
}
.ai-assistant-mock__msgs em {
  display: block;
  margin-top: 0.35rem;
  font-style: normal;
  font-size: 0.75rem;
  color: var(--accent-cyan);
}

.ai-cockpit__ticker {
  position: relative;
  z-index: 1;
  margin-top: 0.85rem;
  padding: 0.55rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--foreground) 3%, transparent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.4rem;
  overflow: hidden;
}
.ai-cockpit__ticker .ai-terminal__prompt {
  color: var(--accent-cyan);
  flex-shrink: 0;
}

/* Legacy stage/grid unused by cockpit template — styles kept below for safety */

.ai-stage__tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  justify-content: flex-start;
  margin-bottom: 1.25rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.25rem 0.15rem 0.65rem;
  max-width: 100%;
}
.ai-stage__tabs::-webkit-scrollbar { display: none; }

.ai-stage__tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
  scroll-snap-align: center;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  color: var(--muted);
  padding: 0.55rem 1rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.25s ease;
}

.ai-stage__tab:hover {
  color: var(--foreground);
  border-color: color-mix(in srgb, var(--accent-cyan) 35%, transparent);
}

.ai-stage__tab.is-active {
  color: var(--foreground);
  border-color: color-mix(in srgb, var(--accent-cyan) 50%, transparent);
  background: color-mix(in srgb, var(--accent-cyan) 12%, transparent);
  box-shadow: 0 0 24px -8px rgba(34, 211, 238, 0.45);
}

.ai-stage__panels {
  border-radius: 1.5rem;
  padding: 1.25rem;
  min-height: 22rem;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .ai-stage__panels { padding: 1.75rem; }
}

.ai-demo {
  display: grid;
  gap: 1.75rem;
  align-items: center;
  animation: ai-demo-in 0.45s var(--ease-out-expo);
}

@media (min-width: 900px) {
  .ai-demo { grid-template-columns: 0.95fr 1.15fr; gap: 2rem; }
}

@keyframes ai-demo-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.ai-demo__tag {
  display: inline-flex;
  border-radius: 0.4rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.ai-demo__copy h3 {
  margin: 0.75rem 0 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--foreground);
}

.ai-demo__copy > p {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted);
}

.ai-demo__list {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.ai-demo__list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  color: var(--foreground);
}

.ai-demo__list i {
  color: var(--accent-emerald);
  font-size: 0.7rem;
}

.ai-demo__viz {
  border-radius: 1.25rem;
  min-height: 16rem;
  position: relative;
}

/* Burnout radar */
.ai-burnout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
}

.ai-burnout__radar {
  position: relative;
  width: min(100%, 280px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(251, 113, 133, 0.12), transparent 55%),
    radial-gradient(circle at center, transparent 48%, rgba(34, 211, 238, 0.06) 49%, transparent 52%);
  box-shadow: inset 0 0 0 1px var(--border);
  overflow: hidden;
}

.ai-burnout__ring {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--accent-rose) 35%, transparent);
}
.ai-burnout__ring--2 { inset: 24%; border-color: color-mix(in srgb, var(--accent-amber) 30%, transparent); }
.ai-burnout__ring--3 { inset: 36%; border-color: color-mix(in srgb, var(--accent-emerald) 30%, transparent); }

.ai-burnout__sweep {
  position: absolute;
  inset: 0;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(34, 211, 238, 0.28) 40deg, transparent 70deg);
  animation: radar-sweep 3.2s linear infinite;
  transform-origin: center;
}

@keyframes radar-sweep {
  to { transform: rotate(360deg); }
}

.ai-burnout__blip {
  position: absolute;
  left: var(--bx);
  top: var(--by);
  width: 10px;
  height: 10px;
  margin: -5px;
  border-radius: 50%;
  box-shadow: 0 0 12px currentColor;
  animation: blip-pulse 1.8s ease-in-out infinite;
}
.ai-burnout__blip[data-risk="high"] { background: #fb7185; color: #fb7185; }
.ai-burnout__blip[data-risk="mid"] { background: #fbbf24; color: #fbbf24; animation-delay: 0.4s; }
.ai-burnout__blip[data-risk="low"] { background: #34d399; color: #34d399; animation-delay: 0.8s; }

@keyframes blip-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.7; }
}

.ai-burnout__core {
  position: absolute;
  inset: 38%;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  z-index: 2;
}
.ai-burnout__core strong {
  font-size: 1.35rem;
  color: var(--accent-cyan);
  font-variant-numeric: tabular-nums;
}
.ai-burnout__core span { font-size: 0.65rem; color: var(--muted); }

.ai-burnout__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--muted);
}
.ai-burnout__legend span::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  margin-left: 0.35rem;
  vertical-align: middle;
}
.ai-burnout__legend span[data-risk="high"]::before { background: #fb7185; }
.ai-burnout__legend span[data-risk="mid"]::before { background: #fbbf24; }
.ai-burnout__legend span[data-risk="low"]::before { background: #34d399; }

/* Transcribe */
.ai-transcribe {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid var(--border);
}

.ai-transcribe__wave {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 2.5rem;
}
.ai-transcribe__wave span {
  width: 3px;
  border-radius: 9999px;
  background: linear-gradient(to top, var(--accent-amber), var(--accent-cyan));
  animation: wave-bar 1s ease-in-out infinite;
  height: 40%;
}
.ai-transcribe__wave span:nth-child(odd) { animation-delay: 0.15s; height: 70%; }
.ai-transcribe__wave span:nth-child(3n) { animation-delay: 0.35s; height: 95%; }
.ai-transcribe__wave span:nth-child(4n) { animation-delay: 0.55s; height: 55%; }

@keyframes wave-bar {
  0%, 100% { transform: scaleY(0.45); opacity: 0.55; }
  50% { transform: scaleY(1); opacity: 1; }
}

.ai-transcribe__stream {
  min-height: 5.5rem;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--foreground);
  font-family: var(--font-mono);
}
.ai-transcribe__line {
  margin: 0 0 0.4rem;
  opacity: 0.45;
  transition: opacity 0.3s ease;
}
.ai-transcribe__line.is-typing,
.ai-transcribe__line.is-done {
  opacity: 1;
}
.ai-transcribe__line.is-typing::after {
  content: "▌";
  color: var(--accent-cyan);
  animation: opacity-pulse 0.9s steps(1) infinite;
  margin-right: 2px;
}

.ai-transcribe__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ai-action-chip {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  border-radius: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--accent-amber) 30%, transparent);
  background: color-mix(in srgb, var(--accent-amber) 8%, transparent);
  padding: 0.55rem 0.75rem;
  font-size: 0.72rem;
  color: var(--foreground);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease-out-expo);
}
.ai-action-chip.is-pop {
  opacity: 1;
  transform: translateY(0);
}
.ai-action-chip i { color: var(--accent-amber); margin-left: 0.25rem; }
.ai-action-chip em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.65rem;
}

/* Anomaly chart */
.ai-anomaly {
  padding: 1.25rem;
  border: 1px solid var(--border);
}
.ai-anomaly__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.ai-anomaly__alert {
  color: #fb7185;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  animation: opacity-pulse 1.6s ease-in-out infinite;
}
.ai-anomaly__chart {
  position: relative;
  height: 180px;
}
.ai-anomaly__marker {
  position: absolute;
  top: 8%;
  left: 18%;
  padding: 0.35rem 0.55rem;
  border-radius: 0.5rem;
  background: rgba(251, 113, 133, 0.15);
  border: 1px solid rgba(251, 113, 133, 0.45);
  color: #fda4af;
  font-size: 0.7rem;
  font-weight: 700;
  animation: marker-float 2.4s ease-in-out infinite;
  pointer-events: none;
}
.ai-anomaly__marker small {
  display: block;
  font-weight: 500;
  font-size: 0.6rem;
  opacity: 0.85;
}
@keyframes marker-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.ai-anomaly__note {
  margin: 0.85rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Persona terminal */
.ai-persona-term {
  border: 1px solid color-mix(in srgb, var(--accent-cyan) 28%, transparent);
  overflow: hidden;
  box-shadow: 0 0 40px -16px rgba(34, 211, 238, 0.4);
}
.ai-persona-term__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--accent-cyan) 6%, transparent);
  font-size: 0.7rem;
  color: var(--muted);
  font-family: var(--font-mono);
}
.ai-persona-term__dots {
  display: inline-flex;
  gap: 0.3rem;
}
.ai-persona-term__dots i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #fb7185;
  display: block;
}
.ai-persona-term__dots i:nth-child(2) { background: #fbbf24; }
.ai-persona-term__dots i:nth-child(3) { background: #34d399; }
.ai-persona-term__live {
  margin-right: auto;
  color: var(--accent-emerald);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.6rem;
}
.ai-persona-term__body {
  padding: 1rem 1.15rem 1.25rem;
  min-height: 11rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.75;
}
.ai-persona-term__row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  color: var(--foreground);
}
.ai-persona-term__row--ai { color: color-mix(in srgb, var(--accent-cyan) 85%, white); }
.ai-persona-term__who {
  color: var(--muted);
  font-size: 0.65rem;
  text-transform: uppercase;
  padding-top: 0.15rem;
}
.ai-persona-term__cursor {
  display: inline-block;
  width: 0.45rem;
  height: 1em;
  background: var(--accent-cyan);
  margin-right: 2px;
  vertical-align: text-bottom;
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: cursor-blink 1s steps(1) infinite;
}
@keyframes cursor-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ── CFO / Cross-Module BI ── */
.ai-cfo {
  border-radius: 1.15rem;
  padding: 1rem 1.1rem 1.15rem;
  border: 1px solid color-mix(in srgb, var(--accent-emerald) 22%, transparent);
}
.ai-cfo__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
}
.ai-cfo__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent-emerald);
  background: color-mix(in srgb, var(--accent-emerald) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-emerald) 28%, transparent);
}
.ai-cfo__bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
  align-items: end;
  height: 7.5rem;
  margin-bottom: 0.9rem;
  padding: 0.35rem 0.25rem;
}
.ai-cfo__bar {
  position: relative;
  height: var(--h, 50%);
  border-radius: 0.45rem 0.45rem 0.2rem 0.2rem;
  background: linear-gradient(to top, color-mix(in srgb, var(--accent-cyan) 55%, transparent), color-mix(in srgb, var(--accent-cyan) 15%, transparent));
  box-shadow: 0 0 18px -8px rgba(91, 184, 201, 0.55);
  animation: ai-cfo-grow 0.7s var(--ease-out-expo) both;
}
.ai-cfo__bar--warn {
  background: linear-gradient(to top, color-mix(in srgb, var(--accent-amber) 65%, transparent), color-mix(in srgb, var(--accent-amber) 18%, transparent));
  box-shadow: 0 0 18px -8px rgba(201, 162, 39, 0.55);
  animation-delay: 0.08s;
}
.ai-cfo__bar--danger {
  background: linear-gradient(to top, color-mix(in srgb, var(--accent-rose) 70%, transparent), color-mix(in srgb, var(--accent-rose) 18%, transparent));
  box-shadow: 0 0 18px -8px rgba(201, 123, 136, 0.55);
  animation-delay: 0.16s;
}
.ai-cfo__bar span {
  position: absolute;
  bottom: -1.35rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.62rem;
  color: var(--muted);
  white-space: nowrap;
}
@keyframes ai-cfo-grow {
  from { transform: scaleY(0.2); opacity: 0.4; transform-origin: bottom; }
  to { transform: scaleY(1); opacity: 1; transform-origin: bottom; }
}

.ai-live-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.75rem;
  margin-top: 0.55rem;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--foreground) 3%, transparent);
}
.ai-live-alert i {
  margin-top: 0.15rem;
  flex-shrink: 0;
}
.ai-live-alert strong {
  display: block;
  font-size: 0.78rem;
  color: var(--foreground);
}
.ai-live-alert small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.5;
}
.ai-live-alert.is-danger {
  border-color: color-mix(in srgb, var(--accent-rose) 35%, transparent);
  background: color-mix(in srgb, var(--accent-rose) 8%, transparent);
}
.ai-live-alert.is-danger i { color: var(--accent-rose); }
.ai-live-alert.is-warn {
  border-color: color-mix(in srgb, var(--accent-amber) 35%, transparent);
  background: color-mix(in srgb, var(--accent-amber) 8%, transparent);
}
.ai-live-alert.is-warn i { color: var(--accent-amber); }

.ai-burnout__hr-note { margin-top: 0.85rem; }

/* ── Chat → Task box ── */
.ai-chatbox {
  border-radius: 1.15rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent-amber) 22%, transparent);
}
.ai-chatbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  font-size: 0.72rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--foreground) 3%, transparent);
}
.ai-chatbox__msgs {
  padding: 0.85rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 8rem;
}
.ai-chatbox__msg {
  padding: 0.55rem 0.7rem;
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--foreground) 4%, transparent);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--muted);
}
.ai-chatbox__msg strong {
  display: block;
  font-size: 0.68rem;
  color: var(--foreground);
  margin-bottom: 0.2rem;
}
.ai-chatbox__msg--ai {
  border-color: color-mix(in srgb, var(--accent-cyan) 35%, transparent);
  background: color-mix(in srgb, var(--accent-cyan) 10%, transparent);
  color: color-mix(in srgb, var(--accent-cyan) 80%, var(--foreground));
  box-shadow: 0 0 22px -10px rgba(91, 184, 201, 0.5);
}
.ai-chatbox .ai-transcribe__actions {
  padding: 0 0.9rem 0.9rem;
}

/* ── Sales Coach ── */
.ai-sales {
  border-radius: 1.15rem;
  padding: 1rem 1.1rem 1.15rem;
  border: 1px solid color-mix(in srgb, var(--accent-cyan) 22%, transparent);
}
.ai-sales__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
}
.ai-sales__model {
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  color: var(--accent-cyan);
}
.ai-sales__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.ai-sales__lead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.8rem;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--foreground) 3%, transparent);
  --score: 50;
  animation: ai-demo-in 0.4s var(--ease-out-expo) both;
}
.ai-sales__lead:nth-child(2) { animation-delay: 0.08s; }
.ai-sales__lead:nth-child(3) { animation-delay: 0.16s; }
.ai-sales__lead.is-hot {
  border-color: color-mix(in srgb, var(--accent-emerald) 35%, transparent);
  box-shadow: 0 0 20px -10px rgba(95, 173, 143, 0.45);
}
.ai-sales__lead.is-warm {
  border-color: color-mix(in srgb, var(--accent-amber) 30%, transparent);
}
.ai-sales__lead.is-cold {
  border-color: color-mix(in srgb, var(--accent-rose) 25%, transparent);
  opacity: 0.9;
}
.ai-sales__meta strong {
  display: block;
  font-size: 0.82rem;
  color: var(--foreground);
}
.ai-sales__meta small {
  font-size: 0.68rem;
  color: var(--muted);
}
.ai-sales__score {
  position: relative;
  width: 2.6rem;
  height: 2.6rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.ai-sales__ring {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background:
    conic-gradient(
      from -90deg,
      var(--accent-cyan) calc(var(--score) * 1%),
      color-mix(in srgb, var(--foreground) 10%, transparent) 0
    );
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
}
.ai-sales__lead.is-hot .ai-sales__ring {
  background: conic-gradient(from -90deg, var(--accent-emerald) calc(var(--score) * 1%), color-mix(in srgb, var(--foreground) 10%, transparent) 0);
}
.ai-sales__lead.is-cold .ai-sales__ring {
  background: conic-gradient(from -90deg, var(--accent-rose) calc(var(--score) * 1%), color-mix(in srgb, var(--foreground) 10%, transparent) 0);
}
.ai-sales__score em {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--foreground);
}
.ai-sales__script {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 0.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.75rem;
  border: 1px dashed color-mix(in srgb, var(--accent-cyan) 30%, transparent);
  font-size: 0.75rem;
  line-height: 1.65;
  color: var(--muted);
}
.ai-sales__script i { color: var(--accent-cyan); margin-top: 0.15rem; }
.ai-sales__script p { margin: 0; }

/* ── Gamification Master ── */
.ai-game {
  border-radius: 1.15rem;
  padding: 1rem 1.1rem 1.15rem;
  border: 1px solid color-mix(in srgb, var(--accent-amber) 25%, transparent);
}
.ai-game__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.85rem;
}
.ai-game__boost {
  font-size: 0.7rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #041018;
  background: linear-gradient(90deg, var(--accent-amber), color-mix(in srgb, var(--accent-cyan) 60%, var(--accent-amber)));
  padding: 0.25rem 0.55rem;
  border-radius: 9999px;
  box-shadow: 0 0 18px -6px rgba(201, 162, 39, 0.65);
  animation: ai-game-pulse 1.8s ease-in-out infinite;
}
@keyframes ai-game-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.ai-game__quests {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.ai-game__quest {
  padding: 0.7rem 0.8rem;
  border-radius: 0.8rem;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--foreground) 3%, transparent);
  animation: ai-demo-in 0.4s var(--ease-out-expo) both;
}
.ai-game__quest:nth-child(2) { animation-delay: 0.08s; }
.ai-game__quest:nth-child(3) { animation-delay: 0.16s; }
.ai-game__quest.is-urgent {
  border-color: color-mix(in srgb, var(--accent-rose) 35%, transparent);
  background: color-mix(in srgb, var(--accent-rose) 7%, transparent);
  box-shadow: 0 0 22px -12px rgba(201, 123, 136, 0.5);
}
.ai-game__quest-top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}
.ai-game__quest-top i { color: var(--accent-amber); }
.ai-game__quest.is-urgent .ai-game__quest-top i { color: var(--accent-rose); }
.ai-game__quest-top strong {
  flex: 1;
  font-size: 0.82rem;
  color: var(--foreground);
}
.ai-game__quest-top span {
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent-amber);
}
.ai-game__quest p {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.5;
}
.ai-game__bar {
  height: 4px;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--foreground) 8%, transparent);
  overflow: hidden;
}
.ai-game__bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-amber), var(--accent-cyan));
}

/* Assistant mock (replaces empty placeholder) */
.ai-assistant-mock {
  border-radius: 1.5rem;
  padding: 1.25rem;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid color-mix(in srgb, var(--accent-violet) 25%, transparent);
}
.ai-assistant-mock__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.ai-assistant-mock__avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent-violet) 18%, transparent);
  color: var(--accent-violet);
}
.ai-assistant-mock__head strong {
  display: block;
  font-size: 0.9rem;
  color: var(--foreground);
}
.ai-assistant-mock__head small {
  color: var(--muted);
  font-size: 0.7rem;
}
.ai-assistant-mock__status {
  margin-right: auto;
  font-size: 0.65rem;
  color: var(--accent-emerald);
  font-weight: 600;
}
.ai-assistant-mock__msgs {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}
.ai-bubble {
  max-width: 92%;
  border-radius: 1rem;
  padding: 0.7rem 0.9rem;
  font-size: 0.8rem;
  line-height: 1.6;
}
.ai-bubble--user {
  align-self: flex-start;
  background: color-mix(in srgb, var(--accent-cyan) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-cyan) 22%, transparent);
  color: var(--foreground);
}
.ai-bubble--bot {
  align-self: flex-end;
  background: color-mix(in srgb, var(--accent-violet) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-violet) 22%, transparent);
  color: var(--foreground);
}
.ai-bubble--bot em {
  display: block;
  margin-top: 0.35rem;
  font-style: normal;
  color: var(--accent-emerald);
  font-size: 0.72rem;
}
.ai-assistant-mock__input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 0.85rem;
  border: 1px solid var(--border);
  padding: 0.7rem 0.9rem;
  font-size: 0.75rem;
  color: var(--muted);
  background: color-mix(in srgb, var(--foreground) 3%, transparent);
}
.ai-assistant-mock__input i { color: var(--accent-cyan); }

/* ── Bento mini UI on module cards ── */
.module-card {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.module-card__icon-wrap {
  position: relative;
  height: 3.25rem;
  margin-bottom: 0.25rem;
}
.module-card__icon-wrap .icon-box {
  transition: opacity 0.3s ease, transform 0.3s var(--ease-out-expo);
}
.bento-mini {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(6px) scale(0.92);
  transition: opacity 0.35s ease, transform 0.35s var(--ease-out-expo);
  pointer-events: none;
  display: flex;
  align-items: center;
}
.bento-interactive:hover .icon-box,
.bento-interactive:focus-within .icon-box {
  opacity: 0;
  transform: scale(0.8);
}
.bento-interactive:hover .bento-mini,
.bento-interactive:focus-within .bento-mini {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.bento-kanban {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}
.bento-kanban__col {
  flex: 1;
  border-radius: 0.4rem;
  border: 1px dashed var(--border);
  padding: 0.25rem;
  font-size: 0.55rem;
  color: var(--muted);
  min-height: 2.6rem;
}
.bento-kanban__col--done { border-color: color-mix(in srgb, var(--accent-emerald) 40%, transparent); }
.bento-kanban__card {
  display: block;
  height: 0.85rem;
  margin-top: 0.25rem;
  border-radius: 0.25rem;
  background: color-mix(in srgb, var(--accent-cyan) 35%, transparent);
}
.bento-kanban__card--slide {
  background: color-mix(in srgb, var(--accent-emerald) 55%, transparent);
  animation: kanban-slide 1.1s var(--ease-out-expo) infinite alternate;
}
@keyframes kanban-slide {
  from { transform: translateX(12px); opacity: 0.4; }
  to { transform: translateX(0); opacity: 1; }
}

.bento-wallet {
  position: relative;
  width: 3rem;
  height: 2.4rem;
}
.bento-wallet__bag {
  position: absolute;
  inset: 0.4rem 0 0;
  border-radius: 0.4rem;
  border: 2px solid var(--accent-emerald);
  background: color-mix(in srgb, var(--accent-emerald) 15%, transparent);
}
.bento-wallet__coin {
  position: absolute;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--accent-amber);
  left: 35%;
  top: -4px;
  animation: coin-drop 1.2s var(--ease-out-expo) infinite;
  box-shadow: 0 0 8px rgba(201, 162, 39, 0.5);
}
.bento-wallet__coin--2 { left: 55%; animation-delay: 0.35s; }
@keyframes coin-drop {
  0% { transform: translateY(-10px); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

.bento-funnel {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  max-width: 5.5rem;
}
.bento-funnel span {
  display: block;
  height: 0.4rem;
  width: var(--w);
  margin-inline: auto;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--accent-violet), var(--accent-cyan));
  animation: funnel-pulse 1.6s ease-in-out infinite;
}
.bento-funnel span:nth-child(2) { animation-delay: 0.15s; }
.bento-funnel span:nth-child(3) { animation-delay: 0.3s; }
.bento-funnel span:nth-child(4) { animation-delay: 0.45s; }
@keyframes funnel-pulse {
  0%, 100% { opacity: 0.55; filter: brightness(1); }
  50% { opacity: 1; filter: brightness(1.25); }
}

.bento-ecg {
  width: 5rem;
  height: 1.5rem;
  color: var(--accent-rose);
}
.bento-ecg path {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: ecg-draw 1.8s linear infinite;
}
@keyframes ecg-draw {
  to { stroke-dashoffset: 0; }
}

.bento-chat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 4.5rem;
}
.bento-chat i {
  display: block;
  height: 0.45rem;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--accent-blue) 45%, transparent);
  animation: chat-pop 1.4s ease-in-out infinite;
}
.bento-chat i:nth-child(1) { width: 70%; align-self: flex-start; }
.bento-chat i:nth-child(2) { width: 85%; align-self: flex-end; animation-delay: 0.2s; background: color-mix(in srgb, var(--accent-cyan) 45%, transparent); }
.bento-chat i:nth-child(3) { width: 55%; align-self: flex-start; animation-delay: 0.4s; }
@keyframes chat-pop {
  0%, 100% { transform: scaleX(0.85); opacity: 0.5; }
  50% { transform: scaleX(1); opacity: 1; }
}

.bento-coin-drop {
  position: relative;
  width: 3rem;
  height: 2.4rem;
}
.bento-coin {
  position: absolute;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--accent-amber);
  left: 20%;
  animation: coin-drop 1.3s var(--ease-out-expo) infinite;
}
.bento-coin--2 { left: 55%; animation-delay: 0.4s; }
.bento-trophy {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  color: var(--accent-amber);
  font-size: 1rem;
}

/* ── Dynamic tooltips ── */
.tip-trigger {
  position: relative;
  color: var(--accent-cyan);
  border-bottom: 1px dashed color-mix(in srgb, var(--accent-cyan) 50%, transparent);
  cursor: help;
  font-weight: 600;
}
.sdo-tip {
  position: fixed;
  z-index: 1200;
  max-width: 17rem;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  transition: opacity 0.2s ease, transform 0.2s var(--ease-out-expo);
}
.sdo-tip--rich {
  max-width: 19.5rem;
}
.sdo-tip.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.sdo-tip__inner {
  border-radius: 0.9rem;
  padding: 0.85rem 1rem;
  border: 1px solid color-mix(in srgb, var(--accent-cyan) 25%, transparent);
  box-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(16px);
}
.sdo-tip__visual {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid color-mix(in srgb, var(--foreground) 8%, transparent);
}
.sdo-tip__visual--flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.25rem;
}
.sdo-tip__flow-node {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.55rem;
  border-radius: 0.45rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--foreground);
  background: color-mix(in srgb, var(--foreground) 6%, transparent);
  border: 1px solid var(--border);
  animation: sdo-tip-node-in 0.45s var(--ease-out-expo) both;
}
.sdo-tip__flow-node:nth-child(1) { animation-delay: 0.05s; }
.sdo-tip__flow-node:nth-child(3) { animation-delay: 0.12s; }
.sdo-tip__flow-node:nth-child(5) { animation-delay: 0.19s; }
.sdo-tip__flow-node--final {
  color: var(--accent-cyan);
  border-color: color-mix(in srgb, var(--accent-cyan) 35%, transparent);
  background: color-mix(in srgb, var(--accent-cyan) 12%, transparent);
  box-shadow: 0 0 14px -6px var(--clarity-glow, rgba(91, 184, 201, 0.45));
}
.sdo-tip__flow-arrow {
  font-size: 0.55rem;
  color: var(--muted);
  opacity: 0.85;
}
.sdo-tip__visual--shield {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: center;
}
.sdo-tip__shield {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  display: grid;
  place-items: center;
  color: var(--accent-cyan);
  background: color-mix(in srgb, var(--accent-cyan) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-cyan) 30%, transparent);
  animation: sdo-tip-shield-pulse 1.8s ease-in-out infinite;
}
.sdo-tip__shield-glow {
  position: absolute;
  inset: -20%;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(91, 184, 201, 0.35), transparent 70%);
  filter: blur(8px);
  animation: sdo-tip-shield-glow 1.8s ease-in-out infinite;
}
.sdo-tip__tree {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.65rem;
  line-height: 1.5;
  color: var(--muted);
}
.sdo-tip__tree ul {
  list-style: none;
  margin: 0.2rem 0 0;
  padding-right: 0.75rem;
  border-right: 1px dashed color-mix(in srgb, var(--accent-cyan) 25%, transparent);
}
.sdo-tip__tree-node {
  display: inline-flex;
  padding: 0.15rem 0.4rem;
  border-radius: 0.35rem;
  background: color-mix(in srgb, var(--foreground) 5%, transparent);
  color: var(--foreground);
  font-weight: 600;
}
@keyframes sdo-tip-node-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes sdo-tip-shield-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
@keyframes sdo-tip-shield-glow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.9; }
}
.sdo-tip__title {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--foreground);
}
.sdo-tip__body {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--muted);
}
.sdo-tip__bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 2.4rem;
  margin-top: 0.65rem;
}
.sdo-tip__bars i {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(to top, var(--accent-emerald), var(--accent-cyan));
  display: block;
  animation: tip-bar 0.8s var(--ease-out-expo) both;
}
@keyframes tip-bar {
  from { transform: scaleY(0.2); opacity: 0.3; }
  to { transform: scaleY(1); opacity: 1; }
}

/* Role icons (no emoji) */
.role-card__icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
  font-size: 1rem;
  border: 1px solid;
}
.role-card { cursor: default; }

@media (prefers-reduced-motion: reduce) {
  .ai-burnout__sweep,
  .ai-transcribe__wave span,
  .bento-kanban__card--slide,
  .bento-wallet__coin,
  .bento-coin,
  .bento-ecg path,
  .ai-persona-term__cursor,
  .ai-anomaly__marker,
  .ai-burnout__blip {
    animation: none !important;
  }
  .ai-demo { animation: none; }
}

/* ═══════════════════════════════════════════════
   HERO COMMAND CENTER — elevate
   ═══════════════════════════════════════════════ */

.hero-section {
  --mx: 50%;
  --my: 35%;
}

.hero-cursor-glow {
  pointer-events: none;
  position: absolute;
  inset: -10%;
  z-index: 0;
  background:
    radial-gradient(520px circle at var(--mx) var(--my), rgba(91, 184, 201, 0.16), transparent 42%),
    radial-gradient(380px circle at calc(var(--mx) + 12%) calc(var(--my) - 8%), rgba(143, 163, 184, 0.1), transparent 45%),
    radial-gradient(300px circle at calc(var(--mx) - 18%) calc(var(--my) + 14%), rgba(95, 173, 143, 0.08), transparent 50%);
  transition: background-position 0.6s ease;
  will-change: background;
  mix-blend-mode: screen;
}

[data-theme="light"] .hero-cursor-glow {
  mix-blend-mode: multiply;
  background:
    radial-gradient(520px circle at var(--mx) var(--my), rgba(31, 122, 138, 0.12), transparent 42%),
    radial-gradient(380px circle at calc(var(--mx) + 12%) calc(var(--my) - 8%), rgba(91, 107, 124, 0.08), transparent 45%),
    radial-gradient(300px circle at calc(var(--mx) - 18%) calc(var(--my) + 14%), rgba(47, 125, 99, 0.07), transparent 50%);
}

.hero-scanline {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(148, 163, 184, 0.015) 2px,
    rgba(148, 163, 184, 0.015) 4px
  );
  opacity: 0.5;
  mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
}

.hero-badge__live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: 0.55rem;
  padding: 0.12rem 0.45rem;
  border-radius: 9999px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-emerald);
  background: color-mix(in srgb, var(--accent-emerald) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-emerald) 28%, transparent);
  font-family: var(--font-mono);
}
.hero-badge__live i {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: opacity-pulse 1.4s ease-in-out infinite;
  display: inline-block;
}

/* Command Center shell */
.hero-cc {
  position: relative;
  transform-style: preserve-3d;
  perspective: 1200px;
}

.hero-cc__glow {
  position: absolute;
  inset: -8% -4%;
  background:
    radial-gradient(ellipse 60% 50% at 70% 30%, rgba(34, 211, 238, 0.18), transparent),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(167, 139, 250, 0.12), transparent);
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
  animation: hero-cc-aura 8s ease-in-out infinite;
}

@keyframes hero-cc-aura {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

.hero-cc__frame {
  position: relative;
  z-index: 1;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent-cyan) 22%, transparent);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 24px 60px -28px rgba(0, 0, 0, 0.65),
    0 0 80px -40px rgba(34, 211, 238, 0.35);
  transform: rotateY(-6deg) rotateX(4deg);
  transition: transform 0.45s var(--ease-out-expo), box-shadow 0.35s ease;
}

.hero-cc.tilt-card .hero-cc__frame,
.hero-cc[style*="rotate"] .hero-cc__frame {
  transform: none; /* tilt handles perspective on parent */
}

@media (max-width: 1023px) {
  .hero-cc__frame { transform: none; }
}

.hero-cc__chrome {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--accent-cyan) 5%, transparent);
}

.hero-cc__dots {
  display: inline-flex;
  gap: 0.3rem;
}
.hero-cc__dots i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #fb7185;
  display: block;
}
.hero-cc__dots i:nth-child(2) { background: #fbbf24; }
.hero-cc__dots i:nth-child(3) { background: #34d399; }

.hero-cc__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--foreground);
  min-width: 0;
}
.hero-cc__mark {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0.35rem;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
  color: #041018;
}
.hero-cc__org {
  font-size: 0.65rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-cc__meta {
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted);
  direction: ltr;
}
.hero-cc__pulse i {
  display: block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: opacity-pulse 1.6s ease-in-out infinite;
}

.hero-cc__body {
  display: grid;
  grid-template-columns: auto 1fr;
  min-height: 22rem;
}

.hero-cc__rail {
  display: none;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.75rem 0.55rem;
  border-left: 1px solid var(--border);
  background: color-mix(in srgb, var(--foreground) 2%, transparent);
}
@media (min-width: 480px) {
  .hero-cc__rail { display: flex; }
}
.hero-cc__rail span {
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.75rem;
  transition: color 0.2s ease, background 0.2s ease;
}
.hero-cc__rail span.is-active {
  color: var(--accent-cyan);
  background: color-mix(in srgb, var(--accent-cyan) 14%, transparent);
  box-shadow: 0 0 16px -6px rgba(34, 211, 238, 0.5);
}

.hero-cc__main {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-cc__kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
@media (min-width: 640px) {
  .hero-cc__kpis { grid-template-columns: repeat(4, 1fr); }
}

.hero-cc__kpi {
  position: relative;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--foreground) 3%, transparent);
  padding: 0.55rem 0.65rem;
  overflow: hidden;
}
.hero-cc__kpi strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.hero-cc__kpi span {
  font-size: 0.62rem;
  color: var(--muted);
}
.hero-cc__kpi--live { border-color: color-mix(in srgb, var(--accent-violet) 30%, transparent); }
.hero-cc__online-dot {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: opacity-pulse 1.2s ease-in-out infinite;
}
.hero-cc__spark {
  position: absolute;
  inset: auto -20% -40% auto;
  width: 60%;
  height: 70%;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.25), transparent 70%);
  pointer-events: none;
}

.hero-cc__grid {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: 1fr 1fr;
}

.hero-cc .hero-widget {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 0.85rem;
  font-size: 0.72rem;
  transition: transform 0.25s var(--ease-out-expo), border-color 0.25s ease, box-shadow 0.25s ease;
}
.hero-cc .hero-widget:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--foreground) 18%, transparent);
  box-shadow: 0 10px 24px -16px rgba(0, 0, 0, 0.5);
}
.hero-cc .hero-widget ul { margin: 0.35rem 0 0; padding: 0; list-style: none; }
.hero-cc .hero-widget li {
  margin: 0.28rem 0;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
}

.hw-bar {
  width: 1.6rem;
  height: 0.28rem;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--foreground) 8%, transparent);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.hw-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--p, 50%);
  background: var(--accent-violet);
  border-radius: inherit;
  animation: hw-fill 1.2s var(--ease-out-expo) both;
}
.hw-bar--cyan::after { background: var(--accent-cyan); }
.hw-bar--amber::after { background: var(--accent-amber); }
@keyframes hw-fill {
  from { transform: scaleX(0); transform-origin: right; }
  to { transform: scaleX(1); transform-origin: right; }
}

.hero-cc__mood {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 1.4rem;
  margin-top: 0.45rem;
}
.hero-cc__mood span {
  flex: 1;
  height: var(--h);
  border-radius: 2px 2px 0 0;
  background: linear-gradient(to top, var(--accent-rose), var(--accent-cyan));
  animation: mood-bounce 1.8s ease-in-out infinite;
}
.hero-cc__mood span:nth-child(2) { animation-delay: 0.15s; }
.hero-cc__mood span:nth-child(3) { animation-delay: 0.3s; }
.hero-cc__mood span:nth-child(4) { animation-delay: 0.45s; }
.hero-cc__mood span:nth-child(5) { animation-delay: 0.6s; }
@keyframes mood-bounce {
  0%, 100% { transform: scaleY(0.85); opacity: 0.7; }
  50% { transform: scaleY(1); opacity: 1; }
}

.hero-cc__mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 1.5rem;
  margin-top: 0.45rem;
}
.hero-cc__mini-chart i {
  flex: 1;
  height: var(--h);
  border-radius: 2px 2px 0 0;
  background: linear-gradient(to top, var(--accent-emerald), var(--accent-cyan));
  display: block;
  animation: tip-bar 1s var(--ease-out-expo) both;
}
.hero-cc__mini-chart i:nth-child(odd) { animation-delay: 0.1s; }
.hero-cc__mini-chart i:nth-child(3n) { animation-delay: 0.2s; }

.hero-cc .hero-ai {
  margin: 0;
  padding: 0.7rem 0.85rem;
  border-radius: 0.85rem;
  border: 1px solid color-mix(in srgb, var(--accent-cyan) 22%, transparent);
}

/* Live toasts */
.hero-toasts {
  position: absolute;
  z-index: 5;
  top: 12%;
  left: -0.5rem;
  width: min(16rem, 70%);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  pointer-events: none;
}
@media (min-width: 1024px) {
  .hero-toasts { left: -1.75rem; }
}

.hero-toast {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.65rem 0.8rem;
  border-radius: 0.85rem;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 32px -16px rgba(0, 0, 0, 0.55);
  font-size: 0.72rem;
  color: var(--foreground);
  line-height: 1.45;
  opacity: 0;
  transform: translateX(-18px) scale(0.94);
  animation: toast-in 0.45s var(--ease-out-expo) forwards;
}
.hero-toast.is-leaving {
  animation: toast-out 0.35s ease forwards;
}
.hero-toast__icon {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 0.5rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.7rem;
}
.hero-toast__icon--money {
  background: color-mix(in srgb, var(--accent-emerald) 18%, transparent);
  color: var(--accent-emerald);
}
.hero-toast__icon--task {
  background: color-mix(in srgb, var(--accent-cyan) 18%, transparent);
  color: var(--accent-cyan);
}
.hero-toast__icon--coin {
  background: color-mix(in srgb, var(--accent-amber) 18%, transparent);
  color: var(--accent-amber);
}
.hero-toast__icon--ai {
  background: color-mix(in srgb, var(--accent-violet) 18%, transparent);
  color: var(--accent-violet);
}
.hero-toast__icon--mood {
  background: color-mix(in srgb, var(--accent-rose) 18%, transparent);
  color: var(--accent-rose);
}
.hero-toast strong {
  display: block;
  font-weight: 700;
  font-size: 0.72rem;
}
.hero-toast span {
  color: var(--muted);
  font-size: 0.65rem;
}

@keyframes toast-in {
  to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toast-out {
  to { opacity: 0; transform: translateX(-12px) scale(0.95); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-cursor-glow { transition: none; }
  .hero-cc__glow,
  .hero-cc__mood span,
  .hero-toast,
  .hw-bar::after {
    animation: none !important;
  }
}

/* Hero — mobile-first containment (prevent grid min-content blowout) */
.hero-grid {
  width: 100%;
}
.hero-grid > * {
  min-width: 0;
  max-width: 100%;
}
.hero-mock,
.hero-cc,
.hero-cc__frame {
  max-width: 100%;
  min-width: 0;
}

@media (max-width: 639.98px) {
  .hero-section {
    min-height: auto;
    padding-top: 5.25rem;
    padding-bottom: 3rem;
    overflow-x: clip;
  }

  .hero-grid {
    gap: 2rem;
  }

  .hero-copy {
    gap: 1.35rem;
  }

  .hero-badge {
    max-width: 100%;
    flex-wrap: wrap;
    row-gap: 0.35rem;
    font-size: 0.68rem;
    padding: 0.4rem 0.7rem;
  }

  .hero-badge__live {
    margin-right: 0;
  }

  .hero-title {
    font-size: clamp(1.65rem, 7.2vw, 2.1rem);
    line-height: 1.2;
  }

  .hero-lead {
    font-size: 0.98rem;
    line-height: 1.7;
    max-width: none;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.5rem;
  }

  .hero-actions .hero-btn,
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    width: auto;
    flex: 1 1 auto;
    min-width: calc(50% - 0.3rem);
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    min-height: 2.25rem;
    white-space: normal;
    text-align: center;
  }

  .hero-actions .hero-btn--quiet {
    flex: 1 1 100%;
    min-width: 100%;
    padding: 0.4rem 0.65rem;
  }

  .hero-stats {
    gap: 0.65rem;
  }

  .hero-stat {
    padding: 0.75rem 0.55rem;
  }

  .hero-stat__value {
    font-size: 1.25rem;
  }

  .hero-stat__label {
    font-size: 0.68rem;
    line-height: 1.35;
  }

  .hero-orb--cyan,
  .hero-orb--violet,
  .hero-orb--emerald {
    width: 11rem;
    height: 11rem;
    filter: blur(48px);
  }

  .hero-cc {
    perspective: none;
  }

  .hero-cc__glow {
    inset: -4% -2%;
    filter: blur(18px);
  }

  .hero-cc__frame {
    border-radius: 1rem;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.03) inset,
      0 16px 40px -24px rgba(0, 0, 0, 0.55);
  }

  .hero-cc__chrome {
    flex-wrap: wrap;
    padding: 0.55rem 0.7rem;
    gap: 0.45rem;
  }

  .hero-cc__org {
    display: none;
  }

  .hero-cc__meta {
    margin-right: 0;
    margin-inline-start: auto;
  }

  .hero-cc__body {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .hero-cc__rail {
    display: none;
  }

  .hero-cc__main {
    padding: 0.65rem;
    gap: 0.55rem;
  }

  .hero-cc__kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
  }

  .hero-cc__kpi {
    padding: 0.45rem 0.5rem;
  }

  .hero-cc__kpi strong {
    font-size: 0.95rem;
  }

  .hero-cc__kpi span {
    font-size: 0.58rem;
    line-height: 1.3;
  }

  .hero-cc__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .hero-cc .hero-widget {
    padding: 0.55rem 0.6rem;
  }

  .hero-cc .hero-widget li {
    font-size: 0.62rem;
  }

  .hero-cc .hero-ai {
    padding: 0.55rem 0.65rem;
  }

  .hero-ai__body {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
  }

  .hero-ai__chart {
    height: 3.25rem;
  }

  /* Keep decorative toasts/float from blowing out the layout */
  .hero-toasts {
    display: none;
  }

  .hero-float {
    position: static;
    max-width: none;
    width: 100%;
    margin-top: 0.75rem;
    right: auto;
    bottom: auto;
    box-shadow: 0 12px 28px -16px rgba(0, 0, 0, 0.45);
  }
}

@media (min-width: 640px) and (max-width: 1023.98px) {
  .hero-section {
    min-height: auto;
    overflow-x: clip;
  }

  .hero-grid {
    gap: 2.5rem;
  }

  .hero-cc {
    perspective: none;
  }

  .hero-toasts {
    left: 0.25rem;
    width: min(15rem, 55%);
  }

  .hero-float {
    right: 0;
    max-width: 200px;
  }
}

/* Analytics — mobile / tablet */
@media (max-width: 639.98px) {
  .analytics-section.demo-section {
    padding-block: 3.5rem;
    overflow-x: clip;
  }

  .analytics-section .demo-section-title {
    font-size: clamp(1.35rem, 6.2vw, 1.75rem);
    line-height: 1.35;
  }

  .analytics-section .demo-section-subtitle {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .analytics-kpis {
    margin-top: 1.5rem;
    gap: 0.65rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .analytics-kpi {
    border-radius: 0.9rem;
    padding: 0.75rem 0.8rem;
    min-width: 0;
  }

  .analytics-kpi:hover,
  .analytics-kpi.is-active {
    transform: translateY(-2px);
  }

  .analytics-kpi__icon {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 0.55rem;
    font-size: 0.8rem;
  }

  .analytics-kpi__change {
    font-size: 9px;
    padding: 0.1rem 0.4rem;
  }

  .analytics-kpi__value {
    margin-top: 0.55rem;
    font-size: 1.35rem;
  }

  .analytics-kpi__suffix {
    font-size: 0.85rem;
  }

  .analytics-kpi__label {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .analytics-kpi__source {
    margin-top: 0.3rem;
    font-size: 9px;
  }

  .analytics-live {
    margin-top: 1rem;
    padding: 0.9rem 0.95rem 1rem;
    border-radius: 1.1rem;
  }

  .analytics-live__head {
    gap: 0.55rem;
    margin-bottom: 0.65rem;
  }

  .analytics-live__legend {
    gap: 0.5rem;
    font-size: 0.68rem;
  }

  .analytics-charts {
    margin-top: 1rem;
    gap: 0.75rem;
  }

  .analytics-chart {
    padding: 0.9rem 0.95rem;
    border-radius: 1.1rem;
    min-width: 0;
  }

  .analytics-chart__head {
    margin-bottom: 0.65rem;
  }

  .analytics-chart__canvas--320 {
    height: 200px;
    min-height: 180px;
  }

  .analytics-chart__canvas--280,
  .analytics-chart__canvas--260 {
    height: 190px;
    min-height: 170px;
  }

  .analytics-chart__canvas--200 {
    height: 160px;
    min-height: 140px;
  }

  .analytics-chart__title {
    font-size: 0.88rem;
  }

  .analytics-chart__sub {
    font-size: 0.7rem;
    line-height: 1.45;
  }

  .analytics-legend {
    gap: 0.4rem;
    margin-top: 0.4rem;
  }

  .analytics-legend__item {
    font-size: 9px;
  }
}

@media (min-width: 640px) and (max-width: 1023.98px) {
  .analytics-section.demo-section {
    padding-block: 5rem;
  }

  .analytics-kpis {
    margin-top: 2rem;
    gap: 0.85rem;
  }

  .analytics-kpi {
    padding: 1rem 1.1rem;
  }

  .analytics-kpi__value {
    font-size: 1.55rem;
    margin-top: 0.75rem;
  }

  .analytics-live {
    padding: 1.25rem;
  }

  .analytics-charts {
    gap: 1rem;
    margin-top: 1.35rem;
  }

  .analytics-chart {
    padding: 1.15rem;
  }

  .analytics-chart__canvas--320 {
    height: 260px;
    min-height: 220px;
  }

  .analytics-chart__canvas--280,
  .analytics-chart__canvas--260 {
    height: 230px;
    min-height: 200px;
  }
}

/* ═══════════════════════════════════════════════
   PROBLEM — Chaos vs Order
   ═══════════════════════════════════════════════ */

.problem-section {
  position: relative;
  overflow: hidden;
}

.problem-chaos {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.problem-chaos__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  transition: opacity 0.8s var(--ease-out-expo), filter 0.8s ease;
}

.problem-section.is-ordered .problem-chaos__canvas {
  opacity: 0.18;
  filter: blur(1px);
}

.problem-chaos__icons {
  position: absolute;
  inset: 0;
  transition: opacity 0.7s ease, transform 1s var(--ease-out-expo);
}

.problem-section.is-ordered .problem-chaos__icons {
  opacity: 0;
  transform: scale(0.4);
  pointer-events: none;
}

.problem-float-icon {
  position: absolute;
  left: var(--tx);
  top: var(--ty);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0.45;
  animation: problem-drift 9s ease-in-out infinite;
  will-change: transform;
}
.problem-float-icon:nth-child(2) { animation-duration: 11s; animation-delay: -2s; opacity: 0.35; }
.problem-float-icon:nth-child(3) { animation-duration: 8s; animation-delay: -4s; }
.problem-float-icon:nth-child(4) { animation-duration: 10s; animation-delay: -1s; opacity: 0.4; }
.problem-float-icon:nth-child(5) { animation-duration: 12s; animation-delay: -3s; }
.problem-float-icon:nth-child(6) { animation-duration: 9.5s; animation-delay: -5s; opacity: 0.38; }

@keyframes problem-drift {
  0%, 100% { transform: translate(0, 0) rotate(-4deg); }
  50% { transform: translate(calc(var(--fx, 10) * 1px), calc(var(--fy, 8) * 1px)) rotate(6deg); }
}

/* Order attractor — forms on aha */
.problem-order {
  position: absolute;
  left: 50%;
  top: 72%;
  transform: translate(-50%, -50%) scale(0.4);
  width: 7.5rem;
  height: 7.5rem;
  opacity: 0;
  transition: opacity 0.6s ease, transform 1.1s var(--ease-out-expo);
  z-index: 1;
}
.problem-section.is-ordered .problem-order {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.problem-order__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent-cyan) 45%, transparent);
  box-shadow:
    0 0 40px -8px rgba(34, 211, 238, 0.55),
    inset 0 0 24px -10px rgba(34, 211, 238, 0.25);
  animation: order-spin 12s linear infinite;
}
.problem-order__ring--2 {
  inset: 12%;
  border-color: color-mix(in srgb, var(--accent-violet) 40%, transparent);
  box-shadow: 0 0 28px -8px rgba(167, 139, 250, 0.45);
  animation-direction: reverse;
  animation-duration: 9s;
}
.problem-order__mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  background: linear-gradient(120deg, var(--accent-cyan), var(--accent-violet), var(--accent-emerald));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer-text 3s linear infinite;
}

@keyframes order-spin {
  to { transform: rotate(360deg); }
}

/* Cards */
.problem-cards .problem-card {
  position: relative;
  overflow: hidden;
  cursor: default;
  min-height: 14rem;
  transform-style: preserve-3d;
  transition:
    transform 0.2s var(--ease-out-expo),
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.3s ease;
}

.problem-card__icon {
  position: relative;
  z-index: 2;
  transition: opacity 0.3s ease, transform 0.35s var(--ease-out-expo);
}
.problem-card__icon i { font-size: 2rem; }

.problem-card h3,
.problem-card p,
.problem-card__copy {
  position: relative;
  z-index: 2;
}

.problem-pain {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.problem-card:hover .problem-pain,
.problem-card:focus-within .problem-pain {
  opacity: 1;
}
.problem-card:hover .problem-card__icon {
  opacity: 0.35;
  transform: scale(0.88);
}

/* Pain: scatter tools */
.problem-pain--scatter {
  display: grid;
  place-items: center;
}
.pain-tool {
  position: absolute;
  top: 28%;
  left: 50%;
  width: 1.85rem;
  height: 1.85rem;
  margin: -0.9rem;
  border-radius: 0.45rem;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  border: 1px solid var(--border);
  color: var(--muted);
  transform: translate(0, 0) scale(0.4);
  opacity: 0;
  transition:
    transform 0.55s cubic-bezier(0.22, 1.2, 0.36, 1),
    opacity 0.3s ease;
}
.problem-card:hover .pain-tool {
  opacity: 1;
}
.problem-card:hover .pain-tool:nth-child(1) {
  transform: translate(-2.6rem, -1.8rem) rotate(-18deg) scale(1);
  transition-delay: 0.02s;
  color: #34d399;
}
.problem-card:hover .pain-tool:nth-child(2) {
  transform: translate(2.4rem, -1.5rem) rotate(14deg) scale(1);
  transition-delay: 0.06s;
  color: #25d366;
}
.problem-card:hover .pain-tool:nth-child(3) {
  transform: translate(-2.2rem, 1.6rem) rotate(10deg) scale(1);
  transition-delay: 0.1s;
  color: #0079bf;
}
.problem-card:hover .pain-tool:nth-child(4) {
  transform: translate(2.5rem, 1.4rem) rotate(-12deg) scale(1);
  transition-delay: 0.14s;
  color: var(--accent-amber);
}

/* Pain: blind chart */
.problem-pain--blind {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 1rem;
  padding-bottom: 1.1rem;
}
.pain-blind-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 3.2rem;
  width: 70%;
  filter: blur(5px) saturate(0.6);
  opacity: 0.55;
  transform: scale(0.9);
  transition: filter 0.4s ease, opacity 0.4s ease, transform 0.4s var(--ease-out-expo);
}
.problem-card:hover .pain-blind-chart {
  filter: blur(7px) brightness(0.7);
  opacity: 0.75;
  transform: scale(1);
}
.pain-blind-chart i {
  flex: 1;
  height: var(--h);
  border-radius: 3px 3px 0 0;
  background: linear-gradient(to top, var(--accent-rose), var(--accent-violet));
  display: block;
}
.pain-blind-fog {
  position: absolute;
  inset: 35% 10% 18%;
  background: rgba(15, 23, 42, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-radius: 0.5rem;
  border: 1px solid var(--border);
}
.pain-blind-label {
  position: relative;
  z-index: 2;
  margin-top: 0.35rem;
  font-size: 0.65rem;
  color: var(--accent-rose);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.35s var(--ease-out-expo);
}
.problem-card:hover .pain-blind-label {
  opacity: 1;
  transform: translateY(0);
}

/* Pain: matrix */
.problem-pain--matrix {
  overflow: hidden;
}
.pain-matrix {
  position: absolute;
  inset: 0;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  line-height: 1.35;
  color: color-mix(in srgb, var(--accent-violet) 70%, white);
  opacity: 0.55;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.15rem;
  padding: 0.5rem;
  mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 70%, transparent);
}
.pain-matrix span {
  display: block;
  animation: matrix-fall 1.6s linear infinite;
  opacity: 0.7;
}
.pain-matrix span:nth-child(odd) { animation-duration: 1.2s; color: var(--accent-cyan); }
.pain-matrix span:nth-child(3n) { animation-duration: 2s; animation-delay: -0.4s; }
.pain-matrix span:nth-child(5n) { animation-duration: 1.4s; animation-delay: -0.8s; }

@keyframes matrix-fall {
  0% { transform: translateY(-40%); opacity: 0; }
  20% { opacity: 0.8; }
  100% { transform: translateY(80%); opacity: 0.15; }
}

/* Pain: lock */
.problem-pain--lock {
  display: grid;
  place-items: center;
}
.pain-tangle {
  position: absolute;
  width: 85%;
  height: 55%;
  top: 18%;
  left: 7.5%;
  color: color-mix(in srgb, var(--accent-rose) 55%, transparent);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.35s ease, transform 0.45s var(--ease-out-expo);
}
.problem-card:hover .pain-tangle {
  opacity: 1;
  transform: scale(1);
}
.pain-tangle path {
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
}
.problem-card:hover .pain-tangle path {
  animation: tangle-draw 1.1s var(--ease-out-expo) forwards;
}
.problem-card:hover .pain-tangle path:nth-child(2) { animation-delay: 0.1s; }
.problem-card:hover .pain-tangle path:nth-child(3) { animation-delay: 0.2s; }

@keyframes tangle-draw {
  to { stroke-dashoffset: 0; }
}

.pain-lock {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  color: var(--accent-cyan);
  background: color-mix(in srgb, var(--accent-cyan) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-cyan) 30%, transparent);
  transform: scale(0.5);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1.4, 0.36, 1), opacity 0.25s ease, color 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.problem-card:hover .pain-lock {
  opacity: 1;
  transform: scale(1);
  color: #fb7185;
  background: color-mix(in srgb, #fb7185 14%, transparent);
  border-color: color-mix(in srgb, #fb7185 45%, transparent);
  animation: lock-shake 0.55s ease-in-out 0.25s;
}
@keyframes lock-shake {
  0%, 100% { transform: scale(1) rotate(0); }
  20% { transform: scale(1.05) rotate(-12deg); }
  40% { transform: scale(1.05) rotate(12deg); }
  60% { transform: scale(1.05) rotate(-8deg); }
  80% { transform: scale(1.05) rotate(8deg); }
}

/* Aha callout */
.problem-callout {
  position: relative;
  overflow: hidden;
  margin-top: 3rem;
  border-radius: 1.25rem;
  border: 1px solid color-mix(in srgb, var(--accent-cyan) 28%, transparent);
  background: linear-gradient(
    120deg,
    color-mix(in srgb, var(--accent-cyan) 8%, transparent),
    color-mix(in srgb, var(--accent-violet) 6%, transparent),
    color-mix(in srgb, var(--foreground) 3%, transparent)
  );
  padding: 2.25rem 1.5rem;
  text-align: center;
  box-shadow: 0 0 0 1px transparent;
  transition: box-shadow 0.6s ease, border-color 0.6s ease, transform 0.5s var(--ease-out-expo);
}

.problem-section.is-ordered .problem-callout {
  border-color: color-mix(in srgb, var(--accent-cyan) 55%, transparent);
  box-shadow:
    0 0 60px -18px rgba(34, 211, 238, 0.45),
    0 20px 50px -30px rgba(0, 0, 0, 0.5);
  transform: translateY(-4px);
}

.problem-callout__glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 50% 50%, rgba(34, 211, 238, 0.2), transparent 55%);
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}
.problem-section.is-ordered .problem-callout__glow {
  opacity: 1;
  animation: hero-cc-aura 4s ease-in-out infinite;
}

.problem-callout__text {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 600;
  line-height: 1.8;
  color: var(--foreground);
  background: linear-gradient(
    100deg,
    var(--foreground) 0%,
    var(--foreground) 35%,
    var(--accent-cyan) 50%,
    var(--accent-violet) 65%,
    var(--foreground) 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.55;
  filter: blur(0.3px);
  transition: opacity 0.7s ease, filter 0.7s ease, background-position 1.2s ease;
}
.problem-section.is-ordered .problem-callout__text {
  opacity: 1;
  filter: none;
  background-position: 100% center;
  animation: aha-shimmer 2.8s ease-in-out 0.3s infinite;
}

@keyframes aha-shimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

@media (prefers-reduced-motion: reduce) {
  .problem-float-icon,
  .problem-order__ring,
  .pain-matrix span,
  .pain-lock,
  .problem-callout__text {
    animation: none !important;
  }
  .problem-card:hover .pain-tool {
    transition: none;
  }
}

.problem-section__inner {
  position: relative;
  z-index: 2;
}

.problem-card__copy {
  position: relative;
  z-index: 2;
}

/* Problem — mobile / touch-friendly layout */
@media (max-width: 639.98px) {
  .problem-section.demo-section {
    padding-block: 3.5rem;
    overflow-x: clip;
  }

  .problem-section .demo-section-title {
    font-size: clamp(1.35rem, 6.2vw, 1.75rem);
    line-height: 1.35;
  }

  .problem-section .demo-section-subtitle {
    font-size: 0.92rem;
    line-height: 1.7;
    max-width: 36rem;
  }

  /* Tone down decorative chaos so copy stays readable */
  .problem-chaos__canvas {
    opacity: 0.28;
  }

  .problem-float-icon {
    width: 1.65rem;
    height: 1.65rem;
    font-size: 0.7rem;
    opacity: 0.22;
  }

  .problem-float-icon:nth-child(n + 4) {
    display: none;
  }

  .problem-order {
    top: auto;
    bottom: 1.25rem;
    width: 4.5rem;
    height: 4.5rem;
  }

  .problem-order__mark {
    font-size: 0.95rem;
  }

  .problem-cards.cards-4 {
    margin-top: 1.75rem;
    gap: 0.85rem;
    grid-template-columns: 1fr;
  }

  .problem-cards .problem-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    padding: 1.05rem 1.1rem 0.9rem;
    border-radius: 1rem;
    transform: none !important;
    transform-style: flat;
  }

  .problem-card__icon {
    margin-bottom: 0.15rem;
  }

  .problem-card__icon i {
    font-size: 1.35rem;
  }

  .problem-card h3 {
    margin-top: 0.55rem;
    font-size: 1rem;
  }

  .problem-card p {
    margin-top: 0.35rem;
    font-size: 0.82rem;
    line-height: 1.65;
  }

  /* Pain demos as always-visible strip (no hover on touch) */
  .problem-pain {
    position: relative;
    inset: auto;
    opacity: 1;
    height: 3.4rem;
    margin-top: 0.85rem;
    border-radius: 0.75rem;
    background: color-mix(in srgb, var(--foreground) 3%, transparent);
    border: 1px solid var(--border);
    overflow: hidden;
  }

  .problem-card__icon {
    opacity: 1;
    transform: none;
  }

  .problem-pain--scatter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
  }

  .pain-tool {
    position: static;
    top: auto;
    left: auto;
    margin: 0;
    opacity: 1;
    transform: none;
    width: 1.7rem;
    height: 1.7rem;
    font-size: 0.72rem;
  }

  .pain-tool:nth-child(1) { color: #34d399; transform: rotate(-8deg); }
  .pain-tool:nth-child(2) { color: #25d366; transform: rotate(6deg); }
  .pain-tool:nth-child(3) { color: #0079bf; transform: rotate(-4deg); }
  .pain-tool:nth-child(4) { color: var(--accent-amber); transform: rotate(8deg); }

  .problem-card:hover .pain-tool,
  .problem-card:hover .pain-tool:nth-child(1),
  .problem-card:hover .pain-tool:nth-child(2),
  .problem-card:hover .pain-tool:nth-child(3),
  .problem-card:hover .pain-tool:nth-child(4) {
    position: static;
    top: auto;
    left: auto;
    margin: 0;
    opacity: 1;
  }
  .problem-card:hover .pain-tool:nth-child(1) { transform: rotate(-8deg); }
  .problem-card:hover .pain-tool:nth-child(2) { transform: rotate(6deg); }
  .problem-card:hover .pain-tool:nth-child(3) { transform: rotate(-4deg); }
  .problem-card:hover .pain-tool:nth-child(4) { transform: rotate(8deg); }

  .problem-card:hover .problem-card__icon {
    opacity: 1;
    transform: none;
  }

  .problem-card:hover .pain-blind-chart {
    filter: blur(3px) saturate(0.55);
    opacity: 0.7;
    transform: none;
  }

  .problem-card:hover .pain-tangle {
    opacity: 0.75;
    transform: none;
  }

  .problem-pain--blind {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 0.7rem;
    gap: 0.5rem;
  }

  .pain-blind-chart {
    height: 2rem;
    width: 45%;
    filter: blur(3px) saturate(0.55);
    opacity: 0.7;
    transform: none;
  }

  .pain-blind-fog {
    display: none;
  }

  .pain-blind-label {
    opacity: 1;
    transform: none;
    margin-top: 0;
    font-size: 0.62rem;
  }

  .problem-pain--matrix {
    padding: 0.25rem 0.4rem;
  }

  .pain-matrix {
    height: 100%;
    opacity: 0.55;
  }

  .problem-pain--lock {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .pain-tangle {
    position: relative;
    top: auto;
    left: auto;
    width: 70%;
    height: 2.4rem;
    opacity: 0.75;
    transform: none;
    color: var(--accent-cyan);
  }

  .pain-tangle path {
    stroke-dashoffset: 0;
  }

  .pain-lock {
    position: absolute;
    opacity: 1;
    transform: none;
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.75rem;
  }

  .pain-matrix {
    position: absolute;
    inset: 0;
    opacity: 0.55;
  }

  .problem-callout {
    margin-top: 1.5rem;
    padding: 1.15rem 1rem;
    border-radius: 1rem;
    transform: none !important;
  }

  .problem-callout__text {
    font-size: 0.95rem;
    line-height: 1.75;
    opacity: 0.9;
    filter: none;
  }
}

@media (min-width: 640px) and (max-width: 1023.98px) {
  .problem-section.demo-section {
    padding-block: 5rem;
  }

  .problem-cards.cards-4 {
    margin-top: 2.5rem;
    gap: 1.1rem;
  }

  .problem-cards .problem-card {
    min-height: 12.5rem;
    padding: 1.25rem;
  }

  .problem-float-icon:nth-child(n + 5) {
    display: none;
  }

  .problem-chaos__canvas {
    opacity: 0.4;
  }
}

/* Touch: show pain on press when desktop-style overlay is active */
@media (hover: none) and (min-width: 640px) {
  .problem-card:active .problem-pain,
  .problem-card.is-pressed .problem-pain {
    opacity: 1;
  }

  .problem-card:active .problem-card__icon,
  .problem-card.is-pressed .problem-card__icon {
    opacity: 0.35;
    transform: scale(0.88);
  }
}

/* ═══════════════════════════════════════════════
   PILLARS — Deep Reveal
   ═══════════════════════════════════════════════ */

.pillars-section {
  position: relative;
  overflow: visible;
}

.pillars-grid {
  align-items: start;
}

.pillars-grid .pillar-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  padding: 0;
  transition:
    transform 0.45s cubic-bezier(0.22, 1.2, 0.36, 1),
    box-shadow 0.4s ease,
    border-color 0.35s ease,
    grid-column 0.4s ease;
}

.pillars-grid .pillar-card:hover {
  transform: none; /* tilt owns hover motion when collapsed */
}

.pillars-grid .pillar-card.is-expanded {
  box-shadow:
    0 24px 56px -28px rgba(0, 0, 0, 0.55),
    0 0 0 1px color-mix(in srgb, var(--foreground) 8%, transparent);
  z-index: 3;
}

@media (min-width: 768px) {
  .pillars-grid .pillar-card.is-expanded {
    grid-column: span 2;
  }
}

.pillar-card__surface {
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.pillar-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.pillar-card__top .icon-box {
  margin-bottom: 0;
}

.pillar-card__hint {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.5rem;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  color: var(--muted);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--foreground) 4%, transparent);
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.35s cubic-bezier(0.22, 1.4, 0.36, 1);
}
.pillar-card:hover .pillar-card__hint,
.pillar-card.is-expanded .pillar-card__hint {
  color: var(--foreground);
  border-color: color-mix(in srgb, var(--accent-cyan) 35%, transparent);
  transform: rotate(90deg);
}
.pillar-card.is-expanded .pillar-card__hint {
  transform: rotate(180deg);
}

.pillars-grid .pillar-card .chips {
  margin-top: 1.25rem;
  gap: 0.45rem;
}

.pillars-grid .pillar-card .chip {
  font: inherit;
  font-size: 0.75rem;
  cursor: help;
  transition:
    transform 0.2s cubic-bezier(0.22, 1.2, 0.36, 1),
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}
.pillars-grid .pillar-card .chip:hover,
.pillars-grid .pillar-card .chip:focus-visible {
  transform: translateY(-2px) scale(1.03);
  border-color: color-mix(in srgb, var(--accent-cyan) 40%, transparent);
  color: var(--foreground);
  box-shadow: 0 8px 18px -12px rgba(34, 211, 238, 0.45);
  outline: none;
}

/* Reveal panel */
.pillar-reveal {
  display: grid;
  gap: 1rem;
  padding: 0 2rem 2rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(12px);
  transition:
    max-height 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s ease,
    transform 0.5s cubic-bezier(0.22, 1.2, 0.36, 1),
    padding 0.4s ease;
}

.pillar-card.is-expanded .pillar-reveal {
  max-height: 28rem;
  opacity: 1;
  transform: translateY(0);
  padding-top: 0.25rem;
}

.pillar-reveal[hidden] {
  display: grid; /* keep for transition; JS toggles hidden after close */
}

.pillar-reveal__mock {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--foreground) 3%, transparent);
  padding: 1rem;
  min-height: 7.5rem;
  position: relative;
  overflow: hidden;
}

.pillar-reveal__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.pillar-reveal__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--foreground);
  opacity: 0;
  transform: translateY(8px);
}
.pillar-card.is-expanded .pillar-reveal__list li {
  animation: pillar-li-in 0.45s cubic-bezier(0.22, 1.2, 0.36, 1) forwards;
}
.pillar-card.is-expanded .pillar-reveal__list li:nth-child(1) { animation-delay: 0.12s; }
.pillar-card.is-expanded .pillar-reveal__list li:nth-child(2) { animation-delay: 0.2s; }
.pillar-card.is-expanded .pillar-reveal__list li:nth-child(3) { animation-delay: 0.28s; }
.pillar-reveal__list i {
  color: var(--accent-emerald);
  font-size: 0.7rem;
  margin-top: 0.25rem;
}

@keyframes pillar-li-in {
  to { opacity: 1; transform: translateY(0); }
}

/* Cyan chart mock */
.pillar-mock__chart {
  position: relative;
  height: 5.5rem;
  color: var(--accent-cyan);
}
.pillar-mock__chart svg {
  width: 100%;
  height: 100%;
  display: block;
}
.pillar-mock__line {
  stroke-dasharray: 280;
  stroke-dashoffset: 280;
}
.pillar-card.is-expanded .pillar-mock__line {
  animation: pillar-draw 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}
.pillar-mock__area {
  opacity: 0.12;
  transform-origin: bottom;
  transform: scaleY(0);
}
.pillar-card.is-expanded .pillar-mock__area {
  animation: pillar-area 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}
@keyframes pillar-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes pillar-area {
  to { transform: scaleY(1); }
}

.pillar-mock__tip {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -120%) scale(0.85);
  padding: 0.28rem 0.5rem;
  border-radius: 0.45rem;
  font-size: 0.62rem;
  font-weight: 700;
  white-space: nowrap;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-emerald) 35%, transparent);
  color: var(--accent-emerald);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  box-shadow: 0 8px 20px -12px rgba(0, 0, 0, 0.45);
}
.pillar-mock__tip--2 {
  border-color: color-mix(in srgb, var(--accent-cyan) 35%, transparent);
  color: var(--accent-cyan);
}
.pillar-card.is-expanded .pillar-mock__tip {
  animation: tip-pop 0.45s cubic-bezier(0.22, 1.4, 0.36, 1) 0.55s forwards;
}
.pillar-card.is-expanded .pillar-mock__tip--2 {
  animation-delay: 0.75s;
}
@keyframes tip-pop {
  to { opacity: 1; transform: translate(-50%, -120%) scale(1); }
}

/* Violet workflow */
.pillar-wf {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  min-height: 5rem;
  font-size: 0.7rem;
}
.pillar-wf__step {
  padding: 0.35rem 0.65rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: color-mix(in srgb, var(--foreground) 3%, transparent);
  transition: all 0.3s ease;
}
.pillar-wf__step.is-done {
  color: var(--accent-emerald);
  border-color: color-mix(in srgb, var(--accent-emerald) 35%, transparent);
}
.pillar-wf__step.is-active {
  color: var(--accent-violet);
  border-color: color-mix(in srgb, var(--accent-violet) 45%, transparent);
  box-shadow: 0 0 16px -6px rgba(167, 139, 250, 0.55);
}
.pillar-wf__arrow {
  font-size: 0.6rem;
  color: var(--muted);
  opacity: 0.6;
}
.pillar-wf__block {
  position: absolute;
  bottom: 0.35rem;
  right: 12%;
  width: 2.4rem;
  height: 1.1rem;
  border-radius: 0.35rem;
  background: linear-gradient(90deg, var(--accent-violet), var(--accent-cyan));
  box-shadow: 0 0 14px -4px rgba(167, 139, 250, 0.7);
  opacity: 0;
}
.pillar-card.is-expanded .pillar-wf__block {
  animation: wf-slide 2.4s cubic-bezier(0.45, 0.05, 0.25, 1) 0.2s infinite;
}
@keyframes wf-slide {
  0% { right: 72%; opacity: 0; transform: scale(0.9); }
  15% { opacity: 1; }
  45% { right: 42%; }
  75% { right: 12%; opacity: 1; }
  100% { right: 8%; opacity: 0; transform: scale(0.95); }
}

/* Emerald feed */
.pillar-feed {
  position: relative;
  height: 5.5rem;
  display: grid;
  place-items: center;
}
.pillar-feed__core {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  color: var(--accent-emerald);
  background: color-mix(in srgb, var(--accent-emerald) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-emerald) 35%, transparent);
  box-shadow: 0 0 28px -8px rgba(52, 211, 153, 0.55);
  z-index: 2;
}
.pillar-feed__bit {
  position: absolute;
  top: 10%;
  font-size: 0.6rem;
  font-weight: 600;
  padding: 0.2rem 0.45rem;
  border-radius: 0.35rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  opacity: 0;
}
.pillar-card.is-expanded .pillar-feed__bit {
  animation: feed-in 2s ease-in-out infinite;
  animation-delay: calc(var(--d) * 0.35s);
}
.pillar-feed__bit:nth-child(1) { left: 8%; }
.pillar-feed__bit:nth-child(2) { left: 38%; }
.pillar-feed__bit:nth-child(3) { left: 68%; }
@keyframes feed-in {
  0% { transform: translateY(0); opacity: 0; }
  25% { opacity: 1; }
  70% { transform: translateY(2.2rem); opacity: 0.85; }
  100% { transform: translateY(2.8rem); opacity: 0; }
}
.pillar-feed__pop {
  position: absolute;
  bottom: 0.2rem;
  left: 6%;
  font-size: 0.6rem;
  font-weight: 600;
  padding: 0.25rem 0.45rem;
  border-radius: 0.4rem;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-emerald) 30%, transparent);
  color: var(--accent-emerald);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(6px);
}
.pillar-feed__pop--2 {
  left: auto;
  right: 6%;
  color: var(--accent-cyan);
  border-color: color-mix(in srgb, var(--accent-cyan) 30%, transparent);
}
.pillar-card.is-expanded .pillar-feed__pop {
  animation: tip-pop 0.4s cubic-bezier(0.22, 1.4, 0.36, 1) calc(0.5s + var(--d) * 0.35s) forwards;
}

/* Amber AI core */
.pillar-ai-core {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 5.5rem;
  text-align: center;
}
.pillar-ai-core__orb {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  color: var(--accent-amber);
  background:
    radial-gradient(circle at 35% 30%, rgba(251, 191, 36, 0.35), transparent 55%),
    color-mix(in srgb, var(--accent-amber) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-amber) 40%, transparent);
  box-shadow: 0 0 36px -6px rgba(251, 191, 36, 0.55);
}
.pillar-card.is-expanded .pillar-ai-core__orb {
  animation: ai-orb-pulse 2.2s ease-in-out infinite;
}
@keyframes ai-orb-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 28px -6px rgba(251, 191, 36, 0.45); }
  50% { transform: scale(1.06); box-shadow: 0 0 42px -4px rgba(251, 191, 36, 0.7); }
}
.pillar-ai-core__type {
  margin: 0;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--muted);
  min-height: 1.2em;
}
.pillar-ai-core__type::after {
  content: "▌";
  color: var(--accent-amber);
  margin-right: 2px;
  animation: opacity-pulse 0.9s steps(1) infinite;
}

/* Chip tooltip portal */
.pillar-chip-tip {
  position: fixed;
  z-index: 1300;
  max-width: 16.5rem;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.22, 1.2, 0.36, 1);
}
.pillar-chip-tip.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.pillar-chip-tip__inner {
  border-radius: 0.75rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid color-mix(in srgb, var(--accent-cyan) 25%, transparent);
  box-shadow: 0 14px 36px -16px rgba(0, 0, 0, 0.55);
  font-size: 0.75rem;
  line-height: 1.65;
  color: var(--foreground);
}

@media (prefers-reduced-motion: reduce) {
  .pillar-card.is-expanded .pillar-mock__line,
  .pillar-card.is-expanded .pillar-wf__block,
  .pillar-card.is-expanded .pillar-feed__bit,
  .pillar-card.is-expanded .pillar-ai-core__orb,
  .pillar-ai-core__type::after {
    animation: none !important;
  }
  .pillar-reveal {
    transition: none;
  }
}

.pillars-section__mesh {
  opacity: 0.5;
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.pillars-section__inner {
  position: relative;
}

/* Pillars — phone */
@media (max-width: 767.98px) {
  .pillars-section.demo-section {
    padding-block: 3.5rem;
    overflow-x: clip;
  }

  .pillars-section .demo-section-title {
    font-size: clamp(1.35rem, 6.2vw, 1.75rem);
    line-height: 1.35;
  }

  .pillars-section .demo-section-subtitle {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .pillars-grid.cards-2 {
    margin-top: 1.75rem;
    gap: 0.85rem;
    grid-template-columns: 1fr;
  }

  .pillars-grid .pillar-card {
    min-width: 0;
    max-width: 100%;
    border-radius: 1.1rem;
    transform: none !important;
    transform-style: flat;
  }

  .pillar-card__surface {
    padding: 1.1rem 1.15rem 1rem;
  }

  .pillar-card__top {
    margin-bottom: 0.65rem;
  }

  .pillar-card__top .icon-box {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.75rem;
    font-size: 0.95rem;
  }

  .pillar-card__hint {
    width: 1.65rem;
    height: 1.65rem;
    font-size: 0.65rem;
    opacity: 1;
    color: var(--muted);
  }

  .pillars-grid .pillar-card h3 {
    font-size: 1.05rem;
  }

  .pillars-grid .pillar-card__surface > p {
    margin-top: 0.45rem;
    font-size: 0.82rem;
    line-height: 1.65;
  }

  .pillars-grid .pillar-card .chips {
    margin-top: 0.85rem;
    gap: 0.35rem;
  }

  .pillars-grid .pillar-card .chip {
    font-size: 0.68rem;
    padding: 0.3rem 0.55rem;
    min-height: 1.7rem;
  }

  .pillar-reveal {
    padding: 0 1.15rem 1.1rem;
    gap: 0.75rem;
  }

  .pillar-card.is-expanded .pillar-reveal {
    max-height: 32rem;
    padding-top: 0.15rem;
  }

  .pillar-reveal__mock {
    min-height: 5.5rem;
    padding: 0.75rem;
    border-radius: 0.85rem;
  }

  .pillar-reveal__list li {
    font-size: 0.78rem;
    gap: 0.45rem;
  }

  .pillar-mock__chart {
    height: 4.5rem;
  }

  .pillar-mock__tip {
    font-size: 0.58rem;
    padding: 0.15rem 0.4rem;
    max-width: 46%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .pillar-wf {
    min-height: 4.25rem;
    gap: 0.3rem;
    font-size: 0.65rem;
  }

  .pillar-wf__step {
    padding: 0.28rem 0.5rem;
  }

  .pillar-feed {
    height: 4.75rem;
  }

  .pillar-feed__bit,
  .pillar-feed__pop {
    font-size: 0.58rem;
  }

  .pillar-feed__pop {
    max-width: 42%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .pillar-ai-core__type {
    font-size: 0.72rem;
    padding-inline: 0.5rem;
  }

  .pillar-chip-tip {
    max-width: calc(100vw - 1.5rem);
  }

  .pillar-chip-tip__inner {
    font-size: 0.75rem;
    padding: 0.55rem 0.7rem;
    line-height: 1.55;
  }
}

@media (min-width: 768px) and (max-width: 1023.98px) {
  .pillars-section.demo-section {
    padding-block: 5rem;
  }

  .pillars-grid.cards-2 {
    margin-top: 2.5rem;
    gap: 1.1rem;
  }

  .pillar-card__surface {
    padding: 1.5rem;
  }

  .pillar-reveal {
    padding-inline: 1.5rem;
    padding-bottom: 1.5rem;
  }
}
