:root {
  color-scheme: dark;
  --bg: #07080d;
  --bg-soft: #0d1018;
  --surface: #11141d;
  --surface-2: #171b27;
  --line: rgba(244, 242, 237, 0.16);
  --text: #f4f2ed;
  --muted: #a7a8af;
  --gold: #f0a928;
  --gold-soft: rgba(240, 169, 40, 0.16);
  --blue: #4f67ff;
  --blue-soft: rgba(79, 103, 255, 0.16);
  --radius: 8px;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    "Manrope",
    "Noto Sans SC",
    "Microsoft YaHei",
    "PingFang SC",
    system-ui,
    sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 5vw;
  background: rgba(7, 8, 13, 0.72);
  border-bottom: 1px solid rgba(244, 242, 237, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-mark {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--blue));
  box-shadow: 0 0 30px rgba(79, 103, 255, 0.55);
}

nav {
  display: flex;
  gap: clamp(14px, 3vw, 32px);
  color: var(--muted);
  font-size: 14px;
}

nav a {
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

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

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid rgba(244, 242, 237, 0.08);
}

.hero-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 8, 13, 0.88), rgba(7, 8, 13, 0.44) 52%, rgba(7, 8, 13, 0.78)),
    linear-gradient(0deg, #07080d 0%, rgba(7, 8, 13, 0.15) 42%, rgba(7, 8, 13, 0.18) 100%);
}

.hero-content {
  position: relative;
  width: min(940px, 90vw);
  padding: 128px 0 76px 5vw;
}

.kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 720px;
  color: rgba(244, 242, 237, 0.82);
  font-size: clamp(17px, 2.2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 800;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

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

.button.primary {
  color: #07080d;
  background: var(--gold);
  border-color: var(--gold);
}

.button.ghost {
  background: rgba(244, 242, 237, 0.08);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(1180px, 90vw);
  margin: -34px auto 0;
  position: relative;
  z-index: 2;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(17, 20, 29, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.metrics article {
  min-height: 120px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.metrics article:last-child {
  border-right: 0;
}

.metrics strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(28px, 3.8vw, 42px);
  line-height: 1;
}

.metrics span {
  color: var(--muted);
  font-size: 14px;
}

.section {
  width: min(1180px, 90vw);
  margin: 0 auto;
  padding: 92px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.68fr) minmax(260px, 1fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading.compact {
  display: block;
  max-width: 720px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.04;
}

.section-heading p:last-child {
  color: var(--muted);
  margin-bottom: 0;
}

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

.demo-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.demo-card.featured {
  grid-row: span 2;
}

.video-shell {
  background: #05060a;
  aspect-ratio: 9 / 16;
}

.demo-card:not(.featured) .video-shell {
  aspect-ratio: 16 / 10;
}

.video-shell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 22px;
}

.label {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 9px;
  border: 1px solid rgba(240, 169, 40, 0.34);
  border-radius: 999px;
  color: var(--gold);
  background: var(--gold-soft);
  font-size: 12px;
  font-weight: 800;
}

.card-body h3,
.evidence h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.card-body p,
.pipeline p,
.matrix-grid p,
.evidence-grid p {
  color: var(--muted);
  margin-bottom: 0;
}

.split {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 52px;
  align-items: start;
}

.pipeline {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pipeline li {
  display: grid;
  grid-template-columns: 52px 170px 1fr;
  gap: 18px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(244, 242, 237, 0.04), rgba(79, 103, 255, 0.05));
}

.pipeline span {
  color: var(--blue);
  font-weight: 900;
}

.pipeline strong {
  color: var(--text);
}

.screen-section {
  width: 100%;
  padding-left: 5vw;
  padding-right: 5vw;
  background: var(--bg-soft);
  border-block: 1px solid rgba(244, 242, 237, 0.08);
}

.screen-section .section-heading,
.screen-section .screenshot {
  width: min(1180px, 90vw);
  margin-left: auto;
  margin-right: auto;
}

.screenshot {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.screenshot img {
  width: 100%;
}

.matrix-grid,
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.matrix-grid article,
.evidence-grid article {
  min-height: 168px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.matrix-grid span {
  display: block;
  color: var(--gold);
  font-weight: 900;
}

.matrix-grid strong {
  display: block;
  margin: 12px 0 8px;
  font-size: 36px;
  line-height: 1;
}

.evidence {
  padding-top: 36px;
}

.evidence-grid article {
  background:
    linear-gradient(135deg, rgba(79, 103, 255, 0.12), rgba(240, 169, 40, 0.05)),
    var(--surface);
}

@media (max-width: 900px) {
  .site-header {
    align-items: start;
    flex-direction: column;
    gap: 12px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-content {
    padding-top: 156px;
  }

  .metrics,
  .demo-grid,
  .split,
  .matrix-grid,
  .evidence-grid,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .metrics {
    margin-top: 0;
  }

  .metrics article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metrics article:last-child {
    border-bottom: 0;
  }

  .demo-card.featured {
    grid-row: auto;
  }

  .pipeline li {
    grid-template-columns: 48px 1fr;
  }

  .pipeline p {
    grid-column: 2;
  }
}

@media (max-width: 560px) {
  .hero-content {
    width: 90vw;
    padding-left: 0;
    margin: 0 auto;
  }

  h1 {
    font-size: 44px;
  }

  .section {
    padding: 72px 0;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
