/* ============================================
   BestBeter Landing Page — Design System
   ============================================ */

/* --- Google Font --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;900&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --bg: #1a2018;
  --bg2: #222b1f;
  --card: #263022;
  --border: #3a4a35;
  --lime: #c8f135;
  --lime-dim: #9ab829;
  --white: #f0f4ea;
  --muted: #7a8c72;

  --font: 'Inter', sans-serif;
  --radius-card: 14px;
  --radius-btn: 12px;
  --radius-logo: 8px;
  --max-width: 1200px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--white);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: var(--lime);
  text-decoration: none;
  transition: color .2s;
}

a:hover {
  color: var(--lime-dim);
}

/* --- Utility --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 56px;
}

.section-tag {
  font-size: 10px;
  font-weight: 700;
  background: rgba(200, 241, 53, .12);
  color: var(--lime);
  border: 1px solid rgba(200, 241, 53, .25);
  border-radius: 6px;
  padding: 3px 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
  display: inline-block;
  margin-bottom: 16px;
}

.section-title {
  font-size: 42px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.6;
}

.text-center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* --- Section spacing --- */
section {
  padding: 100px 0;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 60px 0 100px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -200px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(200, 241, 53, .15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Background Logo Branding */
.hero-bg-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  opacity: 0.1;
  filter: blur(6px);
  width: 2100px;
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  animation: spin-logo 60s linear infinite;
}

@keyframes spin-logo {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.hero-bg-logo img {
  width: 100%;
  mix-blend-mode: screen;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-content {
  flex: 1;
  min-width: 0;
}

.hero-mockup {
  flex: 0 0 350px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-mockup-composition {
  position: relative;
  animation: phone-float 5s ease-in-out infinite;
  filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 60px rgba(200, 241, 53, 0.08));
  transition: transform 0.4s ease;
}

.hero-mockup-composition:hover {
  transform: translateY(-6px) scale(1.02);
}

.hero-mockup-composition img {
  width: 100%;
  max-width: 320px;
  display: block;
  mix-blend-mode: multiply;
}


/* ============================================
   PHONE FRAME MOCKUP + CAROUSEL
   ============================================ */

.phone-frame {
  position: relative;
  width: 280px;
  background: #0e1210;
  border-radius: 44px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(200, 241, 53, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 12px 10px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: phone-float 4s ease-in-out infinite;
}

@keyframes phone-float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Notch */
.phone-notch {
  width: 80px;
  height: 20px;
  background: #0e1210;
  border-radius: 0 0 16px 16px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  border-left: 2px solid rgba(255, 255, 255, 0.08);
  border-right: 2px solid rgba(255, 255, 255, 0.08);
  border-bottom: 2px solid rgba(255, 255, 255, 0.08);
}

/* Screen */
.phone-screen {
  width: 100%;
  border-radius: 34px;
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  background: #111;
  position: relative;
}

/* Carousel */
.carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* Dots */
.phone-dots {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

.phone-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.3s, transform 0.3s;
  cursor: pointer;
}

.phone-dot.active {
  background: var(--lime);
  transform: scale(1.3);
}


/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

/* Logo Styles Removed as it's now in one line and larger */

.logo-text {
  font-weight: 900;
  font-size: 24px;
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(200, 241, 53, .15);
  }

  50% {
    box-shadow: 0 0 40px rgba(200, 241, 53, .25);
  }
}

/* Hero tagline */
.hero-tagline {
  font-size: 60px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.01em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #c8f135 0%, #f0f4ea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 18px;
  color: #d1dec8; /* Color más claro para mejor legibilidad */
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 480px;
}

/* CTA Buttons */
.cta-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--lime);
  color: var(--bg);
  font-family: var(--font);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: background .2s, transform .15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--lime-dim);
  transform: translateY(-2px);
  color: var(--bg);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  font-family: var(--font);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: border-color .2s, transform .15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--lime-dim);
  transform: translateY(-2px);
}

/* ============================================
   WHAT IS SECTION
   ============================================ */
.what-is {
  background: var(--bg2);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

/* Card Component */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  transition: border-color .2s, transform .3s;
}

.card:hover {
  border-color: var(--lime-dim);
  transform: translateY(-4px);
}

.card-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.card-icon img {
  width: 32px;
  height: 32px;
  display: block;
  margin: 0 auto;
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.card-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

/* ============================================
   HOW IT WORKS — TIMELINE
   ============================================ */
.how-it-works {
  background: var(--bg);
}

.timeline {
  position: relative;
  margin-top: 56px;
  max-width: 700px;
}

/* Vertical line */
.timeline::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-step {
  display: flex;
  gap: 24px;
  margin-bottom: 48px;
  position: relative;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

.step-num {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--bg);
  font-size: 16px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.step-content {
  flex: 1;
  padding-top: 4px;
}

.step-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.step-title .lime {
  color: var(--lime);
}

.step-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
}

/* ============================================
   KEY MECHANICS — 2×2 GRID
   ============================================ */
.mechanics {
  background: var(--bg2);
}

.mechanics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.mech-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--lime);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  transition: border-color .2s, transform .3s;
}

.mech-card:hover {
  border-color: var(--lime-dim);
  border-left-color: var(--lime);
  transform: translateY(-4px);
}

.mech-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.mech-icon img {
  width: 28px;
  height: 28px;
  display: block;
}

.mech-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.mech-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

/* ============================================
   ELO RANKS
   ============================================ */
.ranks {
  background: var(--bg);
}

.ranks-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 48px;
  max-width: 600px;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: var(--card);
  transition: transform .3s, border-color .2s;
}

.rank-item:hover {
  transform: translateX(8px);
  border-color: var(--lime-dim);
}

.rank-badge {
  font-size: 28px;
  min-width: 36px;
  text-align: center;
}

.rank-badge img {
  width: 28px;
  height: 28px;
  display: block;
  margin: 0 auto;
}

.rank-info {
  flex: 1;
}

.rank-name {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.rank-range {
  font-size: 13px;
  color: var(--muted);
}

.rank-bar {
  height: 6px;
  border-radius: 3px;
  min-width: 40px;
}

/* Rank-specific colors */
.rank-bronze .rank-name {
  color: #cd7f32;
}

.rank-bronze .rank-bar {
  background: linear-gradient(90deg, #cd7f32, #a0622a);
}

.rank-silver .rank-name {
  color: #c0c0c0;
}

.rank-silver .rank-bar {
  background: linear-gradient(90deg, #c0c0c0, #9a9a9a);
}

.rank-gold .rank-name {
  color: #ffd700;
}

.rank-gold .rank-bar {
  background: linear-gradient(90deg, #ffd700, #daa520);
}

.rank-platinum .rank-name {
  color: #b388ff;
}

.rank-platinum .rank-bar {
  background: linear-gradient(90deg, #b388ff, #7c4dff);
}

.rank-diamond .rank-name {
  color: #00e5ff;
}

.rank-diamond .rank-bar {
  background: linear-gradient(90deg, #00e5ff, #18ffff);
}

.badge-text {
  font-weight: 900;
  font-style: italic;
  letter-spacing: -1px;
}

.badge-platinum {
  color: #b388ff;
}

.badge-diamond {
  color: #00e5ff;
}

.rank-bar-bronze {
  width: 20%;
}

.rank-bar-silver {
  width: 40%;
}

.rank-bar-gold {
  width: 60%;
}

.rank-bar-platinum {
  width: 80%;
}

.rank-bar-diamond {
  width: 100%;
}

.ranks-note {
  margin-top: 32px;
  font-size: 15px;
  color: var(--muted);
  font-style: italic;
  max-width: 600px;
}

/* ============================================
   SOCIAL / COMMUNITY
   ============================================ */
.social {
  background: var(--bg2);
}

.social .container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.social-content {
  flex: 1;
}

.social-mockup {
  flex: 0 0 400px;
  display: flex;
  justify-content: center;
}

.social-mockup-img img {
  width: 100%;
  display: block;
  mix-blend-mode: multiply;
}

.feature-list {
  list-style: none;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  line-height: 1.5;
}

.feature-list .check {
  color: var(--lime);
  font-size: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ============================================
   FINAL CTA / FOOTER
   ============================================ */
.final-cta {
  background: var(--bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  bottom: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200, 241, 53, .08) 0%, transparent 70%);
  pointer-events: none;
}

.final-cta .container {
  position: relative;
  z-index: 1;
}

.final-tagline {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.01em;
  margin-bottom: 16px;
}

.final-sub {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 36px;
}

.final-cta .cta-group {
  justify-content: center;
}

footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: color .2s;
}

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

.footer-copy {
  font-size: 13px;
  color: var(--muted);
}

/* ============================================
   FADE-IN ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.fade-in-group .fade-in:nth-child(1) {
  transition-delay: 0s;
}

.fade-in-group .fade-in:nth-child(2) {
  transition-delay: 0.1s;
}

.fade-in-group .fade-in:nth-child(3) {
  transition-delay: 0.2s;
}

.fade-in-group .fade-in:nth-child(4) {
  transition-delay: 0.25s;
}

.fade-in-group .fade-in:nth-child(5) {
  transition-delay: 0.3s;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  .container {
    padding: 0 32px;
  }

  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-tagline {
    font-size: 44px;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .cta-group {
    justify-content: center;
  }

  .hero-mockup {
    display: none;
  }


  .section-title {
    font-size: 34px;
  }

  .social .container {
    flex-direction: column;
    text-align: center;
  }

  .social-mockup {
    flex: none;
    margin-top: 40px;
  }

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

  .logo {
    justify-content: center;
  }

  .hero-bg-logo {
    width: 1400px;
  }
}

/* Mobile L */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  section {
    padding: 72px 0;
  }

  .hero {
    min-height: 100dvh;
    padding: 20px 0;
  }

  .hero-tagline {
    font-size: 36px;
  }

  .hero-bg-logo {
    width: 900px;
  }

  .hero-sub {
    font-size: 16px;
  }


  .section-title {
    font-size: 28px;
  }

  .section-subtitle {
    font-size: 15px;
  }

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

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

  .timeline {
    margin-top: 40px;
  }

  .timeline-step {
    gap: 16px;
    margin-bottom: 36px;
  }

  .step-title {
    font-size: 18px;
  }

  .step-desc {
    font-size: 14px;
  }

  .ranks-list {
    max-width: 100%;
  }

  .rank-item {
    padding: 14px 16px;
    gap: 12px;
  }

  .rank-name {
    font-size: 16px;
  }

  .final-tagline {
    font-size: 32px;
  }

  .hero-mockup-img,
  .social-mockup-img {
    width: 240px;
    height: 480px;
  }

  .feature-list li {
    font-size: 15px;
  }
}

/* Mobile S */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 20px 0;
  }

  .hero-tagline {
    font-size: 28px;
  }

  .hero-sub {
    font-size: 15px;
    margin-bottom: 28px;
  }


  .logo-mark {
    width: 40px;
    height: 40px;
  }

  .logo-text {
    font-size: 20px;
  }

  .cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    justify-content: center;
    text-align: center;
    padding: 12px 24px;
    font-size: 15px;
  }

  section {
    padding: 56px 0;
  }

  .section-title {
    font-size: 24px;
  }

  .section-tag {
    font-size: 9px;
  }

  .hero-mockup-img,
  .social-mockup-img {
    width: 200px;
    height: 400px;
    border-radius: 24px;
  }

  .hero-mockup {
    margin-top: 32px;
  }

  .card {
    padding: 22px 20px;
  }

  .card-title {
    font-size: 18px;
  }

  .card-icon {
    font-size: 28px;
    margin-bottom: 12px;
  }

  .mech-card {
    padding: 22px 20px;
  }

  .mech-title {
    font-size: 18px;
  }

  .timeline::before {
    left: 14px;
  }

  .step-num {
    width: 30px;
    height: 30px;
    min-width: 30px;
    font-size: 13px;
  }

  .step-title {
    font-size: 16px;
  }

  .step-desc {
    font-size: 13px;
  }

  .timeline-step {
    gap: 14px;
    margin-bottom: 28px;
  }

  .rank-item {
    padding: 12px 14px;
    gap: 10px;
  }

  .rank-badge {
    font-size: 22px;
    min-width: 28px;
  }

  .rank-name {
    font-size: 15px;
  }

  .rank-range {
    font-size: 12px;
  }

  .ranks-note {
    font-size: 13px;
  }

  .final-tagline {
    font-size: 28px;
  }

  .final-sub {
    font-size: 16px;
    margin-bottom: 28px;
  }

  .footer-links {
    gap: 16px;
  }

  .footer-links a {
    font-size: 13px;
  }

  .footer-copy {
    font-size: 12px;
  }

  .feature-list li {
    font-size: 14px;
    gap: 10px;
  }

  .feature-list .check {
    font-size: 16px;
  }
}