:root {
  --bg: #05070d;
  --bg-2: #0a101c;
  --panel: #0d1422;
  --line: rgba(120, 180, 255, 0.12);
  --text: #e8f1ff;
  --muted: #8aa0b8;
  --cyan: #3ec7ff;
  --cyan-2: #1aa3ff;
  --glow: 0 0 28px rgba(62, 199, 255, 0.35);
  --radius: 16px;
  --header: 72px;
  --ticker: 36px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); }
body {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }

#stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.ticker {
  position: relative;
  z-index: 40;
  height: var(--ticker);
  background: linear-gradient(90deg, #072033, #0b2a44 40%, #072033);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #cfefff;
}
.ticker-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  padding-left: 24px;
}
.ticker b { color: var(--cyan); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: rgba(5, 7, 13, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 15px;
}
.brand img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--glow);
}
.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text);
}
.nav-links a.pill {
  background: linear-gradient(180deg, #3ec7ff, #1486d6);
  color: #041018;
  font-weight: 700;
  box-shadow: var(--glow);
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  position: relative;
  width: 42px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0c1320;
  display: grid;
  place-items: center;
  color: var(--text);
}
.icon-btn .badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--cyan);
  color: #041018;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.ghost-btn, .solid-btn, .soft-btn {
  height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
.ghost-btn { border: 1px solid var(--line); background: #0c1320; }
.solid-btn {
  background: linear-gradient(180deg, #4ad0ff, #1283d4);
  color: #041018;
  box-shadow: var(--glow);
}
.soft-btn { background: #132033; border: 1px solid var(--line); color: var(--cyan); }
.menu-btn { display: none; }

.page { position: relative; z-index: 1; }

.hero {
  min-height: calc(92vh - var(--header) - var(--ticker));
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 20px 40px;
}
.eyebrow {
  color: var(--cyan);
  letter-spacing: 0.28em;
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(48px, 9vw, 108px);
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.hero h1 span { display: block; }
.hero h1 .glow {
  background: linear-gradient(180deg, #f4fbff, #7ad8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 24px rgba(62,199,255,.35));
}
.hero p {
  margin: 22px auto 32px;
  max-width: 560px;
  color: var(--muted);
  font-size: 16px;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-actions .solid-btn, .hero-actions .ghost-btn { height: 48px; padding: 0 22px; }

.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.section { padding: 28px 0 72px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 22px;
}
.section-head h2 { font-size: 28px; letter-spacing: -0.03em; }
.section-head p { color: var(--muted); font-size: 14px; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: linear-gradient(180deg, #101827, #0b1220);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(62,199,255,.35); }
.card-media {
  height: 210px;
  overflow: hidden;
  background: #070b14;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.card-body { padding: 16px 16px 18px; }
.tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 8px;
}
.card h3 { font-size: 18px; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 13px; min-height: 38px; }
.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
}
.price { font-weight: 700; color: #dff6ff; }
.price small { color: var(--muted); font-weight: 500; }

.discord {
  margin: 10px auto 80px;
  width: min(1120px, calc(100% - 40px));
  background: linear-gradient(90deg, #3b5bfd, #5865f2 55%, #6d7cff);
  border-radius: 22px;
  padding: 28px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  box-shadow: 0 20px 60px rgba(88,101,242,.25);
}
.discord h3 { font-size: 28px; }
.discord p { opacity: .9; margin-top: 4px; }
.discord .solid-btn { background: #fff; color: #2b3bb8; box-shadow: none; }

.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 36px 0 28px;
  color: var(--muted);
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
}
.footer h4 { color: var(--text); margin-bottom: 10px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.footer a { display: block; padding: 4px 0; color: var(--muted); }
.footer a:hover { color: var(--cyan); }

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(2, 4, 10, 0.62);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal-card {
  width: min(380px, calc(100% - 28px));
  background: #0d1626;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 24px 22px;
  text-align: center;
  box-shadow: 0 20px 80px rgba(0,0,0,.5), var(--glow);
  position: relative;
}
.modal-card h3 { font-size: 26px; color: var(--cyan); margin-bottom: 8px; }
.modal-card p { color: var(--muted); font-size: 14px; }
.code-chip {
  margin: 16px auto;
  display: grid;
  place-items: center;
  width: 160px;
  height: 52px;
  border-radius: 12px;
  border: 1px solid rgba(62,199,255,.35);
  background: #0a1422;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--cyan);
}
.close-x {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 28px;
  height: 28px;
  color: var(--muted);
}

.form { display: grid; gap: 10px; text-align: left; margin-top: 16px; }
.form label { font-size: 12px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.form input, .form select, .form textarea {
  width: 100%;
  background: #0a1220;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  outline: none;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--cyan); }

.product-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  padding: 40px 0 64px;
  align-items: start;
}
.product-visual {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #070b14;
  min-height: 460px;
}
.product-visual img { width: 100%; height: 520px; object-fit: cover; object-position: center 25%; }
.variants { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.variant {
  border: 1px solid var(--line);
  background: #0c1320;
  border-radius: 10px;
  padding: 10px 12px;
  min-width: 120px;
  text-align: left;
}
.variant.active { border-color: var(--cyan); box-shadow: var(--glow); }
.variant b { display: block; font-size: 13px; }
.variant span { color: var(--muted); font-size: 12px; }
.feature-list { margin: 18px 0 24px; display: grid; gap: 8px; color: var(--muted); font-size: 14px; }
.feature-list li { list-style: none; padding-left: 18px; position: relative; }
.feature-list li:before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 99px; background: var(--cyan); }

.cart-layout { display: grid; grid-template-columns: 1.4fr 0.7fr; gap: 22px; padding: 36px 0 80px; }
.cart-item {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  margin-bottom: 12px;
  align-items: center;
}
.cart-item img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; }
.qty { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty button { width: 26px; height: 26px; border-radius: 6px; background: #132033; }
.summary {
  position: sticky;
  top: 96px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  background: var(--panel);
}
.summary row, .row { display: flex; justify-content: space-between; margin: 8px 0; color: var(--muted); }
.summary .total { color: var(--text); font-size: 18px; font-weight: 700; }

.status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.status-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 14px;
  padding: 18px;
}
.dot { width: 9px; height: 9px; border-radius: 99px; display: inline-block; margin-right: 8px; }
.dot.ok { background: #36d399; box-shadow: 0 0 10px #36d399; }
.dot.warn { background: #f5c14a; }

.reviews { display: grid; gap: 12px; }
.review {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 14px;
  padding: 16px;
}
.stars { color: var(--cyan); letter-spacing: 2px; margin-bottom: 6px; }

.toast-host {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: grid;
  gap: 8px;
}
.toast {
  background: #102033;
  border: 1px solid rgba(62,199,255,.3);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 10px;
  opacity: 0;
  transform: translateY(8px);
  transition: .22s ease;
}
.toast.in { opacity: 1; transform: none; }

.empty { color: var(--muted); padding: 40px 0; }

.page-title { padding: 36px 0 8px; }
.page-title h1 { font-size: 36px; letter-spacing: -0.03em; }
.page-title p { color: var(--muted); margin-top: 6px; }

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: calc(var(--header) + var(--ticker));
    left: 0; right: 0;
    background: #070b14;
    flex-direction: column;
    padding: 12px;
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .menu-btn { display: grid; }
  .grid, .status-grid, .product-hero, .cart-layout, .footer-grid { grid-template-columns: 1fr; }
  .discord { flex-direction: column; align-items: start; }
  .product-visual img { height: 320px; }
  .header { padding: 0 14px; }
}
