@font-face {
  font-family: 'DM Sans';
  src: url('./assets/fonts/dm-sans.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap
}

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

:root {
  color-scheme: dark;
  --bg: #07141b;
  --bg2: #0b202a;
  --panel: #102630;
  --panel-2: #132d37;
  --line: #24404b;
  --line-soft: rgba(171, 216, 225, .13);
  --text: #edf7f4;
  --muted: #a7bcc0;
  --faint: #6e8c94;
  --accent: #73e6c0;
  --accent-soft: rgba(115, 230, 192, .14);
  --blue: #79baff;
  --pink: #ff8c9b;
  --amber: #ffd27e;
  --shadow: 0 28px 80px rgba(0, 0, 0, .22)
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  min-width: 320px;
  background: radial-gradient(circle at 83% -5%, rgba(40, 127, 123, .22), transparent 33%), radial-gradient(circle at 8% 42%, rgba(35, 87, 127, .16), transparent 35%), var(--bg);
  color: var(--text);
  font: 15px/1.5 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .2;
  background-image: linear-gradient(rgba(180, 225, 224, .11) 1px, transparent 1px), linear-gradient(90deg, rgba(180, 225, 224, .11) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 85%)
}

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

button {
  cursor: pointer
}

button:disabled {
  cursor: not-allowed;
  opacity: .48
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px
}

.shell {
  width: min(1500px, calc(100% - 64px));
  margin: auto;
  position: relative
}

.topbar {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line-soft)
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  white-space: nowrap
}

.brand-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(115, 230, 192, .48);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(115, 230, 192, .19), rgba(115, 230, 192, .04));
  box-shadow: 0 0 24px rgba(115, 230, 192, .11)
}

.brand-icon svg {
  width: 23px;
  height: 23px
}

.brand-name {
  font: 700 15px 'Space Grotesk', sans-serif;
  letter-spacing: .13em
}

.brand-sub {
  display: block;
  color: var(--faint);
  font: 600 9px 'DM Sans', sans-serif;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-top: 2px
}

.toplinks {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: auto;
  scrollbar-width: none
}

.toplinks::-webkit-scrollbar {
  display: none
}

.toplinks a {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--faint);
  font: 700 11px 'Space Grotesk', sans-serif;
  transition: .2s
}

.toplinks a:hover,
.toplinks a.current {
  color: var(--text);
  background: var(--accent-soft);
  border-color: rgba(115, 230, 192, .25)
}

.toplinks-label {
  color: var(--faint);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-right: 8px
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: center;
  padding: 46px 0 38px
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase
}

.eyebrow::before {
  content: '';
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent)
}

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

h1,
h2,
h3 {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif
}

h1 {
  font-size: clamp(40px, 5.2vw, 76px);
  line-height: 1.02;
  letter-spacing: -.06em;
  margin: 18px 0 18px;
  max-width: 900px
}

.hero p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 760px;
  margin-bottom: 0
}

.hero-mark {
  width: 232px;
  height: 188px;
  justify-self: end;
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  background: radial-gradient(circle at 60% 38%, var(--accent-soft), transparent 58%), linear-gradient(135deg, #102631, #0a1c25);
  overflow: hidden
}

.hero-mark::before,
.hero-mark::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(115, 230, 192, .26);
  border-radius: 50%;
  width: 185px;
  height: 185px;
  transform: rotate(-28deg) scaleY(.56)
}

.hero-mark::after {
  transform: rotate(36deg) scaleY(.6);
  width: 230px;
  height: 230px;
  opacity: .5
}

.hero-mark strong {
  font: 700 92px/1 'Space Grotesk', sans-serif;
  letter-spacing: -.08em;
  color: var(--accent);
  text-shadow: 0 0 50px var(--accent-soft);
  z-index: 1
}

.section-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 16px
}

.section-intro h2 {
  font-size: 19px;
  letter-spacing: -.035em;
  margin: 0
}

.section-intro p {
  color: var(--faint);
  font-size: 12px;
  margin: 0
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(300px, .86fr);
  gap: 16px;
  align-items: start
}

.stack {
  display: grid;
  gap: 16px
}

.panel {
  background: linear-gradient(165deg, rgba(23, 50, 61, .94), rgba(14, 33, 42, .97));
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden
}

.panel-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px
}

.panel-head h3 {
  font-size: 15px;
  letter-spacing: -.025em;
  margin: 0
}

.panel-body {
  padding: 22px
}

.panel-sub {
  color: var(--faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap
}

.pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent)
}

.pill.pink::before {
  background: var(--pink)
}

.pill.blue::before {
  background: var(--blue)
}

.field-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 8px
}

.text-field,
.select-field,
.text-area {
  display: block;
  width: 100%;
  border: 1px solid #34505b;
  background: #0a1b23;
  color: var(--text);
  border-radius: 12px;
  padding: 12px 13px;
  outline: none;
  transition: border-color .2s, box-shadow .2s
}

.text-field:focus,
.select-field:focus,
.text-area:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft)
}

.text-area {
  min-height: 112px;
  resize: vertical
}

.control-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap
}

.control-block {
  margin-bottom: 20px
}

.control-block:last-child {
  margin-bottom: 0
}

.range-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700
}

.range-head output {
  color: var(--accent);
  font: 700 13px 'Space Grotesk', sans-serif
}

input[type=range] {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 99px;
  background: #2d4b55;
  outline: none;
  accent-color: var(--accent)
}

input[type=range]::-webkit-slider-thumb {
  appearance: none;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #092129;
  box-shadow: 0 0 0 2px var(--accent)
}

input[type=range]::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #092129;
  box-shadow: 0 0 0 2px var(--accent)
}

.btn {
  border: 1px solid rgba(115, 230, 192, .42);
  background: var(--accent);
  color: #08211d;
  padding: 10px 15px;
  border-radius: 11px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .01em;
  transition: transform .18s, filter .18s
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08)
}

.btn.ghost {
  background: #18343e;
  color: var(--text);
  border-color: var(--line)
}

.btn.muted {
  background: transparent;
  color: var(--muted);
  border-color: var(--line)
}

.segmented {
  display: flex;
  padding: 4px;
  background: #0b1c24;
  border: 1px solid var(--line);
  border-radius: 12px;
  gap: 4px
}

.segmented button {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700
}

.segmented button.active {
  background: #284450;
  color: var(--text);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .16)
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px
}

.stat {
  background: rgba(7, 20, 27, .48);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 13px 14px;
  min-width: 0
}

.stat span {
  display: block;
  color: var(--faint);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase
}

.stat strong {
  display: block;
  color: var(--text);
  font: 700 clamp(18px, 2vw, 27px) 'Space Grotesk', sans-serif;
  letter-spacing: -.045em;
  margin-top: 6px;
  white-space: nowrap
}

.stat em {
  font-style: normal;
  color: var(--muted);
  font-size: 10px
}

.note {
  border-left: 2px solid var(--accent);
  padding: 11px 14px;
  color: var(--muted);
  background: var(--accent-soft);
  border-radius: 0 10px 10px 0;
  font-size: 12px;
  line-height: 1.55
}

.note strong {
  color: var(--text)
}

.hint {
  color: var(--faint);
  font-size: 11px;
  line-height: 1.5
}

.line {
  height: 1px;
  background: var(--line-soft);
  margin: 18px 0
}

.legend {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 11px
}

.legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 5px
}

.legend .mint {
  background: var(--accent)
}

.legend .coral {
  background: var(--pink)
}

.legend .blue {
  background: var(--blue)
}

.legend .amber {
  background: var(--amber)
}

.token-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 30px
}

.token {
  border: 1px solid #36545e;
  background: #1b3842;
  color: #cde3e3;
  border-radius: 8px;
  padding: 5px 8px;
  font: 600 12px 'Space Grotesk', sans-serif
}

.token.hit {
  color: #092622;
  background: var(--accent);
  border-color: var(--accent)
}

.token.risk {
  color: #351621;
  background: var(--pink);
  border-color: var(--pink)
}

.token.quiet {
  opacity: .5
}

.bar-track {
  width: 100%;
  height: 9px;
  border-radius: 99px;
  background: #1c3841;
  overflow: hidden
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #b2f4df);
  border-radius: 99px;
  transition: width .35s
}

.bar-fill.pink {
  background: linear-gradient(90deg, #f67e9a, #ffbdaf)
}

.mono {
  font: 600 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace
}

.viz-frame {
  min-height: 390px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 33%, rgba(53, 116, 123, .13), transparent 46%), #0a1d26;
  border: 1px solid var(--line-soft);
  border-radius: 16px
}

.viz-frame svg {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 390px
}

.viz-caption {
  position: absolute;
  left: 15px;
  bottom: 14px;
  right: 15px;
  color: var(--faint);
  font-size: 11px;
  pointer-events: none
}

.mini-heading {
  color: var(--faint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 9px
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line-soft);
  padding: 25px 0 40px;
  margin-top: 28px;
  color: var(--faint);
  font-size: 11px
}

.foot a {
  color: var(--accent)
}

.switch {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer
}

.switch input {
  accent-color: var(--accent);
  width: 16px;
  height: 16px
}

.divider-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin: 18px 0 13px
}

.divider-label::after {
  content: '';
  height: 1px;
  flex: 1;
  background: var(--line-soft)
}

.fade-in {
  animation: rise .45s both
}

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

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@media(max-width:1000px) {
  .workspace {
    grid-template-columns: 1fr
  }

  .stack {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .stack .panel:last-child:nth-child(odd) {
    grid-column: 1/-1
  }
}

@media(max-width:700px) {
  .shell {
    width: min(100% - 28px, 1500px)
  }

  .topbar {
    height: 70px
  }

  .toplinks-label {
    display: none
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 32px 0 27px
  }

  .hero-mark {
    display: none
  }

  .hero p {
    font-size: 14px
  }

  .stack {
    grid-template-columns: 1fr
  }

  .panel-head,
  .panel-body {
    padding: 16px
  }

  .stat-row {
    gap: 6px
  }

  .stat {
    padding: 10px
  }

  .stat strong {
    font-size: 18px
  }

  .section-intro {
    align-items: start;
    flex-direction: column;
    gap: 4px
  }

  .foot {
    flex-direction: column
  }

  .viz-frame,
  .viz-frame svg {
    min-height: 320px
  }
}

@media(prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important
  }
}
