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

:root {
  --bg:        #0b0b12;
  --surface:   #12121e;
  --raised:    #1a1a2a;
  --border:    #252538;
  --red:       #e63946;
  --red-bg:    rgba(230, 57, 70, 0.08);
  --red-muted: rgba(230, 57, 70, 0.25);
  --teal:      #2ec4b6;
  --teal-bg:   rgba(46, 196, 182, 0.08);
  --teal-muted:rgba(46, 196, 182, 0.25);
  --amber:     #f4a261;
  --purple:    #9080f0;
  --text:      #e8e8f2;
  --sub:       #a0a0c0;
  --muted:     #60607a;
  --code-bg:   #0d0d18;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
}

.alert-bar {
  background: var(--red);
  color: #fff;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 1rem;
}

nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 11, 18, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 54px;
}
.nav-brand { font-weight: 800; font-size: 0.9rem; letter-spacing: 0.03em; color: var(--red); text-decoration: none; }
.nav-brand span { color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 1.2rem; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.82rem; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-discord {
  background: #5865f2; color: #fff !important;
  padding: 5px 12px; border-radius: 6px;
  font-size: 0.78rem !important; font-weight: 700 !important;
}
.nav-discord:hover { background: #4752c4 !important; }

.wrap { max-width: 860px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 4.5rem 0; border-bottom: 1px solid var(--border); }
section:last-of-type { border-bottom: none; }
h2 { font-size: 1.55rem; font-weight: 800; margin-bottom: 1rem; letter-spacing: -0.01em; }
h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
p { color: var(--sub); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.section-label {
  display: inline-block; font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red); margin-bottom: 0.6rem;
}

.hero { padding: 5.5rem 0 4.5rem; border-bottom: 1px solid var(--border); }

.live-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--red); margin-bottom: 1.4rem;
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--red);
  animation: live 1.6s ease-in-out infinite;
}
@keyframes live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.6); }
}

.hero h1 {
  font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 900;
  line-height: 1.12; letter-spacing: -0.025em; margin-bottom: 1.1rem;
}
.hero h1 em { font-style: normal; color: var(--red); }
.hero-sub { font-size: 1rem; color: var(--sub); max-width: 600px; margin-bottom: 2rem; }

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.5rem; }
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 6px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; border: 1px solid;
}
.tag-red    { background: var(--red-bg); border-color: var(--red-muted); color: var(--red); }
.tag-teal   { background: var(--teal-bg); border-color: var(--teal-muted); color: var(--teal); }
.tag-discord{ background: rgba(88,101,242,0.1); border-color: rgba(88,101,242,0.35); color: #8090f4; }

.stat-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
.stat { background: var(--surface); padding: 1.2rem 1.4rem; }
.stat .n { font-size: 1.9rem; font-weight: 900; color: var(--red); line-height: 1; margin-bottom: 0.3rem; letter-spacing: -0.02em; }
.stat .d { font-size: 0.73rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); }

.info-box { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1.2rem 1.4rem; margin: 1.2rem 0; }
.info-box.red  { border-color: var(--red-muted); background: var(--red-bg); }
.info-box.teal { border-color: var(--teal-muted); background: var(--teal-bg); }
.box-label { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.45rem; }
.box-label.red  { color: var(--red); }
.box-label.teal { color: var(--teal); }
.info-box p { font-size: 0.88rem; color: #b8b8d8; }

.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-top: 1.5rem;
}
.card { background: var(--surface); padding: 1.2rem; transition: background 0.15s; }
.card:hover { background: var(--raised); }
.card-icon { font-size: 1.2rem; margin-bottom: 0.6rem; }
.card h3 { font-size: 0.88rem; }
.card p  { font-size: 0.8rem; color: var(--muted); margin-top: 0.2rem; }
.card a  { color: var(--teal); }

.table-wrap { margin-top: 1.2rem; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead tr { background: var(--raised); }
th { padding: 0.7rem 1rem; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); text-align: left; border-bottom: 1px solid var(--border); }
td { padding: 0.65rem 1rem; font-size: 0.83rem; color: var(--sub); border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.015); }
.mono { font-family: 'Consolas', 'Courier New', monospace; font-size: 0.8rem; color: var(--text); }

.timeline { position: relative; padding-left: 1.6rem; margin-top: 1.8rem; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 6px; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, var(--red) 0%, var(--border) 100%);
}
.tl { position: relative; margin-bottom: 2rem; }
.tl::before {
  content: ''; position: absolute; left: -1.6rem; top: 7px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--red); border: 2px solid var(--bg); box-shadow: 0 0 0 2px var(--red);
}
.tl.teal::before   { background: var(--teal);   box-shadow: 0 0 0 2px var(--teal); }
.tl.amber::before  { background: var(--amber);  box-shadow: 0 0 0 2px var(--amber); }
.tl.purple::before { background: var(--purple); box-shadow: 0 0 0 2px var(--purple); }
.tl-t { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.15rem; }
.tl-h { font-weight: 700; font-size: 0.92rem; margin-bottom: 0.2rem; }
.tl-b { font-size: 0.83rem; color: var(--sub); }

.quote {
  background: var(--code-bg); border-left: 3px solid var(--red);
  border-radius: 0 8px 8px 0; padding: 0.9rem 1.1rem; margin: 1.2rem 0;
  font-family: 'Consolas', 'Courier New', monospace; font-size: 0.86rem; color: #c0c0e0;
}
.quote .who { font-size: 0.65rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.35rem; }
.em-red { color: var(--red); font-weight: 700; }

.step-list { list-style: none; margin-top: 1.2rem; }
.step-list li { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.step-list li:last-child { border-bottom: none; }
.step-n {
  flex-shrink: 0; width: 26px; height: 26px;
  background: var(--raised); border: 1px solid var(--border);
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 800; color: var(--teal);
}
.step-body strong { color: var(--text); font-size: 0.9rem; }
.step-body p { font-size: 0.83rem; color: var(--muted); margin-top: 0.1rem; }

.discord-cta {
  background: rgba(88,101,242,0.08); border: 1px solid rgba(88,101,242,0.3);
  border-radius: 10px; padding: 1.4rem 1.6rem; margin-top: 2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.discord-cta-text strong { color: var(--text); display: block; margin-bottom: 0.2rem; }
.discord-cta-text p { font-size: 0.85rem; color: var(--muted); margin: 0; }
.discord-btn {
  flex-shrink: 0; background: #5865f2; color: #fff;
  text-decoration: none; padding: 9px 18px; border-radius: 7px;
  font-size: 0.83rem; font-weight: 700; transition: background 0.15s;
}
.discord-btn:hover { background: #4752c4; }

.thanks-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.thanks-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 1.3rem; transition: border-color 0.2s;
}
.thanks-card:hover { border-color: var(--purple); }
.thanks-card .role { font-size: 0.67rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--purple); margin-bottom: 0.4rem; }
.thanks-card .name { font-size: 1rem; font-weight: 800; color: var(--text); margin-bottom: 0.4rem; }
.thanks-card p { font-size: 0.82rem; color: var(--muted); }

footer { background: var(--surface); border-top: 1px solid var(--border); padding: 2.5rem 0; text-align: center; }
footer p { font-size: 0.78rem; color: var(--muted); margin: 0.2rem 0; }
footer a { color: var(--red); text-decoration: none; }
footer a:hover { text-decoration: underline; }

.nav-menu-btn {
  display: none; background: none; border: 1px solid var(--border);
  border-radius: 6px; padding: 5px 8px; cursor: pointer; color: var(--text);
  font-size: 1.1rem; line-height: 1; flex-shrink: 0;
}
.nav-menu-btn:hover { border-color: var(--muted); }

@media (max-width: 768px) {
  nav { padding: 0 1rem; height: auto; min-height: 54px; flex-wrap: wrap; gap: 0; align-items: center; }
  .nav-menu-btn { display: flex; align-items: center; justify-content: center; }
  .nav-links {
    display: none; flex-direction: column; width: 100%;
    padding: 0.6rem 0 0.8rem; gap: 0; border-top: 1px solid var(--border);
    background: rgba(11,11,18,0.98);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 0.55rem 0.5rem; font-size: 0.88rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-discord {
    margin-top: 0.4rem; text-align: center;
    border-radius: 0 !important; font-size: 0.88rem !important;
    padding: 8px 0 !important;
  }
  .hero { padding: 3.5rem 0 3rem; }
  .wrap { padding: 0 1rem; }
  section { padding: 3rem 0; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat .n { font-size: 1.5rem; }
  .card-grid { grid-template-columns: 1fr; }
  .thanks-grid { grid-template-columns: 1fr; }
  .discord-cta { flex-direction: column; text-align: center; }
  .discord-btn { width: 100%; text-align: center; padding: 11px 18px; }
  .table-wrap { border-radius: 0; margin-left: -1rem; margin-right: -1rem; border-left: none; border-right: none; }
  th, td { padding: 0.55rem 0.75rem; }
  .timeline { padding-left: 1.2rem; }
  .tl::before { left: -1.2rem; }
  .quote { font-size: 0.8rem; }
  h2 { font-size: 1.3rem; }
}

@media (max-width: 400px) {
  .stat-row { grid-template-columns: 1fr; }
  .tags { gap: 0.4rem; }
  .tag { font-size: 0.65rem; padding: 3px 8px; }
}
