:root {
  --black: #030405;
  --panel: #090c10;
  --panel-2: #10151c;
  --ink: #f6f8fb;
  --muted: #8f98a6;
  --dim: #535c68;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --blue: #6fb8ff;
  --green: #54f28d;
  --red: #ff4f68;
  --amber: #ffc557;
  --mono: "SFMono-Regular", "Roboto Mono", "Cascadia Mono", Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(0deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px) 0 0 / 72px 72px,
    var(--black);
  font-family: var(--sans);
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(112deg, transparent 0 42%, rgba(111, 184, 255, 0.16) 49%, transparent 57%),
    linear-gradient(18deg, transparent 0 62%, rgba(84, 242, 141, 0.09) 70%, transparent 78%),
    linear-gradient(180deg, #030405 0%, #07090d 52%, #020203 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.18;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.08) 0,
    rgba(255, 255, 255, 0.08) 1px,
    transparent 1px,
    transparent 4px
  );
  mix-blend-mode: overlay;
}

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

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

p {
  line-height: 1.55;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 22px;
  left: 50%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1360px, calc(100% - 44px));
  height: 62px;
  padding: 0 10px 0 22px;
  color: var(--ink);
  background: rgba(3, 4, 5, 0.62);
  border: 1px solid var(--line);
  border-radius: 6px;
  backdrop-filter: blur(20px);
  transform: translateX(-50%);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(3, 4, 5, 0.86);
  border-color: var(--line-strong);
}

.brand img,
.site-footer img {
  width: 118px;
  height: auto;
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.nav-links a {
  transition: color 0.2s ease;
}

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

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 6px;
  font-weight: 800;
}

.header-cta {
  justify-self: end;
  min-width: 116px;
  padding: 0 20px;
  color: var(--black);
  background: var(--ink);
  box-shadow: 0 0 26px rgba(255, 255, 255, 0.16);
}

.button {
  min-width: 190px;
  padding: 0 24px;
}

.button.primary {
  color: #00130b;
  background: linear-gradient(90deg, var(--blue), var(--green));
  box-shadow: 0 0 34px rgba(111, 184, 255, 0.18);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line-strong);
}

.system-label {
  margin: 0;
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(420px, 1.14fr);
  align-items: end;
  gap: 36px;
  padding: 138px max(22px, calc((100vw - 1360px) / 2)) 54px;
  isolation: isolate;
}

.dream-field,
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.dream-field {
  z-index: -1;
  opacity: 0.58;
}

.grain {
  z-index: 1;
  opacity: 0.2;
  background-image:
    linear-gradient(90deg, transparent 0 49%, rgba(255, 255, 255, 0.06) 49% 50%, transparent 50%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 9px);
  mix-blend-mode: screen;
}

.hero-product {
  position: absolute;
  right: max(-80px, calc((100vw - 1560px) / 2));
  bottom: 0;
  z-index: 0;
  width: min(980px, 64vw);
  opacity: 0.7;
  filter: saturate(0.82) contrast(1.12) brightness(0.74);
}

.hero-product::before,
.hero-product::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero-product::before {
  inset: -1px;
  background: linear-gradient(90deg, var(--black) 0 8%, transparent 35% 78%, rgba(3, 4, 5, 0.72) 100%);
}

.hero-product::after {
  right: 6%;
  bottom: 12%;
  width: 44%;
  height: 42%;
  border: 1px solid rgba(111, 184, 255, 0.34);
  transform: skewX(-18deg);
  box-shadow: 0 0 42px rgba(111, 184, 255, 0.16);
}

.hero-product img {
  width: 100%;
}

.hero-shell {
  position: relative;
  z-index: 3;
  min-width: 0;
  max-width: 760px;
}

.hero h1 {
  margin: 26px 0 0;
  font-size: 7.7rem;
  line-height: 0.86;
  font-weight: 550;
}

.hero h1 span {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.72);
  text-shadow: 0 0 22px rgba(111, 184, 255, 0.24);
}

.hero-copy {
  max-width: 610px;
  margin: 34px 0 0;
  color: rgba(246, 248, 251, 0.72);
  font-family: var(--mono);
  font-size: 1.04rem;
}

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

.hero-console {
  position: relative;
  z-index: 3;
  align-self: end;
  justify-self: end;
  width: min(430px, 100%);
  min-width: 0;
  padding: 18px;
  background: rgba(9, 12, 16, 0.68);
  border: 1px solid var(--line);
  border-radius: 6px;
  backdrop-filter: blur(22px);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.36);
}

.console-row {
  display: grid;
  gap: 8px;
}

.console-row span,
.telemetry-top span,
.telemetry-bottom,
.signal-strip span,
.prompt-line span,
.part-panel span {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.console-row strong {
  min-height: 52px;
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1.12;
}

.console-row.split {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.console-row.split strong {
  min-height: auto;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.console-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
  height: 70px;
  align-items: end;
  margin: 18px 0;
}

.console-grid i,
.wave i {
  display: block;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--blue), var(--green));
  animation: signal 2.6s ease-in-out infinite;
}

.console-grid i:nth-child(1) { height: 22%; }
.console-grid i:nth-child(2) { height: 70%; animation-delay: 0.1s; }
.console-grid i:nth-child(3) { height: 42%; animation-delay: 0.2s; }
.console-grid i:nth-child(4) { height: 92%; animation-delay: 0.3s; }
.console-grid i:nth-child(5) { height: 58%; animation-delay: 0.4s; }
.console-grid i:nth-child(6) { height: 34%; animation-delay: 0.5s; }
.console-grid i:nth-child(7) { height: 84%; animation-delay: 0.6s; }
.console-grid i:nth-child(8) { height: 50%; animation-delay: 0.7s; }

@keyframes signal {
  0%, 100% { transform: scaleY(0.7); opacity: 0.58; }
  50% { transform: scaleY(1); opacity: 1; }
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(1360px, calc(100% - 44px));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.signal-strip div {
  min-height: 154px;
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.signal-strip strong {
  display: block;
  max-width: 220px;
  margin-top: 52px;
  font-size: 1.35rem;
  line-height: 1.02;
}

.program-section,
.loop-section,
.inside-section,
.privacy-section,
.replay-section,
.reserve-section,
.colophon-section {
  width: min(1360px, calc(100% - 44px));
  margin: 0 auto;
  padding: 128px 0;
}

.section-title {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 54px;
  align-items: start;
  margin-bottom: 44px;
}

.section-title.wide {
  grid-template-columns: 240px minmax(0, 1fr);
}

h2 {
  margin: 0;
  font-size: 5.2rem;
  line-height: 0.94;
  font-weight: 520;
}

h3 {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.05;
}

.program-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(420px, 1.18fr);
  gap: 22px;
  align-items: stretch;
}

.prompt-surface,
.phone-frame,
.step,
.part-panel,
.telemetry-panel,
.kit-stage,
.reserve-section {
  background: rgba(9, 12, 16, 0.7);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.prompt-surface {
  display: grid;
  align-content: end;
  min-height: 620px;
  padding: 26px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(84, 242, 141, 0.1), transparent 38%),
    rgba(9, 12, 16, 0.72);
}

.prompt-line {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.prompt-line p {
  margin: 12px 0 0;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 1.35rem;
}

.prompt-line.muted p {
  color: var(--muted);
  font-size: 1rem;
}

.prompt-line.active {
  color: var(--green);
}

.phone-frame {
  overflow: hidden;
  min-height: 620px;
}

.phone-frame img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.1) brightness(0.82);
}

.loop-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(250px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding: 10px 0 8px;
  scrollbar-width: thin;
}

.step {
  min-height: 410px;
  padding: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.step span {
  color: var(--blue);
  font-family: var(--mono);
  font-weight: 900;
}

.step h3 {
  margin-top: 156px;
}

.step p {
  color: var(--muted);
}

.step:hover,
.step:focus-within {
  border-color: rgba(84, 242, 141, 0.48);
  background:
    linear-gradient(180deg, rgba(84, 242, 141, 0.13), transparent 54%),
    rgba(9, 12, 16, 0.86);
  transform: translateY(-4px);
}

.exploded-layout {
  display: grid;
  grid-template-columns: minmax(380px, 0.96fr) minmax(320px, 0.42fr);
  gap: 22px;
  align-items: start;
}

.exploded-figure {
  position: relative;
  min-height: 840px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 40%),
    #050607;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.exploded-figure::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(111, 184, 255, 0.18);
  pointer-events: none;
}

.exploded-figure img {
  width: min(100%, 880px);
  filter: saturate(0.72) contrast(1.12) brightness(0.58);
}

.hotspot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(111, 184, 255, 0.84);
  border-radius: 50%;
  background: rgba(3, 4, 5, 0.82);
  box-shadow: 0 0 0 7px rgba(111, 184, 255, 0.11);
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.hotspot::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--green);
}

.hotspot.is-active {
  border-color: var(--green);
  box-shadow: 0 0 0 8px rgba(84, 242, 141, 0.12), 0 0 28px rgba(84, 242, 141, 0.26);
}

.part-panel {
  position: sticky;
  top: 104px;
  padding: 24px;
}

.part-panel h3 {
  margin-top: 18px;
  font-size: 3.2rem;
  line-height: 0.94;
  font-weight: 520;
}

.part-panel p,
.privacy-copy p,
.replay-copy p {
  color: var(--muted);
  font-size: 1.08rem;
}

.privacy-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.84fr) minmax(340px, 0.58fr);
  gap: 22px;
  align-items: stretch;
}

.privacy-copy {
  padding: 38px 0;
}

.telemetry-panel {
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(111, 184, 255, 0.14), transparent 52%),
    rgba(9, 12, 16, 0.76);
}

.telemetry-top,
.telemetry-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.telemetry-top strong {
  font-size: 5rem;
  line-height: 0.85;
  font-weight: 520;
}

.wave {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 7px;
  align-items: center;
  height: 240px;
  margin: 28px 0;
}

.wave i:nth-child(1) { height: 28%; }
.wave i:nth-child(2) { height: 72%; animation-delay: 0.1s; }
.wave i:nth-child(3) { height: 45%; animation-delay: 0.2s; }
.wave i:nth-child(4) { height: 91%; animation-delay: 0.3s; }
.wave i:nth-child(5) { height: 62%; animation-delay: 0.4s; }
.wave i:nth-child(6) { height: 34%; animation-delay: 0.5s; }
.wave i:nth-child(7) { height: 78%; animation-delay: 0.6s; }
.wave i:nth-child(8) { height: 52%; animation-delay: 0.7s; }
.wave i:nth-child(9) { height: 86%; animation-delay: 0.8s; }
.wave i:nth-child(10) { height: 48%; animation-delay: 0.9s; }
.wave i:nth-child(11) { height: 66%; animation-delay: 1s; }
.wave i:nth-child(12) { height: 38%; animation-delay: 1.1s; }

.replay-section {
  display: grid;
  grid-template-columns: minmax(420px, 1.05fr) minmax(320px, 0.75fr);
  gap: 22px;
  align-items: center;
}

.kit-stage {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  margin: 0;
  display: grid;
  place-items: center;
  background: #060708;
}

.kit-stage::before {
  content: "";
  position: absolute;
  inset: 10%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: skewX(-12deg);
}

.kit-stage img {
  position: relative;
  width: 96%;
  filter: saturate(0.92) contrast(1.05) brightness(0.74);
}

.replay-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.replay-tags span {
  padding: 12px 14px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.reserve-section,
.colophon-section {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: end;
  padding: 32px;
  background:
    linear-gradient(90deg, rgba(84, 242, 141, 0.12), transparent 48%),
    rgba(9, 12, 16, 0.82);
}

.reserve-section h2 {
  margin-top: 18px;
}

.colophon-section {
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
  margin-bottom: 72px;
  background:
    linear-gradient(90deg, rgba(111, 184, 255, 0.08), transparent 44%),
    rgba(9, 12, 16, 0.62);
}

.colophon-body {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(280px, 0.58fr);
  gap: 34px;
}

.colophon-list {
  margin: 0;
}

.colophon-list div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.colophon-list div:first-child {
  border-top: 0;
  padding-top: 0;
}

.colophon-list dt,
.colophon-list dd,
.colophon-note {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.5;
}

.colophon-list dt {
  color: var(--dim);
  text-transform: uppercase;
}

.colophon-list dd {
  color: var(--ink);
}

.colophon-list a {
  color: var(--green);
  text-decoration: none;
}

.colophon-list a:hover {
  color: var(--blue);
}

.colophon-note {
  max-width: 480px;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(1360px, calc(100% - 44px));
  margin: 0 auto;
  padding: 0 0 42px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.84rem;
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: end;
  }

  .hero-product {
    width: 86vw;
    opacity: 0.48;
  }

  .hero-console {
    justify-self: start;
  }

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

  .section-title,
  .section-title.wide,
  .program-grid,
  .exploded-layout,
  .privacy-section,
  .replay-section,
  .reserve-section,
  .colophon-section,
  .colophon-body {
    grid-template-columns: 1fr;
  }

  .part-panel {
    position: relative;
    top: auto;
  }
}

@media (max-width: 760px) {
  .site-header {
    top: 12px;
    width: calc(100% - 24px);
    grid-template-columns: 1fr auto;
  }

  .brand img {
    width: 104px;
  }

  .nav-links {
    display: none;
  }

  .header-cta {
    min-width: 94px;
    padding: 0 14px;
  }

  .hero {
    min-height: 100svh;
    padding: 112px 18px 34px;
  }

  .hero-product {
    right: -52vw;
    bottom: 16%;
    width: 146vw;
    opacity: 0.34;
  }

  .hero h1 {
    font-size: 4.18rem;
  }

  .hero h1 span {
    font-size: 0.8em;
  }

  .hero-copy {
    font-size: 0.95rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-console {
    width: 100%;
    max-width: 100%;
  }

  .signal-strip,
  .program-section,
  .loop-section,
  .inside-section,
  .privacy-section,
  .replay-section,
  .reserve-section,
  .colophon-section,
  .site-footer {
    width: calc(100% - 36px);
  }

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

  .program-section,
  .loop-section,
  .inside-section,
  .privacy-section,
  .replay-section,
  .reserve-section,
  .colophon-section {
    padding: 84px 0;
  }

  h2 {
    font-size: 3.05rem;
  }

  .prompt-surface,
  .phone-frame,
  .phone-frame img {
    min-height: 430px;
  }

  .loop-track {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .step {
    min-height: 250px;
  }

  .step h3 {
    margin-top: 64px;
  }

  .exploded-figure {
    min-height: 580px;
  }

  .exploded-figure img {
    width: 132%;
  }

  .part-panel h3 {
    font-size: 2.7rem;
  }

  .telemetry-top strong {
    font-size: 4rem;
  }

  .kit-stage {
    min-height: 360px;
  }

  .reserve-section {
    align-items: start;
    margin-bottom: 48px;
    padding: 24px;
  }

  .colophon-section {
    grid-template-columns: 1fr;
    margin-bottom: 48px;
    padding: 22px;
  }

  .colophon-body {
    grid-template-columns: 1fr;
  }

  .colophon-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 3.35rem;
  }

  .hero h1 span {
    font-size: 0.76em;
  }

  h2 {
    font-size: 2.65rem;
  }

  .console-row strong,
  .prompt-line p {
    font-size: 1.1rem;
  }
}

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

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