/* ========================================
   CoinPlay Landing Page — style.css
   Redesigned: Switzer font, animations,
   real screenshots, gradient orbs
   ======================================== */

/* ---------- Design Tokens ---------- */
:root {
  --bg: #0A0A12;
  --surface: #12121E;
  --surface-elevated: #1A1A2E;
  --border: #2A2A3E;
  --accent: #7C3AED;
  --accent-light: #A78BFA;
  --gradient: linear-gradient(135deg, #7C3AED, #EC4899);
  --gradient-subtle: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(236,72,153,0.1));
  --text: #FFFFFF;
  --text-muted: #9094B0;
  --green: #10B981;
  --font: 'Switzer', 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --container: 1200px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ---------- Scroll Progress Bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--gradient);
  z-index: 2000;
  transition: width 0.1s linear;
}

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

.section {
  padding: 80px 0;
}

.section__header {
  text-align: center;
  margin-bottom: 56px;
}

.section__title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section__subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: transform var(--transition), filter var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--gradient {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35);
}

.btn--gradient:hover {
  filter: brightness(1.1);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.5);
}

.btn--outline {
  background: transparent;
  color: var(--accent-light);
  border: 2px solid rgba(124, 58, 237, 0.4);
}

.btn--outline:hover {
  background: rgba(124, 58, 237, 0.1);
  border-color: var(--accent);
}

.btn--white {
  background: #fff;
  color: var(--bg);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

.btn--white:hover {
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.25);
}

.btn--outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn--outline-white:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.btn--lg {
  padding: 18px 40px;
  font-size: 1.05rem;
}

.btn--full {
  width: 100%;
}

/* ---------- Navigation ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background-color var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background-color: rgba(10, 10, 18, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1001;
}

.nav__logo-img {
  border-radius: 10px;
}

.nav__logo-text {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav__menu {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  background: rgba(10, 10, 18, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 32px 20px;
  border-bottom: 1px solid var(--border);
}

.nav__menu.open {
  display: flex;
}

.nav__link {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav__link:hover {
  color: var(--text);
}

/* Hamburger */
.nav__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 4px;
}

.nav__hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav__hamburger[aria-expanded="true"] .nav__hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger[aria-expanded="true"] .nav__hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav__hamburger[aria-expanded="true"] .nav__hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 120px;
  padding-bottom: 60px;
  overflow: hidden;
  position: relative;
}

.hero__orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
}

.hero__orb--1 {
  width: 500px;
  height: 500px;
  background: rgba(124, 58, 237, 0.3);
  top: -150px;
  right: -100px;
  animation: orb-drift-1 12s ease-in-out infinite alternate;
}

.hero__orb--2 {
  width: 400px;
  height: 400px;
  background: rgba(236, 72, 153, 0.2);
  bottom: -100px;
  left: -100px;
  animation: orb-drift-2 15s ease-in-out infinite alternate;
}

.hero__orb--3 {
  width: 300px;
  height: 300px;
  background: rgba(16, 185, 129, 0.15);
  top: 50%;
  left: 50%;
  animation: orb-drift-3 10s ease-in-out infinite alternate;
}

@keyframes orb-drift-1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-60px, 40px) scale(1.1); }
}

@keyframes orb-drift-2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, -30px) scale(1.15); }
}

@keyframes orb-drift-3 {
  0% { transform: translate(-50%, -50%) scale(1); }
  100% { transform: translate(-40%, -60%) scale(0.9); }
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 1;
}

.hero__content {
  text-align: center;
}

.hero__badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 100px;
  border: 1px solid rgba(16, 185, 129, 0.25);
  margin-bottom: 24px;
}

.hero__title {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero__title-line {
  display: block;
}

.hero__title-line--accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero__ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero__platforms {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Hero Phone Mockups */
.hero__mockups {
  position: relative;
  width: 280px;
  height: 480px;
  flex-shrink: 0;
}

.hero__phone {
  position: absolute;
  border-radius: 32px;
  overflow: hidden;
  border: 3px solid var(--border);
  background: var(--surface);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 25px 60px rgba(0, 0, 0, 0.5);
}

.hero__phone-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.hero__phone--front {
  width: 240px;
  height: 460px;
  right: 0;
  top: 10px;
  z-index: 2;
  animation: phone-float 4s ease-in-out infinite;
}

.hero__phone--back {
  width: 220px;
  height: 430px;
  left: 0;
  top: 40px;
  z-index: 1;
  opacity: 0.7;
  transform: rotate(-6deg);
  animation: phone-float-back 5s ease-in-out infinite;
}

@keyframes phone-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes phone-float-back {
  0%, 100% { transform: rotate(-6deg) translateY(0); }
  50% { transform: rotate(-6deg) translateY(-8px); }
}

/* ---------- Stats Bar ---------- */
.stats {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.stats__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.stat {
  text-align: center;
  flex: 1;
}

.stat__number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat__label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat__divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

/* ---------- Features ---------- */
.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  will-change: transform;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(124, 58, 237, 0.3);
}

.card__icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--gradient-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid rgba(124, 58, 237, 0.15);
}

.card__icon-wrap svg {
  color: var(--accent-light);
}

.card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.card__text {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ---------- Screenshots ---------- */
.screenshots {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.screenshots__track {
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: flex-start;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 20px 20px;
  scrollbar-width: none;
}

.screenshots__track::-webkit-scrollbar {
  display: none;
}

.screenshots__item {
  flex-shrink: 0;
  scroll-snap-align: center;
  text-align: center;
}

.screenshots__phone {
  width: 220px;
  border-radius: 28px;
  overflow: hidden;
  border: 3px solid var(--border);
  background: var(--bg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}

.screenshots__item:hover .screenshots__phone {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.screenshots__phone img {
  width: 100%;
  height: auto;
}

.screenshots__caption {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
}

/* ---------- How It Works ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  text-align: center;
  padding: 36px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition);
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gradient);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.step__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.step__text {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 320px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ---------- Pricing ---------- */
.pricing__highlight {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto 32px;
}

.pricing__tiers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.pricing-card--recommended {
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.2), 0 0 60px rgba(124, 58, 237, 0.08);
  animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 30px rgba(124, 58, 237, 0.2), 0 0 60px rgba(124, 58, 237, 0.08); }
  50% { box-shadow: 0 0 40px rgba(124, 58, 237, 0.3), 0 0 80px rgba(124, 58, 237, 0.12); }
}

.pricing-card--recommended:hover {
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.35), 0 0 80px rgba(124, 58, 237, 0.15);
}

.pricing-card__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 18px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-card__header {
  margin-bottom: 28px;
}

.pricing-card__tier {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.pricing-card__amount {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pricing-card__label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pricing-card__features {
  flex: 1;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-card__features li {
  font-size: 0.92rem;
  color: var(--text-muted);
  padding-left: 24px;
  position: relative;
}

.pricing-card__features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  padding: 100px 0;
}

.cta-banner__inner {
  text-align: center;
  background: var(--gradient);
  border-radius: var(--radius);
  padding: 64px 32px;
  position: relative;
  overflow: hidden;
}

.cta-banner__inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(255,255,255,0.06) 0%, transparent 40%);
  pointer-events: none;
}

.cta-banner__title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 14px;
  position: relative;
  letter-spacing: -0.02em;
}

.cta-banner__text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  margin-bottom: 32px;
  position: relative;
}

.cta-banner__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.cta-banner__platforms {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 16px;
  position: relative;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-top: 48px;
  padding-bottom: 32px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-bottom: 40px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.footer__logo img {
  border-radius: 8px;
}

.footer__tagline {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__link {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: var(--text);
}

.footer__download-title {
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 12px;
}

.footer__download {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
}

.footer__bottom p {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ---------- Animations ---------- */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Stagger children */
.fade-in-up:nth-child(2) { transition-delay: 0.1s; }
.fade-in-up:nth-child(3) { transition-delay: 0.2s; }
.fade-in-up:nth-child(4) { transition-delay: 0.3s; }
.fade-in-up:nth-child(5) { transition-delay: 0.4s; }

/* Hero staggered lines */
.hero__content .fade-in-up:nth-child(1) { transition-delay: 0s; }
.hero__content .fade-in-up:nth-child(2) { transition-delay: 0.15s; }
.hero__content .fade-in-up:nth-child(3) { transition-delay: 0.3s; }
.hero__content .fade-in-up:nth-child(4) { transition-delay: 0.45s; }
.hero__content .fade-in-up:nth-child(5) { transition-delay: 0.6s; }

/* 3D tilt perspective for cards */
.card[data-tilt] {
  transform-style: preserve-3d;
  perspective: 800px;
}

/* ========================================
   Responsive — Tablet (768px+)
   ======================================== */
@media (min-width: 768px) {
  .container {
    padding: 0 32px;
  }

  .section {
    padding: 100px 0;
  }

  .section__title {
    font-size: 2.2rem;
  }

  /* Hero */
  .hero__title {
    font-size: 3rem;
  }

  .hero__subtitle {
    font-size: 1.15rem;
  }

  /* Stats */
  .stat__number {
    font-size: 2.5rem;
  }

  /* Features */
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Screenshots */
  .screenshots__phone {
    width: 260px;
  }

  /* Steps */
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  /* Pricing highlight */
  .pricing__highlight {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing__tiers {
    grid-template-columns: repeat(3, 1fr);
  }

  /* CTA Banner */
  .cta-banner__title {
    font-size: 2.2rem;
  }

  .cta-banner__inner {
    padding: 80px 48px;
  }

  /* Footer */
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .footer__links {
    flex-direction: row;
    gap: 24px;
    flex-wrap: wrap;
  }
}

/* ========================================
   Responsive — Desktop (1024px+)
   ======================================== */
@media (min-width: 1024px) {
  .section {
    padding: 120px 0;
  }

  .section__title {
    font-size: 2.5rem;
  }

  /* Nav — desktop layout */
  .nav__hamburger {
    display: none;
  }

  .nav__menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 32px;
    position: static;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    border: none;
  }

  /* Hero — side by side */
  .hero {
    padding-top: 140px;
    padding-bottom: 100px;
  }

  .hero__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 64px;
  }

  .hero__content {
    text-align: left;
    flex: 1;
  }

  .hero__title {
    font-size: 3.6rem;
  }

  .hero__subtitle {
    margin-left: 0;
    font-size: 1.15rem;
  }

  .hero__ctas {
    justify-content: flex-start;
  }

  .hero__platforms {
    text-align: left;
  }

  .hero__mockups {
    width: 340px;
    height: 560px;
  }

  .hero__phone--front {
    width: 280px;
    height: 540px;
  }

  .hero__phone--back {
    width: 260px;
    height: 500px;
  }

  /* Features */
  .features__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Screenshots */
  .screenshots__phone {
    width: 280px;
  }

  .screenshots__track {
    gap: 48px;
  }

  /* CTA Banner */
  .cta-banner__title {
    font-size: 2.5rem;
  }
}
