:root {
  color-scheme: dark;
  --bg: #061413;
  --surface: #0b2523;
  --surface-strong: #103834;
  --line: #4b695d;
  --gold: #f2c15b;
  --gold-soft: #ffe39a;
  --cream: #fff2d3;
  --muted: #c7d0c8;
  --green: #53dc8f;
  --red: #d65e52;
  --blue: #73d6db;
  --max: 1180px;
  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(--cream);
}

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

a {
  color: var(--gold-soft);
}

:focus-visible {
  outline: 3px solid var(--gold-soft);
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 10px max(20px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(242, 193, 91, 0.34);
  background: rgba(6, 20, 19, 0.95);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--cream);
  font-size: 1rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(242, 193, 91, 0.64);
  border-radius: 8px;
  object-fit: cover;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 720;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--gold);
}

.site-language-picker {
  flex: 0 0 auto;
}

.site-language-picker select {
  min-height: 40px;
  max-width: 132px;
  padding: 7px 32px 7px 12px;
  border: 1px solid rgba(242, 193, 91, 0.52);
  border-radius: 999px;
  background: var(--surface);
  color: var(--cream);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

.hero {
  position: relative;
  display: grid;
  min-height: 560px;
  height: calc(82svh - 72px);
  max-height: 760px;
  place-items: center;
  overflow: hidden;
  background-image: url("./hero-bg.webp");
  background-position: center 42%;
  background-size: cover;
}

.hero::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 13, 13, 0.32), rgba(3, 17, 16, 0.7) 58%, rgba(6, 20, 19, 0.95));
  content: "";
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(780px, calc(100% - 36px));
  padding: 12px 0;
  text-align: center;
}

.hero-logo {
  width: 300px;
  margin: 0 auto -26px;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.55));
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
li,
dd {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: 64px;
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  margin: 18px auto 0;
  color: #f3ead8;
  font-size: 1.12rem;
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 17px;
  border: 1px solid rgba(242, 193, 91, 0.7);
  border-radius: 6px;
  background: rgba(6, 28, 27, 0.86);
  color: var(--cream);
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  border-color: var(--gold);
  background: var(--gold);
  color: #211205;
}

.button:hover {
  border-color: var(--gold-soft);
  transform: translateY(-1px);
}

.live-status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 9px;
  margin: 14px auto 0;
  padding: 8px 12px;
  border: 1px solid rgba(83, 220, 143, 0.54);
  border-radius: 999px;
  background: rgba(7, 28, 26, 0.8);
  color: #dcffea;
  font-size: 0.88rem;
  font-weight: 750;
}

.live-status::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.section {
  border-top: 1px solid rgba(75, 105, 93, 0.52);
}

.section.alt {
  background: #0a1e1c;
}

.section-inner,
.legal-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 72px 24px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

h2 {
  margin: 0;
  font-size: 36px;
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.18rem;
  letter-spacing: 0;
}

.section-lead {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.65;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-grid article {
  min-height: 205px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.feature-grid article:last-child {
  border-right: 0;
}

.feature-number,
.mode-number {
  display: block;
  margin-bottom: 26px;
  color: var(--red);
  font-size: 0.84rem;
  font-weight: 900;
}

.feature-grid p,
.mode-grid p,
.screen-card p,
.info-grid p,
.legal-card p,
.legal-card li,
.legal-card dd {
  color: var(--muted);
  line-height: 1.65;
}

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

.mode-grid article {
  min-height: 230px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(11, 37, 35, 0.7);
}

.mode-grid article:nth-child(2) .mode-number {
  color: var(--green);
}

.mode-grid article:nth-child(3) .mode-number {
  color: var(--blue);
}

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

.screen-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #071b19;
}

.screen-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 110 / 239;
  object-fit: cover;
  object-position: top;
}

.screen-card figcaption {
  padding: 16px;
}

.screen-card strong {
  display: block;
  font-size: 1rem;
}

.screen-card p {
  margin: 6px 0 0;
  font-size: 0.91rem;
}

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

.info-grid article {
  padding-top: 20px;
  border-top: 3px solid var(--gold);
}

.info-grid article:nth-child(2) {
  border-color: var(--green);
}

.info-grid article:nth-child(3) {
  border-color: var(--red);
}

.info-grid .button {
  margin-top: 8px;
}

.developer-profile {
  border-top: 1px solid var(--line);
  background: radial-gradient(circle at 82% 20%, rgba(83, 220, 143, 0.12), transparent 24rem), var(--surface);
}

.developer-profile-inner {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.developer-label {
  margin: 9px 0 0;
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.developer-profile h2 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.developer-profile h2 a {
  color: var(--cream);
  text-decoration: none;
}

.developer-profile div > p {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.developer-links {
  display: grid;
  min-width: 180px;
  border-top: 1px solid var(--line);
}

.developer-links a {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--cream);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
}

.developer-links a::after {
  float: right;
  content: "↗";
}

.legal-hero {
  border-bottom: 1px solid rgba(242, 193, 91, 0.34);
  background-image: linear-gradient(rgba(5, 22, 21, 0.68), rgba(5, 22, 21, 0.95)), url("./hero-bg.webp");
  background-position: center 40%;
  background-size: cover;
}

.legal-hero .legal-inner {
  padding-top: 78px;
  padding-bottom: 68px;
}

.legal-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: 48px;
  line-height: 1.05;
}

.legal-hero .hero-copy {
  margin-right: 0;
  margin-left: 0;
}

.hero-note {
  margin: 18px 0 0;
  color: var(--gold-soft);
  font-size: 0.92rem;
}

.legal-stack {
  display: grid;
  gap: 14px;
}

.legal-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(11, 37, 35, 0.72);
}

.legal-card h2 {
  font-size: 24px;
}

.legal-card p:last-child,
.legal-card ul:last-child,
.legal-card ol:last-child,
.legal-card dl:last-child {
  margin-bottom: 0;
}

.legal-card li + li {
  margin-top: 8px;
}

.legal-list {
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) 1fr;
  gap: 12px 22px;
}

.legal-list dt {
  color: var(--gold-soft);
  font-weight: 850;
}

.legal-list dd {
  margin: 0;
}

.contact-callout {
  border-left: 4px solid var(--blue);
}

.danger-callout {
  border-left: 4px solid var(--red);
}

[hidden] {
  display: none !important;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #030d0c;
}

.footer-inner {
  display: flex;
  width: min(var(--max), 100%);
  min-height: 88px;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin: 0 auto;
  padding: 20px 24px;
  color: #9cb0a8;
  font-size: 0.9rem;
}

.footer-inner a {
  color: var(--muted);
  text-decoration: none;
}

@media (max-width: 920px) {
  .nav {
    gap: 14px;
  }

  .nav a:nth-child(1),
  .nav a:nth-child(2) {
    display: none;
  }

  h1 {
    font-size: 48px;
  }

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

  .feature-grid article:nth-child(2) {
    border-right: 0;
  }

  .feature-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .mode-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .developer-profile-inner {
    grid-template-columns: 1fr;
  }

  .developer-links {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 64px;
    flex-wrap: wrap;
    gap: 12px;
    padding: 8px 14px;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .brand span {
    display: none;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 12px;
    padding: 2px 0 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav a {
    display: inline-flex !important;
    flex: 0 0 auto;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .site-language-picker {
    margin-left: auto;
  }

  .hero {
    min-height: 530px;
    height: calc(82svh - 64px);
  }

  .hero-logo {
    width: 238px;
    margin-bottom: -12px;
  }

  h1 {
    font-size: 38px;
  }

  .hero-copy {
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .actions .button {
    width: 100%;
  }

  .section-inner,
  .legal-inner {
    padding: 54px 18px;
  }

  h2 {
    font-size: 29px;
  }

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

  .feature-grid article,
  .feature-grid article:nth-child(2) {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature-grid article:last-child {
    border-bottom: 0;
  }

  .screen-grid {
    gap: 14px;
  }

  .screen-card {
    width: min(100%, 390px);
    margin-inline: auto;
  }

  .legal-hero h1 {
    font-size: 36px;
  }

  .legal-card {
    padding: 20px;
  }

  .legal-list {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .legal-list dd + dt {
    margin-top: 12px;
  }
}
