:root {
  color-scheme: dark;
  --bg: #070806;
  --panel: #10130f;
  --panel-2: #171a15;
  --ink: #f7f1de;
  --muted: #aaa28f;
  --line: rgba(247, 241, 222, 0.16);
  --blue: #68d8ff;
  --yellow: #ffcc3d;
  --red: #ff4b36;
  --green: #65ed8d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 72% 8%, rgba(104, 216, 255, 0.22), transparent 28rem),
    radial-gradient(circle at 12% 18%, rgba(255, 75, 54, 0.18), transparent 24rem),
    linear-gradient(140deg, #070806 0%, #12140f 58%, #050605 100%);
  background-size: 32px 32px, 32px 32px, auto, auto, auto;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

.ticker {
  position: sticky;
  top: 0;
  z-index: 40;
  overflow: hidden;
  border-bottom: 2px solid #181711;
  background: var(--yellow);
  color: #111008;
  font-weight: 950;
  text-transform: uppercase;
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 24s linear infinite;
}

.ticker span {
  padding: 0.62rem 1.4rem;
  white-space: nowrap;
}

.shell {
  display: grid;
  width: min(1440px, 100%);
  min-height: calc(100vh - 42px);
  grid-template-columns: 260px minmax(0, 1fr);
  margin: 0 auto;
}

.sidebar {
  position: sticky;
  top: 42px;
  display: flex;
  height: calc(100vh - 42px);
  flex-direction: column;
  gap: 18px;
  border-right: 1px solid var(--line);
  background: rgba(7, 8, 6, 0.72);
  padding: 22px;
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
}

.brand__mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid var(--ink);
  background: var(--red);
  color: #fff;
  transform: rotate(-8deg);
}

.nav {
  display: grid;
  gap: 7px;
  overflow: auto;
  padding-right: 2px;
}

.nav__item,
.chip,
.crew button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
  transition:
    transform 150ms ease,
    background 150ms ease,
    border-color 150ms ease;
}

.nav__item {
  min-height: 38px;
  padding: 0 12px;
  color: var(--muted);
}

.nav__item:hover,
.nav__item.is-active,
.chip:hover,
.chip.is-active,
.crew button:hover {
  border-color: rgba(104, 216, 255, 0.72);
  background: rgba(104, 216, 255, 0.12);
  color: var(--ink);
}

.stage {
  min-width: 0;
  padding: 28px;
}

.page {
  display: none;
  min-height: calc(100vh - 98px);
  animation: pageIn 180ms ease;
}

.page.is-active {
  display: block;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(360px, 1.16fr);
  gap: 28px;
  align-items: center;
}

.eyebrow,
.metric span,
.stock-board span {
  margin: 0 0 10px;
  color: var(--blue);
  font-weight: 950;
  text-transform: uppercase;
}

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

h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(3.4rem, 8vw, 9.2rem);
  line-height: 0.86;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(2.4rem, 6vw, 6.2rem);
  line-height: 0.9;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 14px;
  text-transform: uppercase;
}

.lead {
  color: var(--yellow);
  font-size: clamp(1.4rem, 2.8vw, 2.4rem);
  font-weight: 950;
  text-transform: uppercase;
}

.actions,
.chart-toolbar,
.garage__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.actions {
  margin: 28px 0 16px;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  padding: 0 18px;
  cursor: pointer;
  font-weight: 950;
  text-transform: uppercase;
  transition:
    transform 150ms ease,
    background 150ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--green);
  color: #071209;
}

.btn--ghost {
  background: transparent;
}

.contract {
  display: grid;
  max-width: 680px;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  padding: 12px;
}

.contract span {
  color: var(--yellow);
  font-weight: 950;
}

.contract code {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.car-card,
.chart-card,
.feed,
.desk,
.audio-dock,
.soundtrack,
.form,
.receipt,
.map,
.garage,
.meme-lab,
.calculator,
.join,
.accordion {
  border: 1px solid var(--line);
  background: rgba(16, 19, 15, 0.82);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.car-card {
  margin: 0;
  padding: 14px;
  transform: rotate(1.2deg);
}

.car-card img,
.garage img,
.meme-lab img {
  display: block;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  object-fit: cover;
}

.car-card figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.metric-grid,
.stock-board,
.timeline,
.crew {
  display: grid;
  gap: 14px;
}

.metric-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 24px;
}

.metric,
.stock-board article,
.timeline article {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  padding: 20px;
}

.metric strong,
.stock-board strong {
  display: block;
  color: var(--yellow);
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 0.92;
  text-transform: uppercase;
}

.audio-dock {
  position: sticky;
  top: 56px;
  z-index: 25;
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(280px, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  padding: 12px;
  backdrop-filter: blur(16px);
}

.audio-dock span,
.soundtrack__cover span {
  display: block;
  color: var(--blue);
  font-weight: 950;
  text-transform: uppercase;
}

.audio-dock strong,
.soundtrack__cover strong {
  display: block;
  color: var(--yellow);
  font-size: clamp(1.3rem, 3vw, 2.1rem);
  line-height: 1;
  text-transform: uppercase;
}

.audio-dock iframe {
  display: block;
  width: 100%;
  height: 120px;
  border: 0;
}

.soundtrack {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 18px;
  padding: 16px;
}

.soundtrack__cover {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.soundtrack__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.08) brightness(0.82);
}

.soundtrack__cover div {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  background: rgba(7, 8, 6, 0.82);
  padding: 16px;
}

.soundtrack__player {
  display: grid;
  align-content: center;
  gap: 16px;
  min-height: 420px;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    #0a0d09;
  background-size: 28px 28px;
  padding: 22px;
}

.soundtrack__player p {
  margin: 0;
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.source-link {
  color: var(--blue);
  font-weight: 950;
  text-transform: uppercase;
}

.page__head {
  margin-bottom: 24px;
}

.chart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
}

.chart-card {
  padding: 18px;
}

.chart-toolbar {
  margin-bottom: 14px;
}

.chip {
  min-height: 38px;
  padding: 0 12px;
}

canvas {
  display: block;
  width: 100%;
}

#hypeCanvas {
  aspect-ratio: 16 / 7;
  min-height: 260px;
}

.feed {
  padding: 18px;
}

.feed ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feed li {
  border-left: 4px solid var(--green);
  background: rgba(255, 255, 255, 0.045);
  padding: 10px;
  color: var(--muted);
  font-weight: 800;
}

.stock-board {
  grid-template-columns: repeat(4, 1fr);
}

.mini-chart {
  margin-top: 16px;
  height: 96px;
}

.desk {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
  padding: 16px;
}

.desk p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.form {
  display: grid;
  max-width: 720px;
  gap: 16px;
  padding: 22px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #090a08;
  color: var(--ink);
  padding: 13px;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.receipt {
  max-width: 720px;
  margin-top: 16px;
  padding: 18px;
  color: var(--yellow);
  font-weight: 900;
}

.map {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background:
    linear-gradient(30deg, rgba(104, 216, 255, 0.1), transparent 42%),
    linear-gradient(150deg, rgba(255, 204, 61, 0.12), transparent 42%),
    #0d100c;
}

.map::before {
  position: absolute;
  inset: 10%;
  border: 2px dashed rgba(247, 241, 222, 0.22);
  content: "";
  transform: rotate(-12deg);
}

.pin {
  position: absolute;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--red);
  cursor: pointer;
  font-weight: 950;
}

.pin--one { left: 16%; top: 18%; }
.pin--two { right: 22%; top: 22%; }
.pin--three { left: 34%; bottom: 24%; }
.pin--four { right: 14%; bottom: 18%; }

.map__label {
  position: absolute;
  left: 24px;
  bottom: 24px;
  max-width: calc(100% - 48px);
  border: 1px solid var(--line);
  background: rgba(7, 8, 6, 0.86);
  padding: 16px;
  color: var(--yellow);
  font-weight: 950;
  text-transform: uppercase;
}

.garage {
  display: grid;
  gap: 16px;
  padding: 16px;
}

.garage img.poster {
  filter: saturate(1.5) contrast(1.28);
}

.garage img.heat {
  filter: hue-rotate(155deg) saturate(1.6) contrast(1.18);
}

.garage img.night {
  filter: brightness(0.66) contrast(1.35) saturate(0.9);
}

.timeline {
  grid-template-columns: repeat(4, 1fr);
}

.timeline span {
  color: var(--red);
  font-size: 2.2rem;
  font-weight: 950;
}

.timeline strong {
  display: block;
  margin: 12px 0 8px;
  font-size: 1.3rem;
  text-transform: uppercase;
}

.timeline p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.crew {
  grid-template-columns: repeat(4, 1fr);
}

.crew button {
  min-height: 140px;
  padding: 18px;
  font-size: 1.2rem;
}

.role-output {
  margin-top: 16px;
  color: var(--yellow);
  font-size: 1.4rem;
  font-weight: 950;
  text-transform: uppercase;
}

.meme-lab {
  display: grid;
  gap: 14px;
  max-width: 760px;
  padding: 16px;
}

.meme-lab figure {
  position: relative;
  margin: 0;
}

.meme-lab figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  background: rgba(7, 8, 6, 0.78);
  padding: 14px;
  color: var(--yellow);
  font-size: clamp(1.5rem, 4vw, 3.4rem);
  font-weight: 950;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.calculator,
.join,
.accordion {
  max-width: 760px;
  padding: 22px;
}

.calc-output {
  margin-top: 18px;
  border: 1px solid var(--line);
  background: rgba(101, 237, 141, 0.12);
  padding: 18px;
  color: var(--green);
  font-size: 2rem;
  font-weight: 950;
  text-transform: uppercase;
}

.accordion {
  display: grid;
  gap: 10px;
}

.accordion button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  padding: 14px;
  cursor: pointer;
  font-weight: 950;
  text-align: left;
  text-transform: uppercase;
}

.accordion p {
  display: none;
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.5;
}

.accordion p.is-open {
  display: block;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  border: 2px solid var(--ink);
  background: var(--green);
  color: #071209;
  padding: 14px 18px;
  font-weight: 950;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

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

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .hero,
  .audio-dock,
  .soundtrack,
  .chart-layout {
    grid-template-columns: 1fr;
  }

  .metric-grid,
  .stock-board,
  .timeline,
  .crew {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .stage {
    padding: 18px;
  }

  .audio-dock {
    position: static;
  }

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

  .metric-grid,
  .stock-board,
  .timeline,
  .crew {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 18px;
  }

  .map {
    min-height: 430px;
  }
}
