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

:root,
[data-theme="dark"] {
  --bg: #090d13;
  --panel: #101720;
  --panel2: #131d28;
  --text: #f3f5f7;
  --muted: #9aa6b4;
  --line: rgba(210, 224, 239, 0.13);
  --accent: #c7d4df;
  --blue: #91a9bd;
  --card: #0f1620;
  --code-bg: #0a1018;
  --button-primary-bg: #dce5ec;
  --button-primary-text: #0a1017;
  --announcement-bg: #111923;
  --hero-grad: radial-gradient(ellipse at 78% 48%, rgba(56, 79, 101, 0.25), transparent 38%), linear-gradient(115deg, #0a0f16 0%, #0b1119 55%, #111b26 100%);
  --join-grad: radial-gradient(ellipse at 15% 50%, rgba(80, 105, 128, 0.16), transparent 38%), #0b1118;
  --logo-filter: none;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] {
  --bg: #f4f6f8;
  --panel: #ffffff;
  --panel2: #eef1f5;
  --text: #0d1218;
  --muted: #5a6a7a;
  --line: rgba(20, 35, 55, 0.12);
  --accent: #2a3a4a;
  --blue: #3d5a73;
  --card: #ffffff;
  --code-bg: #e8eef4;
  --button-primary-bg: #0d1218;
  --button-primary-text: #f4f6f8;
  --announcement-bg: #e6ebf1;
  --hero-grad: radial-gradient(ellipse at 78% 48%, rgba(140, 170, 200, 0.2), transparent 38%), linear-gradient(115deg, #f0f3f7 0%, #e8edf3 55%, #dde4ec 100%);
  --join-grad: radial-gradient(ellipse at 15% 50%, rgba(140, 170, 200, 0.15), transparent 38%), #eef2f6;
  --logo-filter: invert(1) brightness(0.18);
  --shadow: 0 12px 40px rgba(20, 40, 70, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  transition: background 0.25s ease, color 0.25s ease;
}
a { color: inherit; text-decoration: none; }

.announcement {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--announcement-bg);
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
}
.announcement strong { color: var(--text); }
.pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #9cb8a5;
  box-shadow: 0 0 10px #9cb8a5;
}
.announcement-sep { opacity: 0.5; }

.site-header {
  height: 82px;
  padding: 0 7.2%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 20;
  background: var(--bg);
  transition: background 0.25s ease;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 38px; height: 38px;
  object-fit: contain;
  display: block;
  filter: var(--logo-filter);
  transition: filter 0.25s ease;
}
.brand-name {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.7px;
}
.brand-name b { color: var(--blue); margin: 0 4px; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  margin-right: 18px;
}

.theme-toggle {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  width: 38px; height: 38px;
  border-radius: 6px;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 15px;
  transition: border-color 0.2s;
}
.theme-toggle:hover { border-color: var(--blue); }
[data-theme="dark"] .theme-icon-light { display: none; }
[data-theme="light"] .theme-icon-dark { display: none; }

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 11px;
  color: var(--muted);
}
.nav a:hover, .text-link:hover { color: var(--text); }
.nav .nav-join {
  padding: 12px 16px;
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.5px;
}
.nav-join span { margin-left: 10px; color: var(--blue); }
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
}

.hero {
  min-height: 670px;
  position: relative;
  overflow: hidden;
  padding: 120px 10% 80px;
  background: var(--hero-grad);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(128,128,128,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(128,128,128,0.04) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(90deg, black, transparent 90%);
}
.hero:after {
  content: "";
  position: absolute;
  right: 7%; top: 14%;
  width: 390px; height: 470px;
  border: 1px solid var(--line);
  transform: skew(-17deg);
  box-shadow: 30px 30px 0 rgba(128,128,128,0.03), 60px 60px 0 rgba(128,128,128,0.02);
}
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.eyebrow, .section-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.3px;
  color: var(--muted);
}
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 22px; height: 1px; background: var(--blue); }

.hero h1,
.section-main h2,
.progression h2,
.join-copy h2,
.server-copy h2,
.team-heading h2,
.training-heading h2 {
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-size: clamp(60px, 8.5vw, 110px);
  line-height: 0.84;
  letter-spacing: -1.5px;
  margin: 26px 0 22px;
  font-weight: 800;
}
.hero h1 em,
.section-main h2 em,
.progression h2 em,
.join-copy h2 em,
.server-copy h2 em,
.team-heading h2 em,
.training-heading h2 em {
  font-style: normal;
  color: var(--blue);
}
.hero-copy {
  max-width: 500px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.button {
  height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  transition: transform 0.15s, opacity 0.15s;
}
.button-primary {
  background: var(--button-primary-bg);
  color: var(--button-primary-text);
}
.button-primary:hover { transform: translateY(-2px); opacity: 0.95; }
.button-quiet {
  border: 1px solid var(--line);
  color: var(--text);
}
.button-quiet:hover { border-color: var(--blue); }
.hero-note {
  margin-top: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 9px;
  letter-spacing: 1.8px;
  color: var(--muted);
}
.note-line { width: 32px; height: 1px; background: var(--blue); }
.hero-side {
  position: absolute;
  right: 12%; top: 42%;
  z-index: 1;
  color: var(--muted);
}
.side-label { font-size: 9px; letter-spacing: 2px; }
.side-number {
  font-family: 'Barlow Condensed';
  font-size: 56px;
  font-weight: 700;
  margin-top: 14px;
}
.side-number span { font-size: 22px; color: var(--blue); margin: 0 8px; }
.side-rule { width: 140px; height: 1px; background: var(--line); margin: 14px 0; }
.hero-side p {
  font-size: 9px;
  line-height: 1.9;
  letter-spacing: 1.4px;
}
.hero-bottom {
  position: absolute;
  bottom: 24px;
  left: 10%; right: 10%;
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  letter-spacing: 1.6px;
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 32px 10%;
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 4px 22px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat:first-child { padding-left: 0; }
.stat:last-child { border: 0; }
.stat strong {
  font-family: 'Barlow Condensed';
  font-size: 32px;
  line-height: 1;
}
.stat span {
  font-size: 8px;
  letter-spacing: 1.4px;
  color: var(--muted);
  font-weight: 700;
}
.stat-status strong {
  font-family: Inter;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.stat-status i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #9cb8a5;
}

.section { padding: 100px 10%; }
.section-kicker { padding-top: 8px; }

.about { display: grid; grid-template-columns: 1fr 3fr; gap: 28px; }
.section-main { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.section-main h2 { font-size: 72px; margin: 0; }
.about-text { padding-top: 4px; }
.lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text);
  margin: 0 0 16px;
}
.about-text p:not(.lead) {
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
}
.about-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.about-list li {
  font-size: 13px;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
}
.about-list li::before {
  content: "▸";
  color: var(--blue);
  font-weight: 700;
}
.text-link {
  display: inline-block;
  margin-top: 22px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.3px;
  border-bottom: 1px solid var(--blue);
  padding-bottom: 8px;
}
.text-link span { margin-left: 12px; }

.server-section {
  padding: 90px 10%;
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.server-inner { max-width: 1100px; margin: auto; }
.server-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 28px;
}
.server-copy h2 { font-size: 60px; margin: 0 0 18px; }
.server-copy p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  margin: 0 0 26px;
  max-width: 420px;
}
.server-code-card {
  background: var(--code-bg);
  border: 1px solid var(--line);
  padding: 34px 30px;
  text-align: center;
  box-shadow: var(--shadow);
}
.code-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 16px;
}
.code-value {
  font-family: 'Barlow Condensed', monospace;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--text);
  margin-bottom: 20px;
  word-break: break-all;
}
.copy-btn {
  background: var(--button-primary-bg);
  color: var(--button-primary-text);
  border: 0;
  height: 42px;
  padding: 0 26px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
}
.copy-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.copy-btn.copied { background: #9cb8a5; color: #0a1017; }
.code-hint {
  margin: 14px 0 0;
  font-size: 11px;
  color: var(--muted);
}

.progression {
  background: var(--bg);
  padding: 95px 10%;
}
.progression-inner { max-width: 1100px; margin: auto; }
.progression-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 28px 0 46px;
  gap: 36px;
}
.progression-heading p {
  max-width: 320px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  margin: 0;
}
.steps { border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: 72px 1fr 28px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.step-index {
  font-family: 'Barlow Condensed';
  font-size: 22px;
  color: var(--blue);
}
.step h3 {
  font-size: 13px;
  letter-spacing: 1.1px;
  margin: 0 0 6px;
}
.step p { margin: 0; color: var(--muted); font-size: 12px; }
.step-arrow { color: var(--blue); font-size: 18px; }
.small-print {
  font-size: 10px;
  color: var(--muted);
  margin-top: 18px;
}

.training-section {
  padding: 95px 10%;
  background: var(--panel);
  border-top: 1px solid var(--line);
}
.training-inner { max-width: 1100px; margin: auto; }
.training-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 36px;
  margin: 28px 0 40px;
}
.training-heading h2 { font-size: 60px; margin: 0; }
.training-heading p {
  max-width: 300px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  margin: 0;
}
.stages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.stage-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 24px 20px;
  transition: border-color 0.2s;
}
.stage-card:hover { border-color: var(--blue); }
.stage-num {
  font-family: 'Barlow Condensed';
  font-size: 28px;
  color: var(--blue);
  margin-bottom: 8px;
}
.stage-card h3 {
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.stage-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}
.training-note {
  margin-top: 28px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  background: var(--code-bg);
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
.training-note strong { color: var(--text); }

.team-section {
  padding: 95px 10%;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.team-inner { max-width: 1100px; margin: auto; }
.team-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 36px;
  margin: 28px 0 46px;
}
.team-heading h2 { font-size: 60px; margin: 0; }
.team-heading p {
  max-width: 290px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  margin: 0;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}
.team-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 26px 22px;
  transition: border-color 0.2s, transform 0.2s;
}
.team-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
}
.team-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.team-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--panel2);
}
.team-meta h3 {
  margin: 0 0 3px;
  font-size: 14px;
  font-weight: 700;
}
.team-role {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.1px;
  color: var(--blue);
  text-transform: uppercase;
}
.team-desc {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 16px;
}
.team-discord {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  padding-bottom: 5px;
}
.team-discord:hover { border-color: var(--blue); color: var(--blue); }
.team-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 36px;
  color: var(--muted);
  font-size: 14px;
}

.join-section {
  padding: 90px 10%;
  display: flex;
  align-items: center;
  gap: 8%;
  background: var(--join-grad);
}
.join-mark {
  width: 180px; height: 180px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transform: rotate(-8deg);
  flex-shrink: 0;
  padding: 26px;
}
.join-mark img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: var(--logo-filter);
}
.join-copy h2 { font-size: 68px; margin: 20px 0; }
.join-copy p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 22px;
}
.join-copy .button { margin-top: 4px; }

footer {
  padding: 30px 7.2%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.footer-brand .brand-logo { width: 30px; height: 30px; }
footer p {
  font-size: 9px;
  color: var(--muted);
  max-width: 340px;
  line-height: 1.7;
}
.copyright {
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--muted);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .server-grid { grid-template-columns: 1fr; gap: 28px; }
  .team-heading, .training-heading, .progression-heading {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 800px) {
  .site-header { height: 68px; padding: 0 6%; }
  .header-actions { margin-right: 0; }
  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--panel);
    padding: 20px 6%;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav .nav-join { text-align: center; }
  .hero { min-height: 620px; padding: 100px 7% 80px; }
  .hero h1 { font-size: 70px; }
  .hero-side { display: none; }
  .hero:after { right: -200px; opacity: 0.55; }
  .hero-bottom { left: 7%; right: 7%; font-size: 7px; }
  .stats {
    padding: 24px 7%;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  .stat { padding: 0 8px; border: 0; }
  .section { padding: 70px 7%; }
  .about { grid-template-columns: 1fr; gap: 20px; }
  .section-main { grid-template-columns: 1fr; gap: 20px; }
  .section-main h2 { font-size: 60px; }
  .server-section, .training-section, .team-section, .progression {
    padding: 70px 7%;
  }
  .server-copy h2, .team-heading h2, .training-heading h2 { font-size: 48px; }
  .join-section { padding: 70px 7%; gap: 24px; }
  .join-mark { width: 100px; height: 100px; padding: 14px; }
  .join-copy h2 { font-size: 54px; }
  footer { padding: 26px 7%; flex-wrap: wrap; }
  footer p { order: 3; flex-basis: 100%; }
}

@media (max-width: 440px) {
  .brand-name { font-size: 9px; letter-spacing: 1px; }
  .hero h1 { font-size: 58px; }
  .hero-actions {
    flex-direction: column;
    max-width: 260px;
    align-items: stretch;
  }
  .button { justify-content: space-between; }
  .stats { padding-left: 4%; padding-right: 4%; }
  .stat strong { font-size: 26px; }
  .step { grid-template-columns: 42px 1fr 18px; }
  .step h3 { font-size: 11px; }
  .join-mark { display: none; }
  .join-copy h2 { font-size: 50px; }
  .copyright { white-space: normal; }
  .code-value { font-size: 30px; letter-spacing: 2px; }
}
