:root {
  --bg:#EEECEA;--surface:#FFFFFF;--border:#E3E1D9;--border-md:#C8C5BC;
  --text:#16151A;--muted:#68666E;--hint:#A8A6AE;
  --accent:#4A6CF7;--accent-soft:#EEF1FE;
  --ok:#1B6B42;--ok-soft:#E5F5ED;
  --err:#B8321F;--err-soft:#FCECEA;
  --gold:#976B1A;--gold-soft:#FDF2DE;
  --staff:#D9480F;--staff-soft:#FFF0E6;
  --font:'Cabinet Grotesk',sans-serif;--mono:'Geist Mono',monospace;
  --r:9px;--rl:13px;--rxl:18px;
  --shadow-sm:0 1px 3px rgba(0,0,0,.06),0 1px 2px rgba(0,0,0,.04);
  --shadow-md:0 4px 16px rgba(0,0,0,.08),0 1px 4px rgba(0,0,0,.04);
  --shadow-lg:0 12px 40px rgba(0,0,0,.1),0 2px 8px rgba(0,0,0,.05);
  --safe-bottom:env(safe-area-inset-bottom,0px);
  --safe-top:env(safe-area-inset-top,0px);
}

html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; line-height: 1.55; min-height: 100vh; overflow-x: hidden; }

@keyframes fadeUp { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:none; } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes pulse  { 0%,100% { opacity:1; } 50% { opacity:.5; } }

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(238,236,234,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 16px; padding-top: var(--safe-top);
  display: flex; align-items: center; justify-content: space-between; height: 54px;
}
.logo-wrap { text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo-wrap img { width: 28px; height: 28px; border-radius: 7px; object-fit: cover; }
.logo-name { font-size: 18px; font-weight: 900; letter-spacing: -.06em; background: linear-gradient(135deg,#18171A 40%,#D9480F); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-right { display: flex; align-items: center; gap: 6px; }
.nav-sep { width: 1px; height: 20px; background: var(--border); margin: 0 4px; }

.nav-cta { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--r); font-size: 13px; font-weight: 600; color: #fff; background: #5865F2; text-decoration: none; transition: background .14s; white-space: nowrap; }
.nav-cta:hover { background: #4752C4; }

.nav-dropdown { position: relative; }
.nav-dropdown > button { display: flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: var(--r); font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--muted); background: none; border: none; cursor: pointer; transition: all .13s; white-space: nowrap; }
.nav-dropdown > button:hover, .nav-dropdown:hover > button { background: var(--surface); color: var(--text); }
.nav-dropdown > button svg { width: 10px; height: 10px; transition: transform .2s; flex-shrink: 0; }
.nav-dropdown:hover > button svg { transform: rotate(180deg); }
.nav-dropdown-menu { position: absolute; top: calc(100% + 8px); right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--rl); padding: 6px; min-width: 190px; box-shadow: 0 8px 24px rgba(0,0,0,.08); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: all .18s cubic-bezier(.4,0,.2,1); z-index: 200; }
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-menu a { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: var(--r); font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; transition: all .12s; }
.nav-dropdown-menu a:hover { background: var(--bg); color: var(--text); }
.nav-dropdown-menu a svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--hint); }
.menu-divider { height: 1px; background: var(--border); margin: 4px 0; }
.mobile-btn { display: none; width: 36px; height: 36px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); align-items: center; justify-content: center; cursor: pointer; color: var(--muted); transition: all .13s; }
.mobile-btn:hover { color: var(--text); border-color: var(--border-md); }

.drawer { position: fixed; inset: 0; z-index: 200; display: flex; pointer-events: none; }
.drawer-overlay { flex: 1; background: rgba(0,0,0,0); transition: background .25s; cursor: pointer; }
.drawer-panel { width: 300px; background: var(--surface); border-left: 1px solid var(--border); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .28s cubic-bezier(.4,0,.2,1); overflow-y: auto; }
.drawer.open { pointer-events: auto; }
.drawer.open .drawer-overlay { background: rgba(0,0,0,.3); }
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.drawer-close { width: 32px; height: 32px; border-radius: var(--r); background: var(--bg); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.drawer-body { padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.drawer-section-label { font-family: var(--mono); font-size: 10px; font-weight: 600; color: var(--hint); letter-spacing: .12em; text-transform: uppercase; padding: 8px 12px 4px; }
.drawer-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r); text-decoration: none; color: var(--muted); font-size: 13px; font-weight: 600; transition: all .13s; }
.drawer-link:hover { background: var(--bg); color: var(--text); }
.drawer-icon { width: 28px; height: 28px; border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.drawer-divider { height: 1px; background: var(--border); margin: 8px 12px; }
.drawer-bottom { padding: 14px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }

.page { max-width: 1060px; margin: 0 auto; padding: 80px 16px 100px; }
@media(min-width: 700px) { .page { padding: 80px 40px 100px; } }

.page-eyebrow { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--hint); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }

.hero { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; padding: 56px 0 72px; animation: fadeUp .5s ease both; }
@media(min-width: 820px) { .hero { grid-template-columns: 1fr 1fr; padding: 72px 0 96px; } }

.hero-eyebrow { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--hint); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--staff); display: inline-block; animation: pulse 2s ease-in-out infinite; }

.hero-title { font-size: 52px; font-weight: 900; letter-spacing: -.06em; line-height: 1.0; margin-bottom: 18px; color: var(--text); }
@media(min-width: 500px) { .hero-title { font-size: 64px; } }
@media(min-width: 820px) { .hero-title { font-size: 72px; } }
.hero-title em { font-style: normal; color: var(--staff); }

.hero-sub { font-size: 15px; color: var(--muted); max-width: 480px; line-height: 1.65; margin-bottom: 32px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.btn-hero-primary { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: var(--rl); background: #5865F2; color: #fff; font-family: var(--font); font-size: 14px; font-weight: 700; text-decoration: none; transition: background .15s, transform .12s; }
.btn-hero-primary:hover { background: #4752C4; transform: translateY(-1px); }
.btn-hero-primary:active { transform: scale(.98); }

.btn-hero-secondary { display: inline-flex; align-items: center; gap: 7px; padding: 12px 20px; border-radius: var(--rl); background: var(--surface); color: var(--text); border: 1.5px solid var(--border-md); font-family: var(--font); font-size: 14px; font-weight: 600; text-decoration: none; transition: all .15s; }
.btn-hero-secondary:hover { border-color: var(--text); transform: translateY(-1px); }

.hero-visual { display: flex; justify-content: center; animation: fadeUp .5s .15s ease both; }
.server-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--rxl); overflow: hidden; box-shadow: var(--shadow-lg); width: 100%; max-width: 320px; }
.server-card-banner { height: 90px; background: url('/assets/banner.gif') left center / 135% no-repeat; position: relative; overflow: hidden; }
.server-card-banner::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg,transparent,transparent 2px,rgba(0,0,0,.05) 2px,rgba(0,0,0,.05) 4px); }
.server-card-body { padding: 44px 18px 18px; position: relative; }
.server-card-av { position: absolute; top: -28px; left: 18px; width: 56px; height: 56px; border-radius: 14px; border: 3.5px solid var(--surface); background: #5865F2; overflow: hidden; }
.server-card-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 11px; }
.server-card-name { font-size: 17px; font-weight: 900; letter-spacing: -.04em; color: var(--text); margin-bottom: 2px; }
.server-card-tag { font-family: var(--mono); font-size: 11px; color: var(--hint); margin-bottom: 14px; }
.server-card-stats { display: flex; gap: 16px; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 4px; }
.sc-stat { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.sc-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.sc-dot.online { background: #23a559; }
.sc-dot.total  { background: var(--hint); }

.stats-band { display: flex; align-items: center; justify-content: center; gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--rxl); padding: 24px 20px; margin-bottom: 80px; box-shadow: var(--shadow-sm); animation: fadeUp .5s .2s ease both; flex-wrap: wrap; }
.stat-item { flex: 1; min-width: 120px; text-align: center; padding: 8px 16px; }
.stat-num { display: block; font-size: 28px; font-weight: 900; letter-spacing: -.05em; color: var(--text); line-height: 1.1; }
.stat-lbl { font-family: var(--mono); font-size: 11px; color: var(--hint); text-transform: uppercase; letter-spacing: .1em; margin-top: 2px; display: block; }
.stat-sep { width: 1px; height: 40px; background: var(--border); flex-shrink: 0; }
@media(max-width: 500px) { .stat-sep { display: none; } .stat-item { min-width: 100px; } }

.section { margin-bottom: 80px; animation: fadeUp .5s .25s ease both; }
.section-header { margin-bottom: 36px; }
.section-title { font-size: 28px; font-weight: 900; letter-spacing: -.05em; line-height: 1.15; margin-bottom: 10px; }
@media(min-width: 500px) { .section-title { font-size: 34px; } }
.section-title em { font-style: normal; background: linear-gradient(135deg,#18171A 40%,#D9480F); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-sub { font-size: 14px; color: var(--muted); max-width: 520px; line-height: 1.65; }

.features-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media(min-width: 600px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media(min-width: 860px) { .features-grid { grid-template-columns: 1fr 1fr 1fr; } }

.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--rxl); padding: 22px; transition: box-shadow .2s, transform .2s; }
@media(hover:hover) { .feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); } }

.feat-large { grid-column: 1 / -1; }
@media(min-width: 600px) { .feat-large { grid-column: span 1; } }

.feature-icon { width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; flex-shrink: 0; }
.feature-label { font-family: var(--mono); font-size: 10px; font-weight: 600; color: var(--hint); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 5px; }
.feature-title { font-size: 16px; font-weight: 800; color: var(--text); margin-bottom: 8px; letter-spacing: -.03em; }
.feature-desc { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 14px; }
.feature-link { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--staff); text-decoration: none; transition: gap .14s; }
.feature-link:hover { gap: 8px; }

.channels-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media(min-width: 700px) { .channels-grid { grid-template-columns: repeat(4, 1fr); } }

.channel-group { background: var(--surface); border: 1px solid var(--border); border-radius: var(--rl); overflow: hidden; }
.cg-header { display: flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--hint); padding: 12px 14px 10px; border-bottom: 1px solid var(--border); background: var(--bg); }
.channel-list { padding: 6px 0; }
.channel-item { display: flex; align-items: center; gap: 5px; padding: 5px 14px; font-size: 12.5px; color: var(--muted); font-weight: 500; transition: color .12s, background .12s; cursor: default; }
.channel-item:hover { color: var(--text); background: var(--bg); }
.ch-hash { color: var(--hint); font-weight: 700; font-size: 13px; flex-shrink: 0; }

.roles-list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--rxl); overflow: hidden; }
.role-row { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--border); transition: background .13s; }
.role-row:last-child { border-bottom: none; }
.role-row:hover { background: var(--bg); }
.role-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.role-info { display: flex; align-items: center; gap: 8px; min-width: 200px; }
.role-name { font-size: 13.5px; font-weight: 700; color: var(--text); }
.role-badge { font-family: var(--mono); font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 20px; white-space: nowrap; letter-spacing: .04em; }
.role-desc { font-size: 12.5px; color: var(--muted); flex: 1; }
@media(max-width: 600px) {
  .role-info { min-width: unset; }
  .role-desc { display: none; }
}

.cta-section { position: relative; overflow: hidden; }
.cta-inner { background: var(--text); border-radius: var(--rxl); padding: 60px 40px; text-align: center; position: relative; overflow: hidden; }
.cta-glow { position: absolute; top: -60px; left: 50%; transform: translateX(-50%); width: 400px; height: 300px; background: radial-gradient(ellipse at center, rgba(217,72,15,.35) 0%, transparent 70%); pointer-events: none; }
.cta-title { font-size: 32px; font-weight: 900; letter-spacing: -.06em; color: #fff; margin-bottom: 14px; position: relative; }
@media(min-width: 500px) { .cta-title { font-size: 40px; } }
.cta-title em { font-style: normal; color: #FF7A4D; }
.cta-sub { font-size: 14px; color: rgba(255,255,255,.6); max-width: 480px; margin: 0 auto 32px; line-height: 1.7; position: relative; }

.btn-cta { display: inline-flex; align-items: center; gap: 10px; padding: 15px 28px; border-radius: var(--rl); background: #5865F2; color: #fff; font-family: var(--font); font-size: 15px; font-weight: 700; text-decoration: none; transition: background .15s, transform .12s; position: relative; }
.btn-cta:hover { background: #4752C4; transform: translateY(-2px); }
.btn-cta:active { transform: scale(.98); }

@media(max-width: 700px) {
  nav { padding: 0 20px; }
  .nav-dropdown, .nav-sep, .nav-cta { display: none; }
  .mobile-btn { display: flex; }
}