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

:root {
  --bg-primary: #0a0a0f;
  --bg-card: #12121a;
  --bg-card-hover: #1a1a26;
  --text-primary: #f0f0f5;
  --text-secondary: #9999aa;
  --accent-blue: #4f6ef7;
  --accent-green: #22c55e;
  --border-color: #2a2a3a;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Nav */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-logo span {
  color: var(--accent-blue);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-primary);
  text-decoration: none;
}

/* Hero */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.3rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem 3.5rem;
}

.hero-text {
  flex: 1;
  max-width: 520px;
}

.hero-text h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-text h1 .highlight {
  color: var(--accent-blue);
}

.hero-text p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-image {
  flex-shrink: 0;
}

.hero-image .phone-frame {
  width: 340px;
}

/* Phone frame */
.phone-frame {
  position: relative;
  width: 260px;
  border: 3px solid var(--border-color);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  background: #000;
}

.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
}

.phone-frame-sm {
  width: 220px;
  border-radius: 26px;
  border-width: 2px;
}

.phone-frame-lg {
  width: 280px;
  border-radius: 30px;
  border-width: 3px;
}

/* Section shared */
section {
  padding: 5rem 2rem;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* Features Grid */
.features {
  background: var(--bg-primary);
  padding-top: 2.5rem;
  padding-bottom: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-blue);
  transform: translateY(-4px);
}

.feature-card .phone-frame-sm,
.feature-card .phone-frame-lg {
  margin: 0 auto 1.5rem;
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* TCGPlayer Section */
.tcgplayer-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, #0d0d18 100%);
  padding-top: 0;
}

.tcgplayer-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.tcgplayer-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.supported-games {
  margin: 0;
  padding-bottom: 0;
}

.supported-games h3 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.supported-games p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.game-card {
  background: rgba(18, 18, 26, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  text-align: center;
}

.game-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

.game-card img.game-logo {
  object-fit: contain;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.55) 0%, rgba(15, 23, 42, 0.55) 100%);
}

.game-card figcaption {
  padding: 0.65rem 0.8rem 0.8rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #d4d4d8;
}

.tcgplayer-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
  text-align: center;
  max-width: 980px;
  margin: 2.5rem auto 0;
}

.features .tcgplayer-highlights {
  margin: 7rem auto 7rem;
}

.tcgplayer-highlight {
  padding: 0.45rem 0.65rem;
}

.tcgplayer-highlight .icon {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.tcgplayer-highlight h4 {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.tcgplayer-highlight p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Interest section */
.interest {
  background: #0f1018;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.interest-content {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.interest-content h2 {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.interest-content > p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.interest-form {
  max-width: 460px;
  margin: 0 auto;
  display: grid;
  gap: 0.55rem;
  text-align: left;
}

.interest-form label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.interest-form input {
  width: 100%;
  padding: 0.78rem 0.86rem;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: #0b0c13;
  color: var(--text-primary);
}

.interest-form button {
  margin-top: 0.25rem;
  border: 0;
  border-radius: 10px;
  background: var(--accent-blue);
  color: #ffffff;
  font-weight: 700;
  padding: 0.8rem 1rem;
  cursor: pointer;
}

.interest-form button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.interest-feedback {
  min-height: 1.2rem;
  margin-top: 0.35rem;
  font-size: 0.9rem;
}

.interest-feedback.success {
  color: #22c55e;
}

.interest-feedback.error {
  color: #f87171;
}

.interest-note {
  margin-top: 0.95rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* About / Contact */
.about {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
}

.about-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.about-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.about-content p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.contact-link {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--accent-blue);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: opacity 0.2s;
}

.contact-link:hover {
  opacity: 0.85;
  text-decoration: none;
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(1, 4, 12, 0.92);
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(575px, 90vw);
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 0;
  border-radius: 999px;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.24);
}

body.lightbox-open {
  overflow: hidden;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 2.2rem;
    padding: 3rem 1.5rem 4rem;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero-image .phone-frame {
    width: 300px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .tcgplayer-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .nav-links {
    gap: 1.25rem;
  }
}

@media (max-width: 600px) {
  .nav {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .hero-image .phone-frame {
    width: 260px;
  }

  .phone-frame {
    width: 220px;
  }

  .phone-frame-sm {
    width: 180px;
  }

  .phone-frame-lg {
    width: 240px;
  }

  .tcgplayer-highlights {
    grid-template-columns: 1fr;
  }
}
