:root {
  color-scheme: dark;
  --bg: #0b0b0e;
  --panel: rgba(20, 22, 28, 0.94);
  --panel2: rgba(32, 34, 42, 0.92);
  --line: rgba(220, 220, 230, 0.22);
  --lineStrong: rgba(245, 232, 190, 0.52);
  --text: #f3f1e8;
  --muted: #a7a9b4;
  --gold: #d4b46c;
  --gold2: #f2ddb0;
  --accent: #4a82d1;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 10%, rgba(117, 98, 64, 0.24), transparent 34%),
    linear-gradient(165deg, #07070a, #12131a 48%, #09090d);
  overflow-x: hidden;
}
body.drawerOpen { overflow: hidden; }
body.fadingOut { pointer-events: none; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--gold2); }

.pageGlow {
  position: fixed; inset: -15vmax;
  background:
    radial-gradient(circle at 20% 20%, rgba(74,130,209,0.10), transparent 26%),
    radial-gradient(circle at 80% 18%, rgba(212,180,108,0.14), transparent 24%),
    radial-gradient(circle at 50% 68%, rgba(255,255,255,0.04), transparent 20%);
  pointer-events: none; z-index: -2;
}
.scanlines {
  position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.025) 0,
    rgba(255,255,255,0.025) 1px,
    transparent 1px,
    transparent 4px
  );
  opacity: 0.28;
}
.fadeLayer {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  background: #fff; opacity: 0; transition: opacity 0.55s ease;
}
.fadeLayer.active { opacity: 1; }

.siteHeader {
  position: sticky; top: 0; z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px clamp(14px, 3.4vw, 28px);
  background: linear-gradient(180deg, rgba(18,19,25,0.98), rgba(11,12,17,0.92));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.siteHeaderTitle {
  text-align: center; letter-spacing: 0.08em; font-weight: 700;
  font-size: clamp(14px, 3vw, 18px);
}
.menuButton, .headerAction, .drawerClose, .ctaButton, .sampleDownload {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.055);
  border-radius: 0;
}
.menuButton, .drawerClose {
  width: 44px; height: 44px; display: grid; place-items: center;
}
.headerAction {
  justify-self: end;
  padding: 10px 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.heroWrap {
  width: min(1180px, calc(100vw - 24px));
  margin: 0 auto;
  padding: clamp(18px, 4vw, 34px) 0 28px;
  display: grid;
  gap: 22px;
}
.heroPanel, .samplePanel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(245, 232, 190, 0.18);
  background: linear-gradient(180deg, rgba(20,22,28,0.94), rgba(11,12,17,0.95));
  box-shadow: 0 22px 80px rgba(0,0,0,0.38), inset 0 0 0 1px rgba(255,255,255,0.03);
}
.heroPanel {
  padding: clamp(22px, 5vw, 48px);
}
.heroPanel::before, .samplePanel::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.03), transparent 18%, transparent 82%, rgba(255,255,255,0.03)),
    radial-gradient(circle at top right, rgba(212,180,108,0.10), transparent 28%);
  pointer-events: none;
}
.heroLogoWrap {
  display: flex; justify-content: center;
  margin-bottom: 14px;
}
.heroLogo {
  width: min(100%, 520px);
  image-rendering: pixelated;
  filter: drop-shadow(0 12px 34px rgba(0,0,0,0.46));
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  text-transform: uppercase;
}
h1, h2, h3 { margin: 0; font-weight: 700; }
.heroPanel h1 {
  font-size: clamp(2rem, 6vw, 4.2rem);
  line-height: 1.08;
  margin-bottom: 18px;
}
.lead {
  margin: 0;
  color: #ece7d9;
  font-size: clamp(0.98rem, 2.5vw, 1.14rem);
  line-height: 1.95;
  max-width: 900px;
}
.updateNotice {
  position: relative;
  margin-top: 24px;
  padding: clamp(16px, 3vw, 22px);
  border: 1px solid rgba(212,180,108,0.46);
  background:
    linear-gradient(135deg, rgba(212,180,108,0.10), transparent 42%),
    rgba(7,8,12,0.78);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.025),
    0 12px 28px rgba(0,0,0,0.22);
}
.updateNotice::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold2), var(--gold));
}
.updateNoticeHead {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.updateNoticeHead h2 {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: var(--gold2);
}
.updateNoticeBadge {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid rgba(212,180,108,0.48);
  background: rgba(212,180,108,0.10);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.updateNoticeList {
  margin: 0;
  padding-left: 1.25em;
  color: #e2dccb;
  line-height: 1.78;
}
.updateNoticeList li + li { margin-top: 7px; }
.updateNoticeList strong { color: #fff3d5; }
.ctaRow {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: 24px;
}
.ctaButton {
  min-width: 200px;
  padding: 16px 22px;
  font-size: 1rem;
  text-align: center;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.ctaButton:hover, .sampleDownload:hover, .headerAction:hover, .menuButton:hover {
  border-color: rgba(245,232,190,0.42);
  background: rgba(255,255,255,0.08);
}
.ctaButton:active, .sampleDownload:active, .menuButton:active { transform: translateY(1px); }
.ctaButton.primary {
  background: linear-gradient(180deg, rgba(240,229,196,0.15), rgba(255,255,255,0.06));
  box-shadow: 0 0 0 1px rgba(244,213,130,0.10) inset, 0 0 18px rgba(212,180,108,0.10);
}
.ctaButton.secondary { color: var(--gold2); }
.featureList {
  margin: 22px 0 0;
  padding-left: 1.2em;
  color: var(--muted);
  line-height: 1.9;
}
.samplePanel {
  padding: clamp(20px, 4vw, 34px);
}
.sectionHead p { color: var(--muted); line-height: 1.8; }
.sectionHead h2 { font-size: clamp(1.6rem, 4vw, 2.6rem); margin-bottom: 10px; }
.sampleList {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.sampleCard {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(22,24,31,0.95), rgba(11,12,17,0.95));
  padding: 18px;
  display: grid;
  gap: 12px;
}
.sampleMeta {
  color: var(--gold);
  letter-spacing: 0.12em;
  font-size: 0.75rem;
}
.sampleCard h3 { font-size: 1.3rem; }
.sampleCard p { margin: 0; color: #ddd7c6; line-height: 1.8; }
.sampleActions { margin-top: 6px; }
.sampleDownload {
  display: inline-block;
  padding: 12px 16px;
  color: var(--gold2);
}
.siteFooter {
  padding: 18px 18px 32px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.8;
}
.drawerBackdrop {
  position: fixed; inset: 0; z-index: 29;
  background: rgba(0,0,0,0.45);
}
.drawer {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: min(88vw, 420px);
  z-index: 30;
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 14px;
  background: rgba(13,14,19,0.97);
  border-right: 1px solid var(--line);
  box-shadow: 20px 0 60px rgba(0,0,0,0.48);
  overflow: auto;
}
.hidden { display: none !important; }
.drawerHead { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.drawerHead h2 { font-size: 1.2rem; }
.drawerSection {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  padding: 14px;
}
.drawerSection h3 { margin-bottom: 10px; color: var(--gold2); font-size: 1rem; }
.drawerSection p, .drawerSection li {
  color: #ddd7c6;
  line-height: 1.75;
}
.drawerSection ul { margin: 0; padding-left: 1.2em; }

.toolLinkList {
  display: grid;
  gap: 8px;
}
.toolLinkList a {
  display: block;
  padding: 11px 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.035);
  color: var(--gold2);
  line-height: 1.45;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.toolLinkList a::after {
  content: " ↗";
  color: var(--muted);
}
.toolLinkList a:hover {
  border-color: rgba(245,232,190,0.42);
  background: rgba(255,255,255,0.075);
}
.toolLinkList a:active { transform: translateY(1px); }

@media (max-width: 720px) {
  .heroWrap { width: min(100%, calc(100vw - 16px)); }
  .siteHeader { grid-template-columns: auto 1fr; }
  .headerAction { display: none; }
  .heroPanel, .samplePanel { padding-left: 16px; padding-right: 16px; }
  .ctaButton { min-width: 100%; }
}
