@font-face {
  font-family: "Tektur";
  src: url("assets/fonts/tektur.woff2") format("woff2");
  font-weight: 700 900;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/space-grotesk.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/ibm-plex-mono.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #020e21;
  --deep: #061a30;
  --panel: #092139;
  --cream: #fff0c9;
  --text: #b7d5e3;
  --aqua: #4ff6e6;
  --coral: #ff7551;
  --lime: #c6ff66;
  --blue-line: #254b6c;
  --display: "Tektur", "Arial Black", sans-serif;
  --body: "Space Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--cream);
  font: 400 1rem/1.5 var(--body);
  background:
    radial-gradient(ellipse at 75% 8%, #0e3558 0, transparent 52rem),
    radial-gradient(ellipse at 0% 52%, #0a2741 0, transparent 50rem),
    var(--deep);
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
figure, p, h1, h2, h3 { margin: 0; }
:focus-visible { outline: 2px solid var(--cream); outline-offset: 5px; }

.shell {
  width: min(100% - 72px, 1280px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 5;
  top: 0;
  background: #06172b;
  box-shadow: 0 2px var(--blue-line), 0 5px #020e219e;
}

.header-inner {
  min-height: 74px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 10px;
  white-space: nowrap;
}

.brand strong {
  display: block;
  font: 900 1.08rem/1 var(--display);
}

.brand small {
  display: block;
  margin-top: 5px;
  color: var(--aqua);
  font: 500 .68rem/1 var(--mono);
  letter-spacing: .11em;
}

.main-nav { display: flex; align-self: stretch; gap: clamp(20px, 3.5vw, 54px); }

.main-nav a {
  position: relative;
  display: grid;
  align-items: center;
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}

.main-nav a:is(:hover, [aria-current]) { color: var(--aqua); }

.main-nav a[aria-current]::after {
  content: "";
  position: absolute;
  inset: auto 0 -2px;
  height: 3px;
  background: var(--aqua);
  box-shadow: 0 0 13px #4ff6e69c;
}

.key {
  --key-top: #133855;
  --key-bottom: #0c2843;
  --key-edge: #2f6381;
  --key-shadow: #020e21;
  display: inline-flex;
  min-width: 0;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 8px 14px;
  border: 2px solid var(--key-edge);
  border-radius: 4px;
  background: linear-gradient(180deg, var(--key-top), var(--key-bottom));
  box-shadow: inset 0 2px #ffffff24, 0 4px var(--key-shadow);
  color: var(--key-ink, var(--cream));
  font: 700 .78rem/1.2 var(--display);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .055em;
  cursor: pointer;
  transition: transform 150ms ease, filter 150ms ease, box-shadow 150ms ease;
}

.key img { flex: none; object-fit: contain; }
.key:hover { filter: brightness(1.16); transform: translateY(-2px); box-shadow: inset 0 2px #ffffff24, 0 6px var(--key-shadow); }
.key:active { transform: translateY(3px); box-shadow: inset 0 2px #0003, 0 1px var(--key-shadow); }
.key[aria-disabled="true"] { cursor: default; opacity: .76; filter: none; transform: none; box-shadow: inset 0 2px #ffffff24, 0 4px var(--key-shadow); }

.key--buy {
  --key-top: #ff9766;
  --key-bottom: #ff6e4d;
  --key-edge: #ffb080;
  --key-shadow: #a43839;
  --key-ink: #211228;
  font-weight: 900;
}

.key--x { --key-top: #152237; --key-bottom: #091526; --key-edge: #466480; }
.key--dex { --key-ink: #a7fff3; --key-edge: #32878e; }

.key--bass {
  --key-top: #164459;
  --key-bottom: #0c2f42;
  --key-edge: #568b7e;
  --key-ink: var(--lime);
}

.key--bass[aria-pressed="true"] {
  --key-top: #d7ff99;
  --key-bottom: #b8f663;
  --key-edge: #e0ffba;
  --key-ink: #102839;
}

.header-buy {
  justify-self: end;
  min-height: 42px;
  min-width: 111px;
  margin-bottom: 4px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 12px;
  transform: translateY(-150%);
  background: var(--cream);
  color: var(--ink);
}

.skip-link:focus { transform: none; }

main { padding-block: 32px 42px; }
section[id] { scroll-margin-top: 106px; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(24px, 4.2vw, 70px);
  padding: clamp(22px, 3.3vw, 48px);
  padding-block: clamp(22px, 2.55vw, 37px);
  border: 2px solid #2b6083;
  background:
    radial-gradient(ellipse at 98% 14%, #17618a86 0, transparent 64%),
    radial-gradient(circle at 1px 1px, #73cdf826 1px, transparent 1.5px) 0 0 / 10px 10px,
    linear-gradient(125deg, #0a3151, #071b34 70%);
  box-shadow: inset 0 0 0 4px #07243f, 0 7px #031326;
}

.hero::before, .hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 62px;
  height: 24px;
  pointer-events: none;
}

.hero::before { inset: -2px auto auto -2px; border: solid var(--aqua); border-width: 3px 0 0 3px; }
.hero::after { inset: auto -2px -2px auto; border: solid var(--coral); border-width: 0 3px 3px 0; }

.signal-label, .section-label, .monitor-top, .monitor-bottom, .track-label {
  font: 500 .76rem/1.25 var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
}

.signal-label { color: var(--aqua); display: flex; align-items: center; gap: 10px; }

.signal-light, .monitor-top i {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: none;
  background: currentColor;
  box-shadow: 0 0 13px currentColor;
}

.hero h1 {
  margin: 16px 0 22px 3px;
  font: 900 clamp(66px, 8.8vw, 137px)/.82 var(--display);
  letter-spacing: -.025em;
  text-transform: uppercase;
}

.hero h1 span {
  display: block;
  width: fit-content;
  transform: skewX(-8deg);
  text-shadow: 3px 4px #08172f, 6px 8px #08172f, 7px 10px #235676;
}

.hero h1 span + span { color: var(--aqua); margin-left: 3px; }

.token-tag {
  display: inline-block;
  padding: 3px 12px 4px;
  border: 1px solid var(--coral);
  background: #ff75511c;
  color: #ffac87;
  font: 500 .83rem/1.2 var(--mono);
  letter-spacing: .1em;
}

.hero-copy {
  margin: 19px 0 24px;
  font-size: clamp(1.02rem, 1.5vw, 1.28rem);
  line-height: 1.35;
  color: var(--text);
}

.hero-keys {
  display: grid;
  max-width: 440px;
  grid-template-columns: 1.08fr 1fr;
  gap: 13px 11px;
}

.hero-keys:has(> .key--buy[hidden]) .key--bass { grid-column: 1 / -1; }

.action-status {
  position: fixed;
  z-index: 6;
  right: clamp(12px, 3vw, 42px);
  bottom: clamp(12px, 3vw, 42px);
  max-width: calc(100vw - 24px);
  color: var(--cream);
  font: 500 .72rem/1.4 var(--mono);
}

.action-status:not(:empty) {
  padding: 12px 15px;
  border: 2px solid var(--coral);
  background: #091d34;
  box-shadow: 4px 4px var(--ink);
}

.booth-monitor, .chart-monitor {
  min-width: 0;
  border: 2px solid #2f6287;
  border-radius: 5px;
  background: #051529;
  box-shadow: 0 0 0 4px #05172d, 0 0 0 5px #36799b, 7px 11px #020e21;
  overflow: hidden;
}

.booth-monitor { justify-self: end; width: min(100%, 600px); }

.monitor-top, .monitor-bottom {
  min-height: 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 12px;
  color: var(--aqua);
}

.monitor-top > span:first-child { display: flex; align-items: center; gap: 9px; }
.monitor-top i { width: 7px; height: 7px; color: var(--coral); }
.monitor-channel { color: #a4bbcf; text-align: end; }
.monitor-channel strong { color: var(--cream); }
.booth-screen { border-block: 2px solid #306988; }
.hero-art { width: 100%; height: auto; }
.monitor-bottom { min-height: 32px; color: #a4bbcf; }

.equalizer, .track-level { display: inline-flex; gap: 3px; align-items: end; }
.equalizer i { width: 4px; height: 5px; background: var(--aqua); opacity: .75; transform-origin: center bottom; }
.equalizer i:nth-child(3n + 1) { height: 10px; }
.equalizer i:nth-child(4n + 2) { height: 14px; background: var(--lime); }
.equalizer i:nth-child(4n) { height: 8px; background: var(--coral); }
.hero.is-playing .equalizer i { animation: level 320ms steps(4, end) infinite alternate; }
.hero.is-playing .equalizer i:nth-child(2n) { animation-delay: -190ms; }
.hero.is-playing .equalizer i:nth-child(3n) { animation-delay: -70ms; }
.hero.is-playing .monitor-bottom { color: var(--lime); }

@keyframes level { from { transform: scaleY(.35); } to { transform: scaleY(1.15); } }

.section-panel {
  margin-top: 44px;
  padding: clamp(21px, 3.15vw, 45px);
  border: 2px solid var(--blue-line);
  background: linear-gradient(135deg, #0e304c, #081d34 63%);
  box-shadow: 0 6px #020e21;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 27px;
}

.section-label { color: #a4c6d8; }
.section-label span { color: var(--coral); margin-inline: 2px; }

.section-heading h2 {
  margin-top: 7px;
  color: var(--cream);
  font: 900 clamp(2.3rem, 6vw, 5.3rem)/.99 var(--display);
  letter-spacing: -.045em;
  text-transform: uppercase;
  text-shadow: 3px 4px #06162b;
}

.section-aside { max-width: 23ch; padding-bottom: 4px; color: var(--text); text-align: right; }

.tracks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.track {
  position: relative;
  min-width: 0;
  padding: 22px;
  border: 2px solid #2a4c67;
  border-top: 3px solid var(--track-color);
  background: radial-gradient(ellipse at top right, color-mix(in srgb, var(--track-color) 10%, transparent), transparent 67%), #091d34;
  box-shadow: 0 4px #041123;
}

.track--coral { --track-color: var(--coral); }
.track--aqua { --track-color: var(--aqua); }
.track--lime { --track-color: var(--lime); }
.track-label { color: var(--track-color); }
.track h3 { margin: 15px 0 9px; font: 900 clamp(1.25rem, 2.3vw, 2.2rem)/1.04 var(--display); text-transform: uppercase; }
.track p { max-width: 33ch; color: var(--text); }
.track-level { position: absolute; top: 24px; right: 22px; height: 14px; color: var(--track-color); }
.track-level i { width: 3px; height: 35%; background: currentColor; }
.track-level i:nth-child(2n) { height: 68%; }
.track-level i:nth-child(3) { height: 100%; }

.market-link { min-height: 45px; margin-bottom: 4px; }
.chart-monitor { margin: 0 4px 5px; }

.chart-screen {
  display: grid;
  height: clamp(340px, 36vw, 500px);
  border-top: 2px solid #255879;
  background: #07192d;
}

.chart-screen iframe { display: block; width: 100%; height: 100%; border: 0; }

.chart-empty {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 26px;
  text-align: center;
  background:
    radial-gradient(ellipse at center, #12445c95, transparent 75%),
    linear-gradient(#26537547 1px, transparent 1px) 0 0 / 30px 30px,
    linear-gradient(90deg, #26537547 1px, transparent 1px) 0 0 / 30px 30px;
}

.chart-empty p {
  color: var(--aqua);
  font: 900 clamp(1.35rem, 3.2vw, 2.45rem)/1.1 var(--display);
  text-transform: uppercase;
}

.chart-empty span { max-width: 36ch; color: var(--text); }

.market-mint {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 16px 4px 0;
  font: 500 .72rem/1.5 var(--mono);
  color: var(--text);
}

.market-mint code { color: var(--aqua); font: inherit; overflow-wrap: anywhere; }

.launch-art {
  margin-top: 44px;
  border: 2px solid #32638a;
  box-shadow: 0 6px #020e21;
}

.launch-art img { width: 100%; height: auto; }
.site-footer { background: #041427; border-top: 2px solid var(--blue-line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-block: 17px; }
.footer-inner p { color: var(--text); font-size: .88rem; }
.footer-social { display: inline-flex; align-items: center; min-height: 44px; gap: 8px; color: var(--aqua); font-weight: 700; }
.footer-social:hover { color: var(--cream); }

@media (max-width: 1100px) {
  .hero h1 { font-size: clamp(49px, 8.45vw, 103px); }
  .hero-keys .key { padding-inline: 8px; }
}

@media (max-width: 800px) {
  .shell { width: calc(100% - 36px); }
  .header-inner { min-height: 64px; gap: 15px; }
  .main-nav { gap: 20px; }
  .hero { gap: 23px; }
  .hero h1 { font-size: clamp(44px, 8.55vw, 72px); }
  .hero-keys { gap: 10px 7px; }
  .hero-keys .key { font-size: .69rem; gap: 5px; }
  .hero-keys img { width: 21px; height: 21px; }
  .track { padding: 15px; }
  .track-level { top: 17px; right: 15px; }
}

@media (max-width: 650px) {
  .shell { width: calc(100% - 28px); }
  .header-inner { grid-template-columns: 1fr auto; gap: 0 10px; padding-top: 7px; }
  .header-inner .brand img { width: 39px; height: 39px; }
  .header-buy { grid-column: 2; grid-row: 1; min-height: 37px; min-width: 83px; margin: 0 0 4px; padding: 3px 9px; }
  .main-nav { grid-column: 1/-1; justify-content: space-between; gap: 10px; padding-inline: 2px; }
  .main-nav a { min-height: 43px; font-size: .75rem; }
  main { padding-top: 14px; }
  section[id] { scroll-margin-top: 111px; }
  .hero { grid-template-columns: 1fr; gap: 12px; padding: 17px 17px 21px; }
  .hero h1 { font-size: clamp(53px, 15.5vw, 93px); margin-block: 12px; }
  .hero-copy { margin-block: 10px 12px; }
  .hero-keys { max-width: 100%; gap: 8px 10px; }
  .hero-keys .key { min-height: 46px; font-size: .73rem; }
  .booth-monitor { width: auto; justify-self: stretch; margin-inline: 4px; }
  .section-panel, .launch-art { margin-top: 28px; }
  .section-panel { padding: 18px 14px 20px; }
  .section-heading { align-items: start; flex-direction: column; gap: 9px; margin-bottom: 19px; }
  .section-heading h2 { font-size: clamp(2.07rem, 8.8vw, 3.5rem); }
  .section-aside { max-width: none; padding: 0; text-align: left; }
  .tracks { grid-template-columns: 1fr; gap: 12px; }
  .track p { max-width: 42ch; }
  .track h3 { margin-block: 8px; font-size: 1.42rem; }
  .market-link { min-height: 41px; }
  .chart-screen { height: 390px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .key { transition: none; }
  .hero.is-playing .equalizer i { animation: none; }
}

[hidden] { display: none !important; }
