@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-mgm-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0047, U+004D;
}
@font-face {
  font-family: "MGM Brush Wordmark";
  src: url("fonts/mgm-brush-wordmark.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+6C34, U+751F, U+8D77, U+98CE;
}

:root {
  color-scheme: dark;
  --background: #090b0b;
  --surface: #101312;
  --surface-raised: #151714;
  --text: #f5f1e7;
  --muted: #bebcaf;
  --gold: #e9c281;
  --gold-bright: #F3E5AB;
  --line: rgba(229, 196, 141, .16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sans: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --serif: "Iowan Old Style", "Songti SC", "Noto Serif SC", SimSun, Georgia, serif;
  --system-font: system-ui, sans-serif;
  --brand-font: "Cormorant Garamond", var(--serif);
  font-family: var(--sans);
  font-size: 100%;
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--background); color: var(--text); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 4px; }
::selection { background: #e8c185; color: #14100a; }

.shell { width: min(100% - 64px, 1160px); margin-inline: auto; }
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9;
  padding: 11px 15px;
  transform: translateY(-160%);
  border-radius: 5px;
  color: #14100a;
  background: var(--gold);
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(9, 11, 11, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.header-inner { min-height: 68px; }
.brand { display: inline-flex; flex: none; gap: 9px; align-items: center; }
.brand img { filter: drop-shadow(0 2px 6px rgba(195, 125, 48, .2)); }
.hero-stage, .hero h1, .brand-name, .brand img, .download-icon {
  -webkit-user-select: none;
  user-select: none;
}
.brand-name { font: 600 1.31rem/1 var(--brand-font); letter-spacing: .07em; color: var(--gold-bright); }
.site-header nav { display: flex; align-items: center; }
.nav-download {
  padding: 10px 15px;
  border: 1px solid rgba(231, 190, 127, .27);
  border-radius: 8px;
  font-size: .93rem;
  color: var(--gold-bright);
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.nav-download:hover { background: #20190e; border-color: var(--gold); }

.hero {
  position: relative;
  overflow: clip;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 70% 48%, rgba(132, 90, 45, .13), transparent 55%),
    var(--background);
  border-bottom: 1px solid var(--line);
}
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4.4vw, 66px);
  position: relative;
  padding-block: clamp(24px, 4vw, 46px);
}
.hero-copy { position: relative; z-index: 1; min-width: 0; padding-block: 24px; }
.hero h1 {
  --brush-size: clamp(3.65rem, 8.2vw, 8.25rem);
  display: grid;
  gap: 0;
  margin: 0;
  color: var(--gold-bright);
  font: 700 clamp(2.95rem, 6vw, 5.7rem)/1.16 var(--serif);
}
.hero-monogram {
  display: block;
  width: min(100%, calc(1.55 * var(--brush-size)));
  text-align: center;
  margin-block-end: -.32em;
  color: var(--gold-bright);
  background: linear-gradient(149deg, #F3E5AB 11%, #f7dfaa 56%, #bb824a 94%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font: 600 clamp(1.65rem, 3vw, 3rem)/.95 var(--brand-font);
  letter-spacing: .095em;
}
.hero-wordmark {
  display: block;
  width: max-content;
  max-width: 100%;
  margin-inline: -.035em;
  padding-block: .07em .06em;
  color: #F3E5AB;
  font: 400 var(--brush-size)/1.15 "MGM Brush Wordmark", var(--serif);
  font-variant-ligatures: common-ligatures;
  letter-spacing: 0;
  white-space: nowrap;
  filter: drop-shadow(0 2px 1px rgba(61, 39, 18, .64)) drop-shadow(0 7px 13px rgba(0, 0, 0, .3));
}
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .hero-wordmark {
    background:
      linear-gradient(105deg, transparent 41%, #f3e5ab99 46%, #fffcef 48%, #fffcef 52%, #f3e5ab99 54%, transparent 59%)
        100% 50% / 260% 100% no-repeat,
      linear-gradient(116deg, #c5a773 3%, #F3E5AB 32%, #f6eac2 48%, #F3E5AB 61%, #d0af7a 88%) 50% 50% / 144% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: brush-shimmer 3.6s linear infinite;
  }
}
@keyframes brush-shimmer {
  0%, 8% { background-position: 100% 50%, 50% 50%; }
  88%, 100% { background-position: 0 50%, 50% 50%; }
}
.hero-actions { margin-top: clamp(16px, 2vw, 24px); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  min-width: 110px;
  padding: 10px 19px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 650;
  line-height: 1.3;
  transition: background .24s var(--ease), border-color .24s var(--ease), color .24s var(--ease);
}
.button-primary {
  border-color: #e7c186;
  color: #161006;
  background: #ebc787;
}
.button-primary:hover { background: #ffe2a4; border-color: #ffe2a4; }
.button-unavailable { color: #c1b7a5; background: #191915; border-color: rgba(229, 196, 141, .19); cursor: default; }

.hero-stage {
  position: relative;
  min-width: 0;
  height: clamp(340px, 35vw, 458px);
  isolation: isolate;
}
.hero-visual {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  isolation: isolate;
  transform: perspective(1050px) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg));
  transition: transform .64s var(--ease);
}
.hero-visual::before {
  position: absolute;
  z-index: -2;
  width: min(100%, 448px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(ellipse, rgba(183, 115, 47, .14), transparent 65%);
  content: "";
}
#hero-particles { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; opacity: .68; pointer-events: none; }
.hero-emblem {
  position: relative;
  z-index: 2;
  width: min(75%, 348px);
  height: auto;
  filter: drop-shadow(0 0 16px rgba(233, 163, 78, .17)) drop-shadow(0 24px 28px #050402);
  animation: crest-glow 7s var(--ease) infinite alternate;
}
.orbit {
  position: absolute;
  pointer-events: none;
  width: min(91%, 420px);
  aspect-ratio: 1;
  border: 1px solid rgba(231, 169, 92, .15);
  border-radius: 50%;
  animation: orbit-spin 56s linear infinite;
}
.orbit::after {
  position: absolute;
  top: 14%;
  right: 15%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffd99b;
  box-shadow: 0 0 9px #eab362;
  content: "";
}
@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes crest-glow {
  from { transform: scale(.995); }
  to { transform: scale(1.008); }
}

.section { scroll-margin-top: 70px; }
.section-heading { margin-bottom: 22px; }
.section h2 { margin: 0; font: 640 clamp(1.7rem, 2.75vw, 2.5rem)/1.24 var(--sans); letter-spacing: .02em; }
.download-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(155deg, var(--surface-raised), var(--surface) 70%);
}
.spotlight::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0;
  background: radial-gradient(250px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(243, 184, 103, .15), transparent 72%);
  transition: opacity .2s var(--ease);
  pointer-events: none;
}
.spotlight:is(:hover, :focus-within)::before { opacity: 1; }
.download-icon {
  display: grid;
  place-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(222, 169, 102, .16);
  border-radius: 8px;
  background: #211b13;
  color: var(--gold);
}
.download-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.download-copy { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.75; }

.download-section {
  padding-block: clamp(42px, 4.4vw, 66px) clamp(48px, 5.2vw, 76px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(#0d0f0e, #0b0d0c);
}
.download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.download-card {
  display: grid;
  justify-items: start;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 22px;
}
.download-head { min-width: 0; }
.download-card h3 { margin: 0; font-size: 1.07rem; font-weight: 650; overflow-wrap: anywhere; }
.download-head p { margin: 0; color: var(--gold); font-size: .87rem; }
.download-card > :not(.download-icon, .download-head) { grid-column: 1 / -1; }
.download-card > .button { grid-column: 3; grid-row: 1; min-height: 40px; min-width: 0; padding: 8px 12px; font-size: .84rem; white-space: nowrap; }
.download-copy { margin-bottom: 1px; }
.download-status { grid-column: 1 / -1; margin: 0; color: var(--muted); line-height: 1.6; }
.release-metadata { display: flex; flex-wrap: wrap; gap: 6px 15px; color: #f0d4a4; font-size: .88rem; }
.checksum { margin: 0; color: var(--muted); font: .81rem/1.55 ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }

.site-footer { padding-block: 24px; }
.site-copyright {
  margin-block: 0;
  color: var(--muted);
  font: 600 .88rem/1.5 var(--system-font);
  font-variant-numeric: lining-nums;
  text-align: center;
}
.reveal.is-pending { opacity: 0; transform: translateY(16px); }
.reveal {
  transition: opacity .52s var(--ease), transform .52s var(--ease);
}

@media (max-width: 940px) {
  .shell { width: min(100% - 48px, 1160px); }
  .hero h1 { font-size: clamp(3rem, 7.1vw, 5.45rem); }
  .hero-layout { gap: 28px; }
}

@media (max-width: 700px) {
  .shell { width: calc(100% - 36px); }
  .header-inner { min-height: 62px; gap: 10px; }
  .brand { gap: 6px; }
  .nav-download { font-size: .81rem; }
  .nav-download { padding: 9px 10px; }
  .hero-layout { grid-template-columns: 1fr; gap: 8px; padding-block: 32px 20px; }
  .hero-copy { padding-block: 0; }
  .hero h1 { --brush-size: clamp(3.4rem, 15vw, 6rem); width: max-content; max-width: 100%; margin-inline: auto; font-size: clamp(2.85rem, 10vw, 4.4rem); }
  .hero-monogram { font-size: clamp(1.35rem, 5.8vw, 2.2rem); }
  .hero-stage { height: clamp(220px, 58vw, 302px); }
  .hero-emblem { width: min(65%, 226px); }
  .orbit { width: min(73%, 272px); }
  .hero-actions { display: flex; justify-content: center; }
  .section { scroll-margin-top: 63px; }
  .download-grid { grid-template-columns: 1fr; gap: 12px; }
  .download-card { gap: 10px; padding: 16px; }
}

@media (max-width: 350px) {
  .shell { width: calc(100% - 28px); }
  .brand img { width: 33px; height: 33px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
  .hero-visual { transform: none; }
  .reveal.is-pending { opacity: 1; transform: none; }
}

@media (forced-colors: active) {
  .hero-monogram, .hero-wordmark {
    background: none;
    color: CanvasText;
    -webkit-text-fill-color: CanvasText;
    filter: none;
  }
}
