/* Colores alineados con AppColors + TagColors.brandPink / web theme_color */
:root {
  --primary: #2da44e;
  --primary-20: #b8e6c4;
  --primary-00: #e6f7eb;
  --secondary: #1f883d;
  --tertiary: #aff5b4;
  --tertiary-15: #e8fce9;
  --brand-pink: #f2327d;
  --frog-mint: #b5e8c4;
  --frog-spot: #7cb342;
  --neutral: #636c76;
  --neutral-00: #f4f6f8;
  --neutral-20: #d0d4d9;
  --neutral-40: #a0a8b0;
  --neutral-100: #24292f;
  --black: #1f2328;
  --white: #ffffff;
  --error: #cf222e;

  --bg: var(--neutral-00);
  --text: var(--black);
  --muted: var(--neutral);
  --accent: var(--brand-pink);
  --scribble: var(--brand-pink);
  --btn-size: 4.5rem;
  --btn-radius: 18px;
  --font: "Sora", ui-sans-serif, sans-serif;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(242, 50, 125, 0.1), transparent 55%),
    radial-gradient(ellipse 45% 35% at 90% 85%, rgba(45, 164, 78, 0.1), transparent 50%),
    radial-gradient(ellipse 40% 30% at 10% 70%, rgba(175, 245, 180, 0.35), transparent 45%),
    var(--bg);
  overflow-x: hidden;
}

.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(31, 35, 40, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 35, 40, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, black 15%, transparent 75%);
  opacity: 0.7;
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem 4rem;
  gap: 1.25rem;
}

.mascot {
  width: clamp(200px, 48vw, 300px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 16px 28px rgba(242, 50, 125, 0.28));
  animation: frog-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both,
    frog-float 4.5s ease-in-out 1s infinite;
}

.title {
  margin: 0.35rem 0 0;
  max-width: 16ch;
  font-size: clamp(2.15rem, 6.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.mark {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  padding-bottom: 0.12em;
}

.scribble {
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -0.02em;
  width: 104%;
  height: 0.28em;
  color: var(--scribble);
  overflow: visible;
  pointer-events: none;
}

.scribble path {
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: draw 1.1s cubic-bezier(0.4, 0, 0.2, 1) 0.45s forwards;
}

.subtitle {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--muted);
  animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

.cta {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 0.5rem;
  animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.34s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--btn-size);
  height: var(--btn-size);
  padding: 0;
  border-radius: var(--btn-radius);
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-logo {
  width: 2.1rem;
  height: 2.1rem;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

.btn-logo-app {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  display: block;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 2px solid var(--brand-pink);
  outline-offset: 3px;
}

.btn-glass {
  background:
    linear-gradient(
      145deg,
      rgba(184, 230, 196, 0.72) 0%,
      rgba(160, 216, 170, 0.55) 100%
    );
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: #a8d4b2;
  box-shadow:
    0 8px 28px rgba(31, 35, 40, 0.06),
    inset 0 1px 0 rgba(230, 247, 235, 0.55);
}

.btn-glass:hover {
  background:
    linear-gradient(
      145deg,
      rgba(184, 230, 196, 0.85) 0%,
      rgba(160, 216, 170, 0.68) 100%
    );
  border-color: #96c8a2;
  box-shadow:
    0 12px 32px rgba(31, 35, 40, 0.08),
    inset 0 1px 0 rgba(230, 247, 235, 0.65);
}

.btn-android,
.btn-apple {
  color: var(--black);
}

.btn-web {
  padding: 0;
  overflow: hidden;
  background: transparent;
  border-color: transparent;
  box-shadow: 0 10px 28px rgba(242, 50, 125, 0.28);
}

.btn-web:hover {
  box-shadow: 0 14px 36px rgba(242, 50, 125, 0.38);
}

.btn-apple.is-preferred,
.btn-android.is-preferred {
  border-color: var(--brand-pink);
  box-shadow:
    0 0 0 2px var(--brand-pink),
    0 10px 28px rgba(242, 50, 125, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.btn-web.is-preferred {
  box-shadow:
    0 0 0 2px var(--brand-pink),
    0 14px 36px rgba(242, 50, 125, 0.32);
}

@keyframes frog-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@media (max-width: 520px) {
  .title {
    max-width: 12ch;
  }

  .mark {
    white-space: normal;
  }

  .cta {
    gap: 0.85rem;
  }

  .btn {
    width: 4rem;
    height: 4rem;
  }

  .btn-logo {
    width: 1.9rem;
    height: 1.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mascot,
  .title,
  .subtitle,
  .cta,
  .scribble path {
    animation: none !important;
  }

  .scribble path {
    stroke-dashoffset: 0;
  }

  .btn:hover {
    transform: none;
  }
}
