:root {
  color-scheme: dark;
  --bg: #070b16;
  --bg-soft: #0b1020;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --text: #eef4ff;
  --muted: #a6b4cd;
  --brand: #7dd3fc;
  --brand-strong: #38bdf8;
  --accent: #a78bfa;
  --line: rgba(255, 255, 255, 0.13);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 34rem),
    radial-gradient(circle at top right, rgba(167, 139, 250, 0.16), transparent 30rem),
    var(--bg);
  color: var(--text);
  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;
}

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

.skip-link {
  background: var(--brand);
  color: #06101f;
  left: 1rem;
  padding: 0.65rem 1rem;
  position: fixed;
  top: -4rem;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  backdrop-filter: blur(18px);
  background: rgba(7, 11, 22, 0.76);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 1rem 1.25rem;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 0.75rem;
  font-weight: 800;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  border-radius: 0.85rem;
  color: #07111f;
  display: inline-flex;
  height: 2.45rem;
  justify-content: center;
  letter-spacing: -0.06em;
  width: 2.45rem;
}

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

.nav-links {
  align-items: center;
  display: flex;
  gap: 1.25rem;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
}

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

.section {
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 5rem 1.25rem;
}

.hero {
  align-items: center;
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
  min-height: calc(100vh - 4.7rem);
  padding-top: 6rem;
}

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

.eyebrow {
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(3rem, 7vw, 5.9rem);
  letter-spacing: -0.07em;
  line-height: 0.94;
  margin-bottom: 1.4rem;
  max-width: 13ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
  letter-spacing: -0.05em;
  line-height: 1.02;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.18rem;
  letter-spacing: -0.025em;
  margin-bottom: 0.65rem;
}

.hero-copy {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 43rem;
}

.hero-actions,
.hero-badges {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-actions {
  margin-top: 2rem;
}

.button {
  border-radius: 999px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  padding: 0.95rem 1.25rem;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #07111f;
}

.button-secondary {
  border: 1px solid var(--line);
  color: var(--text);
}

.hero-badges {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
}

.hero-badges li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  padding: 0.45rem 0.8rem;
}

.hero-card,
.feature-card,
.package-list article,
.code-panel,
.install-note,
.faq details,
.cta {
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
  border: 1px solid var(--line);
  border-radius: 1.6rem;
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 1.4rem;
}

.card-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
}

.status-dot {
  background: #22c55e;
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.85);
  height: 0.65rem;
  width: 0.65rem;
}

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

.runtime-list li {
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem;
}

.runtime-list strong,
.runtime-list span {
  display: block;
}

.runtime-list span {
  color: var(--muted);
  margin-top: 0.25rem;
}

.intro {
  align-items: start;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.intro p:last-child,
.section-heading p,
.feature-card p,
.package-list p,
.seo-copy p,
.faq p,
.site-footer p {
  color: var(--muted);
}

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

.feature-grid,
.package-list,
.use-case-grid {
  display: grid;
  gap: 1rem;
}

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

.feature-card,
.package-list article {
  padding: 1.4rem;
}

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

.package-list code {
  background: rgba(125, 211, 252, 0.12);
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 999px;
  color: var(--brand);
  display: inline-flex;
  font-size: 0.86rem;
  padding: 0.28rem 0.65rem;
}

.text-link {
  color: var(--brand);
  display: inline-flex;
  font-weight: 800;
  margin-top: 0.4rem;
}

.text-link:hover {
  color: var(--text);
}

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

.page-card {
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.65rem;
  padding: 1.25rem;
  transition: transform 160ms ease, border-color 160ms ease;
}

.page-card:hover {
  border-color: rgba(125, 211, 252, 0.45);
  transform: translateY(-2px);
}

.page-card span {
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-card strong {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.45;
}

.install {
  display: grid;
  gap: 1.2rem;
}

.code-panel,
.install-note {
  overflow: hidden;
}

.code-panel pre,
.install-note pre {
  margin: 0;
  overflow-x: auto;
  padding: 1.4rem;
}

.install-note h3 {
  border-bottom: 1px solid var(--line);
  margin: 0;
  padding: 1.2rem 1.4rem;
}

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

.use-case-grid p {
  border-left: 2px solid var(--brand);
  padding-left: 1rem;
}

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

.faq details {
  padding: 1.2rem 1.4rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
}

.faq p {
  margin: 0.85rem 0 0;
}

.cta {
  margin-bottom: 5rem;
  text-align: center;
}

.cta h2 {
  margin-left: auto;
  margin-right: auto;
  max-width: 16ch;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 2rem 1.25rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--brand);
  font-weight: 800;
}

@media (max-width: 880px) {
  .hero,
  .intro,
  .feature-grid,
  .package-list,
  .use-case-grid,
  .page-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    max-width: 12ch;
  }
}

@media (max-width: 640px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    gap: 0.85rem;
    overflow-x: auto;
    width: 100%;
  }

  .section {
    padding: 3.5rem 1rem;
  }

  .hero {
    padding-top: 4rem;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }
}
