:root {
  --green: #20b84b;
  --green-dark: #006b42;
  --green-soft: #e8f7ed;
  --muted: #9aa7b2;
  --white: #ffffff;
  --bg: #070b09;
  --bg-2: #0d1612;
  --card: rgba(255, 255, 255, 0.04);
  --stroke: rgba(32, 184, 75, 0.28);
  --radius: 18px;
  --font: "Outfit", system-ui, sans-serif;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--white);
  background:
    radial-gradient(900px 480px at 8% -8%, rgba(32, 184, 75, 0.16), transparent 55%),
    radial-gradient(700px 420px at 92% 12%, rgba(0, 107, 66, 0.18), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 55%, #050807 100%);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.bg-glow {
  position: fixed;
  width: min(42vw, 360px);
  height: min(42vw, 360px);
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
  contain: strict;
}

.bg-glow--a {
  top: -8%;
  left: -6%;
  background: #20b84b;
}

.bg-glow--b {
  right: -8%;
  bottom: 12%;
  background: #006b42;
}

.topbar,
.hero,
.strip,
.footer {
  position: relative;
  z-index: 1;
}

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

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
}

.brand__solve {
  color: var(--white);
}

.brand__x {
  color: var(--green);
}

.brand__sub {
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 0.15rem;
}

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

.nav a {
  position: relative;
  padding: 0.2rem 0;
}

.nav a:hover,
.nav a.is-active {
  color: var(--green);
}

.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.2rem;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem);
  min-height: calc(100vh - 72px);
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(32, 184, 75, 0.08);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4.1rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.text-accent {
  background: linear-gradient(110deg, var(--green) 0%, #7dff9e 45%, var(--green-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin: 1.1rem 0 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.55;
}

.hero__cta {
  margin-top: 1.75rem;
  scroll-margin-top: 5rem;
}

.btn-download {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: min(100%, 280px);
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--white);
  box-shadow:
    0 12px 30px rgba(0, 107, 66, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-download:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow:
    0 18px 40px rgba(32, 184, 75, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-download:active {
  transform: translateY(0) scale(0.99);
}

.btn-download__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  flex-shrink: 0;
  animation: icon-bob 1.4s ease-in-out infinite;
}

.btn-download__label {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.btn-download__label strong {
  font-size: 1.05rem;
  font-weight: 700;
}

.btn-download__label small {
  opacity: 0.85;
  font-size: 0.78rem;
  font-weight: 500;
}

.btn-download__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 20%,
    rgba(255, 255, 255, 0.35) 45%,
    transparent 70%
  );
  transform: translateX(-120%);
  pointer-events: none;
  z-index: -1;
  animation: shine 3.6s ease-in-out infinite;
}

.btn-download__pulse {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 2px solid rgba(32, 184, 75, 0.55);
  opacity: 0;
  pointer-events: none;
  z-index: -2;
  animation: pulse 2s ease-out infinite;
}

.hint {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.pills {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  scroll-margin-top: 5rem;
}

.pills li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--stroke);
  color: var(--green-soft);
  font-size: 0.88rem;
  font-weight: 600;
}

.pill__ico {
  display: inline-grid;
  place-items: center;
  color: var(--green);
  flex-shrink: 0;
}

.pill__ico svg {
  display: block;
}

.hero__art {
  display: grid;
  place-items: center;
}

.art-frame {
  position: relative;
  width: min(100%, 520px);
}

.decoracion {
  width: 100%;
  border-radius: 28px;
  box-shadow: var(--shadow);
  content-visibility: auto;
}

.strip {
  padding: 0 clamp(1rem, 4vw, 3rem) clamp(2.5rem, 6vw, 4.5rem);
  scroll-margin-top: 5rem;
}

.strip__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.25rem;
  border-radius: calc(var(--radius) + 6px);
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.strip article {
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.18);
}

.strip h2 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--green);
}

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

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem clamp(1rem, 4vw, 3rem) 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer a:hover {
  color: var(--green);
}

@keyframes shine {
  0%,
  55% {
    transform: translateX(-120%);
  }
  75%,
  100% {
    transform: translateX(220%);
  }
}

@keyframes pulse {
  0% {
    opacity: 0.65;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.08);
  }
}

@keyframes icon-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(3px);
  }
}

@keyframes float-y {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.decoracion.is-ready {
  animation: float-y 3.6s ease-in-out infinite;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero__art {
    order: -1;
  }

  .art-frame {
    width: min(100%, 400px);
  }

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

@media (max-width: 640px) {
  .nav {
    gap: 0.85rem;
    font-size: 0.85rem;
  }

  .hero {
    padding-top: 0.5rem;
  }

  .btn-download {
    width: 100%;
    justify-content: center;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn-download__shine,
  .btn-download__pulse,
  .btn-download__icon,
  .decoracion.is-ready {
    animation: none !important;
  }

  .btn-download {
    transition: none;
  }
}
