@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --navy:   #0A1628;
  --navy2:  #0D1F3C;
  --navy3:  #112040;
  --blue:   #1A4A8A;
  --blue2:  #1E5EAD;
  --red:    #CC2222;
  --red2:   #E02222;
  --white:  #FFFFFF;
  --off:    #F4F5F7;
  --grey:   #E8EAED;
  --grey2:  #C4C9D4;
  --t1:     #FFFFFF;
  --t2:     #B8C4D8;
  --t3:     #6B7A99;
  --border: rgba(255,255,255,0.08);
  --font:   'Inter', sans-serif;
  --nav-h:  68px;
  --max:    1200px;
  --r:      4px;
  --sh:     0 4px 24px rgba(0,0,0,0.3);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--white);
  color: #1a1a2e;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ── Typography ── */
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 900; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; font-weight: 700; }
h4 { font-size: 0.9rem; font-weight: 600; }
p  { font-size: 0.95rem; line-height: 1.7; }

.label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--r);
  font-family: var(--font); font-size: 0.875rem; font-weight: 700;
  cursor: pointer; border: 2px solid transparent;
  text-decoration: none; transition: all 0.18s; white-space: nowrap;
  letter-spacing: 0.02em;
}
.btn-red    { background: var(--red); color: #fff; border-color: var(--red); }
.btn-red:hover { background: var(--red2); border-color: var(--red2); transform: translateY(-1px); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-outline-red { background: transparent; color: var(--red); border-color: var(--red); }
.btn-outline-red:hover { background: var(--red); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: 0.8rem; }
.btn-lg { padding: 15px 32px; font-size: 1rem; }

/* ── Layout ── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-dark { background: var(--navy); color: var(--t1); }
.section-navy2 { background: var(--navy2); color: var(--t1); }
.section-light { background: var(--off); }
.section-white { background: var(--white); }

/* ── Section header ── */
.section-tag {
  display: inline-block;
  background: var(--red);
  color: #fff;
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 14px;
}
.section-tag.blue { background: var(--blue); }
.section-sub {
  color: var(--t3);
  font-size: 0.95rem;
  max-width: 540px;
  margin-top: 10px;
  line-height: 1.7;
}
.section-dark .section-sub { color: var(--t2); }
.section-header { margin-bottom: 52px; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 10px auto 0; }

/* ══════════ NAV ══════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: var(--navy);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; gap: 40px;
}
.nav-brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; flex-shrink: 0;
}
.nav-badge {
  width: 36px; height: 36px;
  background: var(--red);
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 0.8rem; color: #fff;
  letter-spacing: -0.5px;
}
.nav-name { font-weight: 800; font-size: 1rem; color: #fff; }
.nav-links { display: flex; gap: 4px; margin: 0 auto; }
.nav-links a {
  padding: 7px 14px; border-radius: var(--r);
  color: var(--t2); font-size: 0.875rem; font-weight: 500;
  transition: all 0.15s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav-links a.active { color: #fff; }
.nav-apply {
  background: var(--red); color: #fff !important;
  border-radius: 3px; padding: 8px 16px !important;
  font-weight: 700 !important;
}
.nav-apply:hover { background: var(--red2) !important; }
.nav-right { display: flex; align-items: center; gap: 10px; }

/* Mobile hamburger */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--t2); margin: 4px 0; transition: all 0.2s; }

/* ══════════ HERO ══════════ */
.hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex; align-items: center;
  padding-top: var(--nav-h);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(204,34,34,0.06) 0%, transparent 50%),
              linear-gradient(to bottom right, var(--navy) 50%, #0a1f40 100%);
  pointer-events: none;
}
/* Subtle grid overlay */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: var(--max); margin: 0 auto; padding: 80px 24px 100px;
  display: flex; flex-direction: column;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 24px;
}
.hero-line {
  width: 36px; height: 3px;
  background: var(--red);
}
.hero-eyebrow-text {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}
.hero h1 {
  color: #fff;
  margin-bottom: 20px;
  max-width: 760px;
}
.hero-power {
  font-size: 1.15rem;
  color: var(--t2);
  margin-bottom: 40px;
  max-width: 500px;
  font-weight: 400;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 72px; }
.hero-divider {
  width: 48px; height: 3px;
  background: var(--red);
  margin-bottom: 32px;
  opacity: 0.5;
}

/* ── Stats bar in hero ── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  padding-top: 40px;
  gap: 0;
}
.stat-item {
  padding: 0 32px 0 0;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; padding-right: 0; }
.stat-item:first-child { padding-left: 0; }
.stat-n {
  font-size: 2.4rem; font-weight: 900;
  color: #fff; line-height: 1;
  margin-bottom: 6px;
}
.stat-n span { color: var(--red); }
.stat-l {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--t3);
}

/* ══════════ FEATURED SERVERS ══════════ */
.server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.server-card {
  background: #fff;
  border: 1px solid var(--grey);
  border-radius: var(--r);
  padding: 28px;
  transition: all 0.2s;
  display: flex; flex-direction: column; gap: 14px;
}
.server-card:hover {
  border-color: var(--blue);
  box-shadow: 0 6px 24px rgba(10,22,40,0.12);
  transform: translateY(-2px);
}
.server-logo {
  width: 52px; height: 52px;
  background: var(--navy);
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.1rem; color: #fff;
}
.server-tag {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--off);
  border: 1px solid var(--grey);
  color: var(--t3);
  padding: 3px 9px;
  border-radius: 2px;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: auto;
}
.server-tag.erlc { background: rgba(26,74,138,0.08); border-color: rgba(26,74,138,0.2); color: var(--blue); }
.server-name { font-size: 1.05rem; font-weight: 800; color: var(--navy); }
.server-desc { font-size: 0.875rem; color: #555; line-height: 1.6; }
.server-link {
  font-size: 0.8rem; font-weight: 700;
  color: var(--red); text-decoration: none;
  letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 5px;
  transition: gap 0.15s;
}
.server-link:hover { gap: 8px; }

/* ══════════ ANNOUNCEMENTS ══════════ */
.announce-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}
.announce-card {
  background: var(--navy2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.announce-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 2px;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.badge-update   { background: rgba(26,74,138,0.3); color: #7EB3FF; }
.badge-member   { background: rgba(34,197,94,0.15); color: #4ade80; }
.badge-event    { background: rgba(204,34,34,0.2); color: #f87171; }
.badge-network  { background: rgba(245,158,11,0.15); color: #fbbf24; }
.announce-card .announce-title { font-size: 1rem; font-weight: 700; color: #fff; }
.announce-card .announce-date  { font-size: 0.78rem; color: var(--t3); }
.announce-card .announce-exc   { font-size: 0.875rem; color: var(--t2); line-height: 1.6; }
.announce-coming { opacity: 0.4; font-style: italic; font-size: 0.8rem; color: var(--t3); }
.announce-link { font-size: 0.8rem; font-weight: 700; color: var(--red); }

/* ══════════ CTA BANNER ══════════ */
.cta-banner {
  background: var(--navy);
  border-top: 3px solid var(--red);
  padding: 80px 0;
  text-align: center;
}
.cta-banner h2 { color: #fff; margin-bottom: 14px; }
.cta-banner p { color: var(--t2); max-width: 480px; margin: 0 auto 32px; font-size: 0.95rem; }

/* ══════════ SERVERS PAGE ══════════ */
.page-hero {
  background: var(--navy);
  padding: calc(var(--nav-h) + 60px) 0 60px;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero p  { color: var(--t2); max-width: 480px; }

.filter-bar {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
  padding: 24px 0;
  border-bottom: 1px solid var(--grey);
  margin-bottom: 40px;
}
.filter-label { font-size: 0.78rem; font-weight: 700; color: var(--t3); text-transform: uppercase; letter-spacing: 0.06em; margin-right: 4px; }
.filter-btn {
  padding: 7px 16px;
  border-radius: var(--r);
  background: var(--off);
  border: 1px solid var(--grey);
  font-size: 0.8rem; font-weight: 600;
  cursor: pointer; transition: all 0.15s;
  color: #333;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* ══════════ JOIN PAGE ══════════ */
.join-layout {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 64px;
  align-items: start;
}
.req-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.req-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 18px;
  background: var(--off);
  border: 1px solid var(--grey);
  border-left: 3px solid var(--red);
  border-radius: var(--r);
}
.req-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.req-text { font-size: 0.875rem; color: #333; line-height: 1.6; }
.req-text strong { color: var(--navy); display: block; margin-bottom: 2px; }

/* Form */
.form-card {
  background: #fff;
  border: 1px solid var(--grey);
  border-radius: var(--r);
  padding: 32px;
  box-shadow: var(--sh);
  position: sticky; top: calc(var(--nav-h) + 24px);
}
.form-card h3 { margin-bottom: 24px; font-size: 1.1rem; color: var(--navy); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label {
  font-size: 0.8rem; font-weight: 700;
  color: #333; letter-spacing: 0.02em;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--grey);
  border-radius: var(--r);
  font-family: var(--font); font-size: 0.875rem;
  color: #1a1a2e; background: var(--white);
  outline: none; transition: border-color 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(10,22,40,0.08);
}
.field textarea { resize: vertical; min-height: 100px; }
.form-note {
  font-size: 0.78rem; color: var(--t3);
  margin-top: 14px; line-height: 1.6;
}
.form-note strong { color: #333; }

/* ══════════ ANNOUNCEMENTS PAGE ══════════ */
.announce-list { display: flex; flex-direction: column; gap: 16px; }
.announce-list-card {
  background: #fff;
  border: 1px solid var(--grey);
  border-left: 3px solid var(--blue);
  border-radius: var(--r);
  padding: 24px 28px;
  display: flex; align-items: center; gap: 24px;
  transition: all 0.18s;
}
.announce-list-card:hover {
  border-left-color: var(--red);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateX(3px);
}
.announce-date-col {
  width: 80px; flex-shrink: 0;
  text-align: center;
}
.announce-day { font-size: 1.8rem; font-weight: 900; color: var(--navy); line-height: 1; }
.announce-mon { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--t3); }
.announce-sep { width: 1px; height: 60px; background: var(--grey); flex-shrink: 0; }
.announce-body { flex: 1; }
.announce-body h3 { font-size: 1rem; color: var(--navy); margin-bottom: 6px; }
.announce-body p  { font-size: 0.875rem; color: #555; line-height: 1.6; }
.coming-state {
  text-align: center; padding: 80px 24px;
}
.coming-icon { font-size: 3rem; opacity: 0.3; margin-bottom: 16px; }
.coming-state h3 { color: var(--navy); margin-bottom: 8px; }
.coming-state p   { color: #888; font-size: 0.9rem; }

/* ══════════ ABOUT PAGE ══════════ */
.mission-block {
  padding: 80px 0;
  background: var(--navy);
}
.mission-inner {
  max-width: 760px;
}
.mission-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--t2);
  font-weight: 300;
}
.mission-text strong { color: #fff; font-weight: 700; }

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.staff-card {
  background: var(--navy2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px;
  text-align: center;
}
.staff-av {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--navy3);
  border: 2px solid var(--border);
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--t3);
}
.staff-name  { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.staff-role  { font-size: 0.78rem; font-weight: 600; color: var(--red); text-transform: uppercase; letter-spacing: 0.06em; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.value-card {
  padding: 28px;
  border: 1px solid var(--grey);
  border-radius: var(--r);
  border-top: 3px solid var(--red);
}
.value-icon { font-size: 1.6rem; margin-bottom: 14px; }
.value-card h3 { color: var(--navy); margin-bottom: 8px; font-size: 1rem; }
.value-card p  { font-size: 0.875rem; color: #555; line-height: 1.7; }

/* Timeline */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: '';
  position: absolute; left: 7px; top: 6px; bottom: 0;
  width: 2px; background: var(--grey);
}
.tl-item { position: relative; margin-bottom: 36px; }
.tl-dot {
  position: absolute; left: -29px; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--red);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--red);
}
.tl-date {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--red); margin-bottom: 6px;
}
.tl-title { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.tl-text  { font-size: 0.875rem; color: #555; line-height: 1.7; }

/* ══════════ FOOTER ══════════ */
.footer {
  background: var(--navy);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand .nav-badge { width: 30px; height: 30px; font-size: 0.7rem; }
.footer-brand span { font-weight: 800; color: #fff; font-size: 0.95rem; }
.footer-blurb { font-size: 0.85rem; color: var(--t3); line-height: 1.7; max-width: 300px; }
.footer-head  { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--t3); margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.875rem; color: var(--t2); transition: color 0.15s; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}
.footer-copy { font-size: 0.78rem; color: var(--t3); }
.footer-red  { color: var(--red); font-weight: 700; }

/* ══════════ UTILS ══════════ */
.red    { color: var(--red); }
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt { margin-top: 16px; }
.mb { margin-bottom: 16px; }

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 1024px) {
  .join-layout { grid-template-columns: 1fr; }
  .form-card { position: static; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 28px 0; }
  .stats-bar .stat-item { border-right: none; border-bottom: 1px solid var(--border); padding: 0 0 24px; }
  .stats-bar .stat-item:nth-child(3), .stats-bar .stat-item:nth-child(4) { padding-bottom: 0; border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .nav-links { display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; background: var(--navy); flex-direction: column; padding: 16px; border-bottom: 1px solid var(--border); gap: 2px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; }
  .nav-toggle { display: block; }
  .hero-ctas { flex-direction: column; max-width: 280px; }
  .hero-ctas .btn { text-align: center; justify-content: center; }
  .stats-bar { grid-template-columns: 1fr; border-top: none; }
  .stats-bar .stat-item { border-right: none; border-bottom: 1px solid var(--border); padding: 20px 0; }
  .stats-bar .stat-item:last-child { border-bottom: none; }
  .server-grid, .announce-grid, .values-grid, .staff-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .announce-list-card { flex-direction: column; align-items: flex-start; gap: 14px; }
  .announce-sep { width: 40px; height: 1px; }
}
@media (max-width: 480px) {
  .section { padding: 56px 0; }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
  .hero-inner { padding: 60px 20px 80px; }
}
