:root {
  color-scheme: dark;
  --bg: #080907;
  --ink: #f8f6ea;
  --muted: #9da18f;
  --panel: rgba(12, 14, 10, 0.86);
  --panel2: rgba(22, 25, 18, 0.9);
  --line: rgba(198, 240, 6, 0.2);
  --green: #c6f006;
  --blue: #68a6ff;
  --orange: #ff9a3c;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
.hidden { display: none; }

.intro,
.intro video,
.introShade {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.intro {
  z-index: 50;
  overflow: hidden;
  background: #050604;
}

.intro video,
.film {
  object-fit: cover;
}

.introShade {
  background:
    radial-gradient(circle at 44% 48%, rgba(198, 240, 6, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.82));
}

.introCopy {
  position: absolute;
  left: clamp(18px, 4vw, 64px);
  bottom: clamp(76px, 13vh, 145px);
  max-width: 860px;
}

.introCopy img {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  border: 1px solid var(--green);
  object-fit: cover;
  box-shadow: 0 0 52px rgba(198, 240, 6, 0.35);
}

.introCopy p,
.builderHead p,
.routeHeader p,
.docs p:first-child {
  margin: 14px 0 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.introCopy h1 {
  margin: 0;
  font-size: clamp(42px, 8vw, 112px);
  line-height: 0.84;
  letter-spacing: 0;
}

.skip,
.enter,
.x,
.tab,
.compose {
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
}

.skip {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 76px;
  height: 42px;
  background: rgba(0, 0, 0, 0.72);
  color: var(--ink);
}

.enter {
  position: absolute;
  right: clamp(18px, 4vw, 64px);
  bottom: clamp(26px, 6vh, 68px);
  min-width: 170px;
  height: 52px;
  background: var(--green);
  color: #0b0d07;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: 0.35s ease;
}

.enter.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.terminal {
  position: relative;
  min-height: 100vh;
  padding: 14px clamp(10px, 2vw, 24px) 28px;
  overflow: hidden;
}

.film {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  opacity: 0.18;
  filter: contrast(1.15) saturate(0.8);
}

.terminal::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(198, 240, 6, 0.052) 1px, transparent 1px),
    linear-gradient(rgba(198, 240, 6, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 58% 52%, rgba(198, 240, 6, 0.14), transparent 35%),
    linear-gradient(180deg, rgba(8, 9, 7, 0.76), #080907 82%);
  background-size: 42px 42px, 42px 42px, auto, auto;
}

.top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.brand,
.modeSwitch,
.x,
.library,
.screen,
.ticket {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  min-height: 48px;
  padding: 6px 16px 6px 6px;
  border-radius: 16px;
  font-weight: 950;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.modeSwitch {
  display: flex;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
}

.tab {
  min-height: 36px;
  padding: 0 14px;
  background: transparent;
  color: var(--muted);
}

.tab.active {
  background: var(--green);
  color: #0b0d07;
}

.x {
  justify-self: end;
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--panel);
}

.workbench {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 340px;
  gap: 12px;
  min-height: calc(100vh - 74px);
}

.library,
.screen,
.ticket {
  border-radius: 22px;
  padding: 14px;
}

.panelHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.panelHead b { color: var(--green); }

.asset {
  display: grid;
  grid-template-columns: 1fr auto;
  width: 100%;
  min-height: 72px;
  margin-bottom: 9px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.asset.active {
  border-color: rgba(198, 240, 6, 0.54);
  background: rgba(198, 240, 6, 0.1);
}

.asset span { font-weight: 950; }
.asset small { grid-column: 1; color: var(--muted); }
.asset b { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: var(--green); }

.screen {
  position: relative;
  overflow: hidden;
}

.modePanel {
  display: none;
  min-height: 100%;
}

.modePanel.active {
  display: grid;
}

.builder {
  grid-template-rows: auto 1fr auto;
  gap: 12px;
}

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

.builderHead h1,
.routeHeader h2,
.docs h2 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(34px, 5vw, 74px);
  line-height: 0.9;
  letter-spacing: 0;
}

.basketStage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.18);
}

.rings {
  position: absolute;
  width: min(68vw, 620px);
  aspect-ratio: 1;
  border: 1px dashed rgba(198, 240, 6, 0.34);
  border-radius: 50%;
}

.rings::before,
.rings::after {
  content: "";
  position: absolute;
  inset: 14%;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.rings::after {
  inset: 30%;
}

.core {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 8px;
  width: 172px;
  height: 172px;
  border: 1px solid rgba(198, 240, 6, 0.6);
  border-radius: 26px;
  background: rgba(5, 7, 5, 0.88);
  box-shadow: 0 0 70px rgba(198, 240, 6, 0.24);
}

.core img {
  width: 78px;
  height: 78px;
  border-radius: 18px;
  object-fit: cover;
}

.core strong { letter-spacing: 0.18em; }
.core small { color: var(--muted); }

.chip {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  min-width: 96px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(198, 240, 6, 0.45);
  border-radius: 12px;
  background: #10140c;
  color: var(--green);
  font-weight: 950;
  animation: drift 4s ease-in-out infinite;
}

.chipA { transform: translate(-240px, -130px); }
.chipB { transform: translate(235px, -95px); animation-delay: 0.2s; }
.chipC { transform: translate(-160px, 160px); animation-delay: 0.4s; }
.chipD { transform: translate(190px, 150px); animation-delay: 0.6s; }
.mutedChip { opacity: 0.28; border-color: rgba(255, 255, 255, 0.16); color: var(--muted); }

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

.weight {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.weightTop {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 900;
}

.bar {
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.09);
}

.bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--green));
}

.routes {
  align-content: start;
  gap: 18px;
}

.routeMap {
  display: grid;
  grid-template-columns: 1fr 80px 1.4fr 80px 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.routeMap div {
  display: grid;
  place-items: center;
  min-height: 120px;
  padding: 18px;
  border: 1px solid rgba(198, 240, 6, 0.28);
  border-radius: 18px;
  background: rgba(198, 240, 6, 0.08);
  font-weight: 950;
  text-align: center;
}

.routeMap span {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
}

.routeTable,
.metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.routeTable div,
.metrics div,
.preview,
.strategy {
  min-height: 82px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.04);
}

.routeTable span,
.metrics span,
.preview span,
.strategy small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.routeTable b,
.metrics b,
.strategy strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
}

.docs {
  align-content: start;
  gap: 18px;
}

.docs article {
  max-width: 820px;
  color: #d1d7c6;
  line-height: 1.7;
  font-size: 16px;
}

.ticket {
  display: grid;
  align-content: start;
  gap: 12px;
}

.preview strong {
  display: block;
  margin-top: 10px;
  line-height: 1.4;
}

.compose {
  min-height: 54px;
  background: var(--green);
  color: #0b0d07;
}

.notice {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

@keyframes drift {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -12px; }
}

@media (max-width: 1120px) {
  .workbench {
    grid-template-columns: 1fr;
  }

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

  .library .panelHead {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .top {
    grid-template-columns: 1fr auto;
  }

  .modeSwitch {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
  }

  .builderHead h1,
  .routeHeader h2,
  .docs h2 {
    font-size: 38px;
  }

  .library,
  .allocation,
  .routeTable,
  .metrics {
    grid-template-columns: 1fr;
  }

  .basketStage {
    min-height: 360px;
  }

  .chipA { transform: translate(-92px, -130px); }
  .chipB { transform: translate(94px, -118px); }
  .chipC { transform: translate(-88px, 138px); }
  .chipD { transform: translate(94px, 126px); }

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

  .routeMap span {
    height: 34px;
    width: 2px;
    justify-self: center;
  }
}
