*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --fire:   #e85d04;
  --gold:   #f9a800;
  --orbit:  #4a90d9;
  --ember:  #c94a00;
  --ash:    #c9b99a;
  --deep:   #080705;
  --dark:   #0e0c09;
  --panel:  #131109;
  --border: #252015;
  --text:   #d4c9b8;
  --muted:  #6e6456;
  --white:  #f0ebe3;
}

html { scroll-behavior: smooth; }

body {
  background: var(--deep);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── BACKGROUND ── */
#bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(232,93,4,0.13) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 80% 110%, rgba(74,144,217,0.06) 0%, transparent 60%),
    var(--deep);
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 68px;
  background: rgba(8,7,5,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-brand img { height: 38px; width: auto; }

.nav-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.2;
}

.nav-tag {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover { color: var(--gold); }

nav a[href="/#about"]:hover    { color: #b40000; }
nav a[href="/#values"]:hover   { color: #e85d04; }
.nav-dropdown > a:hover        { color: #f9a800; }
nav a[href*="discord"]:hover   { color: var(--orbit); }

.nav-join {
  color: var(--fire) !important;
  border: 1px solid var(--fire);
  padding: 6px 16px;
  transition: all 0.2s !important;
}

.nav-join:hover {
  background: var(--fire) !important;
  color: var(--white) !important;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
}

/* ── HERO ── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
}

.hero-logo {
  width: min(220px, 50vw);
  height: auto;
  margin-bottom: 36px;
  filter: drop-shadow(0 0 48px rgba(232,93,4,0.55)) drop-shadow(0 0 96px rgba(249,168,0,0.2));
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(-0.5deg); }
  50%       { transform: translateY(-12px) rotate(0.5deg); }
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--orbit);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(56px, 10vw, 112px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.92;
  color: var(--white);
  margin-bottom: 12px;
}

.fire {
  background: linear-gradient(135deg, var(--gold) 0%, var(--fire) 55%, var(--ember) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-rule {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--fire), var(--orbit), transparent);
  margin: 0 auto 28px;
}

.hero-desc {
  max-width: 560px;
  font-size: 18px;
  color: var(--ash);
  line-height: 1.8;
  margin-bottom: 44px;
}

/* ── BUTTONS ── */
.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 32px;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--fire), var(--ember));
  color: var(--white);
  border: 1px solid var(--fire);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold), var(--fire));
  box-shadow: 0 0 28px rgba(232,93,4,0.45);
}

.btn-outline {
  background: transparent;
  color: var(--orbit);
  border: 1px solid rgba(74,144,217,0.5);
}

.btn-outline:hover {
  background: rgba(74,144,217,0.08);
  border-color: var(--orbit);
  box-shadow: 0 0 20px rgba(74,144,217,0.2);
}

/* ── DIVIDERS ── */
.glow-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--ember) 35%, var(--orbit) 65%, transparent 100%);
  opacity: 0.25;
  position: relative;
  z-index: 1;
}

/* ── SECTIONS ── */
section { position: relative; z-index: 1; }

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

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--orbit);
  margin-bottom: 18px;
}

.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--orbit);
}

h2 {
  font-size: clamp(34px, 4.5vw, 54px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 20px;
}

.lead {
  font-size: 18px;
  color: var(--ash);
  max-width: 600px;
  line-height: 1.75;
  margin-bottom: 48px;
}

/* ── RULES ── */
.rules-section { background: var(--panel); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 48px;
}

.rule-card {
  background: var(--deep);
  padding: 36px 28px;
}

.rule-num {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--gold), var(--fire));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}

.rule-card h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 10px;
}

.rule-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* ── ABOUT ── */
.about { }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.about-text p {
  color: var(--ash);
  font-size: 17px;
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-text p:last-child { margin-bottom: 0; }

.about-side { display: flex; flex-direction: column; gap: 24px; }

.about-logo-wrap {
  display: flex;
  justify-content: center;
  padding: 32px;
  background: var(--panel);
  border: 1px solid var(--border);
}

.about-logo {
  width: 160px;
  height: auto;
  filter: drop-shadow(0 0 32px rgba(232,93,4,0.4));
}

.about-card { border: 1px solid var(--border); background: var(--panel); }

.about-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.about-card-title {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.about-card table { width: 100%; border-collapse: collapse; }

.about-card td {
  padding: 11px 20px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}

.about-card td:first-child { color: var(--muted); width: 38%; }
.about-card td:last-child  { color: var(--text); text-align: right; }
.about-card tr:last-child td { border-bottom: none; }

.about-quote {
  padding: 20px;
  border-top: 1px solid var(--border);
  border-left: 3px solid var(--fire);
}

.about-quote blockquote {
  font-size: 15px;
  font-style: italic;
  color: var(--white);
  line-height: 1.65;
  margin-bottom: 8px;
}

.about-quote cite {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-style: normal;
}

/* ── PILLARS ── */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 48px;
}

.pillar {
  background: var(--panel);
  padding: 36px 28px;
  transition: background 0.2s;
}

.pillar:hover { background: #181409; }

.pillar-icon {
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, var(--fire), var(--orbit));
  margin-bottom: 20px;
}

.pillar h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 10px;
}

.pillar p { font-size: 14px; color: var(--muted); line-height: 1.75; }

/* ── JOIN ── */
.join { text-align: center; background: var(--panel); border-top: 1px solid var(--border); }
.join .section-label { justify-content: center; }
.join .section-label::before { display: none; }

.join-logo {
  width: 90px;
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 20px rgba(232,93,4,0.35));
}

.join-body {
  max-width: 500px;
  margin: 0 auto 40px;
  color: var(--ash);
  font-size: 17px;
  line-height: 1.8;
}

/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 28px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img { height: 24px; width: auto; opacity: 0.5; }

footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--gold); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .pillars-grid { grid-template-columns: 1fr 1fr; }
  .rules-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .hamburger { display: block; }
  nav ul {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: rgba(8,7,5,0.97);
    flex-direction: column;
    padding: 16px 20px 20px;
    border-bottom: 1px solid var(--border);
    gap: 0;
  }
  nav ul li { border-bottom: 1px solid var(--border); }
  nav ul li:last-child { border-bottom: none; }
  nav ul a { display: block; padding: 12px 0; }
  nav ul.open { display: flex; }
  .section-inner { padding: 64px 24px; }
  .pillars-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; text-align: center; }
}

/* ── NAV DROPDOWN ── */
.nav-dropdown { position: relative; }
.nav-dropdown > a { cursor: pointer; }

.nav-sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(8,7,5,0.97);
  border: 1px solid var(--border);
  border-top: 2px solid var(--fire);
  min-width: 80px;
  flex-direction: column;
  gap: 0 !important;
  padding: 8px 0;
  z-index: 200;
  list-style: none;
}

.nav-dropdown:hover .nav-sub,
.nav-dropdown.open .nav-sub { display: flex; }

.nav-sub li { border-bottom: none !important; }

.nav-sub a {
  display: block !important;
  padding: 9px 20px !important;
  white-space: nowrap;
  text-align: left;
}

.nav-dropdown > a::after {
  content: ' ▾';
  font-size: 9px;
  opacity: 0.5;
  letter-spacing: 0;
}

.nav-sub a[href*="military"]  { color: #b40000; }
.nav-sub a[href*="industrial"] { color: #e85d04; }
.nav-sub a[href*="support"]   { color: #f9a800; }

.nav-sub a[href*="military"]:hover  { color: #e05050; }
.nav-sub a[href*="industrial"]:hover { color: #ff7a2a; }
.nav-sub a[href*="support"]:hover   { color: #ffc233; }

@media (max-width: 768px) {
  .nav-sub {
    position: static;
    transform: none;
    border: none;
    border-left: 2px solid var(--fire);
    border-top: none;
    padding: 0;
    background: transparent;
    margin-left: 16px;
    min-width: auto;
  }
  .nav-sub a { padding: 10px 12px !important; }
}
