:root {
  --bg: #0a0a10;
  --bg2: #12121c;
  --card: #16161f;
  --line: #262633;
  --text: #f2f2f5;
  --muted: #9a9aad;
  --green: #39ff6e;
  --purple: #b14bff;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

h1, h2, h3, .logo {
  font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
  letter-spacing: 2px;
  font-weight: 400;
}

h2 { font-size: clamp(2.2rem, 6vw, 3.2rem); text-align: center; }
h2 span, h1 span, .logo span { color: var(--green); }
.section-sub { text-align: center; color: var(--muted); margin: 0.4rem 0 2.2rem; }

code {
  background: #1d1d28;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.1rem 0.5rem;
  font-size: 0.9em;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 1.4rem;
  background: rgba(10, 10, 16, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.logo { font-size: 1.7rem; text-decoration: none; color: var(--text); }

.nav-links { display: flex; gap: 1.6rem; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.nav-links a:hover { color: var(--green); }

.nav-right { display: flex; align-items: center; gap: 0.6rem; }

.cart-btn {
  background: var(--card); border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 0.45rem 0.8rem; font-size: 1.05rem; cursor: pointer;
  position: relative;
}
.cart-btn:hover { border-color: var(--green); }
.cart-count {
  position: absolute; top: -8px; right: -8px;
  background: var(--green); color: #06130a;
  font-size: 0.72rem; font-weight: 700;
  min-width: 20px; height: 20px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; padding: 0 5px;
}

.menu-btn {
  display: none; background: none; border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 0.45rem 0.7rem; font-size: 1.1rem; cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 92vh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: url('assets/hero-bg.webp') center / cover no-repeat;
  position: relative; padding: 6rem 1.2rem 3rem;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,16,0.55) 0%, rgba(10,10,16,0.85) 100%);
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; }
.hero-kicker {
  color: var(--green); font-weight: 700; letter-spacing: 4px; text-transform: uppercase;
  font-size: 0.85rem; margin-bottom: 0.8rem;
}
.hero h1 { font-size: clamp(4rem, 14vw, 8.5rem); line-height: 0.95; }
.hero-sub { color: #d7d7e2; font-size: 1.15rem; margin: 1rem 0 2rem; }
.hero-cta { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 0.9rem 1.9rem; border-radius: 999px;
  font-weight: 700; text-decoration: none; cursor: pointer; border: none;
  font-size: 1rem; transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--green), #1fd66a);
  color: #06130a; box-shadow: 0 6px 24px rgba(57, 255, 110, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(57,255,110,0.35); }
.btn-ghost {
  background: transparent; color: var(--text); border: 2px solid var(--line);
}
.btn-ghost:hover { border-color: var(--purple); }
.btn-small { padding: 0.6rem 1.2rem; font-size: 0.9rem; }
.btn-full { width: 100%; }

/* ---------- Sections ---------- */
.section { padding: 5rem 1.4rem; max-width: 1100px; margin: 0 auto; }

.features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem; margin-bottom: 4rem;
}
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
}
.feature:hover { border-color: var(--purple); }
.feature-icon { font-size: 2rem; margin-bottom: 0.7rem; }
.feature h3 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.feature p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Join ---------- */
.join {
  background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.6rem 1.6rem; text-align: center;
}
.join h2 { margin-bottom: 1.4rem; }
.steps { list-style: none; margin-bottom: 1.8rem; color: var(--muted); }
.steps li { margin: 0.5rem 0; }
.steps strong { color: var(--green); }
.join-row {
  display: flex; gap: 0.7rem; justify-content: center; align-items: center; flex-wrap: wrap;
}
.server-ip { font-size: 1.05rem; padding: 0.6rem 1rem; }

/* ---------- Merch ---------- */
.merch { max-width: 1100px; }
.products {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}
.product {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.product:hover { border-color: var(--green); }
.product-img { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #101018; }
.product-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-logo {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-family: 'Bebas Neue', sans-serif; letter-spacing: 3px; white-space: nowrap;
  color: var(--green); text-shadow: 0 0 14px rgba(57, 255, 110, 0.8);
  pointer-events: none;
}
.product-logo.tee, .product-logo.hoodie { top: 30%; font-size: 2rem; }
.product-logo.cap { top: 43%; font-size: 1.3rem; }
.product-body { padding: 1.3rem 1.3rem 1.5rem; display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.product-body h3 { font-size: 1.6rem; }
.product-desc { color: var(--muted); font-size: 0.92rem; flex: 1; }
.product-row { display: flex; align-items: center; justify-content: space-between; gap: 0.7rem; }
.price { font-size: 1.35rem; font-weight: 700; color: var(--green); }
.sizes { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.size {
  background: #1d1d28; border: 1px solid var(--line); color: var(--muted);
  border-radius: 8px; padding: 0.3rem 0.65rem; font-size: 0.82rem; cursor: pointer; font-weight: 600;
}
.size.active { border-color: var(--green); color: var(--green); }
.add-btn { width: 100%; margin-top: 0.3rem; }
.merch-note { text-align: center; color: var(--muted); margin-top: 2rem; font-size: 0.92rem; }

/* ---------- Footer ---------- */
footer {
  text-align: center; padding: 2.6rem 1rem; border-top: 1px solid var(--line); color: var(--muted);
}
footer .logo { font-size: 1.4rem; margin-bottom: 0.4rem; display: block; }

/* ---------- Cart drawer ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 60;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.overlay.show { opacity: 1; pointer-events: auto; }

.cart {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(400px, 92vw); z-index: 70;
  background: var(--bg2); border-left: 1px solid var(--line);
  transform: translateX(105%); transition: transform 0.25s ease;
  display: flex; flex-direction: column;
}
.cart.open { transform: none; }
.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 1.3rem; border-bottom: 1px solid var(--line);
}
.cart-head h3 { font-size: 1.6rem; }
.close-btn {
  background: none; border: none; color: var(--muted); font-size: 1.2rem; cursor: pointer;
}
.close-btn:hover { color: var(--text); }
.cart-items { flex: 1; overflow-y: auto; padding: 1rem 1.3rem; display: flex; flex-direction: column; gap: 0.9rem; }
.cart-empty { color: var(--muted); text-align: center; margin-top: 2rem; }
.cart-item {
  display: flex; gap: 0.9rem; background: var(--card);
  border: 1px solid var(--line); border-radius: 10px; padding: 0.8rem;
}
.cart-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.cart-item-info { flex: 1; }
.cart-item-info strong { display: block; font-size: 0.95rem; }
.cart-item-info .variant { color: var(--muted); font-size: 0.82rem; }
.qty-row { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.4rem; }
.qty-btn {
  background: #1d1d28; border: 1px solid var(--line); color: var(--text);
  width: 26px; height: 26px; border-radius: 8px; cursor: pointer; font-weight: 700;
}
.qty-btn:hover { border-color: var(--green); }
.remove { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 0.82rem; margin-left: auto; }
.remove:hover { color: #ff6b6b; }
.cart-foot { padding: 1.2rem 1.3rem; border-top: 1px solid var(--line); }
.cart-total { display: flex; justify-content: space-between; margin-bottom: 1rem; font-size: 1.1rem; }

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 80; display: none;
  align-items: center; justify-content: center; padding: 1.2rem;
  background: rgba(0,0,0,0.7);
}
.modal.show { display: flex; }
.modal-box {
  background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; max-width: 440px; position: relative;
}
.modal-box h3 { font-size: 1.9rem; margin-bottom: 0.8rem; }
.modal-box p { color: var(--muted); margin-bottom: 1.5rem; font-size: 0.95rem; }
.modal-box .close-btn { position: absolute; top: 1rem; right: 1.2rem; }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg2); flex-direction: column; padding: 1rem 1.4rem 1.4rem;
    border-bottom: 1px solid var(--line); gap: 1rem;
  }
  .nav-links.open { display: flex; }
  .menu-btn { display: block; }
}
