/* ========================================
   CardVault — Graded Pokemon TCG Marketplace
   Dark premium collector aesthetic
   Fonts: Fraunces (headings) + DM Sans (body)
   Accent: warm amber #f5a623 on deep #1a1a2e
   ======================================== */

:root {
  --bg: #0e0e16;
  --surface: #1a1a2e;
  --surface-2: #242440;
  --fg: #e8e4dc;
  --fg-muted: #8a87a0;
  --accent: #f5a623;
  --accent-dim: rgba(245, 166, 35, 0.15);
  --good: #4ade80;
  --bad: #f87171;
  --border: rgba(255,255,255,0.08);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(14, 14, 22, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  color: var(--fg);
  letter-spacing: -0.5px;
}
.nav-tagline {
  font-size: 13px;
  color: var(--fg-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ── HERO ── */
.hero {
  padding: 120px 32px 80px;
  background: var(--bg);
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.card-mockup {
  width: 240px;
  height: 336px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 0 0 2px rgba(245,166,35,0.3),
    0 30px 60px rgba(0,0,0,0.5),
    0 0 80px rgba(245,166,35,0.08);
  background: var(--surface);
}
.card-inner {
  width: 100%;
  height: 100%;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.card-corner {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.top-left { align-items: flex-start; }
.bottom-right { position: absolute; bottom: 12px; right: 12px; }
.pokemon-name {
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: 0.3px;
}
.hp-badge {
  font-size: 7px;
  font-weight: 700;
  color: var(--accent);
}
.card-number {
  font-size: 7px;
  color: var(--fg-muted);
}
.card-art {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-art svg { width: 100%; height: 100%; }
.card-type-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
}
.type-icon {
  font-size: 7px;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 1px 4px;
  border-radius: 3px;
}
.energy-icon {
  color: var(--accent);
  font-size: 10px;
}
.grade-badge {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 64px;
  height: 64px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px var(--bg), 0 0 20px rgba(245,166,35,0.4);
}
.grade-label {
  font-size: 9px;
  font-weight: 700;
  color: #1a1a2e;
  letter-spacing: 1px;
  line-height: 1;
}
.grade-score {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: #1a1a2e;
  line-height: 1;
}
.hero-text { display: flex; flex-direction: column; gap: 20px; }
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--fg);
}
.hero-sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg-muted);
  max-width: 480px;
}
.hero-stats {
  max-width: 1100px;
  margin: 64px auto 0;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0;
}
.stat { text-align: center; padding: 0 40px; }
.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.5px;
}
.stat-desc {
  display: block;
  font-size: 13px;
  color: var(--fg-muted);
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ── GRADE FOCUS ── */
.gradefocus {
  padding: 100px 32px;
  background: var(--surface);
}
.gradefocus-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 60px;
  line-height: 1.15;
  letter-spacing: -0.5px;
}
.grade-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.grade-col {
  border-radius: 16px;
  padding: 36px;
  border: 1px solid var(--border);
}
.grade-col.bad { background: rgba(248, 113, 113, 0.05); }
.grade-col.good { background: rgba(74, 222, 128, 0.05); border-color: rgba(74, 222, 128, 0.2); }
.grade-col-header { margin-bottom: 24px; }
.grade-col-label {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 4px;
}
.grade-col-sub { font-size: 13px; color: var(--fg-muted); }
.grade-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}
.grade-list li {
  font-size: 15px;
  color: var(--fg-muted);
  padding-left: 20px;
  position: relative;
}
.grade-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.bad .grade-list li::before { background: var(--bad); }
.good .grade-list li::before { background: var(--good); }
.grade-verdict {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 8px;
  display: inline-block;
}
.grade-verdict.bad { background: rgba(248,113,113,0.15); color: var(--bad); }
.grade-verdict.good { background: rgba(74,222,128,0.15); color: var(--good); }

/* ── HOW IT WORKS ── */
.howitworks {
  padding: 100px 32px;
  background: var(--bg);
}
.hiw-inner { max-width: 1100px; margin: 0 auto; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 48px;
}
.step { display: flex; flex-direction: column; gap: 16px; }
.step-number {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 900;
  color: var(--accent-dim);
  line-height: 1;
  letter-spacing: -2px;
}
.step-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--fg);
}
.step-desc { font-size: 15px; color: var(--fg-muted); line-height: 1.65; }

/* ── MANIFESTO ── */
.manifesto {
  padding: 100px 32px;
  background: var(--surface);
}
.manifesto-inner { max-width: 860px; margin: 0 auto; }
.manifesto-quote {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-style: italic;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.4;
  border-left: 3px solid var(--accent);
  padding-left: 32px;
  margin-bottom: 48px;
}
.manifesto-body {
  font-size: 17px;
  line-height: 1.75;
  color: var(--fg-muted);
  margin-bottom: 24px;
}
.manifesto-body:last-child { margin-bottom: 0; }

/* ── CLOSING ── */
.closing {
  padding: 120px 32px;
  background: var(--bg);
  text-align: center;
}
.closing-inner { max-width: 700px; margin: 0 auto; }
.closing-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  color: var(--fg);
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 20px;
}
.closing-sub {
  font-size: 18px;
  color: var(--fg-muted);
  margin-bottom: 48px;
}
.closing-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 14px;
  color: var(--fg-muted);
}
.brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: var(--accent);
}
.brand-sep { color: var(--border); }

/* ── FOOTER ── */
.footer {
  padding: 40px 32px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: var(--fg);
}
.footer-tagline { font-size: 13px; color: var(--fg-muted); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; }
.footer-copy { font-size: 12px; color: var(--fg-muted); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-sub { margin: 0 auto; }
  .hero-card { order: -1; }
  .card-mockup { width: 180px; height: 252px; }
  .grade-badge { width: 52px; height: 52px; top: -10px; right: -10px; }
  .grade-score { font-size: 18px; }
  .grade-label { font-size: 7px; }
  .grade-comparison { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .hero-stats { flex-direction: column; gap: 24px; }
  .stat-divider { width: 40px; height: 1px; }
  .footer-top { flex-direction: column; gap: 8px; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero { padding: 100px 20px 60px; }
  .gradefocus, .howitworks, .manifesto, .closing { padding: 60px 20px; }
}