:root {
  color-scheme: dark;
  --ink: #f3f5fb;
  --muted: #9da7bc;
  --subtle: #69748a;
  --canvas: #070913;
  --line: rgba(148, 163, 184, 0.14);
  --cyan: #70e7ff;
  --violet: #9b7cff;
  --mint: #6ff4c4;
  --amber: #f6c875;
  --max: 1180px;
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -20%, rgba(90, 71, 173, 0.28), transparent 38rem),
    var(--canvas);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.65;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(137, 153, 190, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(137, 153, 190, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

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

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  color: #071017;
  background: var(--cyan);
  transform: translateY(-180%);
}

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

.page-noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' 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='.4'/%3E%3C/svg%3E");
}

.nav-shell {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(7, 9, 19, 0.72);
  backdrop-filter: blur(20px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 40px), var(--max));
  height: 72px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 36px;
  place-items: center;
  color: var(--cyan);
  border: 1px solid rgba(112, 231, 255, 0.7);
  clip-path: polygon(50% 0, 94% 24%, 94% 76%, 50% 100%, 6% 76%, 6% 24%);
  background: rgba(112, 231, 255, 0.06);
  box-shadow: 0 0 24px rgba(112, 231, 255, 0.2);
}

.nav-links {
  display: flex;
  gap: 30px;
  color: var(--muted);
  font-size: 0.88rem;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid rgba(112, 231, 255, 0.4);
  border-radius: 12px;
  color: #061019;
  background: linear-gradient(135deg, var(--cyan), #a9f1ff);
  box-shadow: 0 12px 38px rgba(72, 205, 234, 0.16);
  font-size: 0.9rem;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(72, 205, 234, 0.26);
}

.button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.button-small {
  min-height: 38px;
  padding: 0 16px;
}

.button-quiet {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

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

.hero {
  display: grid;
  min-height: 760px;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 72px;
  align-items: center;
  padding: 84px 0 64px;
}

#market-world {
  position: absolute;
  inset: -72px -24vw auto 35%;
  z-index: -2;
  width: 70vw;
  height: 760px;
  opacity: 0.58;
}

.hero-glow {
  position: absolute;
  top: 4%;
  right: 5%;
  z-index: -1;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(107, 73, 214, 0.18);
  filter: blur(100px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3.25rem, 7.1vw, 6.6rem);
  line-height: 0.95;
  letter-spacing: -0.068em;
}

h1 span {
  display: block;
  color: transparent;
  background: linear-gradient(100deg, var(--cyan), var(--violet) 63%, #c7b8ff);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-lede {
  max-width: 690px;
  margin: 30px 0 0;
  color: #b9c2d3;
  font-size: 1.1rem;
}

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

.authority-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 34px;
  color: var(--subtle);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.authority-strip span::before {
  color: var(--mint);
  content: "◇";
  margin-right: 7px;
}

.hero-instrument {
  position: relative;
  min-height: 510px;
  overflow: hidden;
  border: 1px solid rgba(151, 135, 255, 0.22);
  border-radius: 28px;
  background:
    linear-gradient(150deg, rgba(21, 25, 48, 0.88), rgba(7, 10, 20, 0.55)),
    radial-gradient(circle at center, rgba(117, 84, 235, 0.2), transparent 60%);
  box-shadow:
    0 50px 100px rgba(0, 0, 0, 0.42),
    inset 0 1px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
}

.instrument-topline {
  display: flex;
  justify-content: space-between;
  padding: 18px 20px;
  color: var(--subtle);
  border-bottom: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.certified {
  color: var(--mint);
}

.world-orbit {
  position: relative;
  width: 350px;
  height: 350px;
  margin: 24px auto 0;
}

.orbit {
  position: absolute;
  inset: 50%;
  border: 1px solid rgba(140, 121, 255, 0.25);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit-a {
  width: 132px;
  height: 132px;
}

.orbit-b {
  width: 228px;
  height: 228px;
}

.orbit-c {
  width: 326px;
  height: 326px;
}

.world-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border: 1px solid rgba(112, 231, 255, 0.72);
  border-radius: 50%;
  color: var(--cyan);
  background: radial-gradient(circle, rgba(112, 231, 255, 0.18), rgba(7, 9, 19, 0.95));
  box-shadow: 0 0 50px rgba(112, 231, 255, 0.2);
  font-size: 1.8rem;
  transform: translate(-50%, -50%);
}

.satellite {
  position: absolute;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: #b7c0d3;
  background: rgba(9, 12, 24, 0.8);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
}

.satellite-a {
  top: 22px;
  left: 132px;
}

.satellite-b {
  top: 151px;
  right: -3px;
}

.satellite-c {
  bottom: 22px;
  left: 120px;
}

.satellite-d {
  top: 154px;
  left: -1px;
}

.instrument-readout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 22px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.instrument-readout div {
  display: flex;
  flex-direction: column;
  padding: 12px 15px;
}

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

.instrument-readout span {
  color: var(--subtle);
  font-size: 0.63rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.instrument-readout strong {
  font-size: 1rem;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(12, 15, 27, 0.72);
}

.metrics article {
  display: flex;
  min-height: 132px;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
}

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

.metrics strong {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 2rem;
  line-height: 1;
}

.metrics span {
  margin-top: 12px;
  color: var(--subtle);
  font-size: 0.74rem;
}

.manifesto {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 90px;
  align-items: end;
  padding: 150px 0;
}

h2 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.manifesto > p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 54px;
}

.section-heading > p:last-child {
  max-width: 690px;
  color: var(--muted);
  font-size: 1.02rem;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feature-card {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(17, 21, 39, 0.92), rgba(9, 12, 23, 0.68));
}

.feature-card::after {
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(116, 93, 235, 0.1);
  content: "";
  filter: blur(30px);
}

.feature-wide {
  grid-column: 1 / -1;
  min-height: 300px;
}

.card-index {
  position: absolute;
  top: 24px;
  right: 28px;
  color: rgba(112, 231, 255, 0.28);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 2rem;
}

.feature-card h3,
.mesh-card h3 {
  max-width: 540px;
  margin: 0;
  font-size: 1.7rem;
  letter-spacing: -0.035em;
}

.feature-card > p:not(.eyebrow),
.mesh-card > p {
  max-width: 760px;
  color: var(--muted);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.chip-row span {
  padding: 6px 10px;
  border: 1px solid rgba(112, 231, 255, 0.16);
  border-radius: 20px;
  color: #a9cbd4;
  background: rgba(112, 231, 255, 0.04);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.66rem;
  text-transform: uppercase;
}

.dream-section {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 70px;
  align-items: center;
  margin-top: 150px;
  margin-bottom: 150px;
  padding: 70px;
  overflow: hidden;
  border: 1px solid rgba(155, 124, 255, 0.22);
  border-radius: 32px;
  background:
    radial-gradient(circle at 84% 30%, rgba(132, 95, 255, 0.22), transparent 38%),
    linear-gradient(145deg, rgba(20, 18, 42, 0.9), rgba(8, 11, 23, 0.92));
}

.dream-section h2 {
  font-size: clamp(2.4rem, 4.5vw, 4rem);
}

.dream-copy > p:not(.eyebrow) {
  color: var(--muted);
}

.phase-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 30px;
}

.phase-list span {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #bdc6d8;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.77rem;
}

.phase-list b {
  margin-right: 8px;
  color: var(--violet);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.dream-proof {
  position: relative;
  display: flex;
  min-height: 390px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.proof-ring {
  position: relative;
  z-index: 2;
  display: flex;
  width: 210px;
  height: 210px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(112, 231, 255, 0.55);
  border-radius: 50%;
  background: rgba(8, 10, 22, 0.92);
  box-shadow:
    0 0 0 32px rgba(155, 124, 255, 0.035),
    0 0 0 64px rgba(112, 231, 255, 0.02),
    0 0 70px rgba(155, 124, 255, 0.18);
}

.proof-ring span {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
}

.proof-ring small {
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dream-proof p {
  max-width: 330px;
  margin-top: 72px;
  color: var(--muted);
  text-align: center;
}

.dream-lines i {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 280px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(112, 231, 255, 0.24), transparent);
  transform-origin: left;
}

.dream-lines i:nth-child(1) { transform: rotate(0deg); }
.dream-lines i:nth-child(2) { transform: rotate(72deg); }
.dream-lines i:nth-child(3) { transform: rotate(144deg); }
.dream-lines i:nth-child(4) { transform: rotate(216deg); }
.dream-lines i:nth-child(5) { transform: rotate(288deg); }

.screen-stage {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(112, 231, 255, 0.18);
  border-radius: 26px;
  background: #0b0e1a;
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.4);
}

.screen-stage img {
  width: 100%;
}

figcaption {
  padding: 14px 18px;
  color: var(--subtle);
  border-top: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.screen-grid {
  display: grid;
  grid-template-columns: 1fr 0.31fr;
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.screen-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #0b0e1a;
}

.mobile-frame {
  max-width: 350px;
  justify-self: end;
}

.mesh {
  padding: 150px 0;
}

.mesh-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.mesh-card {
  min-height: 340px;
  padding: 32px;
  border-top: 1px solid rgba(112, 231, 255, 0.4);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
  background: rgba(12, 15, 28, 0.68);
}

.mesh-number {
  display: block;
  margin-bottom: 52px;
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 3rem;
}

.proof-section {
  padding: 40px 0 150px;
}

.boundary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.boundary-grid article {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 17, 31, 0.7);
}

.boundary-grid .allowed {
  border-top-color: rgba(111, 244, 196, 0.6);
}

.boundary-grid .blocked {
  border-top-color: rgba(246, 200, 117, 0.6);
}

.boundary-grid .allowed .eyebrow {
  color: var(--mint);
}

.boundary-grid .blocked .eyebrow {
  color: var(--amber);
}

.boundary-grid ul {
  margin: 25px 0 0;
  padding: 0;
  list-style: none;
}

.boundary-grid li {
  position: relative;
  padding: 10px 0 10px 25px;
  color: #b5bed0;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
}

.boundary-grid li::before {
  position: absolute;
  left: 2px;
  color: var(--mint);
  content: "◇";
}

.boundary-grid .blocked li::before {
  color: var(--amber);
}

.claim-boundary {
  max-width: 880px;
  margin: 38px auto 0;
  color: var(--muted);
  text-align: center;
}

.start-section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 64px;
  align-items: center;
  padding: 70px 0 150px;
}

.start-copy p:last-child {
  color: var(--muted);
}

.terminal {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #090c15;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.terminal-bar {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.terminal-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #474e60;
}

.terminal-bar span:first-child { background: #ff7286; }
.terminal-bar span:nth-child(2) { background: #f6c875; }
.terminal-bar span:nth-child(3) { background: #6ff4c4; }

.terminal-bar small {
  margin-left: auto;
  color: var(--subtle);
}

pre {
  margin: 0;
  padding: 28px;
  overflow-x: auto;
  color: #b8dfe6;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.8;
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 80px;
  padding: 56px;
  border: 1px solid rgba(112, 231, 255, 0.2);
  border-radius: 28px;
  background:
    radial-gradient(circle at 75% 20%, rgba(112, 231, 255, 0.12), transparent 35%),
    linear-gradient(145deg, rgba(18, 22, 42, 0.94), rgba(10, 13, 24, 0.92));
}

.final-cta h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.final-cta p:last-child {
  color: var(--muted);
}

footer {
  display: flex;
  width: min(calc(100% - 40px), var(--max));
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  padding: 34px 0 48px;
  color: var(--subtle);
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 52px;
    padding-top: 70px;
  }

  .hero-instrument {
    max-width: 600px;
    justify-self: center;
    transform: none;
  }

  #market-world {
    inset: 0 -45vw auto 0;
    width: 140vw;
  }

  .metrics {
    grid-template-columns: repeat(3, 1fr);
  }

  .metrics article:nth-child(4) {
    border-left: 0;
  }

  .metrics article:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }

  .manifesto,
  .dream-section,
  .start-section {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .manifesto {
    padding: 110px 0;
  }

  .dream-section {
    padding: 44px;
  }

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

@media (max-width: 640px) {
  .nav {
    width: min(calc(100% - 28px), var(--max));
  }

  .nav .button {
    display: none;
  }

  .section {
    width: min(calc(100% - 28px), var(--max));
  }

  .hero {
    padding-top: 52px;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.6rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-instrument {
    width: 100%;
    min-height: 440px;
  }

  .world-orbit {
    width: 300px;
    height: 300px;
    transform: scale(0.82);
  }

  .instrument-topline span:first-child {
    max-width: 150px;
  }

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

  .metrics article:nth-child(3),
  .metrics article:nth-child(5) {
    border-left: 0;
  }

  .metrics article:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .stack-grid,
  .boundary-grid,
  .screen-grid {
    grid-template-columns: 1fr;
  }

  .feature-wide {
    grid-column: auto;
  }

  .feature-card,
  .mesh-card {
    min-height: auto;
    padding: 28px;
  }

  .dream-section {
    width: 100%;
    padding: 48px 22px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .phase-list {
    grid-template-columns: 1fr;
  }

  .mobile-frame {
    max-width: none;
    justify-self: stretch;
  }

  .final-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 34px;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
