:root {
  --bg: #070707;
  --bg-soft: #0d0d0d;
  --panel: #111;
  --text: #f2f0eb;
  --muted: #858585;
  --line: rgba(255,255,255,.12);
  --accent: #ff4d00;
  --accent-soft: rgba(255,77,0,.18);
  --green: #78ff9b;
  --max-width: 1400px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(255,77,0,.07),
      transparent 35%
    ),
    var(--bg);
  color: var(--text);
  font-family:
    Arial,
    Helvetica,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: .035;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

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

button {
  font: inherit;
}

.cursor,
.cursor-ring {
  position: fixed;
  pointer-events: none;
  z-index: 1000;
  transform: translate(-50%, -50%);
}

.cursor {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.cursor-ring {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255,77,0,.6);
  border-radius: 50%;
  transition:
    width .3s var(--ease),
    height .3s var(--ease);
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  mix-blend-mode: difference;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 0px;
  font-size: 14px;
  letter-spacing: .12em;
  font-weight: 700;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 11px;
}

.logo span {
  font-size: 12px;
}

.nav nav {
  display: flex;
  gap: 30px;
}

.nav nav a,
.github-link {
  font-size: 12.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .75;
  transition: opacity .3s ease;
}

.github-link {
  font-size: 16px;
}

.nav nav a:hover,
.github-link:hover {
  opacity: 1;
}

.hero {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-grid,
.universe-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(
      rgba(255,255,255,.035) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255,255,255,.035) 1px,
      transparent 1px
    );
  background-size: 80px 80px;
  mask-image:
    radial-gradient(
      circle at center,
      black,
      transparent 75%
    );
}

.hero-grid {
  transform:
    perspective(800px)
    rotateX(65deg)
    scale(2)
    translateY(30%);
  transform-origin: center bottom;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1200px, 90vw);
  padding-top: 80px;
  transform: translateY(-35px);
}

.eyebrow {
  margin: 0 0 24px;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1 {
  margin: 0;
  font-size: clamp(70px, 13vw, 170px);
  line-height: .78;
  letter-spacing: -.07em;
  font-weight: 800;
  max-width: 100%;
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
}

.hero h1 span {
  display: block;
}

.hero h1 .outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.6);
  letter-spacing: -0.015em;
}

.hero-description {
  width: min(420px, 100%);
  margin: 50px 0 30px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
}

.hero-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  margin-left: 100px;
  padding: 15px 50px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition:
    background .4s var(--ease),
    transform .4s var(--ease);
}

.hero-button:hover,
.primary-button:hover,
.secondary-button:hover,
.mission-open:hover,
.modal-close:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-3px);
}

.hero-button span {
  color: var(--accent);
}

.hero-status {
  position: absolute;
  bottom: 35px;
  left: 4vw;
  font-size: 10px;
  letter-spacing: .15em;
  color: var(--muted);
  transition:
    opacity .15s linear,
    transform .15s linear;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--green);
}

.hero-scroll {
  position: absolute;
  bottom: 35px;
  right: 4vw;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: .15em;
  color: var(--muted);
}

.section {
  width: min(var(--max-width), 90vw);
  margin: auto;
  position: relative;
}

.intro {
  min-height: 72vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 7vw;
  padding: 100px 0;
}

.section-number {
  position: absolute;
  top: 40px;
  left: 0;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .15em;
}

.intro-content h2,
.missions h2,
.demo h2,
.about h2 {
  margin: 0;
  font-size: clamp(45px, 6vw, 90px);
  line-height: .9;
  letter-spacing: -.06em;
}

.intro-content h2 span,
.missions h2 span,
.demo h2 span,
.about h2 span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.45);
}

.intro-content > p:last-child,
.about-content > p {
  max-width: 480px;
  margin-top: 40px;
  color: var(--muted);
  line-height: 1.7;
}

.intro-content p {
  font-size: 17px;
}

.terminal {
  background: #0b0b0b;
  border: 1px solid var(--line);
  box-shadow:
    0 40px 100px rgba(0,0,0,.5);
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform .7s var(--ease);
}

.terminal:hover {
  transform:
    perspective(1000px)
    rotateY(0deg)
    translateY(-5px);
}

.terminal-header {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}

.terminal-header-demo {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
}

.terminal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.red {
  background: #ff5f57;
}

.yellow {
  background: #febc2e;
}

.green {
  background: #28c840;
}

.terminal-title {
  margin-left: 10px;
  font: 11px monospace;
  color: var(--muted);
}

pre {
  margin: 0;
  padding: 30px;
  overflow-x: auto;
  font: 13px/1.9 "SFMono-Regular", Consolas, monospace;
}

.line-number {
  color: #444;
  user-select: none;
}

.purple {
  color: #d99cff;
}

.green {
  color: #8df5a9;
}

.green_text {
  color: #8df5a9;
}


/* Universe */

.universe-section {
  position: relative;
  height: 78vh;
  min-height: 720px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.universe-header {
  position: absolute;
  top: 70px;
  left: 20vw;
  right: 5vw;
  z-index: 10;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
}


.universe-header h2 {
  margin: 0;
  font-size: clamp(40px, 6vw, 90px);
  line-height: .85;
  letter-spacing: -.06em;
}

.universe-header h2 span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.45);
}

.universe-header > p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 190px;
  line-height: 2.2;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.universe {
  position: absolute;
  inset: 0;
  cursor: grab;
}

.universe:active {
  cursor: grabbing;
}

.universe-grid {
  background-size: 100px 100px;
}

.universe-world {
  position: absolute;
  inset: -20%;
  transform-origin: center;
}

.connections {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.connections line {
  stroke: rgba(255,77,0,.35);
  stroke-width: 1;
  stroke-dasharray: 4 8;
}

.node {
  position: absolute;
  width: 150px;
  height: 150px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(255,77,0,.13),
      rgba(0,0,0,.8)
    );
  color: var(--text);
  cursor: pointer;
  transition:
    transform .5s var(--ease),
    border-color .4s ease,
    background .4s ease;
}

.node:hover {
  transform:
    translate(-50%, -50%)
    scale(1.12);
  border-color: var(--accent);
  background:
    radial-gradient(
      circle,
      rgba(255,77,0,.25),
      rgba(0,0,0,.9)
    );
}

.node-main {
  width: 210px;
  height: 210px;
  border-color: var(--accent);
  box-shadow:
    0 0 70px rgba(255,77,0,.1);
}

.node-pulse {
  position: absolute;
  inset: -20px;
  border: 1px solid rgba(255,77,0,.15);
  border-radius: 50%;
  animation: pulse 3s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(.9);
    opacity: .4;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.node-icon {
  display: block;
  margin-bottom: 12px;
  font: 10px monospace;
  color: var(--accent);
}

.node-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
}

.node small {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

.drag-hint {
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  letter-spacing: .15em;
  color: var(--muted);
}

.drag-hint span {
  color: var(--accent);
}


/* Missions */

.missions {
  padding-top: 50px;
  padding-bottom: 40px;
}

.missions-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 80px;
}

.missions-description {
  width: 260px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
}

.mission-card {
  position: relative;
  min-height: 430px;
  padding: 35px;
  background: var(--bg);
  overflow: hidden;
  transition:
    background .5s var(--ease),
    transform .5s var(--ease);
}

.mission-card:hover {
  background: #101010;
}

.mission-card::after {
  content: "";
  position: absolute;
  right: -100px;
  bottom: -100px;
  width: 250px;
  height: 250px;
  background: var(--accent);
  opacity: 0;
  border-radius: 50%;
  filter: blur(80px);
  transition: opacity .5s ease;
  pointer-events: none;
}

.mission-card:hover::after {
  opacity: .12;
  pointer-events: none;
}

.mission-top {
  display: flex;
  justify-content: space-between;
  font: 11px monospace;
  color: var(--muted);
  letter-spacing: .1em;
}

.mission-icon {
  margin-top: 70px;
  font-size: 40px;
  color: var(--accent);
}

.mission-card h3 {
  margin: 20px 0 12px;
  font-size: 28px;
  letter-spacing: -.005em;
}

.mission-card > p {
  max-width: 400px;
  color: var(--muted);
  line-height: 1.6;
}

.mission-code {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.mission-code code {
  padding: 7px 9px;
  border: 1px solid var(--line);
  color: #aaa;
  font: 10px monospace;
}

.mission-open {
  position: absolute;
  z-index: 2;
  bottom: 35px;
  right: 35px;
  border: 0;
  background: none;
  color: var(--accent);
  font: 12px monospace;
  letter-spacing: .1em;
  cursor: pointer;
}


/* Demo */

.demo {
  padding-top: 50px;
}

.demo-header {
  margin-bottom: 70px;
}

.demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2px;
  background: var(--line);
}

.browser-window,
.demo-code {
  background: #0b0b0b;
}

.browser-bar {
  height: 45px;
  display: flex;
  align-items: center;
  padding: 0 15px;
  border-bottom: 1px solid var(--line);
}

.browser-dots {
  display: flex;
  gap: 5px;
}

.browser-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #333;
}

.address {
  flex: 1;
  margin: 0 20px;
  padding: 6px 12px;
  background: #111;
  color: #666;
  font: 12px monospace;
}

.browser-status {
  color: var(--green);
  font-size: 10px;
}

.browser-page {
  min-height: 470px;
  display: grid;
  place-items: center;
  opacity: 1;
  transition: opacity 0.35s ease;
  background:
    radial-gradient(
      circle at center,
      #171717,
      #090909
    );
}

.browser-page.is-loading {
  opacity: 0;
}

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

.demo-login {
  width: 270px;
}

.demo-logo {
  margin-bottom: 30px;
  font: 10px monospace;
  letter-spacing: .2em;
  color: var(--accent);
}

.demo-login h3 {
  margin-bottom: 30px;
  font-size: 25px;
}

.demo-login label {
  display: block;
  margin-bottom: 16px;
  color: #777;
  font: 10px monospace;
  text-transform: uppercase;
}

.demo-login input {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 12px;
  border: 1px solid #222;
  background: #111;
  color: white;
  outline: none;
}

.demo-login button {
  width: 100%;
  margin-top: 10px;
  padding: 13px;
  border: 1px solid #303030;
  background: #202020;
  color: #888;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: default;
  pointer-events: none;
  box-shadow: none;
}

.demo-success {
  margin-top: 15px;
  color: var(--green);
  font: 11px monospace;
  opacity: 0;
  transform: translateY(5px);
  transition: .4s var(--ease);
}

.demo-success.visible {
  opacity: 1;
  transform: translateY(0);
}

.demo-code {
  display: flex;
  flex-direction: column;
}

.code-header {
  height: 45px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 12px monospace;
}

#execution-status {
  color: var(--green);
  font-size: 12px;
}

.code-lines {
  padding: 35px 0;
  flex: 1;
}

.code-line {
  display: grid;
  grid-template-columns: 50px 1fr;
  padding: 9px 20px;
  font: 12px/1.5 monospace;
  transition:
    background .3s ease,
    color .3s ease;
}

.code-line > span {
  color: #333;
}

.code-line.active {
  background: rgba(255,77,0,.1);
}

.code-line.active > span {
  color: var(--accent);
}

.code-line code {
  color: #aaa;
}

.code-line i {
  color: #8df5a9;
  font-style: normal;
}

.code-line b {
  color: #d99cff;
}

.run-button {
  margin: 20px;
  padding: 15px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font: 12px monospace;
  letter-spacing: .1em;
  cursor: pointer;
  transition: .3s ease;
}

.run-button:hover {
  background: var(--accent);
  color: white;
}


/* About */

.about {
  min-height: 65vh;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--line);
}

.about-content {
  padding: 160px 0;
}

.about-mark {
  position: absolute;
  right: 0;
  width: 35vw;
  height: 35vw;
  max-width: 500px;
  max-height: 500px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  opacity: .9;
}

.about-mark::before,
.about-mark::after {
  content: "";
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
  pointer-events: none;
}

.about-mark::before {
  inset: 12%;
}

.about-mark::after {
  inset: 25%;
  border-color: var(--accent);
  opacity: .4;
  pointer-events: none;
}

.about-mark span {
  position: relative;
  z-index: 2;
  font-size: clamp(60px, 10vw, 150px);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px var(--accent);
}

.about-actions {
  display: flex;
  gap: 10px;
  margin-top: 50px;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  padding: 15px 18px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.mission-open {
  display: inline-flex;
  align-items: center;
  padding: 15px 18px;
  border: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}


/* Footer */

footer {
  min-height: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5vw;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 12px monospace;
  letter-spacing: .12em;
}

footer a {
  font: 16px monospace;
}


/* Modal */

.modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 30px;
  background: rgba(0,0,0,.2);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity .4s ease,
    visibility .4s ease;
}

.modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-inner {
  position: relative;
  width: min(700px, 100%);
  padding: 50px;
  border: 1px solid var(--line);
  background: #0d0d0d;
  transform: translateY(30px) scale(.98);
  transition: transform .5s var(--ease);
}

.modal.open .modal-inner {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 35px;
  height: 35px;
  border: 1px solid var(--line);
  background: transparent;
  color: white;
  cursor: pointer;
}

.modal-inner h2 {
  margin: 0;
  font-size: 36px;
  letter-spacing: -.05em;
}

.modal-inner > p {
  color: var(--muted);
  line-height: 1.7;
}

.modal-code {
  margin: 30px 0;
  border: 1px solid var(--line);
  background: #080808;
}

code {
  font-size: 13px;
}


/* Responsive */

@media (max-width: 800px) {

  .nav nav {
    display: none;
  }

  .hero h1 {
    font-size: clamp(60px, 18vw, 110px);
  }

  .hero-content {
    transform: translateY(-20px);
  }

  .intro {
    min-height: auto;
    padding: 160px 0;
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .terminal {
    transform: none;
  }

  .universe-section {
    height: auto;
    min-height: 0;
    padding: 20px 20px 30px;
    overflow: hidden;
  }

  .universe {
    position: relative;
    inset: auto;
    height: 380px;
    cursor: default;
  }

  .node {
    position: absolute;
    z-index: 3;
    pointer-events: auto;
    cursor: pointer;
  }

  .universe-header {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    display: block;
    margin-bottom: 20px;
    z-index: 5;
    pointer-events: none;
  }

  .universe-header p {
    pointer-events: none;
  }

  .universe-header h2 {
    pointer-events: none;
    font-size: clamp(38px, 10vw, 60px);
    line-height: .9;
  }

  .universe-header > p {
    margin-top: 18px;
    font-size: 10px;
    line-height: 1.8;
  }

  .universe-world {
    position: absolute;
    inset: 0;
    transform: none !important;
  }

  .universe-grid,
  .connections,
  .drag-hint {
    display: none;
  }

  .node {
    width: 118px;
    height: 118px;
    max-width: 38vw;
    max-height: 38vw;
  }

  .node-main {
    width: 150px;
    height: 150px;
    max-width: 46vw;
    max-height: 46vw;
  }

  .node-label {
    font-size: 11px;
    letter-spacing: .06em;
    overflow-wrap: anywhere;
  }

  .node small {
    padding: 0 8px;
    font-size: 10px;
    overflow-wrap: anywhere;
  }

  .node-icon {
    margin-bottom: 8px;
  }

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

  .missions-header {
    display: block;
  }

  .missions-description {
    margin-top: 30px;
  }

  .demo-layout {
    grid-template-columns: 1fr;
  }

  .demo-success {
    display: none;
    margin-top: 15px;
    color: var(--green);
    font: 11px monospace;
    opacity: 0;
    transform: translateY(5px);
    transition:
      opacity .4s ease,
      transform .4s ease;
  }

  .demo-success.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }

  .code-lines {
    padding: 12px 0;
  }

  .code-line {
    padding: 5px 12px;
    line-height: 1.25;
    grid-template-columns: 32px minmax(0, 1fr);
    font-size: 11px;
  }

  .code-line code {
    font-size: 11px;
    overflow-wrap: anywhere;
  }

  .run-button {
    margin: 10px 12px 14px;
    padding: 12px;
  }

  .browser-page {
    min-height: 400px;
  }

  .about {
    min-height: auto;
  }

  .about-mark {
    display: none;
  }

  .about-content {
    padding: 120px 0;
  }

  footer {
    padding: 30px 5vw;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .cursor,
  .cursor-ring {
    display: none;
  }

  .modal {
    padding: 12px;
    overflow-y: auto;
  }

  .modal-inner {
    width: 100%;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    padding: 60px 24px 24px;
  }

  .modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    width: 36px;
    height: 36px;
  }

  .modal-inner h2 {
    font-size: clamp(26px, 7vw, 36px);
    overflow-wrap: anywhere;
  }

  .modal-code {
    max-width: 100%;
    overflow-x: auto;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    pointer-events: none !important;
  }
}