/* Ricaobet Landing — mobile-first */
:root {
  --green: #94C939;
  --green-deep: #7aad2a;
  --navy: #0B1220;
  --navy-soft: #121a2b;
  --offwhite: #F5F7F9;
  --muted: rgba(245, 247, 249, 0.65);
  --line: rgba(148, 201, 57, 0.22);
  --glow: rgba(148, 201, 57, 0.35);
  --font-display: "Archivo Black", Impact, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --pad-x: 1.15rem;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --cta-h: 3.35rem;
  --phone: 26.5rem; /* ~424px */
}

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

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100%;
  min-height: 100dvh;
  font-family: var(--font-body);
  background: #070b14;
  color: var(--offwhite);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  touch-action: manipulation;
}

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

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

/* Phone canvas — always reads as mobile, even on desktop */
.page {
  position: relative;
  width: 100%;
  max-width: var(--phone);
  min-height: 100svh;
  min-height: 100dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  background: var(--navy);
  overflow: hidden;
}

@media (min-width: 480px) {
  body {
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0;
  }

  .page {
    min-height: 100svh;
    box-shadow: 0 0 0 1px rgba(245, 247, 249, 0.06), 0 24px 80px rgba(0, 0, 0, 0.55);
  }
}

.page::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 45% at 50% -5%, rgba(148, 201, 57, 0.22), transparent 58%),
    radial-gradient(ellipse 70% 40% at 80% 100%, rgba(148, 201, 57, 0.1), transparent 55%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-soft) 100%);
  z-index: -2;
}

.page::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245, 247, 249, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 247, 249, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 100% 70% at 50% 30%, black 10%, transparent 72%);
  z-index: -1;
  pointer-events: none;
}

/* Top bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: calc(0.85rem + var(--safe-t)) var(--pad-x) 0.5rem;
  flex-shrink: 0;
  z-index: 3;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

.brand span {
  color: var(--green);
}

.badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid var(--line);
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  background: rgba(148, 201, 57, 0.1);
  white-space: nowrap;
}

/* Heroes */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0.35rem var(--pad-x) 0;
  position: relative;
  z-index: 1;
}

.hero--text {
  justify-content: center;
  text-align: center;
  padding-bottom: 0.5rem;
}

.hero--famoso {
  justify-content: flex-start;
  padding-bottom: 0;
  min-height: 0;
}

.copy {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  width: 100%;
  z-index: 2;
}

.hero--text .copy {
  align-items: center;
  gap: 0.8rem;
}

.hero--famoso .copy {
  align-items: center;
  text-align: center;
  padding-top: 0.15rem;
}

.eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}

.headline {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 7.2vw, 2.05rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  text-wrap: balance;
  max-width: 20ch;
}

.hero--text .headline {
  font-size: clamp(1.7rem, 7.8vw, 2.25rem);
  max-width: 18ch;
}

.headline .accent {
  color: var(--green);
}

.mega {
  font-family: var(--font-display);
  font-size: clamp(4.2rem, 22vw, 5.8rem);
  line-height: 0.82;
  letter-spacing: -0.04em;
  color: var(--green);
  text-shadow: 0 0 48px var(--glow);
}

.hero--famoso .mega {
  font-size: clamp(3.4rem, 18vw, 4.6rem);
}

.support {
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--muted);
  max-width: 22rem;
  text-wrap: pretty;
}

.support + .support {
  margin-top: -0.25rem;
}

.support strong {
  color: var(--offwhite);
  font-weight: 700;
}

.math {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--offwhite);
}

.math .chip {
  background: rgba(148, 201, 57, 0.12);
  border: 1px solid var(--line);
  color: var(--green);
  padding: 0.4rem 0.65rem;
  border-radius: 0.4rem;
  font-variant-numeric: tabular-nums;
}

.math .arrow {
  color: var(--green);
  opacity: 0.85;
}

.fineprint {
  font-size: 0.65rem;
  color: rgba(245, 247, 249, 0.38);
  max-width: 20rem;
  line-height: 1.35;
  text-align: center;
}

/* Sticky CTA dock — thumb zone */
.cta-dock {
  position: sticky;
  bottom: 0;
  z-index: 20;
  margin-top: auto;
  padding: 0.75rem var(--pad-x) calc(0.75rem + var(--safe-b));
  background: linear-gradient(180deg, transparent 0%, rgba(11, 18, 32, 0.92) 28%, var(--navy) 100%);
}

.hero--famoso + .cta-dock,
.page:has(.hero--famoso) .cta-dock {
  background: linear-gradient(180deg, transparent 0%, rgba(11, 18, 32, 0.75) 35%, rgba(11, 18, 32, 0.97) 100%);
}

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--cta-h);
  padding: 0.95rem 1.25rem;
  border: none;
  border-radius: 0.7rem;
  background: var(--green);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    0 0 0 0 rgba(148, 201, 57, 0.45),
    0 10px 28px rgba(148, 201, 57, 0.28);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  animation: cta-pulse 2.4s ease-in-out infinite;
}

.cta:active {
  transform: scale(0.98);
  background: var(--green-deep);
}

.cta:focus-visible {
  outline: 2px solid var(--offwhite);
  outline-offset: 3px;
}

@media (hover: hover) {
  .cta:hover {
    background: #a6d94f;
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(148, 201, 57, 0.35);
  }
}

@keyframes cta-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 0 rgba(148, 201, 57, 0.45),
      0 10px 28px rgba(148, 201, 57, 0.28);
  }
  50% {
    box-shadow:
      0 0 0 12px rgba(148, 201, 57, 0),
      0 10px 28px rgba(148, 201, 57, 0.28);
  }
}

/* Person — bottom stage on mobile */
.visual {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 0;
  margin-top: 0.35rem;
  margin-left: calc(-1 * var(--pad-x));
  margin-right: calc(-1 * var(--pad-x));
  width: calc(100% + 2 * var(--pad-x));
  pointer-events: none;
}

.visual::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 55%;
  background: radial-gradient(ellipse 70% 80% at 50% 100%, rgba(148, 201, 57, 0.28), transparent 70%);
  z-index: 0;
}

.visual::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 28%;
  background: linear-gradient(180deg, var(--navy) 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

.visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  max-height: min(52svh, 420px);
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45));
  user-select: none;
}

.visual-placeholder {
  position: relative;
  z-index: 1;
  width: 78%;
  max-width: 280px;
  aspect-ratio: 3 / 4;
  max-height: min(48svh, 380px);
  border: 1.5px dashed rgba(148, 201, 57, 0.35);
  border-radius: 1rem 1rem 0 0;
  background:
    linear-gradient(180deg, rgba(148, 201, 57, 0.06), transparent 60%),
    rgba(18, 26, 43, 0.65);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.1rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.visual-placeholder strong {
  display: block;
  color: var(--green);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.visual-placeholder code {
  font-size: 0.68rem;
  word-break: break-all;
}

/* Short phones */
@media (max-height: 700px) {
  .mega {
    font-size: clamp(3.2rem, 16vw, 4.2rem);
  }

  .hero--famoso .mega {
    font-size: clamp(2.8rem, 14vw, 3.6rem);
  }

  .headline {
    font-size: clamp(1.35rem, 6vw, 1.7rem);
  }

  .copy {
    gap: 0.55rem;
  }

  .visual img,
  .visual-placeholder {
    max-height: min(42svh, 300px);
  }
}

@media (max-height: 600px) {
  .eyebrow {
    display: none;
  }

  .badge {
    display: none;
  }

  .fineprint {
    display: none;
  }

  .mega {
    font-size: 2.8rem;
  }

  .visual img,
  .visual-placeholder {
    max-height: 36svh;
  }
}

/* Entrance */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.reveal-d1 { animation-delay: 0.06s; }
.reveal-d2 { animation-delay: 0.14s; }
.reveal-d3 { animation-delay: 0.22s; }
.reveal-d4 { animation-delay: 0.3s; }
.reveal-d5 { animation-delay: 0.38s; }

.visual.reveal {
  transform: translateY(20px);
  animation-name: reveal-visual;
  animation-duration: 0.8s;
  animation-delay: 0.18s;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reveal-visual {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .visual.reveal,
  .cta {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}

/* Legal */
.legal {
  flex-shrink: 0;
  padding: 0.35rem var(--pad-x) calc(0.55rem + var(--safe-b));
  text-align: center;
  font-size: 0.6rem;
  color: rgba(245, 247, 249, 0.32);
  z-index: 3;
}

.page:has(.cta-dock) .legal {
  padding-bottom: 0.45rem;
}

/* Hub (index) stays usable on phone */
.hub {
  max-width: var(--phone);
  margin: 0 auto;
  padding: calc(1.5rem + var(--safe-t)) var(--pad-x) calc(2rem + var(--safe-b));
}

.hub h1 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  text-transform: uppercase;
  margin: 0.65rem 0 0.4rem;
  line-height: 1.05;
}

.hub > p {
  color: var(--muted);
  margin-bottom: 1.35rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

.grid {
  display: grid;
  gap: 0.65rem;
}

.grid a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  min-height: 3.5rem;
  border: 1px solid rgba(245, 247, 249, 0.08);
  border-radius: 0.65rem;
  background: rgba(18, 26, 43, 0.75);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.grid a:active {
  border-color: var(--green);
  background: rgba(148, 201, 57, 0.1);
}

.grid strong {
  display: block;
  font-size: 0.92rem;
}

.grid span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.3;
}

.tag {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--green);
  padding: 0.35rem 0.5rem;
  border-radius: 0.35rem;
}

.tag.alt {
  background: transparent;
  color: var(--green);
  border: 1px solid var(--line);
}
