:root {
  color-scheme: light;
  --ink: #151719;
  --muted: #5c6470;
  --line: #d8dde4;
  --paper: #f7f8f6;
  --panel: #ffffff;
  --green: #2f7d68;
  --rust: #a44d32;
  --blue: #315f8f;
  --gold: #b7872f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 clamp(18px, 4vw, 56px);
  background: rgba(247, 248, 246, .84);
  border-bottom: 1px solid rgba(21, 23, 25, .12);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--ink);
  color: white;
  border-radius: 6px;
  font-weight: 780;
}

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

.top-actions {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 28px);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(21, 23, 25, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .64);
  font-size: 13px;
}

.language-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  color: #4b535c;
  font-weight: 680;
}

.language-switch a.active {
  background: #151719;
  color: #fff;
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .7fr);
  align-items: end;
  gap: clamp(24px, 5vw, 64px);
  padding: 128px clamp(22px, 6vw, 80px) 76px;
  color: white;
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(12, 14, 17, .86), rgba(12, 14, 17, .54) 48%, rgba(12, 14, 17, .18)),
    linear-gradient(0deg, rgba(12, 14, 17, .78), rgba(12, 14, 17, 0) 45%);
}

.hero-content,
.hero-code {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #8ef0cf;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(56px, 10vw, 118px);
  line-height: .9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 660px;
  color: rgba(255, 255, 255, .88);
  font-size: clamp(18px, 2.1vw, 25px);
  line-height: 1.55;
}

.hero-claims {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-claims span {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .92);
  font-size: 13px;
  font-weight: 720;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  font-weight: 700;
}

.button.primary {
  background: #f3fff9;
  color: #15201d;
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, .54);
  color: white;
}

.hero-code,
.code-panel,
.terminal {
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(9, 11, 14, .78);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .28);
}

.hero-code,
.code-panel {
  border-radius: 8px;
}

pre {
  margin: 0;
  overflow: auto;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  line-height: 1.7;
}

pre[class*="language-"],
code[class*="language-"] {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  line-height: 1.7;
  text-shadow: none;
}

.hero-code pre,
.code-panel pre,
.terminal pre {
  padding: 24px;
  color: #f3f6f9;
  background: transparent;
}

.section,
.feature-grid,
.runtime-grid,
.visual-band,
.docs,
footer {
  padding-inline: clamp(22px, 6vw, 80px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(320px, 1.1fr);
  gap: clamp(24px, 5vw, 72px);
  padding-top: 76px;
  padding-bottom: 40px;
}

.intro p,
.copy p,
.visual-copy p,
.start p,
.feature-grid p,
.runtime-grid p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.feature-grid,
.runtime-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding-top: 34px;
  padding-bottom: 86px;
}

.manifesto {
  padding: 92px clamp(22px, 8vw, 120px);
  background: #111417;
  color: #f7faf8;
}

.manifesto .eyebrow {
  color: #f0be62;
}

.manifesto h2 {
  max-width: 1120px;
  font-size: clamp(40px, 7vw, 86px);
  line-height: .98;
}

.manifesto p:last-child {
  max-width: 860px;
  color: rgba(247, 250, 248, .74);
  font-size: clamp(18px, 2.3vw, 24px);
  line-height: 1.62;
}

.open-source {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(300px, .72fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: 86px clamp(22px, 6vw, 80px);
  background: #ffffff;
}

.open-source p:not(.eyebrow) {
  max-width: 820px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.repo-card {
  display: grid;
  gap: 14px;
  min-height: 230px;
  padding: 30px;
  border: 1px solid #cfd6de;
  border-radius: 8px;
  background: #101319;
  color: #f7faf8;
  box-shadow: 0 22px 52px rgba(16, 19, 25, .16);
}

.repo-card span {
  color: #8ef0cf;
  font-size: 13px;
  font-weight: 760;
}

.repo-card strong {
  align-self: center;
  overflow-wrap: anywhere;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.05;
}

.repo-card em {
  align-self: end;
  color: rgba(247, 250, 248, .72);
  font-style: normal;
}

.feature-grid article,
.runtime-grid article {
  min-height: 240px;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.feature-index {
  display: block;
  margin-bottom: 40px;
  color: var(--rust);
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding-top: 80px;
  padding-bottom: 84px;
  background: #eef1ef;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.pill-row span {
  padding: 8px 11px;
  border: 1px solid #cdd4d0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .62);
  color: #30363d;
  font-size: 13px;
}

.visual-band {
  display: grid;
  grid-template-columns: minmax(280px, .74fr) minmax(360px, 1.26fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding-top: 92px;
  padding-bottom: 92px;
  background: #151719;
  color: #f8faf8;
}

.visual-copy .eyebrow {
  color: #f0be62;
}

.visual-copy p {
  color: rgba(248, 250, 248, .72);
}

.bigfloat-panel {
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(49, 95, 143, .16), rgba(47, 125, 104, .1)),
    rgba(9, 11, 14, .82);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .34);
}

.bigfloat-panel pre {
  margin: 0;
  padding: clamp(20px, 4vw, 34px);
  background: transparent;
}

.runtime-grid {
  padding-top: 86px;
}

.runtime-grid article {
  min-height: 210px;
}

.start {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, .9fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding-top: 84px;
  padding-bottom: 80px;
  background: #ffffff;
}

.terminal {
  border-color: #262b33;
  border-radius: 8px;
}

.docs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 34px;
  padding-bottom: 80px;
  background: #ffffff;
}

.docs a {
  display: grid;
  gap: 8px;
  min-height: 126px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f8f6;
}

.docs span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 760;
}

.docs strong {
  font-size: 22px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 28px;
  padding-bottom: 28px;
  color: #5b626d;
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .topbar {
    height: auto;
    min-height: 62px;
  }

  .top-actions {
    gap: 12px;
  }

  nav {
    gap: 12px;
    font-size: 13px;
  }

  .hero,
  .intro,
  .split,
  .visual-band,
  .open-source,
  .start {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 94vh;
    padding-top: 112px;
  }

  .hero-code {
    max-width: 100%;
  }

  .feature-grid,
  .runtime-grid,
  .docs {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 12px;
  }

  .top-actions {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    flex-wrap: wrap;
  }

  .hero {
    padding-top: 146px;
  }

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

  .button {
    width: 100%;
  }

  .feature-grid,
  .runtime-grid,
  .docs {
    grid-template-columns: 1fr;
  }

  .feature-grid article,
  .runtime-grid article {
    min-height: auto;
  }

  footer {
    flex-direction: column;
  }
}
