:root {
  color-scheme: light;
  --ink: #171923;
  --muted: #5c6675;
  --soft: #f5f7fa;
  --paper: #ffffff;
  --navy: #0d1117;
  --navy-2: #161b22;
  --line: #d8dee7;
  --line-soft: #e8edf3;
  --blue: #2563eb;
  --orange: #f97316;
  --orange-soft: #fff3ea;
  --green: #22c55e;
  --shadow: 0 22px 70px rgba(15, 23, 42, 0.12);
}

* {
  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",
    sans-serif;
  line-height: 1.6;
}

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

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

p {
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 4.75rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.92);
  padding: 1rem clamp(1rem, 4vw, 3rem);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.button-row {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.7rem;
  color: var(--ink);
  font-weight: 850;
}

.brand-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 6px;
  background: var(--navy);
}

.brand-mark::before {
  width: 0.78rem;
  height: 0.78rem;
  border: 2px solid #ffffff;
  border-radius: 3px;
  content: "";
  transform: rotate(45deg);
}

.repo-pill {
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.68rem;
  font-weight: 850;
  padding: 0.18rem 0.55rem;
  text-transform: uppercase;
}

.nav-links {
  gap: clamp(0.75rem, 2vw, 1.55rem);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 680;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-start {
  color: var(--ink);
}

.nav-start {
  border: 1px solid var(--ink);
  border-radius: 7px;
  padding: 0.48rem 0.72rem;
}

.hero {
  border-bottom: 1px solid var(--line-soft);
  background:
    linear-gradient(135deg, rgba(255, 243, 234, 0.9), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.hero-inner {
  display: grid;
  width: min(1160px, calc(100% - 2rem));
  min-height: calc(100vh - 4.75rem);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  margin-inline: auto;
  padding: clamp(4rem, 7vw, 6rem) 0;
}

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

.eyebrow,
.panel-label,
.terminal-label {
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 0.75rem;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 13ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2.55rem, 5.4vw, 4.7rem);
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.15rem;
}

.hero-subhead {
  max-width: 720px;
  margin-bottom: 0.9rem;
  color: #1f2937;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 750;
}

.hero-body {
  max-width: 660px;
  font-size: 1.05rem;
}

.button-row {
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.65rem;
}

.button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 0.76rem 1rem;
  font-weight: 820;
  line-height: 1.15;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #ffffff;
}

.button-secondary {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
}

.section-shell {
  width: min(1160px, calc(100% - 2rem));
  margin-inline: auto;
  padding: clamp(4.5rem, 8vw, 6.5rem) 0;
}

.section-heading {
  max-width: 850px;
  margin-bottom: 2rem;
}

.section-heading p {
  max-width: 780px;
  font-size: 1.03rem;
}

.split-section {
  display: grid;
  align-items: start;
  gap: clamp(1.5rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1fr);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.install-card {
  overflow: hidden;
  border: 1px solid #30363d;
  border-radius: 12px;
  background: var(--navy);
  box-shadow: var(--shadow);
}

.hero-install {
  align-self: center;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border-bottom: 1px solid #30363d;
  background: var(--navy-2);
  padding: 0.9rem 1rem;
}

.window-dot {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
}

.red {
  background: #ff5f56;
}

.yellow {
  background: #ffbd2e;
}

.green {
  background: #27c93f;
}

.terminal-title {
  margin-left: auto;
  color: #8b949e;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
}

.terminal-body {
  padding: clamp(1.25rem, 3vw, 1.65rem);
}

.terminal-label {
  margin-bottom: 0.65rem;
  color: #f59e0b;
}

.install-card pre {
  overflow-x: auto;
  margin-bottom: 0;
}

.install-card code {
  color: #ffffff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 720;
  white-space: pre;
}

.install-card code span {
  color: #8b949e;
}

.platform-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid #30363d;
  padding: 1rem clamp(1.25rem, 3vw, 1.65rem);
  color: #8b949e;
  font-size: 0.9rem;
  font-weight: 720;
}

.platform-note ul {
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.platform-note li {
  border: 1px solid #30363d;
  border-radius: 7px;
  background: #111827;
  color: #c9d1d9;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  padding: 0.28rem 0.48rem;
}

.flow-section {
  border-bottom: 1px solid var(--line-soft);
}

.flow-heading {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.flow-heading p {
  margin-inline: auto;
}

.semantic-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 2.2rem 0 0;
  padding: 0;
  list-style: none;
}

.semantic-flow li {
  position: relative;
  display: grid;
  justify-items: center;
  min-width: 0;
  gap: 0.35rem;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #ffffff;
  padding: 1.05rem 0.8rem;
  text-align: center;
}

.semantic-flow li:not(:last-child)::after {
  position: absolute;
  top: 2.45rem;
  right: -0.75rem;
  z-index: 1;
  width: 0.75rem;
  border-top: 1px solid rgba(249, 115, 22, 0.42);
  content: "";
}

.flow-index {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid rgba(249, 115, 22, 0.28);
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 850;
}

.semantic-flow strong {
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.18;
}

.semantic-flow span:last-child {
  color: var(--muted);
  font-size: 0.88rem;
}

.card-grid,
.portal-grid,
.repo-list {
  display: grid;
  gap: 1rem;
}

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

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card-grid article,
.portal-card,
.repo-list article {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.05);
}

.card-grid article {
  min-height: 10rem;
  padding: clamp(1rem, 2.2vw, 1.35rem);
}

.card-grid.four article {
  display: grid;
  min-height: 7rem;
  align-content: center;
  color: #1f2937;
  font-weight: 780;
}

.portal-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.portal-card {
  display: grid;
  gap: 0.55rem;
  min-height: 10.25rem;
  padding: 1rem;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.portal-card:hover,
.portal-card:focus-visible {
  border-color: rgba(249, 115, 22, 0.45);
  box-shadow: 0 16px 42px rgba(249, 115, 22, 0.12);
  transform: translateY(-2px);
}

.portal-card strong {
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.2;
}

.portal-card span:last-child {
  color: var(--muted);
  font-size: 0.94rem;
}

.repo-list {
  grid-template-columns: 1fr;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #ffffff;
  gap: 0;
  overflow: hidden;
}

.repo-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 0.72fr) minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 0;
  box-shadow: none;
  padding: 1rem 1.1rem;
}

.repo-list article:last-child {
  border-bottom: 0;
}

.repo-list span {
  display: grid;
  width: 2.3rem;
  height: 2.3rem;
  place-items: center;
  border-radius: 7px;
  background: var(--orange-soft);
  color: var(--orange);
  font-weight: 850;
}

.repo-list strong {
  color: var(--ink);
}

.repo-list p {
  margin-bottom: 0;
}

.claim-boundary {
  display: grid;
  width: min(1160px, calc(100% - 2rem));
  align-items: center;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-inline: auto;
  border-top: 1px solid var(--line-soft);
  padding: clamp(4.5rem, 8vw, 6.5rem) 0;
}

.claim-boundary p {
  max-width: 880px;
}

@media (max-width: 960px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    white-space: nowrap;
  }

  .hero-inner,
  .split-section,
  .claim-boundary {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-inner {
    min-height: auto;
  }

  h1 {
    max-width: 15ch;
  }

  .card-grid.three,
  .card-grid.four,
  .portal-grid,
  .semantic-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .semantic-flow li:not(:last-child)::after {
    display: none;
  }

  .repo-list article {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .repo-list p {
    grid-column: 2;
  }

  .claim-boundary .button {
    justify-self: start;
  }
}

@media (max-width: 600px) {
  .section-shell,
  .hero-inner,
  .claim-boundary {
    width: min(100% - 1rem, 1160px);
  }

  h1 {
    font-size: clamp(2.15rem, 10.5vw, 3rem);
  }

  h2 {
    font-size: clamp(1.8rem, 10vw, 2.55rem);
  }

  .button,
  .button-row,
  .button-row .button {
    width: 100%;
  }

  .card-grid.three,
  .card-grid.four,
  .portal-grid,
  .semantic-flow {
    grid-template-columns: 1fr;
  }

  .repo-list article {
    grid-template-columns: 1fr;
  }

  .repo-list p {
    grid-column: auto;
  }
}
