:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --panel: #ffffff;
  --panel-soft: #eef4f8;
  --text: #111827;
  --muted: #5b6678;
  --line: #d8e0e8;
  --accent: #0f766e;
  --accent-dark: #0b5d56;
  --accent-soft: #dff4ef;
  --code: #101828;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}

.brand {
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

nav a {
  text-decoration: none;
}

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

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 24px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 36px;
  align-items: center;
  padding: 20px 0 42px;
}

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

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

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

h1 {
  max-width: 780px;
  margin: 0;
  font-size: 54px;
  line-height: 1.04;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
}

.primary {
  background: var(--accent);
  color: #fff;
}

.primary:hover {
  background: var(--accent-dark);
}

.secondary {
  border: 1px solid var(--line);
  background: var(--panel);
}

.terminal,
pre {
  background: var(--code);
  color: #eef4ff;
  border-radius: 8px;
}

.terminal {
  min-width: 0;
  border: 1px solid #223044;
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.14);
}

.dots {
  display: flex;
  gap: 7px;
  padding: 16px 18px 0;
}

.dots span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #94a3b8;
}

.dots span:first-child {
  background: #fb7185;
}

.dots span:nth-child(2) {
  background: #fbbf24;
}

.dots span:nth-child(3) {
  background: #34d399;
}

pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  font: 14px/1.7 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
}

.terminal pre {
  padding-top: 14px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.metrics div,
.section,
article {
  background: var(--panel);
}

.metrics div {
  padding: 20px;
}

.metrics strong,
.metrics span {
  display: block;
}

.metrics strong {
  font-size: 18px;
}

.metrics span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.section {
  margin-top: 28px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.section-head {
  max-width: 740px;
}

h2 {
  margin: 0 0 16px;
  font-size: 30px;
  line-height: 1.18;
}

h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.grid,
.code-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.code-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

article p,
.section p,
.checklist {
  color: var(--muted);
  line-height: 1.65;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.checklist {
  margin: 0;
  padding-left: 20px;
}

.checklist li {
  margin: 8px 0;
}

.apply {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-soft) 100%);
}

footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 860px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 16px 20px;
  }

  nav {
    flex-wrap: wrap;
  }

  main {
    padding-top: 36px;
  }

  .hero,
  .split,
  .code-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 40px;
  }

  .metrics,
  .grid {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
  }
}
