/* MOVIK Landing — styles.css */

:root {
  color-scheme: dark;
  --bg: #06090f;
  --bg-deep: #05080d;
  --bg-soft: #0a0f16;
  --surface: #0d1420;
  --surface-strong: #101a28;
  --surface-muted: #0a111b;
  --text: #f4f7fa;
  --muted: #9aa7b5;
  --muted-strong: #c0cad4;
  --cyan: #22d3ee;
  --cyan-soft: rgba(34, 211, 238, 0.14);
  --cyan-border: rgba(34, 211, 238, 0.34);
  --green: #34d399;
  --danger: #fb7185;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);
  --shadow-lg: 0 30px 90px rgba(0, 0, 0, 0.44);
  --shadow-md: 0 18px 50px rgba(0, 0, 0, 0.34);
  --container: 1140px;
  --header-height: 78px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 180ms;
  --duration-ui: 280ms;
  --duration-reveal: 650ms;
  --duration-slow: 900ms;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  background: var(--bg);
  overflow-x: clip;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 12% 3%, rgba(34, 211, 238, 0.055), transparent 26rem),
    linear-gradient(180deg, var(--bg) 0%, #070b12 45%, var(--bg-deep) 100%);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img {
  height: auto;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

button {
  border: 0;
}

p,
h1,
h2,
h3 {
  margin-top: 0;
}

p:last-child {
  margin-bottom: 0;
}

h1,
h2,
h3 {
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.js [data-stagger] > * {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity var(--duration-reveal) var(--ease-out),
    transform var(--duration-reveal) var(--ease-out);
}

.js [data-stagger] > *:nth-child(1) { transition-delay: 0ms; }
.js [data-stagger] > *:nth-child(2) { transition-delay: 110ms; }
.js [data-stagger] > *:nth-child(3) { transition-delay: 230ms; }
.js [data-stagger] > *:nth-child(4) { transition-delay: 340ms; }

.js [data-stagger].is-visible > * {
  opacity: 1;
  transform: none;
}

.js [data-stagger].is-visible .h1-line:nth-child(2) {
  transition-delay: 180ms;
}

@media (prefers-reduced-motion: reduce) {
  .js [data-stagger] > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@keyframes logo-sweep {
  0% {
    clip-path: inset(0 100% 0 0);
    opacity: 0.4;
  }
  100% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .nav__brand img {
    animation: logo-sweep 750ms var(--ease-out) both;
  }

  .nav__brand::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 30%, rgba(34, 211, 238, 0.35) 50%, transparent 70%);
    animation: logo-sweep 750ms var(--ease-out) both;
    content: "";
    opacity: 0;
    pointer-events: none;
  }
}

.nav__brand {
  position: relative;
}

.h1-line {
  display: block;
}

.h1-brand {
  color: var(--cyan);
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(2.35rem, 6vw, 4.65rem);
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 4.5vw, 3.45rem);
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

::selection {
  background: rgba(34, 211, 238, 0.28);
  color: var(--text);
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: clamp(80px, 10vw, 128px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-heading > p:not(.eyebrow) {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.16rem);
}

.section-heading--center {
  margin-inline: auto;
  text-align: center;
}

.section-heading--center > p:not(.eyebrow) {
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 22px;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0.72;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--cyan);
  color: #04121a;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Buttons and links */
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.button--primary {
  background: var(--cyan);
  color: #04121a;
  box-shadow: 0 10px 34px rgba(34, 211, 238, 0.17);
}

.button--outline {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
}

.button--full {
  width: 100%;
}

.button:focus-visible,
.text-link:focus-visible,
.nav a:focus-visible,
.site-footer a:focus-visible,
.demo-replay:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(34, 211, 238, 0.34);
  outline-offset: 3px;
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--muted-strong);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 180ms ease;
}

/* Header */
.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: rgba(6, 9, 15, 0.28);
  transition:
    background-color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.site-header::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  backdrop-filter: blur(14px) saturate(130%);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(6, 9, 15, 0.82);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
}

.nav {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.nav__brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  flex: 0 0 auto;
}

.nav__brand img {
  width: 142px;
}

.nav__actions,
.nav__links {
  display: flex;
  align-items: center;
}

.nav__actions {
  min-width: 0;
  gap: 10px;
}

.nav__links {
  gap: 28px;
  margin-right: 8px;
}

.nav__links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--muted-strong);
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 180ms ease;
}

.nav__login {
  white-space: nowrap;
}

.nav__cta {
  max-width: 220px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 0;
  height: auto;
  padding-top: calc(var(--header-height) + clamp(14px, 1.8vw, 26px));
  padding-bottom: clamp(52px, 6vw, 80px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 9, 15, 0.1), transparent 48%),
    linear-gradient(180deg, transparent 70%, var(--bg) 100%);
  content: "";
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  top: 10%;
  right: -14%;
  width: min(70vw, 900px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.13), rgba(34, 211, 238, 0.035) 40%, transparent 69%);
  filter: blur(8px);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.98fr);
  align-items: start;
  gap: clamp(44px, 6vw, 86px);
}

.hero__content {
  padding-block: 6px 28px;
}

.hero__subtitle {
  max-width: 690px;
  margin-bottom: 32px;
  color: var(--muted-strong);
  font-size: clamp(1.05rem, 1.9vw, 1.24rem);
  line-height: 1.72;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}

.hero__visual {
  position: relative;
  isolation: isolate;
}

.js .hero__visual.reveal {
  transition-delay: 380ms;
}

.hero__visual::before {
  position: absolute;
  z-index: -1;
  inset: 10% 3% -2% 7%;
  border-radius: 42% 58% 48% 52%;
  background: rgba(34, 211, 238, 0.1);
  filter: blur(55px);
  content: "";
}

.hero__visual::after {
  position: absolute;
  inset: auto 4% 0;
  height: 24%;
  background: linear-gradient(180deg, transparent, rgba(6, 9, 15, 0.7));
  content: "";
  pointer-events: none;
}

.hero__visual img {
  width: 100%;
  max-height: 650px;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

.hero__stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(62px, 8vw, 98px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(13, 20, 32, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.stat {
  min-width: 0;
  padding: 28px clamp(20px, 3vw, 34px);
}

.stat + .stat {
  border-left: 1px solid var(--line);
}

.stat__value {
  margin-bottom: 8px;
  color: var(--text);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
}

.stat__label {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

/* Demo */
.demo-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(34, 211, 238, 0.07), transparent 32rem),
    var(--bg);
}

.demo-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.phone {
  position: relative;
  display: flex;
  width: min(100%, 318px);
  height: 580px;
  max-height: 580px;
  flex: none;
  align-self: start;
  margin-inline: auto;
  overflow: hidden;
  user-select: none;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 44px;
  background: linear-gradient(145deg, #202a35 0%, #070a0f 34%, #151c26 100%);
  box-shadow:
    0 45px 110px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(34, 211, 238, 0.09),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.phone__speaker {
  position: absolute;
  z-index: 4;
  top: 19px;
  left: 50%;
  width: 82px;
  height: 22px;
  border-radius: 20px;
  background: #020407;
  transform: translateX(-50%);
}

.phone__screen {
  min-height: 0;
  overflow: hidden;
  border-radius: 34px;
  background:
    radial-gradient(circle at 20% 2%, rgba(34, 211, 238, 0.08), transparent 13rem),
    #080d14;
}

.chat-header {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 10px;
  padding: 16px 15px 10px;
  border-bottom: 1px solid var(--line);
  background: rgba(13, 20, 32, 0.84);
}

.chat-header__avatar {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border: 1px solid var(--cyan-border);
  border-radius: 50%;
  background: var(--cyan-soft);
  color: var(--cyan);
  font-size: 0.88rem;
  font-weight: 700;
}

.chat-header__name,
.chat-header__status {
  margin: 0;
}

.chat-header__name {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
}

.chat-header__status {
  color: var(--muted);
  font-size: 0.69rem;
}

.chat {
  position: relative;
  min-height: 0;
  flex: 1;
  overflow: hidden;
  overscroll-behavior: auto;
  touch-action: pan-y;
}

.chat__track {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 9px;
  padding: 13px 13px 18px;
  transition: transform 480ms var(--ease-soft);
  will-change: transform;
}

.phone__screen {
  height: 100%;
  min-height: 0;
  flex: 1;
  pointer-events: none;
  overscroll-behavior: auto;
  touch-action: pan-y;
  user-select: none;
}

[data-chat-demo] .chat,
[data-chat-demo] .chat__track {
  overflow: hidden !important;
  overscroll-behavior: none;
}

@media (prefers-reduced-motion: reduce) {
  .chat__track {
    transition: none;
  }
}

.chat-message,
.chat-card {
  max-width: 86%;
  font-size: 0.82rem;
  line-height: 1.48;
}

.chat-message {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
}

.chat-message p {
  margin: 0;
}

.chat-message--sofi {
  align-self: flex-start;
  border-bottom-left-radius: 5px;
  background: #111a27;
  color: #dbe4ec;
}

.chat-message--user {
  align-self: flex-end;
  border-color: rgba(34, 211, 238, 0.17);
  border-bottom-right-radius: 5px;
  background: #0b3843;
  color: #e8fbfe;
}

.chat-message--audio {
  width: 86%;
}

.audio-message {
  display: grid;
  grid-template-columns: 29px 1fr auto;
  align-items: center;
  gap: 8px;
}

.audio-message__play {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  padding: 0 0 0 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  color: var(--text);
  font-size: 0.65rem;
  pointer-events: none;
}

.audio-message__duration {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.67rem;
}

.waveform {
  display: flex;
  height: 30px;
  align-items: center;
  gap: 2px;
  overflow: hidden;
}

.waveform span {
  width: 2px;
  height: 34%;
  flex: 1 1 2px;
  border-radius: 10px;
  background: rgba(244, 247, 250, 0.72);
  transform-origin: center;
}

.waveform span:nth-child(3n + 1) { height: 72%; }
.waveform span:nth-child(4n + 2) { height: 96%; }
.waveform span:nth-child(5n) { height: 52%; }

.chat-transcription {
  margin-top: 9px !important;
  color: rgba(232, 251, 254, 0.74);
  font-size: 0.72rem;
  font-style: italic;
}

.chat-card {
  display: grid;
  align-self: stretch;
  gap: 7px;
  max-width: 100%;
  padding: 15px;
  border: 1px solid var(--cyan-border);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.12), rgba(13, 20, 32, 0.96));
  box-shadow: 0 0 32px rgba(34, 211, 238, 0.09);
}

.chat-card__label {
  color: var(--muted-strong);
  font-size: 0.72rem;
}

.chat-card strong {
  color: var(--text);
  font-size: 1.32rem;
  letter-spacing: -0.04em;
}

.chat-card button {
  min-height: 34px;
  padding: 0;
  background: transparent;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 700;
  text-align: left;
  pointer-events: none;
}

.demo-replay {
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted-strong);
  font-size: 0.79rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease;
}

/* Result cards */
.results-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.result-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(16, 26, 40, 0.98), rgba(9, 14, 22, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.result-card::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 70px rgba(34, 211, 238, 0.018);
  content: "";
  pointer-events: none;
}

.result-card__visual {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #080d14;
}

.result-card__visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(6, 9, 15, 0.55) 100%);
  content: "";
}

.result-card__visual img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  opacity: 0.97;
  filter: saturate(0.97) contrast(1.02);
  transition: transform var(--duration-slow) var(--ease-soft);
}

@media (hover: hover) {
  .result-card:hover .result-card__visual img {
    transform: scale(1.02);
  }
}

.result-card__copy {
  position: relative;
  z-index: 2;
  padding: 30px;
}

.result-card__copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.mini-timeline,
.budget-counter,
.mini-chat,
.profit-chart {
  position: absolute;
  z-index: 2;
}

.mini-timeline {
  top: 27px;
  left: 28px;
  display: grid;
  width: min(76%, 270px);
  gap: 3px;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  background: rgba(7, 12, 19, 0.83);
  box-shadow: var(--shadow-md);
  list-style: none;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.mini-timeline li {
  position: relative;
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 9px 0 20px;
  color: var(--muted-strong);
  font-size: 0.75rem;
}

.mini-timeline li::before {
  position: absolute;
  left: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  content: "";
}

.mini-timeline i {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.13);
  color: var(--green);
  font-size: 0.67rem;
  font-style: normal;
}

.budget-counter {
  right: 27px;
  bottom: 27px;
  display: flex;
  width: min(78%, 300px);
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  padding: 17px;
  border: 1px solid var(--cyan-border);
  border-radius: 15px;
  background: rgba(8, 13, 20, 0.86);
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.4), 0 0 35px rgba(34, 211, 238, 0.08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.budget-counter__amount {
  color: var(--text);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.05em;
}

.budget-counter__badge {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.13);
  color: var(--green);
  font-size: 0.69rem;
  font-weight: 700;
}

.mini-chat {
  top: 27px;
  right: 27px;
  display: grid;
  width: min(82%, 315px);
  gap: 8px;
  font-size: 0.72rem;
  line-height: 1.4;
}

.mini-chat__incoming,
.mini-chat__reply {
  width: 84%;
  padding: 11px 12px;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.mini-chat__incoming {
  justify-self: start;
  border: 1px solid var(--line-strong);
  border-bottom-left-radius: 4px;
  background: rgba(13, 20, 32, 0.9);
  color: var(--muted-strong);
}

.mini-chat__reply {
  justify-self: end;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-bottom-right-radius: 4px;
  background: rgba(11, 56, 67, 0.92);
  color: #dffafe;
}

.profit-chart {
  right: 24px;
  bottom: 18px;
  width: min(82%, 350px);
  overflow: visible;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

.profit-chart__grid {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1;
}

.profit-chart__line {
  fill: none;
  stroke: var(--cyan);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
  vector-effect: non-scaling-stroke;
}

/* How it works */
.how-section {
  background:
    radial-gradient(circle at 82% 35%, rgba(34, 211, 238, 0.055), transparent 27rem),
    var(--bg);
}

.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.78fr);
  align-items: center;
  gap: clamp(56px, 8vw, 110px);
}

.steps-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  padding: 26px 0;
}

.step + .step {
  border-top: 1px solid var(--line);
}

.step__number {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--cyan-border);
  border-radius: 13px;
  background: var(--cyan-soft);
  color: var(--cyan);
  font-size: 0.74rem;
  font-weight: 700;
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.how-visual {
  position: relative;
}

.how-visual::before {
  position: absolute;
  z-index: -1;
  inset: 13% -8% -6% 12%;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.08);
  filter: blur(55px);
  content: "";
}

.how-visual img {
  width: 100%;
  max-height: 670px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
}

/* Shared success */
.shared-success {
  padding-block: clamp(72px, 9vw, 108px);
  border-block: 1px solid var(--line);
  background:
    linear-gradient(100deg, rgba(34, 211, 238, 0.045), transparent 45%),
    #0a111a;
}

.shared-success__inner {
  max-width: 900px;
  text-align: center;
}

.shared-success__inner h2 {
  margin-inline: auto;
}

.shared-success__inner > p {
  max-width: 740px;
  margin: 0 auto 30px;
  color: var(--muted-strong);
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.check-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 30px;
  margin: 0;
  padding: 0;
  color: var(--muted-strong);
  font-size: 0.9rem;
  font-weight: 600;
  list-style: none;
}

.check-list li::first-letter {
  color: var(--green);
}

/* Founders and form */
.founders-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 0% 80%, rgba(34, 211, 238, 0.055), transparent 30rem),
    var(--bg-deep);
}

.founders-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(380px, 0.78fr);
  align-items: start;
  gap: clamp(48px, 7vw, 92px);
}

.founders-copy > p:not(.eyebrow) {
  max-width: 670px;
  color: var(--muted-strong);
  font-size: 1.04rem;
}

.founders-visual {
  position: relative;
  margin-top: 38px;
}

.founders-visual::before {
  position: absolute;
  z-index: -1;
  inset: 20% 12% -2% 7%;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.075);
  filter: blur(48px);
  content: "";
}

.founders-visual img {
  width: 100%;
  max-height: 470px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.lead-panel {
  position: sticky;
  top: calc(var(--header-height) + 30px);
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(16, 26, 40, 0.97), rgba(8, 13, 20, 0.98));
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.lead-panel::before {
  position: absolute;
  z-index: -1;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.18), transparent 28%, transparent 70%, rgba(34, 211, 238, 0.05));
  content: "";
  opacity: 0.55;
}

.lead-form__heading {
  margin-bottom: 26px;
}

.lead-form__heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-field {
  display: grid;
  gap: 8px;
  margin-bottom: 17px;
}

.form-field label {
  color: var(--muted-strong);
  font-size: 0.8rem;
  font-weight: 600;
}

.form-field input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  outline: 0;
  background: rgba(5, 9, 15, 0.68);
  color: var(--text);
  font-size: 16px;
  line-height: 1.2;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.form-field input:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.form-field input:focus {
  border-color: var(--cyan);
  background: rgba(5, 9, 15, 0.88);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.09);
}

.form-field input[aria-invalid="true"] {
  border-color: rgba(251, 113, 133, 0.72);
}

.form-field small {
  color: #778697;
  font-size: 0.7rem;
}

.form-error {
  min-height: 1em;
  color: var(--danger);
  font-size: 0.7rem;
  line-height: 1.35;
}

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

.lead-form__status {
  min-height: 1.4em;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  text-align: center;
}

.lead-form.is-submitting .button[type="submit"] {
  cursor: wait;
  opacity: 0.72;
}

.lead-success {
  min-height: 500px;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.lead-success:not([hidden]) {
  display: grid;
  gap: 20px;
}

.lead-success__icon {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid rgba(52, 211, 153, 0.32);
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.12);
  color: var(--green);
  font-size: 1.8rem;
  box-shadow: 0 0 36px rgba(52, 211, 153, 0.1);
}

.lead-success h3 {
  max-width: 310px;
  margin: 0;
}

/* Credits and footer */
.tech-credit {
  padding-block: 28px;
  border-top: 1px solid var(--line);
  background: #070b11;
}

.tech-credit__inner {
  text-align: center;
}

.tech-credit p {
  margin: 0;
  color: #667382;
  font-size: 0.75rem;
  letter-spacing: 0.015em;
}

.site-footer {
  padding: 54px 0 max(24px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: #05080d;
}

.site-footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
  padding-bottom: 42px;
}

.site-footer__brand img {
  width: 128px;
  margin-bottom: 14px;
}

.site-footer__brand p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
}

.site-footer__nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--muted-strong);
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 180ms ease;
}

.site-footer__bottom {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.site-footer__bottom p {
  margin: 0;
  color: #647180;
  font-size: 0.75rem;
}

/* JS-driven reveals and chat states */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--duration-reveal) var(--ease-out), transform var(--duration-reveal) var(--ease-out);
  }

  .js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .js [data-chat-demo] [data-chat-step]:not(.is-visible) {
    position: absolute;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }

  .js [data-chat-demo] [data-chat-step].is-visible {
    animation: chat-step-in 360ms var(--ease) both;
  }

  @keyframes chat-step-in {
    from {
      opacity: 0;
      transform: translateY(10px) scale(0.99);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .waveform span {
    animation: waveform 900ms ease-in-out infinite alternate;
  }

  .waveform span:nth-child(2n) { animation-delay: -240ms; }
  .waveform span:nth-child(3n) { animation-delay: -470ms; }
  .waveform span:nth-child(5n) { animation-delay: -680ms; }

  .mini-timeline i {
    animation: check-cycle 5s ease-in-out infinite;
  }

  .mini-timeline li:nth-child(2) i { animation-delay: 0.5s; }
  .mini-timeline li:nth-child(3) i { animation-delay: 1s; }
  .mini-timeline li:nth-child(4) i { animation-delay: 1.5s; }
  .mini-timeline li:nth-child(5) i { animation-delay: 2s; }

  .budget-counter__badge {
    animation: approved-pulse 3.6s ease-in-out infinite;
  }

  .mini-chat__incoming {
    animation: message-in 4.8s var(--ease) infinite;
  }

  .mini-chat__reply {
    animation: message-reply 4.8s var(--ease) infinite;
  }

  .profit-chart__line {
    stroke-dasharray: 430;
    stroke-dashoffset: 430;
    animation: chart-draw 5s var(--ease) infinite;
  }

  .hero__visual img {
    animation: hero-breathe 8s ease-in-out infinite alternate;
  }
}

@keyframes waveform {
  from { transform: scaleY(0.45); opacity: 0.55; }
  to { transform: scaleY(1); opacity: 1; }
}

@keyframes check-cycle {
  0%, 12% { opacity: 0.22; transform: scale(0.82); }
  20%, 76% { opacity: 1; transform: scale(1); }
  90%, 100% { opacity: 0.22; transform: scale(0.82); }
}

@keyframes approved-pulse {
  0%, 65%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(52, 211, 153, 0); }
  74% { transform: scale(1.04); box-shadow: 0 0 24px rgba(52, 211, 153, 0.17); }
}

@keyframes message-in {
  0%, 12% { opacity: 0; transform: translateY(10px); }
  22%, 82% { opacity: 1; transform: translateY(0); }
  92%, 100% { opacity: 0; transform: translateY(-4px); }
}

@keyframes message-reply {
  0%, 31% { opacity: 0; transform: translateY(10px); }
  42%, 82% { opacity: 1; transform: translateY(0); }
  92%, 100% { opacity: 0; transform: translateY(-4px); }
}

@keyframes chart-draw {
  0%, 12% { stroke-dashoffset: 430; opacity: 0.35; }
  42%, 80% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0.42; }
}

@keyframes hero-breathe {
  from { transform: translateY(0); }
  to { transform: translateY(-7px); }
}

/* Hover states only where hover exists */
@media (hover: hover) and (pointer: fine) {
  .button--primary:hover {
    box-shadow: 0 14px 42px rgba(34, 211, 238, 0.28);
    transform: translateY(-2px);
  }

  .button--outline:hover {
    border-color: var(--cyan-border);
    background: var(--cyan-soft);
    color: var(--cyan);
    transform: translateY(-1px);
  }

  .text-link:hover,
  .nav__links a:hover,
  .site-footer__nav a:hover {
    color: var(--cyan);
  }

  .demo-replay:hover {
    border-color: var(--cyan-border);
    background: var(--cyan-soft);
    color: var(--cyan);
  }

  .result-card {
    transition: transform 240ms var(--ease), border-color 240ms ease, box-shadow 240ms ease;
  }

  .result-card:hover {
    border-color: rgba(34, 211, 238, 0.18);
    box-shadow: 0 22px 66px rgba(0, 0, 0, 0.22);
    transform: translateY(-4px);
  }
}

/* Tablet landscape and smaller desktop */
@media (max-width: 1040px) {
  :root {
    --header-height: 74px;
  }

  .nav__links {
    gap: 18px;
    margin-right: 2px;
  }

  .nav__cta {
    max-width: 190px;
  }

  .hero {
    min-height: auto;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.85fr);
    gap: 38px;
  }

  .hero__visual img {
    max-height: 560px;
  }

  .how-grid,
  .founders-grid {
    gap: 48px;
  }
}

/* Tablet portrait */
@media (max-width: 860px) {
  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .nav__links {
    display: none;
  }

  .hero {
    padding-top: calc(var(--header-height) + 74px);
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero__content {
    max-width: 760px;
    padding-block: 0;
  }

  .hero__visual {
    width: min(100%, 680px);
    margin-inline: auto;
  }

  .hero__visual img {
    max-height: 620px;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .result-card {
    display: grid;
    grid-template-columns: minmax(300px, 0.95fr) minmax(260px, 0.8fr);
    align-items: stretch;
  }

  .result-card__visual {
    min-height: 310px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .result-card__visual img {
    min-height: 310px;
  }

  .result-card__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .how-grid,
  .founders-grid {
    grid-template-columns: 1fr;
  }

  .how-content,
  .founders-copy {
    max-width: 760px;
  }

  .how-visual {
    width: min(100%, 640px);
    margin-inline: auto;
  }

  .how-visual img {
    max-height: 600px;
  }

  .founders-visual {
    width: min(100%, 720px);
  }

  .lead-panel {
    position: relative;
    top: auto;
    width: min(100%, 620px);
  }
}

/* Phone landscape and large phone */
@media (max-width: 680px) {
  :root {
    --header-height: 68px;
  }

  .section {
    padding-block: 72px;
  }

  .section-heading {
    margin-bottom: 36px;
  }

  .nav {
    gap: 10px;
  }

  .nav__brand img {
    width: 106px;
  }

  .nav__actions {
    gap: 7px;
  }

  .nav .button {
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.76rem;
  }

  .nav__cta {
    max-width: 168px;
  }

  .hero {
    padding-top: calc(var(--header-height) + 58px);
    padding-bottom: 70px;
  }

  .hero__subtitle {
    font-size: 1rem;
    line-height: 1.65;
  }

  .hero__actions {
    align-items: stretch;
  }

  .hero__actions .button {
    width: 100%;
  }

  .hero__actions .text-link {
    justify-content: center;
  }

  .hero__visual img {
    max-height: 510px;
    border-radius: 18px;
  }

  .hero__stats {
    grid-template-columns: 1fr;
    margin-top: 52px;
  }

  .stat {
    padding: 23px 24px;
  }

  .stat + .stat {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .phone {
    width: min(100%, 318px);
    border-radius: 38px;
  }

  .phone__screen {
    min-height: 0;
    border-radius: 29px;
  }

  .chat {
    min-height: 573px;
  }

  .results-grid {
    gap: 18px;
  }

  .result-card {
    display: block;
    border-radius: 20px;
  }

  .result-card__visual {
    min-height: 255px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .result-card__visual img {
    min-height: 255px;
  }

  .result-card__copy {
    padding: 25px;
  }

  .mini-timeline {
    top: 20px;
    left: 20px;
  }

  .budget-counter {
    right: 20px;
    bottom: 20px;
  }

  .mini-chat {
    top: 20px;
    right: 20px;
  }

  .profit-chart {
    right: 16px;
  }

  .step {
    grid-template-columns: 46px 1fr;
    gap: 15px;
    padding: 23px 0;
  }

  .step__number {
    width: 42px;
    height: 42px;
  }

  .shared-success__inner {
    text-align: left;
  }

  .shared-success__inner > p {
    margin-left: 0;
  }

  .check-list {
    display: grid;
    justify-content: start;
    gap: 10px;
  }

  .founders-visual img,
  .how-visual img {
    border-radius: 18px;
  }

  .lead-panel {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .lead-success {
    min-height: 420px;
  }

  .site-footer__top {
    flex-direction: column;
    padding-bottom: 30px;
  }
}

/* Narrow phones, including 360px */
@media (max-width: 420px) {
  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .nav__brand img {
    width: 92px;
  }

  .nav__actions {
    gap: 5px;
  }

  .nav .button {
    padding-inline: 9px;
    font-size: 0.7rem;
    letter-spacing: -0.015em;
  }

  .nav__login {
    min-width: 68px;
  }

  .nav__cta {
    max-width: 145px;
  }

  h1 {
    font-size: clamp(2.2rem, 12vw, 3.25rem);
  }

  h2 {
    font-size: clamp(1.85rem, 10vw, 2.55rem);
  }

  .eyebrow {
    font-size: 0.67rem;
    letter-spacing: 0.095em;
  }

  .hero__grid {
    gap: 34px;
  }

  .phone {
    padding: 8px;
    border-radius: 34px;
  }

  .phone__speaker {
    top: 16px;
    width: 70px;
    height: 19px;
  }

  .phone__screen {
    min-height: 0;
    border-radius: 27px;
  }

  .chat-header {
    min-height: 78px;
    padding-inline: 15px;
  }

  .chat {
    min-height: 552px;
    gap: 10px;
    padding: 17px 12px 22px;
  }

  .chat-message,
  .chat-card {
    font-size: 0.75rem;
  }

  .chat-message--audio {
    width: 91%;
  }

  .chat-transcription {
    font-size: 0.66rem;
  }

  .result-card__visual,
  .result-card__visual img {
    min-height: 235px;
  }

  .mini-timeline {
    width: calc(100% - 36px);
    max-width: 250px;
  }

  .budget-counter {
    width: calc(100% - 36px);
  }

  .mini-chat {
    width: calc(100% - 36px);
  }

  .step {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 13px;
  }

  .step__number {
    width: 38px;
    height: 38px;
  }

  .lead-panel {
    padding-inline: 17px;
  }

  .site-footer__nav {
    width: 100%;
    justify-content: space-between;
  }
}

/* Phone landscape: preserve compact vertical rhythm */
@media (max-height: 520px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 40px);
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.75fr);
    gap: 28px;
  }

  .hero__visual img {
    max-height: 390px;
  }

  .hero__stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat + .stat {
    border-top: 0;
    border-left: 1px solid var(--line);
  }
}

/* Reduced motion: all information stays visible and static */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal,
  [data-chat-step] {
    opacity: 1 !important;
    transform: none !important;
  }

  .profit-chart__line {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }
}

/* Final overflow hardening */
.hero__glow {
  right: 0;
}

.honeypot input {
  width: 1px !important;
  min-width: 0 !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.how-section {
  overflow: hidden;
}

/* ===== Demo de chat en el hero (flujo real de Sofi) ===== */

.hero__visual--demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.hero__visual--demo::after {
  content: none;
}

.hero__visual--demo .phone__screen {
  min-height: 0;
}

.hero__visual--demo .chat {
  min-height: 0;
  padding-bottom: 24px;
}

.chat-header__id {
  min-width: 0;
  flex: 1;
}

.ot-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface-strong);
  color: var(--muted-strong);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.ot-chip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 0 3px rgba(154, 167, 181, 0.16);
}

.ot-chip--trabajo {
  border-color: var(--cyan-border);
  color: var(--cyan);
}

.ot-chip--trabajo .ot-chip__dot {
  background: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-soft);
}

.ot-chip--espera {
  border-color: rgba(251, 191, 36, 0.36);
  color: #fbd38a;
}

.ot-chip--espera .ot-chip__dot {
  background: #fbbf24;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.16);
}

.ot-chip--aprob {
  border-color: rgba(52, 211, 153, 0.4);
  color: var(--green);
}

.ot-chip--aprob .ot-chip__dot {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.16);
}

@keyframes ot-bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.ot-chip.is-bump {
  animation: ot-bump 0.4s var(--ease);
}

.chat-sys {
  align-self: center;
  margin: 0;
  padding: 4px 13px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
}

.chat-message--client {
  align-self: flex-start;
  border-color: rgba(37, 211, 102, 0.3);
  border-bottom-left-radius: 5px;
  background: rgba(37, 211, 102, 0.1);
  color: #e9fbf0;
}

.chat-message__who {
  display: block;
  margin-bottom: 3px;
  color: #25d366;
  font-size: 0.64rem;
  font-weight: 700;
}

.chat-card--data {
  gap: 10px;
}

.chat-card__head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.chat-card__icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  place-items: center;
  border: 1px solid var(--cyan-border);
  border-radius: 9px;
  background: var(--cyan-soft);
  color: var(--cyan);
}

.chat-card__title {
  flex: 1;
  color: var(--text);
  font-size: 0.79rem;
  font-weight: 700;
}

.chat-card__tag {
  padding: 3px 8px;
  border-radius: 7px;
  background: rgba(52, 211, 153, 0.14);
  color: var(--green);
  font-size: 0.62rem;
  font-weight: 700;
}

.chat-card__rows {
  display: grid;
  gap: 7px;
}

.chat-card__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted-strong);
  font-size: 0.74rem;
}

.chat-card__row small {
  color: var(--muted);
  font-size: 0.64rem;
}

.chat-card__row b {
  color: var(--text);
  font-weight: 600;
}

.chat-card__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px solid var(--line-strong);
  color: var(--muted-strong);
  font-size: 0.76rem;
}

.chat-card__total strong {
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.chat-done {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  margin-top: 2px;
  padding: 5px 11px;
  border-radius: 8px;
  background: rgba(52, 211, 153, 0.13);
  color: var(--green);
  font-size: 0.69rem;
  font-weight: 700;
}

.step__icon {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  margin-right: 10px;
  vertical-align: -9px;
  border: 1px solid var(--cyan-border);
  border-radius: 9px;
  background: var(--cyan-soft);
  color: var(--cyan);
}

/* ===== LA RED · grafo del taller (Sofi al centro) ===== */

.container--wide {
  --container: 1280px;
}

.neural {
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(66, 200, 255, 0.05), transparent 34rem),
    var(--bg);
  --blue: #42c8ff;
  --blue2: #8be0ff;
  --net-green: #55e6a5;
}

.neural::before {
  position: absolute;
  top: 12%;
  left: 50%;
  width: min(1100px, 92vw);
  height: 620px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(66, 200, 255, 0.09), transparent 70%);
  content: "";
  filter: blur(6px);
  pointer-events: none;
  transform: translateX(-50%);
}

.neural-head {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}

.neural-head h2 {
  margin-bottom: 0;
  font-family: "Archivo", "Inter", sans-serif;
  font-size: clamp(2.3rem, 4vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
}

.neural-head h2 em {
  color: var(--blue);
  font-style: normal;
}

.neural-head > p:not(.eyebrow) {
  max-width: 620px;
  margin: 1.4rem auto 0;
  color: #9fadb6;
  font-size: clamp(1rem, 1.8vw, 1.16rem);
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--net-green);
  box-shadow: 0 0 0 5px rgba(85, 230, 165, 0.08), 0 0 14px rgba(85, 230, 165, 0.5);
}

.neural-stage {
  display: grid;
  align-items: stretch;
  grid-template-columns: 1.6fr 0.92fr;
  gap: 22px;
  margin: 34px auto 0;
}

.neural-plot {
  position: relative;
  height: clamp(380px, 52vh, 500px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: radial-gradient(120% 90% at 50% 12%, rgba(20, 32, 42, 0.85), rgba(8, 11, 14, 0.96) 68%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 40px 90px -40px rgba(0, 0, 0, 0.8);
}

.neural-plot::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(62% 50% at 50% 48%, transparent 58%, rgba(6, 9, 12, 0.5));
  content: "";
  pointer-events: none;
}

#neural-canvas {
  position: absolute;
  inset: 0;
  display: block;
}

.neural-legend {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 0;
  left: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  padding: 0 16px;
}

.neural-legend .lg {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(12, 19, 25, 0.72);
  backdrop-filter: blur(8px);
  color: #a9bac4;
  cursor: pointer;
  font: 700 0.64rem/1 "Inter", system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}

.neural-legend .lg i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: hsl(var(--h) 95% 68%);
  box-shadow: 0 0 9px hsl(var(--h) 95% 62% / 0.9);
}

.neural-legend .lg:hover,
.neural-legend .lg.on {
  border-color: hsl(var(--h) 90% 62% / 0.55);
  background: hsl(var(--h) 60% 20% / 0.5);
  color: #eef8fd;
}

.neural-story {
  align-self: center;
  padding: 26px 26px 22px;
  border: 1px solid rgba(66, 200, 255, 0.26);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(16, 26, 34, 0.92), rgba(9, 15, 20, 0.92));
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 70px -34px rgba(0, 0, 0, 0.9);
  text-align: left;
}

@keyframes storyIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.neural-story.swap {
  animation: storyIn 0.5s var(--ease);
}

.story-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #7f939e;
  font: 800 0.55rem/1 "Inter", system-ui, sans-serif;
  letter-spacing: 0.16em;
}

.neural-story b {
  display: block;
  margin: 0.8rem 0 0.5rem;
  color: var(--text);
  font-size: 1.34rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.neural-story p {
  margin: 0;
  color: #93a3ad;
  font-size: 0.9rem;
  line-height: 1.6;
}

.story-path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.9rem;
}

.story-path span {
  padding: 0.34rem 0.5rem;
  border: 1px solid rgba(66, 200, 255, 0.24);
  border-radius: 7px;
  background: rgba(66, 200, 255, 0.12);
  color: #cfe7f3;
  font: 700 0.58rem/1 "Inter", system-ui, sans-serif;
  letter-spacing: 0.03em;
}

.story-path i {
  color: #4d5f6a;
  font-size: 0.6rem;
  font-style: normal;
}

.story-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.story-result {
  color: var(--net-green);
  font: 800 0.7rem/1.3 "Inter", system-ui, sans-serif;
}

.story-dots {
  display: flex;
  gap: 6px;
}

.story-dots .sd {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.story-dots .sd:hover {
  background: rgba(255, 255, 255, 0.45);
}

.story-dots .sd[aria-selected="true"] {
  background: var(--blue);
  box-shadow: 0 0 10px rgba(66, 200, 255, 0.8);
  transform: scale(1.25);
}

.neural-tip {
  position: absolute;
  z-index: 5;
  width: 250px;
  padding: 12px 14px;
  border: 1px solid rgba(66, 200, 255, 0.3);
  border-radius: 13px;
  background: rgba(10, 17, 22, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 44px -14px rgba(0, 0, 0, 0.9);
  pointer-events: none;
  text-align: left;
}

.neural-tip b {
  display: block;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 800;
}

.neural-tip span {
  display: block;
  margin-top: 0.3rem;
  color: #93a3ad;
  font-size: 0.76rem;
  line-height: 1.5;
}

.neural-tip em {
  display: inline-block;
  margin-top: 0.55rem;
  color: hsl(var(--h) 90% 74%);
  font: 800 0.52rem/1 "Inter", system-ui, sans-serif;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.neural-hint {
  position: absolute;
  z-index: 3;
  right: 20px;
  bottom: 22px;
  color: #5d707b;
  font: 700 0.58rem/1 "Inter", system-ui, sans-serif;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.neural-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 40px;
  margin-top: 34px;
  color: #8695a0;
  font-size: 0.82rem;
}

.neural-foot b {
  margin-right: 0.35rem;
  color: var(--blue);
  font-size: 1.05rem;
  font-weight: 800;
}

@media (max-width: 980px) {
  .neural-stage {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .neural-plot {
    height: min(58vh, 470px);
    border-radius: 20px;
  }

  .neural-story {
    padding: 20px;
  }

  .neural-story b {
    font-size: 1.16rem;
  }

  .neural-hint {
    display: none;
  }
}

@media (max-width: 860px) {
  .neural-plot {
    height: 400px;
  }

  .neural-legend {
    top: 12px;
    gap: 5px;
  }

  .neural-legend .lg {
    padding: 0.42rem 0.6rem;
    font-size: 0.58rem;
  }

  .neural-foot {
    gap: 10px 22px;
    font-size: 0.76rem;
  }
}

/* ===== Ajustes v4: logo, fondo hero, chat guiado, KPIs fuera del hero ===== */

.nav__brand img {
  width: 172px;
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: radial-gradient(90% 70% at 30% 0%, rgba(34, 211, 238, 0.06), transparent 60%);
  pointer-events: none;
}

.hero__bg::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 9, 15, 0.55) 0%, rgba(6, 9, 15, 0.35) 45%, var(--bg) 100%);
  content: "";
}

.hero__grid {
  position: relative;
}

.hero__visual--demo .phone__screen {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.hero__visual--demo .chat-header {
  flex-shrink: 0;
}

.hero__visual--demo .chat {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.chat-card__tag--wait {
  background: rgba(251, 191, 36, 0.14);
  color: #fbd38a;
}

.chat-shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.chat-shot {
  position: relative;
  height: 44px;
  border: 1px dashed var(--line-strong);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.chat-shot.is-filled {
  border: 1px solid var(--cyan-border);
  background:
    linear-gradient(145deg, rgba(34, 211, 238, 0.16), rgba(13, 20, 32, 0.9));
}

.chat-shot.is-filled::after {
  position: absolute;
  right: 5px;
  bottom: 4px;
  color: var(--green);
  content: "✓";
  font-size: 0.62rem;
  font-weight: 700;
}

.chat-choice {
  display: grid;
  gap: 7px;
}

.chat-choice button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted-strong);
  font-size: 0.76rem;
  font-weight: 700;
  text-align: left;
  pointer-events: none;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.chat-choice button.is-picked {
  border-color: var(--cyan-border);
  background: var(--cyan-soft);
  color: var(--cyan);
}

.chat-card__btn {
  display: block;
  width: 100%;
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid var(--cyan-border);
  border-radius: 10px;
  background: var(--cyan-soft);
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 700;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.2s var(--ease);
}

.chat-card__btn.is-pressed {
  transform: scale(0.96);
  filter: brightness(1.25);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.35);
}

.chat-card__btn[hidden] {
  display: none;
}

/* scroll interno eliminado: el track se mueve por transform */

.chat-banner {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  align-self: stretch;
  max-width: 100%;
  padding: 13px 15px;
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(52, 211, 153, 0.16), rgba(13, 20, 32, 0.94));
  box-shadow: 0 0 28px rgba(52, 211, 153, 0.1);
}

.chat-banner span {
  display: grid;
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.2);
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 700;
}

.chat-banner p {
  margin: 0;
  color: #d9f7e8;
  font-size: 0.78rem;
  line-height: 1.5;
}

.stats-section {
  padding-block: 0 clamp(70px, 9vw, 110px);
}

.stats-section .hero__stats {
  margin-top: 0;
}

.neural {
  padding-block: clamp(40px, 5vw, 64px) clamp(56px, 6.5vw, 84px);
}

@media (max-width: 1040px) {
  .nav__brand img {
    width: 126px;
  }
}

@media (max-width: 420px) {
  .nav__brand img {
    width: 106px;
  }
}
