@font-face {
  font-family: 'Cinzel';
  src: url('assets/fonts/cinzel-400.ttf'); font-weight: 400;
}
@font-face {
  font-family: 'Cinzel';
  src: url('assets/fonts/cinzel-700.ttf'); font-weight: 700;
}
@font-face {
  font-family: 'Cinzel';
  src: url('assets/fonts/cinzel-900.ttf'); font-weight: 900;
}

:root {
  --bg: #0a0806;
  --card: #151009;
  --border: #2e2619;
  --copper: #c9a06c;
  --copper-hi: #e3c08a;
  --text: #ece4d4;
  --muted: #8d8272;
  --green: #4ade80;
  --serif: 'Cinzel', Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* ---------- Topbar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 34px; height: 64px;
  background: linear-gradient(180deg, rgba(14,10,7,.95), rgba(8,6,5,.88));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #1d170f;
}
.topbar::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184,115,51,.5) 30%, rgba(184,115,51,.5) 70%, transparent);
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-logo { width: 34px; height: 34px; }
.brand-name {
  font-family: var(--serif); font-weight: 900; font-size: 16px;
  letter-spacing: 3px; color: var(--copper-hi);
}
.brand-sep { color: #564d3d; }
.brand-sub { font-size: 10px; letter-spacing: 3px; color: var(--muted); font-weight: 600; }
.topnav { display: flex; gap: 30px; }
.topnav a {
  position: relative;
  color: var(--muted); text-decoration: none;
  font-size: 11px; letter-spacing: 2px; font-weight: 600;
  padding: 24px 2px;
  transition: color .15s;
}
.topnav a::after {
  content: '';
  position: absolute; left: 0; right: 100%; bottom: 14px; height: 2px;
  background: var(--copper); transition: right .2s;
}
.topnav a:hover { color: var(--copper-hi); }
.topnav a:hover::after { right: 0; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  background: url('assets/bg.svg') center/cover no-repeat;
  display: flex; align-items: center;
  position: relative;
  padding: 120px 8vw 60px;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,5,4,.3) 0%, rgba(6,5,4,.1) 50%, var(--bg) 100%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 720px; }
.hero-meta { color: var(--copper); font-size: 12px; letter-spacing: 3px; font-weight: 600; margin-bottom: 20px; }
.hero h1 {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(46px, 7vw, 84px);
  line-height: 1.02;
  color: #f4ead8;
  text-shadow: 0 4px 30px rgba(0,0,0,.85);
  margin-bottom: 22px;
}
.hero-sub { color: #c8bda6; font-size: 16px; line-height: 1.6; max-width: 480px; margin-bottom: 34px; }
.hero-btns { display: flex; gap: 14px; }
.hero-mascot {
  position: absolute; z-index: 2;
  right: 7vw; bottom: 14vh;
  width: clamp(180px, 20vw, 290px);
  filter: drop-shadow(0 16px 40px rgba(0,0,0,.7));
}

.hero-status {
  margin-top: 28px; display: flex; align-items: center; gap: 9px;
  font-size: 12px; letter-spacing: 1.5px; color: #c8bda6; font-weight: 600;
}
.hero-status i { width: 9px; height: 9px; border-radius: 50%; background: #555; }
.hero-status i.on { background: var(--green); box-shadow: 0 0 10px var(--green); }
.hero-status i.off { background: #f87171; }
.hero-status-sep { color: #564d3d; }

/* ---------- Homepage sections ---------- */
.sec-head {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1400px; margin: 0 auto 30px; padding: 0 8vw;
}
.sec-head h2, .home-stats h2 { font-family: var(--serif); font-size: 28px; letter-spacing: 2px; }

.home-news { padding: 30px 0 70px; }
.news-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px; max-width: 1400px; margin: 0 auto; padding: 0 8vw;
}

.home-stats { padding: 10px 8vw 80px; text-align: center; }
.home-stats h2 { margin-bottom: 34px; }
.stat-grid {
  display: flex; justify-content: center; gap: 60px; flex-wrap: wrap;
  margin-bottom: 30px;
}
.stat-n { font-family: var(--serif); font-size: 44px; font-weight: 900; color: var(--copper-hi); }
.stat-l { font-size: 11px; letter-spacing: 2.5px; color: var(--muted); font-weight: 700; margin-top: 4px; }

.discord-cta { padding: 0 8vw 90px; max-width: 900px; margin: 0 auto; }
.cta-card {
  display: flex; align-items: center; gap: 26px;
  padding: 30px 36px;
}
.cta-mascot { width: 72px; flex-shrink: 0; }
.cta-card > div { flex: 1; }
.cta-card h3 { font-family: var(--serif); font-size: 19px; margin-bottom: 4px; }
.cta-card .btn { white-space: nowrap; }
@media (max-width: 640px) { .cta-card { flex-direction: column; text-align: center; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 10px;
  font-size: 12px; letter-spacing: 2px; font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(0,0,0,.4);
  transition: all .15s;
}
.btn.primary {
  background: linear-gradient(135deg, #b8895a, #8a6238);
  border-color: transparent;
  color: #fff7ea;
}
.btn.primary:hover { background: linear-gradient(135deg, #d0a06a, #9a7042); }
.btn.ghost:hover { border-color: var(--copper); color: var(--copper-hi); }
.btn.big { padding: 18px 44px; font-size: 14px; }

/* ---------- Feature strip ---------- */
.strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  padding: 80px 8vw;
  max-width: 1400px; margin: 0 auto;
}
.feat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px 28px;
}
.feat-num {
  font-family: var(--serif); font-weight: 700;
  color: var(--copper); font-size: 14px; letter-spacing: 2px;
  margin-bottom: 14px;
}
.feat-card h3 { font-family: var(--serif); font-size: 20px; margin-bottom: 10px; }
.feat-card p { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ---------- Steps ---------- */
.steps { padding: 40px 8vw 90px; max-width: 1400px; margin: 0 auto; }
.steps h2, .status h2 {
  font-family: var(--serif); font-size: 30px; font-weight: 700;
  letter-spacing: 2px; margin-bottom: 34px; text-align: center;
}
.step-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.step-card {
  position: relative;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 46px 26px 28px;
}
.step-nr {
  position: absolute; top: -18px; left: 22px;
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, #b8895a, #8a6238);
  color: #fff7ea; font-family: var(--serif); font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.step-card h4 { font-size: 16px; margin-bottom: 8px; }
.step-card p { color: var(--muted); font-size: 13px; line-height: 1.6; }

/* ---------- Download ---------- */
.download { padding: 20px 8vw 90px; display: flex; justify-content: center; }
.dl-card {
  text-align: center;
  background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  padding: 50px 70px;
  max-width: 560px; width: 100%;
}
.dl-mascot { width: 130px; margin-bottom: 18px; }
.dl-card h2 { font-family: var(--serif); font-size: 26px; letter-spacing: 2px; margin-bottom: 10px; }
.muted { color: var(--muted); }
.dl-card .muted { margin-bottom: 26px; font-size: 14px; }
.tiny { font-size: 11px; margin-top: 14px; display: block; }

/* ---------- Status ---------- */
.status { padding: 0 8vw 90px; max-width: 900px; margin: 0 auto; }
.status-grid { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.status-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 22px; font-size: 13px; color: var(--muted);
}
.status-item i { width: 9px; height: 9px; border-radius: 50%; background: #555; }
.status-item i.on { background: var(--green); box-shadow: 0 0 8px var(--green); }
.status-item i.off { background: #f87171; }
.status-item b { color: var(--text); font-size: 12px; letter-spacing: 1px; }

/* ---------- Pages / Cards ---------- */
main { min-height: 70vh; }
.page {
  padding: 130px 24px 80px;
  max-width: 660px; margin: 0 auto;
}
.page.wide { max-width: 1100px; padding-left: 40px; padding-right: 40px; }
.page-head { margin-bottom: 30px; }
.page-head h2 { font-family: var(--serif); font-size: 30px; letter-spacing: 2px; }
.page-head .muted { margin-top: 6px; }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 24px;
}

/* ---------- Auth ---------- */
.auth-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  padding: 44px 48px; text-align: center;
  max-width: 460px; margin: 0 auto;
}
.auth-mascot { width: 90px; margin-bottom: 14px; }
.auth-card h2 { font-family: var(--serif); font-size: 24px; letter-spacing: 2px; margin-bottom: 8px; }
.auth-card > .muted { margin-bottom: 24px; font-size: 14px; }
.auth-card form { text-align: left; }

.fld { display: block; font-size: 10px; letter-spacing: 1.5px; color: var(--muted); font-weight: 700; margin-bottom: 14px; }
.fld input {
  display: block; width: 100%; margin-top: 6px;
  background: #0f0c09; border: 1px solid #2e2619; border-radius: 9px;
  color: var(--text); padding: 11px 13px; font-size: 14px; outline: none;
  font-family: var(--sans); letter-spacing: normal;
}
.fld input:focus { border-color: var(--copper); }

.btn.full { width: 100%; display: block; text-align: center; cursor: pointer; font-family: var(--sans); }
.tiny a, .muted a, .card a, p a, li a { color: var(--copper-hi); }
.auth-card .tiny { margin-top: 18px; }

.alert {
  border-radius: 9px; padding: 12px 16px; font-size: 13px;
  margin-bottom: 18px; text-align: left;
}
.alert.err { background: rgba(220,60,60,.12); border: 1px solid #5c2020; color: #fca5a5; }
.alert.ok { background: rgba(74,222,128,.1); border: 1px solid #1f5c34; color: #86efac; }

/* ---------- Account page ---------- */
.cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; } }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th {
  text-align: left; font-size: 10px; letter-spacing: 1.5px; color: var(--muted);
  padding: 8px 10px; border-bottom: 1px solid var(--border);
}
.tbl td { padding: 10px; border-bottom: 1px solid #1d170f; }
.tbl tr:last-child td { border-bottom: none; }
.on { color: var(--green); font-size: 12px; }
.kv { display: flex; justify-content: space-between; font-size: 13px; padding: 8px 0; border-bottom: 1px solid #1d170f; }
.kv span { color: var(--muted); }

/* ---------- FAQ / News ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
details.card { padding: 0; }
details.card summary {
  cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 15px;
  list-style: none;
}
details.card summary::after { content: '+'; float: right; color: var(--copper); font-size: 18px; }
details.card[open] summary::after { content: '–'; }
details.card p { padding: 0 22px 18px; color: var(--muted); font-size: 14px; line-height: 1.6; }
details.card code { color: var(--copper-hi); }

.news-list { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin: 0 auto; }
.news-item .news-date { font-size: 11px; letter-spacing: 2px; color: var(--copper); font-weight: 700; margin-bottom: 8px; }
.news-item h3 { font-family: var(--serif); font-size: 19px; margin-bottom: 8px; }
.news-item p { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ---------- Download page extras ---------- */
.dl-notes { max-width: 560px; margin: 40px auto 0; }
.dl-notes h3 { font-family: var(--serif); font-size: 17px; margin: 26px 0 12px; }
.dl-notes ol { margin-left: 20px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.dl-notes code { color: var(--copper-hi); font-size: 12px; }

.topnav.auth { gap: 18px; align-items: center; }
.topnav.auth a { padding: 24px 2px; }
.topnav.auth .accent {
  color: #fff7ea !important;
  background: linear-gradient(135deg, #b8895a, #8a6238);
  padding: 9px 18px !important; border-radius: 7px;
}
.topnav.auth .accent::after { display: none; }
.topnav.auth .accent:hover { filter: brightness(1.12); }
.topnav.auth .acc { color: var(--copper-hi); font-weight: 700; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid #1d170f;
  padding: 34px 8vw;
  text-align: center;
  color: #564d3d; font-size: 12px;
}
.foot-mascot { width: 40px; opacity: .6; margin-bottom: 8px; }

@media (max-width: 720px) {
  .hero-mascot { display: none; }
  .topnav { display: none; }
}
