@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Exo+2:wght@300;400;600;700;900&display=swap');

:root {
  --blue: #00a8e8;
  --deep: #003459;
  --navy: #001824;
  --darker: #000d14;
  --orange: #ff6b00;
  --white: #ffffff;
  --muted: rgba(255,255,255,0.5);
  --card-glass: rgba(0,52,89,0.35);
  --border: rgba(0,168,232,0.2);
  --border-bright: rgba(0,168,232,0.6);
  --glow: 0 0 20px rgba(0,168,232,0.4);
  --glow-strong: 0 0 40px rgba(0,168,232,0.7);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Exo 2', sans-serif; background: var(--darker); color: var(--white); overflow-x: hidden; cursor: none; }

@media (pointer: coarse) { body { cursor: auto; } #cursor, #cursor-ring { display: none; } }

body.page-out { opacity: 0; transform: scale(0.97) translateY(8px); filter: blur(6px); transition: all 0.45s cubic-bezier(0.4,0,0.2,1); }
body.page-in { opacity: 0; transform: scale(1.03) translateY(-8px); filter: blur(4px); }
body.page-loaded { opacity: 1; transform: none; filter: none; transition: all 0.5s cubic-bezier(0.4,0,0.2,1); }

#cursor { position: fixed; width: 10px; height: 10px; background: var(--blue); border-radius: 50%; pointer-events: none; z-index: 99999; transform: translate(-50%,-50%); transition: width 0.2s, height 0.2s, background 0.2s; box-shadow: 0 0 12px var(--blue), 0 0 24px rgba(0,168,232,0.4); mix-blend-mode: screen; }
#cursor-ring { position: fixed; width: 36px; height: 36px; border: 1.5px solid rgba(0,168,232,0.5); border-radius: 50%; pointer-events: none; z-index: 99998; transform: translate(-50%,-50%); transition: all 0.08s linear; }
body:has(a:hover) #cursor, body:has(button:hover) #cursor { width: 18px; height: 18px; background: var(--orange); box-shadow: 0 0 20px var(--orange); }

body::after { content: ''; position: fixed; inset: 0; background: repeating-linear-gradient(0deg, transparent 0px, transparent 3px, rgba(0,0,0,0.08) 3px, rgba(0,0,0,0.08) 4px); pointer-events: none; z-index: 9997; }

.bg-wrap { position: fixed; inset: 0; z-index: -2; overflow: hidden; }
.bg-img { position: absolute; inset: -20px; background: url('../img/bg.jpg') center/cover no-repeat; filter: blur(10px) brightness(0.22) saturate(0.6); transform: scale(1.05); }
.bg-overlay { position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,52,89,0.5) 0%, transparent 70%), radial-gradient(ellipse 60% 80% at 20% 100%, rgba(0,20,40,0.7) 0%, transparent 60%), linear-gradient(180deg, rgba(0,13,20,0.6) 0%, rgba(0,8,14,0.85) 100%); }
.bg-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(0,168,232,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(0,168,232,0.04) 1px, transparent 1px); background-size: 60px 60px; animation: gridMove 20s linear infinite; }
@keyframes gridMove { 0% { transform: translateY(0); } 100% { transform: translateY(60px); } }
.bg-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.7) 100%); }
.noise { position: fixed; inset: 0; z-index: 9996; pointer-events: none; opacity: 0.025; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E"); }

#preloader { position: fixed; inset: 0; background: var(--darker); z-index: 99990; display: flex; align-items: center; justify-content: center; flex-direction: column; transition: opacity 0.9s cubic-bezier(0.4,0,0.2,1), transform 0.9s; }
#preloader.hide { opacity: 0; transform: scale(1.06); pointer-events: none; }
.pre-wrap { text-align: center; position: relative; padding: 0 20px; }
.pre-hex { position: relative; width: 120px; height: 120px; margin: 0 auto 32px; }
.pre-hex svg { width: 100%; height: 100%; animation: hexSpin 4s linear infinite; }
@keyframes hexSpin { to { transform: rotate(360deg); } }
.pre-logo { position: absolute; inset: 20px; background: url('../img/logo.png') center/contain no-repeat; animation: logoPulse 2s ease-in-out infinite; filter: drop-shadow(0 0 16px var(--blue)); }
@keyframes logoPulse { 0%,100% { opacity: 1; filter: drop-shadow(0 0 10px var(--blue)); } 50% { opacity: 0.85; filter: drop-shadow(0 0 28px var(--blue)) drop-shadow(0 0 50px rgba(0,168,232,0.4)); } }
.pre-title { font-family: 'Orbitron', sans-serif; font-size: clamp(1.6rem, 5vw, 2.2rem); font-weight: 900; letter-spacing: 12px; color: var(--white); text-shadow: var(--glow-strong); margin-bottom: 6px; animation: glitch 6s infinite; }
@keyframes glitch { 0%,92%,100% { transform: none; } 93% { transform: skew(-1deg); clip-path: inset(20% 0 40% 0); } 94% { transform: skew(0.5deg); clip-path: inset(60% 0 10% 0); } 95% { transform: none; clip-path: none; } }
.pre-sub { font-size: 0.65rem; letter-spacing: 6px; color: rgba(0,168,232,0.45); font-weight: 600; margin-bottom: 40px; text-transform: uppercase; }
.pre-bar-wrap { width: min(340px, 80vw); height: 2px; background: rgba(255,255,255,0.05); border-radius: 2px; overflow: hidden; margin: 0 auto 10px; position: relative; }
.pre-bar-wrap::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0, transparent 18px, rgba(0,0,0,0.3) 18px, rgba(0,0,0,0.3) 20px); z-index: 1; }
#preBar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--deep), var(--blue)); box-shadow: 0 0 12px var(--blue); transition: width 0.15s ease-out; }
.pre-status { font-size: 0.6rem; letter-spacing: 4px; color: #333; font-weight: 700; }
#prePercent { color: var(--blue); }
.pre-dots { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.pre-dot { display: flex; align-items: center; gap: 6px; font-size: 0.55rem; letter-spacing: 1px; color: rgba(255,255,255,0.25); font-weight: 700; }
.pre-dot-led { width: 5px; height: 5px; border-radius: 50%; background: #222; transition: background 0.3s, box-shadow 0.3s; }
.pre-dot.on .pre-dot-led { background: var(--blue); box-shadow: 0 0 8px var(--blue); }
.pre-dot.on { color: rgba(0,168,232,0.5); }

.nav-burger { display: none; position: fixed; top: 18px; right: 16px; z-index: 1100; background: rgba(0,20,35,0.9); border: 1px solid rgba(0,168,232,0.2); border-radius: 8px; width: 40px; height: 40px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; padding: 0; }
.nav-burger span { display: block; width: 20px; height: 2px; background: rgba(0,168,232,0.7); border-radius: 2px; transition: all 0.3s; }
.nav-burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.active span:nth-child(2) { opacity: 0; }
.nav-burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav-overlay { display: none; position: fixed; inset: 0; z-index: 999; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); }
.mobile-nav-overlay.open { display: block; }

.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 0 24px; height: 72px; display: flex; align-items: center; justify-content: space-between; background: linear-gradient(180deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.3) 100%); backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid rgba(0,168,232,0.12); gap: 8px; }
.navbar::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent 0%, var(--blue) 30%, var(--blue) 70%, transparent 100%); opacity: 0.3; }
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.nav-logo-icon { width: 38px; height: 38px; }
.nav-logo-icon img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 8px var(--blue)); }
.nav-logo-text { font-family: 'Orbitron', sans-serif; font-size: 1.3rem; font-weight: 900; letter-spacing: 6px; text-shadow: var(--glow); }
.nav-logo-sub { font-size: 0.45rem; letter-spacing: 4px; color: rgba(0,168,232,0.4); font-weight: 700; margin-top: 2px; display: block; }
.nav-links { display: flex; gap: 2px; align-items: center; }
.nav-links a { text-decoration: none; color: rgba(255,255,255,0.6); font-size: 0.7rem; font-weight: 700; letter-spacing: 2px; padding: 8px 16px; border-radius: 4px; border: 1px solid transparent; transition: all 0.25s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--white); background: rgba(0,52,89,0.5); border-color: rgba(0,168,232,0.3); text-shadow: 0 0 10px var(--blue); }
.nav-links a.active::after { content: ''; position: absolute; bottom: -1px; left: 20%; right: 20%; height: 2px; background: var(--blue); box-shadow: 0 0 8px var(--blue); border-radius: 2px; }
.nav-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-cta { background: linear-gradient(135deg, var(--deep) 0%, #005a8a 100%); color: var(--white) !important; border: 1px solid rgba(0,168,232,0.35) !important; padding: 9px 22px !important; border-radius: 6px !important; font-size: 0.65rem !important; letter-spacing: 2px !important; box-shadow: 0 4px 20px rgba(0,52,89,0.4); transition: all 0.3s !important; cursor: pointer; font-family: 'Exo 2', sans-serif; font-weight: 700; }
.nav-cta:hover { box-shadow: 0 4px 30px rgba(0,168,232,0.35) !important; transform: translateY(-1px) !important; border-color: var(--blue) !important; }
.nav-socials { display: flex; gap: 5px; align-items: center; }
.nav-socials-mobile { display: none; }
.nav-social-btn { width: 32px; height: 32px; border-radius: 6px; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: all 0.25s; border: 1px solid rgba(255,255,255,0.08); color: rgba(255,255,255,0.5); flex-shrink: 0; }
.nav-social-btn:hover { transform: translateY(-2px); color: var(--white); }
.nav-discord:hover { background: rgba(88,101,242,0.2); border-color: rgba(88,101,242,0.5); color: #5865F2; box-shadow: 0 0 16px rgba(88,101,242,0.3); }
.nav-vk:hover { background: rgba(0,119,255,0.2); border-color: rgba(0,119,255,0.5); color: #0077FF; box-shadow: 0 0 16px rgba(0,119,255,0.3); }
.nav-tg:hover { background: rgba(0,136,204,0.2); border-color: rgba(0,136,204,0.5); color: #29b6f6; box-shadow: 0 0 16px rgba(0,136,204,0.3); }
.nav-donate { background: linear-gradient(135deg, #1a0a00 0%, #2a1200 100%) !important; border: 1px solid rgba(255,107,0,0.35) !important; color: rgba(255,160,80,0.9) !important; box-shadow: 0 4px 20px rgba(255,107,0,0.15), inset 0 1px 0 rgba(255,255,255,0.04) !important; position: relative; overflow: hidden; }
.nav-donate::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 0%, rgba(255,107,0,0.06) 50%, transparent 100%); transform: translateX(-100%); transition: transform 0.5s; }
.nav-donate:hover::before { transform: translateX(100%); }
.nav-donate:hover { border-color: rgba(255,107,0,0.6) !important; box-shadow: 0 4px 28px rgba(255,107,0,0.3) !important; transform: translateY(-1px) !important; color: #ffb060 !important; }

.page { display: none; min-height: calc(100vh - 72px); padding-top: 72px; }
.page.active { display: block; }

.section-eyebrow { font-size: 0.58rem; letter-spacing: 6px; color: rgba(0,168,232,0.45); font-weight: 700; text-transform: uppercase; margin-bottom: 12px; }
.section-title { font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: clamp(1.5rem, 3vw, 2.8rem); line-height: 1.15; letter-spacing: 3px; color: var(--white); }
.section-title span { color: var(--blue); text-shadow: var(--glow); }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); }
::-webkit-scrollbar-thumb { background: var(--deep); border-radius: 4px; }

.glow-divider { height: 1px; background: linear-gradient(90deg, transparent, var(--blue), transparent); opacity: 0.25; }

.ticker-bar { height: 32px; background: rgba(0,0,0,0.6); border-top: 1px solid rgba(0,168,232,0.12); border-bottom: 1px solid rgba(0,168,232,0.12); overflow: hidden; display: flex; align-items: center; }
.ticker-label { flex-shrink: 0; padding: 0 20px; font-family: 'Orbitron', sans-serif; font-size: 0.5rem; letter-spacing: 3px; color: var(--blue); border-right: 1px solid rgba(0,168,232,0.2); height: 100%; display: flex; align-items: center; white-space: nowrap; }
.ticker-inner { display: flex; gap: 60px; animation: ticker 30s linear infinite; white-space: nowrap; padding: 0 30px; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.ticker-item { font-size: 0.6rem; letter-spacing: 3px; color: rgba(255,255,255,0.3); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.ticker-item::before { content: '◆'; color: var(--blue); font-size: 0.4rem; }

.server-badge { position: fixed; bottom: 24px; left: 24px; background: rgba(0,0,0,0.82); backdrop-filter: blur(10px); border: 1px solid rgba(248,6,6,0.3); border-left: 3px solid #f80606; border-radius: 8px; padding: 10px 16px; font-size: 0.65rem; font-weight: 700; letter-spacing: 1.5px; color: var(--white); z-index: 500; display: flex; align-items: center; gap: 10px; box-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.server-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: #fa0808; box-shadow: 0 0 8px #f80606; animation: pulseDot 2s infinite; flex-shrink: 0; }
@keyframes pulseDot { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.4); opacity: 0.6; } }

.modal-overlay { display: none; position: fixed; inset: 0; z-index: 9000; background: rgba(0,0,0,0.88); backdrop-filter: blur(20px); align-items: center; justify-content: center; padding: 16px; }
.modal-overlay.open { display: flex; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-box { background: linear-gradient(145deg, #0a1a28 0%, #000e18 100%); border: 1px solid rgba(0,168,232,0.25); border-radius: 20px; padding: clamp(28px, 5vw, 52px) clamp(20px, 5vw, 60px); max-width: 500px; width: 100%; text-align: center; position: relative; overflow: hidden; animation: modalIn 0.35s cubic-bezier(0.34,1.56,0.64,1); box-shadow: 0 0 80px rgba(0,168,232,0.12); }
@keyframes modalIn { from { transform: scale(0.85) translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-box::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--blue), transparent); }
.modal-tag { font-size: 0.55rem; letter-spacing: 5px; color: rgba(0,168,232,0.4); font-weight: 700; margin-bottom: 16px; }
.modal-title { font-family: 'Orbitron', sans-serif; font-size: clamp(1.2rem, 4vw, 1.6rem); font-weight: 900; letter-spacing: 4px; color: var(--blue); text-shadow: var(--glow); margin-bottom: 18px; }
.modal-desc { color: rgba(255,255,255,0.65); line-height: 1.8; font-size: 0.9rem; margin-bottom: 36px; }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 32px; text-align: left; }
.modal-stat { background: rgba(0,52,89,0.25); border: 1px solid rgba(0,168,232,0.12); border-radius: 8px; padding: 12px 14px; }
.modal-stat-label { font-size: 0.5rem; letter-spacing: 2px; color: rgba(0,168,232,0.4); font-weight: 700; margin-bottom: 4px; }
.modal-stat-value { font-family: 'Orbitron', sans-serif; font-size: 0.85rem; font-weight: 700; color: var(--white); }
.btn-close { background: linear-gradient(135deg, var(--deep), #005a8a); color: var(--white); border: 1px solid rgba(0,168,232,0.3); padding: 12px 38px; border-radius: 6px; font-family: 'Exo 2', sans-serif; font-size: 0.7rem; font-weight: 700; letter-spacing: 2.5px; cursor: pointer; transition: all 0.3s; }
.btn-close:hover { box-shadow: 0 0 24px rgba(0,168,232,0.3); transform: translateY(-2px); }

@media (max-width: 1024px) {
  .navbar { padding: 0 20px; }
  .nav-links a { padding: 8px 10px; font-size: 0.65rem; }
}

@media (max-width: 768px) {
  .navbar { padding: 0 16px; }
  .nav-burger { display: flex; }
  .nav-right { display: none; }
  .nav-links { position: fixed; top: 0; right: -300px; width: 300px; height: 100vh; background: rgba(0,8,16,0.97); backdrop-filter: blur(20px); border-left: 1px solid rgba(0,168,232,0.15); z-index: 1000; flex-direction: column; align-items: flex-start; padding: 80px 24px 40px; gap: 4px; transition: right 0.35s cubic-bezier(0.4,0,0.2,1); overflow-y: auto; }
  .nav-links.open { right: 0; }
  .nav-socials-mobile { display: flex; flex-direction: row; gap: 8px; margin: 20px 0 12px; align-items: center; width: 100%; }
  .nav-socials-mobile .nav-social-btn { width: 44px; height: 44px; border: 1px solid rgba(0,168,232,0.25); color: rgba(255,255,255,0.8); background: rgba(0,52,89,0.3); }
  .nav-socials-mobile .nav-social-btn svg { width: 20px; height: 20px; }
  .nav-socials-mobile .nav-cta { flex: 1; text-align: center; padding: 13px 16px; margin-top: 0; }
  .nav-links a { width: 100%; padding: 14px 16px; font-size: 0.85rem; border-radius: 8px; }
  .nav-links a.active::after { display: none; }
  .server-badge { font-size: 0.55rem; padding: 8px 12px; bottom: 12px; left: 12px; }
  .modal-grid { grid-template-columns: 1fr; }
  .modal-box { padding: 36px 28px; }
  .footer-inner { padding: 24px 20px 18px; }
  .footer-top { flex-direction: column; gap: 20px; }
  .footer-legal { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 480px) {
  .nav-logo-text { font-size: 1rem; letter-spacing: 4px; }
  .nav-logo-sub { display: none; }
  .ticker-label { display: none; }
  .section-title { font-size: clamp(1.4rem, 6vw, 2rem); }
  .modal-box { padding: 28px 18px; border-radius: 14px; }
  .server-badge { bottom: 8px; left: 8px; }
}
