:root {
  --bg: #0b0d12;
  --bg-2: #11141c;
  --card: #171b26;
  --border: #252b3b;
  --orange: #ff7a18;
  --orange-2: #ff9d42;
  --text: #eef1f7;
  --muted: #98a0b3;
  --green: #3ddc84;
  --red: #ff5c5c;
  --radius: 14px;
}

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

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: radial-gradient(1200px 600px at 50% -100px, #1c2030 0%, var(--bg) 60%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.container { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(11, 13, 18, 0.8);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  color: var(--text);
}
.logo .ball {
  width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--orange-2), var(--orange) 60%, #b34a00);
  position: relative;
  flex-shrink: 0;
}
.logo .ball::before,
.logo .ball::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.5px solid rgba(0,0,0,0.35);
  border-radius: 50%;
}
.logo .ball::before { transform: translate(3px, -2px); }
.logo .ball::after { transform: translate(-3px, 2px); }
.nav-links { display: flex; gap: 20px; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color .15s;
}
.nav-links a:hover { color: var(--text); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Hero */
.hero {
  text-align: center;
  padding: 70px 0 40px;
}
.hero .badge {
  display: inline-block;
  background: rgba(255, 122, 24, 0.14);
  color: var(--orange-2);
  border: 1px solid rgba(255, 122, 24, 0.35);
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}
.hero h1 {
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
  background: linear-gradient(90deg, #fff, var(--orange-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 26px;
  font-size: 1.05rem;
}
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  transition: transform .12s, background .15s;
}
.btn-primary { background: var(--orange); color: #1a0d00; }
.btn-primary:hover { background: var(--orange-2); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--card); }

section { padding: 40px 0; }
.section-head { margin-bottom: 24px; }
.section-head h2 {
  font-size: 1.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-head p { color: var(--muted); margin-top: 4px; }

/* Code cards */
.code-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 16px;
}
.code-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  position: relative;
  overflow: hidden;
  transition: border-color .15s, transform .15s;
}
.code-card:hover { border-color: #3a4257; transform: translateY(-2px); }
.code-card .tag {
  position: absolute;
  top: 12px; right: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
}
.tag.active { background: rgba(61, 220, 132, 0.15); color: var(--green); }
.tag.expired { background: rgba(255, 92, 92, 0.15); color: var(--red); }
.code {
  font-family: "Consolas", "Menlo", monospace;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--orange-2);
  margin: 4px 0 8px;
  word-break: break-all;
}
.reward { color: var(--muted); font-size: 0.9rem; }
.copy-btn {
  margin-top: 12px;
  width: 100%;
  padding: 9px;
  border: none;
  border-radius: 8px;
  background: #222839;
  color: var(--text);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background .15s;
}
.copy-btn:hover { background: #2c3347; }
.copy-btn.copied { background: rgba(61, 220, 132, 0.2); color: var(--green); }

/* Expired */
.expired-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.expired-pill {
  font-family: "Consolas", "Menlo", monospace;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  text-decoration: line-through;
  opacity: 0.75;
}

/* Info */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 16px;
}
.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.info-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.info-card ol { padding-left: 20px; color: var(--muted); }
.info-card li { margin-bottom: 6px; }

.socials { display: flex; gap: 12px; flex-wrap: wrap; }
.socials a {
  color: var(--orange-2);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  transition: background .15s;
}
.socials a:hover { background: var(--card); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 700;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  color: var(--orange-2);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  padding: 0 18px 16px;
  color: var(--muted);
}

footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 30px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}
footer a { color: var(--orange-2); text-decoration: none; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .container { padding: 0 16px; }

  .nav { position: relative; }
  .nav-toggle { display: flex; }
  .logo { font-size: 1.05rem; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 8px 16px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
  }
  .nav-links a:last-child { border-bottom: none; }

  .hero { padding: 48px 0 32px; }
  .hero h1 { font-size: clamp(1.8rem, 9vw, 2.6rem); }
  .hero p { font-size: 1rem; }
  .section-head h2 { font-size: 1.35rem; }
  section { padding: 32px 0; }
}

@media (max-width: 480px) {
  .cta-row { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .code { font-size: 1.1rem; }
  .socials a { flex: 1 1 auto; text-align: center; }
}
