:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --paper: #ffffff;
  --ink: #14213d;
  --muted: #5e6a7d;
  --line: #d9e0ea;
  --teal: #0f766e;
  --teal-dark: #0b4f4a;
  --amber: #b45309;
  --blue: #2563eb;
  --shadow: 0 16px 48px rgba(20, 33, 61, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

a:hover {
  color: var(--teal);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  font-weight: 800;
  color: var(--ink);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.nav a {
  min-width: 48px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: #edf7f5;
  color: var(--teal-dark);
}

.hero {
  position: relative;
  min-height: 72vh;
  display: grid;
  align-items: center;
  padding: 72px clamp(20px, 5vw, 64px);
  overflow: hidden;
  background: #0f172a;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 17, 28, 0.92) 0%, rgba(7, 17, 28, 0.78) 44%, rgba(7, 17, 28, 0.30) 100%),
    url("/assets/hero.png") center / cover no-repeat;
}

.hero__content {
  position: relative;
  max-width: 780px;
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #5eead4;
}

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

h1 {
  margin-bottom: 20px;
  max-width: 900px;
  font-size: clamp(36px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.3;
}

.hero__lead {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 2.4vw, 22px);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
}

.button--primary {
  background: #5eead4;
  color: #07312d;
}

.button--primary:hover {
  background: #99f6e4;
  color: #07312d;
}

.button--ghost {
  border-color: rgba(255, 255, 255, 0.42);
  color: #ffffff;
}

.button--ghost:hover {
  border-color: #ffffff;
  color: #ffffff;
}

.button--secondary {
  background: var(--ink);
  color: #ffffff;
}

.button--secondary:hover {
  background: var(--teal-dark);
  color: #ffffff;
}

.section,
.page,
.article {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 72px 0;
}

.section--compact {
  padding-top: 26px;
}

.section--intro {
  padding-top: 56px;
}

.section__head {
  max-width: 760px;
  margin-bottom: 30px;
}

.section__head--row {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

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

.value-item,
.card,
.project,
.feature-panel,
.list-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.value-item,
.card {
  padding: 24px;
}

.value-item p,
.card p,
.project p,
.feature-panel p,
.list-item p,
.prose-block p,
.page-hero p,
.article p,
.article li {
  color: var(--muted);
}

.value-item__mark {
  display: block;
  width: 36px;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--teal);
}

.value-item__mark--amber {
  background: var(--amber);
}

.value-item__mark--blue {
  background: var(--blue);
}

.card__meta {
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.text-link {
  color: var(--teal-dark);
  font-weight: 800;
}

.section--split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
}

.feature-panel {
  padding: 28px;
}

.page {
  padding-bottom: 72px;
}

.page-hero {
  padding: 72px 0 36px;
}

.page-hero p {
  max-width: 720px;
  font-size: 19px;
}

.page-hero--image {
  min-height: 320px;
  display: grid;
  align-content: end;
  padding: 52px;
  margin-top: 32px;
  color: #ffffff;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(7, 17, 28, 0.88), rgba(7, 17, 28, 0.28)),
    url("/assets/hero.png") center / cover no-repeat;
}

.page-hero--image p {
  color: rgba(255, 255, 255, 0.84);
}

.list {
  display: grid;
  gap: 16px;
}

.list-item,
.project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 26px;
}

.list-item h2,
.project h2 {
  font-size: 24px;
}

.project__facts {
  display: grid;
  min-width: 260px;
  gap: 12px;
  margin: 0;
}

.project__facts div {
  padding: 12px;
  border-left: 4px solid var(--teal);
  background: #f3faf8;
}

.project__facts dt {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
}

.project__facts dd {
  margin: 0;
  color: var(--muted);
}

.article {
  max-width: 820px;
  padding: 72px 0;
}

.article h1 {
  font-size: clamp(34px, 5vw, 56px);
}

.article h2 {
  margin-top: 36px;
  font-size: 26px;
}

.article__lead {
  font-size: 20px;
}

.article code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #e8edf5;
  color: var(--ink);
}

.prose-block {
  max-width: 820px;
}

.prose-block h2 {
  margin-top: 28px;
  font-size: 26px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #ffffff;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 860px) {
  .site-header,
  .section__head--row,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .value-grid,
  .card-grid,
  .section--split,
  .list-item,
  .project {
    grid-template-columns: 1fr;
  }

  .project__facts {
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 14px 16px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .nav a {
    flex: 1 1 auto;
  }

  .hero {
    min-height: 68vh;
    padding: 56px 20px;
  }

  .section,
  .page,
  .article {
    width: min(100% - 32px, 1120px);
  }

  .page-hero--image {
    padding: 28px;
  }
}
