:root {
  --bg: #faf7f2;
  --bg-alt: #f2ede6;
  --fg: #1a2e1a;
  --fg-muted: #4a6a4a;
  --accent: #c2714f;
  --green-dark: #1a3a1a;
  --green-mid: #2d6a4f;
  --green-light: #40916c;
  --gold: #d4a853;
  --gold-light: #e8c876;
  --border: rgba(26, 58, 26, 0.12);
  --card-shadow: 0 4px 24px rgba(26, 58, 26, 0.08);
  --radius: 14px;
  --radius-sm: 8px;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  line-height: 1.15;
  font-weight: 600;
}

/* NAV */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: -0.02em;
}
.nav-tagline {
  font-size: 0.8rem;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}

/* SECTION TOKENS */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  padding: 4px 12px;
  border: 1.5px solid var(--accent);
  border-radius: 100px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--green-dark);
  margin-bottom: 20px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 540px;
  margin: 0 auto;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 40px 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--green-dark);
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
}
.hero-blob-1 {
  width: 600px;
  height: 600px;
  background: #2d6a4f;
  top: -200px;
  right: -100px;
}
.hero-blob-2 {
  width: 400px;
  height: 400px;
  background: #c2714f;
  bottom: -100px;
  left: 200px;
  opacity: 0.15;
}
.hero-card-grid {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 55%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 12px;
  padding: 80px 40px;
  align-content: center;
}
.hcg-item {
  border-radius: var(--radius-sm);
  opacity: 0.18;
}
.hcg-1 { background: #d4a853; height: 90px; }
.hcg-2 { background: #8cba8c; height: 70px; }
.hcg-3 { background: #5a9e5a; height: 110px; }
.hcg-4 { background: #c2714f; height: 80px; }
.hcg-5 { background: #4a8fc4; height: 95px; }
.hcg-6 { background: #d4a853; height: 75px; }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
}
.hero-eyebrow { margin-bottom: 24px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(212, 168, 83, 0.15);
  border: 1px solid rgba(212, 168, 83, 0.3);
  padding: 6px 14px;
  border-radius: 100px;
}
.hero-headline {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: #faf7f2;
  margin-bottom: 24px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.hero-sub {
  font-size: 1.1rem;
  color: rgba(250, 247, 242, 0.7);
  margin-bottom: 48px;
  line-height: 1.7;
}

/* POKEDEX PREVIEW */
.pokedex-preview {
  background: rgba(250, 247, 242, 0.06);
  border: 1px solid rgba(250, 247, 242, 0.15);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(8px);
  max-width: 420px;
}
.pokedex-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.45);
  margin-bottom: 10px;
}
.pokedex-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(250, 247, 242, 0.1);
}
.stat-item { display: flex; flex-direction: column; }
.stat-num { font-family: 'Fraunces', serif; font-size: 1.6rem; color: #faf7f2; font-weight: 600; line-height: 1; }
.stat-label { font-size: 0.65rem; color: rgba(250, 247, 242, 0.45); margin-top: 2px; letter-spacing: 0.06em; text-transform: uppercase; }
.stat-divider { color: rgba(250, 247, 242, 0.2); font-size: 1.2rem; }
.pokedex-cards {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.pcard {
  width: 48px;
  height: 64px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
.pcard-leg { background: linear-gradient(135deg, #d4a853, #b8862a); }
.pcard-epic { background: linear-gradient(135deg, #7c4f9e, #5a3670); }
.pcard-rare { background: linear-gradient(135deg, #4a8fc4, #2d6a8f); }
.pcard-uncomm { background: linear-gradient(135deg, #5a9e5a, #3d7a3d); }
.pcard-comm { background: linear-gradient(135deg, #8cba8c, #6a9e6a); }
.pcard-empty {
  background: rgba(250, 247, 242, 0.08);
  border: 1.5px dashed rgba(250, 247, 242, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pcard-leg::after, .pcard-epic::after, .pcard-rare::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, transparent 60%);
}
.pokedex-footer { font-size: 0.72rem; color: rgba(250, 247, 242, 0.4); }

/* CAPTURE SECTION */
.capture {
  padding: 120px 40px;
  background: var(--bg);
}
.capture-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}
.step {
  flex: 1;
  text-align: center;
  padding: 0 20px;
}
.step-num {
  font-family: 'Fraunces', serif;
  font-size: 4rem;
  color: var(--green-dark);
  opacity: 0.12;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 20px;
}
.step-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}
.step-title {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  color: var(--green-dark);
  margin-bottom: 12px;
  font-weight: 600;
}
.step-desc {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.65;
}
.step-connector {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--green-mid), var(--accent));
  margin-top: 60px;
  flex-shrink: 0;
}

/* RARITY SECTION */
.rarity {
  padding: 120px 40px;
  background: var(--green-dark);
  position: relative;
  overflow: hidden;
}
.rarity-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.rarity-leaf {
  position: absolute;
  bottom: -20px;
  width: 160px;
  opacity: 0.5;
}
.rarity-leaf-1 { left: 40px; transform: rotate(-15deg); }
.rarity-leaf-2 { right: 60px; transform: rotate(20deg); }
.rarity .section-tag { border-color: rgba(212, 168, 83, 0.6); color: var(--gold); }
.rarity .section-title { color: #faf7f2; }
.rarity .section-sub { color: rgba(250, 247, 242, 0.6); }

.rarity-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.r-card {
  background: rgba(250, 247, 242, 0.06);
  border: 1.5px solid rgba(250, 247, 242, 0.12);
  border-radius: 16px;
  padding: 20px 16px 16px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.r-card:hover {
  transform: translateY(-4px);
  border-color: rgba(250, 247, 242, 0.25);
}
.r-tier-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.r-card-common .r-tier-badge { background: rgba(140, 186, 140, 0.2); color: #8cba8c; border: 1px solid rgba(140, 186, 140, 0.3); }
.r-card-uncommon .r-tier-badge { background: rgba(90, 158, 90, 0.2); color: #5a9e5a; border: 1px solid rgba(90, 158, 90, 0.3); }
.r-card-rare .r-tier-badge { background: rgba(74, 143, 196, 0.2); color: #6aaad4; border: 1px solid rgba(74, 143, 196, 0.3); }
.r-card-epic .r-tier-badge { background: rgba(155, 107, 74, 0.2); color: #c4906a; border: 1px solid rgba(155, 107, 74, 0.3); }
.r-card-legendary .r-tier-badge { background: rgba(212, 168, 83, 0.25); color: var(--gold); border: 1.5px solid rgba(212, 168, 83, 0.5); }
.r-tier-legendary {
  box-shadow: 0 0 12px rgba(212, 168, 83, 0.3);
}
.r-card-inner { margin-bottom: 14px; }
.r-card-icon { display: flex; justify-content: center; margin-bottom: 12px; }
.r-card-name {
  font-family: 'Fraunces', serif;
  font-size: 0.9rem;
  color: #faf7f2;
  font-weight: 600;
  margin-bottom: 4px;
}
.r-card-sci { font-size: 0.65rem; color: rgba(250, 247, 242, 0.4); font-style: italic; }
.r-card-footer { font-size: 0.65rem; color: rgba(250, 247, 242, 0.3); padding-top: 12px; border-top: 1px solid rgba(250, 247, 242, 0.08); }
.r-card-legendary {
  border-color: rgba(212, 168, 83, 0.3);
  background: rgba(212, 168, 83, 0.08);
}

/* SOCIAL SECTION */
.social {
  padding: 120px 40px;
  background: var(--bg-alt);
}
.social-grid {
  display: flex;
  align-items: stretch;
  gap: 24px;
  max-width: 700px;
  margin: 0 auto 56px;
}
.vs-divider {
  display: flex;
  align-items: center;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--fg-muted);
  opacity: 0.5;
  flex-shrink: 0;
}
.friend-card {
  flex: 1;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: var(--card-shadow);
}
.friend-card-you { border-color: var(--green-mid); }
.fc-avatar { margin-bottom: 12px; }
.fc-avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green-dark);
  color: #faf7f2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
}
.fc-avatar-sophie { background: #7c4f9e; }
.fc-name { font-size: 0.75rem; font-weight: 500; color: var(--fg-muted); margin-bottom: 12px; letter-spacing: 0.05em; text-transform: uppercase; }
.fc-stat-row { display: flex; align-items: baseline; gap: 6px; margin-bottom: 16px; }
.fc-big-num { font-family: 'Fraunces', serif; font-size: 2.5rem; color: var(--green-dark); font-weight: 700; line-height: 1; }
.fc-big-label { font-size: 0.75rem; color: var(--fg-muted); }
.fc-mini-cards { display: flex; gap: 6px; margin-bottom: 16px; }
.fc-mini { width: 28px; height: 38px; border-radius: 6px; }
.fc-mini.legend { background: linear-gradient(135deg, #d4a853, #b8862a); }
.fc-mini.epic { background: linear-gradient(135deg, #7c4f9e, #5a3670); }
.fc-mini.rare { background: linear-gradient(135deg, #4a8fc4, #2d6a8f); }
.fc-mini.uncomm { background: linear-gradient(135deg, #5a9e5a, #3d7a3d); }
.fc-mini.comm { background: linear-gradient(135deg, #8cba8c, #6a9e6a); }
.rank-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
}
.rank-1 { background: rgba(212, 168, 83, 0.15); color: var(--gold); border: 1px solid rgba(212, 168, 83, 0.3); }
.rank-2 { background: rgba(45, 106, 79, 0.12); color: var(--green-mid); border: 1px solid rgba(45, 106, 79, 0.2); }

.social-features {
  display: flex;
  justify-content: center;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}
.sf-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 220px;
}
.sf-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sf-text strong { display: block; font-size: 0.85rem; color: var(--green-dark); margin-bottom: 4px; }
.sf-text span { font-size: 0.78rem; color: var(--fg-muted); line-height: 1.5; }

/* CLOSING */
.closing {
  padding: 120px 40px;
  background: var(--bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.closing-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.closing-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(45, 106, 79, 0.08);
}
.closing-ring-1 { width: 500px; height: 500px; }
.closing-ring-2 { width: 700px; height: 700px; }
.closing-ring-3 { width: 900px; height: 900px; }
.closing-content { position: relative; z-index: 1; }
.closing-quote {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--green-dark);
  font-style: italic;
  font-weight: 400;
  line-height: 1.3;
  max-width: 700px;
  margin: 0 auto 48px;
}
.closing-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.ctag {
  font-size: 0.75rem;
  color: var(--green-mid);
  background: rgba(45, 106, 79, 0.08);
  border: 1px solid rgba(45, 106, 79, 0.15);
  padding: 6px 14px;
  border-radius: 100px;
  letter-spacing: 0.03em;
}

/* FOOTER */
.footer {
  padding: 40px;
  background: var(--green-dark);
  text-align: center;
}
.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #faf7f2;
  margin-bottom: 12px;
}
.footer-copy { font-size: 0.8rem; color: rgba(250, 247, 242, 0.4); }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav { padding: 14px 20px; }
  .nav-tagline { display: none; }
  .hero { padding: 100px 20px 60px; }
  .hero-card-grid { display: none; }
  .hero-headline { font-size: 2.2rem; }
  .capture { padding: 80px 20px; }
  .capture-steps { flex-direction: column; gap: 40px; }
  .step-connector { width: 2px; height: 40px; margin: 0 auto; background: linear-gradient(180deg, var(--green-mid), var(--accent)); }
  .rarity { padding: 80px 20px; }
  .rarity-cards { grid-template-columns: repeat(2, 1fr); }
  .social { padding: 80px 20px; }
  .social-grid { flex-direction: column; }
  .vs-divider { display: none; }
  .social-features { flex-direction: column; align-items: center; gap: 24px; }
  .sf-item { max-width: 100%; width: 100%; }
  .closing { padding: 80px 20px; }
  .footer { padding: 32px 20px; }
}
@media (max-width: 480px) {
  .rarity-cards { grid-template-columns: 1fr 1fr; }
}