@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/barlow-condensed-800-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/ibm-plex-mono-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --surface: #111112;
  --text: #f3f2f4;
  --muted: #93919b;
  --red: #ef1922;
  --border: #2a292c;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--surface) url("assets/grain.png") repeat;
  color: var(--text);
  font-family: var(--display);
}

p, h1, ul { margin: 0; }

button { color: inherit; }

:where(a, button):focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.site-header { border-bottom: 1px solid var(--border); }

.header-inner {
  width: min(100% - 2rem, 76rem);
  min-height: 4.75rem;
  margin-inline: auto;
  display: flex;
  align-items: center;
}

.brand {
  display: block;
  width: 8rem;
  height: auto;
}

.hero {
  min-height: calc(100svh - 4.75rem);
  padding: clamp(4.75rem, 8.5vh, 6.75rem) 1rem 4.65rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
  background: url("assets/grain.png") repeat,
    radial-gradient(ellipse 20rem 25rem at 50% 49%, #6d141522, transparent 79%);
}

.hero-inner { max-width: 52rem; margin-inline: auto; }

.rule-label {
  display: flex;
  justify-content: center;
  align-items: center;
  font: 600 0.875rem/1.2 var(--mono);
}

.rule-label::before, .rule-label::after {
  content: "";
  flex: 0 0 var(--rule-width);
  height: var(--rule-height);
  background: var(--red);
}

.platform {
  --rule-width: 1rem;
  --rule-height: 2px;
  gap: 0.61rem;
  color: var(--muted);
  font-size: clamp(0.65rem, 3vw, 0.88rem);
  letter-spacing: 0.055em;
}

h1 {
  margin-top: 1.35rem;
  font: italic 800 clamp(1.95rem, 11.2vw, 5.65rem)/1 var(--display);
  text-transform: uppercase;
}

h1 span { display: block; }
h1 em { color: var(--red); }

.features {
  margin-top: 1.62rem;
  font: 700 clamp(0.71rem, 3.9vw, 1.25rem)/1.25 var(--display);
  letter-spacing: 0.085em;
  text-transform: uppercase;
}

.modes {
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: clamp(0.36rem, 2.6vw, 0.88rem);
  padding: 0;
  list-style: none;
}

.modes li { display: flex; align-items: center; gap: inherit; white-space: nowrap; }

.modes li + li::before {
  content: "";
  width: 0.12em;
  height: 0.74em;
  background: var(--red);
  transform: skewX(-17deg);
}

.features p { margin-top: 0.68rem; color: var(--muted); }

.launch { margin-top: 3.23rem; }

.coming-soon {
  --rule-width: clamp(1rem, 6.1vw, 2.1rem);
  --rule-height: 1px;
  gap: 0.64rem;
  color: var(--red);
  font-size: clamp(0.7rem, 3.4vw, 0.9rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.coming-soon::before, .coming-soon::after { opacity: 0.45; }

.store-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(0.5rem, 2.8vw, 0.8rem);
  margin: 1.07rem auto 0;
  width: min(80%, 21rem);
}

.store-badge {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0.4rem;
  background: transparent;
  cursor: pointer;
}

.store-badge img {
  display: block;
  width: 100%;
  height: auto;
}

.store-badge:first-child { flex: 396; }
.store-badge:last-child { flex: 443; }
.store-badge:hover { filter: brightness(1.15); }

.actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.12rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  max-width: 100%;
  min-height: 3.25rem;
  padding: 0.65rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 3px;
  font: 700 clamp(0.8rem, 4.2vw, 1.25rem)/1.1 var(--display);
  color: inherit;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.button-primary {
  width: 12.5rem;
  gap: 0.92rem;
  background: #ed151e;
  color: #fff;
  box-shadow: 0 0.6rem 2rem #e415192e;
}

.button:disabled { opacity: 0.75; }
.button:not(:disabled) { cursor: pointer; }
.button-primary:not(:disabled):hover { background: #d8141d; }

.button-secondary {
  width: 12.875rem;
  gap: 0.72rem;
  border-color: #686569;
  background: #10101350;
}

.button-secondary:not(:disabled):hover { background: #29262b; border-color: #a7a3a8; }

.button-secondary img {
  width: 1.65rem;
  height: auto;
  mix-blend-mode: lighten;
}

.release-dialog {
  width: min(100% - 2rem, 24rem);
  padding: 1.75rem;
  border: 1px solid #48454b;
  border-radius: 0.65rem;
  background: #18171a url("assets/grain.png") repeat;
  color: var(--text);
  box-shadow: 0 1.5rem 4rem #0009;
  text-align: center;
}

.release-dialog::backdrop { background: #08080bd6; }
.release-dialog img { display: block; margin-inline: auto; }

.release-dialog h2 {
  margin: 0.65rem 0 0.45rem;
  font: italic 800 2.6rem/1 var(--display);
  text-transform: uppercase;
}

.release-dialog p { font: 1rem/1.45 system-ui, sans-serif; color: #cfccd2; }

.release-dialog .button {
  width: auto;
  min-width: 7rem;
  min-height: 2.75rem;
  margin-top: 1.25rem;
  box-shadow: none;
}

@media (min-width: 601px) {
  .header-inner { width: min(100% - 5rem, 76rem); min-height: 5rem; }
  .hero { min-height: calc(100svh - 5rem); }
  .platform { --rule-width: 1.35rem; gap: 0.8rem; }
  h1 { margin-top: 1.45rem; }
  .features { margin-top: 1.9rem; }
  .launch { margin-top: 2.8rem; }
  .button-primary { width: 15rem; }
  .button-secondary { width: 15.375rem; }
}

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}
