:root {
  color-scheme: dark;
  --bg: #070806;
  --ink: #f8f4e8;
  --muted: #b7b5a8;
  --line: rgba(248, 244, 232, 0.16);
  --blue: #44a7ff;
  --green: #8fea68;
  --yellow: #ffdc52;
  --coral: #ff946b;
  --panel: rgba(20, 23, 21, 0.78);
  --stone: #20251f;
  --shadow: 0 34px 100px rgba(0, 0, 0, 0.5);
  --radius: 8px;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(135deg, rgba(68,167,255,0.13), transparent 32%),
    linear-gradient(315deg, rgba(255,220,82,0.1), transparent 34%),
    linear-gradient(180deg, #090a08 0%, var(--bg) 48%, #0b0d09 100%);
  background-size: 48px 48px, 48px 48px, auto, auto, auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 42%, rgba(0,0,0,0.54));
  z-index: -1;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.site-header,
.hero,
.proof,
.map,
.modules,
.sample,
.contact,
footer {
  width: min(1220px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  position: relative;
  z-index: 10;
}

.brand,
.nav,
.hero-actions,
footer {
  display: flex;
  align-items: center;
}

.brand {
  min-height: 44px;
  gap: 12px;
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--yellow), #fff2a3 48%, var(--green));
  color: #07120b;
  box-shadow: 5px 5px 0 rgba(68,167,255,0.46);
}

.nav {
  gap: 8px;
  color: var(--muted);
}

.nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--radius);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible {
  background: rgba(255,255,255,0.08);
  color: var(--ink);
  outline: none;
}

.hero {
  min-height: clamp(720px, calc(100svh - 78px), 920px);
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(420px, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  padding: 28px 0 66px;
}

.eyebrow,
.section-kicker,
.section-label,
.world-tile span,
.module-grid span,
.sample-stack span,
.proof span {
  font-family: "IBM Plex Mono", monospace;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
}

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

h1,
h2,
h3 {
  font-family: "Bricolage Grotesque", "Plus Jakarta Sans", sans-serif;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(5.4rem, 14vw, 13.2rem);
  line-height: 0.74;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.9rem, 6.8vw, 7.2rem);
  line-height: 0.84;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.6rem, 2.3vw, 2.35rem);
  line-height: 0.94;
}

.lede {
  max-width: 660px;
  margin-bottom: 30px;
  color: #d4d2c8;
  font-size: clamp(1.08rem, 1.7vw, 1.32rem);
  line-height: 1.56;
}

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

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 19px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius);
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.55);
  outline: none;
}

.button.primary {
  color: #06100a;
  background: linear-gradient(135deg, var(--yellow), var(--green));
  box-shadow: 5px 5px 0 rgba(68,167,255,0.38), 0 18px 40px rgba(143,234,104,0.14);
}

.button.secondary {
  background: rgba(255,255,255,0.06);
}

.world {
  position: relative;
  min-height: 620px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(5, minmax(84px, 1fr));
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(68,167,255,0.08), transparent 46%),
    rgba(255,255,255,0.035);
  box-shadow: var(--shadow);
  transform: perspective(1200px) rotateX(6deg) rotateZ(-1deg);
  transform-origin: center;
}

.world-path {
  position: absolute;
  inset: 18% 14% 16% 12%;
  border: 2px dashed rgba(255,220,82,0.42);
  border-left-color: transparent;
  border-bottom-color: rgba(143,234,104,0.42);
  border-radius: 42% 28% 34% 24%;
  pointer-events: none;
  z-index: 1;
}

.world-tile,
.world-image {
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 10px 12px 0 rgba(0,0,0,0.22);
}

.world-tile {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  transform: translateY(-6px);
}

.world-tile strong {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(1.35rem, 2.2vw, 2.2rem);
  line-height: 0.92;
}

.tile-site {
  grid-column: 1 / 4;
  grid-row: 1 / 3;
  background: linear-gradient(145deg, rgba(68,167,255,0.2), rgba(255,255,255,0.04));
}

.tile-content {
  grid-column: 4 / 7;
  grid-row: 1 / 2;
}

.tile-launch {
  grid-column: 5 / 7;
  grid-row: 2 / 5;
  background: linear-gradient(145deg, rgba(255,220,82,0.2), rgba(255,255,255,0.04));
}

.tile-signal {
  grid-column: 1 / 3;
  grid-row: 3 / 6;
  background: linear-gradient(145deg, rgba(143,234,104,0.18), rgba(255,255,255,0.04));
}

.world-image {
  position: relative;
  z-index: 3;
  grid-column: 3 / 5;
  grid-row: 2 / 6;
  overflow: hidden;
  transform: translateY(-14px);
}

.world-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.proof {
  display: grid;
  grid-template-columns: 0.62fr 1fr 1fr 1fr;
  gap: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-label {
  min-height: 176px;
  display: flex;
  align-items: center;
  padding: 22px 22px 22px 0;
  color: var(--blue);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.proof article {
  min-height: 176px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-left: 1px solid var(--line);
  background: transparent;
}

.proof strong {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(1.45rem, 2vw, 2.2rem);
  line-height: 0.98;
}

.map {
  display: grid;
  grid-template-columns: 0.18fr minmax(0, 0.72fr) minmax(420px, 0.86fr);
  gap: clamp(24px, 5vw, 62px);
  padding: clamp(78px, 11vw, 148px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-label {
  color: var(--blue);
}

.map-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: minmax(190px, auto);
  gap: 10px;
}

.map-block,
.module-grid article,
.sample-stack article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.map-block {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  box-shadow: 8px 10px 0 rgba(0,0,0,0.18);
}

.map-block::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 16px;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--yellow);
  box-shadow: -18px 18px 0 rgba(143,234,104,0.55);
}

.map-block.active {
  background: linear-gradient(145deg, rgba(68,167,255,0.23), rgba(143,234,104,0.1));
}

.map-block.tall {
  grid-row: span 2;
}

.map-block.wide {
  grid-column: span 2;
}

.map-block span {
  color: var(--blue);
  font-family: "IBM Plex Mono", monospace;
  font-weight: 700;
}

.map-block p,
.module-grid p,
.sample-stack small {
  color: var(--muted);
  line-height: 1.55;
}

.modules {
  padding: clamp(78px, 11vw, 150px) 0;
}

.modules h2 {
  max-width: 980px;
  margin-bottom: 36px;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.module-grid article {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  box-shadow: 8px 10px 0 rgba(0,0,0,0.16);
}

.module-grid article:nth-child(1) {
  background: linear-gradient(145deg, rgba(68,167,255,0.14), rgba(255,255,255,0.035));
}

.module-grid article:nth-child(2) {
  transform: translateY(32px);
  background: linear-gradient(145deg, rgba(255,220,82,0.12), rgba(255,255,255,0.035));
}

.module-grid article:nth-child(3) {
  transform: translateY(-18px);
  background: linear-gradient(145deg, rgba(143,234,104,0.14), rgba(255,255,255,0.035));
}

.module-grid article:nth-child(4) {
  background: linear-gradient(145deg, rgba(255,148,107,0.13), rgba(255,255,255,0.035));
}

.sample {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 0.88fr);
  gap: clamp(30px, 6vw, 78px);
  padding: clamp(86px, 10vw, 140px) 0;
  border-top: 1px solid var(--line);
}

.sample-stack {
  display: grid;
  gap: 12px;
}

.sample-stack article {
  padding: 22px;
}

.sample-stack strong {
  display: block;
  margin: 14px 0 8px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 2rem;
  line-height: 0.95;
}

.contact {
  min-height: 540px;
  display: grid;
  align-content: center;
  justify-items: start;
  padding: 70px 0;
  border-top: 1px solid var(--line);
}

.contact h2 {
  max-width: 930px;
  margin-bottom: 32px;
}

footer {
  min-height: 90px;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .hero,
  .map,
  .sample,
  .proof,
  .module-grid {
    grid-template-columns: 1fr;
  }

  .proof {
    border-bottom: 0;
  }

  .proof-label,
  .proof article {
    min-height: auto;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-label {
    padding: 20px 0 12px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0 8px;
  }

  .hero {
    min-height: auto;
  }

  .world {
    transform: none;
  }

  .section-label {
    display: none;
  }

  .module-grid article,
  .module-grid article:nth-child(2),
  .module-grid article:nth-child(3) {
    min-height: 210px;
    transform: none;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 26px 0;
  }
}

@media (max-width: 620px) {
  .site-header,
  .hero,
  .proof,
  .map,
  .modules,
  .sample,
  .contact,
  footer {
    width: min(100% - 28px, 1220px);
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .nav a {
    flex: 1;
    justify-content: center;
    padding-inline: 8px;
  }

  h1 {
    font-size: clamp(4.7rem, 22vw, 7.1rem);
  }

  .button {
    width: 100%;
  }

  .world {
    min-height: 520px;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(5, minmax(92px, auto));
  }

  .tile-site,
  .tile-content,
  .tile-launch,
  .tile-signal,
  .world-image {
    grid-column: auto;
    grid-row: auto;
  }

  .world-image {
    grid-column: span 2;
    min-height: 220px;
  }

  .map-board {
    grid-template-columns: 1fr;
  }

  .map-block.tall,
  .map-block.wide {
    grid-column: auto;
    grid-row: auto;
  }
}
