/* ── ПЕРЕМЕННЫЕ ── */
:root {
  --bg:          #060b18;
  --bg2:         #0a1020;
  --bg3:         #0d1526;
  --card:        rgba(13, 21, 38, 0.96);
  --border:      rgba(30, 58, 110, 0.5);
  --blue-deep:   #1e3a6e;
  --blue-mid:    #2563a8;
  --blue:        #3b82f6;
  --blue-light:  #60a5fa;
  --blue-pale:   #93c5fd;
  --blue-ghost:  #bfdbfe;
  --text:        #e2e8f0;
  --muted:       #94a3b8;
  --dim:         #64748b;
  --darker:      #475569;
  --darkest:     #334155;
  --green:       #22c55e;
  --discord:     #5865f2;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--blue-deep); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue-mid); }

/* ══════════════════════════════════════
   КНОПКИ
══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-decoration: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.24s ease;
  white-space: nowrap;
}

.btn-primary {
  padding: 14px 32px;
  color: #fff;
  background: linear-gradient(135deg, #1d4ed8, #2563eb, #3b82f6);
  border: 1px solid rgba(96, 165, 250, 0.4);
}
.btn-primary:hover {
  border-color: rgba(147, 197, 253, 0.75);
  box-shadow: 0 0 24px rgba(59,130,246,0.55), 0 0 50px rgba(59,130,246,0.18);
  transform: translateY(-2px);
}

.btn-secondary {
  padding: 14px 28px;
  color: var(--blue-pale);
  background: transparent;
  border: 1px solid rgba(59, 130, 246, 0.35);
}
.btn-secondary:hover {
  color: var(--blue-ghost);
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(96, 165, 250, 0.65);
}

.btn-discord {
  padding: 13px 28px;
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  border: 1px solid rgba(129, 140, 248, 0.45);
}
.btn-discord:hover {
  box-shadow: 0 0 22px rgba(99,102,241,0.5);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse 90% 70% at 40% 0%, rgba(29,78,216,0.16) 0%, transparent 65%), var(--bg);
  padding: 100px 5vw 80px;
}

#stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30,58,110,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,58,110,0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: -10%;
  left: 30%;
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(29,78,216,0.14) 0%, transparent 70%);
  pointer-events: none;
}
.hero-glow--right {
  left: auto;
  right: 5%;
  top: 20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(37,99,168,0.08) 0%, transparent 70%);
}

.hero-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: fadeInUp 0.8s ease forwards;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(37,99,168,0.12);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 20px;
  padding: 6px 18px;
  font-family: 'Cinzel', serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--blue-light);
  width: fit-content;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

.hero-title {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: clamp(52px, 9vw, 96px);
  line-height: 0.95;
  letter-spacing: 0.06em;
  background: linear-gradient(160deg, #ffffff 0%, #93c5fd 40%, #60a5fa 70%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.78;
  max-width: 480px;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Статистика */
.hero-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap; 
  gap: 16px;      
  padding: 18px 24px;
  background: rgba(10, 16, 32, 0.7);
  border: 1px solid rgba(30, 58, 110, 0.45);
  border-radius: 12px;
  backdrop-filter: blur(16px);
  width: fit-content;
  max-width: 100%; 
  margin-top: 4px;
}

.stat { 
  text-align: center; 
  padding: 0 10px;
}
.stat:first-child { padding-left: 0; }
.stat:last-child  { padding-right: 0; }

.stat-val {
  display: block;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 26px;
  color: var(--blue-light);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--darker);
}

.stat-sep {
  width: 1px;
  height: 36px;
  background: rgba(30,58,110,0.6);
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .hero-stats {
    justify-content: center;
    gap: 12px;
    padding: 14px 16px;
  }

  .stat {
    padding: 4px 8px;
  }
  
  .stat-sep {
    display: none;
  }
}
/* Декоративные кубы */
.hero-cube-wrap {
  position: absolute;
  right: 6vw;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
}

.big-cube {
  position: relative;
  width: 140px;
  height: 140px;
  margin-bottom: -20px;
  opacity: 0.5;
}

.big-cube--sm {
  width: 80px; height: 80px;
  position: absolute;
  bottom: -60px; right: -30px;
  opacity: 0.3;
}

.big-cube--xs {
  width: 50px; height: 50px;
  position: absolute;
  top: -50px; left: -40px;
  opacity: 0.25;
}

.bc-top {
  position: absolute;
  width: 65%; height: 32%;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
  top: 0; left: 17%;
  transform: skewX(-30deg);
  border-top: 1px solid rgba(96,165,250,0.5);
}
.bc-left {
  position: absolute;
  width: 37%; height: 68%;
  background: linear-gradient(180deg, #0d1526, #060b18);
  left: 0; top: 28%;
  border-left: 1px solid rgba(30,58,110,0.7);
  border-bottom: 1px solid rgba(30,58,110,0.7);
}
.bc-right {
  position: absolute;
  width: 63%; height: 68%;
  background: linear-gradient(180deg, #162545, #0d1526);
  right: 0; top: 28%;
  border-right: 1px solid rgba(30,58,110,0.7);
  border-bottom: 1px solid rgba(30,58,110,0.7);
}

/* ══════════════════════════════════════
   ОБЩИЕ СТИЛИ СЕКЦИЙ
══════════════════════════════════════ */
.section {
  padding: 90px 5vw;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.section.in-view {
  opacity: 1;
  transform: translateY(0);
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 52px;
}

.section-label {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--blue-mid);
  margin-bottom: 10px;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(24px, 4vw, 36px);
  letter-spacing: 0.12em;
  color: var(--blue-ghost);
  margin-bottom: 10px;
}

.section-sub {
  color: var(--dim);
  font-size: 13px;
  line-height: 1.7;
}

/* ══════════════════════════════════════
   ОСОБЕННОСТИ
══════════════════════════════════════ */
.features-section {
  background: linear-gradient(180deg, transparent 0%, rgba(10,16,32,0.4) 50%, transparent 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 14px;
}

/* Первые 2 карточки — большие, на 2 строки */
.feat-card--large {
  grid-row: span 2;
}

.feat-card {
  background: linear-gradient(145deg, rgba(13,21,38,0.96), rgba(10,16,32,0.96));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.28s, border-color 0.28s, box-shadow 0.28s;
  cursor: default;
}

.feat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(59,130,246,0.4);
  box-shadow: 0 16px 50px rgba(0,0,0,0.35);
}

.feat-icon { font-size: 30px; }

.feat-title {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--blue-pale);
}

.feat-desc {
  color: var(--dim);
  font-size: 13px;
  line-height: 1.7;
  flex: 1;
}

.feat-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.ftag {
  font-size: 10px;
  color: var(--blue-mid);
  background: rgba(30,58,110,0.2);
  border: 1px solid rgba(30,58,110,0.4);
  border-radius: 4px;
  padding: 3px 9px;
  letter-spacing: 0.06em;
}

/* ══════════════════════════════════════
   СЕРВЕР
══════════════════════════════════════ */
.server-section {
  padding-top: 0;
}

.server-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: linear-gradient(145deg, rgba(13,21,38,0.97), rgba(10,16,32,0.97));
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.server-left {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-right: 1px solid rgba(30,58,110,0.4);
}

.server-title {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0.1em;
  color: var(--blue-ghost);
}

.server-desc {
  color: var(--dim);
  font-size: 14px;
  line-height: 1.7;
}

/* Адрес с копированием */
.server-addr-wrap {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid rgba(30,58,110,0.6);
  border-radius: 8px;
  overflow: hidden;
}

.server-addr-box {
  flex: 1;
  padding: 12px 16px;
  background: rgba(6,11,24,0.8);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.server-addr-label {
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--darkest);
  font-family: 'Cinzel', serif;
  font-weight: 600;
}

.server-addr-val {
  font-family: monospace;
  font-size: 15px;
  color: var(--blue-light);
  letter-spacing: 0.04em;
}

.copy-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  background: rgba(30,58,110,0.3);
  border: none;
  border-left: 1px solid rgba(30,58,110,0.6);
  color: var(--dim);
  font-family: 'Cinzel', serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.copy-btn:hover {
  background: rgba(59,130,246,0.12);
  color: var(--blue-pale);
}

.server-online {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--dim);
  font-size: 13px;
}

.server-online strong { color: var(--green); }

.online-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 7px var(--green);
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

/* Правая часть — статы */
.server-right {
  padding: 44px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.server-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
}

.s-stat {
  background: rgba(6,11,24,0.7);
  border: 1px solid rgba(30,58,110,0.4);
  border-radius: 10px;
  padding: 18px;
  text-align: center;
  transition: border-color 0.2s;
}

.s-stat:hover { border-color: rgba(37,99,168,0.6); }

.s-stat-val {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 28px;
  color: var(--blue-light);
  line-height: 1;
  margin-bottom: 5px;
}

.s-stat-label {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--darkest);
}

/* ══════════════════════════════════════
   DISCORD
══════════════════════════════════════ */
.discord-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 36px 44px;
  background: linear-gradient(135deg, rgba(79,70,229,0.08) 0%, rgba(13,21,38,0.97) 60%);
  border: 1px solid rgba(88,101,242,0.28);
  border-radius: 16px;
}

.discord-left {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1;
}

.discord-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: rgba(88,101,242,0.16);
  border: 1px solid rgba(88,101,242,0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #818cf8;
  flex-shrink: 0;
}

.discord-title {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: #c7d2fe;
  margin-bottom: 4px;
}

.discord-desc {
  color: var(--dim);
  font-size: 13px;
  margin-bottom: 8px;
}

.discord-members {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: var(--darker);
}

.dmember-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--darker);
  margin-right: 5px;
}

.dmember-dot--online {
  background: var(--green);
  box-shadow: 0 0 5px var(--green);
  animation: pulse 2s ease-in-out infinite;
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */

/* ══════════════════════════════════════
   АНИМАЦИИ
══════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(-50%) translateY(0px); }
  50%       { transform: translateY(-50%) translateY(-16px); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}

/* ══════════════════════════════════════
   АДАПТИВ
══════════════════════════════════════ */
@media (max-width: 960px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feat-card--large { grid-row: span 1; }
  .hero-cube-wrap { display: none; }
  .server-banner { grid-template-columns: 1fr; }
  .server-left { border-right: none; border-bottom: 1px solid rgba(30,58,110,0.4); }
}

@media (max-width: 640px) {
  .hero { padding: 90px 20px 60px; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 14px; }
  .stat-sep { display: none; }
  .discord-banner { padding: 24px; }
  .discord-left { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
