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

:root {
  --black:   #0a0c0f;
  --dark:    #0f1216;
  --card:    #141820;
  --border:  #1e2530;
  --red:     #C1121F;
  --red-dim: #8b0d16;
  --gold:    #e8d5a3;
  --white:   #f0f2f5;
  --muted:   #6b7280;
  --font-display: 'Orbitron', monospace;
  --font-body:    'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* ── NAVBAR ────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 12, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 3px;
}

.logo-bolt { color: var(--red); font-size: 18px; }
.logo-text  { color: var(--white); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
  margin-left: auto;
}

.nav-links a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--white); }

.nav-cta {
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 18px;
  transition: background 0.2s;
}

.nav-cta:hover { background: var(--red-dim); }

/* ── HERO ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(193,18,31,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 0%, rgba(193,18,31,0.12) 0%, transparent 60%),
    var(--black);
}

/* Lignes de scan signature */
.hero-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(255,255,255,0.012) 3px,
    rgba(255,255,255,0.012) 4px
  );
  pointer-events: none;
}

/* Ligne rouge diagonale signature */
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--red), transparent);
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 24px;
  max-width: 800px;
}

.hero-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--red);
  opacity: 0.5;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.95;
  letter-spacing: -1px;
  color: var(--white);
  margin-bottom: 16px;
}

.hero-accent { color: var(--red); }

.hero-sub {
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 32px;
}

.hero-terminal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.6);
  border: 1px solid var(--border);
  border-left: 2px solid var(--red);
  padding: 10px 16px;
  margin-bottom: 40px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
}

.terminal-prompt { color: var(--red); font-weight: 700; }
.terminal-text   { color: var(--gold); min-width: 220px; text-align: left; }
.terminal-cursor {
  color: var(--red);
  animation: blink 1s step-end infinite;
}

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

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 28px;
  transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover { background: var(--red-dim); transform: translateY(-1px); }

.btn-secondary {
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 28px;
  transition: border-color 0.2s, color 0.2s;
}

.btn-secondary:hover { border-color: var(--white); color: var(--white); }

.hero-stats {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-val {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  animation: float 2s ease-in-out infinite;
}

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

/* ── SECTIONS ──────────────────────────────────────────────── */
.section { padding: 100px 0; }
.section-dark { background: var(--dark); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.section-header { text-align: center; margin-bottom: 60px; }

.section-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 12px;
}

.accent { color: var(--red); }

.section-sub {
  font-size: 14px;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto;
}

/* ── SEARCH ────────────────────────────────────────────────── */
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 2px solid var(--red);
  padding: 12px 16px;
  margin-bottom: 40px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.search-icon { opacity: 0.4; }

.search-bar input {
  background: none;
  border: none;
  outline: none;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 13px;
  width: 100%;
}

.search-bar input::placeholder { color: var(--muted); }

/* ── RULES GRID ────────────────────────────────────────────── */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.rule-card {
  background: var(--card);
  padding: 24px;
  position: relative;
  transition: background 0.2s;
}

.rule-card:hover { background: #181e28; }

.rule-card.hidden { display: none; }

.rule-tag {
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--red);
  letter-spacing: 2px;
  margin-bottom: 8px;
  opacity: 0.7;
}

.rule-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.rule-desc {
  font-size: 13px;
  color: #9ca3af;
  line-height: 1.5;
  margin-bottom: 8px;
}

.rule-example {
  font-size: 11px;
  color: var(--muted);
  border-left: 2px solid var(--border);
  padding-left: 10px;
  font-style: italic;
  line-height: 1.4;
}

/* ── ARMY RULES ────────────────────────────────────────────── */
.army-rules {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.army-rule-block {
  display: flex;
  gap: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  padding: 28px;
  transition: background 0.2s;
}

.army-rule-block:hover { background: #181e28; }

.army-rule-icon { font-size: 28px; flex-shrink: 0; margin-top: 2px; }

.army-rule-content h3 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 14px;
}

.army-rule-content ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.army-rule-content li {
  font-size: 13px;
  color: #9ca3af;
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}

.army-rule-content li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--red);
  opacity: 0.5;
}

.army-rule-content strong { color: var(--white); font-weight: 600; }
.army-rule-content code {
  background: rgba(193,18,31,0.12);
  color: var(--red);
  padding: 1px 6px;
  font-size: 12px;
  border-radius: 2px;
}

/* ── ARMIES GRID ───────────────────────────────────────────── */
.armies-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.army-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.2s;
}

.army-card:hover { background: #181e28; }

.army-us { border-top: 3px solid #3b82f6; }
.army-ru { border-top: 3px solid var(--red); }

.army-flag { font-size: 40px; }

.army-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  color: var(--muted);
  width: fit-content;
}

.army-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
}

.army-card p { font-size: 13px; color: #9ca3af; line-height: 1.6; }

.army-stats {
  display: flex;
  gap: 24px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: auto;
}

.astat { display: flex; flex-direction: column; gap: 2px; }
.astat span { font-size: 9px; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }
.astat strong { font-family: var(--font-display); font-size: 13px; color: var(--white); }

.btn-army {
  display: block;
  text-align: center;
  background: #3b82f6;
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px;
  transition: opacity 0.2s;
  margin-top: auto;
}

.btn-army:hover { opacity: 0.85; }
.btn-army-ru { background: var(--red); }

/* ── RECRUTEMENT ───────────────────────────────────────────── */
.recruit-cta { display: flex; justify-content: center; }

.btn-discord {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #5865f2;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 16px 32px;
  transition: background 0.2s, transform 0.1s;
}

.btn-discord:hover { background: #4752c4; transform: translateY(-2px); }

/* ── FOOTER ────────────────────────────────────────────────── */
footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--white);
  margin-bottom: 6px;
}

.footer-sub { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.footer-copy { font-size: 10px; color: #374151; }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-stats { gap: 20px; }
  .stat-val { font-size: 22px; }
  .armies-grid { grid-template-columns: 1fr; }
  .army-rule-block { flex-direction: column; gap: 12px; }
  .rules-grid { grid-template-columns: 1fr; }
}
