:root {
  color-scheme: dark;
  --bg: #0b0b0c;
  --surface: #121214;
  --surface-raised: #1c1c1f;
  --line: #303034;
  --muted: #b8b8bd;
  --text: #f4f3f3;
  --red: #d42d3b;
  --red-bright: #f04450;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--red-bright); outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
.page-shell { max-width: 1440px; margin: 0 auto; padding: 0 6%; overflow: hidden; }

.topbar {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 750; letter-spacing: -.035em; font-size: 19px; }
.brand-mark { display: block; width: 42px; height: 42px; border: 1px solid #303034; border-radius: 8px; object-fit: cover; }
nav { display: flex; align-items: center; gap: 30px; color: var(--muted); font-size: 15px; }
nav a { transition: color .18s ease; }
nav a:hover, .footer a:hover { color: var(--red-bright); }
nav .nav-download { color: var(--text); border: 1px solid var(--line); border-radius: 7px; padding: 9px 13px; }
nav .nav-download:hover { border-color: var(--red); box-shadow: 0 0 18px #d42d3b45; }

.hero {
  max-width: var(--max);
  min-height: 550px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 54px;
  padding: 64px 0 76px;
}
.hero-copy { position: relative; z-index: 1; }
.eyebrow, .section-kicker { color: #f06a73; font-size: 13px; font-weight: 750; letter-spacing: .12em; line-height: 1.4; }
.hero-eyebrow { margin-bottom: 23px; }
.hero-eyebrow span { color: #6e6d70; margin: 0 7px; }
h1 { font-size: clamp(56px, 6.7vw, 88px); letter-spacing: -.075em; line-height: .99; margin: 0 0 25px; font-weight: 720; }
h1 span { color: var(--red-bright); }
.hero-lede { max-width: 565px; color: #c9c8cb; font-size: 20px; line-height: 1.65; margin-bottom: 29px; }
.hero-actions { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; }
.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 16px;
  font-weight: 700;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--red); color: white; }
.button-primary:hover { background: #e13845; box-shadow: 0 0 0 1px #f0445060, 0 0 24px #e02e3d77; }
.button-secondary { background: #131315; border-color: #444247; color: var(--text); }
.button-secondary:hover { border-color: var(--red-bright); color: white; box-shadow: 0 0 0 1px #f0445030, 0 0 23px #e02e3d59; }
.hero-note { color: #aaa9ae; font-size: 14px; margin: 17px 0 0; }

.preview-wrap { display: flex; justify-content: center; align-items: center; }
.discord-activity { width: min(440px, 100%); }
.activity-heading { display: flex; align-items: center; color: #c9c8cb; font-size: 14px; margin: 0 0 10px; }
.activity-card { background: #1e1f22; border-radius: 16px; padding: 13px 14px 14px; }
.activity-type { display: flex; align-items: center; justify-content: space-between; color: #f0eff0; font-size: 14px; margin-bottom: 9px; }
.activity-menu { color: #a7a7aa; font-size: 16px; letter-spacing: 2px; line-height: 1; }
.activity-content { display: flex; align-items: center; gap: 13px; }
.activity-art { width: 88px; height: 88px; flex: 0 0 88px; object-fit: cover; border-radius: 9px; }
.activity-copy { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; line-height: 1.35; font-size: 14px; color: #dbdade; }
.activity-copy strong { max-width: 100%; color: white; font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 3px; }
.activity-copy > span { color: #d0cfd2; }
.activity-copy small { display: flex; align-items: center; gap: 6px; color: #43c875; font-size: 13px; margin-top: 6px; }
.gamepad-icon { width: 14px; height: 14px; fill: currentColor; }
.activity-note { max-width: 430px; color: #a8a7ab; font-size: 13px; line-height: 1.55; margin: 10px 2px 0; }

.feature-section, .install-section, .download-section, .community-section { max-width: var(--max); margin-left: auto; margin-right: auto; }
.feature-section { padding: 45px 0 42px; border-top: 1px solid var(--line); }
.section-title { font-size: clamp(32px, 4vw, 46px); letter-spacing: -.055em; line-height: 1.1; margin: 12px 0 28px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.feature { min-height: 194px; padding: 25px 25px 27px; border: 1px solid #29292e; border-radius: 12px; background: var(--surface); }
.feature h3 { font-size: 23px; line-height: 1.25; letter-spacing: -.03em; margin: 0 0 11px; }
.feature h3::before { content: ""; display: block; width: 29px; height: 3px; margin: 0 0 20px; background: var(--red); }
.feature p { max-width: 325px; color: #c0bfc4; font-size: 17px; line-height: 1.65; margin: 0; }

.install-section { padding: 78px 0 80px; }
.section-intro { max-width: 760px; color: #c4c3c7; font-size: 18px; margin: -9px 0 29px; }
.install-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.step { padding: 21px 22px 23px; border-left: 3px solid #70252c; border-radius: 0 10px 10px 0; background: #121214; }
.step h3 { font-size: 18px; line-height: 1.35; margin: 0 0 9px; }
.step p { color: #c0bfc4; font-size: 15px; line-height: 1.65; margin: 0; }
.step strong { color: white; }
.button-visibility { max-width: 850px; color: #c0bfc4; font-size: 15px; line-height: 1.65; margin: 20px 0 0; padding-left: 16px; border-left: 1px solid var(--red); }
.button-visibility strong { color: #eee; }

.download-section { display: grid; grid-template-columns: 1fr .8fr; gap: 48px; align-items: center; padding: 35px 0 42px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); scroll-margin-top: 28px; }
.download-copy h2, .community-section h2 { max-width: 510px; font-size: clamp(32px, 4vw, 44px); line-height: 1.1; letter-spacing: -.055em; margin: 11px 0 13px; }
.download-copy > p:not(.section-kicker) { max-width: 550px; color: #c3c2c7; font-size: 17px; line-height: 1.7; margin-bottom: 19px; }
.build-details { display: flex; flex-wrap: wrap; gap: 8px 17px; }
.build-details span { color: #d0cfd3; font-size: 14px; }
.build-details span + span::before { content: "·"; color: var(--red-bright); margin-right: 17px; }
.download-panel { padding: 21px; border: 1px solid #303034; border-radius: 12px; background: var(--surface); scroll-margin-top: 28px; }
.download-card-top { display: flex; gap: 13px; align-items: center; margin-bottom: 17px; }
.windows-icon { display: block; width: 48px; height: 48px; flex: none; border: 1px solid #493035; border-radius: 9px; object-fit: cover; }
.download-card-top strong, .download-card-top span { display: block; }
.download-card-top strong { font-size: 17px; margin-bottom: 2px; }
.download-card-top span { color: #c1c0c5; font-size: 14px; }
.download-button { width: 100%; justify-content: space-between; }
.download-footnote { color: #b6b5bb; font-size: 14px; line-height: 1.6; margin: 12px 0 0; }

.community-section { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 53px 0; border-bottom: 1px solid var(--line); }
.community-section h2 { font-size: 32px; margin: 8px 0 7px; }
.community-section p:last-child { color: #c0bfc4; font-size: 16px; margin: 0; }
.community-section .button { flex: none; }
.footer { max-width: var(--max); margin: 0 auto; min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #b0afb4; font-size: 14px; }
.footer-brand { font-size: 15px; color: #e0dfe3; }
.footer .brand-mark { width: 34px; height: 34px; }
.footer > a:last-child { color: #d6d5d9; }

@media (max-width: 900px) {
  .page-shell { padding: 0 32px; }
  .hero { grid-template-columns: 1fr; gap: 30px; padding: 58px 0 55px; }
  .hero-copy { text-align: center; }
  .hero-lede { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .preview-wrap { padding: 4px 0; }
  .discord-activity { max-width: 500px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature { min-height: 0; }
  .feature p { max-width: 620px; }
  .install-steps { grid-template-columns: 1fr; }
  .download-section { grid-template-columns: 1fr; gap: 20px; }
  .download-panel { max-width: 540px; width: 100%; }
}
@media (max-width: 580px) {
  body { font-size: 16px; }
  .page-shell { padding: 0 19px; }
  .topbar { min-height: 68px; gap: 12px; }
  .brand { font-size: 16px; gap: 8px; }
  .brand-mark { width: 35px; height: 35px; }
  nav { gap: 12px; font-size: 13px; }
  nav a:nth-child(2) { display: none; }
  nav .nav-download { padding: 7px 9px; }
  .hero { padding: 46px 0 43px; }
  .hero-eyebrow { font-size: 11px; }
  h1 { font-size: clamp(48px, 13vw, 66px); }
  .hero-lede { font-size: 18px; }
  .button { min-height: 49px; font-size: 15px; padding: 0 13px; gap: 13px; }
  .activity-card { padding: 12px; border-radius: 14px; }
  .activity-art { width: 78px; height: 78px; flex-basis: 78px; }
  .activity-copy { font-size: 13px; }
  .activity-copy strong { font-size: 15px; }
  .feature-section { padding-top: 34px; }
  .section-title { font-size: 34px; margin-bottom: 22px; }
  .feature { padding: 21px; }
  .feature h3 { font-size: 21px; }
  .feature p { font-size: 16px; }
  .install-section { padding: 58px 0; }
  .section-intro { font-size: 16px; }
  .step { padding: 18px 18px 19px; }
  .step h3 { font-size: 17px; }
  .step p, .button-visibility { font-size: 15px; }
  .download-section { padding: 28px 0 31px; }
  .download-copy h2 { font-size: 35px; }
  .download-copy > p:not(.section-kicker) { font-size: 16px; }
  .build-details { gap: 5px 11px; }
  .build-details span { font-size: 13px; }
  .build-details span + span::before { margin-right: 11px; }
  .download-panel { padding: 16px; }
  .download-card-top strong { font-size: 15px; }
  .download-card-top span, .download-footnote { font-size: 13px; }
  .community-section { align-items: flex-start; flex-direction: column; padding: 39px 0; }
  .community-section h2 { font-size: 29px; }
  .community-section p:last-child { font-size: 15px; }
  .footer { min-height: 100px; flex-wrap: wrap; padding: 18px 0; }
  .footer > span { order: 3; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
