/* Studio Infinity CR â€” Cadamag Prototype v2
   Scope: Header + Hero + Marquee only â€” fidelity pass */

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

:root {
  --bg: #080B0F;
  --bg-deep: #080B0F;
  --surface: rgba(10, 15, 30, 0.72);
  --surface-strong: #171C26;
  --surface-glass: rgba(12, 18, 36, 0.62);

  --violet: #7B4DFF;
  --violet-bright: #9B74FF;
  --electric-purple: #7B4DFF;
  --blue: #6B7CFF;
  --teal: #34d399;
  --orange: #FF8A00;
  --orange-bright: #FFA940;
  --orange-deep: #E07700;

  --text: #ffffff;
  --text-soft: #E0E3ED;
  --text-muted: #B4BAC9;

  --border: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(123, 77, 255, 0.32);

  --nav-h: 70px;
  --marquee-h: 100px;
  --max: 1360px;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1); /* aliased by motion.css → --ease-premium */
}

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  background: transparent; /* atmosphere from brand.css */
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: var(--electric-purple);
  color: #fff;
  padding: 12px 16px;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ========== HEADER ========== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(123, 77, 255, 0.14);
  background: rgba(8, 11, 15, 0.55);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28);
  transition:
    background var(--motion-fast, 300ms) var(--ease),
    border-color var(--motion-fast, 300ms) var(--ease);
}
.site-header.is-scrolled {
  background: rgba(8, 11, 15, 0.88);
  border-bottom-color: rgba(123, 77, 255, 0.22);
}

.header-inner {
  width: min(100% - 3rem, var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
}
.brand-mark,
.brand-symbol {
  width: 28px;
  height: 28px;
  border-radius: 0;
  object-fit: contain;
  box-shadow: none;
}
.brand-logo {
  display: block;
  height: 34px;
  width: auto;
  max-width: min(200px, 48vw);
  object-fit: contain;
}
.brand-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-center {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
}
.nav-center a {
  padding: 10px 16px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-soft);
  border-radius: 10px;
  transition:
    color var(--motion-micro, 280ms) var(--ease),
    background var(--motion-micro, 280ms) var(--ease);
}
.nav-center a:hover,
.nav-center a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-soft);
}
.lang-pill:hover,
.lang-pill:focus-visible {
  border-color: var(--border-glow);
  color: var(--text);
}
.lang-pill .language-flag {
  display: block;
  width: 20px;
  height: 12px;
  flex-shrink: 0;
  border-radius: 2px;
  overflow: hidden;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 1.25rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  /* transform/timing owned by motion.css Level 1 */
  transition:
    transform var(--motion-micro, 280ms) var(--ease),
    box-shadow var(--motion-micro, 280ms) var(--ease),
    background var(--motion-micro, 280ms) var(--ease),
    border-color var(--motion-micro, 280ms) var(--ease);
}
.btn:focus-visible {
  outline: 2px solid var(--violet-bright);
  outline-offset: 3px;
}
.btn-primary {
  background: linear-gradient(135deg, #8F5FFF 0%, var(--electric-purple) 52%, #5A2FE0 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(123, 77, 255, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:hover {
  box-shadow: 0 10px 28px rgba(123, 77, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-header {
  min-height: 46px;
  padding: 0 1.35rem;
  font-size: 0.9rem;
  box-shadow: 0 10px 34px rgba(123, 77, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-secondary {
  min-height: 52px;
  padding: 0 1.3rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  border-color: rgba(123, 77, 255, 0.45);
  background: rgba(123, 77, 255, 0.08);
}
.btn-secondary .play {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(123, 77, 255, 0.22);
  border: 1px solid rgba(123, 77, 255, 0.45);
  font-size: 0.65rem;
}
.btn-hero-primary {
  min-height: 56px;
  padding: 0 1.65rem;
  border-radius: 14px;
  font-size: 1.02rem;
}
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
  color: var(--text);
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: calc(100svh - var(--marquee-h));
  max-height: none;
  padding: calc(var(--nav-h) + 1.15rem) 0 0.5rem;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 65% 60% at 78% 48%, rgba(123, 77, 255, 0.3), transparent 58%),
    radial-gradient(ellipse 38% 42% at 94% 14%, rgba(255, 138, 0, 0.12), transparent 55%),
    radial-gradient(ellipse 36% 40% at 62% 88%, rgba(123, 77, 255, 0.12), transparent 60%),
    radial-gradient(ellipse 30% 35% at 8% 65%, rgba(90, 47, 224, 0.12), transparent 60%),
    linear-gradient(165deg, #0A0E16 0%, #080B0F 42%, #080B0F 72%, #080B0F 100%);
}
.hero-atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -26deg,
      transparent 0 52px,
      rgba(255, 255, 255, 0.01) 52px 53px
    );
  mask-image: linear-gradient(90deg, transparent, #000 28%, #000 72%, transparent);
  opacity: 0.35;
}
.hero-atmosphere::after {
  content: "";
  position: absolute;
  width: min(680px, 52vw);
  height: min(680px, 52vw);
  right: -2%;
  top: 8%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(123, 77, 255, 0.24), transparent 62%),
    radial-gradient(circle at 72% 68%, rgba(255, 138, 0, 0.1), transparent 55%);
  filter: blur(52px);
  opacity: 0.7;
}

.hero-haze {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(90, 47, 224, 0.12) 40%, rgba(8, 11, 15, 0.55));
}

.hero-shell {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, 1760px);
  max-width: 1760px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 58%);
  grid-template-rows: auto auto;
  gap: 0.5rem 1.5rem;
  align-items: start;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  max-height: none;
}

/* LEFT */
.hero-copy {
  max-width: 40rem;
  margin-top: 3.5rem;
  padding-top: 0.35rem;
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  align-self: start;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b8b4d4;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 138, 0, 0.7), transparent);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.55rem, 3.7vw, 3.55rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
  margin-bottom: 1.35rem;
  min-height: 0;
}

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

/* AI / holographic text reveal */
.hero-holo {
  position: relative;
  display: block;
}

.holo-sizer {
  visibility: hidden;
  display: block;
  pointer-events: none;
}

/* Reduced-motion / static fallback — sizer visible, live hidden */
.holo-static .holo-sizer {
  visibility: visible;
}
.holo-static .holo-live {
  visibility: hidden;
  pointer-events: none;
}

.holo-live {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  will-change: opacity, filter, transform;
}

/* Soft dim only — never full disappear */
.holo-live.is-hiding {
  opacity: 0.4;
  filter: blur(2.5px);
  transform: translateY(5px);
  transition:
    opacity var(--motion-slow, 950ms) var(--ease-premium, var(--ease)),
    filter var(--motion-slow, 950ms) var(--ease-premium, var(--ease)),
    transform var(--motion-slow, 950ms) var(--ease-premium, var(--ease));
}

.holo-headline {
  display: block;
  color: #f4f5f8;
  text-shadow: none;
  transition: text-shadow var(--motion-fast, 300ms) var(--ease-premium, var(--ease));
}

.holo-headline.is-decoding {
  text-shadow: 0 0 18px rgba(123, 77, 255, 0.18);
}

.holo-follow,
.holo-context {
  display: block;
  margin-top: 0.45rem;
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.25vw, 1.2rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: #d8c7ff;
  opacity: 1;
  transform: none;
}

.holo-context {
  margin-top: 0.25rem;
  font-weight: 500;
  color: #c5c9d8;
  font-size: clamp(0.98rem, 1.1vw, 1.08rem);
}

.holo-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0.35em;
  height: 1px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(123, 77, 255, 0.55),
    rgba(255, 138, 0, 0.35),
    transparent
  );
  box-shadow: 0 0 8px rgba(123, 77, 255, 0.18);
}

/* scan keyframes live in motion.css */
.holo-scan.is-active {
  animation: holo-scan-pass 2s var(--ease-premium, var(--ease)) forwards;
}

.holo-live.is-entering {
  opacity: 0.42;
  filter: blur(2px);
  transform: translateY(4px);
  transition:
    opacity var(--motion-fast, 300ms) var(--ease-premium, var(--ease)),
    filter var(--motion-fast, 300ms) var(--ease-premium, var(--ease)),
    transform var(--motion-fast, 300ms) var(--ease-premium, var(--ease));
}

/* Section / page titles — same holo loop as hero */
.has-holo,
h2.has-holo,
h1.has-holo,
.page-hero-title.has-holo,
.sp-section-title.has-holo,
.scene-know-title.has-holo,
.routes-title.has-holo,
.eco-title.has-holo,
.results-title.has-holo {
  position: relative;
}

.has-holo .title-holo {
  display: block;
  width: 100%;
}

.has-holo .holo-headline {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  line-height: inherit;
}

.hero-sub {
  font-size: clamp(1.02rem, 1.15vw, 1.1rem);
  color: var(--text-soft);
  line-height: 1.65;
  max-width: 32rem;
  margin-bottom: 1.6rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 2rem;
}

.hero-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 20px;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  max-width: 38rem;
  z-index: 2;
}
.benefit {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
}
.benefit-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: #b8a9e8;
  opacity: 0.9;
  filter: none;
}
.benefit-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.benefit strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #e8eaf2;
}
.benefit span {
  display: block;
  font-size: 0.82rem;
  color: #a8aec4;
  line-height: 1.35;
  margin-top: 4px;
}


/* ========== RIGHT VISUAL STAGE — single composed scene ========== */
.hero-visual-stage,
.hero-stage {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: 700px;
  max-height: 700px;
  min-height: 700px;
  margin-top: 3.5rem;
  align-self: start;
  overflow: hidden;
  isolation: isolate;
}

.stage-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 28% 52%, rgba(123, 77, 255, 0.26), transparent 44%),
    radial-gradient(circle at 72% 38%, rgba(123, 77, 255, 0.16), transparent 48%),
    radial-gradient(circle at 55% 78%, rgba(123, 77, 255, 0.1), transparent 50%);
  filter: blur(6px);
}

.stage-grid {
  position: absolute;
  inset: 12% -5% 10% 24%;
  z-index: 0;
  opacity: 0.05;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(123, 77, 255, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 77, 255, 0.16) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 60% 50%, #000 15%, transparent 70%);
  transform: rotateX(58deg) rotateZ(-8deg);
  transform-origin: center;
}

/*
  Layers inside .hero-visual-stage:
  0 glow
  2 dashboard-wrapper
  3 woman-wrapper (+ listen)
*/

/* Widescreen dashboard — inside stage, behind woman */
.dashboard-wrapper,
.dash {
  position: absolute;
  right: 1%;
  top: 10%;
  left: auto;
  bottom: auto;
  width: min(560px, 58%);
  height: auto;
  aspect-ratio: 16 / 10;
  max-height: none;
  min-height: 0;
  z-index: 2;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(155deg, rgba(23, 28, 38, 0.94), rgba(8, 11, 15, 0.97));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(123, 77, 255, 0.12),
    0 0 64px rgba(123, 77, 255, 0.16);
  display: grid;
  grid-template-columns: minmax(0, 96px) minmax(0, 1fr);
  overflow: visible;
  transform: none;
}

/* Woman + audio button share one stage-anchored wrapper */
.woman-wrapper,
.hero-person {
  position: absolute;
  left: 8%;
  bottom: 0;
  top: auto;
  height: 650px;
  width: auto;
  max-width: 48%;
  aspect-ratio: 768 / 1168;
  z-index: 3;
  background: transparent !important;
  pointer-events: none;
  display: block;
  overflow: visible;
}

.woman-wrapper::before,
.hero-person::before {
  content: "";
  position: absolute;
  inset: 10% -16% 0 -18%;
  z-index: -1;
  background: radial-gradient(
    circle at 45% 42%,
    rgba(123, 77, 255, 0.22),
    transparent 60%
  );
  filter: blur(20px);
  pointer-events: none;
}

.woman-wrapper::after,
.hero-person::after {
  content: "";
  position: absolute;
  left: -10%;
  bottom: 0;
  width: 68%;
  height: 40%;
  z-index: -1;
  background: radial-gradient(
    circle,
    rgba(255, 138, 0, 0.1),
    transparent 68%
  );
  filter: blur(24px);
  pointer-events: none;
}

.hero-person-video {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center bottom;
  background: transparent !important;
  border: 0;
  outline: none;
  box-shadow: none;
  border-radius: 0;
  pointer-events: none;
}

.hero-person-img {
  display: none !important;
}

/* Listen button — anchored to woman-wrapper, not viewport */
.woman-wrapper .welcome-audio-btn,
.welcome-audio-btn {
  position: absolute;
  left: 10%;
  bottom: 10%;
  z-index: 5;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(23, 28, 38, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #e8eaf2;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    background var(--motion-micro, 280ms) var(--ease),
    border-color var(--motion-micro, 280ms) var(--ease),
    transform var(--motion-micro, 280ms) var(--ease),
    box-shadow var(--motion-micro, 280ms) var(--ease);
}
.welcome-audio-btn:hover {
  background: rgba(123, 77, 255, 0.22);
  border-color: rgba(123, 77, 255, 0.4);
}
.welcome-audio-btn:focus-visible {
  outline: 2px solid #9B74FF;
  outline-offset: 3px;
}
.welcome-audio-btn.is-playing {
  border-color: rgba(255, 138, 0, 0.45);
  box-shadow: 0 0 18px rgba(123, 77, 255, 0.2);
}
.welcome-audio-icon {
  font-size: 0.92rem;
  line-height: 1;
}

.person-figure { display: none !important; }
.person-img,
.person-glow-purple,
.person-glow-orange,
.subject-slot,
.subject-glow,
.subject-orb,
.person-aura,
.person-silhouette,
.person-wash,
.person-edge,
.person-tag {
  display: none !important;
}

.dash-main,
.dash-side {
  overflow: hidden;
}

.dash-side {
  border-radius: 18px 0 0 18px;
}

.dash-main {
  border-radius: 0 18px 18px 0;
}

/* Alice anchored to dashboard (not viewport) */
.alice-float {
  position: absolute;
  top: -12px;
  right: -8px;
  width: 44%;
  max-width: 200px;
  z-index: 4;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(23, 28, 38, 0.92);
  backdrop-filter: blur(16px);
  padding: 10px 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4), 0 0 28px rgba(123, 77, 255, 0.12);
  transform: none;
}

.dash-kpis {
  position: absolute;
  right: -6px;
  bottom: 10px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  pointer-events: none;
}

.kpi-chip {
  position: relative;
  right: auto;
  top: auto;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--teal);
  background: rgba(23, 28, 38, 0.92);
  border: 1px solid rgba(52, 211, 153, 0.3);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  transform: none;
}
.kpi-chip.c1 { transform: translateX(0); }
.kpi-chip.c2 { transform: translateX(-12px); }
.kpi-chip.c3 { transform: translateX(-4px); }

.person-tag {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.demo-note {
  display: none !important;
}

.dash-side {
  padding: 16px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(8, 11, 15, 0.72);
}
.dash-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 0 4px;
}
.dash-logo img {
  width: 22px;
  height: 22px;
  border-radius: 0;
  object-fit: contain;
}
.dash-logo strong {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.dash-nav { display: grid; gap: 2px; }
.dash-nav span {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: left;
}
.dash-nav .is-active {
  background: rgba(123, 77, 255, 0.2);
  color: #f3e8ff;
  box-shadow: inset 0 0 0 1px rgba(123, 77, 255, 0.32);
}
.dash-nav i { width: 14px; opacity: 0.85; font-style: normal; font-size: 0.75rem; }
.dash-main {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.dash-top { display: flex; justify-content: space-between; align-items: center; }
.dash-top h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.dash-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}
.dash-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px var(--teal);
}
.dash-panels {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 12px;
  flex: 1;
  min-height: 0;
}
.panel {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  padding: 12px;
  min-width: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.panel-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.progress-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.progress-pct {
  font-family: var(--font-display);
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}
.progress-delta { font-size: 0.88rem; font-weight: 700; color: var(--teal); }
.chart {
  height: 88px;
  margin-top: 6px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(123, 77, 255, 0.1), transparent),
    repeating-linear-gradient(0deg, transparent 0 16px, rgba(255, 255, 255, 0.04) 16px 17px);
  position: relative;
  overflow: hidden;
}
.chart svg {
  position: absolute;
  inset: 10px 6px 6px;
  width: calc(100% - 12px);
  height: calc(100% - 16px);
}
.chart path.fill { fill: url(#chartFill); opacity: 0.55; }
.chart path.line {
  fill: none;
  stroke: url(#chartStroke);
  stroke-width: 3;
  stroke-linecap: round;
}
.alice-mini { display: flex; flex-direction: column; gap: 8px; }
.alice-row { display: flex; align-items: center; gap: 10px; }
.alice-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(123, 77, 255, 0.45);
}
.alice-row strong { display: block; font-size: 0.86rem; }
.alice-row em { display: block; font-style: normal; font-size: 0.68rem; color: var(--text-muted); }
.alice-prompt {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-soft);
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(123, 77, 255, 0.1);
  border: 1px solid rgba(123, 77, 255, 0.22);
}
.wave {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 40px;
  margin: 2px 0;
}
.wave span {
  flex: 1;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--blue), var(--violet));
  transform-origin: bottom;
  opacity: 0.9;
}
.wave span:nth-child(odd) { height: 38%; }
.wave span:nth-child(even) { height: 85%; }
.wave span:nth-child(3n) { height: 58%; }
.alice-mic {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-size: 0.76rem;
  font-weight: 650;
  color: var(--text-soft);
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(123, 77, 255, 0.14);
  border: 1px solid rgba(123, 77, 255, 0.32);
}
.alice-mic svg { width: 15px; height: 15px; fill: #93c5fd; }

/* ========== MARQUEE ========== */
.trust-strip {
  position: relative;
  z-index: 2;
  height: var(--marquee-h);
  min-height: 90px;
  max-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  background: #080B0F;
  border-top: 1px solid rgba(123, 77, 255, 0.28);
  border-bottom: 1px solid rgba(123, 77, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(123, 77, 255, 0.08),
    0 -20px 60px rgba(90, 47, 224, 0.12);
  overflow: hidden;
}
.trust-label {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a5adca;
  padding-inline: 1rem;
}
.marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.marquee-group {
  display: flex;
  align-items: center;
  gap: 2.85rem;
  padding-inline: 1.5rem;
  flex-shrink: 0;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e4e7f2;
  text-shadow: 0 0 20px rgba(123, 77, 255, 0.15);
}
.marquee-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: #B8B4D4;
  opacity: 0.82;
}
.marquee-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.marquee-label {
  display: inline-block;
}
.marquee-item .sep {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(123, 77, 255, 0.85), rgba(255, 138, 0, 0.55));
  box-shadow: 0 0 10px rgba(123, 77, 255, 0.35);
  opacity: 0.9;
}

.prototype-badge {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 50;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 8px;
  pointer-events: none;
}

/* Cadamag authorship — absolute bottom, discreet */
.cadamag-credit {
  position: relative;
  z-index: 2;
  padding: 1.1rem 1.25rem 1.35rem;
  text-align: center;
  background: #03050c;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.cadamag-credit-line {
  margin: 0;
  max-width: 52rem;
  margin-inline: auto;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.55;
  color: #6b7289;
}

.cadamag-credit-sep {
  margin-inline: 0.45em;
  color: #4b5163;
}

.cadamag-credit-link {
  color: #7c849c;
  text-decoration: none;
  transition: color var(--motion-micro, 280ms) var(--ease, ease);
}

.cadamag-credit-link:hover,
.cadamag-credit-link:focus-visible {
  color: #a5adca;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cadamag-credit-link:focus-visible {
  outline: 1px solid rgba(123, 77, 255, 0.45);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (max-width: 640px) {
  .cadamag-credit {
    padding: 1rem 1.15rem 1.25rem;
  }

  .cadamag-credit-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.7rem;
  }

  .cadamag-credit-sep {
    display: none;
  }
}

