/* ================================================================
   SYNATRA RP — CSS
   Dark theme | Modern FiveM server website
   ================================================================ */

/* ── Variables ──────────────────────────────────────────────── */
:root {
  --bg:           #080810;
  --bg-2:         #0d0d1a;
  --bg-card:      #12121f;
  --border:       rgba(255,255,255,0.06);
  --red:          #e83030;
  --red-dark:     #b52424;
  --gold:         #f5a623;
  --text:         #e2e2f0;
  --text-muted:   #7878a0;
  --radius:       12px;
  --radius-lg:    20px;
  --transition:   0.25s ease;
  --shadow:       0 4px 32px rgba(0,0,0,0.5);
  --glow-red:     0 0 40px rgba(232,48,48,0.25);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Typography ─────────────────────────────────────────────── */
h1 { font-size: clamp(2.2rem, 6vw, 4.5rem); font-weight: 900; line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 4vw, 2.8rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.2rem; font-weight: 600; }

.gradient-text {
  background: linear-gradient(135deg, var(--red) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(232,48,48,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232,48,48,0.5);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.2);
  color: var(--text);
}
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-danger { background: #7f1d1d; color: #fff; }
.btn-danger:hover { background: #991b1b; }
.btn-success { background: #14532d; color: #fff; }
.btn-success:hover { background: #166534; }

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 1.5rem;
  background: rgba(8,8,16,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: 64px;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 1px;
}
.brand-accent { color: var(--red); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  display: block;
  transition: var(--transition);
}

/* ── Maintenance Banner ─────────────────────────────────────── */
.maintenance-banner {
  background: linear-gradient(90deg, #7c2d12, #9a3412);
  color: #fff;
  text-align: center;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  position: fixed;
  top: 64px;
  left: 0; right: 0;
  z-index: 99;
}
.hidden { display: none !important; }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 6rem 1.5rem 4rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(232,48,48,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(245,166,35,0.06) 0%, transparent 60%),
    var(--bg);
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  width: 100%;
}
.server-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6b7280;
  transition: background var(--transition);
}
.status-dot.online  { background: #22c55e; box-shadow: 0 0 8px #22c55e; animation: pulse 2s infinite; }
.status-dot.offline { background: #ef4444; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

.hero-title { margin-bottom: 1.2rem; }
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 2rem;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  min-width: 120px;
  text-align: center;
}
.stat-value {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--red);
}
.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Particles ──────────────────────────────────────────────── */
.hero-particles { position: absolute; inset: 0; overflow: hidden; }
.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--red);
  opacity: 0;
  animation: float 8s infinite;
}
.particle:nth-child(1) { left: 10%;  animation-delay: 0s;   animation-duration: 7s; }
.particle:nth-child(2) { left: 30%;  animation-delay: 1.5s; animation-duration: 9s; }
.particle:nth-child(3) { left: 55%;  animation-delay: 3s;   animation-duration: 6s; }
.particle:nth-child(4) { left: 70%;  animation-delay: 0.8s; animation-duration: 10s; }
.particle:nth-child(5) { left: 85%;  animation-delay: 2s;   animation-duration: 8s; }
.particle:nth-child(6) { left: 45%;  animation-delay: 4s;   animation-duration: 7s; }

@keyframes float {
  0%   { opacity: 0; transform: translateY(100vh) scale(0); }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-10vh) scale(2); }
}

/* ── Scroll indicator ───────────────────────────────────────── */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.scroll-indicator {
  width: 1px;
  height: 50px;
  background: var(--border);
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}
.scroll-line {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--red));
  animation: scroll-down 1.5s ease infinite;
}
@keyframes scroll-down {
  0%   { top: -100%; }
  100% { top: 100%; }
}

/* ── Sections ───────────────────────────────────────────────── */
.section       { padding: 6rem 1.5rem; }
.section-dark  { background: var(--bg-2); }
.container     { max-width: 1100px; margin: 0 auto; }
.text-center   { text-align: center; }

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-tag {
  display: inline-block;
  background: rgba(232,48,48,0.15);
  color: var(--red);
  border: 1px solid rgba(232,48,48,0.3);
  border-radius: 100px;
  padding: 0.25rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}
.section-header p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0.75rem auto 0;
}

/* ── Grid ───────────────────────────────────────────────────── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* ── Feature cards ──────────────────────────────────────────── */
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color var(--transition), transform var(--transition);
}
.feature-card:hover {
  border-color: rgba(232,48,48,0.3);
  transform: translateY(-4px);
}
.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.feature-card h3 { margin-bottom: 0.5rem; }
.feature-card p  { color: var(--text-muted); font-size: 0.9rem; }

/* ── Feature rows ───────────────────────────────────────────── */
.features-list   { display: flex; flex-direction: column; gap: 1.5rem; }
.feature-row {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color var(--transition);
}
.feature-row:hover { border-color: rgba(232,48,48,0.25); }
.feature-number {
  font-size: 3rem;
  font-weight: 900;
  color: rgba(232,48,48,0.15);
  line-height: 1;
  min-width: 60px;
}
.feature-body h3 { margin-bottom: 0.4rem; }
.feature-body p  { color: var(--text-muted); font-size: 0.9rem; }

/* ── CTA ────────────────────────────────────────────────────── */
.cta-section {
  background: radial-gradient(ellipse at center, rgba(232,48,48,0.08) 0%, transparent 70%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-section h2 { margin-bottom: 0.75rem; }
.cta-section p  { color: var(--text-muted); margin-bottom: 2rem; }
.cta-section strong { color: var(--red); }

/* ── Footer ─────────────────────────────────────────────────── */
.footer { background: var(--bg-2); padding: 3rem 1.5rem 1.5rem; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand { font-size: 1.1rem; font-weight: 900; letter-spacing: 1px; }
.footer-brand p { color: var(--text-muted); font-size: 0.85rem; font-weight: 400; margin-top: 0.4rem; }
.footer-links { color: var(--text-muted); font-size: 0.9rem; }
.footer-links code {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.15rem 0.5rem;
  font-size: 0.85rem;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ── 404 ────────────────────────────────────────────────────── */
.page-404 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
.page-404 .big-num {
  font-size: 8rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--red), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-404 p { color: var(--text-muted); margin: 1rem 0 2rem; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--bg-2);
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    z-index: 99;
  }
  .nav-toggle { display: flex; }
  .feature-row { flex-direction: column; gap: 0.75rem; }
  .feature-number { font-size: 2rem; min-width: auto; }
  .footer-inner { flex-direction: column; }
}
