:root {
  --bg: #0c1412;
  --bg-alt: #12201c;
  --ink: #e9f1ec;
  --muted: #9bb0a4;
  --accent: #d4f06a;
  --accent-deep: #8fb83a;
  --line: rgba(233, 241, 236, 0.12);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --max: 68rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 90% 60% at 10% -10%, rgba(212, 240, 106, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 20%, rgba(40, 120, 95, 0.25), transparent 50%),
    var(--bg);
  line-height: 1.55;
}

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

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  color: var(--accent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem var(--pad);
  background: rgba(12, 20, 18, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.nav a:hover {
  color: var(--accent);
}

/* —— Hero tipo “stage” (como el rover) —— */
.hero {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  min-height: calc(100vh - 4rem);
  min-height: calc(100dvh - 4rem);
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1.5rem 2rem;
  align-items: center;
  padding: 2rem var(--pad) 3.5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -10% -5%;
  z-index: 0;
  background:
    radial-gradient(circle at 72% 42%, rgba(212, 240, 106, 0.14), transparent 42%),
    radial-gradient(circle at 20% 80%, rgba(40, 120, 95, 0.18), transparent 45%);
  pointer-events: none;
}

.hero-copy,
.hero-stage {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 28rem;
}

.brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6.5vw, 3.9rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--ink);
}

.subtitle {
  margin: 0.55rem 0 1.1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 500;
  color: var(--muted);
  max-width: 26rem;
  line-height: 1.35;
}

.lede {
  margin: 0 0 1.75rem;
  color: var(--muted);
  max-width: 32rem;
}

.cta {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  background: var(--accent);
  color: #12200f;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 0.25s ease, background 0.25s ease;
}

.cta:hover {
  background: #e4ff8a;
  transform: translateY(-2px);
}

.hero-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(320px, 52vh, 520px);
  isolation: isolate;
}

.pulse-ring {
  position: absolute;
  width: min(78%, 440px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(212, 240, 106, 0.28);
  box-shadow: 0 0 60px rgba(212, 240, 106, 0.12);
  animation: pulseRing 3.6s ease-in-out infinite;
  pointer-events: none;
}

.pulse-ring--delay {
  width: min(94%, 540px);
  animation-delay: 1.2s;
  border-color: rgba(143, 184, 58, 0.22);
  box-shadow: 0 0 40px rgba(143, 184, 58, 0.1);
}

.stage-glow {
  position: absolute;
  width: min(70%, 380px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 240, 106, 0.18), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
}

.proto-float {
  position: relative;
  z-index: 1;
  display: block;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  transition: translate 0.15s ease-out;
}

.proto-float--main {
  width: min(100%, 520px);
  filter: drop-shadow(0 28px 50px rgba(0, 0, 0, 0.7));
  animation: floatY 4.5s ease-in-out infinite, heartbeat 1.8s ease-in-out infinite;
  will-change: transform;
}

.proto-float--side {
  position: absolute;
  right: 2%;
  bottom: 4%;
  z-index: 2;
  width: min(38%, 200px);
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.65));
  animation: floatY 5.2s 0.4s ease-in-out infinite, heartbeat 1.8s 0.4s ease-in-out infinite;
  will-change: transform;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes heartbeat {
  0%, 100% { scale: 1; }
  14% { scale: 1.028; }
  28% { scale: 1; }
  42% { scale: 1.018; }
  70% { scale: 1; }
}

@keyframes pulseRing {
  0%, 100% {
    transform: scale(0.96);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 1.5rem;
  }

  .hero-stage {
    order: -1;
    min-height: 340px;
  }

  .proto-float--main {
    width: min(92%, 420px);
  }

  .proto-float--side {
    width: min(34%, 150px);
  }
}

.section {
  padding: 4.5rem var(--pad);
  max-width: var(--max);
  margin: 0 auto;
}

.section-alt {
  max-width: none;
  padding-left: max(var(--pad), calc((100% - var(--max)) / 2 + var(--pad)));
  padding-right: max(var(--pad), calc((100% - var(--max)) / 2 + var(--pad)));
  background:
    linear-gradient(90deg, rgba(18, 32, 28, 0.9), rgba(18, 32, 28, 0.55));
  border-block: 1px solid var(--line);
}

.section h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.03em;
}

.section-lede {
  margin: 0 0 2rem;
  color: var(--muted);
  max-width: 38rem;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .feature-list {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 2.5rem;
  }
}

.feature-list li {
  display: grid;
  gap: 0.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.feature-list strong {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.feature-list span {
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  padding: 0.85rem 0.75rem 0.85rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.flow {
  margin: 0;
  padding: 1.25rem 1.35rem;
  background: rgba(0, 0, 0, 0.28);
  border-left: 3px solid var(--accent-deep);
  overflow-x: auto;
  color: #c5d8cc;
  font-size: 0.9rem;
  line-height: 1.65;
}

.note {
  margin: 1.5rem 0 0;
  color: var(--muted);
  max-width: 40rem;
}

.closing {
  text-align: left;
  padding-bottom: 5rem;
}

.closing-brand {
  margin: 2.5rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  letter-spacing: -0.04em;
  color: var(--accent);
}

.closing-sub {
  margin: 0.4rem 0 0;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer {
  padding: 1.5rem var(--pad) 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.hero-copy[data-reveal] {
  transition-delay: 0.05s;
}

.hero-stage[data-reveal] {
  transition-delay: 0.18s;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse-ring,
  .proto-float--main,
  .proto-float--side {
    animation: none;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
