@font-face {
  font-family: "Duskveil Display";
  src: url("assets/fonts/oswald-variable.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 200 700;
}

@font-face {
  font-family: "Duskveil Text";
  src: url("assets/fonts/manrope-variable.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 200 800;
}

:root {
  color-scheme: dark;
  --bg: #020812;
  --surface: rgba(7, 17, 31, .88);
  --surface-strong: #07111f;
  --line: rgba(78, 170, 238, .24);
  --line-bright: rgba(78, 181, 255, .62);
  --text: #f4f8fc;
  --muted: #9ab0c5;
  --blue: #53baff;
  --gold: #eda540;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% 12%, rgba(17, 82, 135, .18), transparent 35rem),
    radial-gradient(circle at 10% 48%, rgba(10, 85, 145, .12), transparent 38rem),
    var(--bg);
  color: var(--text);
  font-family: "Duskveil Text", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a { color: inherit; }
img { display: block; }

.topbar {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(2, 8, 18, .78);
  backdrop-filter: blur(18px);
}

.brand img { width: 126px; height: auto; }
.topbar nav { display: flex; align-items: center; gap: 28px; }
.topbar nav a {
  color: #c2d0dd;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .2s ease;
}
.topbar nav a:hover { color: var(--blue); }

.presentation-section {
  position: relative;
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
}

.hero {
  width: 100%;
  max-width: none;
  min-height: 100svh;
  display: grid;
  align-items: center;
  isolation: isolate;
  background-image: url("assets/duskveil-key-art.webp");
  background-position: center 26%;
  background-size: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 190px;
  z-index: -1;
  background: linear-gradient(transparent, var(--bg));
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(1, 6, 13, .96) 0%, rgba(1, 7, 16, .82) 43%, rgba(1, 7, 16, .18) 78%),
    linear-gradient(0deg, rgba(2, 8, 18, .42), rgba(2, 8, 18, .2));
}

.hero__content {
  width: min(calc(100% - 48px), var(--max));
  margin: 74px auto 0;
  padding: 95px 0 110px;
}

.eyebrow {
  display: block;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1, h2 {
  margin: 0;
  font-family: "Duskveil Display", "Segoe UI", Arial, sans-serif;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.012em;
  text-transform: uppercase;
}
h1 em, h2 em { color: var(--gold); font-style: normal; }
.hero__wordmark {
  width: min(760px, 68vw);
  height: auto;
  margin: 24px 0 6px;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, .48));
}
.hero__rule { display: flex; align-items: center; width: min(520px, 72vw); height: 18px; margin: 30px 0 14px; }
.hero__rule::before, .hero__rule::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, var(--gold), rgba(237, 165, 64, .08)); }
.hero__rule::after { background: linear-gradient(90deg, rgba(237, 165, 64, .08), var(--gold)); }
.hero__rule i { width: 8px; height: 8px; margin: 0 12px; border: 1px solid var(--gold); transform: rotate(45deg); }
.hero__subtitle { margin: 0; color: var(--gold); font-size: clamp(18px, 1.8vw, 24px); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.hero__description { max-width: 650px; margin: 17px 0 0; color: #b8c7d4; font-size: clamp(16px, 1.35vw, 19px); }

.hero__facts { display: flex; flex-wrap: wrap; gap: 0; margin: 38px 0 34px; }
.hero__facts span {
  min-width: 190px;
  padding: 4px 28px 4px 18px;
  border-left: 1px solid var(--line-bright);
  background: none;
  color: var(--muted);
  font-size: 12px;
}
.hero__facts b { display: block; margin-bottom: 4px; color: var(--text); font-size: 23px; line-height: 1.1; }
.hero__actions { display: flex; align-items: center; gap: 28px; }
.hero__site-link { color: #d5e0e9; font-size: 12px; font-weight: 700; letter-spacing: .15em; text-decoration: none; }
.hero__site-link span { margin-left: 7px; color: var(--blue); font-size: 18px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid var(--blue);
  background: linear-gradient(135deg, #198fd3, #36b8ff);
  box-shadow: 0 12px 36px rgba(36, 158, 229, .22);
  color: #02101c;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .09em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(36, 158, 229, .34); }
.button--ghost { background: rgba(4, 16, 29, .68); color: var(--text); box-shadow: none; }
.scroll-hint {
  position: absolute;
  right: max(24px, calc((100vw - var(--max)) / 2));
  bottom: 60px;
  color: #7991a7;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.intro { padding: 120px 0 95px; }
.section-heading { display: grid; grid-template-columns: 76px 1fr; gap: 26px; align-items: start; }
.section-number {
  display: inline-block;
  color: var(--blue);
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 900;
  line-height: .8;
  letter-spacing: -.05em;
}
.section-heading h2, .systems-label h2 { margin-top: 13px; font-size: clamp(37px, 4.6vw, 62px); }
.section-heading p, .systems-label p { max-width: 720px; margin: 22px 0 0; color: var(--muted); font-size: 19px; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 48px 0 20px;
}
.stat-grid article {
  min-height: 132px;
  padding: 25px;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, rgba(10, 28, 46, .96), rgba(5, 14, 25, .9));
}
.stat-grid strong { display: block; color: var(--gold); font-size: 26px; line-height: 1.1; }
.stat-grid span { display: block; margin-top: 13px; color: var(--muted); font-size: 14px; }

.wide-shot, .game-shot {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-bright);
  background:
    linear-gradient(135deg, rgba(50, 163, 236, .06), transparent 30%),
    #030914;
  box-shadow: 0 34px 80px rgba(0, 0, 0, .34);
}
.wide-shot { padding: clamp(8px, 1.5vw, 18px); }
.wide-shot img { width: 100%; height: auto; }
.feature-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.feature-notes p { margin: 0; padding: 22px 24px; border-left: 2px solid var(--gold); background: rgba(7, 17, 31, .72); color: #c1cfdd; }

.systems-label { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; padding: 125px 0 30px; }
.feature {
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(300px, .85fr) minmax(430px, 1.15fr);
  gap: clamp(38px, 6vw, 90px);
  align-items: center;
  padding: 105px 0;
  border-top: 1px solid rgba(255, 255, 255, .055);
}
.feature--reverse .feature__copy { order: 2; }
.feature--reverse .game-shot { order: 1; }
.feature__copy { position: relative; }
.feature__copy .section-number { position: absolute; top: -5px; right: 0; opacity: .9; }
.feature__copy h2 { max-width: 650px; margin-top: 17px; padding-right: 74px; font-size: clamp(38px, 4.1vw, 58px); }
.lead { margin: 25px 0; color: #c6d4e1; font-size: 20px; line-height: 1.5; }
.feature ul { display: grid; gap: 13px; margin: 28px 0 0; padding: 0; list-style: none; }
.feature li { position: relative; padding-left: 24px; color: var(--muted); }
.feature li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 7px; background: var(--blue); box-shadow: 0 0 14px rgba(83, 186, 255, .7); }

.game-shot {
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 3vw, 42px);
}
.game-shot::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 40%, rgba(30, 112, 169, .12), transparent 60%);
}
.game-shot img {
  position: relative;
  z-index: 1;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 630px;
  object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .48));
}
.game-shot.full img { width: 100%; }
.game-shot.natural img { width: auto; }
.game-shot.small-ui img { image-rendering: auto; }
.game-shot figcaption {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 11px;
  padding: 5px 8px;
  background: rgba(2, 8, 18, .82);
  color: #7892a9;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.join {
  width: 100%;
  max-width: none;
  min-height: 790px;
  display: grid;
  place-items: center;
  padding: 100px 24px;
  background:
    linear-gradient(rgba(2, 8, 18, .54), rgba(2, 8, 18, .82)),
    url("assets/duskveil-key-art.webp") center 35% / cover no-repeat;
}
.join__inner { width: min(100%, 900px); padding: clamp(36px, 6vw, 72px); border: 1px solid var(--line-bright); background: rgba(2, 8, 18, .79); text-align: center; backdrop-filter: blur(10px); }
.join__inner > img { width: 210px; height: auto; margin: 0 auto 30px; }
.join__inner .section-number { position: absolute; margin-left: -18px; }
.join h2 { margin-top: 18px; font-size: clamp(42px, 5.5vw, 72px); }
.join p { max-width: 660px; margin: 25px auto 34px; color: #b9c8d6; font-size: 19px; }
.join__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.site-link { display: inline-block; margin-top: 34px; color: var(--blue); font-weight: 850; letter-spacing: .18em; text-decoration: none; }

footer { min-height: 135px; display: flex; align-items: center; justify-content: center; gap: 25px; padding: 30px; color: #6e8498; font-size: 12px; letter-spacing: .09em; text-transform: uppercase; }
footer img { width: 104px; height: auto; opacity: .72; }

@media (max-width: 920px) {
  .topbar nav { gap: 15px; }
  .topbar nav a { font-size: 11px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .feature { min-height: 0; grid-template-columns: 1fr; gap: 38px; padding: 80px 0; }
  .feature--reverse .feature__copy, .feature--reverse .game-shot { order: initial; }
  .game-shot { min-height: 340px; }
  .feature__copy h2 { max-width: 720px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .topbar { height: 62px; padding: 0 16px; }
  .brand img { width: 94px; }
  .topbar nav a:not(:last-child) { display: none; }
  .topbar nav a { font-size: 10px; }
  .presentation-section, .systems-label { width: min(calc(100% - 28px), var(--max)); }
  .hero { width: 100%; background-position: 63% center; }
  .hero__shade { background: linear-gradient(90deg, rgba(1, 6, 13, .95), rgba(1, 7, 16, .73)); }
  .hero__content { width: calc(100% - 32px); margin-top: 62px; padding: 50px 0 90px; }
  .hero__wordmark { width: 100%; margin-top: 20px; }
  .hero__rule { margin-top: 24px; }
  .hero__subtitle { max-width: 330px; line-height: 1.4; }
  .hero__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 0; }
  .hero__facts span { min-width: 0; padding-right: 12px; }
  .hero__facts span:last-child { grid-column: 1 / -1; }
  .hero__actions { align-items: flex-start; flex-direction: column; gap: 20px; }
  .scroll-hint { display: none; }
  .intro { padding: 80px 0 55px; }
  .section-heading { grid-template-columns: 1fr; gap: 20px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 34px; }
  .stat-grid article { min-height: 118px; padding: 18px; }
  .stat-grid strong { font-size: 20px; }
  .feature-notes { grid-template-columns: 1fr; }
  .systems-label { padding-top: 90px; }
  .feature { gap: 28px; padding: 64px 0; }
  .feature__copy .section-number { font-size: 30px; }
  .feature__copy h2 { padding-right: 52px; }
  .lead { font-size: 18px; }
  .game-shot { min-height: 260px; padding: 16px; overflow: auto; }
  .game-shot.full img { min-width: 620px; width: 620px; max-width: none; }
  .game-shot.full { justify-content: flex-start; }
  .game-shot.full figcaption { position: sticky; left: 10px; }
  .join { width: 100%; padding: 62px 14px; }
  .join__inner { padding: 34px 20px; }
  .join__actions { display: grid; }
  footer { flex-direction: column; gap: 12px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
