:root {
  --bg: #0a0a0b;
  --bg-2: #0e0e10;
  --panel: #131316;
  --fg: #ffffff;
  --fg-dim: rgba(255,255,255,0.68);
  --fg-faint: rgba(255,255,255,0.4);
  --accent: #6d6dfb;
  --accent-light: #a5a5ff;
  --border: rgba(255,255,255,0.1);
  --good: #3ecf8e;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 920px; margin: 0 auto; padding: 0 26px; }
.wrap-narrow { max-width: 620px; }

h1, h2, h3 { font-weight: 800; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }

.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-light); margin: 0 0 20px;
}

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Hero ---------- */

.hero { position: relative; min-height: 88vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 60px 24px; overflow: hidden; }

.hero-glow {
  position: absolute; inset: 0;
  background: radial-gradient(90% 70% at 50% 0%, rgba(109,109,251,0.2), transparent 60%);
}

.hero-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }

.hero h1 { font-size: clamp(32px, 5.5vw, 54px); line-height: 1.1; margin-bottom: 22px; }

.hero-sub { font-size: 18px; color: var(--fg-dim); max-width: 50ch; margin: 0 auto; }

.scroll-cue { margin: 50px auto 0; width: 24px; height: 38px; border: 1.5px solid var(--fg-faint); border-radius: 14px; position: relative; }
.scroll-cue span { position: absolute; top: 7px; left: 50%; width: 3px; height: 8px; background: var(--accent-light); border-radius: 2px; transform: translateX(-50%); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 1; transform: translate(-50%,0); } 70% { opacity: 0; transform: translate(-50%,10px); } 100% { opacity:0; } }

@media (prefers-reduced-motion: reduce) { .scroll-cue span { animation: none; } }

/* ---------- Roadmap ---------- */

.roadmap {
  padding: 60px 0 120px; background: var(--bg-2); position: relative;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 28px 28px;
}

.roadmap-track { position: relative; padding-left: 76px; }

.roadmap-line { position: absolute; left: 29px; top: 6px; bottom: 6px; width: 2px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden; }
.roadmap-line-fill { width: 100%; height: 0%; background: linear-gradient(to bottom, var(--accent), var(--accent-light)); transition: height 1s cubic-bezier(0.16,1,0.3,1); }

.rstep {
  position: relative; margin-bottom: 130px;
  opacity: 0.22; filter: blur(2px); transform: translateY(10px) scale(0.985);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), filter 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}

.rstep.active { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }

.rstep:last-child { margin-bottom: 0; }

.rstep-dot {
  position: absolute; left: -76px; top: 0; width: 60px; height: 60px; border-radius: 50%;
  background: var(--panel); border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: var(--fg-faint);
  transition: all 0.5s ease;
}

.rstep.active .rstep-dot { border-color: var(--accent); color: var(--accent-light); background: rgba(109,109,251,0.12); animation: dotPulse 2.6s ease-in-out infinite; }

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(109,109,251,0.35), 0 0 24px rgba(109,109,251,0.35); }
  50% { box-shadow: 0 0 0 8px rgba(109,109,251,0), 0 0 30px rgba(109,109,251,0.5); }
}

@media (prefers-reduced-motion: reduce) { .rstep.active .rstep-dot { animation: none; box-shadow: 0 0 24px rgba(109,109,251,0.35); } }

.rstep h2 { font-size: clamp(22px, 3.4vw, 30px); margin-bottom: 12px; }
.rstep p { font-size: 16px; color: var(--fg-dim); max-width: 60ch; margin: 0; }

.stat-band .rstep-body {
  position: relative; background: linear-gradient(135deg, rgba(109,109,251,0.16), rgba(165,165,255,0.04));
  border: 1px solid rgba(109,109,251,0.4); border-radius: 18px; padding: 30px 34px; overflow: hidden;
}
.stat-band .rstep-body::before {
  content: ''; position: absolute; inset: -60% -20%; z-index: 0;
  background: conic-gradient(from 0deg, var(--accent), transparent 25%, transparent 75%, var(--accent-light), var(--accent));
  filter: blur(40px); opacity: 0.28; animation: glowSpin 9s linear infinite;
}
.stat-band .stat-number, .stat-band .stat-text { position: relative; z-index: 1; }
.stat-band .stat-number {
  font-size: clamp(42px, 7vw, 66px); font-weight: 900; letter-spacing: -0.02em; margin: 0 0 10px;
  background: linear-gradient(90deg, #fff, var(--accent-light)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-band .stat-text { margin: 0; color: var(--fg-dim); font-size: 16px; max-width: 52ch; }
.stat-band .rstep-dot { border-color: var(--accent); background: rgba(109,109,251,0.14); color: var(--accent-light); font-size: 22px; }
.stat-band.active .rstep-dot { animation: dotPulse 2.6s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) { .stat-band .rstep-body::before { animation: none; } }

.feature-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.feature-chip {
  font-size: 14.5px; font-weight: 600; padding: 10px 16px; border-radius: 999px;
  background: rgba(109,109,251,0.1); border: 1px solid rgba(109,109,251,0.3); color: var(--accent-light);
}

@media (max-width: 640px) {
  .roadmap-track { padding-left: 56px; }
  .roadmap-line { left: 21px; }
  .rstep-dot { left: -56px; width: 44px; height: 44px; font-size: 17px; }
  .rstep { margin-bottom: 90px; }
}

/* ---------- Demos ---------- */

.section { padding: 90px 0; }

.section-title { font-size: clamp(24px, 3.6vw, 34px); text-align: center; margin-bottom: 16px; max-width: 26ch; margin-left: auto; margin-right: auto; }
.section-sub { text-align: center; color: var(--fg-dim); font-size: 15.5px; max-width: 46ch; margin: 0 auto 70px; }

.demo-row { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; margin-bottom: 120px; }
.demo-row:last-child { margin-bottom: 0; }
.demo-row.reverse { direction: rtl; }
.demo-row.reverse > * { direction: ltr; }

.demo-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-light); margin: 0 0 12px; }
.demo-copy h3 { font-size: clamp(20px, 2.6vw, 26px); margin-bottom: 14px; }
.demo-copy p { font-size: 15.5px; color: var(--fg-dim); margin: 0; }

.demo-visual { display: flex; justify-content: center; perspective: 1400px; }

/* ---- phone mock (Ejemplo 1: generative capability, no literal product screen) ---- */

.phone-frame {
  width: 280px; background: var(--panel); border: 1px solid var(--border); border-radius: 32px;
  padding: 34px 18px 22px; box-shadow: 0 40px 80px -30px rgba(0,0,0,0.7);
  position: relative; transform-style: preserve-3d; will-change: transform;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}

.phone-notch { position: absolute; margin-top: -30px; margin-left: 90px; width: 90px; height: 16px; background: var(--bg); border-radius: 0 0 12px 12px; }

.chat-bubble { font-size: 12.5px; padding: 10px 14px; border-radius: 14px; margin-bottom: 10px; max-width: 90%; line-height: 1.4; }
.chat-bubble.user { background: var(--accent); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.chat-bubble.bot { background: rgba(255,255,255,0.06); color: var(--fg-dim); border-bottom-left-radius: 4px; }

.mini-site { margin-top: 12px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: var(--bg); padding: 10px; }
.mini-site-bar { width: 40%; height: 6px; border-radius: 3px; background: var(--accent); margin-bottom: 10px; }
.mini-site-hero { height: 44px; border-radius: 6px; background: linear-gradient(135deg, rgba(109,109,251,0.35), rgba(165,165,255,0.15)); margin-bottom: 10px; position: relative; overflow: hidden; }
.mini-site-line { height: 6px; border-radius: 3px; background: rgba(255,255,255,0.12); margin-bottom: 6px; }
.mini-site-line.w70 { width: 70%; } .mini-site-line.w40 { width: 40%; }

/* ---- browser mock (Ejemplo 2 + 3: real product screenshots) ---- */

.ask-pill {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: #fff;
  background: linear-gradient(135deg, var(--accent), #8a8aff); padding: 9px 16px 9px 14px; border-radius: 999px;
  margin-bottom: 16px; box-shadow: 0 10px 24px -8px rgba(109,109,251,0.6); max-width: 92%;
}
.ask-pill::before { content: '💬'; font-size: 13px; }

.browser-mock {
  position: relative; width: 100%; max-width: 460px; border-radius: 14px; overflow: hidden;
  background: var(--panel); border: 1px solid var(--border);
  box-shadow: 0 40px 90px -28px rgba(0,0,0,0.8);
  transform-style: preserve-3d; will-change: transform;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s ease;
}

.browser-mock::before {
  content: ''; position: absolute; inset: -40%; z-index: -1;
  background: conic-gradient(from 0deg, var(--accent), transparent 28%, transparent 72%, var(--accent-light), var(--accent));
  filter: blur(28px); opacity: 0.45; animation: glowSpin 7s linear infinite;
}

.browser-mock:hover, .browser-mock:focus-within { box-shadow: 0 50px 110px -24px rgba(109,109,251,0.45); }

@keyframes glowSpin { to { transform: rotate(360deg); } }

.browser-chrome {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border); position: relative; z-index: 1;
}
.chrome-dots { display: flex; gap: 6px; flex-shrink: 0; }
.chrome-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.16); }
.chrome-url {
  font-family: ui-monospace, 'SF Mono', Consolas, monospace; font-size: 11px; color: var(--fg-faint);
  background: rgba(255,255,255,0.04); border-radius: 6px; padding: 5px 12px; letter-spacing: 0.01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1;
}

.browser-shot { position: relative; overflow: hidden; background: var(--bg); }
.browser-shot img { display: block; width: 100%; height: auto; }

.browser-shot::after {
  content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(75deg, transparent, rgba(255,255,255,0.14), transparent);
  transform: skewX(-18deg); transition: left 1.1s cubic-bezier(0.16,1,0.3,1);
}
.browser-mock.shine .browser-shot::after { left: 130%; }

@media (prefers-reduced-motion: reduce) {
  .browser-mock::before { animation: none; }
  .browser-shot::after { transition: none; }
  .browser-mock, .phone-frame { transition: none !important; transform: none !important; }
}

.report-card { margin-top: 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); padding: 14px; }
.report-row { display: flex; justify-content: space-between; font-size: 12.5px; padding: 7px 0; border-bottom: 1px solid var(--border); color: var(--fg-dim); }
.report-row:last-child { border-bottom: none; }
.report-row b { color: var(--fg); font-variant-numeric: tabular-nums; }
.report-row.good b { color: var(--good); }

@media (max-width: 760px) {
  .demo-row, .demo-row.reverse { grid-template-columns: 1fr; direction: ltr; }
  .demo-visual { perspective: none; }
}

/* ---------- CTA ---------- */

.cta-section { text-align: center; background: var(--bg-2); }
.cta-section p { color: var(--fg-dim); font-size: 16px; }
