/* Epoch Collectibles — Retro/Gaming Dark Neon Aesthetic */
/* Palette: Dark charcoal, neon green, neon purple, electric blue */

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

:root {
  --bg: #0d0d12;
  --bg-card: #16161f;
  --bg-elevated: #1c1c28;
  --neon-green: #39ff14;
  --neon-purple: #bf5af2;
  --neon-blue: #5ac8fa;
  --neon-pink: #ff2d55;
  --text: #e8e8ed;
  --text-dim: #8e8e9a;
  --border: #2a2a38;
  --radius: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- Typography ---- */

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: var(--neon-green);
  margin-bottom: 1.2rem;
}

h3 {
  font-size: 1.2rem;
  color: var(--text);
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--neon-blue);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--neon-green);
}

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

/* ---- Buttons ---- */

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
}

.btn-neon {
  background: var(--neon-green);
  color: #0d0d12;
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.3);
}

.btn-neon:hover {
  background: #4dff33;
  box-shadow: 0 0 30px rgba(57, 255, 20, 0.5);
  color: #0d0d12;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--neon-purple);
  color: var(--neon-purple);
}

/* ---- Header ---- */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 18, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

nav {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Press Start 2P', monospace;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.brand {
  font-family: 'Press Start 2P', monospace;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-icon { width: 24px; height: 24px; flex-shrink: 0; vertical-align: middle; margin-right: 6px; }


@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--neon-green);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
}

/* ---- Page Hero (inner pages) ---- */

.page-hero {
  padding: 4rem 0 3rem;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(57, 255, 20, 0.04) 0%, transparent 50%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

.page-hero .hero-tag {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6rem;
  color: var(--neon-green);
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
}

.page-hero h1 {
  font-size: 2.8rem;
  color: var(--text);
}

/* ---- Hero (homepage) ---- */

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(57, 255, 20, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(191, 90, 242, 0.08) 0%, transparent 50%),
    var(--bg);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(57, 255, 20, 0.015) 2px,
      rgba(57, 255, 20, 0.015) 4px
    );
  pointer-events: none;
}

.hero-content {
  max-width: 1140px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  position: relative;
  z-index: 2;
}

.hero-tag {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.65rem;
  color: var(--neon-green);
  margin-bottom: 2rem;
  letter-spacing: 0.1em;
}

.hero h1 {
  font-size: 3.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
  max-width: 650px;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 550px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 3rem;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.9rem;
  color: var(--neon-purple);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.3rem;
}

/* ---- Categories ---- */

.categories {
  padding: 5rem 0;
}

.category-section {
  padding: 5rem 0;
}

.category-section.alt-bg {
  background: var(--bg-card);
}

.section-head {
  margin-bottom: 2.5rem;
}

.section-head p,
.section-desc {
  color: var(--text-dim);
  font-size: 1rem;
  max-width: 600px;
  margin-bottom: 2rem;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.cat-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/2;
  display: block;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.3s;
}

.cat-card:hover {
  border-color: var(--neon-green);
  transform: translateY(-4px);
}

.cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.cat-card:hover img {
  transform: scale(1.05);
}

.cat-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent 0%, rgba(13, 13, 18, 0.92) 100%);
}

.cat-overlay h3 {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.3rem;
}

.cat-overlay p {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 0;
  line-height: 1.5;
}

.cat-count {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--bg-card);
  color: var(--neon-green);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* ---- Featured Items ---- */

.featured {
  padding: 5rem 0;
  background: var(--bg-card);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.item-card {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.3s;
}

.item-card:hover {
  border-color: var(--neon-purple);
  transform: translateY(-3px);
}

.item-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-tag {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  background: var(--neon-purple);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.item-info {
  padding: 1.2rem;
}

.item-cat {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--neon-blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.4rem;
}

.item-info h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.item-info p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

.item-price {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.85rem;
  color: var(--neon-green);
}

/* ---- About ---- */

.about {
  padding: 5rem 0;
}

.about-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text p {
  color: var(--text-dim);
  line-height: 1.8;
}

.about-image img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  width: 100%;
}

/* ---- About Values ---- */

.about-values {
  padding: 5rem 0;
  background: var(--bg-card);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}

.value-item {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.value-item h3 {
  font-size: 1.1rem;
  color: var(--neon-blue);
  margin-bottom: 0.6rem;
}

.value-item p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 0;
}

/* ---- About Buying ---- */

.about-buying {
  padding: 5rem 0;
}

.about-buying .about-layout {
  grid-template-columns: 1fr 1.3fr;
}

/* ---- Trust ---- */

.trust {
  padding: 4rem 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.trust-item {
  text-align: center;
  padding: 1.5rem 1rem;
}

.trust-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.trust-item h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.trust-item p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ---- Sell Section ---- */

.sell-section {
  padding: 5rem 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(191, 90, 242, 0.06) 0%, transparent 60%),
    var(--bg);
}

.sell-content {
  max-width: 650px;
}

.sell-content p {
  color: var(--text-dim);
  line-height: 1.8;
}

.sell-content .btn {
  margin-top: 0.5rem;
}

/* ---- Article / Collecting Guide ---- */

.article-section {
  padding: 3rem 0 5rem;
}

.article-container {
  max-width: 750px;
}

.article-lead {
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  border-left: 3px solid var(--neon-green);
  padding-left: 1.5rem;
}

.article-image {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 2rem 0;
}

.article-section h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.article-section h3 {
  font-size: 1rem;
  color: var(--neon-blue);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.article-section p {
  color: var(--text-dim);
  line-height: 1.8;
}

.article-section ul,
.article-section ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--text-dim);
  line-height: 1.8;
}

.article-section li {
  margin-bottom: 0.5rem;
}

.article-section li strong {
  color: var(--text);
}

.article-cta {
  margin-top: 3rem;
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.article-cta h3 {
  color: var(--text);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.article-cta p {
  color: var(--text-dim);
  margin-bottom: 1.2rem;
}

/* ---- Footer ---- */

footer {
  padding: 3.5rem 0 1.5rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo {
  display: block;
  margin-bottom: 0.8rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-dim);
}

.footer-col h4 {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6rem;
  color: var(--text);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.footer-col a {
  display: block;
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--neon-green);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ---- Responsive ---- */

@media (max-width: 1000px) {
  .hero h1 {
    font-size: 2.8rem;
  }

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

  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-buying .about-layout {
    grid-template-columns: 1fr;
  }

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

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    gap: 1rem;
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: 3rem 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

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

  h2 {
    font-size: 0.8rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

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

  .featured-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

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

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

  .container {
    padding: 0 1rem;
  }
}
