/* Early Time — black, white, no gradients. */

:root {
  --bg: #000000;
  --panel: #080808;
  --panel-2: #0d0d0d;
  --line: #242424;
  --line-soft: #191919;
  --text: #ffffff;
  --muted: #a3a3a3;
  --muted-2: #737373;
  --accent: #ffffff;
  --sans: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  scrollbar-color: #333333 #000000;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--text);
  color: var(--bg);
}

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

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

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

h1,
h2,
h3 {
  text-wrap: balance;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

p {
  line-height: 1.7;
}

code {
  display: inline;
  max-width: 100%;
  padding: 2px 6px;
  border: 1px solid #2a2a2a;
  background: #141414;
  color: #e8e8e8;
  font-family: var(--mono);
  font-size: 0.86em;
  overflow-wrap: anywhere;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.wrap {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

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

.brand:hover span {
  color: var(--muted);
}

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

.site-nav a {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms ease;
}

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

.site-nav .nav-download {
  padding: 10px 14px;
  border: 1px solid var(--text);
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
}

.site-nav .nav-download:hover {
  border-color: #d4d4d4;
  background: #d4d4d4;
  color: var(--bg);
}

.site-nav .nav-download[aria-current="page"] {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

/* Shared bits */

.kicker {
  margin-bottom: 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  border-color: #d4d4d4;
  background: #d4d4d4;
}

.btn-ghost {
  border-color: #3a3a3a;
  background: transparent;
  color: var(--text);
}

.btn-ghost:hover {
  border-color: #6a6a6a;
  background: #111111;
}

.btn-block {
  width: 100%;
}

/* Hero */

.hero {
  padding: clamp(72px, 11vh, 132px) 0 clamp(68px, 10vh, 116px);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-icon {
  width: clamp(96px, 12vw, 136px);
  height: auto;
  margin: 0 auto 30px;
}

.hero-title {
  margin: 0;
  line-height: 0;
}

.hero-wordmark {
  width: clamp(270px, 46vw, 520px);
  margin-inline: auto;
}

.hero-kicker {
  margin: 30px 0 16px;
}

.hero-lead {
  max-width: 640px;
  margin: 0 auto;
  color: #c6c6c6;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.75;
}

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

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  margin: 42px 0 0;
  padding: 0;
  color: #858585;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  list-style: none;
  text-transform: uppercase;
}

.hero-facts li + li::before {
  content: "/";
  margin: 0 14px;
  color: #383838;
}

/* Sections */

.section {
  padding: clamp(72px, 9vw, 116px) 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 780px;
  margin-bottom: clamp(34px, 5vw, 56px);
}

.section-head > p:last-child {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
}

/* Video */

.video-frame {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.video-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  object-fit: cover;
}

.video-frame figcaption {
  padding: 14px 6px 4px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Worlds */

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

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

.world-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.world-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.world-card:hover .world-media img {
  transform: scale(1.04);
}

.world-body {
  padding: 22px;
}

.world-body h3 {
  margin-bottom: 8px;
}

.world-body p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* Modes */

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

.mode-card {
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--line);
  background: var(--panel);
}

.mode-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 30px;
  color: var(--text);
}

.mode-label {
  margin-bottom: 12px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.mode-card h3 {
  margin-bottom: 14px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.mode-card > p:last-child,
.requirement-card p,
.split-copy p {
  margin-bottom: 0;
  color: var(--muted);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-top: 0;
  background: #050505;
}

.stat {
  padding: 24px 20px;
  text-align: center;
}

.stat + .stat {
  border-left: 1px solid var(--line);
}

.stat strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat span {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Split section */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  gap: clamp(30px, 5vw, 64px);
}

.split-copy .kicker {
  margin-bottom: 12px;
}

.split-copy h2 {
  margin-bottom: 20px;
}

.split-copy p {
  margin-bottom: 18px;
}

.split-copy .btn {
  margin-top: 12px;
}

/* CTA */

.cta {
  border-bottom: 1px solid var(--line);
  background: #050505;
  text-align: center;
}

.cta h2 {
  margin-bottom: 16px;
}

.cta > .wrap > p:not(.kicker) {
  max-width: 560px;
  margin: 0 auto 30px;
  color: var(--muted);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Footer */

.site-footer {
  padding: 56px 0 36px;
  color: var(--muted-2);
  font-size: 0.84rem;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line-soft);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 32px;
  height: 32px;
}

.footer-name {
  margin: 0;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-tagline {
  margin: 4px 0 0;
  color: var(--muted-2);
  font-size: 0.82rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-nav a {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
}

.footer-bottom p {
  margin: 0;
}

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

.footer-bottom a:hover {
  color: var(--text);
}

/* Download page */

.download-hero {
  padding: clamp(62px, 9vw, 108px) 0 clamp(20px, 3vw, 34px);
  text-align: center;
}

.download-icon {
  width: clamp(84px, 10vw, 112px);
  margin-bottom: 26px;
}

.download-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.download-hero .hero-facts {
  margin-top: 30px;
}

.downloads-section {
  padding-top: clamp(28px, 4vw, 48px);
}

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

.download-card {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  background: var(--panel);
}

.download-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.platform-icon {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.platform-svg {
  color: var(--text);
}

.tag {
  padding: 6px 8px;
  border: 1px solid #333333;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.download-card h2 {
  margin-bottom: 12px;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
}

.download-copy {
  margin-bottom: 28px;
  color: var(--muted);
}

.file-meta {
  display: grid;
  gap: 10px;
  margin: 0 0 30px;
  padding: 0;
}

.file-meta > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}

.file-meta dt {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.file-meta dd {
  margin: 0;
  color: #d6d6d6;
  font-size: 0.82rem;
  text-align: right;
}

.download-card .btn {
  margin-top: auto;
}

.download-help {
  max-width: 760px;
  margin: 26px 0 0;
  color: var(--muted-2);
  font-size: 0.9rem;
}

.download-help strong {
  color: var(--text);
}

/* Install + requirements */

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

.step-card,
.requirement-card {
  padding: clamp(24px, 3.5vw, 34px);
  border: 1px solid var(--line);
  background: var(--panel);
}

.step-card h3 {
  margin-bottom: 0;
}

.step-list {
  display: grid;
  gap: 18px;
  margin: 26px 0 0;
  padding: 0;
  counter-reset: step;
  list-style: none;
}

.step-list li {
  position: relative;
  padding-left: 48px;
  color: #b3b3b3;
  counter-increment: step;
  line-height: 1.6;
}

.step-list li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: -1px;
  left: 0;
  padding: 4px 5px;
  border: 1px solid #333333;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.66rem;
  line-height: 1;
}

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

.requirement-card h3 {
  margin-bottom: 18px;
}

.plain-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plain-list li {
  position: relative;
  padding-left: 18px;
  color: #b3b3b3;
  font-size: 0.9rem;
  line-height: 1.6;
}

.plain-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: #4a4a4a;
}

/* FAQ */

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  color: var(--text);
  cursor: pointer;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 1.2rem;
  font-weight: 400;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  max-width: 760px;
  margin: -4px 0 26px;
  color: var(--muted);
}

/* 404 */

.not-found {
  padding: clamp(80px, 13vw, 150px) 0;
  text-align: center;
}

.error-code {
  margin: 0 0 18px;
  color: #1f1f1f;
  font-family: var(--mono);
  font-size: clamp(5rem, 18vw, 12rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.8;
}

.not-found h1 {
  margin-bottom: 16px;
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: -0.05em;
  line-height: 1;
}

.not-found .hero-lead {
  margin-bottom: 30px;
}

/* Responsive */

@media (max-width: 1000px) {
  .world-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .world-card:last-child {
    grid-column: 1 / -1;
  }

  .world-card:last-child .world-media {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 900px) {
  .split,
  .download-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

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

  .requirement-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 780px) {
  .mode-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 8rem;
  }

  .wrap {
    width: min(1180px, calc(100% - 32px));
  }

  .world-grid {
    grid-template-columns: 1fr;
  }

  .world-card:last-child {
    grid-column: auto;
  }

  .world-card:last-child .world-media {
    aspect-ratio: 4 / 3;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 10px;
    padding-block: 12px;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--line-soft);
  }

  .site-nav a {
    font-size: 0.64rem;
    letter-spacing: 0.08em;
  }

  .site-nav .nav-download {
    padding: 7px 10px;
  }

  .hero {
    padding-top: 62px;
    padding-bottom: 68px;
  }

  .hero-facts {
    gap: 8px 18px;
    margin-top: 34px;
    font-size: 0.6rem;
  }

  .hero-facts li + li::before {
    content: none;
    margin: 0;
  }

  .footer-top {
    flex-direction: column;
    gap: 24px;
  }
}

@media (max-width: 620px) {
  .requirement-grid {
    grid-template-columns: 1fr;
  }

  .requirement-card:last-child {
    grid-column: auto;
  }

  .stat-strip {
    grid-template-columns: 1fr;
  }

  .stat + .stat {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .hero-actions .btn,
  .cta-actions .btn {
    width: 100%;
    max-width: 320px;
  }

  .mode-card {
    padding: 24px;
  }

  .world-body {
    padding: 20px;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .world-card:hover .world-media img {
    transform: none;
  }
}
