:root {
  color-scheme: dark;
  --bg: #06111c;
  --panel: rgba(8, 21, 34, 0.86);
  --panel-solid: #0b1826;
  --text: #f3f8ff;
  --muted: #a9bfd1;
  --blue: #1f9bff;
  --blue-deep: #0965ba;
  --gold: #d7ad45;
  --red: #d63b4f;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(4, 12, 20, 0.54);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(4, 12, 20, 0.88);
  border-bottom-color: var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand-text {
  display: grid;
  gap: 1px;
  line-height: 1;
}

.brand-text strong {
  font-size: 15px;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  color: #d8e7f3;
  font-size: 14px;
}

.site-nav a:hover {
  color: var(--blue);
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--text);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  cursor: pointer;
}

.header-cta {
  min-height: 40px;
  background: rgba(31, 155, 255, 0.14);
  border-color: rgba(31, 155, 255, 0.45);
  font-size: 13px;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 112px clamp(18px, 5vw, 82px) 72px;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("hero-grand-theater.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(3, 8, 14, 0.92) 0%, rgba(5, 15, 25, 0.76) 44%, rgba(5, 13, 22, 0.35) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(6, 17, 28, 0) 36%);
}

.hero-content {
  position: relative;
  width: min(720px, 100%);
}

.hero-logo {
  width: min(210px, 48vw);
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(48px, 9vw, 104px);
  line-height: 0.92;
  max-width: 760px;
}

.hero-copy {
  max-width: 620px;
  color: #d5e3ef;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
}

.hero-actions,
.community-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn.primary {
  background: linear-gradient(180deg, #35a7ff, var(--blue-deep));
  box-shadow: 0 16px 34px rgba(31, 155, 255, 0.25);
}

.btn.secondary,
.btn.ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn:hover,
.header-cta:hover,
.copy-ip:hover {
  transform: translateY(-1px);
}

.server-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin-top: 34px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid var(--line);
}

.server-card span {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.copy-ip {
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-weight: 900;
}

.scroll-cue {
  position: absolute;
  left: clamp(18px, 5vw, 82px);
  bottom: 24px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.download-band,
.feature-section,
.play-section,
.community-section {
  padding: clamp(72px, 10vw, 124px) clamp(18px, 5vw, 82px);
}

.download-band {
  background: #081522;
}

.section-heading {
  width: min(760px, 100%);
  margin: 0 auto 40px;
  text-align: center;
}

.section-heading.align-left {
  margin-left: 0;
  text-align: left;
}

.section-heading h2,
.community-panel h2 {
  margin-bottom: 14px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1;
}

.section-heading p,
.community-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.download-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.15fr 0.7fr;
  gap: 18px;
}

.download-card {
  min-height: 250px;
  padding: 28px;
  background: linear-gradient(180deg, rgba(20, 43, 65, 0.94), rgba(9, 22, 36, 0.94));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.download-card.accent {
  border-color: rgba(215, 173, 69, 0.38);
}

.download-card.compact {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.download-type {
  width: fit-content;
  margin-bottom: 28px;
  padding: 7px 10px;
  background: rgba(31, 155, 255, 0.16);
  border: 1px solid rgba(31, 155, 255, 0.34);
  color: #9bd4ff;
  font-weight: 900;
}

.download-card h3 {
  margin-bottom: 10px;
  font-size: 26px;
}

.download-card p {
  color: var(--muted);
  line-height: 1.65;
}

.helper-link {
  display: inline-flex;
  margin-top: 14px;
  color: #9bd4ff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.helper-link:hover {
  color: var(--text);
}

.feature-section {
  background: #06111c;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  overflow: hidden;
  background: var(--panel-solid);
  border: 1px solid var(--line);
}

.feature-card.large {
  grid-column: span 2;
}

.feature-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.feature-card div {
  padding: 22px;
}

.feature-card span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.feature-card h3 {
  margin: 8px 0 10px;
  font-size: 24px;
}

.feature-card p {
  color: var(--muted);
  line-height: 1.62;
}

.play-section {
  background: #0b1520;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.steps li {
  min-height: 230px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
}

.steps span {
  display: block;
  margin-bottom: 38px;
  color: var(--gold);
  font-weight: 900;
}

.steps h3 {
  margin-bottom: 12px;
}

.steps p {
  color: var(--muted);
  line-height: 1.62;
}

.community-section {
  background-image:
    linear-gradient(90deg, rgba(6, 17, 28, 0.92), rgba(6, 17, 28, 0.6)),
    url("feature-mobile.jpg");
  background-size: cover;
  background-position: center;
}

.community-panel {
  width: min(720px, 100%);
  padding: clamp(28px, 5vw, 54px);
  background: rgba(5, 13, 21, 0.78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 5vw, 82px);
  background: #040b12;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer strong {
  color: var(--text);
}

.site-footer p {
  margin: 8px 0 0;
}

.toast {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  padding: 12px 18px;
  background: #f4f8ff;
  color: #07111d;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.download-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 96px 18px 40px;
  background-image:
    linear-gradient(90deg, rgba(4, 12, 20, 0.92), rgba(4, 12, 20, 0.7)),
    url("hero-grand-theater.jpg");
  background-size: cover;
  background-position: center;
}

.download-panel {
  width: min(760px, 100%);
  padding: clamp(28px, 6vw, 58px);
  background: rgba(7, 18, 30, 0.88);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.download-panel .hero-logo {
  width: 150px;
}

.download-panel code {
  display: block;
  padding: 14px;
  margin: 18px 0;
  overflow-wrap: anywhere;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  color: #cce8ff;
}

@media (max-width: 980px) {
  .site-nav {
    display: none;
  }

  .download-grid,
  .feature-grid,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .download-card.compact,
  .feature-card.large {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 12px 14px;
  }

  .brand-text {
    display: none;
  }

  .header-cta {
    padding: 0 14px;
  }

  .hero {
    min-height: 90vh;
    padding-top: 94px;
  }

  .hero-actions,
  .server-card,
  .community-actions {
    width: 100%;
  }

  .btn,
  .server-card,
  .copy-ip {
    width: 100%;
  }

  .download-grid,
  .feature-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .download-card.compact,
  .feature-card.large {
    grid-column: auto;
  }

  .site-footer {
    flex-direction: column;
  }
}
