:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-soft: #f0f2f5;
  --ink: #111827;
  --muted: #5b6470;
  --line: #e3e6eb;
  --line-strong: #d3d8e0;
  --hero-top: #08131d;
  --hero-bottom: #121d29;
  --hero-text: rgba(255, 255, 255, 0.84);
  --hero-line: rgba(255, 255, 255, 0.12);
  --accent: #d8a031;
  --shadow: 0 24px 60px rgba(11, 18, 32, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

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

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

p,
ul,
ol {
  margin: 0;
}

.site-shell {
  min-height: 100vh;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(227, 230, 235, 0.9);
  background: rgba(245, 245, 247, 0.82);
  backdrop-filter: blur(20px);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.brand-copy {
  min-width: 0;
}

.brand-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.brand-subtitle {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.2;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.nav-links a {
  font-size: 14px;
  color: var(--muted);
  padding: 6px 0;
  transition: color 180ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.utility-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
}

.lang-switch a {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.lang-switch a.is-current {
  background: var(--ink);
  color: #ffffff;
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--hero-top) 0%, var(--hero-bottom) 100%);
  color: #ffffff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    92deg,
    rgba(8, 19, 29, 0.96) 0%,
    rgba(8, 19, 29, 0.88) 48%,
    rgba(8, 19, 29, 0.56) 100%
  );
}

.hero::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -18%;
  width: min(60vw, 760px);
  aspect-ratio: 1;
  background: url("logo.png") center / contain no-repeat;
  opacity: 0.13;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(80svh, 760px);
  padding: clamp(88px, 12vw, 148px) 0 56px;
}

.hero-copy {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}

.hero h1,
.page-lede h1 {
  margin: 16px 0 0;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.96;
  font-weight: 700;
}

.hero .lead,
.page-lede .lead {
  margin-top: 20px;
  max-width: 700px;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.5;
  color: var(--hero-text);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--hero-line);
  background: rgba(255, 255, 255, 0.06);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.86);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

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

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

.button-secondary {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.hero-note {
  margin-top: 18px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.64);
}

.page-lede {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--hero-top) 0%, var(--hero-bottom) 100%);
  color: #ffffff;
}

.page-lede::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    92deg,
    rgba(8, 19, 29, 0.96) 0%,
    rgba(8, 19, 29, 0.88) 56%,
    rgba(8, 19, 29, 0.58) 100%
  );
}

.page-lede::after {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -28%;
  width: min(54vw, 640px);
  aspect-ratio: 1;
  background: url("logo.png") center / contain no-repeat;
  opacity: 0.1;
}

.page-lede-inner {
  position: relative;
  z-index: 1;
  padding: 96px 0 56px;
}

.section {
  padding: 76px 0;
  border-top: 1px solid var(--line);
}

.section:first-of-type {
  border-top: 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 28px;
}

.section-title {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.04;
  font-weight: 700;
}

.section-copy {
  max-width: 660px;
  font-size: 17px;
  color: var(--muted);
}

.feature-grid,
.link-grid,
.principles-grid {
  display: grid;
  gap: 16px;
}

.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.link-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.principles-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card,
.doc-card,
.principle-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.feature-kicker,
.doc-kicker,
.principle-kicker {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.feature-card h3,
.doc-card h3,
.principle-card h3,
.doc-section h2 {
  margin: 10px 0 0;
  font-size: 24px;
  line-height: 1.12;
  font-weight: 700;
}

.feature-card p,
.doc-card p,
.principle-card p,
.doc-section p,
.doc-section li {
  margin-top: 14px;
  font-size: 16px;
  color: var(--muted);
}

.doc-card:hover {
  border-color: var(--line-strong);
}

.doc-shell {
  padding: 56px 0 80px;
}

.doc-section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.doc-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.doc-section ul {
  margin-top: 14px;
  padding-left: 20px;
}

.doc-section li + li {
  margin-top: 8px;
}

.doc-intro {
  margin-bottom: 18px;
  font-size: 17px;
  color: var(--muted);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-note {
  font-size: 14px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  font-size: 14px;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--ink);
}

@media (max-width: 960px) {
  .nav-row,
  .footer-row,
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .feature-grid,
  .link-grid,
  .principles-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: 70svh;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1120px, calc(100% - 28px));
  }

  .hero-inner {
    padding: 74px 0 42px;
    min-height: 62svh;
  }

  .page-lede-inner {
    padding: 76px 0 42px;
  }

  .hero h1,
  .page-lede h1 {
    font-size: clamp(36px, 13vw, 54px);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .feature-card,
  .doc-card,
  .principle-card {
    padding: 20px;
  }
}
