/* ===== Tokens ===== */
:root {
  --bg: #08090b;
  --bg-elevated: #0d0f12;
  --panel-fill: rgba(255, 255, 255, 0.035);
  --panel-fill-strong: rgba(255, 255, 255, 0.06);
  --panel-border: rgba(255, 255, 255, 0.09);
  --panel-inner-highlight: rgba(255, 255, 255, 0.09);

  --text-primary: #F3F5F7;
  --text-secondary: #A9B0C3;
  --text-tertiary: #838BA3;

  --accent: #34D399;
  --accent-strong: #1FBE84;
  --accent-ink: #04150E;
  --accent-glow: rgba(52, 211, 153, 0.35);

  --violet: #A996FF;
  --violet-strong: #7C6FF0;
  --violet-glow: rgba(124, 111, 240, 0.35);

  --radius-shell: 2rem;
  --radius-shell-sm: 1.25rem;
  --shell-pad: 0.4rem;

  --ease-out-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out-soft: cubic-bezier(0.22, 1, 0.36, 1);

  --measure: 68ch;
}

/* ===== Reset ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Bricolage Grotesque", "Hanken Grotesk", sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text-primary);
}

p { margin: 0; color: var(--text-secondary); }

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

/* ===== Browser surfaces ===== */
::selection { background: var(--accent); color: var(--accent-ink); }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.14); border-radius: 999px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.22); }
html { scrollbar-color: rgba(255, 255, 255, 0.14) var(--bg); scrollbar-width: thin; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===== Ambient background ===== */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.glow {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}
.glow-a {
  top: -10%;
  left: 8%;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, var(--violet-glow), transparent 70%);
}
.glow-b {
  top: 30%;
  right: -8%;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
}

main, header, footer { position: relative; z-index: 2; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 0.6rem 0.85rem 1.4rem;
  border-radius: 999px;
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform 0.5s var(--ease-out-spring), box-shadow 0.5s var(--ease-out-spring), background 0.3s ease;
}

.btn-icon {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s var(--ease-out-spring);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.55);
}
.btn-primary .btn-icon { background: rgba(0, 0, 0, 0.14); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -4px rgba(0, 0, 0, 0.6); }
.btn-primary:hover .btn-icon { transform: translate(2px, -2px) scale(1.06); }
.btn-primary:active { transform: translateY(0) scale(0.98); }

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--panel-border);
  padding: 0.85rem 1.4rem;
}
.btn-ghost:hover { background: var(--panel-fill-strong); border-color: rgba(255, 255, 255, 0.18); }

.btn-sm { padding: 0.55rem 0.5rem 0.55rem 1.1rem; font-size: 0.85rem; }
.btn-sm .btn-icon { width: 1.5rem; height: 1.5rem; }
.btn-lg { padding: 1.05rem 0.7rem 1.05rem 1.8rem; font-size: 1.05rem; }

/* ===== Nav ===== */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  padding: 1.25rem 1.25rem 0;
}

.nav-pill {
  width: 100%;
  max-width: 940px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.55rem 0.55rem 0.55rem 1.3rem;
  border-radius: 999px;
  background: rgba(10, 11, 14, 0.65);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid var(--panel-border);
  box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.6);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-primary);
  margin-right: auto;
}
.brand-mark { color: var(--text-primary); flex-shrink: 0; }
.brand-node { color: var(--accent); }
.brand-word {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.25s ease;
}
.nav-links a:hover { color: var(--text-primary); }

@media (max-width: 720px) {
  .nav-links { display: none; }
}

@media (max-width: 360px) {
  .nav-wrap { padding-inline: 0.75rem; }
  .nav-pill { gap: 0.5rem; padding-left: 0.55rem; }
  .brand-word { display: none; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 7rem 1.5rem 6rem;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-inner {
  max-width: 1000px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5.4vw, 4.5rem);
  line-height: 1.1;
  max-width: 24ch;
  text-wrap: balance;
}

.hero-lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 56ch;
  line-height: 1.55;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}

.hero-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 160px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

/* ===== Section shared ===== */
section { padding: 6rem 1.5rem; position: relative; }

.section-head {
  max-width: 640px;
  margin: 0 auto 3.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  line-height: 1.15;
}
.section-head p {
  font-size: 1.05rem;
  line-height: 1.6;
}

.node, .benefit { position: relative; z-index: 1; }

.node-shell {
  background: var(--panel-fill);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-shell);
  padding: var(--shell-pad);
  height: 100%;
  transition: border-color 0.4s ease, background 0.4s ease;
}
.node:hover .node-shell, .benefit:hover .node-shell { border-color: rgba(255, 255, 255, 0.16); background: var(--panel-fill-strong); }

.node-core {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border-radius: calc(var(--radius-shell) - var(--shell-pad));
  box-shadow: inset 0 1px 1px var(--panel-inner-highlight);
  padding: 1.75rem 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.node-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: rgba(52, 211, 153, 0.12);
}
.node-core--violet .node-icon { color: var(--violet); background: rgba(124, 111, 240, 0.16); }

.node-core h3 {
  font-size: 1.05rem;
  font-weight: 600;
}
.node-core p {
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ===== Reassurance ===== */
.reassurance-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 860px) {
  .reassurance-grid { grid-template-columns: 1fr; }
}

/* ===== Phases ===== */
.phase-block {
  display: flex;
  align-items: center;
  gap: 4rem;
  min-height: 78vh;
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding: 2rem 0;
}
.phase-block--reverse { flex-direction: row-reverse; }

/* --- Transition: the "sent" plane travels from Fase 2 into Fase 3 (scroll-linked) --- */
.phase-transition {
  position: relative;
  height: 50vh;
  max-width: 1200px;
  margin: 0 auto;
}
.transition-trail {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--panel-border) 15%, var(--panel-border) 85%, transparent);
}
.transition-plane {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--accent);
  opacity: 0;
  will-change: transform, opacity;
}

@media (max-width: 640px) {
  .phase-transition { height: 20vh; }
}

@media (prefers-reduced-motion: reduce) {
  .phase-transition { height: auto; padding: 2rem 0; display: flex; justify-content: center; }
  .transition-trail { display: none; }
  .transition-plane {
    position: static;
    opacity: 1 !important;
    transform: rotate(20deg) !important;
  }
}

.phase-finale {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 0 1rem;
  text-align: center;
}
.phase-finale-head {
  position: relative;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  padding-top: 2.75rem;
}
.phase-finale-head .phase-index { left: 50%; transform: translateX(-50%); }
.phase-finale-head h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.18; margin-bottom: 1rem; }
.phase-finale-head p { font-size: 1.02rem; line-height: 1.65; }
.phase-scene--wide { min-height: auto; }

.phase-copy {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  padding-top: 2.75rem;
}
.phase-index {
  position: absolute;
  top: -0.75rem;
  left: 0;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-tertiary);
  opacity: 0.32;
  user-select: none;
}
.phase-copy h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.18;
  margin-bottom: 1rem;
  max-width: 16ch;
}
.phase-copy p {
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 42ch;
}

.phase-scene {
  flex: 1 1 0;
  min-width: 0;
  min-height: 380px;
  background: var(--panel-fill);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-shell);
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

@media (max-width: 960px) {
  .phase-block, .phase-block--reverse { flex-direction: column; align-items: stretch; min-height: 0; gap: 2rem; }
  .phase-copy { padding-top: 2.25rem; }
  .phase-copy p { max-width: none; }
  .phase-scene { flex: none; }
}

/* --- Scene: Infrastructure checklist + warm-up reputation graph (loops) --- */
.scene-infra { gap: 1.5rem; }

.infra-checklist { display: flex; flex-direction: column; gap: 0.75rem; }

.infra-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--panel-border);
  border-radius: 1.1rem;
  padding: 0.75rem 0.9rem;
}
.infra-icon {
  flex-shrink: 0;
  width: 2rem; height: 2rem;
  border-radius: 0.65rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-tertiary);
  background: rgba(255, 255, 255, 0.04);
}
.infra-label { flex: 1; min-width: 0; font-size: 0.85rem; color: var(--text-secondary); }
.infra-check {
  flex-shrink: 0;
  width: 1.25rem; height: 1.25rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  opacity: 0;
  transform: scale(0.6);
}
.phase-block.is-visible .infra-check {
  animation: checkIn 0.5s ease-out forwards;
  animation-delay: var(--d);
}

.infra-graph {
  border-top: 1px solid var(--panel-border);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.infra-graph-line { color: var(--accent); overflow: visible; }
.infra-graph-line path {
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
}
.phase-block.is-visible .infra-graph-line path {
  animation: graphDraw 1.4s ease-out forwards;
  animation-delay: 0.4s;
}
.infra-graph-dot {
  opacity: 0;
  transform: scale(0.6);
  transform-origin: 236px 8px;
}
.phase-block.is-visible .infra-graph-dot {
  animation: checkIn 0.5s ease-out forwards;
  animation-delay: 1.8s;
}
.infra-graph-label { font-size: 0.78rem; color: var(--text-tertiary); }

@keyframes checkIn { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }
@keyframes graphDraw { from { stroke-dashoffset: 240; } to { stroke-dashoffset: 0; } }

/* --- Scene: Outbound (parallel personalized sends) --- */
.scene-outbound {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lead-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--panel-border);
  border-radius: 1.1rem;
  padding: 0.9rem;
}

.lead-avatar {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  color: var(--accent);
  background: rgba(52, 211, 153, 0.14);
}
.lead-avatar--b { color: var(--violet); background: rgba(124, 111, 240, 0.18); }

.lead-info { display: flex; flex-direction: column; min-width: 0; flex-shrink: 0; width: 5.5rem; }
.lead-name { font-size: 0.82rem; font-weight: 600; color: var(--text-primary); }
.lead-company { font-size: 0.72rem; color: var(--text-tertiary); }

.lead-message { position: relative; flex: 1; min-height: 2.4rem; min-width: 0; }
.typing-dots {
  position: absolute; top: 0.35rem; left: 0;
  display: flex; gap: 0.28rem;
  animation: typingDots 8s ease-in-out infinite;
  animation-delay: var(--d);
}
.typing-dots span {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--text-tertiary);
  animation: dotPulse 1s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }

.message-text {
  position: absolute; top: 0; left: 0; right: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-secondary);
  animation: messageReveal 8s ease-in-out infinite;
  animation-delay: var(--d);
}

@media (max-width: 480px) {
  .lead-card { gap: 0.5rem; padding: 0.75rem; }
  .lead-avatar { width: 2rem; height: 2rem; }
  .lead-info { width: 4.5rem; }
  .lead-status { width: 1.25rem; height: 1.25rem; }
  .message-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (max-width: 360px) {
  .lead-card { gap: 0.375rem; }
  .lead-avatar { width: 1.75rem; height: 1.75rem; }
  .lead-info { width: 4rem; }
  .lead-status { width: 1rem; height: 1rem; }
}

.lead-status {
  flex-shrink: 0;
  width: 1.5rem; height: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  animation: sentCheck 8s ease-in-out infinite;
  animation-delay: var(--d);
}

@keyframes dotPulse { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }
@keyframes typingDots { 0%, 5% { opacity: 0; } 8%, 28% { opacity: 1; } 32%, 100% { opacity: 0; } }
@keyframes messageReveal { 0%, 30% { opacity: 0; transform: translateY(4px); } 34%, 88% { opacity: 1; transform: translateY(0); } 94%, 100% { opacity: 0; } }
@keyframes sentCheck { 0%, 46% { opacity: 0; transform: scale(0.6); } 50%, 90% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; transform: scale(0.6); } }

/* --- Fase 2: scroll-pinned scrollytelling layout --- */
.phase-scrolly {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding: 2rem 0;
}
.scrolly-steps { flex: 1 1 0; min-width: 0; }
.phase-copy--scrolly {
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 2.75rem;
  margin-bottom: 3rem;
}

.scrolly-step {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 2rem;
  opacity: 0.35;
  transition: opacity 0.5s ease;
}
.scrolly-step.is-active { opacity: 1; }
.scrolly-step-num {
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.scrolly-step h4 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.scrolly-step p {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 38ch;
}

.scrolly-visual {
  flex: 1 1 0;
  min-width: 0;
  position: sticky;
  top: 7rem;
}

/* --- Scene: Inbox → classify → context → draft → approve (scroll-revealed) --- */
.scene-inbox { gap: 1.25rem; }

.scene-idle {
  position: absolute;
  top: 2rem; left: 2rem; right: 2rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--panel-border);
  border-radius: 1.1rem;
  padding: 1rem 1.1rem;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.scene-idle.is-hidden { opacity: 0; transform: translateY(-10px); }
.scene-idle-icon {
  flex-shrink: 0;
  width: 2.5rem; height: 2.5rem;
  border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-tertiary);
  background: rgba(255, 255, 255, 0.04);
  animation: idlePulse 2.4s ease-in-out infinite;
}
.scene-idle-body { display: flex; flex-direction: column; gap: 0.5rem; }
.scene-idle-label { font-size: 0.8rem; color: var(--text-tertiary); }
.scene-idle-dots { display: flex; gap: 0.28rem; }
.scene-idle-dots span {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--text-tertiary);
  animation: dotPulse 1s ease-in-out infinite;
}
.scene-idle-dots span:nth-child(2) { animation-delay: 0.15s; }
.scene-idle-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes idlePulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.mail-card, .context-card, .draft-card {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.mail-card.is-visible, .context-card.is-visible, .draft-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.mail-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  border-radius: 1.1rem;
  padding: 1rem 1.1rem;
}
.mail-icon {
  flex-shrink: 0;
  width: 2.5rem; height: 2.5rem;
  border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  background: rgba(52, 211, 153, 0.12);
}
.mail-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.mail-from { font-size: 0.8rem; font-weight: 600; color: var(--text-primary); }
.mail-snippet { font-size: 0.78rem; color: var(--text-tertiary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.classify-tag {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--violet);
  background: rgba(124, 111, 240, 0.16);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.classify-tag.is-visible { opacity: 1; transform: scale(1); }

.context-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(124, 111, 240, 0.06);
  border: 1px solid rgba(124, 111, 240, 0.22);
  border-radius: 1.1rem;
  padding: 0.85rem 1.1rem;
}
.context-icon {
  flex-shrink: 0;
  width: 2rem; height: 2rem;
  border-radius: 0.6rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--violet);
  background: rgba(124, 111, 240, 0.16);
}
.context-body { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.context-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; color: var(--text-tertiary); }
.context-value { font-size: 0.82rem; font-weight: 600; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.draft-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  border-radius: 1.1rem;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.5s ease;
}
.draft-card.is-approved { border-color: rgba(52, 211, 153, 0.35); }
.draft-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; color: var(--violet); }
.draft-text { font-size: 0.85rem; line-height: 1.55; color: var(--text-secondary); }
.approve-row { position: relative; min-height: 1.4rem; margin-top: 0.2rem; }
.approve-pending {
  position: absolute; top: 0; left: 0;
  font-size: 0.75rem; color: var(--text-tertiary);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.approve-pending.is-visible { opacity: 1; }
.approve-done {
  position: absolute; top: 0; left: 0;
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; font-weight: 600; color: var(--accent);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.approve-done.is-visible { opacity: 1; transform: scale(1); }

@media (max-width: 900px) {
  .phase-scrolly { flex-direction: column; align-items: stretch; gap: 2.5rem; }
  .scrolly-visual { position: static; }
  .scrolly-step {
    min-height: 0;
    opacity: 1;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--panel-border);
  }
  .scrolly-step:last-child { border-bottom: none; }
  .mail-card, .context-card, .draft-card, .classify-tag, .approve-done {
    opacity: 1 !important;
    transform: none !important;
  }
  .approve-pending { display: none; }
  .draft-card { border-color: rgba(52, 211, 153, 0.35) !important; }
  .scene-idle { display: none; }
}

#fases { scroll-margin-top: 6rem; }

/* --- Scene: CRM rows filling in (plays once), live sync pulse + every row's stage advancing --- */
.crm-live {
  align-self: center;
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-tertiary);
}
.crm-live-dot {
  position: relative;
  flex-shrink: 0;
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}
.crm-live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: crmLivePing 2s ease-out infinite;
}
@keyframes crmLivePing {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(2.6); opacity: 0; }
}

.crm-table { display: flex; flex-direction: column; gap: 0.5rem; }
.crm-head, .crm-row {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1.15fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 1rem;
}
.crm-head span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
}
.crm-row {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  border-radius: 0.85rem;
}
.phase-finale.is-visible .crm-row {
  animation: crmRowPulse 12s ease-in-out infinite alternate;
  animation-delay: var(--pd);
}
@keyframes crmRowPulse {
  0%, 40% { border-color: var(--panel-border); }
  45% { border-color: var(--glow); }
  50%, 100% { border-color: var(--panel-border); }
}
.crm-lead { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }
.crm-company { font-size: 0.82rem; color: var(--text-secondary); }
.crm-stage {
  justify-self: start;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}
/* Pipeline palette: interpolated from the violet accent (early stage) to the
   emerald accent (Ganada) through blue/teal — built from the system's own two
   accents rather than introducing unrelated hues. Scoped to CRM stage pills only;
   the rest of the site still follows the Two-Accent Ceiling Rule. */
.crm-stage--contacto { color: var(--violet); background: rgba(169, 150, 255, 0.16); }
.crm-stage--propuesta { color: #8CA8F5; background: rgba(140, 168, 245, 0.16); }
.crm-stage--interesado { color: #6DBEDB; background: rgba(109, 190, 219, 0.16); }
.crm-stage--reunion { color: #4FCBAE; background: rgba(79, 203, 174, 0.16); }
.crm-stage--ganada { color: var(--accent); background: rgba(52, 211, 153, 0.16); }

.crm-stage-wrap { justify-self: start; display: grid; }
.crm-stage-wrap .crm-stage {
  grid-row: 1;
  grid-column: 1;
  white-space: nowrap;
}
.crm-cycle-out { opacity: 1; }
.crm-cycle-in { opacity: 0; }
.phase-finale.is-visible .crm-cycle-out { animation: crmCycleOut 12s ease-in-out infinite alternate; animation-delay: var(--pd); }
.phase-finale.is-visible .crm-cycle-in { animation: crmCycleIn 12s ease-in-out infinite alternate; animation-delay: var(--pd); }
@keyframes crmCycleOut { 0%, 40% { opacity: 1; } 45%, 100% { opacity: 0; } }
@keyframes crmCycleIn { 0%, 45% { opacity: 0; } 50%, 100% { opacity: 1; } }

@media (max-width: 560px) {
  .crm-head, .crm-row { grid-template-columns: 1fr 1fr; }
  .crm-company, .crm-head span:nth-child(2) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .typing-dots, .message-text, .lead-status, .mail-card, .classify-tag, .context-card, .draft-card, .approve-pending, .approve-done, .infra-check, .infra-graph-line path, .infra-graph-dot {
    animation: none !important;
  }
  .typing-dots { display: none; }
  .message-text, .lead-status, .mail-card, .classify-tag, .context-card, .draft-card, .approve-done { opacity: 1; transform: none; }
  .approve-pending { display: none; }
  .draft-card { border-color: rgba(52, 211, 153, 0.35); }
  .scene-idle { display: none; }
  .infra-check, .infra-graph-dot { opacity: 1; transform: none; }
  .infra-graph-line path { stroke-dashoffset: 0; }
  .crm-live-dot::after { animation: none !important; opacity: 0; }
  .crm-cycle-out, .crm-cycle-in { animation: none !important; }
  .crm-cycle-out { opacity: 0; }
  .crm-cycle-in { opacity: 1; }
  .crm-row { animation: none !important; border-color: var(--panel-border); }
}

/* ===== Difference ===== */
.difference-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.difference-statement h2 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  line-height: 1.14;
  margin-bottom: 1.5rem;
}
.difference-statement p {
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: var(--measure);
  margin-bottom: 1.1rem;
}
.difference-statement p:last-child { margin-bottom: 0; }

.difference-compare {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.compare-label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 1rem;
}

.chip-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
.chip {
  padding: 1.1rem 1rem;
  border-radius: 0.85rem;
  font-size: 0.88rem;
  border: 1px dashed var(--panel-border);
  display: flex;
  align-items: center;
  min-height: 4.25rem;
}

@media (max-width: 480px) {
  .chip-list { grid-template-columns: 1fr; }
}
.chip--dim { color: var(--text-tertiary); background: rgba(255, 255, 255, 0.015); }

.unified-card {
  position: relative;
  min-height: 11rem;
  padding: 2.25rem;
  border-radius: var(--radius-shell);
  background: linear-gradient(160deg, rgba(52, 211, 153, 0.14), rgba(124, 111, 240, 0.08));
  border: 1px solid rgba(52, 211, 153, 0.3);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.unified-node {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--accent);
  margin-bottom: 1.1rem;
}
.unified-card p {
  color: var(--text-primary);
  font-size: 1.35rem;
  line-height: 1.4;
  font-weight: 600;
  max-width: 32ch;
}

@media (max-width: 860px) {
  .difference-grid { grid-template-columns: 1fr; gap: 3rem; }
}

/* ===== CTA close ===== */
.cta-close { display: flex; justify-content: center; }

.cta-shell {
  width: 100%;
  max-width: 780px;
  background: var(--panel-fill);
  border: 1px solid var(--panel-border);
  border-radius: 2.5rem;
  padding: var(--shell-pad);
}
.cta-core {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border-radius: calc(2.5rem - var(--shell-pad));
  box-shadow: inset 0 1px 1px var(--panel-inner-highlight);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.cta-core h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  line-height: 1.15;
  max-width: 18ch;
}
.cta-core p {
  max-width: 46ch;
  font-size: 1.02rem;
  line-height: 1.6;
}
.cta-note {
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

/* ===== Footer ===== */
.site-footer {
  padding: 3.5rem 1.5rem 3rem;
  border-top: 1px solid var(--panel-border);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2.5rem;
}
.brand--footer { margin-right: 0.5rem; }
.footer-tagline { color: var(--text-tertiary); font-size: 0.9rem; margin-right: auto; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { font-size: 0.88rem; color: var(--text-secondary); transition: color 0.25s ease; }
.footer-links a:hover { color: var(--text-primary); }
.footer-legal { width: 100%; font-size: 0.78rem; color: var(--text-tertiary); margin-top: 0.5rem; }

/* ===== Reveal on scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease-out-soft), transform 0.9s var(--ease-out-soft), filter 0.9s var(--ease-out-soft);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
@media (max-width: 900px) {
  .reveal {
    filter: none;
    transition: opacity 0.45s var(--ease-out-soft), transform 0.45s var(--ease-out-soft);
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
}
