/* SPARC About — Futuristic Kinetic Clarity */

:root {
  --bg: #f0f4f8;
  --bg-deep: #e8eef4;
  --surface: #ffffff;
  --foreground: #0f172a;
  --muted: #475569;
  --muted-light: #64748b;
  --accent: #06b6d4;
  --accent-bright: #36d5f0;
  --accent-soft: #ecfeff;
  --accent-glow: rgba(6, 182, 212, 0.45);
  --border: #e2e8f0;
  --sidebar: #0f172a;
  --danger-soft: #fef2f2;
  --danger-border: #fecaca;
  --danger-text: #b91c1c;
  --radius: 10px;
  --radius-lg: 16px;
  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "Manrope", sans-serif;
  --header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Iconify API icons (icons.js) */
.icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  object-fit: contain;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(100% - 2rem, 1180px);
  margin-inline: auto;
}

/* ─── Ambient layers ─── */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.grid-bg {
  position: absolute;
  inset: -50%;
  background-image:
    linear-gradient(rgba(6, 182, 212, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: gridDrift 40s linear infinite;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 75%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: orbFloat 12s ease-in-out infinite;
}

.orb-1 {
  width: 420px;
  height: 420px;
  background: rgba(54, 213, 240, 0.25);
  top: -120px;
  right: -80px;
}

.orb-2 {
  width: 320px;
  height: 320px;
  background: rgba(6, 182, 212, 0.15);
  bottom: 20%;
  left: -100px;
  animation-delay: -4s;
}

.orb-3 {
  width: 200px;
  height: 200px;
  background: rgba(15, 23, 42, 0.06);
  top: 40%;
  right: 15%;
  animation-delay: -8s;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.scanline {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9997;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(6, 182, 212, 0.015) 2px,
    rgba(6, 182, 212, 0.015) 4px
  );
  opacity: 0.6;
}

/* ─── Header ─── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

.site-header.scrolled,
.site-header {
  background: rgba(240, 244, 248, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: rgba(6, 182, 212, 0.12);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-header img { height: 26px; }

.site-nav {
  display: flex;
  gap: 0.25rem;
}

.site-nav a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--foreground);
  background: rgba(6, 182, 212, 0.1);
}

.site-nav a.active {
  color: #0e7490;
  box-shadow: inset 0 0 0 1px rgba(6, 182, 212, 0.25);
}

/* ─── Main offset for fixed header ─── */
main {
  position: relative;
  z-index: 1;
  padding-top: var(--header-h);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.2) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.5s;
}

.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--sidebar) 0%, #1e293b 100%);
  color: #f8fafc;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(6, 182, 212, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.3), 0 0 24px var(--accent-glow);
  color: #f8fafc;
}

.btn-glow {
  background: linear-gradient(135deg, var(--accent) 0%, #0891b2 100%);
  color: #fff;
  box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.6);
  color: var(--foreground);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: #0e7490;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.15);
}

/* ─── Hero ─── */
.hero-section {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 3rem 0 4rem;
  position: relative;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr 1.15fr;
    gap: 2rem;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(6, 182, 212, 0.3);
  font-size: 0.7rem;
  font-weight: 700;
  color: #0e7490;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
  animation: fadeUp 0.7s ease both;
}

.hero-badge .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulseDot 2s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
  animation: fadeUp 0.7s 0.1s ease both;
}

.hero h1 .gradient-text {
  color: #0e7490;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 1rem;
  animation: fadeUp 0.7s 0.2s ease both;
}

.hero-meta {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 2rem;
  animation: fadeUp 0.7s 0.25s ease both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: fadeUp 0.7s 0.3s ease both;
}

/* Hero visual — AI workspace preview (matches POC ChatMessage + AgentResponseRenderer) */
.hero-visual {
  width: 100%;
  max-width: 580px;
  margin-inline: auto;
  animation: fadeUp 0.9s 0.2s ease both;
}

.ai-workspace {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: var(--radius-lg);
  box-shadow:
    0 28px 56px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.85) inset,
    0 0 80px rgba(6, 182, 212, 0.1);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.ai-workspace__chrome {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
}

.ai-workspace__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ai-workspace__dot--live {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.ai-workspace__title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--foreground);
  letter-spacing: -0.01em;
}

.ai-workspace__agent-pill {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: #0e7490;
}

.ai-workspace__thread {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: min(520px, 70vh);
  overflow: hidden;
}

.ai-msg {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.ai-msg--user {
  justify-content: flex-end;
}

.ai-msg__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-msg__avatar--user {
  background: #f1f5f9;
  border: 1px solid var(--border);
}

.ai-msg__avatar--ai {
  background: var(--accent-soft);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.ai-msg__bubble--user {
  max-width: 85%;
  padding: 0.55rem 0.85rem;
  border-radius: 16px;
  border-bottom-right-radius: 4px;
  background: var(--sidebar);
  color: #f8fafc;
}

.ai-msg__bubble--user p {
  font-size: 0.75rem;
  line-height: 1.4;
}

.ai-msg__content {
  flex: 1;
  min-width: 0;
}

.ai-msg__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.ai-msg__agent {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--foreground);
}

.ai-msg__time {
  font-family: ui-monospace, monospace;
  font-size: 0.625rem;
  color: var(--muted-light);
}

.ai-msg__bubble--user .ai-msg__time {
  display: block;
  text-align: right;
  margin-top: 0.25rem;
  color: rgba(248, 250, 252, 0.5);
}

.ai-response {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ai-latency {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  align-self: flex-start;
  font-family: ui-monospace, monospace;
  font-size: 0.625rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #c2410c;
}

.ai-reasoning-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.6875rem;
  color: var(--muted-light);
  margin: 0;
}

.ai-summary {
  font-size: 0.6875rem;
  line-height: 1.5;
  color: #334155;
}

.ai-summary p {
  margin-bottom: 0.45rem;
}

.ai-summary strong {
  color: var(--foreground);
  font-weight: 600;
}

.ai-summary__label {
  font-weight: 600;
  color: var(--foreground);
  margin-top: 0.25rem;
}

.ai-highlights {
  list-style: disc;
  margin-left: 1.1rem;
  color: var(--muted);
}

.ai-highlights li {
  margin-bottom: 0.15rem;
}

.ai-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}

.ai-metric-card {
  padding: 0.5rem 0.55rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.ai-metric-card__label {
  display: block;
  font-size: 0.5625rem;
  color: var(--muted-light);
  margin-bottom: 0.15rem;
}

.ai-metric-card__value {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--foreground);
  line-height: 1.1;
}

.ai-metric-card__delta {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.5625rem;
  font-weight: 600;
  margin-top: 0.2rem;
}

.ai-metric-card__delta--up { color: #059669; }
.ai-metric-card__delta--down { color: #dc2626; }

.ai-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--border);
}

.ai-chart-card {
  margin: 0;
  padding: 0.45rem 0.5rem 0.35rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.ai-chart-card figcaption {
  font-family: var(--font-heading);
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.ai-chart-svg {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 520px) {
  .ai-metrics { grid-template-columns: 1fr; }
  .ai-charts { grid-template-columns: 1fr; }
  .hero-visual { max-width: 100%; }
}

.chat-reveal {
  opacity: 0;
  transform: translateY(8px);
  animation: chatReveal 0.5s ease forwards;
  animation-delay: var(--reveal-delay, 0s);
}

@keyframes chatReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .chat-reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* Stats bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(6, 182, 212, 0.15);
  animation: fadeUp 0.7s 0.4s ease both;
}

@media (min-width: 640px) {
  .stats-bar { grid-template-columns: repeat(4, 1fr); }
}

.stat-item {
  text-align: center;
}

.stat-icon {
  display: block;
  margin: 0 auto 0.35rem;
  opacity: 0.9;
}

.stat-val {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #0e7490;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.35rem;
  font-weight: 500;
}

/* ─── Section shared ─── */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, transparent 0%, rgba(6, 182, 212, 0.03) 50%, transparent 100%);
}

.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #0e7490;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label::before {
  content: "";
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--muted);
  max-width: 36rem;
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

/* ─── Agent features ─── */
.agent-features {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .agent-features { grid-template-columns: repeat(3, 1fr); }
}

.agent-feature h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.agent-feature p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

.agent-feature__icon {
  display: block;
  margin-bottom: 1rem;
}

/* ─── Trust grid ─── */
.trust-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

.trust-card {
  padding: 1.25rem 1.35rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: var(--radius-lg);
  transition: transform 0.25s, box-shadow 0.25s;
}

.trust-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(6, 182, 212, 0.1);
}

.trust-card__icon {
  display: block;
  margin-bottom: 0.75rem;
  padding: 8px;
  width: 44px;
  height: 44px;
  box-sizing: border-box;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid rgba(6, 182, 212, 0.25);
  object-fit: contain;
}

.trust-card h4 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.trust-card p {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.45;
}

.pain-grid--ai {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .pain-grid--ai { grid-template-columns: repeat(2, 1fr); }
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Why SPARC ─── */
.why-sparc {
  position: relative;
  overflow: hidden;
}

.why-sparc::before {
  content: "";
  position: absolute;
  inset: 10% -20% auto -20%;
  height: 420px;
  background: radial-gradient(ellipse at 50% 0%, rgba(6, 182, 212, 0.08), transparent 65%);
  pointer-events: none;
}

.why-sparc__intro {
  position: relative;
  z-index: 1;
}

.why-canvas {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .why-canvas {
    grid-template-columns: 1fr 1.15fr;
    grid-template-rows: auto auto auto;
    gap: 1.75rem 2rem;
    align-items: start;
  }

  .why-fragment { grid-column: 1; grid-row: 1; }
  .why-pains { grid-column: 2; grid-row: 1; }
  .why-bridge { grid-column: 1 / -1; grid-row: 2; }
  .why-resolve { grid-column: 1 / -1; grid-row: 3; }
}

.why-fragment__tag,
.why-pains__tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0e7490;
  margin-bottom: 0.75rem;
}

.why-fragment__stage {
  position: relative;
  min-height: 220px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(241, 245, 249, 0.8));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  overflow: hidden;
}

.why-fragment__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 12px,
    rgba(148, 163, 184, 0.04) 12px,
    rgba(148, 163, 184, 0.04) 24px
  );
  pointer-events: none;
}

.why-fragment__wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.wire--broken {
  fill: none;
  stroke: #cbd5e1;
  stroke-width: 2;
  stroke-dasharray: 6 8;
  stroke-linecap: round;
}

.silo-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.9rem;
  background: var(--surface);
  border: 1px dashed #94a3b8;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  transition: transform 0.3s ease;
}

.silo-chip:hover {
  transform: scale(1.03);
  border-color: #64748b;
}

.silo-chip--a { top: 14%; left: 6%; transform: rotate(-3deg); }
.silo-chip--b { top: 38%; right: 8%; transform: rotate(2deg); }
.silo-chip--c { bottom: 12%; left: 12%; transform: rotate(-1.5deg); }

.pain-grid {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 540px) {
  .pain-grid { grid-template-columns: 1fr 1fr; }
}

.pain-card {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  background: #fff5f5;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pain-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(185, 28, 28, 0.08);
}

.pain-card__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 8px;
  box-sizing: border-box;
  border-radius: 10px;
  background: rgba(254, 226, 226, 0.8);
  border: 1px solid #fecaca;
  object-fit: contain;
}

.pain-card strong {
  display: block;
  font-size: 0.875rem;
  color: #991b1b;
  margin-bottom: 0.2rem;
}

.pain-card p {
  font-size: 0.8125rem;
  color: #7f1d1d;
  line-height: 1.4;
  margin: 0;
}

.why-bridge {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
}

.why-bridge__beam {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, #06b6d4, #36d5f0, #06b6d4, transparent);
  background-size: 200% 100%;
  animation: bridgeFlow 3s linear infinite;
  border-radius: 2px;
}

.why-bridge__core {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.1rem;
  background: var(--sidebar);
  color: #e2e8f0;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  box-shadow: 0 0 24px rgba(6, 182, 212, 0.35);
  border: 1px solid rgba(54, 213, 240, 0.35);
}

.why-bridge__core img {
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.why-resolve {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .why-resolve { grid-template-columns: 1fr 1fr; }
}

.resolve-card {
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resolve-card:hover {
  transform: translateY(-3px);
}

.resolve-card--answer {
  background: linear-gradient(160deg, #ecfeff 0%, #ffffff 55%);
  border: 1px solid #67e8f9;
  box-shadow: 0 12px 40px rgba(6, 182, 212, 0.1);
}

.resolve-card--answer::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(54, 213, 240, 0.25), transparent 70%);
  pointer-events: none;
}

.resolve-card--outcomes {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.05);
}

.resolve-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.resolve-card__badge {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--foreground);
}

.resolve-card__spark {
  color: #0e7490;
  font-size: 1.25rem;
  animation: aiPulse 2.5s ease-in-out infinite;
}

.resolve-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.resolve-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.45;
}

.resolve-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}

.resolve-check.icon {
  padding: 4px;
  box-sizing: border-box;
}

.outcome-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.outcome-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
}

@keyframes bridgeFlow {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* legacy aliases removed — kept glass-card for other sections if needed */
.glass-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(6, 182, 212, 0.12);
}

.glass-card.accent {
  background: linear-gradient(135deg, rgba(236, 254, 255, 0.9) 0%, rgba(255, 255, 255, 0.85) 100%);
  border-color: #a5f3fc;
}

.glass-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.glass-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.glass-card li {
  font-size: 0.9rem;
  color: var(--muted);
  padding-left: 1.1rem;
  position: relative;
}

.glass-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.dual-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .dual-grid { grid-template-columns: 1fr 1fr; }
}

/* ─── Pipeline flow ─── */
.pipeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 900px) {
  .pipeline {
    flex-direction: row;
    align-items: stretch;
  }

  .pipe-arrow {
    align-self: center;
  }
}

.pipe-step {
  flex: 1;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  text-align: center;
  position: relative;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.pipe-step:hover {
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.1);
}

.pipe-step.accent {
  background: linear-gradient(180deg, var(--accent-soft) 0%, rgba(255,255,255,0.9) 100%);
  border-color: #a5f3fc;
}

.pipe-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #0891b2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.pipe-icon .icon {
  display: block;
}

.pipe-step h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.pipe-step p {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.45;
}

.pipe-arrow,
img.pipe-arrow {
  flex-shrink: 0;
  align-self: center;
  display: block;
  opacity: 0.85;
}

@media (max-width: 899px) {
  .pipe-arrow,
  img.pipe-arrow {
    transform: rotate(90deg);
    padding: 0.25rem 0;
  }
}

/* ─── Architecture SVG diagram ─── */
.diagram-panel {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(12px);
  overflow: hidden;
  position: relative;
}

.diagram-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.arch-svg {
  width: 100%;
  height: auto;
  display: block;
}

.arch-node rect {
  transition: filter 0.3s;
}

.arch-node:hover rect {
  filter: drop-shadow(0 0 12px var(--accent-glow));
}

.flow-line {
  stroke-dasharray: 8 6;
  stroke-dashoffset: 0;
  transition: stroke 0.3s;
}

.flow-line.flow-active {
  animation: dashFlow 1.2s linear infinite;
}

/* ─── AI query sequence (HTML lifeline flow) ─── */
.query-sequence {
  margin-top: 2.5rem;
}

.query-sequence__intro {
  margin-bottom: 1.5rem;
}

.query-sequence__title {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.query-sequence__desc {
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 40rem;
}

.query-sequence__board {
  background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(236,254,255,0.4) 100%);
  border: 1px solid rgba(6, 182, 212, 0.28);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem 1rem;
  box-shadow: 0 16px 40px rgba(6, 182, 212, 0.08);
  overflow: hidden;
}

.query-actors {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
}

.query-actor {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.35rem;
  border-radius: var(--radius);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  border: 1px solid var(--border);
  background: #ffffff;
}

.query-actor__icon,
.query-actor__icon.icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 7px;
  box-sizing: border-box;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid var(--border);
  object-fit: contain;
}

.query-actor--ui {
  background: var(--accent-soft);
  border-color: rgba(6, 182, 212, 0.35);
  color: #0e7490;
}

.query-actor--ui .query-actor__icon {
  background: #ffffff;
  border-color: rgba(6, 182, 212, 0.25);
}

.query-actor--ai {
  background: linear-gradient(135deg, var(--accent-soft) 0%, #ffffff 100%);
  border-color: rgba(6, 182, 212, 0.45);
  color: #0e7490;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.12);
}

.query-actor--core {
  background: var(--sidebar);
  border-color: #36d5f0;
  color: #e2e8f0;
}

.query-actor--core .query-actor__icon {
  background: rgba(54, 213, 240, 0.12);
  border-color: rgba(54, 213, 240, 0.35);
}

.query-sequence__canvas {
  position: relative;
  padding: 0.5rem 0 0.25rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(6, 182, 212, 0.08), transparent 70%);
  border-radius: var(--radius);
}

.query-lifelines {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  pointer-events: none;
  z-index: 0;
}

.query-lifelines span {
  justify-self: center;
  width: 2px;
  height: 100%;
  background: repeating-linear-gradient(
    180deg,
    #cbd5e1 0,
    #cbd5e1 6px,
    transparent 6px,
    transparent 12px
  );
  opacity: 0.85;
}

.query-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  position: relative;
  z-index: 1;
}

.query-step {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  min-height: 52px;
  position: relative;
}

.query-step__connector {
  grid-column: var(--from) / calc(var(--to) + 1);
  align-self: center;
  height: 10px;
  margin: 0 8%;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
}

.query-step__connector::before,
.query-step__connector::after {
  content: none;
  display: none;
}

.query-step--forward .query-step__connector {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0%25' stop-color='%2306b6d4' stop-opacity='0.25'/%3E%3Cstop offset='100%25' stop-color='%2306b6d4'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='0' y='3.5' width='91' height='3' rx='1.5' fill='url(%23g)'/%3E%3Cpolygon points='91,0 100,5 91,10' fill='%2306b6d4'/%3E%3C/svg%3E");
  animation: seqPulseForward 2.4s ease-in-out infinite;
}

.query-step--return .query-step__connector {
  grid-column: calc(var(--to)) / calc(var(--from) + 1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='1' y1='0' x2='0' y2='0'%3E%3Cstop offset='0%25' stop-color='%2364748b' stop-opacity='0.35'/%3E%3Cstop offset='100%25' stop-color='%2364748b'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='9' y='3.5' width='91' height='3' rx='1.5' fill='url(%23g)'/%3E%3Cpolygon points='9,0 0,5 9,10' fill='%2364748b'/%3E%3C/svg%3E");
  animation: seqPulseReturn 2.4s ease-in-out infinite;
}

.query-step:nth-child(1) .query-step__connector { animation-delay: 0s; }
.query-step:nth-child(2) .query-step__connector { animation-delay: 0.2s; }
.query-step:nth-child(3) .query-step__connector { animation-delay: 0.4s; }
.query-step:nth-child(4) .query-step__connector { animation-delay: 0.6s; }
.query-step:nth-child(5) .query-step__connector { animation-delay: 0.8s; }
.query-step:nth-child(6) .query-step__connector { animation-delay: 1s; }

@keyframes seqPulseForward {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; box-shadow: 0 0 16px rgba(6, 182, 212, 0.5); }
}

@keyframes seqPulseReturn {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.95; }
}

.query-step__card {
  position: absolute;
  left: calc((var(--from) + var(--to) - 1) / 8 * 100%);
  top: 50%;
  translate: -50% -50%;
  z-index: 2;
  min-width: min(100%, 168px);
  max-width: 92%;
  padding: 0.5rem 0.75rem 0.55rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  text-align: center;
  transition: translate 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.query-step__num {
  position: absolute;
  top: -0.45rem;
  left: 50%;
  translate: -50% 0;
  width: 1.125rem;
  height: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5625rem;
  font-weight: 800;
  color: #ffffff;
  background: #06b6d4;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #ffffff;
}

.query-step--return .query-step__num {
  background: #64748b;
}

.query-step--final .query-step__num {
  background: #10b981;
}

.query-sequence__board.is-live .query-step__card {
  animation: seqCardIn 0.45s ease backwards;
}

.query-sequence__board.is-live .query-step:nth-child(1) .query-step__card { animation-delay: 0.05s; }
.query-sequence__board.is-live .query-step:nth-child(2) .query-step__card { animation-delay: 0.15s; }
.query-sequence__board.is-live .query-step:nth-child(3) .query-step__card { animation-delay: 0.25s; }
.query-sequence__board.is-live .query-step:nth-child(4) .query-step__card { animation-delay: 0.35s; }
.query-sequence__board.is-live .query-step:nth-child(5) .query-step__card { animation-delay: 0.45s; }
.query-sequence__board.is-live .query-step:nth-child(6) .query-step__card { animation-delay: 0.55s; }

@keyframes seqCardIn {
  from {
    opacity: 0;
    translate: -50% calc(-50% + 8px);
  }
  to {
    opacity: 1;
    translate: -50% -50%;
  }
}

.query-step:hover .query-step__card {
  translate: -50% calc(-50% - 2px);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.12);
}

.query-step--tool .query-step__card {
  border-color: rgba(6, 182, 212, 0.4);
  background: var(--accent-soft);
}

.query-step--final .query-step__card {
  border-color: rgba(16, 185, 129, 0.4);
  background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%);
}

.query-step__kind {
  display: inline-block;
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0e7490;
  margin-bottom: 0.2rem;
}

.query-step__kind--return {
  color: #64748b;
}

.query-step__text {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--foreground);
  line-height: 1.35;
  margin: 0;
}

.query-step__text code {
  font-family: ui-monospace, monospace;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #0e7490;
  background: rgba(6, 182, 212, 0.1);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.query-sequence__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(6, 182, 212, 0.15);
}

.query-footnote {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}

@media (max-width: 640px) {
  .query-actors {
    grid-template-columns: repeat(2, 1fr);
  }

  .query-lifelines {
    display: none;
  }

  .query-step {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 0.25rem 0;
  }

  .query-step__connector {
    display: none;
  }

  .query-step__card {
    position: static;
    translate: none;
    max-width: 100%;
    text-align: left;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.65rem;
    row-gap: 0.15rem;
    padding-top: 0.5rem;
  }

  .query-step__num {
    position: static;
    translate: none;
    grid-row: 1 / 3;
    align-self: center;
    box-shadow: none;
  }

  .query-step__kind {
    margin-bottom: 0;
    grid-column: 2;
  }

  .query-step__text {
    grid-column: 2;
  }

  .query-step--forward .query-step__card {
    border-left: 3px solid #06b6d4;
  }

  .query-step--return .query-step__card {
    border-left: 3px solid #64748b;
  }
}

@media (prefers-reduced-motion: reduce) {
  .query-step__connector {
    animation: none !important;
  }

  .query-sequence__board.is-live .query-step__card {
    animation: none !important;
  }
}

/* legacy sequence SVG removed */

/* ─── Modules bento ─── */
.modules-bento {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: auto auto;
}

.module-tile {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.module-tile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.module-tile:hover {
  transform: translateY(-6px);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 12px 40px rgba(6, 182, 212, 0.12);
}

.module-tile:hover::before { transform: scaleX(1); }

.module-tile .module-icon {
  display: block;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.module-tile h4 { font-size: 1rem; }
.module-tile p { font-size: 0.75rem; color: var(--muted); margin-top: 0.35rem; }

.module-tile:nth-child(1) { grid-column: span 2; }
.module-tile:nth-child(2) { grid-column: span 2; }
.module-tile:nth-child(3) { grid-column: span 2; }
.module-tile:nth-child(4) { grid-column: span 3; }
.module-tile:nth-child(5) { grid-column: span 3; }

@media (max-width: 768px) {
  .modules-bento { grid-template-columns: 1fr; }
  .module-tile { grid-column: span 1 !important; }
}

.modules-compact {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto;
}

.modules-compact .module-tile {
  padding: 1rem 1.1rem;
}

.modules-compact .module-tile:nth-child(n) {
  grid-column: span 1;
}

@media (min-width: 900px) {
  .modules-compact {
    grid-template-columns: repeat(5, 1fr);
  }
}

.modules-compact .module-tile h4 {
  font-size: 0.875rem;
}

.modules-compact .module-tile p {
  font-size: 0.7rem;
}

.modules-compact .module-icon {
  margin-bottom: 0.5rem;
}

/* ─── Tech orbit ─── */
.tech-orbit {
  display: grid;
  gap: 1.25rem;
}

.tech-cluster--ai {
  border-color: rgba(6, 182, 212, 0.45);
  background: linear-gradient(135deg, rgba(236, 254, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
  box-shadow: 0 8px 32px rgba(6, 182, 212, 0.1);
}

.tech-cluster__desc {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: -0.5rem 0 1rem;
  line-height: 1.45;
}

@media (min-width: 768px) {
  .tech-orbit {
    grid-template-columns: 1fr 1fr;
  }
  .tech-cluster--ai {
    grid-column: 1 / -1;
  }
}

.tech-cluster {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: box-shadow 0.3s;
}

.tech-cluster:hover {
  box-shadow: 0 0 40px rgba(6, 182, 212, 0.08);
}

.tech-cluster h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: #0c4a6e;
  transition: transform 0.2s, background 0.2s;
}

.pill:hover {
  transform: scale(1.05);
  background: rgba(6, 182, 212, 0.15);
}

/* ─── Team ─── */
.team-section-head {
  text-align: center;
  margin-bottom: 3rem;
}

.team-section-head .section-label {
  justify-content: center;
}

.team-section-head .section-label::before,
.team-section-head .section-label::after {
  content: "";
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent));
}

.team-section-head .section-label::after {
  background: linear-gradient(90deg, var(--accent), transparent);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.5rem;
}

@media (min-width: 640px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}

.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.photo-ring {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 1rem;
}

.photo-ring::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent), var(--accent-bright), transparent, var(--accent));
  animation: spinSlow 8s linear infinite;
  opacity: 0.7;
}

.photo-ring::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: var(--bg);
}

.team-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--surface);
  transition: transform 0.4s, box-shadow 0.4s;
}

.team-member:hover .team-photo {
  transform: scale(1.06);
  box-shadow: 0 8px 32px rgba(6, 182, 212, 0.25);
}

.team-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: 0.8125rem;
  color: var(--muted);
  max-width: 160px;
  line-height: 1.4;
}

.supervisor-banner {
  margin-top: 3.5rem;
  padding: 2rem;
  background: linear-gradient(135deg, var(--sidebar) 0%, #1e293b 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  text-align: center;
  color: #cbd5e1;
  position: relative;
  overflow: hidden;
}

.supervisor-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(54, 213, 240, 0.15), transparent 60%);
}

.supervisor-banner strong {
  color: #f8fafc;
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.supervisor-banner .supervisor-icon {
  position: relative;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  padding: 10px;
  box-sizing: border-box;
  border-radius: 12px;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(54, 213, 240, 0.35);
  object-fit: contain;
}

.supervisor-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-bright);
  display: block;
  margin-bottom: 0.25rem;
}

/* ─── Demo / video ─── */
.demo-panel {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.demo-panel::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.video-frame {
  aspect-ratio: 16 / 9;
  max-width: 800px;
  margin: 2rem auto 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid rgba(6, 182, 212, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.video-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(6, 182, 212, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}

.play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #0891b2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 3px;
  box-shadow: 0 0 40px var(--accent-glow);
  animation: aiPulse 2.5s ease-in-out infinite;
  position: relative;
  z-index: 1;
  cursor: default;
}

.play-btn .icon {
  display: block;
}

.video-frame p {
  color: #cbd5e1;
  font-size: 0.9375rem;
  position: relative;
  z-index: 1;
}

/* ─── Footer ─── */
.site-footer {
  border-top: 1px solid rgba(6, 182, 212, 0.12);
  padding: 2.5rem 0;
  margin-top: 2rem;
  background: rgba(255, 255, 255, 0.5);
}

.site-footer .inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.site-footer .brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-footer img { height: 22px; }

/* ─── Sticky mobile CTA ─── */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  padding: 0.75rem 1rem;
  background: rgba(240, 244, 248, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(6, 182, 212, 0.2);
  transform: translateY(0);
  transition: transform 0.3s;
}

.sticky-cta.hidden { transform: translateY(100%); }

.sticky-cta .btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 768px) {
  .sticky-cta { display: block; }
  body { padding-bottom: 72px; }
  .site-nav { display: none; }
}

/* ─── Keyframes ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

@keyframes aiPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.5); }
  50% { box-shadow: 0 0 0 16px rgba(6, 182, 212, 0); }
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(30px, -20px); }
  66% { transform: translate(-20px, 15px); }
}

@keyframes gridDrift {
  from { transform: translate(0, 0); }
  to { transform: translate(48px, 48px); }
}

@keyframes dashFlow {
  to { stroke-dashoffset: -14; }
}

@keyframes pulseWarn {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
