:root {
  --bg: #f8fafc;
  --ink: #0f172a;
  --muted: #64748b;
  --accent: #2563eb;
  --accent-soft: #dbeafe;
  --card: #ffffff;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
}

h1, h2, h3 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  margin: 0 0 12px;
  font-weight: 600;
}
p {
  margin: 0 0 16px;
  color: var(--muted);
}
a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 50%, #eff6ff 100%);
}

.orb {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.55;
  animation: float 12s ease-in-out infinite;
}

.orb-a {
  top: -60px;
  left: -40px;
  background: #d5e4d9;
}

.orb-b {
  top: 160px;
  right: -80px;
  background: #e6dac9;
  animation-delay: 2s;
}

.orb-c {
  bottom: -120px;
  left: 25%;
  background: #d9e6ef;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(20px); }
}

.site-header {
  padding: 24px 0;
}

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

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent);
  color: #fdfcf9;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.brand-title {
  font-weight: 700;
  font-size: 1.1rem;
}

.brand-sub {
  color: var(--muted);
  font-size: 0.95rem;
}

.nav {
  display: flex;
  gap: 18px;
  align-items: center;
  color: var(--muted);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 40px;
  padding: 60px 0 40px;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.1;
}

.lead {
  font-size: 1.1rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
}

.cta {
  display: flex;
  gap: 12px;
  margin: 24px 0 18px;
}

.btn {
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  font-weight: 600;
}

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

.ghost {
  background: transparent;
  color: var(--accent);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.badges img {
  height: 22px;
  vertical-align: middle;
}

.badge-link {
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid #b8c9be;
  font-size: 0.8rem;
  color: var(--accent);
}

.hero-card {
  background: var(--card);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid #ece4d7;
}

.hero-card ul {
  padding-left: 18px;
  color: var(--muted);
}

.card-title {
  font-weight: 600;
  margin-bottom: 12px;
}

.card-footer {
  display: flex;
  gap: 14px;
  margin-top: 18px;
  color: var(--accent);
  font-weight: 600;
}

.section {
  padding: 40px 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.tile {
  background: var(--card);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid #efe6da;
  box-shadow: var(--shadow);
}

.code-panel {
  background: #171615;
  color: #f8f2e8;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid #2c2a28;
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.table-wrapper {
  overflow-x: auto;
  margin-top: 16px;
}

.field-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.field-table th,
.field-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #efe6da;
  color: var(--muted);
}

.field-table th {
  background: var(--accent-soft);
  color: var(--ink);
  font-weight: 600;
}

.field-table td:first-child {
  white-space: nowrap;
}

.field-table td code {
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent);
  font-size: 0.9rem;
}

.field-table a {
  color: var(--accent);
  text-decoration: underline;
}

.muted-list {
  color: var(--muted);
  line-height: 1.9;
  padding-left: 20px;
}

.code-panel--spaced {
  margin-top: 16px;
}

.section-subheading {
  margin-top: 32px;
}

code {
  font-family: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.95rem;
}

.setup-steps {
  display: grid;
  gap: 24px;
  margin: 12px 0;
}

.step {
  background: var(--card);
  border-radius: 12px;
  padding: 24px;
  border-left: 4px solid var(--accent);
}

.step h3 {
  margin-top: 0;
  color: var(--accent);
  font-size: 1.2rem;
}

.step ol {
  margin: 12px 0;
  padding-left: 24px;
  color: var(--muted);
  line-height: 1.8;
}

.step li {
  margin-bottom: 10px;
}

.step ul {
  margin: 8px 0 8px 24px;
  color: var(--muted);
  line-height: 1.6;
}

.step code {
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent);
  font-size: 0.9rem;
}

.step a {
  color: var(--accent);
  text-decoration: underline;
}

.contributors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.contributor {
  background: var(--card);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
}

.contributor:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
}

.contributor img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 12px;
  border: 3px solid var(--accent-soft);
}

.contributor-name {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.contributor-contributions {
  font-size: 0.85rem;
  color: var(--muted);
}

.loading {
  text-align: center;
  color: var(--muted);
  padding: 40px;
}

.site-footer {
  padding: 30px 0 60px;
  border-top: 1px solid #e9dfd2;
}

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

.footer-links {
  display: flex;
  gap: 16px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .site-header .container {
    flex-direction: column;
    gap: 16px;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }
}