:root {
  --bg: #08131a;
  --bg-soft: #0f1d25;
  --panel: rgba(8, 17, 23, 0.78);
  --panel-strong: rgba(9, 18, 24, 0.92);
  --line: rgba(212, 194, 149, 0.22);
  --line-strong: rgba(212, 194, 149, 0.38);
  --text: #f4efe1;
  --muted: #b6b9b5;
  --gold: #d9b978;
  --gold-soft: #9f8350;
  --teal: #74d4cc;
  --teal-deep: #2d7f87;
  --crimson: #8e4f53;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
  --radius: 24px;
  --content-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top, rgba(56, 122, 130, 0.2), transparent 30%),
    linear-gradient(180deg, #071117 0%, #091820 40%, #060e13 100%);
  color: var(--text);
  font-family: "Manrope", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(125deg, rgba(217, 185, 120, 0.09), transparent 18%),
    radial-gradient(circle at 85% 12%, rgba(116, 212, 204, 0.12), transparent 16%),
    radial-gradient(circle at 10% 24%, rgba(142, 79, 83, 0.1), transparent 18%);
  opacity: 0.9;
}

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

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

.site-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), 1320px);
  margin: 0 auto;
  padding: 18px 0 48px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(100%, var(--content-width));
  margin: 0 auto 20px;
  padding: 16px 20px;
  backdrop-filter: blur(18px);
  background: rgba(7, 16, 22, 0.68);
  border: 1px solid rgba(212, 194, 149, 0.16);
  border-radius: 999px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

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

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(212, 194, 149, 0.35);
  background:
    radial-gradient(circle at 50% 42%, rgba(116, 212, 204, 0.8), transparent 34%),
    linear-gradient(145deg, rgba(217, 185, 120, 0.6), rgba(45, 127, 135, 0.5));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 30px rgba(116, 212, 204, 0.18);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong,
h1,
h2,
h3 {
  font-family: "Cinzel", serif;
}

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

.brand-copy span {
  font-size: 0.73rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.topnav a:hover,
.topnav a:focus-visible {
  color: var(--text);
}

main {
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

.section-frame {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(14, 29, 37, 0.92), rgba(7, 16, 22, 0.88));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 18%),
    radial-gradient(circle at top right, rgba(116, 212, 204, 0.11), transparent 28%);
}

.hero {
  min-height: 760px;
}

.hero-backdrop,
.hero-backdrop img,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-backdrop img {
  object-fit: cover;
  transform: scale(1.02);
  filter: saturate(1.05) contrast(1.04);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 11, 15, 0.94) 0%, rgba(5, 11, 15, 0.6) 46%, rgba(5, 11, 15, 0.25) 100%),
    linear-gradient(180deg, rgba(8, 16, 22, 0.1), rgba(6, 12, 16, 0.66) 86%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  min-height: 760px;
  max-width: 620px;
  padding: 72px 56px 60px;
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 800;
}

h1 {
  margin: 0;
  font-size: clamp(3.5rem, 8vw, 6.3rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.hero-copy,
.story-copy p,
.manifesto li,
.combat-copy p,
.raid-copy p,
.signup-copy p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--gold), #f0d39d);
  color: #1c1711;
  box-shadow: 0 18px 34px rgba(217, 185, 120, 0.22);
}

.button-secondary {
  color: var(--text);
  border-color: rgba(212, 194, 149, 0.35);
  background: rgba(13, 26, 33, 0.65);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 8px 0 0;
  list-style: none;
}

.hero-stats li,
.metrics div {
  padding: 18px;
  border: 1px solid rgba(212, 194, 149, 0.16);
  border-radius: 18px;
  background: rgba(6, 14, 18, 0.5);
}

.hero-stats strong,
.metrics strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.4rem;
  color: var(--teal);
}

.hero-stats span,
.metrics span {
  color: var(--muted);
  font-size: 0.9rem;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.8fr);
  gap: 24px;
  margin-top: 24px;
}

.story-card,
.combat-band,
.raid-showcase,
.roles,
.signup {
  padding: 28px;
}

.story-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: center;
}

.story-copy h2,
.manifesto h2,
.section-heading h2,
.combat-copy h2,
.signup-copy h2 {
  margin: 10px 0 14px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.pill-row span,
.role-kicker {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(116, 212, 204, 0.22);
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--teal);
  background: rgba(14, 40, 46, 0.36);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.manifesto {
  padding: 28px;
}

.feature-list {
  margin: 24px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.feature-list li + li {
  margin-top: 16px;
}

.media-panel {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  background: rgba(3, 8, 11, 0.55);
}

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

.roles {
  margin-top: 24px;
}

.section-heading {
  max-width: 760px;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.role-grid article {
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(17, 31, 39, 0.92), rgba(11, 20, 27, 0.76));
  border: 1px solid rgba(212, 194, 149, 0.14);
}

.role-grid h3 {
  margin: 14px 0 10px;
  font-size: 1.5rem;
}

.role-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.combat-band {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 24px;
  align-items: center;
  margin-top: 24px;
}

.combat-art {
  min-height: 440px;
}

.combat-art img,
.raid-grid .media-panel img {
  height: 100%;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.raid-showcase {
  margin-top: 24px;
}

.raid-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: center;
  margin-top: 24px;
}

.signup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: 24px;
  align-items: center;
  margin-top: 24px;
}

.signup-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(212, 194, 149, 0.16);
  background: linear-gradient(180deg, rgba(17, 31, 39, 0.92), rgba(11, 20, 27, 0.76));
}

.signup-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.signup-form input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(212, 194, 149, 0.18);
  border-radius: 16px;
  background: rgba(7, 14, 19, 0.82);
  color: var(--text);
  font: inherit;
}

.signup-form input::placeholder {
  color: #7d8686;
}

@media (max-width: 1100px) {
  .section-grid,
  .story-card,
  .role-grid,
  .combat-band,
  .raid-grid,
  .signup {
    grid-template-columns: 1fr;
  }

  .role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-content {
    max-width: 100%;
    padding: 64px 30px 40px;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(calc(100% - 20px), 1320px);
    padding-top: 10px;
  }

  .topbar {
    position: static;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 28px;
  }

  .topnav {
    flex-wrap: wrap;
    gap: 14px;
  }

  .hero {
    min-height: 680px;
  }

  .hero-content {
    min-height: 680px;
    padding: 56px 22px 32px;
  }

  h1 {
    font-size: clamp(2.9rem, 18vw, 4.4rem);
  }

  .hero-stats,
  .metrics,
  .role-grid {
    grid-template-columns: 1fr;
  }

  .story-card,
  .manifesto,
  .roles,
  .combat-band,
  .raid-showcase,
  .signup {
    padding: 20px;
  }
}
