@font-face {
  font-family: "Huyet Nguyet Serif";
  src: url("assets/NotoSerifDisplay-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #0d0304;
  --panel: #170607;
  --panel-soft: #21090b;
  --line: #42201e;
  --blood: #7e1418;
  --blood-bright: #a91f24;
  --gold: #c6923a;
  --gold-light: #f0d58e;
  --text: #f3e8d2;
  --muted: #aa9a8b;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--ink);
  font-family: "Huyet Nguyet Serif", Georgia, serif;
  letter-spacing: 0;
}

a { -webkit-tap-highlight-color: transparent; }

.download-header {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 78px;
  padding: 0 clamp(22px, 5vw, 76px);
  border-bottom: 1px solid rgba(198, 146, 58, 0.22);
  background: rgba(9, 2, 3, 0.28);
}

.download-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.download-brand img { width: 48px; height: 48px; object-fit: contain; }
.download-header nav { display: flex; gap: 28px; }
.download-header nav a {
  padding: 7px 0;
  border-bottom: 1px solid transparent;
  color: rgba(243, 232, 210, 0.76);
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}

.download-header nav a:hover,
.download-header nav a:focus-visible { outline: none; border-color: var(--gold); color: var(--gold-light); }

.download-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: min(76svh, 760px);
  padding: 118px clamp(24px, 7vw, 108px) 82px;
  overflow: hidden;
  border-bottom: 1px solid rgba(198, 146, 58, 0.28);
}

.download-hero__background,
.download-hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

.download-hero__background { object-fit: cover; object-position: center; }
.download-hero__shade {
  z-index: -1;
  background: linear-gradient(90deg, rgba(8, 2, 3, 0.97) 0%, rgba(8, 2, 3, 0.78) 37%, rgba(8, 2, 3, 0.1) 72%);
}

.download-hero__content { width: min(100%, 620px); }
.eyebrow { margin: 0 0 8px; color: var(--gold); font-size: 10px; font-weight: 900; }
.download-hero h1 {
  margin: 0;
  color: var(--gold-light);
  font-size: clamp(46px, 7vw, 80px);
  line-height: 1.02;
}

.download-hero__copy { max-width: 560px; margin: 20px 0 30px; color: #c2b3a3; font-size: 15px; line-height: 1.75; }
.download-button,
.package-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px 24px;
  border: 1px solid #b47c2d;
  border-radius: 3px;
  color: #fff0bd;
  background: #731317;
  box-shadow: inset 0 0 0 1px rgba(240, 213, 142, 0.12), 0 14px 34px rgba(0, 0, 0, 0.32);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

.download-button::before { content: "↓"; margin-right: 11px; color: var(--gold-light); font-size: 18px; }
.download-button:hover,
.download-button:focus-visible,
.package-action:hover,
.package-action:focus-visible { outline: none; border-color: var(--gold-light); background: #901a1f; transform: translateY(-1px); }
.section-inner { width: min(calc(100% - 44px), 1180px); margin: 0 auto; }
.download-packages { padding: 74px 0; background: var(--panel); }
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}

.section-heading h2,
.download-notes h2 { margin: 0; color: var(--gold-light); font-size: clamp(28px, 4vw, 38px); }
.section-heading > p { margin: 0 0 4px; color: #867970; font-family: Arial, sans-serif; font-size: 12px; }
.package-list { border-top: 1px solid var(--line); }
.package-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 140px 162px;
  align-items: center;
  gap: 24px;
  min-height: 150px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.package-index { color: #5f4031; font-size: 26px; font-weight: 900; }
.package-kicker { margin: 0 0 5px; color: var(--gold); font-size: 9px; font-weight: 900; }
.package-copy h3 { margin: 0; color: #eddfc8; font-size: 20px; }
.package-copy > p:last-child { margin: 8px 0 0; color: #8f8177; font-family: Arial, sans-serif; font-size: 12px; line-height: 1.55; }
.package-status span { display: block; margin-bottom: 4px; color: #766962; font-family: Arial, sans-serif; font-size: 9px; }
.package-status strong { color: #cbb894; font-size: 12px; }
.package-action { min-height: 46px; padding-inline: 18px; font-size: 10px; }
.package-row--featured {
  background: linear-gradient(90deg, rgba(126, 20, 24, 0.08), rgba(198, 146, 58, 0.035), transparent);
}
.package-row--featured .package-index,
.package-row--featured .package-copy h3 { color: var(--gold-light); }

.download-notes { padding: 64px 0; border-top: 1px solid #3c211e; border-bottom: 1px solid #3c211e; background: var(--panel-soft); }
.download-notes__inner { display: grid; grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr); align-items: start; gap: 70px; }
.download-notes ul { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: note; }
.download-notes li { position: relative; min-height: 34px; padding: 7px 0 7px 46px; color: #b4a595; font-family: Arial, sans-serif; font-size: 13px; line-height: 1.5; counter-increment: note; }
.download-notes li::before { content: "0" counter(note); position: absolute; left: 0; top: 4px; color: var(--gold); font-family: "Huyet Nguyet Serif", Georgia, serif; font-size: 14px; font-weight: 900; }
.download-footer { display: flex; align-items: center; justify-content: space-between; min-height: 86px; padding: 0 clamp(22px, 5vw, 76px); color: #6e625c; font-size: 10px; font-weight: 900; }
.download-footer a { color: var(--gold-light); text-decoration: none; }

@media (max-width: 820px) {
  .download-hero__shade { background: rgba(8, 2, 3, 0.68); }
  .download-hero__content { width: min(100%, 560px); }
  .package-row { grid-template-columns: 52px minmax(0, 1fr) 142px; }
  .package-status { display: none; }
}

@media (max-width: 620px) {
  .download-header { min-height: 68px; padding-inline: 16px; }
  .download-brand span { display: none; }
  .download-brand img { width: 42px; height: 42px; }
  .download-header nav { gap: 16px; }
  .download-header nav a { font-size: 9px; }
  .download-hero { min-height: 680px; padding: 104px 20px 58px; align-items: flex-end; }
  .download-hero__background { object-position: 64% center; }
  .download-hero__shade { background: linear-gradient(180deg, rgba(8, 2, 3, 0.24), rgba(8, 2, 3, 0.94)); }
  .download-hero h1 { font-size: 46px; }
  .download-button { width: 100%; }
  .section-inner { width: min(calc(100% - 32px), 1180px); }
  .download-packages { padding: 54px 0; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 10px; line-height: 1.5; }
  .package-row { grid-template-columns: 38px minmax(0, 1fr); gap: 14px; padding: 26px 0; }
  .package-action { grid-column: 2; width: 100%; }
  .download-notes__inner { grid-template-columns: 1fr; gap: 30px; }
  .download-footer { min-height: 76px; padding-inline: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
