:root {
  color-scheme: light;
  --ink: #0d1b3e;
  --muted: #60708f;
  --line: #dfe7f3;
  --blue: #2764ff;
  --cyan: #19c6e7;
  --violet: #7047ff;
  --surface: #ffffff;
  --soft: #f5f8ff;
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fbfdff; }
a { color: inherit; text-decoration: none; }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.nav { height: 76px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 750; letter-spacing: -.02em; }
.brand-mark { width: 38px; aspect-ratio: 1; display: grid; place-items: center; color: white; border-radius: 11px; background: linear-gradient(145deg, var(--cyan), var(--blue) 52%, var(--violet)); box-shadow: 0 9px 22px rgba(52, 91, 255, .24); }
.brand-mark.small { width: 32px; border-radius: 9px; }
nav { display: flex; align-items: center; gap: 30px; color: #4f6080; font-size: 14px; }
nav a:hover { color: var(--blue); }
.nav-github { padding: 10px 16px; border: 1px solid var(--line); border-radius: 10px; background: white; }

.hero { min-height: 650px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 72px; padding-block: 78px 96px; }
.eyebrow { margin: 0 0 16px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .14em; }
h1 { margin: 0; font-size: clamp(48px, 6.2vw, 78px); line-height: 1.06; letter-spacing: -.055em; }
h1 span { background: linear-gradient(90deg, var(--blue), var(--violet)); -webkit-background-clip: text; color: transparent; }
.hero-lead { max-width: 640px; margin: 28px 0 0; color: var(--muted); font-size: 18px; line-height: 1.85; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 23px; border-radius: 12px; font-weight: 700; }
.button.primary { color: white; background: var(--blue); box-shadow: 0 12px 28px rgba(39, 100, 255, .22); }
.button.secondary { background: white; border: 1px solid var(--line); }
.hero-facts { display: flex; gap: 36px; padding: 0; margin: 42px 0 0; list-style: none; }
.hero-facts li { display: grid; gap: 5px; }
.hero-facts strong { font-size: 17px; }
.hero-facts span { color: #8693ac; font-size: 12px; }

.hero-panel { position: relative; overflow: hidden; padding: 34px; border: 1px solid rgba(210, 222, 241, .9); border-radius: 28px; background: rgba(255, 255, 255, .86); box-shadow: 0 32px 80px rgba(35, 62, 118, .14); backdrop-filter: blur(18px); }
.panel-glow { position: absolute; inset: -100px -80px auto auto; width: 280px; height: 280px; border-radius: 50%; background: rgba(63, 99, 255, .13); filter: blur(30px); }
.panel-label { position: relative; margin: 0 0 28px; color: #8896b0; font-size: 11px; font-weight: 800; letter-spacing: .17em; }
.layer { position: relative; display: grid; gap: 5px; padding: 20px 22px; border: 1px solid #dce6f6; border-radius: 14px; background: var(--soft); }
.layer span { font-weight: 750; }
.layer small { color: #8290aa; }
.layer.compact { background: white; }
.connector { width: 1px; height: 28px; margin: 0 auto; background: linear-gradient(var(--blue), #b8c9ec); }
.module-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.module-grid span { padding: 16px; border: 1px solid #dce6f6; border-radius: 12px; background: white; color: #415171; font-weight: 700; text-align: center; }

.section { padding-block: 104px; }
.section-heading { max-width: 680px; }
h2 { margin: 0; font-size: clamp(34px, 4.2vw, 52px); line-height: 1.15; letter-spacing: -.04em; }
.section-heading > p:last-child { margin: 20px 0 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 48px; }
.card { position: relative; padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 12px 36px rgba(38, 63, 111, .06); }
.card.featured { border-color: #adc2ff; background: linear-gradient(145deg, #fff, #f4f7ff); }
.tag { position: absolute; top: 24px; right: 24px; padding: 6px 10px; color: var(--blue); border-radius: 999px; background: #eaf0ff; font-size: 11px; font-weight: 800; }
.tag.muted { color: #64748d; background: #f1f4f8; }
.card-language { margin: 0 0 14px; color: var(--blue); font-size: 11px; font-weight: 850; letter-spacing: .14em; }
.card h3 { margin: 0; font-size: 25px; letter-spacing: -.03em; }
.card > p:not(.card-language) { min-height: 55px; color: var(--muted); line-height: 1.75; }
.card ul { padding: 18px 0 18px 18px; color: #50617f; line-height: 1.9; border-top: 1px solid #edf1f7; }
.card a { color: var(--blue); font-weight: 750; }

.docs-section { padding-block: 108px; background: #0d1b3e; color: white; }
.docs-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: start; }
.docs-section .section-heading > p:last-child { color: #9eadca; }
.doc-links { display: grid; gap: 10px; }
.doc-links a { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; padding: 18px 20px; border: 1px solid rgba(255,255,255,.11); border-radius: 12px; background: rgba(255,255,255,.045); transition: .2s ease; }
.doc-links a:hover { transform: translateX(4px); border-color: rgba(94, 140, 255, .65); background: rgba(67, 104, 205, .13); }
.doc-links span, .doc-links small { color: #8495b8; font-size: 12px; }

.preview { padding-bottom: 120px; }
.preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 46px; }
figure { overflow: hidden; margin: 0; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 18px 50px rgba(30, 56, 104, .09); }
figure img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; }
figcaption { padding: 15px 18px; color: #697995; font-size: 13px; font-weight: 700; }

footer { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); color: #7b89a3; font-size: 13px; }
footer a { color: var(--blue); }

@media (max-width: 860px) {
  .shell { width: min(100% - 32px, 680px); }
  nav a:not(.nav-github) { display: none; }
  .hero { grid-template-columns: 1fr; gap: 48px; padding-block: 56px 80px; }
  .cards, .preview-grid, .docs-layout { grid-template-columns: 1fr; }
  .docs-layout { gap: 42px; }
  footer { padding-block: 28px; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .nav { height: 66px; }
  .brand { font-size: 15px; }
  .nav-github { padding: 9px 12px; }
  .hero-facts { gap: 20px; flex-wrap: wrap; }
  .hero-panel { padding: 22px; border-radius: 20px; }
  .section { padding-block: 76px; }
  .cards { grid-template-columns: 1fr; }
  .doc-links a { grid-template-columns: 30px 1fr; }
  .doc-links small { display: none; }
}
