:root {
  color-scheme: dark;
  --bg: #070708;
  --panel: rgba(10, 12, 14, 0.78);
  --panel-strong: rgba(4, 5, 7, 0.88);
  --ink: #f5f6ef;
  --muted: #a6aa9c;
  --line: rgba(198, 240, 6, 0.24);
  --green: #c6f006;
  --cyan: #8de8ff;
  --violet: #a894ff;
  --shadow: 0 30px 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;
}

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

button {
  font: inherit;
}

.hidden {
  display: none;
}

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

.intro {
  z-index: 20;
  overflow: hidden;
  background: #030304;
}

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

.introOverlay {
  background:
    radial-gradient(circle at 50% 45%, rgba(198, 240, 6, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.82));
}

.bgVideo {
  z-index: -3;
  opacity: 0.22;
  filter: saturate(0.85) contrast(1.15);
}

.introCopy {
  position: absolute;
  left: clamp(20px, 5vw, 72px);
  bottom: clamp(72px, 13vh, 150px);
  display: grid;
  gap: 12px;
}

.introCopy img {
  width: 72px;
  height: 72px;
  border: 1px solid var(--green);
  border-radius: 18px;
  object-fit: cover;
}

.introCopy span,
.kicker,
.sectionHead p {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.introCopy strong {
  max-width: 820px;
  font-size: clamp(38px, 8vw, 104px);
  line-height: 0.86;
  letter-spacing: 0;
}

.skip,
.enter,
.pill,
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 850;
}

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

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

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

.site {
  position: relative;
  min-height: 100vh;
  padding: 18px clamp(14px, 3vw, 44px) 76px;
  overflow: hidden;
}

.site::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 15% 18%, rgba(141, 232, 255, 0.12), transparent 36%),
    radial-gradient(circle at 88% 32%, rgba(198, 240, 6, 0.16), transparent 32%),
    #070708;
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(5, 6, 8, 0.76);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  font-weight: 950;
}

.brand img {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  object-fit: cover;
}

nav {
  display: flex;
  justify-content: center;
  gap: 6px;
}

nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

nav a:hover {
  background: rgba(198, 240, 6, 0.1);
  color: var(--ink);
}

.pill {
  justify-self: end;
  min-width: 56px;
  min-height: 42px;
  background: var(--green);
  color: #0b0d09;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 500px);
  gap: clamp(28px, 5vw, 74px);
  align-items: center;
  max-width: 1180px;
  min-height: calc(100vh - 100px);
  margin: 0 auto;
  padding: 68px 0 42px;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: clamp(50px, 8vw, 112px);
  line-height: 0.88;
  letter-spacing: 0;
}

.lead {
  max-width: 650px;
  color: #d4d8ca;
  font-size: clamp(17px, 1.9vw, 22px);
  line-height: 1.52;
}

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

.primary,
.secondary {
  min-height: 52px;
  padding: 0 22px;
}

.primary {
  background: var(--green);
  color: #0c0e08;
}

.secondary {
  background: rgba(0, 0, 0, 0.28);
}

.terminal,
.markets,
.matrix,
.docs {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.terminal {
  border-radius: 28px;
  padding: 22px;
}

.terminalTop,
.matrixHeader,
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.terminalTop,
.matrixHeader {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.terminalTop b,
.matrixHeader b {
  color: var(--green);
}

.module {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: var(--panel-strong);
}

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

.module strong {
  display: block;
  margin-top: 10px;
  font-size: 26px;
}

.module.output {
  border-color: rgba(198, 240, 6, 0.45);
}

.synthLine {
  position: relative;
  height: 90px;
  margin: 8px 0;
}

.synthLine::before {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  top: 50%;
  border-top: 1px dashed rgba(198, 240, 6, 0.5);
}

.synthLine span {
  position: absolute;
  top: calc(50% - 8px);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 24px rgba(198, 240, 6, 0.7);
}

.synthLine span:first-child {
  left: 22px;
}

.synthLine span:last-child {
  right: 22px;
}

.synthLine i {
  position: absolute;
  left: calc(50% - 24px);
  top: calc(50% - 24px);
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(141, 232, 255, 0.13);
  animation: rotateCore 5s linear infinite;
}

.metricGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.metricGrid div {
  min-height: 86px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.metricGrid b {
  display: block;
  margin-top: 8px;
  color: var(--cyan);
  font-size: 24px;
}

.markets,
.matrix,
.docs {
  max-width: 1180px;
  margin: 0 auto 24px;
  border-radius: 28px;
  padding: clamp(20px, 3vw, 34px);
}

.sectionHead h2,
.docs h2 {
  max-width: 780px;
  font-size: clamp(30px, 4.4vw, 58px);
  line-height: 0.96;
}

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

.cards article {
  min-height: 214px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
}

.cards span {
  color: var(--violet);
  font-size: 12px;
  font-weight: 900;
}

.cards h3 {
  margin: 42px 0 10px;
  font-size: 32px;
}

.cards p,
.docText p {
  color: #c7ccbf;
  line-height: 1.65;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1.35fr 0.8fr 0.5fr;
  min-height: 58px;
  padding: 0 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.row.head {
  min-height: 42px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.row b {
  justify-self: end;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(198, 240, 6, 0.13);
  color: var(--green);
}

.docs {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 26px;
}

@keyframes rotateCore {
  to {
    transform: rotate(360deg);
  }
}

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

  nav {
    display: none;
  }

  .hero,
  .docs {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
  }

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

@media (max-width: 560px) {
  .site {
    padding-inline: 12px;
  }

  h1 {
    font-size: 50px;
  }

  .terminal,
  .markets,
  .matrix,
  .docs {
    border-radius: 20px;
  }

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

  .row {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 6px;
    padding: 14px 0;
  }

  .row.head {
    display: none;
  }

  .row b {
    justify-self: start;
  }
}
