:root {
  color-scheme: dark;
  --ink: #f7efe1;
  --ink-soft: #cfc3af;
  --muted: #928b82;
  --bg: #090b0d;
  --bg-2: #11161a;
  --panel: rgba(15, 19, 22, 0.82);
  --line: rgba(247, 239, 225, 0.16);
  --blue: #8fc9dc;
  --blue-dark: #315766;
  --ember: #e97332;
  --gold: #d0b276;
  --danger: #9e2f1f;
  --radius: 8px;
  --max: 1160px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(180deg, rgba(9, 11, 13, 0.1), #090b0d 75%),
    radial-gradient(circle at 18% 18%, rgba(49, 87, 102, 0.25), transparent 32%),
    radial-gradient(circle at 82% 35%, rgba(158, 47, 31, 0.24), transparent 34%),
    #090b0d;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(247, 239, 225, 0.12);
  background: rgba(9, 11, 13, 0.72);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-mark {
  width: 16px;
  height: 16px;
  border: 1px solid var(--blue);
  background: linear-gradient(135deg, var(--blue), var(--ember));
  transform: rotate(45deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  font-size: 0.9rem;
  color: var(--ink-soft);
}

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

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 7, 9, 0.95) 0%, rgba(5, 7, 9, 0.72) 42%, rgba(5, 7, 9, 0.26) 100%),
    linear-gradient(0deg, #090b0d 0%, rgba(9, 11, 13, 0.45) 35%, rgba(9, 11, 13, 0.08) 100%);
}

.hero-content {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 140px 0 12vh;
}

.eyebrow {
  margin: 0;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.2rem, 13vw, 10.5rem);
  line-height: 0.86;
  letter-spacing: 0;
  text-shadow: 0 12px 48px rgba(0, 0, 0, 0.65);
}

h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  letter-spacing: 0;
}

.tagline {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  color: var(--gold);
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
}

.button.primary {
  background: var(--ember);
  border-color: var(--ember);
  color: #190b06;
}

.button.secondary {
  background: rgba(9, 11, 13, 0.5);
  color: var(--ink);
}

.quick-status {
  width: min(var(--max), calc(100% - 40px));
  margin: -56px auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: rgba(12, 16, 18, 0.9);
  backdrop-filter: blur(16px);
}

.quick-status div {
  min-width: 0;
  padding: 18px;
  border-right: 1px solid var(--line);
}

.quick-status div:last-child {
  border-right: 0;
}

.stat-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-status strong {
  display: block;
  line-height: 1.25;
}

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

.split {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(32px, 7vw, 86px);
  align-items: start;
}

.body-copy {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.8;
}

.body-copy p {
  margin-bottom: 20px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 36px;
}

.route {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.route article {
  min-height: 280px;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(17, 22, 26, 0.64);
}

.route span {
  display: block;
  margin-bottom: 92px;
  color: var(--ember);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.route p,
.systems-grid p,
.layer-copy p,
.beta-copy p,
.site-footer p {
  color: var(--ink-soft);
  line-height: 1.65;
}

.systems-band {
  width: 100%;
  max-width: none;
  padding-left: max(20px, calc((100vw - var(--max)) / 2));
  padding-right: max(20px, calc((100vw - var(--max)) / 2));
  background:
    linear-gradient(90deg, rgba(49, 87, 102, 0.16), rgba(158, 47, 31, 0.16)),
    rgba(13, 17, 20, 0.8);
}

.systems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.systems-grid article {
  min-height: 190px;
  padding: 24px;
  background: rgba(11, 14, 16, 0.94);
}

.systems-grid h3::before {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin-bottom: 18px;
  background: linear-gradient(90deg, var(--blue), var(--ember));
}

.layer-lab {
  display: grid;
  grid-template-columns: 1fr 0.74fr;
  gap: clamp(28px, 6vw, 70px);
  align-items: center;
}

.layer-copy {
  min-height: 260px;
  padding: clamp(26px, 5vw, 48px);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(17, 22, 26, 0.92), rgba(39, 63, 73, 0.36));
}

.layer-copy p:last-child {
  max-width: 680px;
  margin-top: 24px;
  margin-bottom: 0;
  font-size: 1.08rem;
}

.layer-controls {
  display: grid;
  gap: 10px;
}

.layer-button {
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(17, 22, 26, 0.72);
  color: var(--ink-soft);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.layer-button:hover,
.layer-button.active {
  border-color: rgba(233, 115, 50, 0.72);
  color: var(--ink);
  background: rgba(73, 37, 24, 0.5);
}

.beta-section {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: clamp(28px, 6vw, 70px);
  align-items: start;
  border-top: 1px solid var(--line);
}

.beta-copy p {
  max-width: 560px;
  margin-top: 24px;
  font-size: 1.05rem;
}

.beta-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  background: rgba(17, 22, 26, 0.74);
}

.beta-form label {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 800;
}

.beta-form input,
.hidden-field,
.beta-form select,
.beta-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid rgba(247, 239, 225, 0.18);
  border-radius: 6px;
  background: rgba(5, 6, 7, 0.82);
  color: var(--ink);
  font: inherit;
}

.hidden-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.beta-form textarea {
  min-height: 112px;
  resize: vertical;
}

.beta-form input:focus,
.beta-form select:focus,
.beta-form textarea:focus {
  outline: 2px solid rgba(143, 201, 220, 0.5);
  outline-offset: 2px;
}

.beta-form .button {
  width: fit-content;
  cursor: pointer;
}

.beta-status {
  min-height: 24px;
  margin: 0;
  color: var(--gold);
  font-size: 0.92rem;
  line-height: 1.45;
}

.controls-section {
  padding-top: 72px;
}

.controls-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.controls-grid div {
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(17, 22, 26, 0.72);
}

kbd {
  display: inline-flex;
  min-width: 42px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  padding: 0 8px;
  border: 1px solid rgba(247, 239, 225, 0.24);
  border-radius: 5px;
  background: #050607;
  color: var(--gold);
  font: inherit;
  font-weight: 900;
}

.controls-grid span {
  display: block;
  color: var(--ink-soft);
  line-height: 1.35;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(20px, 4vw, 48px);
  border-top: 1px solid var(--line);
  background: #07090a;
}

.site-footer p {
  max-width: 700px;
  margin-bottom: 0;
}

.site-footer a {
  color: var(--blue);
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 96svh;
  }

  .hero-content {
    padding-top: 116px;
  }

  .quick-status,
  .route,
  .systems-grid,
  .controls-grid,
  .split,
  .layer-lab,
  .beta-section {
    grid-template-columns: 1fr;
  }

  .quick-status {
    margin-top: 0;
  }

  .quick-status div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .quick-status div:last-child {
    border-bottom: 0;
  }

  .route article {
    min-height: auto;
  }

  .route span {
    margin-bottom: 36px;
  }

  .section {
    padding: 72px 0;
  }

  .site-footer {
    display: block;
  }

  .site-footer a {
    display: inline-block;
    margin-top: 16px;
  }
}

@media (max-width: 560px) {
  .hero-content {
    width: auto;
    margin-left: 20px;
    margin-right: 20px;
  }

  h1 {
    font-size: clamp(2.85rem, 13vw, 3.25rem);
    line-height: 0.94;
  }

  .tagline {
    max-width: 320px;
    font-size: 1.42rem;
    line-height: 1.25;
  }

  .hero-copy {
    max-width: 320px;
    font-size: 0.98rem;
  }

  .hero-actions {
    display: grid;
    max-width: 320px;
  }

  .beta-form .button {
    width: 100%;
  }

  .button {
    width: 100%;
  }

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