/* Clara — Design tokens & base */

:root {
  /* Background palette — 10 stops of the spine */
  --bg-void:       #0A0A0A;
  --bg-night:      #141414;
  --bg-primary:    #1C1C1C;
  --bg-warm-900:   #2A2622;
  --bg-warm-700:   #4A423C;
  --bg-warm-500:   #7A7570;
  --bg-warm-300:   #B5A89B;
  --bg-warm-200:   #D6CFC1;
  --bg-cream-100:  #ECE5D7;
  --bg-cream:      #F5F0E8;

  /* Accents */
  --accent:        #E8006F;
  --accent-hover:  #FF1A85;
  --accent-soft:   rgba(232,0,111,0.08);
  --accent-trail:  rgba(232,0,111,0.25);

  /* Text on dark */
  --text-dark-primary:   #F5F0E8;
  --text-dark-secondary: rgba(245,240,232,0.65);
  --text-dark-tertiary:  rgba(245,240,232,0.40);
  --text-dark-line:      rgba(245,240,232,0.10);
  --text-dark-line-strong: rgba(245,240,232,0.25);

  /* Text on light */
  --text-light-primary:   #1C1C1C;
  --text-light-secondary: rgba(28,28,28,0.70);
  --text-light-tertiary:  #7A7570;
  --text-light-line:      rgba(28,28,28,0.10);
  --text-light-line-strong: rgba(28,28,28,0.25);

  --decel: cubic-bezier(0.16, 1, 0.3, 1);

  --max-w: 1280px;
  --gutter: 24px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--text-dark-primary);
  background: var(--bg-void);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }

/* Background flow layer — fixed behind everything */
.bg-flow {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--bg-void);
  will-change: background-color;
  transition: background-color 0.2s linear;
}

.page-root {
  position: relative;
  z-index: 1;
}

/* Typography scale */
.t-display-xl { font-size: clamp(56px, 9vw, 96px); line-height: 1.0;  letter-spacing: -0.04em;  font-weight: 700; }
.t-display-lg { font-size: clamp(44px, 6.5vw, 72px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 700; }
.t-display-md { font-size: clamp(36px, 5vw, 56px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; }
.t-display-sm { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; letter-spacing: -0.025em; font-weight: 700; }
.t-heading-lg { font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 500; }
.t-heading-md { font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; font-weight: 500; }
.t-body-lg    { font-size: 18px; line-height: 1.6; font-weight: 400; }
.t-body       { font-size: 16px; line-height: 1.65; font-weight: 400; }
.t-body-sm    { font-size: 14px; line-height: 1.6; font-weight: 400; }
.t-caption    { font-size: 12px; line-height: 1.4; letter-spacing: 0.08em; font-weight: 500; text-transform: uppercase; }
.t-micro      { font-size: 11px; line-height: 1.3; letter-spacing: 0.12em; font-weight: 500; text-transform: uppercase; }

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

/* Section base */
section.act {
  position: relative;
  padding: 160px 0;
  z-index: 1;
}
@media (max-width: 768px) {
  section.act { padding: 80px 0; }
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (max-width: 768px) {
  .container { padding: 0 16px; }
}

/* Eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dark-secondary);
}
.eyebrow.on-light { color: var(--text-light-secondary); }
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(232,0,111,0.55);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 14px 28px;
  border-radius: 8px;
  transition: background-color 220ms var(--decel), color 220ms var(--decel), border-color 220ms var(--decel), transform 220ms var(--decel);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost-dark {
  background: transparent;
  color: var(--text-dark-primary);
  border: 1px solid var(--text-dark-line-strong);
  padding: 13px 25px;
}
.btn-ghost-dark:hover { border-color: var(--text-dark-primary); }
.btn-ghost-light {
  background: transparent;
  color: var(--text-light-primary);
  border: 1px solid var(--text-light-line-strong);
  padding: 13px 25px;
}
.btn-ghost-light:hover { border-color: var(--text-light-primary); }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245,240,232,0.06);
  color: var(--text-dark-secondary);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}
.badge.on-light {
  background: rgba(28,28,28,0.06);
  color: var(--text-light-secondary);
}
.badge.active-dot::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(232,0,111,0.55);
  animation: pulse-soft 2.4s ease-in-out infinite;
}

@keyframes pulse-soft {
  0%, 100% { transform: scale(1);     opacity: 1; }
  50%      { transform: scale(1.25);  opacity: .85; }
}

/* Cards */
.card-dark {
  background: rgba(245,240,232,0.03);
  border: 1px solid var(--text-dark-line);
  padding: 28px;
  border-radius: 12px;
}
.card-light {
  background: #FFFFFF;
  border: 1px solid var(--text-light-line);
  padding: 28px;
  border-radius: 12px;
}

/* Bridge text — divisor between acts */
.bridge {
  text-align: center;
  padding: 60px var(--gutter);
  font-style: italic;
}
.bridge .label {
  display: inline-block;
  max-width: 640px;
  opacity: 0.5;
}

/* ── Narrative bridges — full-stop typographic moments ── */
.narrative-bridge {
  padding: 100px var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-style: normal;
  width: 100%;
  box-sizing: border-box;
}

.nb-text {
  font-size: clamp(1.75rem, 3vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-align: center;
  max-width: min(100%, 860px);
  margin: 0;
  color: var(--text-dark-primary);
  /* starts invisible — revealed by IntersectionObserver via .nb-in */
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.nb-text-2 {
  transition-delay: 0.14s;
}

.narrative-bridge.nb-in .nb-text {
  opacity: 1;
  transform: translateY(0);
}

/* Accent variant — maximum weight, inverted panel */
.nb-accent {
  background: #0D0D0D;
  padding: 120px var(--gutter);
}

.nb-accent .nb-text {
  color: rgba(245, 240, 232, 0.55);
  font-size: clamp(1.5rem, 2.4vw, 2.4rem);
}

.nb-accent .nb-text-2 {
  font-size: clamp(2.2rem, 4.5vw, 4.6rem);
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1.0;
}

/* ── How-step: number is a secondary guide, title is the hero ── */
.how-step .step-title {
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.18;
  margin: 20px 0 12px;
}

/* Fade-up reveal — base + active */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--decel), transform 0.9s var(--decel);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
.reveal.d5 { transition-delay: 0.40s; }
.reveal.d6 { transition-delay: 0.48s; }
.reveal.d7 { transition-delay: 0.56s; }

/* Trace underline (rosa) */
.rose-underline {
  position: relative;
  display: inline-block;
  color: var(--accent);
}
.rose-underline::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s var(--decel);
}
.reveal.in .rose-underline::after { transform: scaleX(1); }

/* Top nav */
.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background-color 0.3s linear, color 0.3s linear, border-color 0.3s linear;
  border-bottom: 1px solid transparent;
}
.topnav.mode-dark {
  background: rgba(10,10,10,0.55);
  color: var(--text-dark-primary);
  border-bottom-color: var(--text-dark-line);
}
.topnav.mode-light {
  background: rgba(245,240,232,0.65);
  color: var(--text-light-primary);
  border-bottom-color: var(--text-light-line);
}
.topnav .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  font-size: 13px;
}
.topnav .brand .glyph {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: inline-flex; align-items: center; justify-content: center;
}
.topnav .brand .glyph::after {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.topnav .brand .clara-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  margin-left: 2px;
  box-shadow: 0 0 10px rgba(232,0,111,0.55);
  animation: pulse-soft 2.4s ease-in-out infinite;
}
.topnav nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
}
.topnav nav a {
  color: inherit;
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 200ms var(--decel);
}
.topnav nav a:hover { opacity: 1; }
.topnav .cta-compact {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 6px;
}
@media (max-width: 768px) {
  .topnav { padding: 12px 16px; }
  .topnav nav { display: none; }
}

/* Guide dot — fixed apparatus on right */
.guide-trail {
  position: fixed;
  right: 35px;
  top: 0;
  width: 1px;
  pointer-events: none;
  z-index: 40;
}
.guide-dot {
  position: fixed;
  right: 28px;
  width: 12px; height: 12px;
  pointer-events: none;
  z-index: 50;
  transform: translate(0, -50%);
}
.guide-dot .core {
  position: absolute;
  inset: 2px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(232,0,111,0.4);
  animation: pulse-soft 2.4s ease-in-out infinite;
}
.guide-dot .ring {
  position: absolute;
  inset: 2px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}
.guide-dot .ring.fire {
  animation: ring-pulse 1.2s var(--decel) forwards;
}
@keyframes ring-pulse {
  0%   { transform: scale(1);  opacity: 1; }
  100% { transform: scale(5);  opacity: 0; }
}
.guide-label {
  position: fixed;
  right: 56px;
  pointer-events: none;
  z-index: 50;
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 500;
  text-transform: uppercase;
  opacity: 0.4;
  white-space: nowrap;
  transform: translateY(-6px);
  transition: color 0.3s linear;
}
@media (max-width: 768px) {
  .guide-trail { right: 18px; }
  .guide-dot { right: 12px; width: 10px; height: 10px; }
  .guide-label { display: none; }
}

/* Hero — Acto 01 */
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-top: 120px; }
.hero-q {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  align-items: baseline;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--text-dark-line);
}
.hero-q:last-of-type { border-bottom: 1px solid var(--text-dark-line); }
.hero-q .role { color: var(--text-dark-tertiary); }
.hero-q .question { color: var(--text-dark-primary); font-size: clamp(20px, 2.2vw, 26px); line-height: 1.35; letter-spacing: -0.015em; font-weight: 400; }
.hero-q .sees {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); font-size: 13px; white-space: nowrap;
}
.hero-q .sees .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(232,0,111,0.55);
  animation: pulse-soft 2.4s ease-in-out infinite;
}
.hero-headline { margin-top: 80px; text-align: center; }
.hero-headline .accent-name {
  color: var(--accent);
}
.hero-headline .live-dot {
  display: inline-block;
  width: 0.22em;
  height: 0.22em;
  background: var(--accent);
  border-radius: 50%;
  margin-left: 0.02em;
  vertical-align: 0.06em;
  box-shadow: 0 0 18px rgba(232,0,111,0.55);
  animation: pulse-soft 2.4s ease-in-out infinite;
}
.hero-sub {
  max-width: 540px;
  margin: 28px auto 0;
  text-align: center;
  color: var(--text-dark-secondary);
}
.hero-ctas {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-integrations {
  margin-top: 96px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  color: var(--text-dark-tertiary);
}
.hero-integrations .lbl { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-integrations .chip {
  font-size: 13px;
  color: var(--text-dark-secondary);
}
.hero-integrations .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--text-dark-line-strong); }
@media (max-width: 768px) {
  .hero-q { grid-template-columns: 1fr; gap: 8px; }
  .hero-q .sees { justify-self: start; }
  .hero-headline { margin-top: 56px; }
  .hero-integrations { margin-top: 64px; }
}

/* Acto 02 — Chaos */
.chaos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 900px) { .chaos-grid { grid-template-columns: 1fr; gap: 48px; } }
.chaos-cards { position: relative; height: 460px; }

/* Outer wrapper: handles absolute positioning + scroll parallax */
.chaos-card-wrap {
  position: absolute;
  left: 0; right: 0;
  margin: 0 auto;
  width: min(100%, 420px);
  z-index: 10;
}
.chaos-card-wrap:nth-child(1) { z-index: 10; }
.chaos-card-wrap:nth-child(2) { z-index: 9; }
.chaos-card-wrap:nth-child(3) { z-index: 8; }
.chaos-card-wrap.is-front     { z-index: 20; }

/* Inner card: visual styles + rotation + hover */
.chaos-card {
  background: rgba(245,240,232,0.03);
  border: 1px solid var(--text-dark-line);
  border-radius: 12px;
  padding: 28px 32px;
  color: var(--text-dark-primary);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              box-shadow 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  will-change: transform;
}

/* Default resting rotation + wobble-return target per card */
.chaos-card-wrap:nth-child(1) .chaos-card {
  --wobble-rot: -2.4deg;
  transform: rotate(-2.4deg);
}
.chaos-card-wrap:nth-child(2) .chaos-card {
  --wobble-rot: 1.0deg;
  transform: rotate(1.0deg) translateX(-10px);
}
.chaos-card-wrap:nth-child(3) .chaos-card {
  --wobble-rot: 3.0deg;
  transform: rotate(3.0deg) translateY(-15px);
}

/* Hover: spring to front with overshoot (bezier gives the tambaleo) */
.chaos-card:hover {
  transform: rotate(3deg) translateY(-5px) scale(1.03);
  cursor: pointer;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Wobble-return animation: settles back to resting with inertia */
@keyframes chaos-wobble-return {
  0%   { transform: rotate(3deg) translateY(-5px) scale(1.03); }
  25%  { transform: rotate(calc(var(--wobble-rot) + 2deg)) translateY(4px) scale(1.01); }
  50%  { transform: rotate(calc(var(--wobble-rot) - 1.2deg)) translateY(-1px); }
  72%  { transform: rotate(calc(var(--wobble-rot) + 0.4deg)); }
  88%  { transform: rotate(calc(var(--wobble-rot) - 0.1deg)); }
  100% { transform: rotate(var(--wobble-rot)); }
}

.chaos-card.wobbling {
  animation: chaos-wobble-return 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  transition: box-shadow 0.5s ease;
}
.chaos-card.wobbling:hover { animation: none; }

.chaos-card .src { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dark-tertiary); }
.chaos-card .q { font-size: 13px; color: var(--text-dark-secondary); margin-top: 16px; }
.chaos-card .val { font-size: 44px; font-weight: 700; letter-spacing: -0.03em; margin-top: 4px; }
.chaos-q-final {
  margin-top: 36px;
  color: var(--accent);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.chaos-q-final .rose-underline { color: var(--accent); }

/* Acto 03 — Clara enters */
.enter-clara { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.enter-clara .typed {
  white-space: nowrap;
}
.enter-clara .typed .caret {
  display: inline-block;
  width: 2px;
  height: 0.9em;
  background: var(--accent);
  vertical-align: -0.05em;
  margin-left: 4px;
  animation: caret-blink 0.9s steps(2) infinite;
}
@keyframes caret-blink {
  50% { opacity: 0; }
}
.enter-clara .live-dot {
  display: inline-block;
  width: 0.22em;
  height: 0.22em;
  background: var(--accent);
  border-radius: 50%;
  margin-left: 0.02em;
  box-shadow: 0 0 22px rgba(232,0,111,0.65);
  animation: pulse-strong 1.8s ease-in-out infinite;
}
@keyframes pulse-strong {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%      { transform: scale(1.35); opacity: .8; }
}
.enter-clara .sub {
  max-width: 480px;
  margin: 28px auto 0;
  color: var(--text-dark-secondary);
}

/* Acto 04 — How it works */
.how-header { text-align: center; margin-bottom: 80px; }
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}
@media (max-width: 900px) { .how-grid { grid-template-columns: 1fr; } }
.how-step {
  padding: 36px 28px;
  border: 1px solid var(--text-dark-line);
  border-radius: 12px;
  background: rgba(245,240,232,0.025);
  transition: transform 320ms var(--decel), border-color 320ms var(--decel);
}
.how-step:hover {
  transform: translateY(-2px);
  border-color: var(--text-dark-line-strong);
}
.how-step .num {
  font-size: 52px;
  font-weight: 700;
  color: var(--text-dark-tertiary);
  letter-spacing: -0.03em;
  line-height: 1;
  transition: color 320ms var(--decel);
}
.how-step:hover .num { color: var(--accent); }
.how-step h3 {
  margin: 24px 0 12px;
  font-size: 22px;
  letter-spacing: -0.015em;
  font-weight: 500;
}
.how-step p {
  color: var(--text-dark-secondary);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}
.how-thread {
  position: absolute;
  top: 64px;
  bottom: 64px;
  left: 50%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--accent-trail), transparent);
  display: none; /* visible only as concept; per brief it's part of step numbers */
}

/* Acto 05 — Assistant */
.assistant-grid {
  display: grid;
  grid-template-columns: 38fr 62fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) { .assistant-grid { grid-template-columns: 1fr; } }
.assistant-text h2 { margin: 16px 0 20px; }
.assistant-text p.lead { color: var(--text-dark-secondary); }
.assistant-points {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.assistant-points li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: baseline;
}
.assistant-points .dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(232,0,111,0.4);
  margin-top: 8px;
}
.assistant-points b { font-weight: 500; color: var(--text-dark-primary); }
.assistant-points span { color: var(--text-dark-secondary); }

/* Chat mockup */
.chat {
  background: #181615;
  border: 1px solid var(--text-dark-line);
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 56px 1fr 240px;
  min-height: 560px;
}
@media (max-width: 900px) { .chat { grid-template-columns: 56px 1fr; } .chat .chat-side { display: none; } }
.chat-bar-top {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #131211;
  border-bottom: 1px solid var(--text-dark-line);
}
.chat-bar-top .dot { width: 11px; height: 11px; border-radius: 50%; background: #2a2724; }
.chat-bar-top .title { margin-left: 14px; font-size: 12px; color: var(--text-dark-tertiary); letter-spacing: 0.08em; text-transform: uppercase; }
.chat-rail {
  background: #131211;
  border-right: 1px solid var(--text-dark-line);
  padding: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.chat-rail .glyph {
  width: 24px; height: 24px;
  border-radius: 6px;
  border: 1px solid var(--text-dark-line-strong);
  opacity: 0.5;
}
.chat-rail .glyph.active {
  border-color: var(--accent);
  opacity: 1;
  background: var(--accent-soft);
}
.chat-main {
  display: flex;
  flex-direction: column;
  padding: 24px 26px 16px;
  gap: 18px;
  overflow: hidden;
}
.chat-msg {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
}
.chat-msg .av {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(245,240,232,0.08);
  border: 1px solid var(--text-dark-line);
  font-size: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-dark-tertiary);
}
.chat-msg.clara .av {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.chat-msg .body { color: var(--text-dark-primary); font-size: 14px; line-height: 1.6; }
.chat-msg .body .who { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dark-tertiary); margin-bottom: 4px; }
.chat-msg.clara .who { color: var(--accent); }
.kpi-row {
  display: flex; gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.kpi-pill {
  background: rgba(245,240,232,0.04);
  border: 1px solid var(--text-dark-line);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
}
.kpi-pill .lbl { color: var(--text-dark-tertiary); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.kpi-pill .val { color: var(--text-dark-primary); font-weight: 500; font-size: 15px; letter-spacing: -0.01em; }
.kpi-pill.accent { border-color: var(--accent); background: var(--accent-soft); }
.kpi-pill.accent .val { color: var(--accent); }
.src-row {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-top: 10px;
}
.src-tag {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dark-tertiary);
  border: 1px solid var(--text-dark-line);
  border-radius: 4px;
  padding: 3px 8px;
}
.chat-input {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--text-dark-line);
  padding-top: 14px;
  color: var(--text-dark-tertiary);
  font-size: 13px;
}
.chat-input .caret {
  display: inline-block;
  width: 2px;
  height: 14px;
  background: var(--accent);
  animation: caret-blink 0.9s steps(2) infinite;
}
.chat-side {
  background: #131211;
  border-left: 1px solid var(--text-dark-line);
  padding: 20px 18px;
  font-size: 12px;
  color: var(--text-dark-secondary);
}
.chat-side h4 { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dark-tertiary); margin: 0 0 12px; font-weight: 500; }
.chat-side ul { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 10px; }
.chat-side li { display: grid; grid-template-columns: 6px 1fr; gap: 10px; align-items: baseline; font-size: 12px; }
.chat-side li::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--text-dark-line-strong);
  margin-top: 6px;
}
.chat-side li.live::before {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(232,0,111,0.6);
}

/* Acto 06 — Sources */
.sources-header { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.sources-header p { color: var(--text-dark-secondary); }
.sources-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1000px) { .sources-grid { grid-template-columns: repeat(2, 1fr); } }
.source-card {
  border: 1px solid var(--text-dark-line);
  border-radius: 12px;
  padding: 22px 22px;
  background: rgba(245,240,232,0.02);
  transition: transform 320ms var(--decel), border-color 320ms var(--decel);
}
.source-card:hover { transform: translateY(-2px); border-color: var(--text-dark-line-strong); }
.source-card .logo {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(245,240,232,0.06);
  border: 1px solid var(--text-dark-line);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-dark-secondary);
}
.source-card .name { margin-top: 18px; font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.source-card .status {
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dark-tertiary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.source-card .status .live {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(232,0,111,0.55);
  animation: pulse-soft 2.4s ease-in-out infinite;
}
.source-card .meta { margin-top: 14px; font-size: 13px; color: var(--text-dark-secondary); }
.sources-footnote { text-align: center; margin-top: 40px; color: var(--text-dark-tertiary); font-size: 13px; }

/* Acto 07 — Dashboard */
.dashboard-header { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.dashboard-header p { color: var(--text-light-secondary); }
.dashboard-mockup {
  background: #fffdf8;
  border: 1px solid var(--text-light-line);
  border-radius: 16px;
  overflow: hidden;
  color: var(--text-light-primary);
}
.dash-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--text-light-line);
}
.dash-bar .title { font-size: 13px; font-weight: 500; letter-spacing: 0.04em; }
.dash-bar .toggles { display: flex; gap: 4px; font-size: 12px; }
.dash-bar .toggle { padding: 6px 12px; border-radius: 6px; color: var(--text-light-tertiary); }
.dash-bar .toggle.active { background: var(--text-light-primary); color: #fff; }
.dash-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
@media (max-width: 900px) { .dash-kpis { grid-template-columns: repeat(2, 1fr); } }
.dash-kpi {
  padding: 24px;
  border-right: 1px solid var(--text-light-line);
  border-bottom: 1px solid var(--text-light-line);
}
.dash-kpi:last-child { border-right: none; }
.dash-kpi .lbl { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-light-tertiary); }
.dash-kpi .val { font-size: 32px; font-weight: 700; letter-spacing: -0.025em; margin-top: 8px; }
.dash-kpi .delta { font-size: 13px; margin-top: 4px; color: var(--text-light-tertiary); }
.dash-kpi .delta.neg { color: var(--accent); }
.dash-kpi .delta.flat { color: var(--text-light-tertiary); }
.dash-panels {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 0;
}
@media (max-width: 900px) { .dash-panels { grid-template-columns: 1fr; } }
.dash-panel {
  padding: 24px;
  border-right: 1px solid var(--text-light-line);
}
.dash-panel:last-child { border-right: none; }
.dash-panel h4 { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-light-tertiary); margin: 0 0 18px; font-weight: 500; }
.bars {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 8px;
  align-items: end;
  height: 160px;
}
.bar {
  background: var(--text-light-line);
  border-radius: 3px 3px 0 0;
  position: relative;
  transition: height 1.2s var(--decel);
}
.bar.active { background: var(--accent); }
.bar .month { position: absolute; bottom: -22px; left: 0; right: 0; text-align: center; font-size: 10px; color: var(--text-light-tertiary); }
.table {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.trow {
  display: grid;
  grid-template-columns: 100px 1fr 70px 50px;
  gap: 12px;
  align-items: center;
  font-size: 13px;
}
.trow .lbl { color: var(--text-light-primary); font-weight: 500; }
.trow .meter { height: 6px; border-radius: 3px; background: var(--text-light-line); position: relative; overflow: hidden; }
.trow .meter span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--text-light-primary); border-radius: 3px; }
.trow .val { text-align: right; color: var(--text-light-secondary); }
.trow .pct { text-align: right; }
.trow .pct.neg { color: var(--accent); }
.trow .pct.pos { color: var(--text-light-tertiary); }

/* Acto 08 — Agents */
.agents-header { text-align: center; max-width: 760px; margin: 0 auto 64px; }
.agents-header p { color: var(--text-light-secondary); }
.agents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 1000px) { .agents-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .agents-grid { grid-template-columns: 1fr; } }
.agent-card {
  background: #fffdf8;
  border: 1px solid var(--text-light-line);
  border-radius: 12px;
  padding: 26px 24px;
  transition: transform 320ms var(--decel), border-color 320ms var(--decel);
  color: var(--text-light-primary);
}
.agent-card:hover { transform: translateY(-4px); border-color: var(--text-light-line-strong); }
.agent-card .ico {
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center; justify-content: center;
  color: var(--text-light-primary);
  transition: color 280ms var(--decel);
}
.agent-card:hover .ico,
.agent-card.lit .ico { color: var(--accent); }
.agent-card .name {
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}
.agent-card .desc { margin-top: 10px; font-size: 14px; line-height: 1.55; color: var(--text-light-secondary); }
.agent-card .activate {
  margin-top: 16px;
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light-tertiary);
  border: 1px solid var(--text-light-line);
  padding: 5px 10px;
  border-radius: 4px;
}

/* Acto 09 — Use cases (horizontal scroll on desktop) */
.usecases-wrap { position: relative; }
.usecases-header { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.usecases-header p { color: var(--text-light-secondary); }
.usecases-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(320px, 480px));
  gap: 24px;
  padding: 8px 24px 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.usecases-track::-webkit-scrollbar { height: 8px; }
.usecases-track::-webkit-scrollbar-track { background: transparent; }
.usecases-track::-webkit-scrollbar-thumb { background: var(--text-light-line-strong); border-radius: 4px; }
@media (max-width: 900px) {
  .usecases-track { grid-auto-flow: row; grid-template-columns: 1fr; overflow-x: hidden; }
}
.usecase {
  scroll-snap-align: start;
  background: #fffdf8;
  border: 1px solid var(--text-light-line);
  border-radius: 14px;
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 460px;
}
.usecase .n {
  color: var(--accent);
  font-size: 72px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.9;
}
.usecase .title {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}
.usecase .desc {
  font-size: 14px;
  color: var(--text-light-secondary);
  line-height: 1.55;
}
.usecase .insight {
  margin-top: auto;
  background: #1c1c1c;
  border-radius: 10px;
  padding: 18px 18px;
  color: var(--text-dark-primary);
  font-size: 13px;
  line-height: 1.5;
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}
.usecase .insight .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(232,0,111,0.55);
  margin-top: 6px;
  animation: pulse-soft 2.4s ease-in-out infinite;
}
.usecase .insight .who {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dark-tertiary);
  margin-bottom: 4px;
}

/* Acto 10 — CTA */
.cta-wrap { text-align: center; }
.cta-wrap h2 { margin: 0 auto 24px; max-width: 820px; text-align: center !important; }
.cta-wrap p.lead { max-width: 580px; margin: 0 auto; color: var(--text-light-secondary); }
.profiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 920px;
  margin: 64px auto;
}
@media (max-width: 800px) { .profiles { grid-template-columns: 1fr; } }
.profile {
  background: #fff;
  border: 1px solid var(--text-light-line);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: left;
}
.profile .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(232,0,111,0.55);
}
.profile .role {
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light-tertiary);
  font-weight: 500;
}
.profile .promise {
  margin-top: 8px;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -0.015em;
  font-weight: 500;
  color: var(--text-light-primary);
}
.cta-form {
  max-width: 520px;
  margin: 32px auto 0;
  text-align: left;
  display: grid;
  gap: 14px;
}
.cta-form .field {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  border-bottom: 1px solid var(--text-light-line);
  padding: 12px 0;
}
.cta-form .field label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light-tertiary);
}
.cta-form .field input {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  color: var(--text-light-primary);
  outline: none;
  letter-spacing: -0.01em;
  padding: 4px 0;
}
.cta-form .field input::placeholder { color: var(--text-light-tertiary); opacity: 0.55; }
.cta-form .submit-row { display: flex; justify-content: center; margin-top: 12px; }

/* Footer */
.footer {
  margin-top: 120px;
  border-top: 1px solid var(--text-light-line);
  padding: 48px var(--gutter) 36px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 40px;
  color: var(--text-light-secondary);
  font-size: 13px;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 700px) { .footer { grid-template-columns: 1fr 1fr; } }
.footer .brand {
  display: flex; flex-direction: column; gap: 10px;
}
.footer .brand .logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 500; letter-spacing: 0.12em; color: var(--text-light-primary);
}
.footer .brand .logo .ring {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1px solid var(--text-light-primary);
  display: inline-flex; align-items: center; justify-content: center;
}
.footer .brand .logo .ring::after {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--text-light-primary);
}
.footer .brand .logo .dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 8px rgba(232,0,111,0.55);
}
.footer .col { display: flex; flex-direction: column; gap: 8px; }
.footer .col h5 {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light-tertiary);
  font-weight: 500;
}
.footer .col a {
  color: var(--text-light-primary);
  text-decoration: none;
  opacity: 0.8;
}
.footer .col a:hover { opacity: 1; }
.footer .endrow {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  padding-top: 28px;
  margin-top: 12px;
  border-top: 1px solid var(--text-light-line);
  font-size: 12px;
  color: var(--text-light-tertiary);
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .guide-dot .core, .guide-label, .bridge { animation: none !important; }
  .rose-underline::after { transform: scaleX(1) !important; transition: none !important; }
}
