/* ===== CSS RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --clr-bg: #0d1117;
  --clr-surface: #161b22;
  --clr-border: #30363d;
  --clr-text: #e6edf3;
  --clr-muted: #8b949e;
  --clr-accent: #f97316;      /* vibrant orange */
  --clr-accent-hover: #ea580c;
  --clr-success: #22c55e;
  --clr-magic: #6366f1;       /* indigo for MTG */
  --clr-pokemon: #ef4444;     /* red for Pokémon */
  --clr-sports: #3b82f6;      /* blue for sports cards */
  --radius: 12px;
  --radius-sm: 8px;
  --max-w: 1140px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--clr-bg);
  color: var(--clr-text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== LAYOUT ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ===== NAV ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--clr-border);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--clr-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-icon {
  width: 28px;
  height: 28px;
  background: var(--clr-accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-icon svg { width: 16px; height: 16px; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a {
  color: var(--clr-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--clr-text); }
.btn-nav {
  background: var(--clr-accent);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: background 0.2s;
}
.btn-nav:hover { background: var(--clr-accent-hover) !important; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(249, 115, 22, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.3);
  color: var(--clr-accent);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
  letter-spacing: 0.03em;
}
.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--clr-accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero h1 {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero h1 span { color: var(--clr-accent); }
.hero-sub {
  font-size: 1.15rem;
  color: var(--clr-muted);
  margin-bottom: 36px;
  max-width: 460px;
  line-height: 1.65;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--clr-accent);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover { background: var(--clr-accent-hover); transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--clr-muted);
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid var(--clr-border);
  transition: border-color 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-secondary:hover { border-color: var(--clr-text); color: var(--clr-text); }
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--clr-border);
}
.stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--clr-text);
}
.stat-label {
  font-size: 0.8rem;
  color: var(--clr-muted);
  margin-top: 2px;
}
.hero-img-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--clr-border);
  box-shadow: 0 32px 64px rgba(0,0,0,0.5);
  aspect-ratio: 4/3;
}
.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-img-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
}

/* ===== CARDS SECTION ===== */
.section { padding: 80px 0; }
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.section-header p {
  color: var(--clr-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.card:hover {
  border-color: rgba(249, 115, 22, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.3rem;
}
.card-icon.mtg { background: rgba(99, 102, 241, 0.15); }
.card-icon.pkm { background: rgba(239, 68, 68, 0.15); }
.card-icon.spt { background: rgba(59, 130, 246, 0.15); }
.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.card p { color: var(--clr-muted); font-size: 0.9rem; line-height: 1.6; }

/* ===== PRICING ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}
.price-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
}
.price-card.featured {
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 1px var(--clr-accent);
}
.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--clr-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
}
.price-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--clr-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
}
.price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.price-amount sup { font-size: 1.2rem; font-weight: 600; top: -1em; }
.price-period { color: var(--clr-muted); font-size: 0.85rem; margin-bottom: 24px; }
.price-features {
  list-style: none;
  margin-bottom: 28px;
}
.price-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--clr-text);
  padding: 6px 0;
  border-bottom: 1px solid var(--clr-border);
}
.price-features li:last-child { border-bottom: none; }
.price-features li::before {
  content: '';
  width: 16px;
  height: 16px;
  background: var(--clr-success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2 6l3 3 5-5'/%3E%3C/svg%3E");
  background-size: 10px;
  background-repeat: no-repeat;
  background-position: center;
}
.price-btn {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  text-decoration: none;
  display: block;
}
.price-btn.primary { background: var(--clr-accent); color: #fff; border: none; }
.price-btn.primary:hover { background: var(--clr-accent-hover); }
.price-btn.outline { background: transparent; color: var(--clr-text); border: 1px solid var(--clr-border); }
.price-btn.outline:hover { border-color: var(--clr-text); }

/* ===== FAQ ===== */
.faq-list { max-width: 640px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--clr-border);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--clr-text);
  font-size: 1rem;
  font-weight: 600;
  padding: 20px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: inherit;
}
.faq-q:hover { color: var(--clr-accent); }
.faq-icon { font-size: 1.2rem; transition: transform 0.2s; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  display: none;
  padding-bottom: 20px;
  color: var(--clr-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}
.faq-item.open .faq-a { display: block; }

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--clr-border);
  padding: 48px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p {
  color: var(--clr-muted);
  font-size: 0.85rem;
  margin-top: 12px;
  line-height: 1.6;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-muted);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: var(--clr-text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--clr-accent); }
.footer-bottom {
  border-top: 1px solid var(--clr-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--clr-muted);
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: var(--clr-muted); text-decoration: none; font-size: 0.8rem; }
.footer-bottom-links a:hover { color: var(--clr-text); }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--clr-surface) 0%, #1a1f2e 100%);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 64px;
  text-align: center;
  margin-bottom: 80px;
}
.cta-banner h2 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.cta-banner p {
  color: var(--clr-muted);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 2.4rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-banner { padding: 40px 24px; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 2rem; }
  .hero-stats { gap: 20px; }
}