
:root{
  --bg:#07111f;
  --bg-soft:#0d1a2c;
  --panel:rgba(11,24,42,.78);
  --panel-strong:#0d1830;
  --line:rgba(154,189,255,.14);
  --text:#edf4ff;
  --muted:#9cb1cf;
  --primary:#79a8ff;
  --accent:#9c7bff;
  --success:#4dd5a7;
  --warning:#ffbf69;
  --danger:#ff6b81;
  --shadow:0 18px 45px rgba(0,0,0,.28);
  --radius:26px;
  --radius-sm:18px;
  --container:min(1180px, calc(100% - 32px));
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:
    radial-gradient(circle at top left, rgba(121,168,255,.18), transparent 28%),
    radial-gradient(circle at top right, rgba(156,123,255,.14), transparent 24%),
    linear-gradient(180deg,#050d19 0%, #07111f 40%, #09162a 100%);
  color:var(--text);
  min-height:100vh;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
code{
  background:rgba(255,255,255,.06);
  border:1px solid var(--line);
  padding:.15rem .4rem;
  border-radius:10px;
}
.container{width:var(--container);margin:0 auto}
.site-shell{min-height:100vh;display:flex;flex-direction:column}
main{flex:1}

.topbar{
  position:sticky;top:0;z-index:40;
  backdrop-filter:blur(16px);
  background:rgba(6,12,22,.74);
  border-bottom:1px solid rgba(255,255,255,.05);
}
.topbar-inner{
  display:flex;align-items:center;justify-content:space-between;
  min-height:78px;gap:18px;
}
.brand{
  display:flex;align-items:center;gap:14px;
}
.brand img{
  width:48px;height:48px;filter:drop-shadow(0 10px 20px rgba(121,168,255,.25));
}
.brand strong{display:block;font-size:1rem;letter-spacing:.02em}
.brand span{display:block;font-size:.86rem;color:var(--muted)}
.nav{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
}
.nav a{
  padding:.8rem 1rem;border-radius:999px;
  color:var(--muted);
  transition:.22s ease;
}
.nav a:hover,.nav a.active{
  color:var(--text);
  background:rgba(255,255,255,.06);
}

.nav-toggle{
  display:none;background:none;border:0;padding:0;cursor:pointer;
}
.nav-toggle span{
  display:block;width:26px;height:2px;background:#fff;margin:6px 0;border-radius:999px;
}

.hero{padding:58px 0 34px}
.hero-grid{
  display:grid;grid-template-columns:1.15fr .85fr;gap:28px;align-items:center;
}
.hero-copy h1{
  font-size:clamp(2.5rem,5vw,4.8rem);
  line-height:.98;
  margin:.35rem 0 1rem;
  letter-spacing:-.05em;
}
.hero-copy p{
  font-size:1.06rem;line-height:1.75;color:#cad6eb;
  max-width:690px;margin-bottom:1.4rem;
}
.eyebrow{
  display:inline-flex;align-items:center;gap:10px;
  color:#b8ccff;background:rgba(121,168,255,.11);
  border:1px solid rgba(121,168,255,.16);
  padding:.55rem .9rem;border-radius:999px;
  font-size:.84rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;
}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:1.4rem}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.55rem;
  min-height:48px;padding:0 18px;border-radius:16px;font-weight:700;
  border:1px solid transparent;transition:.22s ease;
}
.btn-primary{
  color:#07111f;
  background:linear-gradient(135deg,#ffffff 0%, #b9d3ff 35%, #8bb4ff 100%);
  box-shadow:0 16px 30px rgba(121,168,255,.24);
}
.btn-primary:hover{transform:translateY(-1px)}
.btn-ghost{
  color:var(--text);background:rgba(255,255,255,.04);border-color:var(--line)
}
.btn-ghost:hover{background:rgba(255,255,255,.08)}

.glass,.card,.table-card{
  background:linear-gradient(180deg, rgba(13,24,48,.88), rgba(9,18,34,.88));
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  border-radius:var(--radius);
}
.hero-panel{
  min-height:420px;padding:18px;
  position:relative;overflow:hidden;
}
.hero-panel::after{
  content:"";
  position:absolute;inset:auto -18% -12% auto;width:280px;height:280px;
  background:radial-gradient(circle, rgba(156,123,255,.28), transparent 66%);
}
.hero-panel img{width:100%;height:100%;object-fit:cover;border-radius:22px}

.status-pills{
  display:flex;gap:10px;flex-wrap:wrap;
}
.status-pill{
  min-width:145px;padding:.85rem 1rem;border-radius:18px;
  background:rgba(255,255,255,.05);border:1px solid var(--line);
}
.status-pill strong{display:block}
.status-pill small{color:var(--muted)}
.dot{
  display:inline-block;width:10px;height:10px;border-radius:999px;margin-right:8px;
  background:#7f8da6;box-shadow:0 0 0 4px rgba(255,255,255,.03)
}
.is-online .dot,.badge-online{background:var(--success)}
.is-offline .dot,.badge-offline{background:var(--danger)}

.section{padding:34px 0}
.section-alt{background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0))}
.section-head{
  display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:18px;
}
.section-head h2,.page-banner h1{
  margin:.35rem 0 0;font-size:clamp(1.8rem,3vw,2.6rem);letter-spacing:-.04em;
}
.page-banner{
  padding:52px 0 12px;
}
.page-banner p{max-width:760px;color:#cad6eb;line-height:1.75}

.stats-grid,.status-grid,.news-grid,.download-grid,.guild-grid{
  display:grid;gap:16px;
}
.stats-grid{grid-template-columns:repeat(4,1fr)}
.status-grid{grid-template-columns:repeat(3,1fr)}
.news-grid{grid-template-columns:repeat(3,1fr)}
.download-grid{grid-template-columns:repeat(3,1fr)}
.guild-grid{grid-template-columns:repeat(3,1fr)}
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}
.narrow{max-width:720px}

.card{
  padding:22px;
}
.card-head,.status-card-head,.download-meta{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
}
.stat-card span{display:block;color:var(--muted);margin-bottom:10px}
.stat-card strong{font-size:2rem;letter-spacing:-.05em}

.list-stack{display:grid;gap:12px}
.list-row{
  display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;
  padding:14px 0;border-bottom:1px solid rgba(255,255,255,.06)
}
.list-row:last-child{border-bottom:0}
.list-rank,.avatar-badge{
  width:42px;height:42px;border-radius:14px;
  display:grid;place-items:center;
  background:rgba(121,168,255,.12);border:1px solid rgba(121,168,255,.18);
  font-weight:800;color:#dce8ff;
}
.list-main strong{display:block}
.list-main span,.muted,.news-date,.guild-meta,.footer p,.footer li a{color:var(--muted)}
.list-meta{font-size:.92rem;color:#d4def0}

.alert{
  padding:16px 18px;border-radius:18px;margin-bottom:18px;
  border:1px solid var(--line);background:rgba(255,255,255,.04)
}
.alert-warning{background:rgba(255,191,105,.08);border-color:rgba(255,191,105,.2)}
.alert-success{background:rgba(77,213,167,.1);border-color:rgba(77,213,167,.22)}

.table-card{overflow:auto}
.inner-table{margin-top:8px}
.data-table{
  width:100%;border-collapse:collapse;min-width:580px;
}
.data-table th,.data-table td{
  text-align:left;padding:14px 16px;border-bottom:1px solid rgba(255,255,255,.06);
}
.data-table th{color:#a7bde0;font-size:.82rem;text-transform:uppercase;letter-spacing:.07em}
.empty-cell{text-align:center;color:var(--muted)}

.badge{
  display:inline-flex;padding:.45rem .7rem;border-radius:999px;font-weight:700;
  color:#07111f
}

.guild-card{position:relative;overflow:hidden}
.guild-card::after{
  content:"";
  position:absolute;right:-60px;top:-60px;width:160px;height:160px;
  background:radial-gradient(circle, rgba(121,168,255,.16), transparent 68%);
}
.guild-rank{
  display:inline-flex;padding:.45rem .7rem;border-radius:999px;
  font-weight:800;background:rgba(255,255,255,.06);border:1px solid var(--line)
}
.guild-meta{
  display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:18px;
}
.guild-meta span{
  display:block;padding:11px 12px;border-radius:16px;background:rgba(255,255,255,.04)
}

.download-card{display:flex;flex-direction:column;gap:12px}
.download-icon{
  width:54px;height:54px;border-radius:18px;display:grid;place-items:center;
  background:rgba(121,168,255,.12);border:1px solid rgba(121,168,255,.2);font-size:1.35rem
}
.download-meta{margin-top:auto}
.download-meta span{
  color:var(--muted);font-weight:700
}

.news-card h3{margin:.25rem 0 .55rem}

.form-card{padding:28px}
.form-grid{display:grid;gap:16px}
.form-grid label{display:grid;gap:8px}
.form-grid span{font-weight:700}
.form-grid input,.form-grid select{
  width:100%;min-height:50px;border-radius:16px;border:1px solid var(--line);
  background:rgba(255,255,255,.04);color:var(--text);padding:0 15px;outline:none
}
.form-grid input:focus,.form-grid select:focus{
  border-color:rgba(121,168,255,.5);box-shadow:0 0 0 4px rgba(121,168,255,.08)
}
.form-grid button[disabled]{opacity:.55;cursor:not-allowed}

.footer{
  margin-top:28px;padding:26px 0 34px;border-top:1px solid rgba(255,255,255,.05)
}
.footer-grid{
  display:grid;grid-template-columns:1.2fr .8fr .8fr;gap:18px;padding-bottom:18px
}
.footer h4,.footer h5{margin:0 0 12px}
.footer ul{list-style:none;padding:0;margin:0;display:grid;gap:8px}
.footer-bottom{
  display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;
  color:var(--muted);padding-top:18px;border-top:1px solid rgba(255,255,255,.05)
}

@media (max-width: 980px){
  .hero-grid,.grid-2,.stats-grid,.status-grid,.news-grid,.download-grid,.guild-grid,.footer-grid{
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width: 760px){
  .topbar-inner{min-height:70px}
  .nav-toggle{display:block}
  .nav{
    position:absolute;top:74px;left:16px;right:16px;display:none;
    flex-direction:column;align-items:stretch;padding:12px;
    background:rgba(5,10,19,.96);border:1px solid var(--line);border-radius:22px;
  }
  .nav.is-open{display:flex}
  .hero-grid,.grid-2,.stats-grid,.status-grid,.news-grid,.download-grid,.guild-grid,.footer-grid{
    grid-template-columns:1fr;
  }
  .list-row{grid-template-columns:auto 1fr}
  .list-meta{grid-column:2}
  .hero-panel{min-height:320px}
}
