:root {
  color-scheme: dark;
  --bg: #06100f;
  --panel: #0b1f1d;
  --panel-2: #102a26;
  --ink: #f5f7f1;
  --muted: #9bb0a8;
  --line: rgba(169, 198, 185, .2);
  --line-strong: rgba(214, 177, 94, .42);
  --cyan: #25d8b5;
  --gold: #d6b15e;
  --red: #d76863;
  --shadow: 0 28px 72px rgba(0, 0, 0, .28);
  --mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 15% 6%, rgba(37, 216, 181, .14), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(214, 177, 94, .12), transparent 32%),
    linear-gradient(180deg, #030807 0%, var(--bg) 46%, #04120f 100%);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.22));
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(6, 16, 15, .88);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 230px;
}

.brand strong {
  font-size: 17px;
  line-height: 1.15;
  white-space: nowrap;
}

.brand span,
.nav a,
.eyebrow,
.mission-card span,
.track span,
.footer,
time {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
}

.nav a {
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 8px 10px;
}

.nav a:hover,
.nav a:focus-visible,
.hero-actions a:hover,
.hero-actions a:focus-visible {
  border-color: rgba(37, 216, 181, .5);
  color: var(--cyan);
  outline: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .72fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: center;
  padding: clamp(34px, 6vw, 72px) clamp(18px, 5vw, 72px) 28px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--cyan);
  font-weight: 800;
}

h1 {
  max-width: 930px;
  font-size: clamp(36px, 6vw, 78px);
  font-weight: 900;
  line-height: 1.04;
}

h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.12;
}

h3 {
  font-size: 22px;
  line-height: 1.25;
}

.lead {
  max-width: 820px;
  margin-top: 20px;
  color: #c6d8d1;
  font-size: clamp(17px, 1.9vw, 22px);
}

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

.hero-actions a {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  padding: 10px 14px;
}

.mission-card,
.timeline article,
.track,
.demo-list article,
.after-grid article,
.compliance {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15,41,38,.86), rgba(8,23,22,.78));
  box-shadow: var(--shadow);
}

.mission-card {
  padding: 24px;
  border-color: var(--line-strong);
}

.mission-card strong {
  display: block;
  margin-top: 10px;
  color: var(--gold);
  font-size: 30px;
  line-height: 1.2;
}

.mission-card p {
  margin-top: 14px;
  color: #c4d7cf;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.metrics div {
  min-height: 82px;
  border: 1px solid var(--line);
  padding: 12px;
}

.metrics b {
  display: block;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 32px;
  line-height: 1;
}

.metrics small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.section {
  padding: 42px clamp(18px, 5vw, 72px);
}

.section.compact {
  padding-top: 18px;
  padding-bottom: 18px;
}

.release-strip {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.1fr;
  gap: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(214, 177, 94, .08);
  box-shadow: var(--shadow);
  padding: 14px;
}

.release-strip div {
  min-height: 86px;
  border: 1px solid rgba(214, 177, 94, .18);
  background: rgba(6, 16, 15, .54);
  padding: 14px;
}

.release-strip span,
.resource-grid span {
  display: block;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.release-strip b {
  display: block;
  margin-top: 8px;
  color: #f6f0dc;
  font-size: 17px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.section-header {
  max-width: 880px;
  margin-bottom: 22px;
}

.section-header p:not(.eyebrow) {
  margin-top: 12px;
  color: var(--muted);
}

.timeline,
.track-grid,
.after-grid,
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.timeline article,
.track,
.after-grid article,
.resource-grid a {
  min-height: 210px;
  padding: 20px;
}

.resource-grid a {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(37, 216, 181, .08), transparent 40%),
    rgba(12, 31, 29, .82);
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.resource-grid a:hover,
.resource-grid a:focus-visible {
  border-color: rgba(214, 177, 94, .68);
  background:
    linear-gradient(135deg, rgba(214, 177, 94, .1), transparent 46%),
    rgba(15, 41, 38, .92);
  outline: none;
  transform: translateY(-3px);
}

.resource-grid strong {
  margin-top: 14px;
  color: #f6f0dc;
  font-size: 22px;
  line-height: 1.25;
}

.resource-grid p {
  margin-top: 12px;
  color: #bfd3cc;
}

.timeline h3,
.track h3,
.after-grid h3 {
  margin-top: 12px;
}

.timeline p,
.track p,
.after-grid p,
.track li,
.compliance p {
  color: #c2d4cd;
}

.track {
  position: relative;
  overflow: hidden;
}

.track::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 86px;
  height: 86px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .16;
}

.track.company { color: var(--cyan); }
.track.retail { color: var(--gold); }
.track.wealth { color: var(--red); }

.track p,
.track ul {
  margin-top: 12px;
}

.track ul {
  padding-left: 18px;
}

.demo-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.demo-list article {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  min-height: 92px;
  align-items: center;
  padding: 16px;
}

.demo-list b {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 24px;
}

.demo-list span {
  color: #d6e5df;
  font-weight: 800;
}

.compliance {
  border-color: rgba(215, 104, 99, .44);
  padding: 24px;
}

.compliance .eyebrow,
.compliance h2 {
  color: var(--red);
}

.compliance p + p {
  margin-top: 12px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px) 42px;
  border-top: 1px solid var(--line);
}

.footer a {
  color: var(--gold);
}

@media (max-width: 980px) {
  .hero,
  .timeline,
  .track-grid,
  .after-grid,
  .demo-list,
  .release-strip,
  .resource-grid {
    grid-template-columns: 1fr;
  }

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

  .topbar {
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
  }

  .brand {
    flex: 0 0 150px;
    gap: 1px;
    min-width: 0;
  }

  .brand strong {
    font-size: 14px;
    line-height: 1.2;
  }

  .brand span {
    font-size: 10px;
    line-height: 1.2;
    letter-spacing: .1em;
  }

  .nav {
    flex: 1;
    min-width: 0;
    width: auto;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 560px) {
  .brand {
    flex-basis: 136px;
    min-width: 0;
  }

  .brand span {
    display: none;
  }

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

  .timeline article,
  .track,
  .after-grid article {
    min-height: auto;
  }

  .demo-list article {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .nav {
    gap: 6px;
  }

  .nav a {
    flex: 0 0 auto;
    font-size: 13px;
    line-height: 1.15;
    padding: 5px 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .topbar {
    transition: none;
  }
}
