:root {
  color-scheme: light;
  --ink: #121a2a;
  --muted: #536174;
  --paper: #ffffff;
  --soft: #f6f8fc;
  --soft-2: #eef7f6;
  --line: #dce4ef;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --teal: #0f9f9a;
  --coral: #f05d5e;
  --gold: #f4b544;
  --green: #33a36f;
  --code: #101827;
  --shadow: 0 20px 50px rgba(18, 26, 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;
}

img {
  max-width: 100%;
  display: block;
}

code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

code:not(pre code) {
  border-radius: 6px;
  background: #eef4ff;
  color: #174ea6;
  padding: 0.12rem 0.32rem;
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.3rem;
  border-bottom: 1px solid rgba(220, 228, 239, 0.88);
  background: rgba(255, 255, 255, 0.94);
  padding: 0.85rem clamp(1rem, 4vw, 4rem);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.68rem;
  min-width: max-content;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: white;
  font-weight: 900;
  overflow: hidden;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: clamp(0.65rem, 1.6vw, 1.25rem);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 800;
}

.nav-links a {
  padding: 0.35rem 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
}

.nav-cta,
.button {
  display: inline-flex;
  min-height: 2.7rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.68rem 0.92rem;
  font-weight: 900;
  line-height: 1;
}

.nav-cta,
.button.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
}

.button.primary:hover,
.nav-cta:hover {
  background: var(--blue-dark);
}

.button.secondary {
  background: white;
  color: var(--ink);
}

.button.secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.hero {
  position: relative;
  min-height: calc(100vh - 68px);
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(240, 93, 94, 0.16), transparent 28%),
    radial-gradient(circle at 82% 16%, rgba(15, 159, 154, 0.2), transparent 28%),
    linear-gradient(135deg, #fbfdff 0%, #eef4ff 50%, #f7fffd 100%);
}

.nova-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: calc(100vh - 68px);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.78fr);
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 4vw, 4rem);
}

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

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 1rem;
  font-size: clamp(3.2rem, 8vw, 6.4rem);
  line-height: 0.94;
}

h2 {
  margin-bottom: 0.9rem;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.05;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.17rem;
  line-height: 1.24;
}

h4 {
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

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

.hero-copy > p:not(.eyebrow) {
  max-width: 66ch;
  font-size: 1.1rem;
}

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

.hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-panel img {
  aspect-ratio: 16 / 10;
  width: 100%;
  border-radius: 8px 8px 0 0;
  object-fit: cover;
}

.hero-terminal {
  border-top: 1px solid var(--line);
  background: var(--code);
}

.terminal-bar {
  display: flex;
  gap: 0.42rem;
  padding: 0.78rem 0.9rem;
  background: #172033;
}

.terminal-bar span {
  width: 0.68rem;
  height: 0.68rem;
  border-radius: 999px;
  background: var(--coral);
}

.terminal-bar span:nth-child(2) {
  background: var(--gold);
}

.terminal-bar span:nth-child(3) {
  background: var(--teal);
}

.hero-terminal pre,
.code-block pre,
.file-tree pre {
  margin: 0;
  overflow-x: auto;
  padding: 1rem;
  color: #d9f8ee;
  font-size: 0.9rem;
  line-height: 1.65;
}

.hero-terminal code,
.code-block code,
.file-tree code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.section {
  padding: clamp(3.5rem, 7vw, 6rem) clamp(1rem, 4vw, 4rem);
}

.section.alt {
  background: var(--soft);
}

.section.tint {
  background: linear-gradient(135deg, #f7fffd, #eef4ff);
}

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

.section-heading.center {
  margin-inline: auto;
  text-align: center;
}

.grid {
  display: grid;
  gap: 1rem;
}

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

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

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

.card,
.feature-card,
.path-card,
.example-card {
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 1.2rem;
}

.feature-card strong,
.path-card strong,
.example-card strong {
  display: inline-flex;
  margin-bottom: 0.55rem;
  color: var(--ink);
}

.feature-card p,
.path-card p,
.example-card p {
  margin-bottom: 0;
}

.icon {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.9rem;
  place-items: center;
  border-radius: 8px;
  background: #e8f5f4;
  color: var(--teal);
  font-weight: 900;
}

.split {
  display: grid;
  align-items: start;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 1fr);
}

.split.reverse {
  grid-template-columns: minmax(320px, 1fr) minmax(0, 0.78fr);
}

.code-block,
.file-tree {
  overflow: hidden;
  border-radius: 8px;
  background: var(--code);
  box-shadow: var(--shadow);
}

.code-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #172033;
  color: white;
  padding: 0.8rem 1rem;
  font-weight: 900;
}

.copy-button,
.command-copy {
  min-height: 2.35rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.copy-button {
  min-height: auto;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  padding: 0.36rem 0.6rem;
}

.copy-button:hover,
.command-copy:hover,
.copy-button.copied,
.command-copy.copied {
  border-color: var(--teal);
  color: var(--teal);
}

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

.command-copy {
  min-height: 3rem;
  padding: 0.65rem 0.8rem;
  text-align: left;
}

.pill-list,
.mode-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0;
  list-style: none;
}

.pill-list li,
.mode-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--muted);
  padding: 0.42rem 0.68rem;
  font-size: 0.9rem;
  font-weight: 800;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline article {
  display: grid;
  gap: 1rem;
  grid-template-columns: 3.2rem minmax(0, 1fr);
}

.timeline span {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border-radius: 8px;
  background: #fff3df;
  color: #a86500;
  font-weight: 900;
}

.page-hero {
  padding: clamp(3.2rem, 7vw, 6rem) clamp(1rem, 4vw, 4rem) clamp(2.4rem, 5vw, 4rem);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.1), transparent 42%),
    linear-gradient(315deg, rgba(15, 159, 154, 0.12), transparent 38%),
    #fbfdff;
}

.page-hero p {
  max-width: 75ch;
  font-size: 1.08rem;
}

.callout {
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  background: #effaf8;
  padding: 1rem 1.1rem;
}

.callout p:last-child {
  margin-bottom: 0;
}

.site-footer {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(130px, 0.5fr));
  border-top: 1px solid var(--line);
  background: #0f1728;
  color: white;
  padding: 2.2rem clamp(1rem, 4vw, 4rem);
}

.site-footer p,
.site-footer a {
  color: #c9d6e5;
}

.site-footer h4 {
  color: white;
}

.footer-links {
  display: grid;
  gap: 0.45rem;
}

.library-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.library-strip span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--muted);
  padding: 0.4rem 0.65rem;
  font-size: 0.88rem;
  font-weight: 900;
}

sl-tab-group::part(base) {
  --indicator-color: var(--blue);
}

sl-details::part(base),
sl-card::part(base) {
  border-radius: 8px;
  border-color: var(--line);
}

@media (max-width: 1080px) {
  .hero-content,
  .split,
  .split.reverse {
    grid-template-columns: 1fr;
  }

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

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

  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .nav-cta {
    width: 100%;
  }

  .hero,
  .hero-content {
    min-height: auto;
  }

  h1 {
    font-size: clamp(2.7rem, 13vw, 4rem);
  }

  .grid.two,
  .grid.three,
  .grid.four,
  .command-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

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