/* PlayX Club — Same design desktop + mobile, responsive auto-adjust */

:root {
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --bg-dark: #0a0a0f;
  --bg-card: rgba(18, 18, 24, 0.95);
  --bg-glass: rgba(255, 255, 255, 0.06);
  --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: clamp(14px, 2.5vw, 16px);
  min-height: 100vh;
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-animate] { opacity: 1 !important; transform: none !important; }
}

/* ========== 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: clamp(12px, 2vw, 16px) clamp(16px, 4vw, 32px);
  max-width: 1200px;
  margin: 0 auto;
}

.brand {
  font-weight: 700;
  font-size: clamp(0.9rem, 2.5vw, 1.125rem);
  letter-spacing: 0.04em;
  color: var(--text);
}

.brand-x {
  color: var(--accent-red);
}

/* ========== HERO — Same layout, auto-adjusts for screen size ========== */
.hero {
  position: relative;
  background: var(--bg-dark);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 32px) clamp(16px, 4vw, 32px);
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 3vw, 24px);
  align-items: stretch;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.5vw, 16px);
}

.hero-badge {
  font-size: clamp(0.65rem, 2vw, 0.75rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}

.hero h1 {
  margin: 0;
  line-height: 1.2;
}

.hero-headline {
  display: block;
  font-size: clamp(1.25rem, 5.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-sub {
  font-size: clamp(0.875rem, 2.2vw, 1rem);
  font-weight: 400;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.cta-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.5vw, 12px);
  margin-top: clamp(4px, 1vw, 8px);
}

.cta-stack .btn {
  width: 100%;
  height: clamp(46px, 12vw, 48px);
  min-height: 46px;
  font-size: clamp(0.875rem, 2.2vw, 1rem);
  font-weight: 700;
  justify-content: center;
}

.trust-line {
  font-size: clamp(0.7rem, 2vw, 0.75rem);
  color: var(--text-muted);
  margin: 0;
}

.hero-img-wrap {
  width: 100%;
}

.hero-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(16px, 3vw, 24px);
  font-family: inherit;
  font-size: clamp(0.875rem, 2.2vw, 1rem);
  font-weight: 700;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
  border: 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);
}

/* ========== BENEFITS ========== */
.benefits {
  padding: clamp(32px, 6vw, 80px) clamp(20px, 5vw, 48px);
  max-width: 1200px;
  margin: 0 auto;
}

.benefits h2 {
  font-size: clamp(1.15rem, 4vw, 1.75rem);
  font-weight: 700;
  margin: 0 0 clamp(20px, 4vw, 48px);
  text-align: center;
  color: var(--text);
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(12px, 2vw, 24px);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: clamp(16px, 3vw, 32px);
}

.card[data-animate] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.card[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(36px, 8vw, 44px);
  height: clamp(36px, 8vw, 44px);
  margin-bottom: clamp(8px, 1.5vw, 16px);
  color: var(--accent-red);
}

.card-icon svg {
  width: clamp(20px, 5vw, 28px);
  height: clamp(20px, 5vw, 28px);
}

.card h3 {
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  font-weight: 600;
  margin: 0 0 clamp(4px, 1vw, 8px);
  color: var(--text);
}

.card p {
  font-size: clamp(0.8rem, 2vw, 0.875rem);
  font-weight: 400;
  color: var(--text-muted);
  margin: 0;
}

/* ========== HOW IT WORKS ========== */
.how-it-works {
  padding: clamp(32px, 6vw, 80px) clamp(20px, 5vw, 48px);
  max-width: 640px;
  margin: 0 auto;
}

.how-it-works h2 {
  font-size: clamp(1.2rem, 4vw, 1.75rem);
  font-weight: 700;
  margin: 0 0 clamp(24px, 4vw, 48px);
  text-align: center;
  color: var(--text);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.5vw, 16px);
}

.step {
  display: flex;
  align-items: flex-start;
  gap: clamp(12px, 2vw, 24px);
  padding: clamp(16px, 3vw, 24px);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
}

.step[data-animate] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.step[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

.step-num {
  flex-shrink: 0;
  width: clamp(36px, 8vw, 44px);
  height: clamp(36px, 8vw, 44px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-red);
  color: white;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: clamp(0.9rem, 2.5vw, 1.125rem);
}

.step-body h3 {
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--text);
}

.step-body p {
  font-size: clamp(0.8rem, 2vw, 0.9375rem);
  font-weight: 400;
  color: var(--text-muted);
  margin: 0;
}

.how-it-works .note {
  margin-top: clamp(16px, 3vw, 32px);
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 0;
}

/* ========== APK SECTION ========== */
.apk-section {
  padding: clamp(24px, 4vw, 48px) clamp(20px, 5vw, 48px);
}

.apk-section[data-animate] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.apk-section[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

.apk-card {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 40px);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  text-align: center;
}

.apk-card h2 {
  font-size: clamp(1.1rem, 3.5vw, 1.375rem);
  font-weight: 700;
  margin: 0 0 clamp(8px, 1.5vw, 16px);
  color: var(--text);
}

.apk-card p {
  font-size: clamp(0.875rem, 2.2vw, 0.9375rem);
  font-weight: 400;
  color: var(--text-muted);
  margin: 0 0 clamp(16px, 3vw, 24px);
}

.apk-card .btn {
  width: 100%;
  height: clamp(46px, 12vw, 48px);
  min-height: 46px;
}

/* ========== FOOTER ========== */
.footer {
  padding: clamp(24px, 4vw, 48px) clamp(16px, 4vw, 32px);
  margin-top: clamp(32px, 6vw, 80px);
  border-top: 1px solid var(--border-glass);
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(4px, 1vw, 8px);
  margin-bottom: clamp(12px, 2vw, 16px);
}

.footer-links a {
  color: var(--accent-red);
  text-decoration: none;
  font-size: clamp(0.8rem, 2vw, 0.9375rem);
  font-weight: 500;
  padding: clamp(8px, 1.5vw, 16px);
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-dot {
  color: var(--text-muted);
  font-size: 0.6rem;
}

.footer-trust {
  font-size: clamp(0.7rem, 2vw, 0.8125rem);
  color: var(--text-muted);
  margin: 0 auto clamp(8px, 1.5vw, 12px);
  max-width: 360px;
}

.footer-copyright {
  font-size: clamp(0.7rem, 2vw, 0.8125rem);
  color: var(--text-muted);
  margin: 0;
}

/* ========== STICKY CTA (Mobile only) ========== */
.sticky-cta {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px clamp(16px, 4vw, 24px);
  padding-bottom: calc(12px + 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: clamp(8px, 2vw, 16px);
  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: 44px;
  min-height: 44px;
  font-size: clamp(0.8rem, 2vw, 0.875rem);
  font-weight: 700;
}

/* ========== RESPONSIVE — Same design, auto-adjust layout ========== */

/* Tablet: 2-col benefits */
@media (min-width: 500px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop: 2-col hero, 4-col benefits, inline buttons */
@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }

  .sticky-cta {
    display: none;
  }

  .hero {
    min-height: min(85vh, 640px);
    display: flex;
    align-items: center;
    background-image: url("hero.jpg");
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
  }

  .hero::before {
    content: "";
    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 {
    flex-direction: row;
    align-items: center;
    gap: clamp(24px, 4vw, 64px);
    padding: clamp(32px, 5vw, 48px) clamp(24px, 4vw, 32px);
  }

  .hero-content {
    flex: 1;
    max-width: 480px;
  }

  .hero-img-wrap {
    display: none;
  }

  .cta-stack {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .cta-stack .btn {
    width: auto;
    min-width: 180px;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .benefits-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
