@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Outfit:wght@500;600;700;800;900&display=swap');

:root {
  --bg: #050b0a;
  --bg-2: #081411;
  --surface: rgba(12, 31, 25, .82);
  --surface-solid: #0d1c18;
  --surface-2: #112720;
  --line: rgba(166, 255, 211, .12);
  --line-strong: rgba(166, 255, 211, .23);
  --text: #eefbf5;
  --muted: #97b8aa;
  --green: #3ee19a;
  --green-2: #7fffc0;
  --cyan: #54e7df;
  --gold: #ffd67b;
  --danger: #ff6b7c;
  --discord: #5865f2;
  --shadow: 0 24px 70px rgba(0, 0, 0, .38);
  --radius: 28px;
  --radius-sm: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 0%, rgba(34, 192, 127, .17), transparent 28%),
    radial-gradient(circle at 85% 14%, rgba(49, 213, 207, .09), transparent 24%),
    linear-gradient(180deg, #05100d 0%, var(--bg) 52%, #030706 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: .25;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { max-width: 100%; display: block; }

.container { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: .25s ease;
}
.site-header.scrolled {
  background: rgba(5, 12, 10, .84);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}
.navbar {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 170px;
}
.brand img { width: 78px; height: 48px; object-fit: contain; }
.brand-name { font: 900 20px/1 Outfit, sans-serif; letter-spacing: -.03em; }
.brand-name span { color: var(--green); }

.nav-links { display: flex; align-items: center; justify-content: center; gap: 8px; }
.nav-links a {
  padding: 11px 13px;
  border-radius: 12px;
  color: #b8cfc5;
  font-weight: 700;
  font-size: 14px;
  transition: .2s ease;
}
.nav-links a:hover, .nav-links a.active { color: white; background: rgba(255,255,255,.055); }
.nav-links a.active { box-shadow: inset 0 0 0 1px var(--line); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-ip {
  border: 1px solid var(--line-strong);
  background: rgba(62, 225, 154, .08);
  color: var(--green-2);
  padding: 11px 14px;
  border-radius: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: .2s ease;
}
.nav-ip:hover { transform: translateY(-1px); background: rgba(62, 225, 154, .14); }
.staff-link {
  padding: 11px 15px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--green), #20b977);
  color: #04110c;
  font-weight: 900;
  box-shadow: 0 12px 32px rgba(47, 215, 141, .18);
}
.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  border-radius: 12px;
  cursor: pointer;
}
.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
  content: "";
  transition: .2s ease;
}
.menu-btn span::before { position: absolute; top: -6px; }
.menu-btn span::after { position: absolute; top: 6px; }

.hero {
  position: relative;
  padding: 72px 0 88px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.03fr .97fr;
  align-items: center;
  gap: 64px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--green-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 99px; }
h1, h2, h3 { font-family: Outfit, Inter, sans-serif; margin: 0; }
.hero h1 {
  max-width: 760px;
  font-size: clamp(54px, 7.8vw, 102px);
  line-height: .91;
  letter-spacing: -.065em;
  font-weight: 900;
}
.gradient-text {
  color: transparent;
  background: linear-gradient(120deg, var(--green-2), var(--cyan));
  background-clip: text;
  -webkit-background-clip: text;
}
.hero-copy p {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.65;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border-radius: 15px;
  border: 1px solid transparent;
  font-weight: 900;
  cursor: pointer;
  transition: .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--green-2), var(--green));
  color: #03100a;
  box-shadow: 0 14px 40px rgba(62, 225, 154, .18);
}
.btn-secondary { background: rgba(255,255,255,.05); border-color: var(--line); color: white; }
.btn-discord { background: linear-gradient(135deg, #6672ff, var(--discord)); color: white; box-shadow: 0 14px 40px rgba(88,101,242,.2); }

.hero-visual { position: relative; min-height: 510px; display: grid; place-items: center; }
.logo-orbit {
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 1 / .88;
  display: grid;
  place-items: center;
}
.logo-orbit::before {
  content: "";
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(112, 255, 184, .16);
  box-shadow:
    0 0 0 38px rgba(69, 226, 152, .025),
    0 0 0 76px rgba(69, 226, 152, .018),
    0 45px 100px rgba(0,0,0,.4);
}
.logo-orbit::after {
  content: "";
  position: absolute;
  inset: 12% 8%;
  background: radial-gradient(circle, rgba(55, 232, 155, .2), transparent 65%);
  filter: blur(20px);
}
.hero-logo { position: relative; z-index: 2; width: 100%; filter: drop-shadow(0 35px 45px rgba(0,0,0,.42)); }
.floating-badge {
  position: absolute;
  z-index: 4;
  padding: 13px 16px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: rgba(7, 21, 17, .86);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  font-weight: 800;
  font-size: 13px;
}
.floating-badge strong { display: block; color: white; font-size: 16px; margin-bottom: 2px; }
.badge-online { left: 4%; bottom: 15%; }
.badge-version { right: 0; top: 18%; }
.status-dot { width: 9px; height: 9px; display: inline-block; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(62,225,154,.12); margin-right: 7px; }
.status-dot.offline { background: var(--danger); box-shadow: 0 0 0 5px rgba(255,107,124,.12); }
.status-dot.unknown { background: var(--gold); box-shadow: 0 0 0 5px rgba(255,214,123,.12); }

.quickbar { margin-top: -18px; position: relative; z-index: 3; }
.quickbar-inner {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, .65fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--line);
  box-shadow: var(--shadow);
}
.quickitem {
  min-height: 110px;
  background: rgba(10, 26, 21, .95);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.quickitem small { color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 10px; }
.quickitem strong { margin-top: 7px; font: 800 20px/1.2 Outfit, sans-serif; }
.quickitem .big { color: var(--green-2); }

.section { padding: 104px 0; }
.section-tight { padding: 72px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(38px, 5vw, 62px); line-height: .96; letter-spacing: -.05em; }
.section-head p { max-width: 540px; margin: 0; color: var(--muted); line-height: 1.7; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(19, 45, 36, .92), rgba(8, 19, 16, .95));
  box-shadow: 0 18px 50px rgba(0,0,0,.16);
  transition: .25s ease;
}
.card:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  right: -70px;
  bottom: -90px;
  background: radial-gradient(circle, rgba(63, 224, 155, .2), transparent 66%);
}
.card-kicker { color: var(--green-2); font-weight: 900; font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }
.card h3 { margin-top: 14px; font-size: 27px; letter-spacing: -.035em; }
.card p { color: var(--muted); line-height: 1.65; margin: 12px 0 0; }
.card-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 24px; color: white; font-weight: 800; font-size: 14px; }
.card-link span { color: var(--green); }

.cta-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 6vw, 64px);
  border-radius: 34px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at 85% 15%, rgba(85, 231, 223, .16), transparent 30%),
    radial-gradient(circle at 15% 100%, rgba(62, 225, 154, .16), transparent 35%),
    #0a1915;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}
.cta-panel h2 { font-size: clamp(34px, 5vw, 62px); letter-spacing: -.055em; max-width: 700px; }
.cta-panel p { color: var(--muted); max-width: 620px; line-height: 1.7; margin: 16px 0 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; min-width: max-content; }

.page-hero { padding: 72px 0 56px; }
.page-hero-grid { display: grid; grid-template-columns: 1fr .72fr; gap: 52px; align-items: end; }
.page-hero h1 { font-size: clamp(54px, 8vw, 96px); letter-spacing: -.065em; line-height: .91; }
.page-hero p { color: var(--muted); font-size: 18px; line-height: 1.7; margin: 24px 0 0; max-width: 720px; }
.page-side-note {
  border-left: 1px solid var(--line-strong);
  padding-left: 26px;
  color: var(--muted);
  line-height: 1.7;
}
.page-side-note strong { display: block; color: white; margin-bottom: 8px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step {
  counter-increment: step;
  padding: 28px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(10, 27, 22, .72);
}
.step::before {
  content: "0" counter(step);
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: rgba(62,225,154,.1);
  color: var(--green-2);
  font-weight: 900;
}
.step h3 { font-size: 23px; margin: 18px 0 9px; }
.step p { margin: 0; color: var(--muted); line-height: 1.65; }

.mode-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.mode-card {
  min-height: 360px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 84% 20%, rgba(62,225,154,.15), transparent 28%),
    linear-gradient(160deg, rgba(18,43,35,.95), rgba(7,18,15,.95));
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.mode-card:nth-child(2n) { background: radial-gradient(circle at 84% 20%, rgba(84,231,223,.14), transparent 28%), linear-gradient(160deg, rgba(18,43,35,.95), rgba(7,18,15,.95)); }
.mode-number { position: absolute; right: 26px; top: 16px; font: 900 92px/1 Outfit, sans-serif; color: rgba(255,255,255,.035); letter-spacing: -.08em; }
.mode-card h3 { font-size: 38px; margin-top: 18px; letter-spacing: -.045em; }
.mode-card p { color: var(--muted); line-height: 1.7; max-width: 520px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tag { padding: 8px 11px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.035); color: #c6ddd4; font-size: 12px; font-weight: 800; }

.rules-layout { display: grid; grid-template-columns: 280px 1fr; gap: 26px; align-items: start; }
.rules-nav { position: sticky; top: 112px; padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: rgba(9,24,19,.75); }
.rules-nav a { display: block; padding: 11px 12px; border-radius: 10px; color: var(--muted); font-weight: 700; font-size: 14px; }
.rules-nav a:hover { color: white; background: rgba(255,255,255,.04); }
.rules-content { display: grid; gap: 18px; }
.rule-block { padding: 30px; border: 1px solid var(--line); border-radius: 26px; background: rgba(10,27,22,.68); }
.rule-block h2 { font-size: 30px; letter-spacing: -.035em; }
.rule-block p { color: var(--muted); line-height: 1.72; }
.rule-list { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.rule-list li { position: relative; padding-left: 26px; color: #c3d8d0; line-height: 1.6; }
.rule-list li::before { content: ""; position: absolute; left: 0; top: .65em; width: 8px; height: 8px; border-radius: 2px; background: var(--green); transform: rotate(45deg); }

.community-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; }
.community-card { min-height: 340px; padding: 34px; border: 1px solid var(--line); border-radius: 28px; background: rgba(10,27,22,.74); }
.community-card h2 { font-size: 39px; letter-spacing: -.045em; }
.community-card p { color: var(--muted); line-height: 1.7; }
.community-card.discord { background: radial-gradient(circle at 80% 20%, rgba(88,101,242,.24), transparent 35%), rgba(17,23,48,.7); }
.social-list { display: grid; gap: 12px; margin-top: 22px; }
.social-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); }
.social-row span { color: var(--muted); font-size: 13px; }

.staff-shell { padding: 64px 0 104px; }
.staff-login {
  width: min(100%, 720px);
  margin: 0 auto;
  text-align: center;
  padding: clamp(30px, 6vw, 56px);
  border: 1px solid var(--line-strong);
  border-radius: 34px;
  background: linear-gradient(160deg, rgba(13, 35, 28, .96), rgba(6, 17, 14, .96));
  box-shadow: var(--shadow);
}
.staff-login .staff-logo { width: 210px; margin: -14px auto 4px; }
.staff-login h1 { font-size: clamp(46px, 7vw, 72px); letter-spacing: -.055em; }
.staff-login p { color: var(--muted); line-height: 1.7; margin: 14px auto 26px; max-width: 560px; }
.role-line { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); color: #75988a; line-height: 1.8; font-size: 13px; }
.error-box { margin: 18px 0 0; padding: 14px 16px; border: 1px solid rgba(255,107,124,.4); background: rgba(132,25,40,.32); color: #ffc0c8; border-radius: 14px; line-height: 1.5; }
.config-list { margin-top: 10px; font-size: 12px; color: #ffb9c3; }
.hidden { display: none !important; }

.staff-dashboard { display: grid; gap: 20px; }
.dashboard-top { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; }
.profile-card, .dashboard-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(10, 27, 22, .76);
  padding: 28px;
}
.profile-row { display: flex; align-items: center; gap: 18px; }
.profile-row img { width: 82px; height: 82px; object-fit: cover; border-radius: 22px; border: 1px solid var(--line-strong); }
.profile-row h1 { font-size: 34px; letter-spacing: -.04em; }
.profile-row p { margin: 5px 0 0; color: var(--muted); }
.role-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.role-pill { padding: 8px 11px; border-radius: 999px; background: rgba(62,225,154,.09); border: 1px solid rgba(62,225,154,.2); color: var(--green-2); font-weight: 800; font-size: 12px; }
.dash-label { color: var(--muted); text-transform: uppercase; letter-spacing: .11em; font-weight: 900; font-size: 10px; }
.dash-value { font: 800 28px/1.2 Outfit, sans-serif; margin-top: 8px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dashboard-card h3 { font-size: 23px; margin: 10px 0 8px; }
.dashboard-card p { color: var(--muted); line-height: 1.65; margin: 0; }
.logout-btn { border: 1px solid rgba(255,107,124,.28); background: rgba(255,107,124,.07); color: #ff9aa7; padding: 11px 14px; border-radius: 13px; font-weight: 800; cursor: pointer; }

.site-footer { border-top: 1px solid var(--line); margin-top: 60px; background: rgba(2,8,6,.5); }
.footer-grid { padding: 44px 0; display: grid; grid-template-columns: 1.25fr .75fr .75fr; gap: 34px; }
.footer-brand img { width: 120px; }
.footer-brand p { color: var(--muted); max-width: 440px; line-height: 1.7; font-size: 14px; }
.footer-col h4 { margin: 0 0 14px; font: 800 14px/1 Outfit, sans-serif; }
.footer-col a { display: block; color: var(--muted); margin: 9px 0; font-size: 14px; }
.footer-col a:hover { color: white; }
.footer-bottom { border-top: 1px solid var(--line); padding: 20px 0 30px; display: flex; justify-content: space-between; gap: 20px; color: #638275; font-size: 12px; }

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99;
  padding: 13px 16px;
  border-radius: 13px;
  color: #062116;
  background: var(--green-2);
  font-weight: 900;
  font-size: 13px;
  box-shadow: var(--shadow);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: .22s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }

.not-found { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 70px 20px; }
.not-found .code { font: 900 clamp(90px, 20vw, 210px)/.8 Outfit, sans-serif; color: rgba(255,255,255,.05); letter-spacing: -.08em; }
.not-found h1 { margin-top: -20px; font-size: 48px; }
.not-found p { color: var(--muted); max-width: 560px; line-height: 1.7; }

@media (max-width: 980px) {
  .nav-links {
    position: fixed;
    top: 88px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(5, 15, 12, .97);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 14px; }
  .menu-btn { display: inline-flex; }
  .nav-ip { display: none; }
  .hero-grid, .page-hero-grid, .community-grid, .dashboard-top { grid-template-columns: 1fr; }
  .hero { padding-top: 44px; }
  .hero-copy { text-align: center; }
  .hero-copy .eyebrow { justify-content: center; }
  .hero-copy p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { min-height: 420px; }
  .quickbar-inner { grid-template-columns: repeat(2, 1fr); }
  .card-grid, .steps, .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .rules-layout { grid-template-columns: 1fr; }
  .rules-nav { position: static; display: flex; overflow-x: auto; gap: 4px; }
  .rules-nav a { flex: 0 0 auto; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 26px), var(--max)); }
  .navbar { height: 76px; }
  .brand { min-width: auto; }
  .brand img { width: 62px; height: 42px; }
  .brand-name { display: none; }
  .staff-link { padding: 10px 12px; font-size: 13px; }
  .nav-links { top: 76px; left: 13px; right: 13px; }
  .hero { padding: 32px 0 68px; }
  .hero h1 { font-size: clamp(48px, 17vw, 72px); }
  .hero-visual { min-height: 330px; }
  .floating-badge { font-size: 11px; padding: 10px 12px; }
  .floating-badge strong { font-size: 13px; }
  .badge-online { left: 0; }
  .quickbar-inner { grid-template-columns: 1fr; }
  .section { padding: 76px 0; }
  .section-head { align-items: start; flex-direction: column; }
  .card-grid, .steps, .mode-grid, .dashboard-grid { grid-template-columns: 1fr; }
  .mode-card { min-height: 320px; padding: 28px; }
  .cta-panel { align-items: flex-start; flex-direction: column; }
  .cta-actions { min-width: 0; width: 100%; }
  .cta-actions .btn { flex: 1 1 160px; }
  .page-hero { padding-top: 42px; }
  .page-hero h1 { font-size: clamp(48px, 16vw, 72px); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .profile-row { align-items: flex-start; }
}
