:root {
  color-scheme: dark;
  --bg: #090d14;
  --bg-strong: #04070c;
  --surface: rgba(15, 21, 31, 0.86);
  --surface-strong: rgba(20, 29, 43, 0.94);
  --line: rgba(215, 177, 94, 0.24);
  --line-cool: rgba(118, 169, 214, 0.18);
  --text: #f2eee5;
  --muted: #b8c0c9;
  --soft: #7f8b9b;
  --gold: #d7b15e;
  --gold-strong: #f1c86a;
  --cyan: #80c7d8;
  --red: #d84e43;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  letter-spacing: 0;
}

body.is-lightbox-open {
  overflow: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(
      90deg,
      rgba(5, 8, 14, 0.96) 0%,
      rgba(8, 12, 20, 0.9) 45%,
      rgba(8, 12, 20, 0.68) 100%
    ),
    url("https://ddragon.leagueoflegends.com/cdn/img/champion/splash/Jax_0.jpg")
    center top / cover;
  content: "";
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(9, 13, 20, 0) 0%, var(--bg) 92%),
    linear-gradient(115deg, rgba(215, 177, 94, 0.12), transparent 42%);
  content: "";
}

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

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0;
}

.site-header::before {
  position: absolute;
  inset: 8px -14px;
  z-index: -1;
  border: 1px solid rgba(242, 238, 229, 0.08);
  border-radius: 8px;
  background: rgba(5, 8, 14, 0.76);
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
  content: "";
}

.brand,
.nav-links,
.language-switcher,
.hero-actions,
.status-bar,
.lane-list,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  color: var(--text);
  font-size: 15px;
  font-weight: 740;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.34));
}

.nav-links {
  justify-content: center;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 620;
}

.nav-links a {
  transition: color 160ms ease;
}

.nav-links a:hover {
  color: var(--text);
}

.language-switcher {
  gap: 6px;
}

.language-switcher button {
  border: 0;
  border-radius: 7px;
  padding: 8px 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 720;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.language-switcher button:hover,
.language-switcher button.is-active {
  background: rgba(215, 177, 94, 0.14);
  color: var(--gold-strong);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  gap: 44px;
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  padding: 74px 0 96px;
}

.hero-content {
  max-width: 710px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(58px, 9vw, 116px);
  font-weight: 840;
  line-height: 0.92;
}

.hero p {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.62;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 48px;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 760;
  transition:
    transform 160ms ease,
    background 160ms ease,
    outline-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--gold);
  color: #15100a;
  box-shadow: 0 18px 45px rgba(215, 177, 94, 0.24);
}

.button-primary:hover {
  background: var(--gold-strong);
}

.button-secondary {
  outline: 1px solid rgba(242, 238, 229, 0.18);
  background: rgba(8, 12, 20, 0.58);
  color: var(--text);
}

.button-secondary:hover {
  outline-color: rgba(215, 177, 94, 0.44);
  background: rgba(18, 25, 36, 0.82);
}

.hero .download-note {
  color: var(--soft);
  font-size: 13px;
  line-height: 1.55;
}

.status-board {
  width: min(860px, 100%);
  border: 1px solid rgba(242, 238, 229, 0.1);
  border-radius: 8px;
  background: linear-gradient(
    180deg,
    rgba(14, 21, 32, 0.94),
    rgba(9, 13, 20, 0.92)
  );
  box-shadow: var(--shadow);
  overflow: hidden;
}

.status-bar {
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(242, 238, 229, 0.08);
}

.status-bar span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(242, 238, 229, 0.28);
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 16px;
}

.preview-panel {
  min-height: 152px;
  border: 1px solid var(--line-cool);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.preview-panel-main {
  grid-column: 1 / -1;
  min-height: 230px;
  background:
    linear-gradient(145deg, rgba(215, 177, 94, 0.16), transparent 58%),
    rgba(255, 255, 255, 0.04);
}

.preview-panel p,
.source-card p {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.preview-panel h2 {
  max-width: 330px;
  margin: 0;
  font-size: 30px;
  line-height: 1.05;
}

.preview-panel strong {
  display: block;
  font-size: 30px;
}

.preview-panel span {
  color: var(--soft);
  font-size: 13px;
}

.lane-list {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 34px;
}

.lane-list span {
  min-width: 54px;
  border-radius: 6px;
  padding: 9px 10px;
  background: rgba(215, 177, 94, 0.12);
  color: var(--gold-strong);
  text-align: center;
  font-size: 12px;
  font-weight: 800;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 0;
}

.band {
  border-top: 1px solid rgba(242, 238, 229, 0.08);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 34px;
}

.section h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1;
}

.section p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

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

.feature-list article,
.source-card {
  border: 1px solid rgba(242, 238, 229, 0.09);
  border-radius: 8px;
  background: var(--surface);
}

.feature-list article {
  min-height: 248px;
  padding: 22px;
}

.feature-list h3 {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 19px;
}

.feature-list p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.screenshots-section {
  border-top: 1px solid rgba(242, 238, 229, 0.08);
}

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

.screenshot-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  border-radius: 8px;
  outline: 1px solid rgba(242, 238, 229, 0.1);
  background: rgba(12, 18, 27, 0.9);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.screenshot-copy {
  display: grid;
  gap: 8px;
  padding: 18px 18px 16px;
}

.screenshot-copy p {
  margin: 0;
  color: var(--gold-strong);
  font-size: 12px;
  font-weight: 780;
  text-transform: uppercase;
}

.screenshot-copy h3 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
  line-height: 1.12;
}

.screenshot-copy span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.screenshot-preview {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
}

.screenshot-preview::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, 0.48));
  opacity: 0;
  transition: opacity 160ms ease;
  content: "";
}

.screenshot-preview:hover::after,
.screenshot-preview:focus-visible::after {
  opacity: 1;
}

.screenshot-preview:focus-visible {
  outline: 2px solid var(--gold-strong);
  outline-offset: -2px;
}

.screenshot-preview span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  border-radius: 7px;
  padding: 8px 11px;
  background: rgba(215, 177, 94, 0.92);
  color: #15100a;
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.screenshot-preview:hover span,
.screenshot-preview:focus-visible span {
  opacity: 1;
  transform: translateY(0);
}

.screenshot-preview img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2179 / 1504;
  border-top: 1px solid rgba(242, 238, 229, 0.08);
  object-fit: cover;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 28px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(3, 6, 10, 0.82);
  cursor: zoom-out;
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1500px, 100%);
  max-height: calc(100vh - 56px);
  overflow: hidden;
  border-radius: 8px;
  outline: 1px solid rgba(242, 238, 229, 0.14);
  background: rgba(12, 18, 27, 0.98);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.58);
}

.lightbox-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(242, 238, 229, 0.08);
}

.lightbox-header h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
}

.lightbox-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 7px;
  background: rgba(242, 238, 229, 0.08);
  color: var(--text);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: rgba(215, 177, 94, 0.18);
  color: var(--gold-strong);
  outline: none;
}

.lightbox-dialog img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  background: rgba(3, 6, 10, 0.55);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 52px;
  align-items: center;
  border-top: 1px solid rgba(242, 238, 229, 0.08);
}

.source-card {
  padding: 28px;
  background:
    linear-gradient(145deg, rgba(215, 177, 94, 0.14), transparent 62%),
    var(--surface-strong);
}

.source-card strong {
  display: block;
  margin-bottom: 18px;
  font-size: 44px;
}

.source-card span {
  color: var(--muted);
  line-height: 1.65;
}

.notes {
  max-width: 840px;
  padding-top: 36px;
}

.notes p {
  margin-top: 22px;
}

.notes .disclaimer {
  color: var(--soft);
  font-size: 14px;
}

.site-footer {
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0 44px;
  border-top: 1px solid rgba(242, 238, 229, 0.08);
  color: var(--soft);
  font-size: 13px;
}

.site-footer a:hover {
  color: var(--gold-strong);
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .section-heading,
  .split,
  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 34px;
    min-height: auto;
    padding-top: 52px;
  }

  .feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-header,
  .hero,
  .section,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .site-header::before {
    inset: 7px -8px;
  }

  .language-switcher {
    justify-content: space-between;
  }

  .language-switcher button {
    flex: 1;
  }

  .hero h1 {
    font-size: clamp(48px, 18vw, 70px);
  }

  .hero p {
    font-size: 17px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
    text-align: center;
  }

  .preview-grid,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .preview-panel-main,
  .preview-panel {
    min-height: 160px;
  }

  .section {
    padding: 62px 0;
  }

  .feature-list article {
    min-height: auto;
  }

  .site-footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .lightbox {
    padding: 12px;
  }

  .lightbox-dialog {
    max-height: calc(100vh - 24px);
  }

  .lightbox-dialog img {
    max-height: calc(100vh - 88px);
  }
}

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