:root {
  --bg: #f4f7fb;
  --bg-strong: #0e1f3f;
  --surface: #ffffff;
  --surface-soft: #e7effc;
  --text: #0f203f;
  --muted: #4f6484;
  --line: #c8d7ef;
  --primary: #2f73b8;
  --primary-strong: #185c98;
  --maxw: 1180px;
  --radius: 18px;
  --shadow: 0 18px 40px rgba(16, 35, 71, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(900px 560px at 85% -10%, #cae0ff 0%, transparent 62%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

.container {
  width: min(calc(100% - 2rem), var(--maxw));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(200, 215, 239, 0.8);
  backdrop-filter: blur(8px);
  background: rgba(248, 251, 255, 0.84);
}

.nav-row {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.04rem;
}

.brand img {
  width: 34px;
  height: 34px;
}

.nav-links {
  margin-left: auto;
  display: inline-flex;
  gap: 1rem;
  color: var(--muted);
  font-weight: 600;
}

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

.hero {
  position: relative;
  overflow: clip;
  padding: 5.4rem 0 4rem;
}

.aurora {
  position: absolute;
  inset: -80px -140px auto auto;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle at 30% 30%, rgba(47, 115, 184, 0.22), rgba(255, 255, 255, 0));
  filter: blur(1px);
  animation: drift 9s ease-in-out infinite alternate;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-size: 0.76rem;
  color: #3d6798;
}

.term-focus {
  color: #0e5ea1;
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.15;
  margin: 0;
}

h1 {
  margin-top: 1rem;
  font-size: clamp(2.05rem, 4.1vw, 3.35rem);
}

.lead {
  margin: 1.15rem 0 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.1rem;
}

.principle-pill {
  display: inline-flex;
  gap: 0.35rem;
  margin: 0.95rem 0 0;
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  border: 1px solid #bcd2f1;
  background: #edf4ff;
  color: #224d7c;
  font-size: 0.95rem;
}

.hero-actions {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #f5faff;
  padding: 0.72rem 1.1rem;
  font-weight: 700;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  background: var(--primary-strong);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: #e9f2ff;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  color: #254a77;
}

.hero-points li {
  padding-left: 1.4rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: linear-gradient(120deg, #6aa6de, #2f73b8);
}

.hero-panel {
  border-radius: var(--radius);
  padding: 1.35rem;
  background: linear-gradient(150deg, #f8fbff 0%, #e7f1ff 100%);
  border: 1px solid #bfd4f2;
  box-shadow: var(--shadow);
  animation: fade-in 0.9s ease-out both;
}

.hero-panel img {
  width: 76px;
  height: 76px;
  display: block;
}

.hero-panel h2 {
  margin-top: 0.75rem;
  font-size: 1.35rem;
}

.hero-panel p {
  color: var(--muted);
  margin: 0.55rem 0 1rem;
}

.hero-panel dl {
  margin: 0;
}

.hero-panel dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.48rem 0;
  border-top: 1px solid #cadcf4;
}

.hero-panel dt {
  color: #3a5f8e;
}

.hero-panel dd {
  margin: 0;
  font-weight: 600;
}

.section {
  padding: 4.6rem 0;
}

.section-head {
  max-width: 70ch;
  margin-bottom: 1.6rem;
}

.section-head h2 {
  margin-top: 0.85rem;
  font-size: clamp(1.7rem, 2.8vw, 2.45rem);
}

.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: 0 10px 20px rgba(31, 61, 107, 0.08);
}

.card h3 {
  font-size: 1.2rem;
}

.card p {
  margin: 0.65rem 0 0;
  color: var(--muted);
}

.section-alt {
  background: linear-gradient(180deg, #f0f6ff 0%, #e9f1ff 100%);
  border-top: 1px solid #ceddf3;
  border-bottom: 1px solid #ceddf3;
}

.adoption-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.steps li {
  border: 1px solid #bfd4f2;
  border-radius: var(--radius);
  background: #f9fcff;
  padding: 1rem 1rem 1rem 1.2rem;
  position: relative;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.8rem;
  color: #adc8eb;
}

.steps {
  counter-reset: step;
}

.steps h3 {
  font-size: 1.12rem;
}

.steps p {
  margin: 0.45rem 0 0;
  color: #4e6789;
}

.repo-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr 0.95fr;
  align-items: start;
}

.repo-grid .lead {
  margin-bottom: 0;
}

.repo-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: 0 12px 26px rgba(24, 55, 100, 0.1);
}

.repo-panel h3 {
  font-size: 1.15rem;
}

.repo-panel pre {
  margin: 0.85rem 0 0.75rem;
  background: #0f2548;
  color: #d5e6fb;
  border-radius: 12px;
  border: 1px solid #214171;
  padding: 0.85rem;
  overflow-x: auto;
}

.repo-panel code {
  font-family: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.92rem;
  line-height: 1.5;
}

.repo-panel p {
  margin: 0;
  color: var(--muted);
}

.cta {
  border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(130deg, #17305f 0%, #244e88 58%, #2d6eab 100%);
  color: #edf4ff;
  text-align: center;
  padding: 2.2rem 1.2rem;
}

.cta h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
}

.cta p {
  max-width: 66ch;
  margin: 0.9rem auto 1.4rem;
  color: #d2e4fb;
}

.site-footer {
  background: var(--bg-strong);
  color: #cfddf4;
  padding: 1.05rem 0;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-row a {
  color: #e8f1ff;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-30px, 18px, 0);
  }
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .hero-grid,
  .card-grid,
  .adoption-grid,
  .repo-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 4.6rem;
  }
}
