/* ===== Gregory's Legos — Space Explorer theme ===== */
:root {
  --bg: #05010f;
  --bg2: #0a0420;
  --cyan: #5ef2ff;
  --purple: #b96bff;
  --pink: #ff2e97;
  --text: #e8eaff;
  --muted: #b9b6e0;
  --card: rgba(120, 90, 255, 0.10);
  --card-border: #6a4fff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Fredoka', sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  line-height: 1.5;
}

h1, h2, h3, .brand, .btn { font-family: 'Orbitron', sans-serif; }

/* ===== Animated star background ===== */
.stars {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(2px 2px at 20% 30%, #fff, transparent),
    radial-gradient(2px 2px at 70% 60%, #fff, transparent),
    radial-gradient(1px 1px at 50% 80%, #9ad, transparent),
    radial-gradient(2px 2px at 85% 20%, #fff, transparent),
    radial-gradient(1px 1px at 35% 50%, #fff, transparent);
  background-size: 400px 400px;
  z-index: -2;
  animation: drift 90s linear infinite;
}
.stars2 {
  background-size: 250px 250px;
  opacity: 0.5;
  z-index: -1;
  animation-duration: 140s;
  animation-direction: reverse;
}
@keyframes drift {
  from { transform: translateY(0); }
  to { transform: translateY(-400px); }
}

/* ===== Nav ===== */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 1, 15, 0.7);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(106, 79, 255, 0.4);
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
  text-shadow: 0 0 12px var(--cyan);
}
.brand-rocket { font-size: 1.5rem; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--cyan); }
.nav-cta {
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  color: #05010f !important;
  padding: 8px 18px;
  border-radius: 30px;
  font-weight: 600;
  box-shadow: 0 0 18px rgba(185, 107, 255, 0.6);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--cyan);
  font-size: 1.6rem;
  cursor: pointer;
}

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 90px 24px 80px;
  position: relative;
}
.hero-kicker {
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 14px;
}
.hero-title {
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-title .glow { text-shadow: 0 0 30px var(--purple); }
.hero-sub {
  max-width: 560px;
  margin: 22px auto 30px;
  color: var(--muted);
  font-size: 1.2rem;
}
.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-rocket {
  font-size: 3rem;
  margin-top: 40px;
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-18px) rotate(-8deg); }
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 40px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.05rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-3px); }
.btn-glow {
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  color: #05010f;
  box-shadow: 0 0 24px var(--purple);
}
.btn-out {
  border: 2px solid var(--cyan);
  color: var(--cyan);
  background: transparent;
}
.btn-out:hover { background: rgba(94, 242, 255, 0.1); }

/* ===== Hero stats ===== */
.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 46px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--cyan);
  text-shadow: 0 0 14px var(--cyan);
}
.stat-label { color: var(--muted); font-size: 0.95rem; }

/* ===== Sections ===== */
.section { padding: 60px 24px; max-width: 1080px; margin: 0 auto; }
.section-alt {
  background: rgba(120, 90, 255, 0.05);
  border-radius: 30px;
  max-width: 1120px;
  margin: 20px auto;
}
.section-head { text-align: center; margin-bottom: 32px; }
.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--cyan);
  text-shadow: 0 0 16px var(--cyan);
}
.section-head p { color: var(--muted); margin-top: 8px; font-size: 1.1rem; }

/* ===== Filters ===== */
.filters {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.chip {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--muted);
  padding: 8px 18px;
  border-radius: 30px;
  cursor: pointer;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.chip:hover { border-color: var(--cyan); color: var(--cyan); }
.chip.is-active {
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  color: #05010f;
  border-color: transparent;
  font-weight: 600;
}

/* ===== Grid + Cards ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(4px);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-7px);
  box-shadow: 0 0 30px rgba(185, 107, 255, 0.55);
}
.card-pic {
  font-size: 4.6rem;
  text-align: center;
  padding: 32px 16px;
  background: radial-gradient(circle at 50% 40%, rgba(94, 242, 255, 0.18), transparent 70%);
  position: relative;
}
.card-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}
.card-body { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { color: #d9c6ff; font-size: 1.15rem; }
.card-body p { color: var(--muted); font-size: 0.95rem; margin-top: 6px; flex: 1; }
.tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--cyan);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 2px 10px;
  margin-top: 12px;
  width: fit-content;
}
.card-foot {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.price {
  background: linear-gradient(90deg, var(--pink), var(--purple));
  color: #fff;
  padding: 5px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-family: 'Orbitron', sans-serif;
}
.buy-btn {
  background: var(--cyan);
  color: #05010f;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Fredoka', sans-serif;
  transition: transform 0.15s, box-shadow 0.2s;
}
.buy-btn:hover { transform: scale(1.05); box-shadow: 0 0 16px var(--cyan); }
.sold { opacity: 0.55; }
.sold .price { background: #555; }

/* ===== About ===== */
.about-card {
  display: flex;
  gap: 30px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 36px;
  flex-wrap: wrap;
}
.about-emoji { font-size: 5rem; }
.about-text { flex: 1; min-width: 260px; }
.about-text h2 { color: var(--cyan); margin-bottom: 12px; text-shadow: 0 0 14px var(--cyan); }
.about-text p { color: var(--muted); margin-bottom: 12px; }
.about-text strong { color: var(--text); }

/* ===== How to buy steps ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}
.step {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 24px;
  text-align: center;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  color: #05010f;
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  margin-bottom: 14px;
}
.step p { color: var(--muted); }
.step a { color: var(--cyan); }
.parent-note {
  background: rgba(255, 46, 151, 0.08);
  border: 1px dashed var(--pink);
  border-radius: 16px;
  padding: 16px 20px;
  color: var(--muted);
  text-align: center;
}
.parent-note code {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 6px;
  color: var(--cyan);
  font-size: 0.9em;
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 40px 24px;
  color: var(--muted);
  border-top: 1px solid rgba(106, 79, 255, 0.3);
  margin-top: 40px;
}
.footer-small { font-size: 0.8rem; opacity: 0.6; margin-top: 8px; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 1, 15, 0.92);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox-content {
  background: var(--bg2);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 36px;
  max-width: 460px;
  text-align: center;
  box-shadow: 0 0 50px rgba(185, 107, 255, 0.5);
}
.lightbox-img { font-size: 7rem; margin-bottom: 16px; }
.lightbox-img img { width: 100%; border-radius: 14px; }
.lightbox-content h3 { color: var(--cyan); font-size: 1.5rem; margin-bottom: 10px; }
.lightbox-content p { color: var(--muted); margin-bottom: 18px; }
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

/* ===== Mobile ===== */
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    right: 16px;
    flex-direction: column;
    background: var(--bg2);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 16px 22px;
    gap: 14px;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .hero-stats { gap: 26px; }
}
