:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --panel: #ffffff;
  --panel-soft: #eef4ff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #d8e1ef;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #10b981;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 18% 8%, rgba(37, 99, 235, 0.12), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(16, 185, 129, 0.10), transparent 24%),
    var(--bg);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(216, 225, 239, 0.78);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(14px);
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  font-weight: 850;
}
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); font-size: 12px; }

.site-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a {
  border-radius: 999px;
  padding: 8px 12px;
  color: #334155;
  font-size: 14px;
}
.site-nav a:hover { background: #eaf1ff; color: var(--primary); }

.section-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(30px, 6vw, 76px);
  align-items: center;
  min-height: calc(100vh - 73px);
  padding: clamp(50px, 8vw, 96px) 0;
}

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

.hero h1, .section-heading h2, .split-section h2, .cta-section h2 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}
.hero h1 { max-width: 780px; font-size: clamp(42px, 7vw, 82px); }
.hero-lede {
  max-width: 720px;
  margin: 24px 0 0;
  color: #334155;
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.75;
}

.hero-actions, .cta-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
  padding: 0 18px;
  color: #0f172a;
  font-weight: 750;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.button:hover { border-color: #b9c7dc; transform: translateY(-1px); }
.button.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.button.primary:hover { background: var(--primary-dark); }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.hero-stats span {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  padding: 8px 12px;
  color: var(--muted);
  font-size: 14px;
}
.hero-stats strong { color: var(--text); }

.hero-visual {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff, #edf4ff);
  box-shadow: 0 28px 80px rgba(37, 99, 235, 0.18);
}
.hero-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 18%;
}

.section-block, .split-section, .cta-section { padding: 82px 0; }
.section-heading { max-width: 760px; margin-bottom: 26px; }
.section-heading h2, .split-section h2, .cta-section h2 { font-size: clamp(30px, 4vw, 48px); }
.section-heading p + h2, .split-section p + h2 { margin-top: 8px; }

.feature-grid, .ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.feature-grid article, .large-card, .repo-list a, .cta-section {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 42px rgba(15, 23, 42, 0.05);
}
.feature-grid article, .large-card { padding: 22px; }
.feature-grid h3, .large-card h3 { margin: 0 0 10px; font-size: 20px; }
.feature-grid p, .large-card p, .split-section p, .cta-section p {
  margin: 0;
  color: #475569;
  line-height: 1.72;
}
.large-card:hover, .repo-list a:hover { border-color: #aac0e8; transform: translateY(-2px); }

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(24px, 5vw, 58px);
  align-items: start;
}
.repo-list { display: grid; gap: 12px; }
.repo-list a { display: grid; gap: 6px; padding: 18px; }
.repo-list strong { color: var(--primary); font-size: 18px; }
.repo-list span { color: #475569; line-height: 1.65; }

.cta-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 72px;
  padding: 30px;
}
.cta-section > div:first-child { max-width: 760px; }
.cta-section .cta-actions { margin-top: 0; }

.site-footer {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding: 24px;
  color: var(--muted);
  font-size: 14px;
}
.site-footer a { color: var(--primary); font-weight: 700; }

@media (max-width: 900px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .site-nav { justify-content: flex-start; }
  .hero, .split-section { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-visual { max-width: 440px; }
  .feature-grid, .ecosystem-grid { grid-template-columns: 1fr; }
  .cta-section { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  .site-nav a { padding: 7px 9px; }
  .hero-actions .button, .cta-actions .button { width: 100%; }
}
