/* ============== RESET & TOKENS ============== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

:root {
  --tt-pink: #FE2C55;
  --tt-cyan: #25F4EE;
  --tt-purple: #8B2BE2;
  --tt-deep: #160d24;

  --bg: #0c0716;
  --bg-2: #14092a;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.1);
  --text: #f4f1ff;
  --text-dim: #b9b1cf;

  --grad-hero: radial-gradient(120% 120% at 0% 0%, #2a0e58 0%, #160d24 45%, #07020f 100%);
  --grad-tt: linear-gradient(135deg, #25F4EE 0%, #FE2C55 60%, #8B2BE2 100%);
  --grad-pink: linear-gradient(135deg, #FE2C55 0%, #FF5C8A 100%);
  --grad-purple: linear-gradient(135deg, #8B2BE2 0%, #FE2C55 100%);

  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 20px 60px rgba(254, 44, 85, 0.18);
  --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.45);

  --container: 1200px;
}

body {
  background:
    radial-gradient(800px 600px at 90% -10%, rgba(254,44,85,0.18), transparent 60%),
    radial-gradient(700px 500px at -10% 20%, rgba(37,244,238,0.14), transparent 60%),
    radial-gradient(900px 700px at 50% 110%, rgba(139,43,226,0.22), transparent 60%),
    var(--bg);
}

h1, h2, h3, h4 { font-weight: 800; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5vw + 0.5rem, 4.6rem); font-style: italic; }
h2 { font-size: clamp(1.9rem, 3vw + 0.5rem, 3rem); }
h3 { font-size: 1.25rem; }
p  { color: var(--text-dim); margin: 0 0 1em; }

.grad-text {
  background: var(--grad-tt);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ============== HEARTS BACKGROUND ============== */
.hearts-bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.heart {
  position: absolute;
  font-size: 28px;
  color: rgba(254, 44, 85, 0.18);
  text-shadow: 0 0 18px rgba(254, 44, 85, 0.45);
  animation: floatY 12s ease-in-out infinite;
  user-select: none;
}
.h1 { top: 12%; left: 6%;  font-size: 42px; animation-delay: 0s; }
.h2 { top: 30%; left: 88%; font-size: 32px; animation-delay: 1.5s; color: rgba(139,43,226,0.25); }
.h3 { top: 58%; left: 4%;  font-size: 26px; animation-delay: 3s; }
.h4 { top: 72%; left: 78%; font-size: 48px; animation-delay: 4.5s; color: rgba(254,44,85,0.22); }
.h5 { top: 18%; left: 48%; font-size: 22px; animation-delay: 6s; color: rgba(37,244,238,0.18); }
.h6 { top: 84%; left: 30%; font-size: 36px; animation-delay: 7.5s; }
.h7 { top: 42%; left: 60%; font-size: 28px; animation-delay: 9s; color: rgba(139,43,226,0.22); }
.h8 { top: 8%;  left: 76%; font-size: 30px; animation-delay: 10.5s; }

@keyframes floatY {
  0%,100% { transform: translateY(0) rotate(-6deg); opacity: 0.6; }
  50%     { transform: translateY(-32px) rotate(8deg); opacity: 1; }
}

/* ============== NAVBAR ============== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 48px);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(12, 7, 22, 0.55);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; }
.brand-logo { width: 32px; height: 32px; border-radius: 8px; }
.brand-name { font-style: italic; }
.brand-accent {
  background: var(--grad-pink);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--text-dim); font-weight: 600; font-size: 0.95rem; transition: color .2s; }
.nav-links a:hover { color: var(--text); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

/* ============== BUTTONS ============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform .2s, box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }
.btn-primary {
  background: var(--grad-pink);
  color: #fff;
  box-shadow: 0 12px 30px rgba(254, 44, 85, 0.45);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(254, 44, 85, 0.6); }
.btn-secondary {
  background: var(--surface-strong);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.12); }
.btn-ghost {
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.18);
  background: transparent;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); }
.btn.is-disabled,
a.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.3);
}

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-row.center { justify-content: center; }

/* ============== HERO ============== */
.hero {
  position: relative;
  z-index: 1;
  padding: clamp(40px, 6vw, 80px) clamp(16px, 4vw, 48px) clamp(60px, 8vw, 110px);
  overflow: hidden;
}
.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-copy h1 { margin-top: 14px; }
.hero-copy h1 .grad-text { display: inline-block; }

.lead { font-size: clamp(1rem, 1vw + 0.7rem, 1.2rem); color: var(--text-dim); max-width: 560px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(254, 44, 85, 0.12);
  border: 1px solid rgba(254, 44, 85, 0.4);
  color: #ff6e93;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--tt-pink);
  box-shadow: 0 0 0 0 rgba(254,44,85,0.7);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(254,44,85,0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(254,44,85,0); }
  100% { box-shadow: 0 0 0 0 rgba(254,44,85,0); }
}

.hero-stats {
  margin-top: 36px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.hero-stats > div { display: flex; flex-direction: column; }
.hero-stats strong {
  font-size: 1.6rem;
  background: var(--grad-pink);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-stats span { font-size: 0.85rem; color: var(--text-dim); }

/* Hero art */
.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}
.phone-mock {
  position: relative;
  width: clamp(220px, 26vw, 320px);
  border-radius: 36px;
  overflow: hidden;
  box-shadow: var(--shadow-soft), 0 0 60px rgba(254,44,85,0.28);
  transform: rotate(-4deg);
  transition: transform .5s ease;
  background: #000;
}
.phone-mock img { display: block; width: 100%; }
.phone-mock-back {
  position: absolute;
  top: 8%;
  left: -8%;
  width: clamp(180px, 22vw, 260px);
  transform: rotate(-14deg);
  opacity: 0.85;
  z-index: -1;
  filter: blur(0.4px);
}
.hero-art:hover .phone-mock { transform: rotate(0deg) scale(1.02); }

.live-pill {
  position: absolute;
  top: 18px;
  right: 6%;
  background: #fff;
  color: var(--tt-pink);
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 12px 30px rgba(254,44,85,0.4);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  animation: floatY 4s ease-in-out infinite;
}
.live-pill .rec {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--tt-pink);
  box-shadow: 0 0 12px var(--tt-pink);
}

/* ============== SECTION HEADS ============== */
.section-head {
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
  padding: 0 clamp(16px, 4vw, 48px);
}
.section-head p { font-size: 1.05rem; }

/* ============== FEATURES ============== */
.features {
  position: relative;
  z-index: 1;
  padding: clamp(60px, 8vw, 100px) clamp(16px, 4vw, 48px);
}
.feature-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.feature-card {
  position: relative;
  padding: 28px 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform .3s, border-color .3s, box-shadow .3s;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--grad-pink);
  opacity: 0;
  transition: opacity .35s;
  z-index: -1;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(254, 44, 85, 0.5);
  box-shadow: 0 20px 50px rgba(254,44,85,0.18);
}
.feature-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--grad-pink);
  display: grid; place-items: center;
  font-size: 1.7rem;
  margin-bottom: 18px;
  box-shadow: 0 12px 24px rgba(254,44,85,0.35);
}
.feature-card h3 { color: var(--text); }
.feature-card p { font-size: 0.95rem; margin: 0; }

/* ============== SCREENSHOTS CAROUSEL ============== */
.showcase {
  position: relative;
  z-index: 1;
  padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 8vw, 100px);
}
.carousel {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}
.carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 30px 6px 50px;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 calc(33.333% - 16px);
  scroll-snap-align: center;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .35s, box-shadow .35s;
  background: #000;
  aspect-ratio: 9/19;
}
.slide:hover { transform: scale(1.03); box-shadow: 0 20px 60px rgba(254,44,85,0.35); }
.slide img { width: 100%; height: 100%; object-fit: cover; }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid var(--border);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  display: grid; place-items: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2;
  transition: background .2s, transform .2s;
}
.carousel-btn:hover { background: var(--grad-pink); transform: translateY(-50%) scale(1.08); }
.carousel-btn.prev { left: 4px; }
.carousel-btn.next { right: 4px; }

.carousel-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: -12px;
}
.dot-btn {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: background .25s, width .25s;
}
.dot-btn.active {
  background: var(--tt-pink);
  width: 28px;
  border-radius: 6px;
}

/* ============== HOW IT WORKS ============== */
.how {
  position: relative;
  z-index: 1;
  padding: clamp(40px, 6vw, 80px) 0;
}
.how-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 10px clamp(16px, 4vw, 48px) 30px;
  scrollbar-width: none;
}
/* Centrar las tarjetas en pantallas anchas sin romper el scroll cuando
   no caben. Las margenes auto colapsan a 0 si no hay espacio sobrante,
   así el scroll horizontal arranca desde la primera tarjeta sin recorte. */
.how-track > .how-card:first-child { margin-inline-start: auto; }
.how-track > .how-card:last-child  { margin-inline-end:   auto; }
.how-track::-webkit-scrollbar { display: none; }

.how-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 22px 26px;
  position: relative;
  transition: transform .3s, border-color .3s;
}
.how-card:hover { transform: translateY(-6px); border-color: rgba(254,44,85,0.5); }

.how-step {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--tt-pink);
  background: rgba(254,44,85,0.12);
  border: 1px solid rgba(254,44,85,0.4);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
  letter-spacing: 0.08em;
}
.how-media {
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 14px;
  background: #000;
  aspect-ratio: 9/16;
  box-shadow: var(--shadow-soft);
}
.how-media img { width: 100%; height: 100%; object-fit: cover; }
.how-card h3 { margin-bottom: 6px; }
.how-card p { font-size: 0.9rem; margin: 0; }

.how-hint {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 6px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============== PROOF ============== */
.proof {
  position: relative;
  z-index: 1;
  padding: clamp(60px, 8vw, 100px) clamp(16px, 4vw, 48px);
}
.proof-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.proof-card {
  text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  transition: transform .3s, border-color .3s;
}
.proof-card:hover { transform: translateY(-4px); border-color: rgba(254,44,85,0.4); }
.proof-emoji { font-size: 2.4rem; margin-bottom: 14px; }
.proof-card h4 { font-size: 1.15rem; margin-bottom: 6px; }
.proof-card p { font-size: 0.95rem; margin: 0; }

/* ============== DOWNLOAD ============== */
.download {
  position: relative;
  z-index: 1;
  padding: clamp(40px, 6vw, 80px) clamp(16px, 4vw, 48px);
}
.download-card {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(40px, 6vw, 70px) clamp(24px, 4vw, 60px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(254,44,85,0.35), transparent 60%),
    radial-gradient(120% 120% at 100% 100%, rgba(139,43,226,0.45), transparent 60%),
    rgba(255,255,255,0.04);
  border: 1px solid rgba(254,44,85,0.4);
  box-shadow: 0 30px 80px rgba(254,44,85,0.25);
}
.download-card h2 { font-size: clamp(1.8rem, 3vw + 0.5rem, 2.6rem); }
.download-card p { font-size: 1.1rem; max-width: 560px; margin: 0 auto 26px; }
.micro { font-size: 0.85rem; color: var(--text-dim); margin-top: 18px; }

/* ============== FOOTER ============== */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 36px clamp(16px, 4vw, 48px);
  margin-top: 40px;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 40px; height: 40px; border-radius: 10px; }
.footer-brand strong { display: block; font-size: 1.05rem; }
.footer-brand span { display: block; font-size: 0.8rem; color: var(--text-dim); }

.footer-nav {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
}
.footer-nav a { color: var(--text-dim); font-size: 0.9rem; transition: color .2s; }
.footer-nav a:hover { color: var(--text); }

.copy { font-size: 0.8rem; color: var(--text-dim); margin: 0; text-align: right; }

/* ============== RESPONSIVE ============== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-copy .badge { margin-inline: auto; }
  .lead { margin-inline: auto; }
  .cta-row { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-art { min-height: 460px; margin-top: 10px; }
  .slide { flex: 0 0 calc(50% - 12px); }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 64px; right: 16px; left: 16px;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    gap: 14px;
    background: rgba(20, 9, 42, 0.96);
    border: 1px solid var(--border);
    border-radius: 18px;
    backdrop-filter: blur(16px);
  }
  .nav-links.open a { padding: 8px 4px; }

  .hero { padding-top: 30px; }
  .slide { flex: 0 0 80%; }
  .carousel-btn { display: none; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .copy { text-align: center; }
  .footer-brand { justify-content: center; }
}

@media (max-width: 480px) {
  h1 { font-size: 2.3rem; }
  .hero-stats { gap: 18px; }
  .hero-stats strong { font-size: 1.3rem; }
  .btn-lg { padding: 14px 22px; font-size: 1rem; }
  .feature-card { padding: 24px 20px; }
  .how-card { flex: 0 0 86%; }
  .download-card { padding: 36px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
