:root {
  color-scheme: dark;
  --bg: #07111d;
  --ink: #f5f8ff;
  --muted: #a9bbd4;
  --muted-2: #74859e;
  --line: rgba(174, 208, 246, 0.18);
  --line-strong: rgba(184, 218, 255, 0.34);
  --panel: rgba(20, 36, 58, 0.62);
  --cyan: #35ddff;
  --blue: #6087ff;
  --green: #72f6a6;
  --warm: #f0c79f;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 12%, rgba(75, 110, 190, 0.2), transparent 32%),
    radial-gradient(circle at 50% 102%, rgba(60, 181, 211, 0.32), transparent 34%),
    linear-gradient(145deg, #07111d 0%, #0c1d34 54%, #2b5874 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.home-shell {
  min-height: 100vh;
  overflow: hidden;
}

.home-nav {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  padding: 0 24px;
  background: rgba(7, 17, 29, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.home-brand,
.nav-actions,
.hero-actions,
.hero-stats,
.marquee-track {
  display: flex;
  align-items: center;
}

.home-brand {
  gap: 10px;
  width: fit-content;
}

.brand-symbol {
  position: relative;
  width: 31px;
  height: 31px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--cyan) 0%, var(--blue) 58%, #71f4c4 100%);
  box-shadow: 0 14px 30px rgba(53, 221, 255, 0.2);
  overflow: hidden;
}

.brand-symbol::before,
.brand-symbol::after {
  position: absolute;
  content: "";
  border-radius: 999px;
  background: var(--bg);
}

.brand-symbol::before {
  left: 9px;
  top: 7px;
  width: 4px;
  height: 18px;
}

.brand-symbol::after {
  left: 9px;
  top: 7px;
  width: 16px;
  height: 4px;
  box-shadow: 0 7px 0 var(--bg);
}

.brand-word {
  font-size: 23px;
  font-weight: 950;
  letter-spacing: -0.045em;
}

.testnet-pill,
.live-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-family: var(--mono);
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.testnet-pill {
  min-height: 22px;
  padding: 0 8px;
  color: #75f6ff;
  background: rgba(42, 205, 230, 0.12);
  border: 1px solid rgba(53, 221, 255, 0.44);
  font-size: 10px;
}

.nav-actions {
  grid-column: 3;
  justify-content: flex-end;
  gap: 10px;
}

.nav-button,
.launch-cta,
.docs-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.nav-button {
  min-height: 40px;
  padding: 0 17px;
  font-size: 14px;
}

.nav-button.secondary,
.docs-cta {
  color: #dce9ff;
  background: rgba(24, 41, 66, 0.62);
  border: 1px solid var(--line);
}

.nav-button.primary,
.launch-cta {
  color: #07111d;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border: 1px solid rgba(170, 218, 255, 0.72);
}

.hero-section {
  position: relative;
  display: grid;
  justify-items: center;
  min-height: 100svh;
  padding: 118px 24px 126px;
  text-align: center;
}

.hero-section::before {
  position: absolute;
  inset: 74px 0 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, transparent, rgba(72, 121, 195, 0.1), transparent),
    radial-gradient(ellipse at center bottom, rgba(90, 196, 220, 0.26), transparent 52%);
}

.live-pill {
  gap: 9px;
  width: fit-content;
  min-height: 32px;
  margin-top: 10px;
  padding: 0 14px;
  color: var(--warm);
  background: rgba(24, 81, 95, 0.4);
  border: 1px solid rgba(53, 221, 255, 0.36);
  font-size: 11px;
}

.live-pill span {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 999px;
  box-shadow: 0 0 14px rgba(114, 246, 166, 0.82);
}

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

h1 {
  max-width: 980px;
  margin: 30px 0 22px;
  font-size: clamp(56px, 9vw, 116px);
  line-height: 0.95;
  font-weight: 950;
  letter-spacing: -0.07em;
}

h1 span {
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--warm));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
}

.hero-actions {
  justify-content: center;
  gap: 12px;
  margin-bottom: 64px;
}

.launch-cta,
.docs-cta {
  min-width: 190px;
  min-height: 54px;
  padding: 0 24px;
  font-size: 16px;
}

.hero-stats {
  width: min(760px, 100%);
  justify-content: center;
  gap: 0;
  padding-top: 30px;
  border-top: 1px solid rgba(184, 218, 255, 0.22);
}

.hero-stats article {
  flex: 1;
  display: grid;
  gap: 7px;
  min-width: 0;
}

.hero-stats strong {
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1;
}

.hero-stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.marquee-band {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 17, 29, 0.46);
}

.marquee-track {
  width: max-content;
  min-height: 118px;
  gap: 70px;
  animation: marquee 28s linear infinite;
}

.marquee-track span {
  position: relative;
  color: #dfe9f8;
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 920;
  letter-spacing: -0.04em;
  opacity: 0.9;
}

.marquee-track span::after {
  position: absolute;
  top: 50%;
  right: -42px;
  width: 4px;
  height: 4px;
  background: rgba(184, 218, 255, 0.42);
  border-radius: 999px;
  content: "";
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

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

.product-section,
.feature-grid {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.product-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 28px;
  padding: 86px 0 28px;
}

.section-copy {
  align-self: start;
  position: sticky;
  top: 96px;
}

.eyebrow {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.section-copy p:not(.eyebrow),
.workflow-panel p,
.feature-grid p {
  color: var(--muted);
  line-height: 1.6;
}

.workflow-panel {
  display: grid;
  gap: 14px;
}

.workflow-panel article,
.feature-grid article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.workflow-panel article {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 6px 18px;
  padding: 18px;
}

.workflow-panel span {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: #07111d;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-radius: 14px;
  font-family: var(--mono);
  font-weight: 950;
}

.workflow-panel strong,
.feature-grid h3 {
  font-size: 20px;
}

.workflow-panel p {
  margin-bottom: 0;
}

code {
  color: #c7f8ff;
  font-family: var(--mono);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 24px 0 90px;
}

.feature-grid article {
  min-height: 230px;
  padding: 22px;
}

.feature-grid h3 {
  margin-bottom: 12px;
}

@media (max-width: 980px) {
  .home-nav {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 18px;
  }

  .nav-actions {
    justify-content: flex-start;
    overflow: auto;
  }

  .hero-section {
    padding-top: 188px;
  }

  .product-section,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .section-copy {
    position: static;
  }
}

@media (max-width: 640px) {
  .home-brand {
    flex-wrap: wrap;
  }

  .hero-section {
    align-content: start;
    padding: 180px 18px 84px;
  }

  h1 {
    font-size: 54px;
  }

  .hero-actions,
  .hero-stats {
    display: grid;
    width: 100%;
  }

  .launch-cta,
  .docs-cta {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 24px;
  }

  .marquee-track {
    min-height: 86px;
    gap: 42px;
  }

  .product-section,
  .feature-grid {
    width: calc(100% - 32px);
  }
}
