:root {
  color-scheme: light;
  --ink: #050b16;
  --muted: #66717f;
  --subtle: #9aa6b4;
  --line: rgba(96, 114, 135, 0.18);
  --panel: #eef3f8;
  --surface: #e8eef5;
  --surface-strong: #f8fbff;
  --blue: #073bff;
  --blue-dark: #0028a8;
  --cyan: #00b8d8;
  --green: #0da779;
  --red: #d9444e;
  --steel: #b7c2cf;
  --shadow: 18px 18px 48px rgba(128, 145, 164, 0.34), -18px -18px 48px rgba(255, 255, 255, 0.92);
  --shadow-tight: 9px 9px 22px rgba(128, 145, 164, 0.28), -9px -9px 22px rgba(255, 255, 255, 0.96);
  --shadow-inset: inset 8px 8px 18px rgba(128, 145, 164, 0.25), inset -8px -8px 18px rgba(255, 255, 255, 0.88);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-width: 320px;
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0 1px, transparent 1px 18px),
    linear-gradient(180deg, rgba(248, 251, 255, 0.98) 0%, rgba(232, 238, 245, 0.96) 36rem, rgba(226, 233, 241, 1) 100%),
    var(--surface);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 11, 22, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(5, 11, 22, 0.028) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(180deg, transparent 0%, black 14%, black 86%, transparent 100%);
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  width: min(1180px, calc(100% - 40px));
  min-height: 76px;
  margin: 0.8rem auto 0;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 8px;
  background: rgba(232, 238, 245, 0.84);
  box-shadow: var(--shadow-tight);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: clamp(132px, 15vw, 176px);
}

.brand img {
  width: 100%;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.4rem);
  color: #344054;
  font-size: 0.88rem;
  font-weight: 600;
}

.nav-links a {
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.nav-links a:hover {
  color: var(--blue);
  transform: translateY(-1px);
}

.header-action {
  justify-self: end;
  min-height: 42px;
  padding: 0 1rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
  background: linear-gradient(145deg, #f7fbff, #dbe4ee);
  box-shadow: var(--shadow-tight);
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 560px;
  height: calc(100svh - 148px);
  max-height: 760px;
  overflow: hidden;
}

.hero-video,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-video {
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  filter: contrast(1.28) saturate(0.22) brightness(1.08);
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(232, 238, 245, 0.96) 0%, rgba(232, 238, 245, 0.86) 42%, rgba(232, 238, 245, 0.4) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(187, 199, 213, 0.2));
}

.hero-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 1rem;
  font-size: clamp(5.1rem, 12vw, 10.5rem);
  line-height: 0.82;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 620px;
  margin-bottom: 2rem;
  color: #344054;
  font-size: clamp(1.12rem, 1.8vw, 1.42rem);
  line-height: 1.52;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2.2rem;
}

.button {
  min-height: 48px;
  padding: 0 1.15rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  font-weight: 800;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

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

.button.primary {
  color: #ffffff;
  background: linear-gradient(135deg, #020712 0%, #0927b8 58%, #0b54ff 100%);
  box-shadow:
    11px 11px 24px rgba(101, 119, 141, 0.38),
    -10px -10px 24px rgba(255, 255, 255, 0.94),
    inset 1px 1px 0 rgba(255, 255, 255, 0.2);
}

.button.primary:hover {
  box-shadow:
    14px 14px 28px rgba(101, 119, 141, 0.42),
    -12px -12px 28px rgba(255, 255, 255, 0.96),
    inset 1px 1px 0 rgba(255, 255, 255, 0.22);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(145deg, #f9fcff, #dce5ef);
  box-shadow: var(--shadow-tight);
}

.button.secondary:hover {
  border-color: rgba(10, 73, 255, 0.32);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  max-width: 620px;
  margin: 0;
}

.hero-metrics div {
  min-width: 0;
  padding: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  background: rgba(235, 241, 247, 0.74);
  box-shadow: var(--shadow-tight);
  backdrop-filter: blur(10px);
}

.hero-metrics dt {
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-metrics dd {
  margin: 0;
  font-size: clamp(0.96rem, 1.5vw, 1.08rem);
  font-weight: 800;
  white-space: nowrap;
}

.terminal-shell {
  position: relative;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  overflow: hidden;
  color: #eef4ff;
  background:
    linear-gradient(145deg, rgba(245, 249, 253, 0.92), rgba(207, 218, 230, 0.84)),
    var(--surface);
  box-shadow: var(--shadow-inset), var(--shadow);
  padding: 0.76rem;
}

.terminal-shell::before {
  content: "";
  position: absolute;
  inset: 0.76rem;
  pointer-events: none;
  border-radius: 6px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, black 0%, transparent 90%);
}

.terminal-topbar,
.market-strip,
.book-grid,
.execution-row {
  position: relative;
}

.terminal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(183, 194, 207, 0.16);
  border-radius: 6px 6px 0 0;
  background: linear-gradient(145deg, #08162a, #020813);
}

.pair-block {
  display: grid;
  gap: 0.18rem;
}

.pair-label {
  font-size: 0.98rem;
  font-weight: 800;
}

.pair-status,
.market-strip span,
.execution-row span {
  color: rgba(238, 244, 255, 0.58);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.latency-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 34px;
  padding: 0 0.72rem;
  border: 1px solid rgba(31, 199, 212, 0.26);
  border-radius: 999px;
  color: #dffcff;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(31, 199, 212, 0.1);
}

.pulse {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 rgba(31, 199, 212, 0.7);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 8px rgba(31, 199, 212, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(31, 199, 212, 0);
  }
}

.market-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(183, 194, 207, 0.16);
}

.market-strip div {
  display: grid;
  gap: 0.24rem;
  padding: 1rem;
  background: linear-gradient(145deg, rgba(8, 22, 42, 0.98), rgba(2, 8, 19, 0.98));
}

.market-strip strong {
  color: #ffffff;
  font-size: 1rem;
}

.book-grid {
  padding: 0.85rem 1rem 1rem;
  background: linear-gradient(145deg, #06152a, #020813);
}

.book-head,
.book-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 0.6rem;
  min-height: 28px;
}

.book-head {
  color: rgba(238, 244, 255, 0.42);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.book-head span:nth-child(2),
.book-head span:nth-child(3),
.book-row span:nth-child(2),
.book-row span:nth-child(3) {
  text-align: right;
}

.book-rows {
  display: grid;
  gap: 0.24rem;
}

.book-row {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 0 0.55rem;
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
}

.book-row::before {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -1;
  width: var(--depth);
  opacity: 0.16;
}

.asks .book-row {
  color: #ffdfe3;
}

.asks .book-row::before {
  background: var(--red);
}

.bids .book-row {
  color: #dbfff4;
}

.bids .book-row::before {
  background: var(--green);
}

.mid-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  min-height: 52px;
  margin: 0.8rem 0;
  padding: 0.7rem 0.55rem;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.mid-price span {
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  font-weight: 800;
  letter-spacing: 0;
}

.mid-price small {
  color: rgba(238, 244, 255, 0.5);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.execution-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(183, 194, 207, 0.16);
}

.execution-row div {
  display: grid;
  gap: 0.22rem;
  padding: 1rem;
  background: linear-gradient(145deg, rgba(8, 22, 42, 0.98), rgba(2, 8, 19, 0.98));
}

.execution-row strong {
  font-size: 0.92rem;
}

.logo-marquee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 4vw, 2.5rem);
  width: min(1180px, calc(100% - 40px));
  min-height: 118px;
  margin: 1.3rem auto 0;
  padding: 0 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  color: #344054;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 800;
  background: linear-gradient(145deg, rgba(248, 251, 255, 0.84), rgba(215, 225, 236, 0.72));
  box-shadow: var(--shadow-tight);
}

.logo-marquee img {
  width: clamp(70px, 9vw, 112px);
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(4.2rem, 8vw, 7.4rem) 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(0, 1.26fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

h2 {
  max-width: 680px;
  margin-bottom: 0;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  line-height: 0.96;
  font-weight: 800;
  letter-spacing: 0;
}

.feature-grid {
  display: grid;
  gap: 0.75rem;
}

.feature-card {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: linear-gradient(145deg, #f8fbff, #dbe4ee);
  box-shadow: var(--shadow-tight);
}

.feature-index {
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 800;
}

.feature-card h3 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  line-height: 1.2;
}

.feature-card p {
  grid-column: 2;
  margin-bottom: 0;
  color: #475467;
  font-size: 0.96rem;
  line-height: 1.58;
}

.performance {
  border-block: 1px solid rgba(255, 255, 255, 0.58);
}

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

.section-kicker {
  max-width: 390px;
  margin: 0;
  color: #475467;
  font-size: 1rem;
  line-height: 1.6;
}

.trading-preview .terminal-shell {
  max-width: 980px;
  margin: 0 auto;
}

.performance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.performance-stat {
  min-height: 220px;
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(145deg, rgba(249, 252, 255, 0.96), rgba(215, 225, 236, 0.94)),
    var(--surface);
  box-shadow: var(--shadow);
}

.performance-stat span,
.performance-stat small {
  color: #667085;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.performance-stat strong {
  font-size: clamp(3rem, 8vw, 6.2rem);
  line-height: 0.86;
  letter-spacing: 0;
}

.access {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(360px, 0.76fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.access-copy p:not(.eyebrow) {
  max-width: 560px;
  margin-top: 1.2rem;
  margin-bottom: 0;
  color: #475467;
  font-size: 1.05rem;
  line-height: 1.65;
}

.access-form {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  background: linear-gradient(145deg, #f8fbff, #dbe4ee);
  box-shadow: var(--shadow);
}

.access-form label {
  display: block;
  margin-bottom: 0.52rem;
  color: #344054;
  font-size: 0.82rem;
  font-weight: 800;
}

.input-row {
  display: flex;
  gap: 0.6rem;
}

.input-row input,
.input-row button {
  min-height: 50px;
  border-radius: 6px;
  font: inherit;
}

.input-row input {
  min-width: 0;
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.72);
  padding: 0 0.9rem;
  color: var(--ink);
  background: #e9eff6;
  box-shadow: var(--shadow-inset);
}

.input-row input:focus {
  outline: 3px solid rgba(10, 73, 255, 0.16);
  border-color: rgba(10, 73, 255, 0.5);
}

.input-row button {
  border: 0;
  padding: 0 1rem;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, #020712, #0927b8 68%, #0b54ff);
  box-shadow: var(--shadow-tight);
}

.form-note {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(1180px, calc(100% - 40px));
  min-height: 96px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.66);
  color: #667085;
  font-size: 0.88rem;
  font-weight: 700;
}

.site-footer img {
  width: 136px;
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .split,
  .access {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 620px;
    height: calc(100svh - 118px);
    max-height: 740px;
  }

  .terminal-shell {
    max-width: 680px;
  }

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

  .performance-stat {
    min-height: 170px;
  }
}

@media (max-width: 640px) {
  .site-header,
  .hero-inner,
  .logo-marquee,
  .section,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    min-height: 68px;
  }

  .brand {
    width: 124px;
  }

  .header-action {
    display: none;
  }

  .hero {
    align-items: flex-start;
    min-height: 0;
    height: auto;
    max-height: none;
    padding: clamp(3rem, 8vw, 4.5rem) 0 clamp(2.5rem, 8vw, 4rem);
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(245, 247, 250, 0.98) 0%, rgba(245, 247, 250, 0.86) 58%, rgba(245, 247, 250, 0.54) 100%),
      rgba(245, 247, 250, 0.12);
  }

  h1 {
    font-size: clamp(4.2rem, 22vw, 6.4rem);
  }

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

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .market-strip,
  .execution-row {
    grid-template-columns: 1fr;
  }

  .terminal-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .logo-marquee {
    align-items: flex-start;
    flex-direction: column;
    padding: 1.5rem 0;
  }

  .feature-card {
    grid-template-columns: 1fr;
  }

  .feature-card p {
    grid-column: auto;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .input-row {
    flex-direction: column;
  }

  .input-row button {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 1.4rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
