/* AoT MC — wall / military / crimson & gold (Attack on Titan–inspired fan theme) */
:root {
  --bg-deep: #030508;
  --bg-elevated: #0a0d14;
  --bg-card: #0f1219;
  --border: rgba(255, 255, 255, 0.07);
  --text: #e6e8ef;
  --muted: #8b93a5;
  --accent: #c41e3a;
  --accent-deep: #7a1528;
  --accent-soft: rgba(196, 30, 58, 0.38);
  --gold: #d4af37;
  --gold-dim: #8a7028;
  --gold-soft: rgba(212, 175, 55, 0.22);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.62);
  --radius: 12px;
  --font-sans: "Outfit", system-ui, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --hero-spot-x: 50%;
  --hero-spot-y: 40%;
  --corps-survey: #3d8a72;
  --corps-garrison: #8faa3c;
  --corps-mp: #c41e3a;
  --content-max: 1280px;
  --aot-wall-line: rgba(255, 255, 255, 0.045);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--text);
  background:
    radial-gradient(ellipse 120% 80% at 50% -15%, rgba(196, 30, 58, 0.18), transparent 50%),
    radial-gradient(ellipse 90% 60% at 100% 30%, rgba(20, 28, 48, 0.65), transparent),
    radial-gradient(ellipse 70% 50% at 0% 75%, rgba(45, 90, 72, 0.1), transparent),
    radial-gradient(ellipse 55% 45% at 85% 92%, rgba(120, 20, 35, 0.12), transparent),
    linear-gradient(180deg, #020305 0%, var(--bg-deep) 45%, #05070c 100%);
  line-height: 1.6;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Subtle “wall” horizontal bands + vignette */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      180deg,
      transparent 0,
      transparent 5px,
      var(--aot-wall-line) 5px,
      var(--aot-wall-line) 6px
    ),
    radial-gradient(ellipse 85% 65% at 50% 50%, transparent 30%, rgba(0, 0, 0, 0.55) 100%);
  opacity: 1;
}

/* Allow copying server IP and reading code snippets */
code,
.ip-value,
#server-ip,
kbd,
.selectable {
  -webkit-user-select: text;
  user-select: text;
}

::selection {
  background: rgba(212, 175, 55, 0.22);
  color: inherit;
}

code::selection,
.ip-value::selection,
#server-ip::selection {
  background: rgba(212, 175, 55, 0.35);
}

main {
  position: relative;
  z-index: 1;
}

.page-ambient {
  pointer-events: none;
  position: fixed;
  inset: -20%;
  z-index: 0;
  background:
    radial-gradient(ellipse 50% 42% at 20% 30%, rgba(196, 30, 58, 0.16), transparent 60%),
    radial-gradient(ellipse 45% 40% at 85% 20%, rgba(212, 175, 55, 0.09), transparent 55%),
    radial-gradient(ellipse 55% 45% at 70% 85%, rgba(61, 138, 114, 0.1), transparent 58%),
    radial-gradient(ellipse 40% 35% at 10% 80%, rgba(80, 90, 140, 0.12), transparent 50%);
  animation: ambient-drift 28s ease-in-out infinite alternate;
  opacity: 0.95;
}

@keyframes ambient-drift {
  0% {
    transform: translate(0, 0) scale(1);
    filter: hue-rotate(0deg);
  }
  100% {
    transform: translate(2%, -1.5%) scale(1.03);
    filter: hue-rotate(6deg);
  }
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.07;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 10001;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  box-shadow: 0 0 20px rgba(196, 30, 58, 0.6);
  transition: width 0.1s ease-out;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-size: 0.9em;
  padding: 0.15em 0.4em;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(4, 5, 9, 0.97), rgba(6, 8, 14, 0.88));
  border-bottom: 1px solid rgba(196, 30, 58, 0.18);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.header-inner {
  max-width: min(1480px, 100%);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.65rem 0.9rem;
  flex-wrap: wrap;
  row-gap: 0.55rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
  z-index: 2;
  flex-shrink: 0;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: conic-gradient(from 210deg, var(--accent), #2a1518 40%, var(--gold) 75%, var(--accent));
  box-shadow: 0 0 24px var(--accent-soft);
  animation: pulse-mark 4s ease-in-out infinite;
}

@keyframes pulse-mark {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.15);
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  z-index: 2;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.site-header.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav {
  display: flex;
  gap: 0.45rem 0.65rem;
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.nav a {
  font-size: 0.8rem;
  color: var(--muted);
  transition: color 0.2s ease, text-shadow 0.2s ease;
  position: relative;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

@media (min-width: 1100px) {
  .nav {
    gap: 0.5rem 0.85rem;
  }

  .nav a {
    font-size: 0.82rem;
  }
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-cta {
  color: var(--text) !important;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}

.nav-cta::after {
  display: none;
}

.lang-switch {
  display: flex;
  border-radius: 999px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
  z-index: 2;
  flex-shrink: 0;
}

.lang-btn {
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.65rem;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--gold-soft), transparent);
  color: var(--text);
}

.hero {
  position: relative;
  min-height: min(92vh, 960px);
  display: flex;
  align-items: center;
  padding: 4rem 1.5rem 6rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(108deg, transparent 0%, transparent 44%, rgba(196, 30, 58, 0.09) 49.5%, transparent 55%),
    radial-gradient(ellipse 70% 55% at 50% 100%, rgba(0, 0, 0, 0.55), transparent 70%);
  opacity: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(
      circle at var(--hero-spot-x) var(--hero-spot-y),
      rgba(196, 30, 58, 0.22),
      transparent 45%
    ),
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(196, 30, 58, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 50% at 100% 40%, rgba(212, 175, 55, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 40% at 0% 80%, rgba(80, 100, 140, 0.2), transparent 45%),
    linear-gradient(180deg, #0a0c12, var(--bg-deep));
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black, transparent);
  opacity: 0.5;
}

.hero-orb {
  position: absolute;
  z-index: 0;
  width: min(520px, 80vw);
  height: min(520px, 80vw);
  left: 50%;
  top: 18%;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 30, 58, 0.2), transparent 65%);
  filter: blur(40px);
  animation: float-orb 12s ease-in-out infinite;
  pointer-events: none;
}

@keyframes float-orb {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.9;
  }
  50% {
    transform: translateY(24px) scale(1.05);
    opacity: 1;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.hero-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
  animation: fade-up 0.8s ease both;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.75rem, 7vw, 4.35rem);
  line-height: 1.05;
  margin: 0 0 1.25rem;
  letter-spacing: 0.04em;
  text-transform: none;
  background: linear-gradient(165deg, #ffffff 0%, #d8dce6 38%, var(--gold) 72%, #c9a227 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 28px rgba(196, 30, 58, 0.35)) drop-shadow(0 0 40px rgba(0, 0, 0, 0.85));
  animation: fade-up 0.85s ease 0.08s both;
}

.hero-lead {
  margin: 0 auto 1.75rem;
  max-width: 580px;
  color: var(--muted);
  font-size: 1.05rem;
  animation: fade-up 0.9s ease 0.14s both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-stat {
  min-width: 140px;
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(15, 17, 24, 0.65);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.hero-stat-value {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.hero-stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.hero-scroll-hint {
  position: absolute;
  z-index: 2;
  bottom: 1.5rem;
  left: 50%;
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  opacity: 0.75;
  animation: bounce-hint 2.4s ease-in-out infinite;
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  border-radius: 2px;
}

@keyframes bounce-hint {
  0%,
  100% {
    transform: translate(-50%, 0);
    opacity: 0.55;
  }
  50% {
    transform: translate(-50%, 6px);
    opacity: 1;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #8b1528);
  color: #fff;
  box-shadow: 0 12px 40px var(--accent-soft);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(196, 30, 58, 0.45);
}

.btn-accent {
  border-color: rgba(212, 175, 55, 0.45);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(255, 255, 255, 0.04));
  color: #fff;
}

.btn-accent:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 12px 36px rgba(212, 175, 55, 0.2);
}

.btn-ghost {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-small {
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
}

.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::before {
  content: "";
  position: absolute;
  inset: -40% auto -40% -30%;
  width: 40%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-18deg) translateX(-180%);
  animation: shine 4.5s ease-in-out infinite;
}

@keyframes shine {
  0%,
  40% {
    transform: skewX(-18deg) translateX(-180%);
  }
  60%,
  100% {
    transform: skewX(-18deg) translateX(280%);
  }
}

.btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}

.section {
  padding: 5.25rem 1.75rem;
}

main section[id] {
  scroll-margin-top: 5.5rem;
}

.section-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.65rem;
}

.eyebrow-gold {
  color: var(--gold);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.4vw, 2.45rem);
  margin: 0 0 0.75rem;
  padding-bottom: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #eef0f5;
  text-shadow:
    0 0 48px rgba(196, 30, 58, 0.2),
    0 2px 0 rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
  display: inline-block;
  width: 100%;
  max-width: 100%;
}

.section-head h2::after {
  content: "";
  display: block;
  width: min(200px, 45%);
  height: 2px;
  margin: 0.65rem auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.9;
}

.section-sub {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.about {
  background: linear-gradient(180deg, var(--bg-deep) 0%, #0c0e14 40%, var(--bg-elevated) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  position: relative;
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.045), transparent 42%), var(--bg-card);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.35s ease;
}

.card:hover {
  border-color: rgba(212, 175, 55, 0.18);
}

/* Mouse-follow spotlight — same crimson radial as #hero-bg first layer */
.card::before,
.app-card::before,
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at var(--tx, 50%) var(--ty, 50%),
    rgba(196, 30, 58, 0.22),
    transparent 45%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.card-tilt:hover::before {
  opacity: 1;
}

.card-tilt:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.25);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}

.card-icon {
  display: block;
  font-size: 0.75rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
  opacity: 0.85;
}

.card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.gameplay {
  background: var(--bg-elevated);
}

.tabs {
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.tab-btn {
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.tab-btn:hover {
  color: var(--text);
  border-color: var(--border);
}

.tab-btn.active {
  color: #fff;
  border-color: rgba(212, 175, 55, 0.45);
  background: linear-gradient(135deg, rgba(196, 30, 58, 0.35), rgba(212, 175, 55, 0.12));
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.tab-panel {
  padding: 0.25rem 0.5rem 0.75rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
  animation: tab-fade 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.tab-panel[hidden] {
  display: none;
}

@keyframes tab-fade {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.992);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.modpack {
  background: linear-gradient(180deg, var(--bg-elevated), var(--bg-deep));
}

.modpack-panel {
  position: relative;
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid var(--border);
  padding: 2.5rem 2rem;
  overflow: hidden;
  background: radial-gradient(120% 100% at 10% 0%, rgba(212, 175, 55, 0.14), transparent 55%), var(--bg-card);
  box-shadow: var(--shadow);
}

.modpack-glow {
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 120deg, transparent, rgba(196, 30, 58, 0.15), transparent, rgba(212, 175, 55, 0.12), transparent);
  animation: spin-slow 28s linear infinite;
  opacity: 0.5;
  pointer-events: none;
}

@keyframes spin-slow {
  to {
    transform: rotate(360deg);
  }
}

.modpack-copy {
  position: relative;
  max-width: 640px;
}

.modpack-lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.modpack-specs {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.modpack-specs strong {
  color: var(--text);
}

.modpack-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.modpack-note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.videos {
  background: var(--bg-deep);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.video-frame {
  margin: 0;
}

.video-shell {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: var(--shadow);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.video-frame:hover .video-shell {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
}

.video-shell iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-shell video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  background: #000;
}

.video-shell iframe[hidden] {
  display: none;
}

.video-shell video[hidden] {
  display: none;
}

.video-placeholder {
  position: absolute;
  inset: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.35);
}

.video-placeholder[hidden] {
  display: none;
}

.video-frame figcaption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.features {
  background: linear-gradient(180deg, #080a10 0%, var(--bg-elevated) 50%, #0a0c14 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}

.feature-card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.22);
}

/* Keep feature grid look; .card-tilt adds heavier lift/shadow — override */
.feature-card.card-tilt:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.22);
  box-shadow: var(--shadow);
}

.feature-zoom {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  text-align: left;
}

.feature-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, #1a1f2e, #0d0f16);
  overflow: hidden;
}

.feature-img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-zoom:hover .feature-img {
  transform: scale(1.06);
}

.feature-img:not([hidden]) + .feature-placeholder {
  display: none;
}

.feature-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  margin: 1rem;
  border-radius: 10px;
}

.feature-zoom-icon {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--gold);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.feature-zoom:hover .feature-zoom-icon {
  opacity: 1;
  transform: translateY(0);
}

/* Marley soldier slot — cinematic overlay + hover glow */
.feature-card--marley .feature-media {
  box-shadow:
    inset 0 0 0 1px rgba(196, 30, 58, 0.22),
    inset 0 -40px 80px rgba(4, 6, 12, 0.55);
}

.feature-card--marley .feature-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 45%, rgba(4, 6, 12, 0.75)),
    radial-gradient(ellipse 90% 65% at 75% 18%, rgba(196, 30, 58, 0.18), transparent 52%),
    radial-gradient(ellipse 55% 45% at 12% 88%, rgba(212, 175, 55, 0.1), transparent 50%),
    linear-gradient(118deg, rgba(255, 255, 255, 0.04) 0%, transparent 38%);
  opacity: 1;
  transition: opacity 0.45s ease, filter 0.45s ease;
}

.feature-card--marley:hover .feature-media::after {
  opacity: 0.88;
}

.feature-card--marley .feature-img {
  filter: saturate(1.06) contrast(1.03);
}

.feature-card--marley:hover .feature-img {
  filter: saturate(1.14) contrast(1.05);
}

.feature-card--marley .feature-zoom-icon {
  z-index: 2;
  box-shadow: 0 0 18px rgba(196, 30, 58, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .feature-card--marley .feature-media::after,
  .feature-card--marley .feature-img {
    transition: none;
  }

  .feature-card--chunk-restore .feature-media::after,
  .feature-card--chunk-restore .feature-img,
  .feature-card--mp-chapter2 .feature-media::after,
  .feature-card--mp-chapter2 .feature-img {
    transition: none;
  }
}

/* Chunk restore — cool stone wall, subtle damage tint */
.feature-card--chunk-restore .feature-media {
  box-shadow:
    inset 0 0 0 1px rgba(120, 140, 170, 0.2),
    inset 0 -36px 70px rgba(4, 6, 12, 0.65);
}

.feature-card--chunk-restore .feature-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(195deg, rgba(8, 12, 20, 0.35) 0%, transparent 42%),
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(196, 30, 58, 0.12), transparent 58%),
    radial-gradient(ellipse 80% 50% at 80% 100%, rgba(60, 80, 110, 0.2), transparent 55%);
  opacity: 1;
  transition: opacity 0.45s ease;
}

.feature-card--chunk-restore:hover .feature-media::after {
  opacity: 0.9;
}

.feature-card--chunk-restore .feature-img {
  filter: saturate(0.95) contrast(1.06);
}

.feature-card--chunk-restore:hover .feature-img {
  filter: saturate(1.02) contrast(1.08);
}

.feature-card--chunk-restore .feature-zoom-icon {
  z-index: 2;
  box-shadow: 0 0 16px rgba(100, 130, 170, 0.35);
}

/* MP / chapter 2 — inner-ring authority, green + gold */
.feature-card--mp-chapter2 .feature-media {
  box-shadow:
    inset 0 0 0 1px rgba(212, 175, 55, 0.2),
    inset 0 -40px 80px rgba(4, 6, 12, 0.55);
}

.feature-card--mp-chapter2 .feature-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 40%, rgba(4, 6, 12, 0.72)),
    radial-gradient(ellipse 75% 55% at 22% 22%, rgba(60, 110, 85, 0.22), transparent 50%),
    radial-gradient(ellipse 60% 50% at 88% 85%, rgba(212, 175, 55, 0.12), transparent 48%),
    linear-gradient(105deg, rgba(255, 255, 255, 0.035) 0%, transparent 40%);
  opacity: 1;
  transition: opacity 0.45s ease;
}

.feature-card--mp-chapter2:hover .feature-media::after {
  opacity: 0.88;
}

.feature-card--mp-chapter2 .feature-img {
  filter: saturate(1.05) contrast(1.03);
}

.feature-card--mp-chapter2:hover .feature-img {
  filter: saturate(1.12) contrast(1.05);
}

.feature-card--mp-chapter2 .feature-zoom-icon {
  z-index: 2;
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.32);
}

.feature-card h3 {
  margin: 0;
  padding: 1.1rem 1.25rem 0.35rem;
  font-size: 1.05rem;
}

.feature-card--title-only h3 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
  padding: 1.2rem 1rem 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: #f0f1f5;
  text-shadow: 0 0 24px rgba(196, 30, 58, 0.12);
}

.feature-card:nth-child(-n + 3) {
  grid-column: span 2;
}

.feature-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.feature-card:nth-child(5) {
  grid-column: 4 / span 2;
}

.regiments {
  position: relative;
  background: linear-gradient(180deg, #020305 0%, #0b0e16 48%, #030508 100%);
  overflow: hidden;
  border-top: 1px solid rgba(196, 30, 58, 0.12);
}

.regiments .section-inner {
  position: relative;
  z-index: 1;
}

.regiments-wall {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  pointer-events: none;
  background-image: repeating-linear-gradient(
      90deg,
      transparent,
      transparent 52px,
      rgba(255, 255, 255, 0.035) 52px,
      rgba(255, 255, 255, 0.035) 53px
    ),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.2) 0 22px, transparent 22px 44px);
  mask-image: radial-gradient(ellipse 85% 70% at 50% 40%, black 20%, transparent 75%);
}

.eyebrow-corps {
  color: var(--accent);
  letter-spacing: 0.32em;
}

.regiments-title {
  font-family: var(--font-display);
  text-shadow: 0 0 48px rgba(196, 30, 58, 0.22);
}

.regiment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.regiment-card {
  --reg-accent: var(--gold);
  position: relative;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(165deg, rgba(10, 12, 18, 0.55) 0%, rgba(4, 5, 9, 0.62) 100%);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.45s ease,
    box-shadow 0.5s ease,
    background 0.45s ease;
}

/* Scroll-reveal sets .reveal.is-visible { opacity: 1 } — keep cards ghostly until hover */
.regiment-card.reveal.is-visible {
  opacity: 0.58;
}

.regiment-card:focus {
  outline: none;
}

.regiment-card:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--reg-accent) 55%, white);
  outline-offset: 3px;
}

.regiment-logo-bg {
  position: absolute;
  inset: -8%;
  z-index: 0;
  background: #0a0c12;
  background-repeat: no-repeat;
  background-position: 50% 42%;
  background-size: cover;
  opacity: 1;
  pointer-events: none;
  /* Sharper scaling on GPU layers (helps some browsers when using cover + filters) */
  transform: translateZ(0) scale(1);
  backface-visibility: hidden;
  isolation: isolate;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.55s ease;
}

.regiment-card.reveal.is-visible:hover .regiment-logo-bg,
.regiment-card.reveal.is-visible:focus-within .regiment-logo-bg,
.regiment-card:hover .regiment-logo-bg,
.regiment-card:focus-within .regiment-logo-bg {
  transform: translateZ(0) scale(1.03);
}

/* Photo layer: idle = heavy dim + veil (hint of crest); hover = lift veil + color punch */
.regiment-logo-bg.regiment-logo-bg--photo {
  background-size: cover !important;
  filter: saturate(0.65) brightness(0.38) contrast(1.12);
}

.regiment-logo-bg.regiment-logo-bg--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    rgba(3, 5, 10, 0.72) 0%,
    rgba(2, 3, 7, 0.82) 45%,
    rgba(1, 2, 5, 0.88) 100%
  );
  opacity: 0.92;
  transition: opacity 0.55s ease;
  pointer-events: none;
}

.regiment-card.reveal.is-visible:hover .regiment-logo-bg.regiment-logo-bg--photo,
.regiment-card.reveal.is-visible:focus-within .regiment-logo-bg.regiment-logo-bg--photo,
.regiment-card:hover .regiment-logo-bg.regiment-logo-bg--photo,
.regiment-card:focus-within .regiment-logo-bg.regiment-logo-bg--photo {
  filter: saturate(1.15) brightness(1.06) contrast(1.08);
}

.regiment-card.reveal.is-visible:hover .regiment-logo-bg.regiment-logo-bg--photo::after,
.regiment-card.reveal.is-visible:focus-within .regiment-logo-bg.regiment-logo-bg--photo::after,
.regiment-card:hover .regiment-logo-bg.regiment-logo-bg--photo::after,
.regiment-card:focus-within .regiment-logo-bg.regiment-logo-bg--photo::after {
  opacity: 0.22;
}

.regiment-card-inner {
  position: relative;
  z-index: 1;
  padding: 1.6rem 1.35rem 1.5rem;
  text-align: center;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.12) 0%,
    rgba(0, 0, 0, 0.28) 50%,
    rgba(0, 0, 0, 0.38) 100%
  );
  border-radius: inherit;
  transition: background 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.regiment-card.reveal.is-visible:hover .regiment-card-inner,
.regiment-card.reveal.is-visible:focus-within .regiment-card-inner,
.regiment-card:hover .regiment-card-inner,
.regiment-card:focus-within .regiment-card-inner {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.18) 0%,
    rgba(0, 0, 0, 0.48) 45%,
    rgba(0, 0, 0, 0.72) 100%
  );
}

.regiment-slide {
  width: 100%;
}

/* Intro slides up from below; idle shows only the regiment name (viewport = name height). */
.regiment-slide-viewport {
  overflow: hidden;
  height: var(--name-h, 3.25rem);
  transition: height 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.regiment-card.reveal.is-visible:hover .regiment-slide-viewport,
.regiment-card.reveal.is-visible:focus-within .regiment-slide-viewport,
.regiment-card:hover .regiment-slide-viewport,
.regiment-card:focus-within .regiment-slide-viewport {
  height: var(--duty-h, 9rem);
}

.regiment-slide-track {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.regiment-card.reveal.is-visible:hover .regiment-slide-track,
.regiment-card.reveal.is-visible:focus-within .regiment-slide-track,
.regiment-card:hover .regiment-slide-track,
.regiment-card:focus-within .regiment-slide-track {
  transform: translateY(calc(-1 * var(--name-h, 3.25rem)));
}

.regiment-card--survey {
  --reg-accent: var(--corps-survey);
}

.regiment-card--garrison {
  --reg-accent: var(--corps-garrison);
}

.regiment-card--mp {
  --reg-accent: var(--corps-mp);
}

.regiment-card.reveal.is-visible:hover,
.regiment-card.reveal.is-visible:focus-within,
.regiment-card:hover,
.regiment-card:focus-within {
  opacity: 1;
  transform: translateY(-5px) scale(1);
  border-color: color-mix(in srgb, var(--reg-accent) 42%, rgba(255, 255, 255, 0.2));
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--reg-accent) 12%, rgba(14, 16, 22, 0.96)) 0%,
    rgba(6, 8, 12, 0.98) 100%
  );
  box-shadow:
    0 26px 72px rgba(0, 0, 0, 0.58),
    0 0 0 1px color-mix(in srgb, var(--reg-accent) 38%, transparent),
    0 0 48px color-mix(in srgb, var(--reg-accent) 22%, transparent);
}

/* No gradient text — avoids the wide teal/red/green “bar” artifact */
.regiment-heading {
  flex-shrink: 0;
  max-width: 100%;
  margin: 0;
  padding-bottom: 0.15rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.82rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  line-height: 1.22;
  color: rgba(245, 247, 252, 0.94);
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.95),
    0 4px 24px rgba(0, 0, 0, 0.75);
  transition: color 0.35s ease, text-shadow 0.35s ease;
}

.regiment-card--survey .regiment-heading {
  color: rgba(220, 242, 236, 0.92);
}

.regiment-card--garrison .regiment-heading {
  color: rgba(250, 232, 228, 0.93);
}

.regiment-card--mp .regiment-heading {
  color: rgba(232, 248, 232, 0.93);
}

.regiment-duty {
  flex-shrink: 0;
  margin: 0;
  padding-top: 0.35rem;
  color: #f2f5fb;
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: 0.03em;
  text-align: center;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 1),
    0 2px 5px rgba(0, 0, 0, 0.95),
    0 6px 20px rgba(0, 0, 0, 0.65);
}

.faq {
  background: linear-gradient(180deg, var(--bg-elevated), var(--bg-deep));
}

.accordion {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.accordion-item {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.accordion-item.is-open {
  border-color: rgba(212, 175, 55, 0.25);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  text-align: left;
  color: var(--text);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.accordion-trigger:hover {
  background: rgba(255, 255, 255, 0.03);
}

.accordion-chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  transition: transform 0.35s ease;
  flex-shrink: 0;
}

.accordion-item.is-open .accordion-chevron {
  transform: rotate(-135deg) translateY(-2px);
}

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-item.is-open .accordion-panel {
  grid-template-rows: 1fr;
}

.accordion-panel-inner {
  overflow: hidden;
}

.accordion-panel-inner p {
  margin: 0;
  padding: 0 1.15rem 1.15rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.join {
  padding-bottom: 6rem;
}

.join-inner {
  display: flex;
  justify-content: center;
}

.join-panel {
  position: relative;
  max-width: 580px;
  width: 100%;
  padding: 2.5rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  background: radial-gradient(120% 120% at 10% 0%, rgba(212, 175, 55, 0.12), transparent 50%), var(--bg-card);
  text-align: center;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.join-glow {
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at 50% 0%, rgba(196, 30, 58, 0.2), transparent 45%);
  pointer-events: none;
}

.join-panel h2 {
  position: relative;
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0 0 0.75rem;
}

.join-panel > p {
  position: relative;
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.join-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.join-links {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.ip-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
}

.ip-value {
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border);
}

.join-note {
  position: relative;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

/* Media program — paid creators (links to #applications) */
.media-program {
  position: relative;
  padding: 4.5rem 1.5rem;
  overflow: hidden;
  border-top: 1px solid rgba(196, 30, 58, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(180deg, #030408 0%, #0a0d14 45%, #05070c 100%);
}

.media-program-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 85% 15%, rgba(196, 30, 58, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 45% at 12% 88%, rgba(212, 175, 55, 0.07), transparent 55%);
  pointer-events: none;
}

.media-program-inner {
  position: relative;
  z-index: 1;
}

.media-program-panel {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.35rem 1.85rem;
  text-align: center;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(168deg, rgba(22, 14, 18, 0.94) 0%, rgba(6, 8, 14, 0.96) 100%);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(196, 30, 58, 0.12);
}

.media-program-crest {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.media-program-diamond {
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.45);
}

.eyebrow-aot {
  color: rgba(212, 175, 55, 0.92);
  letter-spacing: 0.32em;
}

.media-program-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  margin: 0 0 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f4f5f8;
  text-shadow: 0 0 36px rgba(196, 30, 58, 0.3);
}

.media-program-lead {
  margin: 0 0 0.9rem;
  font-size: 1.04rem;
  line-height: 1.75;
  color: #aeb6c5;
}

.media-program-note {
  margin: 0 0 1.4rem;
  font-size: 0.9rem;
  color: #6f7d92;
  font-style: italic;
  letter-spacing: 0.02em;
}

.media-program-cta {
  min-width: 220px;
}

/* Applications & modals */
.applications {
  padding-bottom: 4rem;
}

.applications .section-sub {
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

.applications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.15rem;
  max-width: var(--content-max);
  margin: 0 auto;
  align-items: stretch;
}

.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 1.65rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(165deg, rgba(20, 24, 36, 0.96), rgba(10, 12, 18, 0.99));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  text-align: left;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.app-card:hover {
  border-color: rgba(212, 175, 55, 0.28);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.45);
}

/* Small diamond — shared by all four application cards */
.app-card-mark {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  margin: 5px 0 0 3px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.45);
}

.app-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.app-card p {
  margin: 0;
  flex: 1;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
}

.app-card .btn {
  margin-top: auto;
  padding-top: 0.5rem;
  align-self: stretch;
  text-align: center;
  justify-content: center;
}

.app-modal {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.app-modal[hidden] {
  display: none;
}

.app-modal-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: rgba(4, 5, 9, 0.88);
  backdrop-filter: blur(8px);
}

.app-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  max-height: min(90vh, 720px);
  overflow-y: auto;
  padding: 1.85rem 1.65rem 1.65rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, #12151e 0%, #0a0c12 100%);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(212, 175, 55, 0.08);
  animation: app-modal-in 0.35s ease both;
}

@keyframes app-modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.app-modal-panel--form {
  max-width: 520px;
}

.app-modal-x {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.app-modal-x:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.app-modal-title {
  margin: 0 2rem 0.75rem 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.app-modal-lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.app-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.app-modal-actions--form {
  margin-top: 1rem;
  padding-top: 0.25rem;
}

.app-form-field {
  margin-bottom: 1rem;
}

.app-form-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.app-form-field input,
.app-form-field select,
.app-form-field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-family: inherit;
  font-size: 0.98rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.app-form-field input:focus,
.app-form-field select:focus,
.app-form-field textarea:focus {
  outline: none;
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

.app-form-field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.55;
}

.app-form-status {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: rgba(61, 138, 114, 0.12);
  border: 1px solid rgba(61, 138, 114, 0.28);
  color: #c8e8d8;
  font-size: 0.92rem;
  line-height: 1.5;
}

@media (min-width: 1100px) {
  .applications-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1320px) {
  .applications-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  background: #05060a;
}

.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-link {
  color: var(--gold);
  position: relative;
}

.footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.footer-link:hover::after {
  transform: scaleX(1);
}

.back-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(15, 17, 24, 0.85);
  backdrop-filter: blur(10px);
  color: var(--gold);
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease, border-color 0.2s ease;
}

.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-top:hover {
  border-color: rgba(212, 175, 55, 0.45);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(5, 6, 10, 0.88);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
}

.lightbox-figure {
  position: relative;
  margin: 0;
  max-width: min(960px, 100%);
  max-height: min(86vh, 100%);
  z-index: 1;
  animation: lightbox-in 0.35s ease both;
}

@keyframes lightbox-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox-figure img {
  display: block;
  max-width: 100%;
  max-height: min(78vh, 820px);
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.65);
  -webkit-user-select: none;
  user-select: none;
}

.lightbox-cap {
  margin: 0.75rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.985);
  filter: blur(12px);
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  will-change: auto;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: 0;
    top: 0;
    padding: 5.5rem 1.5rem 2rem;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 1.25rem;
    background: rgba(5, 6, 10, 0.96);
    backdrop-filter: blur(14px);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
  }

  .site-header.is-open .nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    font-size: 1.05rem;
  }

  .about-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card:nth-child(-n + 5) {
    grid-column: auto;
  }

  .regiment-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .page-ambient {
    animation: none !important;
  }

  .brand-mark,
  .hero-orb,
  .hero-scroll-hint,
  .btn-shine::before,
  .modpack-glow {
    animation: none !important;
  }

  .btn-primary:hover,
  .btn-accent:hover {
    transform: none;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
    will-change: auto !important;
  }

  .tab-panel {
    animation: none !important;
    filter: none !important;
  }

  .regiment-slide-viewport {
    height: auto !important;
    overflow: visible;
  }

  .regiment-slide-track {
    transform: none !important;
    transition: none !important;
    gap: 0.65rem;
  }

  .regiment-card.reveal.is-visible:hover,
  .regiment-card.reveal.is-visible:focus-within {
    transform: none !important;
  }

  .regiment-card:hover .regiment-logo-bg,
  .regiment-card:focus-within .regiment-logo-bg {
    transform: none !important;
  }

  .app-modal-panel {
    animation: none !important;
  }
}
