:root {
  --bg: #06090f;
  --bg-alt: #0c111a;
  --surface: #121a28;
  --surface-hover: #1a2435;
  --text: #ecf1f7;
  --muted: #aeb8c6;
  --accent: #d3a663;
  --accent-strong: #f0c47c;
  --line: #2a364b;
  --shadow: rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Outfit", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #070b13 0%, #05070b 60%, #050608 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

.bg-atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 10% 0%, rgba(211, 166, 99, 0.2), transparent 35%),
    radial-gradient(circle at 90% 8%, rgba(98, 130, 178, 0.15), transparent 40%),
    linear-gradient(transparent 96%, rgba(211, 166, 99, 0.08) 100%);
  background-size: auto, auto, 100% 34px;
}

.site-header {
  width: min(1160px, calc(100% - 2rem));
  margin: 1.2rem auto 0;
  padding: 0.85rem 1rem;
  position: relative;
  z-index: 40;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(9, 13, 20, 0.72);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.3rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  margin-top: 0.2rem;
}

.brand-mark {
  width: 1.8rem;
  aspect-ratio: 1;
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #19120a;
  background: linear-gradient(145deg, var(--accent-strong), var(--accent));
}

.brand-text {
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.62rem;
}

.header-auth {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.auth-btn {
  border: 1px solid rgba(211, 166, 99, 0.55);
  background: linear-gradient(180deg, rgba(30, 40, 58, 0.95), rgba(16, 24, 36, 0.95));
  color: var(--text);
  border-radius: 10px;
  padding: 0.58rem 0.85rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  max-width: 210px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-btn:hover {
  border-color: rgba(240, 196, 124, 0.8);
}

.auth-btn-alt {
  border-color: rgba(74, 90, 115, 0.65);
  background: rgba(17, 26, 40, 0.9);
  font-size: 0.82rem;
}

.nav-group {
  position: relative;
  min-width: 170px;
}

.nav-group summary {
  list-style: none;
  color: var(--text);
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 1.03rem;
  font-weight: 600;
  padding: 0.58rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(74, 90, 115, 0.65);
  background: linear-gradient(180deg, rgba(23, 33, 48, 0.88), rgba(14, 21, 31, 0.88));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.nav-group summary::-webkit-details-marker {
  display: none;
}

.nav-group summary::after {
  content: "▾";
  color: var(--accent);
  font-size: 0.8rem;
  transform: translateY(-1px);
}

.nav-group summary:hover {
  border-color: rgba(211, 166, 99, 0.65);
  transform: translateY(-1px);
}

.nav-group[open] summary {
  border-color: rgba(211, 166, 99, 0.8);
  background: linear-gradient(180deg, rgba(33, 43, 61, 0.95), rgba(17, 24, 36, 0.95));
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 0.42rem);
  left: 0;
  min-width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(211, 166, 99, 0.35);
  background: rgba(9, 13, 20, 0.96);
  box-shadow: 0 20px 36px -28px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  z-index: 20;
}

.dropdown-panel a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.93rem;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid rgba(42, 54, 75, 0.7);
  transition: color 180ms ease, background-color 180ms ease;
}

.dropdown-panel a:last-child {
  border-bottom: none;
}

.dropdown-panel a:hover {
  color: var(--text);
  background: rgba(211, 166, 99, 0.12);
}

main {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  padding: 5.5rem 0 5rem;
  max-width: 760px;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.8rem;
  margin: 0 0 0.8rem;
}

h1,
h2,
h3 {
  font-family: "Barlow Condensed", sans-serif;
  margin: 0;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.hero-copy {
  color: var(--muted);
  margin: 1.25rem 0 2rem;
  max-width: 62ch;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  text-decoration: none;
  font-weight: 600;
  padding: 0.78rem 1.2rem;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #1d1610;
  background: linear-gradient(145deg, var(--accent-strong), var(--accent));
  box-shadow: 0 10px 24px -14px rgba(240, 196, 124, 0.7);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.dept-section {
  padding: 1rem 0 2rem;
}

.section-heading h2 {
  font-size: clamp(1.85rem, 4vw, 3rem);
}

.dept-grid {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.dept-card {
  background: linear-gradient(180deg, rgba(20, 29, 43, 0.92), rgba(12, 17, 27, 0.92));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem;
  box-shadow: 0 12px 34px -26px var(--shadow);
  transition: border-color 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.dept-card:hover {
  border-color: rgba(211, 166, 99, 0.7);
  transform: translateY(-4px);
  background: linear-gradient(180deg, rgba(26, 36, 53, 0.95), rgba(14, 20, 32, 0.95));
}

.dept-tag {
  display: inline-flex;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-strong);
}

.dept-card h3 {
  font-size: 1.5rem;
  margin-top: 0.35rem;
}

.dept-card p {
  margin: 0.65rem 0 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

.inline-link {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(211, 166, 99, 0.45);
}

.operations {
  margin-top: 1.25rem;
  padding: 1.2rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(14, 20, 32, 0.9), rgba(9, 14, 22, 0.9));
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.op-item {
  display: grid;
  gap: 0.1rem;
}

.op-item strong {
  font-family: "Barlow Condensed", sans-serif;
  color: var(--accent-strong);
  font-size: 2rem;
  line-height: 1;
}

.op-item span {
  color: var(--muted);
  font-size: 0.92rem;
}

.join {
  margin: 3.25rem 0;
  padding: 2rem;
  border-radius: 16px;
  background:
    linear-gradient(0deg, rgba(4, 7, 12, 0.88), rgba(8, 12, 18, 0.88)),
    repeating-linear-gradient(
      -45deg,
      rgba(211, 166, 99, 0.09),
      rgba(211, 166, 99, 0.09) 10px,
      transparent 10px,
      transparent 18px
    );
  border: 1px solid rgba(211, 166, 99, 0.3);
}

.join h2 {
  margin-top: 0.2rem;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.join p {
  color: var(--muted);
  line-height: 1.7;
  max-width: 62ch;
}

.site-footer {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 0 2rem;
  color: #92a0b2;
  font-size: 0.86rem;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms ease, transform 500ms ease;
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .dept-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .operations {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: stretch;
  }

  .header-auth {
    width: 100%;
    margin-left: 0;
    justify-content: flex-end;
  }

  .nav-group {
    width: 100%;
    min-width: 0;
  }

  .dropdown-panel {
    position: static;
    margin-top: 0.35rem;
  }

  .hero {
    padding-top: 3.8rem;
  }

  .dept-grid,
  .operations {
    grid-template-columns: 1fr;
  }

  .join {
    padding: 1.4rem;
  }
}
