:root {
  --ink: #0c1f2e;
  --ink-soft: #2a4558;
  --mist: #e8f2f4;
  --fog: #c5dde3;
  --teal: #0d8a7c;
  --teal-deep: #06685e;
  --sand: #f3ebe0;
  --white: #f7fbfc;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Figtree", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(ellipse 90% 60% at 70% 10%, #b8e0e8 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 10% 80%, #d4ebe4 0%, transparent 50%),
    linear-gradient(165deg, #eef6f8 0%, var(--sand) 48%, #dceef1 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.top,
main,
.foot {
  position: relative;
  z-index: 1;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
}

.logo {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}

.wa-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teal-deep);
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 0.1rem;
  transition: color 0.25s var(--ease);
}

.wa-link:hover {
  color: var(--teal);
}

.hero {
  min-height: calc(100vh - 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 clamp(1.25rem, 4vw, 3rem) clamp(3rem, 8vh, 5.5rem);
  max-width: 42rem;
}

.brand {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(3.4rem, 11vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
  color: var(--ink);
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  letter-spacing: -0.03em;
  line-height: 1.25;
  max-width: 18ch;
  margin-bottom: 0.85rem;
}

.lede {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 32ch;
  margin-bottom: 1.75rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Figtree", sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--white);
  background: var(--teal);
  text-decoration: none;
  padding: 0.9rem 1.45rem;
  border-radius: 4px;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:hover {
  background: var(--teal-deep);
  transform: translateY(-2px);
}

.btn-lg {
  font-size: 1.05rem;
  padding: 1.05rem 1.75rem;
}

.proceso {
  padding: clamp(4.5rem, 12vh, 7rem) clamp(1.25rem, 4vw, 3rem);
  max-width: 1100px;
  margin: 0 auto;
}

.proceso-copy {
  max-width: 28rem;
  margin-bottom: 2.75rem;
}

.proceso h2,
.contacto h2,
.demos h2 {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.proceso-copy p,
.contacto p,
.demos-copy p {
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 34ch;
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  border-top: 1px solid rgba(12, 31, 46, 0.14);
  padding-top: 2rem;
}

.step-n {
  display: block;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin-bottom: 0.85rem;
}

.step h3 {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.45rem;
}

.step p {
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.demos {
  padding: clamp(4.5rem, 12vh, 7rem) clamp(1.25rem, 4vw, 3rem);
  max-width: 1100px;
  margin: 0 auto;
}

.demos-copy {
  max-width: 28rem;
  margin-bottom: 2.75rem;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
}

.demo-card {
  background: rgba(247, 251, 252, 0.55);
  border: 1px solid rgba(12, 31, 46, 0.1);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(6px);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.demo-card:hover {
  transform: translateY(-3px);
  border-color: rgba(13, 138, 124, 0.35);
  box-shadow: 0 14px 34px rgba(12, 31, 46, 0.12);
}

.demo-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  background: radial-gradient(ellipse 80% 70% at 50% 40%, #dceef1 0%, rgba(216, 233, 228, 0.35) 100%);
}

.demo-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.demo-card figcaption {
  padding: 1.15rem 1.3rem 1.35rem;
}

.demo-tag {
  display: block;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin-bottom: 0.6rem;
}

.demo-card h3 {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.demo-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 36ch;
}

.contacto {
  padding: clamp(4.5rem, 14vh, 8rem) clamp(1.25rem, 4vw, 3rem);
  max-width: 36rem;
  margin: 0 auto;
  text-align: left;
}

.contacto .btn {
  margin-top: 1.75rem;
}

.foot {
  display: flex;
  justify-content: space-between;
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 2rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
  opacity: 0.75;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

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

  .hero {
    max-width: 100%;
    justify-content: flex-end;
  }

  .brand {
    font-size: clamp(3rem, 16vw, 4.2rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn:hover { transform: none; }
}
