/* ==========================================================================
   Vurelo — Bienvenida Landing Page
   MOBILE-FIRST. Matches vureloapp.com design. Meta-safe: zero crypto language.
   Base styles = mobile. Desktop overrides via min-width queries.
   ========================================================================== */

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

:root {
  --green: #00C896;
  --blue: #3C50F5;
  --purple: #7B6EF6;
  --black: #111;
  --gray-100: #f5f7fa;
  --gray-200: #edf0f7;
  --gray-300: #dde2ed;
  --white: #fff;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--white);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: 76px; /* space for sticky bar */
}

a { text-decoration: none; color: inherit; cursor: pointer; }
a.card-item, a.value-card { display: block; }
a.waitlist-step { display: flex; }
img { max-width: 100%; height: auto; display: block; }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed; top: 0; left: 0; width: 100%;
  padding: 14px 20px;
  z-index: 999;
  transition: background 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { height: 26px; }
.nav-cta {
  display: none; /* hidden on mobile — sticky bar replaces it */
  background: var(--black); color: var(--white);
  padding: 10px 24px; border-radius: 999px;
  font-weight: 700; font-size: 14px;
  transition: background 0.2s; border: none; cursor: pointer;
}
.nav-cta:hover { background: #333; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #e8f5ef;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
/* Hero slides + headlines: JS removes non-matching from DOM.
   Initial hide prevents flash of all content before JS runs. */
.hero-slide,
.hero-headline,
.hero-sub { visibility: hidden; }

/* Mobile/desktop hero image switching */
.hero-img-desktop { display: none; }
/* OS icons: JS removes non-matching from DOM, inline style shows the winner */
.sticky-cta-icon { display: none; }
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 18%),
    linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.3) 35%, transparent 65%);
  z-index: 1;
}

.hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 3;
  padding: 0 20px;
  padding-bottom: calc(20px + 76px); /* space for sticky bar */
  display: flex; flex-direction: column;
  align-items: flex-start; gap: 14px;
}
.hero-text { max-width: 100%; }
.hero-brand {
  display: none; /* hidden on mobile — nav logo already shows vurelo */
  font-size: 1.2rem; font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 8px;
  opacity: 0.85; color: var(--white);
}
.hero-text h1 {
  font-size: 2rem; font-weight: 800; line-height: 1.05;
  letter-spacing: -0.03em; color: var(--white);
}
.hero-sub {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.45;
  margin-top: 10px;
  max-width: 320px;
}

/* Hero overlay cards — hidden on mobile, shown on desktop */
.hero-cards {
  display: none;
}
.hero-card {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: 16px; padding: 16px;
  display: flex; align-items: center; gap: 12px;
  color: var(--black);
}
.hero-card img {
  width: 56px; height: 56px;
  border-radius: 12px; object-fit: cover; flex-shrink: 0;
}
.hero-card-text h3 { font-size: 0.85rem; font-weight: 800; margin-bottom: 2px; }
.hero-card-text p { font-size: 0.75rem; opacity: 0.6; line-height: 1.3; }

.hero-card-row { display: none; /* hidden on mobile — too cluttered */ }
.hero-card-small {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: 16px; padding: 14px;
  flex: 1; display: flex; align-items: center; gap: 10px;
  color: var(--black);
}
.hero-card-small img {
  width: 40px; height: 40px;
  border-radius: 10px; object-fit: cover; flex-shrink: 0;
}
.hero-card-small span { font-size: 0.78rem; font-weight: 800; line-height: 1.2; }

/* ==========================================================================
   BENTO GRID
   ========================================================================== */
.bento { padding: 48px 20px; background: var(--white); }
.bento-inner { max-width: 1400px; margin: 0 auto; }
.bento h2 {
  font-size: 1.6rem; font-weight: 800;
  text-align: center; margin-bottom: 32px;
  letter-spacing: -0.02em;
}
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.bento-card {
  border-radius: 20px; overflow: hidden; position: relative;
  min-height: 180px; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 20px;
  transition: transform 0.3s;
}
.bento-card:hover { transform: translateY(-3px); }
.bento-card img.bento-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.bento-card .bento-label {
  position: relative; z-index: 1;
  font-size: 0.9rem; font-weight: 800; line-height: 1.2;
  color: var(--white);
  display: flex; align-items: center; gap: 8px;
}
.bento-card .bento-label.dark { color: var(--black); }
.bento-arrow {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; flex-shrink: 0; color: var(--black);
}
.bento-card.green { background: var(--green); }
.bento-card.blue { background: #4B7BF5; }
.bento-card.purple { background: var(--purple); }
.bento-card.dark-card { background: #1a1a1a; }
.bento-card.white-card { background: var(--white); border: 1px solid var(--gray-300); }
.bento-card.white-card .bento-label { color: var(--black); }
.bento-card.span-2 { grid-column: span 1; } /* no span on mobile */

/* ==========================================================================
   APP DEMO (GIF section)
   ========================================================================== */
.app-demo {
  padding: 48px 20px;
  background: var(--white);
  overflow: hidden;
}
.app-demo-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}
.app-demo-text h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.app-demo-text p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
  max-width: 400px;
  margin: 0 auto;
}
.app-demo-phone {
  width: 75%;
  max-width: 300px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.10);
  border: 1px solid var(--gray-300);
}
.app-demo-phone img {
  width: 100%;
  display: block;
}

/* ==========================================================================
   CARDS (Atlantis / Terra / Titan)
   ========================================================================== */
.cards-section { padding: 48px 20px; background: var(--gray-100); }
.cards-inner { max-width: 1200px; margin: 0 auto; }
.cards-inner > h2 {
  font-size: 1.5rem; font-weight: 800;
  text-align: center; margin-bottom: 32px;
  letter-spacing: -0.02em;
}
.cards-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 16px;
}
.card-item {
  background: var(--white); border-radius: 20px;
  overflow: hidden; transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}
.card-popular { border: 2px solid var(--green); }
.card-popular-badge {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background: var(--green); color: var(--white);
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; letter-spacing: 0.03em;
}
.card-item:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(0,0,0,0.08); }
.card-img {
  height: 180px;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.card-img img { max-height: 150px; object-fit: contain; }
.card-body { padding: 24px; }
.card-body h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 4px; }
.card-body .card-tagline { font-size: 0.85rem; color: #888; margin-bottom: 16px; font-weight: 500; }
.card-body ul { list-style: none; padding: 0; }
.card-body ul li {
  padding: 5px 0; font-size: 0.88rem; color: #555;
  display: flex; align-items: flex-start; gap: 8px;
}
.card-body ul li::before {
  content: '\2022'; color: var(--black);
  font-weight: 700; flex-shrink: 0; font-size: 1.2em;
}

/* ==========================================================================
   TRUST BAR
   ========================================================================== */
.trust { padding: 32px 20px; background: #2a2a2a; }
.trust-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 28px; flex-wrap: wrap;
}
.trust-item { display: flex; align-items: center; gap: 8px; opacity: 0.7; }
.trust-item img { height: 24px; filter: brightness(0) invert(1); }
.trust-item span { font-size: 0.8rem; font-weight: 600; color: var(--white); }

/* ==========================================================================
   VALUE PROPS
   ========================================================================== */
.values { padding: 48px 20px; background: var(--black); }
.values-inner { max-width: 1200px; margin: 0 auto; }
.values-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 16px;
}
.value-card {
  background: var(--white); border-radius: 20px;
  padding: 28px 24px;
}
.value-card h3 {
  font-size: 1.3rem; font-weight: 800; line-height: 1.15;
  margin-bottom: 12px; letter-spacing: -0.02em;
}
.value-card p { font-size: 0.9rem; color: #555; line-height: 1.6; }
.value-card p strong { color: var(--black); }

/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.cta-section { padding: 48px 20px; background: var(--white); }
.cta-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-direction: column;
  gap: 32px;
}
.cta-text { flex: 1; }
.cta-text h2 {
  font-size: 1.8rem; font-weight: 800; line-height: 1.1;
  letter-spacing: -0.02em; margin-bottom: 12px;
}
.cta-text p {
  font-size: 0.95rem; color: #555; line-height: 1.6; margin-bottom: 24px;
}
.cta-image {
  flex: 1; background: var(--gray-200);
  border-radius: 24px; min-height: 260px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; width: 100%;
}
.cta-image img {
  width: 100%; height: 100%;
  object-fit: cover; border-radius: 24px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  padding: 48px 20px 32px;
  background: var(--black); color: var(--white);
  text-align: center;
}
.footer-logo { height: 48px; margin: 0 auto 24px; }
.store-badges {
  display: flex; gap: 10px;
  justify-content: center; flex-wrap: wrap;
  margin-bottom: 24px;
}
.store-badges a img {
  height: 40px; border-radius: 8px;
  transition: transform 0.2s, opacity 0.3s;
}
.store-badges a:hover img { transform: scale(1.05); }
.footer-social {
  display: flex; gap: 16px;
  justify-content: center; margin-bottom: 20px;
}
.footer-social a img {
  height: 20px; opacity: 0.7;
  transition: opacity 0.2s; filter: brightness(0) invert(1);
}
.footer-social a:hover img { opacity: 1; }
.footer-email { font-size: 0.9rem; font-weight: 600; margin-bottom: 12px; }
.footer-email a { color: var(--white); }
.footer-legal-links {
  display: flex; gap: 16px;
  justify-content: center; margin-bottom: 12px;
}
.footer-legal-links a,
.footer-legal-links span { font-size: 0.8rem; opacity: 0.5; }
.footer-legal-links a:hover { opacity: 1; }
.footer-copy { font-size: 0.78rem; opacity: 0.4; margin-bottom: 8px; }
.footer-made { font-size: 0.78rem; opacity: 0.4; }
.footer-opt-out {
  margin-top: 20px; font-size: 0.72rem;
  opacity: 0.3; line-height: 1.5;
}

/* ==========================================================================
   BUTTON
   ========================================================================== */
.btn-black {
  display: inline-block;
  background: var(--black); color: var(--white);
  padding: 14px 32px; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem;
  transition: background 0.2s, transform 0.2s;
  cursor: pointer; border: none;
}
.btn-black:hover { background: #333; transform: translateY(-1px); }

/* ==========================================================================
   STICKY CTA BAR (always visible on mobile)
   ========================================================================== */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 998;
  padding: 12px 20px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--white);
  transition: opacity 0.3s ease;
}
.sticky-cta.at-footer {
  opacity: 0.4;
}
.sticky-cta-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  background: var(--black);
  color: var(--white);
  border-radius: 16px;
  font-weight: 700; font-size: 1rem;
  text-align: center;
  transition: background 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
  border: none;
}
.sticky-cta-btn:active {
  background: #333;
  transform: scale(0.98);
}
.sticky-cta-icon {
  display: flex; align-items: center;
}
.sticky-cta-icon svg { width: 20px; height: 20px; }

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
.fade-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   TABLET — min-width: 600px
   ========================================================================== */
@media (min-width: 600px) {
  .bento-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .bento-card.span-2 { grid-column: span 2; }
  .bento-card { min-height: 220px; }

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

  .hero-text h1 { font-size: 2.4rem; }
}

/* ==========================================================================
   DESKTOP — min-width: 769px
   ========================================================================== */
@media (min-width: 769px) {
  body { padding-bottom: 0; } /* no sticky bar on desktop */

  .nav { padding: 20px 40px; }
  .nav-logo { height: 32px; }
  .nav-cta { display: inline-block; } /* show nav CTA on desktop */

  .hero { height: 100vh; }
  .hero-content {
    max-width: 1400px;
    left: 50%; transform: translateX(-50%); /* center on desktop */
    padding: 0 40px 60px; /* no sticky bar offset */
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
  }
  .hero-text { max-width: 600px; padding-bottom: 20px; }
  .hero-brand { display: block; font-size: 1.4rem; }
  .hero-img-mobile { display: none !important; }
  .hero-img-desktop { display: block; }
  .hero-text h1 { font-size: clamp(2.4rem, 4.5vw, 3.8rem); }
  .hero-cards { display: flex; flex-direction: column; gap: 12px; max-width: 480px; }
  .hero-card { padding: 20px 24px; border-radius: 20px; }
  .hero-card img { width: 80px; height: 80px; border-radius: 16px; }
  .hero-card-text h3 { font-size: 0.95rem; }
  .hero-card-text p { font-size: 0.82rem; }
  .hero-card-row { display: flex; gap: 12px; } /* restore on desktop */
  .hero-card-small { padding: 20px; border-radius: 20px; }
  .hero-card-small img { width: 48px; height: 48px; }
  .hero-card-small span { font-size: 0.85rem; }

  .bento { padding: 100px 40px; }
  .bento h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin-bottom: 60px; }
  .bento-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .bento-card { min-height: 280px; padding: 24px; border-radius: 24px; }
  .bento-card .bento-label { font-size: 1rem; }
  .bento-arrow { width: 32px; height: 32px; font-size: 14px; }

  .app-demo { padding: 80px 40px; }
  .app-demo-inner {
    flex-direction: row;
    max-width: 1000px;
    text-align: left;
    gap: 60px;
  }
  .app-demo-text { flex: 1; }
  .app-demo-text h2 { font-size: 2rem; }
  .app-demo-text p { font-size: 1rem; margin: 0; max-width: none; }
  .app-demo-phone { width: 280px; flex-shrink: 0; }

  .cards-section { padding: 100px 40px; }
  .cards-inner > h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 48px; }
  .cards-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .card-item { border-radius: 24px; }
  .card-img { height: 220px; padding: 24px; }
  .card-img img { max-height: 180px; }
  .card-body { padding: 28px; }
  .card-body h3 { font-size: 1.4rem; }

  .trust { padding: 40px; }
  .trust-inner { gap: 60px; }
  .trust-item img { height: 28px; }
  .trust-item span { font-size: 0.9rem; }

  .values { padding: 100px 40px; }
  .values-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .value-card { border-radius: 24px; padding: 40px 32px; min-height: 280px; }
  .value-card h3 { font-size: 1.6rem; }
  .value-card p { font-size: 0.95rem; }

  .cta-section { padding: 100px 40px; }
  .cta-inner { flex-direction: row; gap: 60px; }
  .cta-text h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
  .cta-image { min-height: 400px; border-radius: 32px; }
  .cta-image img { border-radius: 32px; }

  .footer { padding: 80px 40px 40px; }
  .footer-logo { height: 60px; margin-bottom: 32px; }
  .store-badges { margin-bottom: 32px; }
  .store-badges a img { height: 44px; }

  /* Hide sticky bar on desktop */
  .sticky-cta { display: none; }
}

/* ==========================================================================
   LARGE DESKTOP — min-width: 1025px
   ========================================================================== */
@media (min-width: 1025px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   PERSONALIZATION — show/hide based on body.personalized class
   Default: show generic, hide personalized
   When body.personalized: hide generic, show personalized
   ========================================================================== */
.personalized-only { display: none; }
.generic-only { display: revert; }

body.personalized .personalized-only { display: revert; }
body.personalized .generic-only { display: none; }

/* Hero personalized: section needs flex like .hero */
section.hero.personalized-only { display: none; }
body.personalized section.hero.personalized-only { display: flex; }
body.personalized section.hero.generic-only { display: none; }

/* CTA text variants */
h2.personalized-only,
p.personalized-only { display: none; }
body.personalized h2.personalized-only,
body.personalized p.personalized-only { display: block; }
body.personalized h2.generic-only,
body.personalized p.generic-only { display: none; }

/* Bento: hide on personalized (shorter funnel) */
body.personalized .bento.generic-only { display: none; }

/* ==========================================================================
   WAITLIST WELCOME SECTION (personalized only)
   ========================================================================== */
.waitlist-welcome {
  padding: 48px 20px;
  background: var(--gray-100);
  text-align: center;
}
.waitlist-inner {
  max-width: 640px;
  margin: 0 auto;
}
.waitlist-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,200,150,0.12);
  color: #00996e;
  padding: 8px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.waitlist-welcome h2 {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.waitlist-welcome p {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.65;
  margin-bottom: 32px;
}
.waitlist-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 360px;
  margin: 0 auto;
}
.waitlist-step {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border-radius: 16px;
  padding: 16px 20px;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 600;
}
.waitlist-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (min-width: 769px) {
  .waitlist-welcome { padding: 80px 40px; }
  .waitlist-welcome h2 { font-size: 2rem; }
  .waitlist-steps {
    flex-direction: row;
    max-width: 100%;
    gap: 16px;
  }
  .waitlist-step { flex: 1; flex-direction: column; text-align: center; padding: 24px; }
}
