/* PlayX Club — Mobile-First Professional Landing Page */
/* Base = mobile (<768px). Desktop = min-width: 768px */

:root {
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --space-10: 80px;
  --bg-dark: #0a0a0f;
  --bg-card: rgba(18, 18, 24, 0.95);
  --bg-glass: rgba(255, 255, 255, 0.05);
  --border-glass: rgba(255, 255, 255, 0.08);
  --text: #f5f5f7;
  --text-muted: #9ca3af;
  --accent-red: #ef4444;
  --accent-red-dim: #dc2626;
  --radius: 12px;
  --radius-lg: 16px;
  --transition: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.55;
  font-size: 15px;
  min-height: 100vh;
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-animate] { animation: none !important; }
}

/* ========== MOBILE BASE (<768px) ========== */

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
}

.nav-inner {
  display: flex;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  max-width: 1200px;
  margin: 0 auto;
}

.brand {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--text);
}

.brand-x {
  color: var(--accent-red);
}

/* Hero — MOBILE: single column, text/buttons first, image last (no overlay) */
.hero {
  position: relative;
  min-height: auto;
  background-color: var(--bg-dark);
  background-image: none;
}

.hero-overlay {
  display: none;
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: var(--space-2) var(--space-3) var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-content {
  width: 100%;
  order: 1;
  display: flex;
  flex-direction: column;
}

.hero-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin: 0 0 var(--space-2);
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 var(--space-2);
  line-height: 1.2;
}

.hero-headline {
  display: block;
  font-size: clamp(1.75rem, 8vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-sub {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text-muted);
  margin: 0 0 var(--space-3);
  line-height: 1.55;
}

.cta-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.trust-line {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

/* Hero image on mobile — full width, rounded corners */
.hero-img-mobile {
  order: 2;
  width: 100%;
  height: 260px;
  margin-top: var(--space-3);
  margin-left: 0;
  margin-right: 0;
  overflow: hidden;
  border-radius: var(--radius);
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-img-mobile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
}

/* Buttons — mobile: 100% width, 48px height */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-3);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition);
  width: 100%;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  border: none;
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

.btn:focus-visible {
  outline: 2px solid var(--accent-red);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--accent-red);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-red-dim);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  background: var(--bg-glass);
  color: var(--text);
  border: 2px solid var(--border-glass);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary:active {
  transform: scale(0.98);
}

.btn-large {
  padding: var(--space-2) var(--space-4);
  font-size: 0.9375rem;
}

/* Benefits — MOBILE: single column */
.benefits {
  padding: var(--space-6) var(--space-3);
  max-width: 1200px;
  margin: 0 auto;
}

.benefits h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin: 0 0 var(--space-4);
  text-align: center;
  color: var(--text);
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
}

.card[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.card[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-2);
  color: var(--accent-red);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0 0 var(--space-1);
  color: var(--text);
}

.card p {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-muted);
  margin: 0;
}

/* How It Works */
.how-it-works {
  padding: var(--space-6) var(--space-3);
  max-width: 640px;
  margin: 0 auto;
}

.how-it-works h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin: 0 0 var(--space-4);
  text-align: center;
  color: var(--text);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
}

.step[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.step[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-red);
  color: white;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
}

.step-body h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0 0 2px;
  color: var(--text);
}

.step-body p {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  margin: 0;
}

.how-it-works .note {
  margin-top: var(--space-3);
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
}

/* APK Section */
.apk-section {
  padding: var(--space-4) var(--space-3);
}

.apk-section[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.apk-section[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

.apk-card {
  max-width: 440px;
  margin: 0 auto;
  padding: var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  text-align: center;
}

.apk-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 var(--space-2);
  color: var(--text);
}

.apk-card p {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  margin: 0 0 var(--space-2);
}

.apk-note {
  font-size: 0.75rem !important;
  margin-bottom: var(--space-3) !important;
}

.apk-card .btn {
  margin-top: var(--space-1);
  min-width: 100%;
}

/* Footer */
.footer {
  padding: var(--space-5) var(--space-3);
  margin-top: var(--space-6);
  border-top: 1px solid var(--border-glass);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-1);
  margin-bottom: var(--space-3);
}

.footer-links a {
  color: var(--accent-red);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: var(--space-2) var(--space-1);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-links a:focus-visible {
  outline: 2px solid var(--accent-red);
  outline-offset: 2px;
}

.footer-dot {
  color: var(--text-muted);
  font-size: 0.625rem;
}

.disclaimer {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  text-align: center;
  margin: 0 auto var(--space-3);
  max-width: 360px;
}

.copyright {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
}

/* Sticky CTA (Mobile) — 64px height, safe-area */
.sticky-cta {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  padding: var(--space-2) var(--space-3);
  padding-bottom: calc(var(--space-2) + env(safe-area-inset-bottom, 0px));
  background: rgba(10, 10, 15, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-glass);
  z-index: 90;
  gap: var(--space-2);
  justify-content: center;
  align-items: center;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.sticky-cta.visible {
  transform: translateY(0);
}

.btn-sticky {
  flex: 1;
  max-width: 180px;
  height: 40px;
  min-height: 40px;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: var(--radius);
}

/* ========== TABLET: 2-column cards ========== */
@media (min-width: 600px) {
  .benefits-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
  }
}

/* ========== DESKTOP (≥768px) ========== */
@media (min-width: 768px) {
  body {
    font-size: 16px;
  }

  .nav-inner {
    padding: var(--space-2) var(--space-4);
  }

  .brand {
    font-size: 1.125rem;
  }

  /* Hero — DESKTOP: two-column, background image, text left */
  .hero {
    min-height: min(90vh, 640px);
    align-items: center;
    background-image: url("hero.jpg");
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
  }

  .hero-overlay {
    display: block;
    position: absolute;
    inset: 0;
    background: linear-gradient(
      90deg,
      rgba(10, 10, 15, 0.95) 0%,
      rgba(10, 10, 15, 0.7) 45%,
      rgba(10, 10, 15, 0.2) 75%,
      transparent 100%
    );
    pointer-events: none;
  }

  .hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    flex-direction: row;
    align-items: center;
    gap: var(--space-8);
    padding: var(--space-6) var(--space-4);
  }

  .hero-content {
    flex: 1;
    max-width: 480px;
    order: unset;
  }

  .hero-badge {
    font-size: 0.75rem;
  }

  .hero h1 {
    margin: 0 0 var(--space-3);
  }

  .hero-headline {
    font-size: clamp(1.875rem, 4vw, 2.5rem);
  }

  .hero-sub {
    font-size: 1rem;
    margin: 0 0 var(--space-4);
  }

  .trust-line {
    font-size: 0.8125rem;
  }

  .hero-img-mobile {
    display: none;
  }

  /* Buttons — desktop */
  .btn {
    width: auto;
    min-width: 200px;
    max-width: 520px;
    height: 48px;
    min-height: 48px;
    max-height: 48px;
    font-size: 1rem;
    font-weight: 700;
  }

  .cta-stack .btn {
    max-width: 520px;
  }

  /* Benefits — 4 columns */
  .benefits {
    padding: var(--space-10) var(--space-4);
  }

  .benefits h2 {
    font-size: 1.75rem;
    margin: 0 0 var(--space-6);
  }

  .benefits-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .card {
    padding: var(--space-4);
  }

  .card-icon {
    width: 44px;
    height: 44px;
  }

  .card-icon svg {
    width: 28px;
    height: 28px;
  }

  .card h3 {
    font-size: 1rem;
  }

  .card p {
    font-size: 0.875rem;
  }

  /* How It Works */
  .how-it-works {
    padding: var(--space-10) var(--space-4);
  }

  .how-it-works h2 {
    font-size: 1.75rem;
    margin: 0 0 var(--space-6);
  }

  .step {
    padding: var(--space-3) var(--space-4);
    gap: var(--space-3);
  }

  .step-num {
    width: 40px;
    height: 40px;
    font-size: 1.125rem;
  }

  .step-body h3 {
    font-size: 1rem;
  }

  .step-body p {
    font-size: 0.9375rem;
  }

  .how-it-works .note {
    font-size: 0.875rem;
    margin-top: var(--space-4);
  }

  /* APK Section */
  .apk-section {
    padding: var(--space-4);
  }

  .apk-card {
    padding: var(--space-5);
  }

  .apk-card h2 {
    font-size: 1.375rem;
  }

  .apk-card p {
    font-size: 0.9375rem;
  }

  .apk-note {
    font-size: 0.8125rem !important;
  }

  .apk-card .btn {
    min-width: 200px;
  }

  .btn-large {
    padding: var(--space-3) var(--space-5);
    font-size: 1rem;
  }

  /* Footer */
  .footer {
    padding: var(--space-6) var(--space-4);
    margin-top: var(--space-10);
  }

  .footer-links {
    gap: var(--space-1);
    margin-bottom: var(--space-4);
  }

  .footer-links a {
    font-size: 0.9375rem;
  }

  .disclaimer {
    font-size: 0.8125rem;
  }

  .copyright {
    font-size: 0.8125rem;
  }

  /* Hide sticky CTA on desktop */
  .sticky-cta {
    display: none;
  }

  body {
    padding-bottom: 0;
  }
}
