:root {
  --ink: #eef1e6;
  --paper: #f4f1e8;
  --muted: #aeb7aa;
  --dark: #07110c;
  --field: #142418;
  --field-2: #22351f;
  --blue: #1d6fac;
  --red: #b6161b;
  --gold: #d49830;
  --line: rgba(244, 241, 232, 0.18);
  --shadow: rgba(0, 0, 0, 0.42);
  font-family: "Agency FB", "Bahnschrift Condensed", "Arial Narrow", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--dark);
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(6, 12, 8, 0.72);
  backdrop-filter: blur(10px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.brand-lockup img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: 0 6px 18px var(--shadow);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.6vw, 32px);
  color: #f6f1dc;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-nav a {
  opacity: 0.86;
}

.site-nav a:hover {
  opacity: 1;
  color: var(--gold);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  min-height: clamp(540px, 84vh, 820px);
  display: grid;
  align-items: end;
  padding: 110px clamp(18px, 5vw, 78px) 56px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.18) 54%, rgba(0, 0, 0, 0.48)),
    linear-gradient(0deg, rgba(7, 17, 12, 0.78), rgba(7, 17, 12, 0.05) 44%),
    url("./assets/ifk_hero_background.png") center / cover no-repeat;
}

.hero-copy {
  width: min(680px, 100%);
  text-shadow: 0 3px 18px var(--shadow);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(3rem, 10vw, 7.8rem);
  line-height: 0.88;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 0.96;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

p {
  color: #d9ded2;
  font-family: "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.62;
}

.hero-copy p:not(.eyebrow) {
  max-width: 560px;
  font-size: clamp(1rem, 2.1vw, 1.3rem);
}

.hero-actions,
.enlist-section {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.button.primary {
  background: var(--red);
  color: #fff7ef;
  box-shadow: 0 10px 24px rgba(154, 16, 20, 0.32);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #101712;
}

.status-strip div {
  min-height: 94px;
  padding: 22px clamp(14px, 3vw, 34px);
  border-right: 1px solid var(--line);
}

.status-strip div:last-child {
  border-right: 0;
}

.status-strip span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.status-strip strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.35rem, 2.6vw, 2.4rem);
  text-transform: uppercase;
}

.section {
  padding: clamp(62px, 9vw, 116px) clamp(18px, 5vw, 78px);
}

.section-heading {
  max-width: 880px;
  margin-bottom: 34px;
}

.campaign-section {
  padding-top: clamp(38px, 5vw, 64px);
  padding-bottom: clamp(38px, 5vw, 64px);
  background:
    linear-gradient(135deg, rgba(18, 36, 24, 0.96), rgba(9, 20, 14, 0.98)),
    var(--field);
}

.campaign-section .section-heading {
  margin-bottom: 22px;
}

.campaign-section h2 {
  font-size: clamp(1.8rem, 4vw, 3.25rem);
}

.campaign-grid,
.objective-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.campaign-grid article,
.objective-list article {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.campaign-grid article {
  min-height: 0;
  padding: 18px;
}

.campaign-grid p {
  margin-bottom: 0;
}

.campaign-grid article:nth-child(2),
.objective-list article:nth-child(3n + 2) {
  border-color: rgba(29, 111, 172, 0.38);
}

.campaign-grid article:nth-child(3),
.objective-list article:nth-child(3n) {
  border-color: rgba(182, 22, 27, 0.36);
}

.map-band {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 0.85fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(54px, 8vw, 98px) clamp(18px, 5vw, 78px);
  background:
    linear-gradient(90deg, rgba(14, 22, 25, 0.9), rgba(32, 43, 37, 0.94)),
    #111a1d;
}

.operation-figure {
  margin: 0;
}

.operation-image {
  width: 100%;
  min-height: 360px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  object-fit: cover;
  filter: contrast(1.08) brightness(0.94);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.28);
}

.operation-figure figcaption {
  margin-top: 9px;
  color: #b9c0b7;
  font-family: "Segoe UI", sans-serif;
  font-size: 0.86rem;
  font-style: italic;
}

.objectives-section {
  color: #172018;
  background: var(--paper);
}

.objectives-section .eyebrow,
.objectives-section h2,
.objectives-section h3 {
  color: #182116;
}

.objectives-section p {
  color: #4c5648;
}

.objective-list article {
  background: #fffdf7;
  border-color: #d5cdbc;
}

.objective-list span {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--red);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.player-stats-section {
  background:
    linear-gradient(135deg, rgba(7, 17, 12, 0.96), rgba(17, 26, 29, 0.96)),
    #101a16;
}

.player-stats-section .section-heading {
  max-width: 960px;
}

.player-stats-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.player-stats-summary article,
.leaderboard-panel,
.pilot-spotlight {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.player-stats-summary article {
  min-height: 112px;
  padding: 18px;
}

.player-stats-summary span,
.pilot-spotlight dt,
.pilot-search span {
  display: block;
  color: var(--muted);
  font-family: "Segoe UI", sans-serif;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.player-stats-summary strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.35rem, 2.4vw, 2.15rem);
  line-height: 1;
  text-transform: uppercase;
}

.player-stats-layout {
  display: grid;
  grid-template-columns: minmax(560px, 1fr) minmax(280px, 360px);
  gap: 14px;
  align-items: start;
}

.leaderboard-panel,
.pilot-spotlight {
  padding: 14px;
}

.leaderboard-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.stat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stat-tabs button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  color: #f6f1dc;
  background: rgba(255, 255, 255, 0.08);
  font-family: "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.stat-tabs button.active {
  border-color: var(--gold);
  color: #1a1207;
  background: var(--gold);
}

.pilot-search {
  display: grid;
  gap: 6px;
  width: min(230px, 100%);
}

.pilot-search input {
  width: 100%;
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  padding: 7px 10px;
  color: #f6f1dc;
  background: rgba(0, 0, 0, 0.22);
  font-family: "Segoe UI", sans-serif;
}

.pilot-search input::placeholder {
  color: rgba(246, 241, 220, 0.48);
}

.leaderboard-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(0, 0, 0, 0.16);
}

.leaderboard-table th,
.leaderboard-table td {
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #f4f1e8;
  font-family: "Segoe UI", sans-serif;
  font-size: 0.88rem;
  text-align: left;
  white-space: nowrap;
}

.leaderboard-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #f6f1dc;
  background: #101712;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.leaderboard-table tr:last-child td {
  border-bottom: 0;
}

.pilot-name {
  font-weight: 800;
}

.coalition-pill {
  display: inline-flex;
  min-width: 48px;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}

.coalition-pill.blue {
  background: var(--blue);
}

.coalition-pill.red {
  background: var(--red);
}

.pilot-spotlight h3 {
  margin-bottom: 14px;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
}

.pilot-spotlight dl {
  display: grid;
  gap: 9px;
  margin: 0;
}

.pilot-spotlight dl div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.18);
}

.pilot-spotlight dd {
  margin: 5px 0 0;
  color: #f6f1dc;
  font-size: 1.25rem;
  font-weight: 900;
}

.sidewinder-section {
  padding: clamp(32px, 5vw, 52px) clamp(18px, 5vw, 78px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #0b120c;
}

.sidewinder-copy {
  display: grid;
  grid-template-columns: 86px minmax(0, 760px);
  gap: 18px;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.sidewinder-copy img {
  width: 86px;
  border-radius: 8px;
}

.sidewinder-copy h2 {
  margin-bottom: 8px;
  font-size: clamp(1.55rem, 3vw, 2.5rem);
}

.sidewinder-copy p:last-child {
  margin-bottom: 0;
}

.enlist-section {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(300px, 350px);
  gap: clamp(24px, 5vw, 62px);
  align-items: center;
  justify-content: space-between;
  padding: clamp(44px, 7vw, 78px) clamp(18px, 5vw, 78px);
  background:
    linear-gradient(90deg, rgba(182, 22, 27, 0.86), rgba(29, 111, 172, 0.72)),
    #1a2028;
}

.enlist-section h2 {
  max-width: 850px;
  margin-bottom: 0;
}

.discord-widget {
  width: min(350px, 100%);
  justify-self: end;
}

.discord-widget iframe {
  display: block;
  width: 100%;
  height: 500px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: #111214;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 78px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #050908;
  font-family: "Segoe UI", sans-serif;
  font-size: 0.86rem;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 12px 18px 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(6, 12, 8, 0.94);
  }

  .site-nav.open {
    display: grid;
    gap: 14px;
  }

  .status-strip,
  .campaign-grid,
  .objective-list,
  .player-stats-summary,
  .player-stats-layout,
  .map-band,
  .enlist-section {
    grid-template-columns: 1fr;
  }

  .leaderboard-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .pilot-search {
    width: 100%;
  }

  .discord-widget {
    justify-self: start;
  }

  .status-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: 76vh;
    padding-top: 94px;
  }

  .brand-lockup span {
    display: none;
  }

  .sidewinder-copy {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }
}
