:root {
  --ink: #f6f1e8;
  --muted: #cfd4c7;
  --field: #10150f;
  --moss: #5f7b3b;
  --moss-deep: #27361f;
  --steel: #c6cbc8;
  --steel-dark: #59605c;
  --leather: #765139;
  --blush: #f0a9bd;
  --mist: rgba(222, 229, 225, 0.68);
  --panel: rgba(16, 21, 15, 0.76);
  --line: rgba(233, 236, 230, 0.22);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% -10%, rgba(240, 169, 189, 0.2), transparent 24rem),
    radial-gradient(circle at 82% 14%, rgba(198, 203, 200, 0.16), transparent 28rem),
    linear-gradient(180deg, #293126 0%, #11160f 42%, #080a07 100%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button {
  font: inherit;
}

.fog {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.fog-line {
  position: absolute;
  left: -10%;
  width: 120%;
  height: 12rem;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(232, 236, 230, 0.13), transparent);
  filter: blur(24px);
  opacity: 0.75;
  animation: fog-drift 12s ease-in-out infinite alternate;
  animation-delay: var(--delay);
}

.fog-line:nth-child(1) {
  top: 18%;
}

.fog-line:nth-child(2) {
  top: 48%;
}

.fog-line:nth-child(3) {
  top: 74%;
}

@keyframes fog-drift {
  to {
    transform: translateX(8%) scaleY(1.2);
  }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 2rem));
  min-height: 78px;
  margin: 1rem auto 0;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(13, 17, 12, 0.72);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.78rem;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), transparent 45%),
    linear-gradient(160deg, var(--steel), var(--steel-dark));
  color: #15200f;
  font-size: 0.82rem;
  font-weight: 950;
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.16);
}

.brand strong,
.brand small {
  display: block;
  max-width: min(44vw, 340px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  margin-top: 0.12rem;
  color: var(--muted);
  font-weight: 800;
}

.toplinks,
.cta-row,
.ticker-row {
  display: flex;
  align-items: center;
  gap: 0.62rem;
  flex-wrap: wrap;
}

.toplinks a,
.button,
[data-copy] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(198, 203, 200, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font-weight: 900;
  white-space: nowrap;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.toplinks a {
  min-width: 56px;
  padding: 0 1rem;
}

.toplinks a:hover,
.button:hover,
[data-copy]:hover {
  transform: translateY(-2px);
  border-color: rgba(240, 169, 189, 0.72);
  background: rgba(240, 169, 189, 0.12);
}

main {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: clamp(660px, 86vh, 820px);
  margin-top: 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #1b2119;
  box-shadow: var(--shadow);
}

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(8, 10, 7, 0.9), rgba(8, 10, 7, 0.5) 43%, rgba(8, 10, 7, 0.2)),
    linear-gradient(0deg, rgba(8, 10, 7, 0.88), transparent 42%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 430px);
  gap: 1rem;
  align-items: end;
  min-height: inherit;
  padding: clamp(1rem, 3vw, 2rem);
}

.war-room,
.portrait,
.battle-tabs article,
.manifest {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.war-room {
  padding: clamp(1.2rem, 4vw, 3rem);
  border-radius: 24px;
}

.eyebrow {
  margin: 0 0 0.82rem;
  color: var(--blush);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
p,
strong {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 9ch;
  margin: 0;
  color: #fffaf0;
  font-size: clamp(3.3rem, 8.5vw, 7rem);
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
  text-wrap: balance;
}

.lead {
  max-width: 56ch;
  margin: 1.15rem 0 0;
  color: #e3e6db;
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  line-height: 1.62;
}

.ticker-row {
  margin-top: 1.25rem;
}

.ticker-row > span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--steel), #ffffff 48%, var(--blush));
  color: #13200d;
  font-weight: 950;
}

[data-copy] {
  cursor: pointer;
  padding: 0 1rem;
}

.cta-row {
  margin-top: 1.45rem;
}

.button {
  min-width: 130px;
  padding: 0.78rem 1.05rem;
}

.button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--moss), #8aa75b);
  color: #071005;
}

.portrait {
  overflow: hidden;
  border-radius: 24px;
  padding: 0.75rem;
}

.portrait img {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 18px;
}

.battle-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1rem 0;
}

.battle-tabs article {
  min-height: 140px;
  padding: 1rem;
  border-radius: 20px;
}

.battle-tabs span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.battle-tabs strong {
  display: block;
  margin-top: 0.55rem;
  color: var(--steel);
  font-size: clamp(1.3rem, 2.7vw, 2rem);
}

.battle-tabs p {
  margin: 0.65rem 0 0;
  color: #d6dbd1;
  line-height: 1.5;
}

.manifest {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 1rem;
  padding: clamp(1.2rem, 4vw, 2.4rem);
  border-radius: 24px;
}

.manifest h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.75rem);
  line-height: 1;
  letter-spacing: 0;
  text-wrap: balance;
}

.manifest > p {
  margin: 0;
  color: #e1e5dc;
  font-size: clamp(1rem, 1.75vw, 1.16rem);
  line-height: 1.7;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 2rem;
  color: var(--muted);
  font-weight: 900;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
  }

  .hero-bg,
  .hero-shade {
    position: absolute;
  }

  .hero-inner,
  .manifest {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: 760px;
    align-content: end;
  }

  h1 {
    max-width: 10ch;
    font-size: clamp(3rem, 14vw, 5.2rem);
  }

  .portrait img {
    aspect-ratio: 16 / 10;
  }

  .battle-tabs {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  main,
  .topbar,
  footer {
    width: min(100% - 1rem, 1180px);
  }

  .topbar,
  footer {
    flex-direction: column;
    align-items: stretch;
  }

  .brand strong,
  .brand small {
    max-width: calc(100vw - 7rem);
  }

  .toplinks,
  .cta-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .toplinks a,
  .button {
    min-width: 0;
    width: 100%;
    padding-inline: 0.45rem;
  }

  .hero {
    border-radius: 20px;
  }

  .hero-bg {
    object-position: 54% center;
  }

  .hero-inner {
    min-height: 780px;
    padding: 0.75rem;
  }

  .war-room,
  .portrait,
  .manifest {
    border-radius: 18px;
  }

  h1 {
    font-size: clamp(2.65rem, 16vw, 4rem);
  }
}
