@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Rajdhani:wght@600;700&display=swap');

:root {
  --bg: #07090f;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --accent: #ff8a3d;
  --accent-2: #7c5dff;
  --accent-3: #4ade80;
  --text: #f7f9ff;
  --muted: #9ca4b8;
  --border: rgba(255, 255, 255, 0.16);
  --blur: 20px;
  --shadow: 0 25px 60px rgba(0,0,0,0.55);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
}

body {
  margin: 0;
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(124,93,255,0.12), transparent 35%),
              radial-gradient(circle at 80% 0%, rgba(255,138,61,0.14), transparent 35%),
              var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  cursor: url('https://cur.cursors-4u.net/cursors/cur-13/cur1158.cur'), auto;
}

main { flex: 1; }

a { color: inherit; text-decoration: none; }
a, button { cursor: pointer; }
.muted { color: var(--muted); }

header.glass-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(7,9,15,0.55);
  backdrop-filter: blur(var(--blur));
  border-bottom: 1px solid var(--border);
  z-index: 20;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.header,
.navbar,
header.glass-nav {
  width: 100%;
  left: 0;
  right: 0;
}

header.glass-nav.scrolled {
  background: rgba(7,9,15,0.78);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

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

.brand-mark {
  height: 34px;
  width: auto;
  object-fit: contain;
}

.logo {
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

nav a {
  padding: 8px 12px;
  border-radius: 12px;
  transition: all 0.2s ease;
  color: var(--muted);
}

nav a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

nav a.pill {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #0b0d11;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(124,93,255,0.35);
}

nav a.nav-btn.join-btn {
  display: flex;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  border: none;
  color: #0b0d11;
  box-shadow: 0 10px 25px rgba(124, 93, 255, 0.35);
  height: 42px;
  padding: 0 18px;
  align-items: center;
  line-height: 1;
  font-size: 16px;
}

nav a.nav-btn.store-btn {
  display: flex;
  height: 42px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--muted);
  box-shadow: none;
  font-size: 16px;
  align-items: center;
  line-height: 1;
}

nav a.nav-btn svg {
  width: 20px;
  height: 20px;
}

.btn-icon {
  width: 14px;
  height: 14px;
  margin: 0;
  flex-shrink: 0;
}

.join-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #0b0d11;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  box-shadow: 0 10px 25px rgba(124, 93, 255, 0.35);
  transition: all 0.2s ease;
}

.join-btn:hover {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(124, 93, 255, 0.45);
  filter: brightness(1.08);
}

.join-btn .btn-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.join-btn .join-icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.join-btn span {
  line-height: 1;
}

.store-btn {
  background: linear-gradient(
    135deg,
    rgba(255, 168, 76, 0.14),
    rgba(255, 120, 50, 0.08)
  );
  border: 1px solid rgba(255, 168, 76, 0.18);
}

.store-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 168, 76, 0.22),
    rgba(255, 120, 50, 0.12)
  );
  border-color: rgba(255, 168, 76, 0.3);
}

.store-btn .btn-icon {
  width: 14px;
  height: 14px;
  margin: 0;
}

.header-inner,
.nav-inner {
  max-width: calc(100% - 20px);
  margin: 0 auto;
}

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  gap: 4px;
  flex-direction: column;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
}

.hero {
  position: relative;
  min-height: 100vh;
  background: url('/assets/images/hero.webp') center/cover no-repeat;
  display: flex;
  align-items: center;
  padding: 0 24px;
}

.hero-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(7,9,15,0.85) 25%, rgba(7,9,15,0.65) 55%, rgba(7,9,15,0.75)),
              radial-gradient(circle at 20% 20%, rgba(124,93,255,0.25), transparent 35%),
              radial-gradient(circle at 80% 10%, rgba(255,138,61,0.25), transparent 40%);
}

.hero-content {
  position: relative;
  max-width: 660px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 40px;
  animation: float 8s ease-in-out infinite;
}

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

.eyebrow {
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
}

.hero h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(48px, 7vw, 78px);
  margin: 0;
  line-height: 1.05;
}

.tagline {
  color: #d5dbec;
  margin: 0 0 8px;
  font-size: 18px;
}

.hero-copy {
  max-width: 540px;
  margin: 0;
  font-size: 14px;
}

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

.btn {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  padding: 12px 18px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.2s ease;
  text-align: center;
}

.btn:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--shadow);
  background: rgba(255,255,255,0.09);
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #0b0d11;
  border: none;
}

.btn.ghost {
  border-color: rgba(255,255,255,0.35);
}

.btn.outline {
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.03);
}

.btn.small { padding: 10px 14px; font-size: 14px; }
.btn.full { width: 100%; }

.direct-connect {
  display: flex;
  align-items: center;
  gap: 12px;
}

.copy-feedback {
  opacity: 0;
  color: var(--accent-3);
  font-weight: 700;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.copy-feedback.show {
  opacity: 1;
  transform: translateY(-3px);
}

.status-section {
  padding: 120px 24px 90px;
  background: radial-gradient(circle at 80% 0%, rgba(96,165,250,0.12), transparent 50%),
              linear-gradient(180deg, rgba(7,9,15,0.95), rgba(7,9,15,1));
  display: flex;
  justify-content: center;
}

.status-card {
  width: min(960px, 100%);
  padding: 28px;
}

.server-status-card {
  width: 100%;
  max-width: 280px;
  padding: 16px;
  border-radius: 14px;
  display: grid;
  gap: 12px;
  align-self: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}

.server-status-card h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
}

.status-players {
  margin: 4px 0 0;
  color: #d5dbec;
  font-weight: 600;
  font-size: 15px;
}

.glass {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow);
  padding: 16px;
}

.status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.label {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 6px;
}

.status-indicator {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.28);
  box-shadow: 0 0 18px rgba(0,0,0,0.35);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.status-indicator.online {
  background: #22c55e;
  box-shadow: 0 0 18px #22c55e;
}

.status-indicator.offline {
  background: #ef4444;
  box-shadow: 0 0 18px #ef4444;
}

.status-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
  gap: 12px;
  margin: 18px 0;
}

.stat {
  background: rgba(255,255,255,0.04);
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.value { font-size: 20px; margin: 4px 0 0; }

.stats-strip {
  margin: 30px 24px 70px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 12px;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124,93,255,0.18), rgba(255,138,61,0.18));
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.pill-icon {
  font-size: 18px;
  background: rgba(255,255,255,0.08);
  padding: 10px;
  border-radius: 50%;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-header h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 34px;
  margin: 0;
}

.features {
  padding: 110px 24px;
}

.feature-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.feature-rows { display: grid; gap: 16px; }
.feature-row {
  padding: 22px 22px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.feature-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.08), transparent 55%);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.feature-row:hover::before { opacity: 1; }
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(124,93,255,0.35), rgba(255,138,61,0.35));
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.feature-icon.xl { width: 56px; height: 56px; font-size: 24px; }
.chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  font-weight: 700;
}

.departments {
  padding: 100px 24px 80px;
}

.dept-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.dept-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.dept-card {
  overflow: hidden;
  padding: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dept-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.dept-content {
  padding: 16px;
  display: grid;
  gap: 8px;
}

.gallery {
  padding: 80px 24px;
}

.gallery-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.gallery-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow);
}
.featured-media {
  padding: 0 24px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  align-items: center;
}
.featured-media img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.featured-copy { display: grid; gap: 8px; }

.economy {
  padding: 100px 24px;
}
.economy-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  align-items: center;
}
.flow-node {
  padding: 20px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  text-align: center;
}
.flow-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  margin: 0 auto 10px;
  background: linear-gradient(135deg, rgba(124,93,255,0.35), rgba(255,138,61,0.35));
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.flow-connector {
  height: 3px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

.quick-links {
  margin: 0 24px 80px;
  padding: 24px;
}

.footer {
  padding: 28px 24px;
  border-top: 1px solid var(--border);
  background: rgba(7,9,15,0.92);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.hero, .status-section, .features, .departments, .gallery, .economy, .quick-links { scroll-margin-top: 90px; }

@media (max-width: 900px) {
  nav {
    position: fixed;
    inset: 70px 16px auto 16px;
    background: rgba(7,9,15,0.95);
    padding: 16px;
    flex-direction: column;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    display: none;
  }
  nav.open { display: flex; }
  .burger { display: flex; }
  .hero-shell { grid-template-columns: 1fr; gap: 20px; }
  .server-status-card { max-width: 320px; }
  .steps.flow { grid-template-columns: 1fr; }
  .connector { display: none; }
  .feature-row { grid-template-columns: auto 1fr; }
  .team-grid { grid-template-columns: repeat(3, 220px); }
}

@media (max-width: 640px) {
  .hero-content { margin-top: 80px; }
  .hero { min-height: auto; padding: 110px 24px 60px; }
  .status-card { padding: 22px; }
  .gallery-grid img { height: 160px; }
  .team-grid { grid-template-columns: repeat(2, minmax(160px, 220px)); }
}

/* Landing-only additions */
.identity {
  padding: 90px 24px;
}
.identity-banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  align-items: center;
}
.identity-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-sub {
  padding: 140px 24px 60px;
}
.hero-sub .muted { color: var(--muted); }
.rules-hero h1 { margin: 8px 0; }

.rules-grid {
  padding: 0 24px 100px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.rule ul { padding-left: 18px; color: var(--muted); }
.rule-section {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.rule-section h3 { margin: 0 0 10px; }
.rules-longform { padding: 0 24px 110px; display: grid; gap: 4px; }
.rule-section:last-child { border-bottom: none; }
.rule-section ul { padding-left: 20px; color: var(--muted); margin: 0; }
.rule-section li { margin-bottom: 6px; line-height: 1.6; }
.rules-layout { display: grid; grid-template-columns: 240px 1fr; gap: 18px; padding: 0 24px 80px; align-items: start; }
.rules-index {
  position: sticky;
  top: 128px;
  max-height: calc(100vh - 148px);
  overflow-y: auto;
  scrollbar-width: none;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  display: grid;
  gap: 8px;
}
.rules-index::-webkit-scrollbar { display: none; }
.rules-index h4 { margin: 0 0 8px; }
.rules-index a { color: var(--muted); }
.rules-index a:hover { color: var(--text); }
.rules-tabs { padding: 0 24px 20px; display: flex; gap: 8px; }
.rules-tabs .tab {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.rules-tabs .tab:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.rules-tabs .tab.active { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #0b0d11; }
[data-rule-set] { display: none; }
[data-rule-set].active { display: block; }
.rule li { margin-bottom: 6px; }

.accordion {
  padding: 0 24px 100px;
  display: grid;
  gap: 10px;
}
.accordion-header {
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  color: var(--muted);
}
.accordion-item.open .accordion-body { max-height: 400px; }
.accordion-item { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.accordion-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.team-grid {
  padding: 0 24px 60px;
  display: grid;
  grid-template-columns: repeat(5, 220px);
  justify-content: center;
  gap: 30px;
  width: 100%;
}
.team-section { padding: 20px 0; margin-bottom: 40px; text-align: center; }
.team-section-title { display: none; }
.team-card {
  width: 220px;
  height: 260px;
  padding: 20px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.05), transparent 45%), rgba(255,255,255,0.04);
}
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
  display: block;
}
.team-meta h3 { margin: 4px 0 2px; }
.team-meta p { margin: 0; }
.role { color: var(--muted); font-size: 12px; margin-top: 2px; }
.bio {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin-top: 5px;
}
.team-meta .small { font-size: 12px; }
.socials {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.socials a {
  color: var(--muted);
}
.socials i {
  font-size: 14px;
  opacity: 0.7;
  transition: 0.2s;
}
.socials i:hover {
  opacity: 1;
}

@media (max-width: 1000px) {
  .team-grid { grid-template-columns: repeat(3, 220px); }
}

@media (max-width: 600px) {
  .team-grid { grid-template-columns: repeat(2, minmax(160px, 220px)); }
  .team-card {
    width: 100%;
    height: auto;
    min-height: 260px;
  }
}

.community-links {
  padding: 0 24px 100px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.community-button {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.community-button:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.community-button .icon { font-size: 20px; }
.careers-hero {
  padding: 150px 24px 70px;
  position: relative;
  overflow: hidden;
}
.careers-hero-premium {
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(120deg, rgba(7,9,15,0.8), rgba(7,9,15,0.45)),
    url('https://images.unsplash.com/photo-1480714378408-67cf0d13bc1b?auto=format&fit=crop&w=1800&q=80') center/cover no-repeat;
}
.careers-hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(124,93,255,0.18), transparent 32%),
    radial-gradient(circle at 80% 10%, rgba(255,138,61,0.16), transparent 26%);
}
.careers-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 168, 76, 0.12), transparent 35%),
    radial-gradient(circle at 80% 20%, rgba(96, 165, 250, 0.16), transparent 30%);
  pointer-events: none;
}
.careers-hero-content {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}
.careers-hero-content h1 {
  margin: 0;
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
}
.careers-hero-content p {
  max-width: 620px;
  margin: 0;
}
.career-section {
  padding: 0 24px 100px;
}
.career-section-head {
  width: min(1180px, 100%);
  margin: 0 auto 20px;
  align-items: end;
}
.career-section-head .muted {
  max-width: 420px;
}
.department-feature-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.department-feature {
  min-height: 360px;
  padding: 0;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-end;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.department-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7,9,15,0.08), rgba(7,9,15,0.92)),
    var(--feature-image) center/cover no-repeat;
}
.department-feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 70px rgba(0,0,0,0.45);
  border-color: rgba(255,255,255,0.24);
}
.department-feature-content {
  position: relative;
  z-index: 1;
  padding: 28px;
  display: grid;
  gap: 14px;
}
.department-feature-content h3 {
  margin: 0;
  font-size: 30px;
  line-height: 1.05;
}
.department-feature-content p {
  margin: 0;
  max-width: 470px;
  color: #dce1f0;
}
.career-mini-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.career-mini-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 220px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.career-mini-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(0,0,0,0.35);
  border-color: rgba(255,255,255,0.22);
}
.career-mini-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124,93,255,0.22), rgba(255,138,61,0.22));
  font-size: 22px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}
.career-mini-card h3,
.future-opportunities h2,
.lspd-cta h2 {
  margin: 0;
}
.career-mini-card p {
  margin: 0;
  color: var(--muted);
}
.career-mini-card .btn {
  width: fit-content;
  margin-top: auto;
}
.future-opportunities {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 32px;
  display: grid;
  gap: 14px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03)),
    radial-gradient(circle at top right, rgba(255,138,61,0.12), transparent 30%);
}
.future-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.future-tags span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: #dce1f0;
}
.lspd-hero {
  position: relative;
  min-height: 82vh;
  padding: 0 24px;
  display: flex;
  align-items: center;
  background: url('https://images.unsplash.com/photo-1494905998402-395d579af36f?auto=format&fit=crop&w=1800&q=80') center/cover no-repeat;
}
.lspd-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(7,9,15,0.84), rgba(7,9,15,0.52)),
    radial-gradient(circle at 20% 20%, rgba(68,138,255,0.15), transparent 32%);
}
.lspd-hero-content {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}
.lspd-hero-content h1 {
  margin: 0;
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(46px, 6vw, 82px);
  line-height: 1.02;
}
.lspd-section {
  padding: 0 24px 100px;
}
.lspd-about,
.lspd-cta {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 28px;
}
.lspd-about {
  display: grid;
  gap: 16px;
}
.lspd-about p {
  margin: 0;
  color: #dce1f0;
}
.lspd-division-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.lspd-division-card {
  min-height: 180px;
  display: grid;
  gap: 10px;
  align-content: start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lspd-division-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(0,0,0,0.35);
}
.lspd-division-card h3,
.career-path-rank {
  margin: 0;
}
.lspd-division-card p,
.career-path-step p {
  margin: 0;
  color: var(--muted);
}
.career-path {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
}
.career-path-step {
  min-height: 170px;
  display: grid;
  gap: 12px;
  align-content: start;
}
.career-path-rank {
  display: inline-block;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}
.career-path-arrow {
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.4);
  font-size: 30px;
}
.lspd-gallery {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.lspd-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
.lspd-gallery img:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
  filter: saturate(1.06);
}
.lspd-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.cta-block {
  margin: 0 24px 40px;
  padding: 24px;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
}
.offerings {
  padding: 0 24px 90px;
}
.offer-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}
.offer-list li {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  box-shadow: var(--shadow);
}

.how-to, .community { padding: 90px 24px; }
.steps {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.steps.flow { grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; }
.connector { height: 3px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); border-radius: 6px; box-shadow: 0 8px 20px rgba(0,0,0,0.35); }
.step {
  display: grid;
  gap: 10px;
  align-items: center;
  grid-template-columns: auto 1fr auto;
}
.step-number {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(124,93,255,0.35), rgba(255,138,61,0.35));
  font-weight: 700;
}
.community { padding: 100px 24px; }
.community-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  align-items: center;
  overflow: hidden;
}
.community-text ul { padding-left: 18px; color: var(--muted); }
.community-text li { margin-bottom: 8px; }
.community-media img { width: 100%; border-radius: 14px; border: 1px solid var(--border); object-fit: cover; box-shadow: var(--shadow); }
.alt-bg { background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent); border-block: 1px solid rgba(255,255,255,0.04); }

@media (max-width: 1100px) {
  .career-path {
    grid-template-columns: 1fr;
  }
  .career-path-arrow {
    transform: rotate(90deg);
    min-height: 24px;
  }
}

@media (max-width: 900px) {
  .department-feature-grid {
    grid-template-columns: 1fr;
  }
  .lspd-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .careers-hero,
  .lspd-hero {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 60px;
  }
  .department-feature-content {
    padding: 22px;
  }
  .future-opportunities,
  .lspd-about,
  .lspd-cta {
    padding: 22px;
  }
}


.team-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

::-webkit-scrollbar-track {
  background: transparent;
  margin-top: 2px;
  margin-bottom: 2px;
}

::-webkit-scrollbar-thumb {
  border: none;
  border-radius: 0 !important;
  -webkit-border-radius: 0 !important;
  min-height: 30px;
  max-height: 30px;
  background: linear-gradient(
    to bottom,
    rgba(124, 93, 255, 0) 0%,
    rgba(124, 93, 255, 0.12) 10%,
    rgba(124, 93, 255, 0.55) 22%,
    rgba(124, 93, 255, 0.82) 35%,
    rgba(180, 110, 158, 0.78) 50%,
    rgba(255, 138, 61, 0.82) 65%,
    rgba(255, 138, 61, 0.55) 78%,
    rgba(255, 138, 61, 0.12) 90%,
    rgba(255, 138, 61, 0) 100%
  );
  box-shadow:
    0 0 4px rgba(124, 93, 255, 0.08),
    0 0 10px rgba(255, 138, 61, 0.05);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    to bottom,
    rgba(124, 93, 255, 0) 0%,
    rgba(124, 93, 255, 0.2) 10%,
    rgba(124, 93, 255, 0.7) 22%,
    rgba(124, 93, 255, 0.95) 35%,
    rgba(200, 115, 150, 0.9) 50%,
    rgba(255, 138, 61, 0.95) 65%,
    rgba(255, 138, 61, 0.7) 78%,
    rgba(255, 138, 61, 0.2) 90%,
    rgba(255, 138, 61, 0) 100%
  );
  box-shadow:
    0 0 6px rgba(124, 93, 255, 0.12),
    0 0 14px rgba(255, 138, 61, 0.08);
}
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.timeline-section {
  padding: 100px 0;
}

.timeline-section .section-header {
  padding: 0 24px;
  margin-bottom: 40px;
}

.timeline-scroll-wrap {
  position: relative;
  overflow-x: auto;
  overflow-y: visible;
  padding-bottom: 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(124,93,255,0.4) transparent;
  cursor: grab;
  /* allow the track to breathe past section edges */
  padding-left: 0;
  padding-right: 0;
}
.timeline-scroll-wrap:active {
  cursor: grabbing;
}

.timeline-track {
  display: flex;
  gap: 0;
  align-items: flex-start;
  padding: 48px 40px 32px;
  width: max-content;
  position: relative;
  z-index: 1;
}

.timeline-line {
  position: absolute;
  top: 96px;
  left: 40px;
  right: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent) 80%, rgba(255,138,61,0.15));
  pointer-events: none;
  width: calc(100% - 80px);
}
.timeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 220px;
  flex-shrink: 0;
  position: relative;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--accent-2);
  background: var(--bg);
  box-shadow: 0 0 12px rgba(124,93,255,0.5);
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  z-index: 2;
}

.timeline-node.future .timeline-dot {
  border-color: rgba(255,255,255,0.2);
  box-shadow: none;
  background: rgba(255,255,255,0.05);
}

.timeline-node:hover .timeline-dot {
  transform: scale(1.3);
  box-shadow: 0 0 20px rgba(124,93,255,0.7);
}

.timeline-node.future:hover .timeline-dot {
  box-shadow: 0 0 14px rgba(255,255,255,0.15);
}

.timeline-card {
  width: 100%;
  padding: 18px;
  display: grid;
  gap: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-node:hover .timeline-card {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(0,0,0,0.4);
}

.timeline-date {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-2);
}

.timeline-node.future .timeline-date {
  color: var(--muted);
}

.timeline-card h4 {
  margin: 0;
  font-size: 16px;
}

.timeline-card p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.timeline-node.future .timeline-card {
  opacity: 0.5;
  border-style: dashed;
}

@media (max-width: 640px) {
  .timeline-node { width: 180px; }
  .timeline-card { padding: 14px; }
}

/* ============================================================
   RULES PAGE CSS PATCH � replace your existing patch in styles.css
   ============================================================ */

/* -- COPY-LINK BUTTON ---------------------------------------- */
.copy-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 9px;
  padding: 4px 7px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.18s ease, background 0.18s ease, color 0.18s ease;
  vertical-align: middle;
  line-height: 1;
}

.rules-longform h3:hover .copy-link-btn,
.rules-longform h4:hover .copy-link-btn {
  opacity: 1;
}

.copy-link-btn:hover {
  background: rgba(124, 93, 255, 0.22);
  border-color: rgba(124, 93, 255, 0.4);
  color: var(--text);
}

/* -- STICKY SEARCH BAR --------------------------------------- */
/* Fixed to viewport � no flow/spacing side effects */
#rules-search-bar {
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 24px 0;
  pointer-events: none;
}

#rules-search-inner {
  pointer-events: all;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(7, 9, 15, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  padding: 7px 14px;
  width: min(340px, 100%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, width 0.25s ease;
}

#rules-search-inner:focus-within {
  border-color: rgba(124, 93, 255, 0.55);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.5),
    0 0 0 3px rgba(124, 93, 255, 0.12);
  width: min(620px, 100%);
}

.search-icon {
  color: var(--muted);
  flex-shrink: 0;
  transition: color 0.2s ease;
}

#rules-search-inner:focus-within .search-icon {
  color: var(--accent-2);
}

#rules-search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 500;
  min-width: 0;
}

#rules-search-input::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

#rules-search-clear {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
  padding: 0 2px;
  opacity: 0;
  pointer-events: none;
  transition: color 0.15s ease, opacity 0.15s ease;
  line-height: 1;
}

#rules-search-clear:hover {
  color: var(--text);
}

/* -- SEARCH RESULTS DROPDOWN --------------------------------- */
#rules-search-results {
  pointer-events: all;
  width: min(620px, calc(100% - 48px));
  margin-top: 6px;
  background: rgba(10, 12, 20, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height 0.25s ease, opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
}

#rules-search-results.open {
  max-height: 400px;
  opacity: 1;
  transform: translateY(0);
  overflow-y: auto;
}

.search-result {
  display: grid;
  gap: 2px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.15s ease;
  cursor: pointer;
}

.search-result:last-child { border-bottom: none; }
.search-result:hover { background: rgba(124, 93, 255, 0.1); }

.sr-heading {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.sr-section {
  font-size: 11px;
  color: var(--accent-2);
  font-weight: 600;
  letter-spacing: 0.3px;
  opacity: 0.8;
}

.sr-body {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 2px;
}

.search-mark {
  background: rgba(255, 138, 61, 0.28);
  color: var(--accent);
  border-radius: 3px;
  padding: 0 2px;
  font-weight: 700;
}

.search-other-tabs {
  padding: 10px 16px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: grid;
  gap: 8px;
}

.sr-tab-hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.sr-tab-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.sr-tab-switch {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.sr-tab-switch:hover {
  background: rgba(124, 93, 255, 0.2);
  border-color: rgba(124, 93, 255, 0.4);
}

.search-empty {
  padding: 16px;
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  text-align: center;
}

mark.inline-mark {
  background: rgba(255, 138, 61, 0.22);
  color: var(--accent);
  border-radius: 3px;
  padding: 0 2px;
  font-weight: 700;
}

/* -- INDEX � force sticky to work inside grid ---------------- */
/* align-items: stretch (the grid default) breaks sticky children */
.rules-layout {
  align-items: start;
}

.rules-index {
  position: sticky;
  /* nav (68px) + search bar (50px) + a little breathing room */
  top: 128px;
  max-height: calc(100vh - 148px);
  overflow-y: auto;
  scrollbar-width: none;
}

.rules-index::-webkit-scrollbar { display: none; }

.rules-index a {
  display: block;
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 13px;
  transition: color 0.15s ease, background 0.15s ease, padding-left 0.15s ease;
}

.rules-index a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.rules-index a.index-active {
  color: var(--accent);
  background: rgba(255, 138, 61, 0.1);
  padding-left: 12px;
  border-left: 2px solid var(--accent);
}

/* Push anchors down so they don't hide under the fixed nav + search */
.rules-longform h3[id],
.rules-longform h4[id] {
  scroll-margin-top: 140px;
}

/* Fix sticky � overflow:hidden on any ancestor kills position:sticky */
main {
  overflow: visible;
}

html, body {
  overflow-x: clip; /* use clip not hidden � hidden breaks sticky, clip doesn't */
}

.footer-legal {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-legal .contact {
  margin: 0;
  font-size: 0.9rem;
}

.footer-legal .contact a {
  color: inherit;
  text-decoration: underline;
}

.footer-legal .disclaimer {
  margin: 5px 0 0;
  font-size: 0.85rem;
  opacity: 0.85;
  line-height: 1.4;
}