/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0a;
  --bg2: #0f1419;
  --bg3: #131820;
  --bg4: #191f2e;
  --card: #141820;
  --card-border: #1f2a3a;
  --primary: #2C4C9C;
  --primary-light: #3A5CAD;
  --primary-dark: #1E3A7E;
  --primary-glow: rgba(44, 76, 156, 0.15);
  --white: #ffffff;
  --grey: #888888;
  --grey2: #555555;
  --text: #e8e8e8;
  --text-muted: #888;
  --radius: 10px;
  --radius-sm: 6px;
  --nav-h: 64px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: radial-gradient(circle at 18% 18%, rgba(91, 162, 255, 0.16), transparent 18%),
              radial-gradient(circle at 82% 14%, rgba(63, 203, 255, 0.1), transparent 18%),
              radial-gradient(circle at 50% 90%, rgba(18, 54, 106, 0.28), transparent 35%),
              linear-gradient(180deg, #050811 0%, #07142a 40%, #02050c 100%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: url('/images/logo.png') 16 16, auto;
}

a { color: inherit; text-decoration: none; }
img { display: block; }

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ── Navbar ─────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  background: linear-gradient(180deg, #070F26 0%, rgba(5,11,26,0.8) 100%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(5,92,255,0.08);
  transition: background var(--transition);
}

.navbar.scrolled {
  background: linear-gradient(180deg, #050B1A 0%, rgba(5,11,26,0.9) 100%);
  box-shadow: 0 2px 16px rgba(10,92,255,0.15);
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 700; letter-spacing: -0.3px;
}

.nav-logo img {
  width: 32px; height: 32px; object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(44,76,156,0.4));
}

.nav-links {
  display: flex; gap: 4px; list-style: none;
}

.nav-links a {
  padding: 6px 14px;
  font-size: 14px; font-weight: 500;
  color: var(--grey);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}

.nav-links a.active { color: var(--white); font-weight: 600; }

/* ── Page Wrapper ───────────────────────────────────────── */
.page-wrap {
  padding-top: var(--nav-h);
  min-height: 100vh;
}

/* ── Headings ───────────────────────────────────────────── */
.page-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800; letter-spacing: -1px; line-height: 1.1;
  text-align: center;
}

.page-title span { color: var(--primary); }

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px;
  font-size: 14px; font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

.btn-primary {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
}

.btn-primary:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.06);
  transform: translateY(-1px);
}

/* ── Animations ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.15s; }
.stagger-2 { transition-delay: 0.30s; }
.stagger-3 { transition-delay: 0.45s; }
.stagger-4 { transition-delay: 0.60s; }

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  background: linear-gradient(180deg, rgba(5,11,26,0.6) 0%, #070F26 100%);
  border-top: 1px solid rgba(5,92,255,0.08);
  padding: 48px;
}

.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: auto minmax(480px, 1.6fr) auto auto; gap: 48px;
  align-items: start;
}

.footer-logo img {
  width: 40px; height: 40px; object-fit: contain;
}

.footer-preview {
  border-radius: var(--radius); overflow: hidden;
  width: 100%; max-width: none; height: 200px; position: relative;
  background: var(--bg3);
  border: 1px solid var(--card-border);
  object-fit: cover;
}

.footer-preview img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.7;
}

.footer-preview-label {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
}

.footer-preview-label span {
  font-size: 28px; font-weight: 800; color: var(--white);
}

.footer-preview-label small {
  font-size: 12px; color: var(--grey);
  background: rgba(0,0,0,0.5); padding: 2px 8px; border-radius: 20px;
}

.footer-nav h4, .footer-legal h4 {
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  color: var(--grey2); text-transform: uppercase; margin-bottom: 12px;
}

.footer-nav ul, .footer-legal ul {
  list-style: none; display: flex; flex-direction: column; gap: 8px;
}

.footer-nav a, .footer-legal a {
  font-size: 14px; color: var(--grey);
  transition: color var(--transition);
}

.footer-nav a:hover, .footer-legal a:hover { color: var(--white); }

.footer-bottom {
  max-width: 1200px; margin: 32px auto 0;
  padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05);
  display: flex; justify-content: space-between; align-items: center;
}

.footer-bottom p { font-size: 13px; color: var(--grey2); }

.footer-socials { display: flex; gap: 12px; }

.footer-socials a {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg3); border: 1px solid var(--card-border);
  border-radius: var(--radius-sm); color: var(--grey);
  font-size: 14px;
  transition: all var(--transition);
}

.footer-socials a:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.2);
  background: var(--bg4);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .nav-links { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-preview { display: none; }
}

/* ── Online indicator ───────────────────────────────────── */
.online-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #3ba55d;
  display: inline-block;
  box-shadow: 0 0 4px #3ba55d;
}

/* ── Role colors ────────────────────────────────────────── */
.role-founder   { color: #f0b232; }
.role-owner     { color: #e8a020; }
.role-co-owner  { color: #3A5CAD; }
.role-developer { color: #2C4C9C; }
.role-overseer  { color: #e74c3c; }
.role-head-admin { color: #e74c3c; }
.role-admin     { color: #e74c3c; }
.role-manager   { color: #2ecc71; }
.role-head      { color: #9b59b6; }
.role-moderator, .role-senior-mod, .role-trial-mod { color: #3498db; }
.role-default   { color: var(--grey); }
