/* ============================================================
   SGA Desktop — landing
   Paleta: dark premium · acento azul logo + teal logo
   Tipografía: Geist + Geist Mono
   ============================================================ */

:root {
  --bg:        #060B14;
  --bg-2:      #0B1221;
  --surface:   #111B2E;
  --surface-2: #1A2744;
  --line:      #1A2744;
  --line-2:    #2A3754;
  --fg:        #E8ECF1;
  --fg-2:      #8B9BB5;
  --muted:     #4A5568;
  --muted-2:   #3A4558;

  --accent:    #2569DF;
  --accent-2:  #3272E3;
  --ok:        #3B82F6;
  --warn:      #F59E0B;
  --danger:    #EF4444;
  --plum:      #1663EC;

  --radius:    14px;
  --radius-sm: 8px;
  --shadow-1:  0 1px 0 rgba(255,255,255,.04) inset, 0 12px 40px rgba(0,0,0,.45);
  --shadow-2:  0 30px 80px rgba(0,0,0,.55), 0 1px 0 rgba(255,255,255,.04) inset;
  --max:       1240px;

  --ease:      cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-feature-settings: 'ss01','cv11';
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
em { font-style: normal; color: var(--fg); }
.mono { font-family: 'Geist Mono', ui-monospace, monospace; font-feature-settings: 'ss01'; }
.muted { color: var(--muted); }
.ok    { color: var(--ok); }
.accent{ color: var(--accent-2); }

/* ============= Reveal ============= */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ============= Buttons ============= */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .25s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { padding: 7px 12px; font-size: 13px; }
.btn--lg { padding: 13px 22px; font-size: 15px; }
.btn--block { width: 100%; justify-content: center; }
.btn--primary {
  background: var(--fg);
  color: #0a0a0a;
}
.btn--primary:hover { background: #fff; }
.btn--ghost {
  background: rgba(255,255,255,0.04);
  border-color: var(--line-2);
  color: var(--fg);
}
.btn--ghost:hover { background: rgba(255,255,255,0.08); }
.btn__suffix {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: rgba(0,0,0,0.5);
  background: rgba(0,0,0,0.06);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
}
.btn--ghost .btn__suffix { color: var(--muted); background: rgba(255,255,255,.04); }

.link-muted { color: var(--fg-2); font-size: 13px; }
.link-muted:hover { color: var(--fg); }

/* ============= Nav ============= */
.nav {
  position: sticky; top: 0; z-index: 100;
  transition: background .25s var(--ease), border-color .25s var(--ease), backdrop-filter .25s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav--scrolled {
  background: rgba(8,9,11,0.72);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.nav__links { display: flex; gap: 28px; justify-self: center; }
.nav__links a {
  font-size: 13.5px;
  color: var(--fg-2);
  transition: color .2s;
}
.nav__links a:hover { color: var(--fg); }
.nav__cta { display: flex; gap: 14px; align-items: center; }

.wordmark {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.wordmark__glyph {
  width: 26px; height: 26px;
  border-radius: 6px;
  object-fit: contain;
  background: rgba(255,255,255,0.04);
  padding: 2px;
}
.wordmark__suffix {
  color: var(--muted);
  font-weight: 400;
  font-family: 'Geist Mono', monospace;
  font-size: 0.78em;
  letter-spacing: 0;
  margin-left: 2px;
}

/* ============= Hero ============= */
.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 24px 60px;
  display: grid;
  grid-template-columns: 1.05fr 1.25fr;
  gap: 56px;
  align-items: center;
  min-height: 720px;
}
.hero__bg {
  position: absolute; inset: -200px 0 -200px 0;
  pointer-events: none;
  z-index: -1;
}
.hero__grid {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px) 0 0/72px 72px,
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px) 0 0/72px 72px;
  mask-image: radial-gradient(ellipse 80% 60% at 60% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 60% 40%, #000 30%, transparent 80%);
}
.hero__glow {
  position: absolute;
  width: 720px; height: 720px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .35;
  animation: drift 18s ease-in-out infinite;
}
.hero__glow--a { background: var(--accent); top: -200px; right: -180px; }
.hero__glow--b { background: var(--accent-2); bottom: -240px; left: -240px; opacity: .2; animation-delay: -8s; }
@keyframes drift {
  0%,100% { transform: translate(0,0); }
  50%     { transform: translate(40px,-30px); }
}

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--fg-2);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  width: fit-content;
}
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.dot--live { background: var(--ok); box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: pulse 1.8s infinite; }
.dot--accent { background: var(--accent-2); }
.dot--idle { background: var(--muted); }
.dot--ok { background: var(--ok); }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74,222,128,.6); }
  70%  { box-shadow: 0 0 0 6px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

.hero__title {
  margin: 22px 0 0;
  font-size: clamp(40px, 5.4vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 600;
  text-wrap: balance;
}
.hero__line {
  display: block;
  overflow: hidden;
}
.hero__line-inner {
  display: inline-block;
  background: linear-gradient(180deg, #ffffff 0%, #b9bdc6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__line:nth-child(2) .hero__line-inner {
  background: linear-gradient(180deg, #6b7280 0%, #2a2e36 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  margin: 24px 0 0;
  max-width: 480px;
  color: var(--fg-2);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.005em;
}
.hero__sub em { color: var(--fg); font-weight: 500; }

.hero__cta {
  margin: 32px 0 0;
  display: flex; gap: 12px; flex-wrap: wrap;
}
.hero__trust {
  margin: 36px 0 0;
  display: flex; gap: 22px; flex-wrap: wrap;
}
.trust-item {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  font-family: 'Geist Mono', monospace;
}
.trust-item__icon { color: var(--fg-2); display: inline-flex; }

/* ============= Hero stage / mockup ============= */
.hero__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16/11;
}
.mock {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: var(--shadow-2);
  overflow: hidden;
  display: flex; flex-direction: column;
  font-size: 12.5px;
}
.mock__chrome {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}
.mock__traffic { display: flex; gap: 6px; }
.mock__traffic span {
  width: 11px; height: 11px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
}
.mock__traffic span:nth-child(1) { background: #ff5f57; }
.mock__traffic span:nth-child(2) { background: #febc2e; }
.mock__traffic span:nth-child(3) { background: #28c840; }
.mock__title {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}
.mock__chrome-r { display: flex; justify-content: flex-end; gap: 8px; }
.mock__pill {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  padding: 3px 8px;
  background: rgba(74,222,128,0.1);
  color: var(--ok);
  border-radius: 999px;
}

.mock__body {
  flex: 1;
  display: grid;
  grid-template-columns: 168px 1fr;
  min-height: 0;
}
.mock__side {
  border-right: 1px solid var(--line);
  padding: 14px 10px;
  background: rgba(255,255,255,0.015);
  font-size: 11.5px;
}
.mock__side-section {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 8px 6px;
}
.mock__side-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.mock__side-list li {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--fg-2);
  cursor: default;
}
.mock__side-list li.active {
  background: rgba(59,130,246,0.12);
  color: var(--fg);
}
.mock__side-list .badge {
  margin-left: auto;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  background: rgba(255,255,255,0.05);
  padding: 1px 6px;
  border-radius: 4px;
}

.mock__main {
  display: flex; flex-direction: column;
  min-width: 0;
}
.mock__tabs {
  display: flex; gap: 2px;
  border-bottom: 1px solid var(--line);
  padding: 0 12px;
}
.mock__tab {
  background: none; border: none; color: var(--muted);
  padding: 10px 12px;
  font-size: 12px;
  cursor: pointer;
  border-bottom: 1.5px solid transparent;
  display: inline-flex; align-items: center; gap: 6px;
}
.mock__tab.active { color: var(--fg); border-bottom-color: var(--accent); }

.mock__toolbar {
  display: flex; gap: 6px; align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.mock__sep { width: 1px; height: 16px; background: var(--line-2); margin: 0 4px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  font-size: 11.5px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--fg-2);
  cursor: pointer;
  transition: all .25s var(--ease);
}
.chip:hover { color: var(--fg); border-color: var(--line-2); }
.chip--active {
  background: rgba(59,130,246,0.12);
  border-color: rgba(59,130,246,0.4);
  color: #93c5fd;
}
.chip--ghost { background: transparent; }
.chip--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.chip--working { animation: chipPulse 1.2s var(--ease) infinite; }
.chip--disabled { opacity: 0.45; }
@keyframes chipPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(59,130,246,.4); }
  50%     { box-shadow: 0 0 0 5px rgba(59,130,246,0); }
}
.kbd {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  padding: 2px 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--accent-2);
  letter-spacing: 0.06em;
}

.rule-card {
  margin: 10px 12px 0;
  border: 1px solid rgba(34,211,238,0.25);
  background: rgba(34,211,238,0.05);
  border-radius: 8px;
  padding: 10px 12px;
  animation: ruleIn .5s var(--ease);
}
@keyframes ruleIn { from { opacity: 0; transform: translateY(-4px); } }
.rule-card__head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 8px;
}
.rule-card__pill {
  font-family: 'Geist Mono', monospace;
  font-size: 9.5px;
  color: var(--accent-2);
  letter-spacing: 0.1em;
}
.rule-card__name { font-weight: 500; font-size: 12px; }
.rule-card__delete { margin-left: auto; color: var(--muted); cursor: pointer; }
.rule-card__body {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 11.5px; color: var(--fg-2);
}
.rule-card__expr em { color: var(--accent-2); font-family: 'Geist Mono', monospace; font-size: 11px; }

.mock__table {
  flex: 1; overflow: hidden;
  display: flex; flex-direction: column;
  margin-top: 8px;
}
.mock__row {
  display: grid;
  grid-template-columns: 1.6fr 0.6fr 0.45fr 1.2fr;
  gap: 12px;
  align-items: center;
  padding: 7px 16px;
  font-size: 11.5px;
  border-top: 1px solid var(--line);
  transition: background .3s var(--ease);
}
.mock__row--head {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255,255,255,0.02);
  border-top: none;
}
.mock__row--checked { background: rgba(59,130,246,0.04); }
.mock__row--planned { animation: rowFlash .8s var(--ease); }
@keyframes rowFlash {
  from { background: rgba(34,211,238,0.18); }
  to   { background: rgba(34,211,238,0.04); }
}
.mock__cell { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock__cell--name { font-weight: 500; }
.mock__cell--state { font-size: 11px; }
.mock__check {
  width: 14px; height: 14px;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  display: inline-flex; align-items: center; justify-content: center;
  color: transparent;
  background: transparent;
  transition: all .25s var(--ease);
}
.mock__check[data-on="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.status {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Geist Mono', monospace;
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}
.status--idle { color: var(--muted); }
.status--keep { color: var(--muted-2); }
.status--plan { color: var(--accent-2); background: rgba(34,211,238,0.08); }
.status--ok   { color: var(--ok); background: rgba(74,222,128,0.08); }

.mock__footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.015);
  font-size: 11.5px;
}
.mock__footer-l { display: flex; align-items: center; gap: 8px; }
.mock__footer-r { display: flex; gap: 8px; font-size: 10.5px; }

.cursor {
  position: absolute;
  width: 18px; height: 22px;
  pointer-events: none;
  z-index: 10;
  transition: left 1.1s var(--ease), top 1.1s var(--ease);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.6));
}
.cursor__ring {
  position: absolute;
  left: -8px; top: -4px;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-2);
  opacity: 0;
}
.cursor--click .cursor__ring { animation: ring .6s var(--ease); }
@keyframes ring {
  0%   { opacity: 0.9; transform: scale(0.4); }
  100% { opacity: 0;   transform: scale(1.6); }
}

.spin { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.mock__caption {
  position: absolute;
  bottom: -28px; left: 0;
  display: flex; align-items: center; gap: 8px;
  font-size: 10.5px;
  color: var(--muted);
}

/* ============= Hero variant: pipeline ============= */
.pipeline-hero {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: var(--shadow-2);
  overflow: hidden;
  padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
}
.pipeline-canvas { flex: 1; width: 100%; height: 100%; }
.pipeline-hero__legend {
  display: flex; gap: 20px; font-size: 11px; color: var(--muted);
}
.pipeline-hero__legend span { display: inline-flex; align-items: center; gap: 6px; }

/* ============= Hero variant: kinetic ============= */
.kinetic {
  position: absolute; inset: 0;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: radial-gradient(ellipse at top right, rgba(59,130,246,0.12), transparent 60%), var(--surface);
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; padding: 40px;
  box-shadow: var(--shadow-2);
}
.kinetic__inner {
  font-size: clamp(36px, 4.4vw, 64px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  display: flex; flex-wrap: wrap; gap: 0.25em;
}
.kinetic__word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: kineticIn .9s var(--ease) forwards, kineticHue 6s var(--ease) infinite;
}
@keyframes kineticIn { to { opacity: 1; transform: none; } }
@keyframes kineticHue {
  0%,100% { color: var(--fg); }
  50%     { color: var(--accent-2); }
}
.kinetic__loop {
  position: absolute;
  bottom: 30px; left: 0; right: 0;
  white-space: nowrap;
  font-size: 13px;
  color: rgba(255,255,255,0.18);
  animation: marquee 22s linear infinite;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============= Sections ============= */
.section-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: 120px 24px 48px;
  text-align: center;
}
.kicker {
  display: inline-block;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding-bottom: 16px;
}
.section-title {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}
.section-title em { color: var(--accent-2); font-style: normal; }
.section-sub {
  margin: 22px auto 0;
  max-width: 620px;
  color: var(--fg-2);
  font-size: 17px;
  line-height: 1.5;
}
.section-sub em { color: var(--fg); }

/* ============= Cómo funciona ============= */
.how {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 60px;
}
.how__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 12px;
}
.how__card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  display: flex; flex-direction: column;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.how__card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.how__visual {
  height: 160px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
}
.how__meta { font-size: 10.5px; color: var(--accent-2); letter-spacing: 0.12em; text-transform: uppercase; }
.how__title { font-size: 22px; font-weight: 600; margin: 6px 0 10px; letter-spacing: -0.02em; }
.how__body  { color: var(--fg-2); font-size: 14px; line-height: 1.55; margin: 0; }

/* Step visuals */
.step-vis { width: 100%; height: 100%; position: relative; display: grid; place-items: center; }

.step-batch {
  display: grid;
  grid-template-columns: repeat(4, 28px);
  gap: 6px;
  align-content: end;
  padding: 18px 0;
}
.step-batch__file {
  display: block;
  width: 28px; height: 32px;
  background: linear-gradient(180deg, var(--surface-2), var(--bg-2));
  border: 1px solid var(--line-2);
  border-radius: 4px;
  position: relative;
  animation: fileFall 2s var(--ease) infinite;
  opacity: 0;
}
.step-batch__file::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 8px; height: 8px;
  background: var(--bg);
  border-bottom: 1px solid var(--line-2);
  border-left: 1px solid var(--line-2);
}
.step-batch__file::after {
  content: ''; position: absolute; left: 5px; right: 5px; bottom: 6px; height: 1.5px;
  background: rgba(255,255,255,0.15);
  box-shadow: 0 -4px 0 rgba(255,255,255,0.15), 0 -8px 0 rgba(255,255,255,0.15);
}
@keyframes fileFall {
  0%   { opacity: 0; transform: translateY(-30px) scale(0.9); }
  30%  { opacity: 1; transform: translateY(0); }
  90%  { opacity: 1; }
  100% { opacity: 0.4; }
}
.step-batch__tray {
  position: absolute;
  bottom: 12px; left: 18px; right: 18px; height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0.6;
}

.step-sim {
  display: flex; align-items: center; gap: 16px;
}
.step-sim__col { display: flex; flex-direction: column; gap: 6px; }
.step-sim__row {
  width: 70px; height: 9px;
  background: var(--surface-2);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.step-sim__row::after {
  content: ''; position: absolute; left: -100%; top: 0; bottom: 0; width: 100%;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,0.5), transparent);
  animation: scanLine 2s var(--ease) infinite;
}
.step-sim__row:nth-child(2)::after { animation-delay: 0.3s; }
.step-sim__row:nth-child(3)::after { animation-delay: 0.6s; }
@keyframes scanLine { to { left: 100%; } }
.step-sim__col--out .step-sim__row { background: var(--surface-2); }
.step-sim__row--ok   { background: linear-gradient(90deg, rgba(34,211,238,0.5), rgba(34,211,238,0.15)) !important; }
.step-sim__row--keep { opacity: 0.5; }
.step-sim__arrow { color: var(--muted); font-size: 16px; }
.step-sim__seal {
  position: absolute; bottom: 10px; right: 14px;
  font-size: 9.5px; color: var(--ok);
  letter-spacing: 0.18em;
}

.step-exec {
  display: flex; flex-direction: column; gap: 8px;
  align-items: stretch; justify-content: center;
  padding: 0 22px;
  width: 100%;
}
.step-exec__bar {
  height: 8px;
  background: var(--surface-2);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.step-exec__bar span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  width: 0;
  animation: execFill 2.4s var(--ease) infinite;
}
@keyframes execFill {
  0%   { width: 0; }
  60%  { width: 100%; }
  100% { width: 100%; opacity: 0.6; }
}
.step-exec__seal {
  position: absolute; top: 12px; right: 14px;
  font-size: 9.5px; color: var(--accent-2);
  letter-spacing: 0.16em;
}

.step-undo { width: 100%; height: 100%; }
.step-undo__arc {
  position: absolute;
  top: 50%; left: 50%;
  width: 100px; height: 100px;
  margin: -50px 0 0 -50px;
  border: 2px solid transparent;
  border-top-color: var(--accent);
  border-right-color: var(--accent-2);
  border-radius: 50%;
  animation: undoSpin 3s var(--ease) infinite;
}
@keyframes undoSpin {
  0%   { transform: rotate(45deg); }
  100% { transform: rotate(-315deg); }
}
.step-undo__pin {
  position: absolute;
  width: 8px; height: 8px; border-radius: 50%;
  top: 50%; left: 50%;
}
.step-undo__pin--a { background: var(--accent); margin: -54px 0 0 -4px; }
.step-undo__pin--b { background: var(--accent-2); margin: 46px 0 0 -4px; }
.step-undo__label {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  font-size: 14px; color: var(--fg);
  background: var(--surface-2);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
}

/* ============= Demo "video" ============= */
.demo {
  position: relative;
  padding-bottom: 60px;
}
.demo__bg {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}
.demo__bg-glow {
  position: absolute;
  width: 80%; height: 70%;
  top: 30%; left: 10%;
  background: radial-gradient(ellipse, rgba(59,130,246,0.18), transparent 70%);
  filter: blur(80px);
}
.demo__frame {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.dfv {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.dfv__chrome {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}
.dfv__name { color: var(--muted); font-size: 11px; }
.dfv__time { color: var(--accent-2); font-size: 11px; }
.dfv__body { padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.dfv__metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.metric {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.metric--active { border-color: var(--line-2); background: rgba(59,130,246,0.04); }
.metric__label { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.metric__value { display: flex; align-items: baseline; gap: 8px; }
.metric__num { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.metric__of { font-size: 12px; color: var(--muted); }
.metric__bar { display: block; height: 4px; background: rgba(255,255,255,0.04); border-radius: 2px; overflow: hidden; }
.metric__bar span {
  display: block; height: 100%;
  background: var(--muted-2);
  transition: width .3s linear;
}
.metric--accent .metric__num { color: var(--fg); }
.metric--accent .metric__bar span { background: var(--accent); }
.metric--ok .metric__bar span { background: var(--ok); }

.dfv__viz {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  height: 200px;
}
.dfv-grid {
  width: 100%; height: 100%;
  display: grid;
  gap: 2px;
}
.dfv-cell {
  background: rgba(255,255,255,0.05);
  border-radius: 1px;
  transition: background .4s var(--ease);
}
.dfv-cell--scan   { background: rgba(255,255,255,0.22); }
.dfv-cell--plan   { background: var(--accent); }
.dfv-cell--commit { background: var(--ok); }

.dfv__bar {
  display: flex; align-items: center; gap: 14px;
}
.dfv__bar-track {
  position: relative;
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: visible;
}
.dfv__bar-fill {
  display: block; position: absolute; left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, var(--muted), var(--accent), var(--ok));
  border-radius: 2px;
}
.dfv__bar-mark {
  position: absolute; top: -4px; bottom: -4px; width: 1px;
  background: var(--line-2);
}
.dfv__phase { font-size: 11px; color: var(--fg-2); white-space: nowrap; }

.demo__captions {
  max-width: var(--max);
  margin: 48px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.caption__k { font-size: 10.5px; color: var(--accent-2); letter-spacing: 0.12em; }
.caption__t { font-size: 16px; font-weight: 600; margin: 8px 0 6px; letter-spacing: -0.01em; }
.caption__b { font-size: 13.5px; color: var(--fg-2); line-height: 1.55; margin: 0; }

/* ============= Comparativa ============= */
.vs {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 60px;
}
.vs__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.vs__col {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  display: flex; flex-direction: column; gap: 16px;
}
.vs__col--bad { background: linear-gradient(180deg, rgba(244,63,94,0.04), var(--bg-2)); border-color: rgba(244,63,94,0.2); }
.vs__col--good { background: linear-gradient(180deg, rgba(34,211,238,0.04), var(--bg-2)); border-color: rgba(34,211,238,0.2); }
.vs__head { display: flex; align-items: center; justify-content: space-between; }
.vs__tag {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  padding: 4px 10px;
  background: rgba(255,255,255,0.04);
  border-radius: 999px;
  border: 1px solid var(--line);
}
.vs__tag--good { color: var(--accent-2); border-color: rgba(34,211,238,0.3); background: rgba(34,211,238,0.05); }
.vs__warn { font-size: 10.5px; color: var(--danger); letter-spacing: 0.05em; }
.vs__ok   { font-size: 10.5px; color: var(--ok); letter-spacing: 0.05em; }

.vs__code {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  margin: 0;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  line-height: 1.55;
  color: #d1d5db;
  white-space: pre-wrap;
  min-height: 240px;
  max-height: 240px;
  overflow: hidden;
}
.vs__list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.5;
}
.vs__list li { display: flex; gap: 10px; align-items: flex-start; }
.x, .ck {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
}
.x  { background: rgba(244,63,94,0.12); color: var(--danger); }
.ck { background: rgba(74,222,128,0.12); color: var(--ok); }

.vs__sga {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  min-height: 240px;
  max-height: 240px;
  overflow: hidden;
  display: flex; flex-direction: column; gap: 10px;
}
.vs-sga__head { display: flex; gap: 6px; font-size: 10.5px; }
.vs-sga__step {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  color: var(--muted);
  letter-spacing: 0.04em;
  transition: all .3s var(--ease);
}
.vs-sga__step[data-on="true"] {
  color: var(--accent-2);
  border-color: rgba(34,211,238,0.4);
  background: rgba(34,211,238,0.06);
}
.vs-sga__rows { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.vs-sga__row {
  display: grid;
  grid-template-columns: 1.2fr auto 1.2fr 0.7fr;
  gap: 10px;
  align-items: center;
  font-size: 11px;
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
  animation: vsRowIn .5s var(--ease);
}
@keyframes vsRowIn { from { opacity: 0; transform: translateX(-4px); } }
.vs-sga__arrow { color: var(--muted); display: inline-flex; }
.vs-sga__state em { font-style: normal; font-size: 10px; }
.vs-sga__foot {
  font-size: 10.5px; color: var(--muted);
  border-top: 1px dashed var(--line);
  padding-top: 8px;
}

/* ============= Pricing ============= */
.pricing {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 60px;
}
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 12px;
}
.tier {
  position: relative;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  display: flex; flex-direction: column; gap: 22px;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.tier:hover { border-color: var(--line-2); }
.tier--featured {
  border-color: rgba(59,130,246,0.4);
  background: linear-gradient(180deg, rgba(59,130,246,0.08), var(--bg-2));
  box-shadow: 0 30px 80px rgba(59,130,246,0.1);
}
.tier__badge {
  position: absolute; top: -10px; right: 24px;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--accent);
  color: white;
  padding: 4px 10px;
  border-radius: 999px;
}
.tier__name { font-size: 20px; font-weight: 600; margin: 0 0 6px; letter-spacing: -0.01em; }
.tier__blurb { color: var(--fg-2); font-size: 13.5px; line-height: 1.5; margin: 0; min-height: 40px; }
.tier__price {
  display: flex; align-items: baseline; gap: 8px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.tier__amount { font-size: 40px; font-weight: 600; letter-spacing: -0.03em; }
.tier__sub { font-size: 12px; color: var(--muted); }
.tier__features {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 13.5px; color: var(--fg-2);
  line-height: 1.45;
}
.tier__features li { display: flex; gap: 10px; align-items: flex-start; }
.pricing__foot { text-align: center; margin-top: 32px; font-size: 11.5px; color: var(--muted); }

/* ============= CTA ============= */
.cta {
  position: relative;
  text-align: center;
  padding: 120px 24px 140px;
  overflow: hidden;
}
.cta__bg { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.cta__glow {
  position: absolute;
  width: 800px; height: 400px;
  top: 0; left: 50%; transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(59,130,246,0.25), transparent 70%);
  filter: blur(80px);
}
.cta__title {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}
.cta__sub {
  margin: 22px auto 0;
  max-width: 540px;
  color: var(--fg-2);
  font-size: 17px;
  line-height: 1.5;
}
.cta__buttons { margin: 38px 0 0; display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.cta__hash { margin-top: 26px; font-size: 11px; color: var(--muted); }

/* ============= Footer ============= */
.foot {
  border-top: 1px solid var(--line);
  padding: 60px 24px 28px;
}
.foot__top {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 0.8fr);
  gap: 40px;
}
.foot__brand .wordmark { margin-bottom: 12px; }
.foot__pitch {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  max-width: 320px;
}
.foot__col h5 { margin: 0 0 14px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 500; }
.foot__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.foot__col a { font-size: 13.5px; color: var(--fg-2); }
.foot__col a:hover { color: var(--fg); }
.foot__bottom {
  max-width: var(--max);
  margin: 56px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}

/* ============= Responsive ============= */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 32px; }
  .hero__stage { aspect-ratio: 16/12; }
  .how__grid { grid-template-columns: repeat(2, 1fr); }
  .demo__captions { grid-template-columns: repeat(2, 1fr); }
  .pricing__grid { grid-template-columns: 1fr; }
  .vs__grid { grid-template-columns: 1fr; }
  .foot__top { grid-template-columns: 1fr 1fr; }
  .nav__links { display: none; }
}
@media (max-width: 640px) {
  .how__grid { grid-template-columns: 1fr; }
  .demo__captions { grid-template-columns: 1fr; }
  .dfv__metrics { grid-template-columns: 1fr; }
  .foot__top { grid-template-columns: 1fr; }
  .foot__bottom { flex-direction: column; gap: 8px; }
}
