:root {
  --paper: #f7f4ec;
  --ink: #17201c;
  --muted: #59666e;
  --deep: #0d211c;
  --deep-2: #14342d;
  --teal: #0e7c7b;
  --amber: #e39a2e;
  --blue: #2f5d8c;
  --coral: #d85c4a;
  --mint: #dcefe7;
  --line: #d4cabb;
  --white: #ffffff;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    "Noto Sans SC",
    "Microsoft YaHei",
    "PingFang SC",
    system-ui,
    sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

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

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(22px, 5vw, 72px);
  background: rgba(13, 33, 28, 0.86);
  color: var(--white);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 7px;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  color: #d8e8e1;
  font-size: 15px;
  font-weight: 700;
}

nav a:hover {
  color: var(--amber);
}

.hero {
  position: relative;
  min-height: 94vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 150px clamp(24px, 6vw, 104px) 112px;
  background: var(--deep);
  color: var(--white);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 14px;
  background: var(--amber);
}

.hero-mark {
  position: absolute;
  right: clamp(-120px, -4vw, -44px);
  bottom: clamp(36px, 9vw, 128px);
  width: min(54vw, 720px);
  max-height: 78vh;
  object-fit: contain;
  opacity: 0.24;
  filter: saturate(0.9);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--amber);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 24px;
  font-size: 88px;
  line-height: 0.95;
  font-weight: 900;
}

.hero-subtitle {
  max-width: 760px;
  margin-bottom: 34px;
  color: #d7e7df;
  font-size: 26px;
}

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

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 6px;
  font-weight: 900;
}

.primary-action {
  background: var(--amber);
  color: #1f1608;
}

.secondary-action {
  border: 2px solid #89aaa0;
  color: #e7f3ee;
}

.signal-strip {
  position: absolute;
  z-index: 1;
  left: clamp(24px, 6vw, 104px);
  right: clamp(24px, 6vw, 104px);
  bottom: 48px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #315149;
}

.signal-strip li {
  min-height: 72px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  background: var(--deep-2);
  color: #cce1db;
  font-size: 18px;
  font-weight: 900;
}

section {
  padding: 96px clamp(24px, 6vw, 104px);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}

.section-grid > *,
.feature-list article,
.flow div,
.deploy-panel {
  min-width: 0;
}

.section-heading {
  max-width: 960px;
  margin-bottom: 54px;
}

h2 {
  margin-bottom: 18px;
  font-size: 50px;
  line-height: 1.12;
  font-weight: 900;
}

h3 {
  margin-bottom: 12px;
  font-size: 25px;
  line-height: 1.25;
}

.intro {
  border-bottom: 1px solid var(--line);
}

.intro-copy {
  color: var(--muted);
  font-size: 22px;
}

.intro-copy p + p {
  margin-top: 24px;
}

.feature-section {
  background: #fbfaf6;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.feature-list article {
  min-height: 310px;
  padding: 30px;
  background: #fbfaf6;
}

.feature-list span {
  display: block;
  margin-bottom: 64px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 900;
}

.feature-list p,
.implementation-notes,
.muted {
  color: var(--muted);
}

.architecture {
  background: var(--paper);
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.flow div {
  position: relative;
  min-height: 210px;
  padding: 28px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.flow div:nth-child(1) {
  border-color: var(--teal);
  background: var(--mint);
}

.flow div:nth-child(2) {
  border-color: var(--amber);
  background: #f4e6ca;
}

.flow div:nth-child(3) {
  border-color: var(--blue);
  background: #e8eff7;
}

.flow div:nth-child(4) {
  border-color: var(--coral);
  background: #fae3df;
}

.flow b {
  display: block;
  margin-bottom: 18px;
  font-size: 24px;
}

.flow p {
  margin-bottom: 0;
  color: var(--muted);
}

.implementation-notes {
  margin-top: 36px;
  max-width: 1120px;
  columns: 2;
  column-gap: 54px;
  font-size: 20px;
}

.demo {
  background: var(--deep);
  color: var(--white);
}

.demo .muted {
  max-width: 520px;
  color: #bfd6cf;
  font-size: 20px;
}

.video-frame {
  overflow: hidden;
  border: 2px solid #41645b;
  border-radius: 8px;
  background: #071411;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.28);
}

video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.api-section {
  background: #fbfaf6;
}

.endpoint-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

code {
  font-family: "Cascadia Mono", "Consolas", monospace;
}

.endpoint-grid code {
  display: block;
  min-height: 82px;
  padding: 22px;
  border-left: 5px solid var(--teal);
  background: var(--paper);
  color: #1f302b;
  font-size: 15px;
  font-weight: 800;
}

.deploy {
  border-top: 1px solid var(--line);
}

.deploy-panel {
  padding: 32px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.deploy-panel p {
  margin-bottom: 10px;
  color: var(--teal);
  font-weight: 900;
}

pre {
  overflow-x: auto;
  margin: 0 0 26px;
  padding: 20px;
  border-radius: 8px;
  background: var(--deep);
  color: #e8f3ee;
  line-height: 1.5;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 30px clamp(24px, 6vw, 104px);
  background: var(--deep);
  color: #bfd6cf;
  font-size: 15px;
}

@media (max-width: 980px) {
  .site-header {
    position: absolute;
  }

  nav {
    display: none;
  }

  .hero {
    min-height: 880px;
    padding-top: 118px;
    align-items: flex-start;
  }

  .hero-mark {
    right: -110px;
    bottom: 110px;
    width: 640px;
  }

  h1 {
    font-size: 66px;
  }

  h2 {
    font-size: 38px;
  }

  .hero-subtitle,
  .intro-copy {
    font-size: 21px;
  }

  .signal-strip,
  .feature-list,
  .flow,
  .endpoint-grid,
  .section-grid {
    grid-template-columns: 1fr;
  }

  .signal-strip {
    bottom: 28px;
  }

  .signal-strip li {
    min-height: 54px;
  }

  .implementation-notes {
    columns: 1;
  }
}

@media (max-width: 560px) {
  .brand span {
    font-size: 14px;
  }

  .hero {
    min-height: 830px;
  }

  .hero-mark {
    width: 460px;
    opacity: 0.18;
  }

  h1 {
    font-size: 52px;
  }

  .hero-subtitle {
    font-size: 19px;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
    justify-content: center;
  }

  section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .feature-list article {
    min-height: 230px;
  }

  .site-footer {
    flex-direction: column;
  }
}
