/* ── Reset & Base ─────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0d1117;
  --surface: #161b22;
  --border: #30363d;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --green: #00ff41;
  --green-soft: #7ee787;
  --purple: #9d4edd;
  --purple-soft: #a371f7;
  --red: #ff4444;
  --amber: #ffb000;
  --cyan: #00ffff;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

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

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

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

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

/* ── Utility ─────────────────────────────────────────── */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.mono {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge--green  { background: rgba(0, 255, 65, 0.12); color: var(--green); }
.badge--purple { background: rgba(157, 78, 221, 0.15); color: var(--purple-soft); }
.badge--amber  { background: rgba(255, 176, 0, 0.12); color: var(--amber); }
.badge--cyan   { background: rgba(0, 255, 255, 0.1);  color: var(--cyan); }

/* ── Scanline overlay (subtle CRT feel) ──────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  z-index: 9999;
}

/* ── Navigation ──────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.nav__logo img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.nav__links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
}

.nav__links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.nav__hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ── Hero ────────────────────────────────────────────── */
.hero {
  padding: 8rem 0 4rem;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 255, 65, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero__banner {
  max-width: 560px;
  width: 100%;
  margin: 0 auto 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 0 40px rgba(0, 255, 65, 0.08);
}

.hero__tagline {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 2.5rem;
}

.hero__tagline strong {
  color: var(--green);
}

.hero__cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.8rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn--primary {
  background: var(--green);
  color: var(--bg);
}

.btn--primary:hover {
  background: var(--green-soft);
  color: var(--bg);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

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

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

/* ── Section shared ──────────────────────────────────── */
section {
  padding: 5rem 0;
}

.section__label {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.section__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section__subtitle {
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 3rem;
}

/* ── Features grid ───────────────────────────────────── */
.features {
  border-top: 1px solid var(--border);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.8rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: var(--green);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.06);
}

.feature-card__icon {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}

.feature-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.feature-card__desc {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── Stats bar ───────────────────────────────────────── */
.stats {
  border-top: 1px solid var(--border);
  padding: 4rem 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat {
  padding: 1rem 0;
}

.stat__number {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat__label {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Depth / layers ──────────────────────────────────── */
.depth {
  border-top: 1px solid var(--border);
}

.depth__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.depth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.8rem;
  position: relative;
  overflow: hidden;
}

.depth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.depth-card--short::before  { background: var(--green); }
.depth-card--mid::before    { background: var(--amber); }
.depth-card--long::before   { background: var(--purple); }
.depth-card--end::before    { background: var(--red); }

.depth-card__timeframe {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}

.depth-card--short .depth-card__timeframe  { color: var(--green); }
.depth-card--mid .depth-card__timeframe    { color: var(--amber); }
.depth-card--long .depth-card__timeframe   { color: var(--purple-soft); }
.depth-card--end .depth-card__timeframe    { color: var(--red); }

.depth-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.depth-card__desc {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ── Community ───────────────────────────────────────── */
.community {
  border-top: 1px solid var(--border);
}

.community__box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.community__box::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(88, 101, 242, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.community__discord-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
}

.community__title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.community__desc {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 2rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.community__features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  list-style: none;
}

.community__features li {
  color: var(--text-muted);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.community__features li::before {
  content: '>';
  font-family: 'SF Mono', 'Fira Code', monospace;
  color: #5865f2;
  font-weight: 700;
}

.btn--discord {
  background: #5865f2;
  color: #fff;
}

.btn--discord:hover {
  background: #4752c4;
  color: #fff;
  box-shadow: 0 0 20px rgba(88, 101, 242, 0.3);
}

.btn--discord svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ── Inline SVG icon helper ──────────────────────────── */
.icon-inline {
  width: 1em;
  height: 1em;
  vertical-align: -0.1em;
  fill: currentColor;
}

/* ── How to play ─────────────────────────────────────── */
.howto {
  border-top: 1px solid var(--border);
}

.steps {
  display: grid;
  gap: 2rem;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.2rem;
  align-items: start;
  counter-increment: step;
}

.step__number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--green);
  flex-shrink: 0;
}

.step__title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.step__desc {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── FAQ ─────────────────────────────────────────────── */
.faq {
  border-top: 1px solid var(--border);
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.faq-item__q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  padding: 1.2rem 1.5rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
}

.faq-item__q:hover {
  color: var(--green);
}

.faq-item__arrow {
  font-size: 0.8rem;
  transition: transform 0.25s;
  color: var(--text-muted);
}

.faq-item.open .faq-item__arrow {
  transform: rotate(180deg);
}

.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-item__a {
  max-height: 400px;
  padding: 0 1.5rem 1.2rem;
}

.faq-item__a p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ── Troubleshooting ─────────────────────────────────── */
.troubleshooting {
  border-top: 1px solid var(--border);
}

.trouble-list {
  display: grid;
  gap: 1.5rem;
}

.trouble-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem 1.8rem;
}

.trouble-card__issue {
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.trouble-card__issue::before {
  content: '>';
  font-family: 'SF Mono', 'Fira Code', monospace;
  color: var(--red);
  font-weight: 700;
}

.trouble-card__fix {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding-left: 1.5rem;
}

.trouble-card__fix code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  background: rgba(0, 255, 65, 0.08);
  color: var(--green);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

/* ── Footer ──────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  text-align: center;
}

.footer__logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.footer__text {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
}

.footer__links a {
  color: var(--text-muted);
  font-size: 0.85rem;
}

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

/* ── Mobile ──────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(13, 17, 23, 0.97);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .nav__links.open {
    display: flex;
  }

  .nav__hamburger {
    display: block;
  }

  .hero {
    padding: 6rem 0 3rem;
  }

  .hero::before {
    width: 300px;
    height: 300px;
  }

  .section__title {
    font-size: 1.5rem;
  }

  .step {
    grid-template-columns: 40px 1fr;
  }

  .step__number {
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .stat__number {
    font-size: 1.8rem;
  }

  .community__box {
    padding: 2rem 1.5rem;
  }

  .community__features {
    gap: 1rem;
  }

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