:root {
  --bg: #06090b;
  --bg-soft: #0d1416;
  --panel: #11181b;
  --panel-soft: #182125;
  --line: rgba(216, 191, 119, 0.16);
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #f3efe4;
  --muted: #aab1a5;
  --gold: #d4b26f;
  --gold-bright: #f0cf86;
  --olive: #77856d;
  --danger: #db7563;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.35);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Bahnschrift, "Arial Narrow", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(212, 178, 111, 0.08), transparent 25%),
    linear-gradient(180deg, #050708 0%, #0a0f10 28%, #06090b 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(6, 9, 11, 0.55), rgba(6, 9, 11, 0.92)),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
  pointer-events: none;
  opacity: 0.55;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-shell {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(4, 7, 8, 0.92) 0%, rgba(4, 7, 8, 0.72) 42%, rgba(4, 7, 8, 0.52) 100%),
    linear-gradient(180deg, rgba(4, 7, 8, 0.1), rgba(4, 7, 8, 0.82));
}

.topbar,
.hero-content {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 0;
}

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

.brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.brand span {
  display: grid;
  gap: 4px;
}

.brand strong {
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand small,
.hero-text,
.section-copy p,
.intel-bar p,
.server-footer,
.ops-subline,
.event-summary,
.event-meta,
.form-note,
.copy-stack p,
.footer p {
  color: var(--muted);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.nav a {
  color: #f6e6bf;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.1fr 0.55fr;
  gap: 34px;
  align-items: end;
  min-height: calc(92vh - 92px);
  padding: 64px 0 58px;
}

.eyebrow,
.intel-label,
.panel-kicker {
  margin: 0 0 10px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-copy h1,
.section-copy h2 {
  margin: 0;
  line-height: 0.97;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 10ch;
  font-size: clamp(3rem, 6vw, 5.8rem);
}

.hero-text {
  max-width: 62ch;
  font-size: 1.04rem;
  line-height: 1.7;
}

.hero-actions,
.hero-note,
.server-grid,
.legal-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font: inherit;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #16110a;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-soft);
}

.button-small {
  padding: 10px 15px;
  font-size: 0.9rem;
}

.hero-note {
  margin-top: 18px;
}

.hero-note span {
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.24);
  color: #e9d3a1;
}

.hero-command-card,
.intel-bar article,
.ops-panel,
.calendar-panel,
.event-panel,
.signup-panel,
.recruit-card,
.legal-link {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015)),
    rgba(15, 21, 23, 0.92);
  box-shadow: var(--shadow);
}

.hero-command-card {
  padding: 24px;
  backdrop-filter: blur(8px);
}

.hero-command-card img {
  width: 100%;
  max-width: 180px;
  margin-top: 18px;
}

.command-card-head strong {
  font-size: 1.5rem;
  text-transform: uppercase;
}

.command-points {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.intel-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: -42px auto 0;
  position: relative;
  z-index: 2;
}

.intel-bar article {
  padding: 22px;
}

.intel-bar strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.22rem;
  text-transform: uppercase;
}

.section-block {
  padding: 88px 0 0;
}

.section-copy {
  max-width: 76ch;
  margin-bottom: 28px;
}

.section-copy h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.section-copy p {
  line-height: 1.7;
}

.operations-grid,
.planner-layout,
.recruiting-grid,
.media-grid {
  display: grid;
  gap: 18px;
}

.operations-grid {
  grid-template-columns: 1.25fr 0.8fr 0.8fr;
}

.ops-panel,
.calendar-panel,
.event-panel,
.signup-panel,
.recruit-card {
  padding: 24px;
}

.ops-panel-primary {
  background:
    linear-gradient(135deg, rgba(212, 178, 111, 0.1), rgba(255,255,255,0.02)),
    rgba(15, 21, 23, 0.96);
}

.ops-head,
.calendar-toolbar,
.event-topline,
.server-footer,
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.ops-panel h3,
.calendar-panel h3,
.event-panel h3,
.signup-panel h3,
.recruit-card h3,
.copy-stack h3 {
  margin: 0;
  text-transform: uppercase;
}

.server-grid {
  margin: 24px 0 18px;
}

.server-stat {
  min-width: 145px;
  padding: 15px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.18);
}

.server-stat span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  text-transform: uppercase;
}

.server-stat strong {
  font-size: 1.25rem;
}

.procedure-list {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.news-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.news-list div {
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.news-list strong {
  display: block;
  margin-bottom: 6px;
}

.news-list span {
  color: var(--muted);
}

.section-dark {
  position: relative;
}

.section-dark::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 44px;
  width: min(1280px, calc(100% - 12px));
  height: calc(100% - 44px);
  border: 1px solid rgba(212, 178, 111, 0.1);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(212, 178, 111, 0.05), transparent 18%),
    rgba(11, 16, 18, 0.62);
  z-index: -1;
}

.planner-layout {
  grid-template-columns: 0.88fr 1.15fr 0.84fr;
  align-items: start;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-weekdays {
  margin: 16px 0 12px;
  text-align: center;
  color: var(--muted);
}

.calendar-day {
  min-height: 88px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.calendar-day.muted {
  opacity: 0.32;
}

.calendar-day.has-event {
  border-color: rgba(212, 178, 111, 0.45);
}

.calendar-day.is-selected {
  outline: 2px solid var(--gold);
}

.calendar-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-top: 10px;
  border-radius: 999px;
  background: var(--gold);
}

.event-summary,
.event-meta {
  line-height: 1.7;
}

.event-meta {
  display: grid;
  gap: 6px;
  margin: 18px 0 20px;
}

.tag {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(212, 178, 111, 0.14);
  color: #f5ddaa;
  white-space: nowrap;
}

.slot-groups {
  display: grid;
  gap: 14px;
}

.slot-group {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(0, 0, 0, 0.16);
}

.slot-group h4 {
  margin: 0 0 10px;
  text-transform: uppercase;
}

.slot-list {
  display: grid;
  gap: 10px;
}

.slot-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.slot-item.is-filled {
  border-left: 3px solid var(--olive);
}

.slot-item.is-open {
  border-left: 3px solid var(--gold);
}

.slot-assignee {
  color: var(--muted);
  text-align: right;
}

.slot-assignee strong {
  display: block;
  color: var(--text);
}

.signup-form {
  display: grid;
  gap: 14px;
}

.signup-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
}

.signup-form input,
.signup-form select,
.signup-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  background: rgba(4, 7, 8, 0.92);
  color: var(--text);
  font: inherit;
}

.recruiting-grid {
  grid-template-columns: repeat(3, 1fr);
}

.recruit-card {
  background:
    linear-gradient(180deg, rgba(212, 178, 111, 0.08), rgba(255,255,255,0.02)),
    rgba(15, 21, 23, 0.94);
}

.recruit-card .role-meta {
  margin: 10px 0 14px;
  color: #f0d79d;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.88rem;
}

.recruit-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.split-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.showcase-media,
.showcase-copy {
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(14, 20, 22, 0.9);
  box-shadow: var(--shadow);
}

.showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-copy {
  padding: 28px;
}

.copy-stack {
  display: grid;
  gap: 18px;
}

.copy-stack article {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.copy-stack article:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.media-grid {
  grid-template-columns: 1.2fr 1fr 1fr;
}

.media-large,
.media-small {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  background: #0d1315;
  box-shadow: var(--shadow);
}

.media-large {
  min-height: 460px;
}

.media-small {
  min-height: 220px;
}

.media-large img,
.media-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.legal-block {
  padding-bottom: 46px;
}

.legal-links {
  margin-top: 8px;
}

.legal-link {
  flex: 1 1 220px;
  padding: 18px 20px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer {
  margin: 80px auto 40px;
  padding: 24px 0 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-links {
  gap: 18px;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.cookie-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(500px, calc(100% - 32px));
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(8, 11, 12, 0.97);
  box-shadow: var(--shadow);
}

.legal-page {
  width: min(980px, calc(100% - 32px));
  margin: 24px auto;
  padding: 28px;
  border: 1px solid var(--line-soft);
  border-radius: 28px;
  background: rgba(16, 24, 27, 0.94);
  box-shadow: var(--shadow);
}

.legal-page h1,
.legal-page h2 {
  margin-top: 0;
  text-transform: uppercase;
}

.legal-page p,
.legal-page li,
.legal-page address {
  color: var(--muted);
  line-height: 1.75;
}

.legal-page .warning {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(212, 178, 111, 0.24);
  background: rgba(212, 178, 111, 0.08);
  color: #f4deb0;
}

@media (max-width: 1150px) {
  .hero-content,
  .operations-grid,
  .planner-layout,
  .recruiting-grid,
  .split-showcase,
  .media-grid,
  .intel-bar {
    grid-template-columns: 1fr;
  }

  .media-large,
  .media-small {
    min-height: 260px;
  }
}

@media (max-width: 820px) {
  .topbar,
  .hero-content,
  .footer,
  .ops-head,
  .calendar-toolbar,
  .event-topline,
  .server-footer,
  .cookie-banner {
    display: grid;
  }

  .topbar {
    padding-top: 16px;
  }

  .hero-shell {
    min-height: auto;
  }

  .hero-content {
    min-height: auto;
    padding: 46px 0 38px;
  }

  .hero-copy h1 {
    font-size: clamp(2.6rem, 12vw, 4rem);
  }

  .shell,
  .topbar {
    width: min(100% - 20px, 1240px);
  }

  .section-block {
    padding-top: 64px;
  }

  .calendar-day {
    min-height: 72px;
    padding: 10px;
  }
}
