:root {
  color-scheme: dark;
  --bg: #080b10;
  --bg-soft: #0d121a;
  --panel: rgba(17, 24, 39, 0.76);
  --panel-strong: rgba(13, 18, 28, 0.94);
  --panel-soft: rgba(17, 24, 39, 0.48);
  --text: #f6f8fb;
  --muted: #aeb8c7;
  --subtle: #7a8597;
  --line: rgba(203, 213, 225, 0.14);
  --line-strong: rgba(203, 213, 225, 0.24);
  --accent: #8bd3dd;
  --accent-2: #b8a8ff;
  --accent-3: #75d6b3;
  --danger: #fb7185;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% -10%, rgba(139, 211, 221, 0.12), transparent 32rem),
    radial-gradient(circle at 88% 0%, rgba(184, 168, 255, 0.1), transparent 30rem),
    linear-gradient(180deg, #080b10 0%, #0b111a 46%, #080b10 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(203, 213, 225, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(203, 213, 225, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 72%);
}

body::after {
  position: fixed;
  inset: auto -12rem -18rem auto;
  z-index: -1;
  width: 34rem;
  height: 34rem;
  pointer-events: none;
  content: "";
  background: radial-gradient(circle, rgba(139, 211, 221, 0.09), transparent 62%);
  filter: blur(12px);
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(103, 232, 249, 0.55);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 100;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--text);
  color: #07111f;
  text-decoration: none;
  transition: transform 0.18s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.nav {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 10px 10px 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 11, 16, 0.82);
  backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand::before {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  content: "";
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 18px rgba(139, 211, 221, 0.55);
}

.nav nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav nav a {
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
  text-decoration: none;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.nav nav a:hover,
.nav nav a.active {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text);
  transform: translateY(-1px);
}

.section,
.site-footer {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: stretch;
  padding: 68px 0 22px;
}

.surface,
.hero-copy,
.hero-panel,
.strip,
.split,
.cards article,
.code-section,
.comparison,
.decision > div,
.docs-preview,
.docs-content,
.docs-sidebar {
  position: relative;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    var(--panel);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-panel,
.strip,
.split,
.cards article,
.code-section,
.comparison,
.decision > div,
.docs-preview,
.docs-content,
.docs-sidebar {
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.hero-copy::before,
.hero-panel::before,
.docs-content::before,
.comparison::before {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(139, 211, 221, 0.46), transparent);
}

.hero-copy {
  padding: clamp(34px, 5.4vw, 58px);
}

.hero-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  background:
    radial-gradient(circle at 30% 10%, rgba(139, 211, 221, 0.12), transparent 16rem),
    var(--panel-strong);
}

.terminal-card,
.metric-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(6, 10, 16, 0.72);
}

.terminal-card {
  padding: 18px;
}

.terminal-top {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--subtle);
}

.dot:nth-child(1) {
  background: #fb7185;
}

.dot:nth-child(2) {
  background: #fbbf24;
}

.dot:nth-child(3) {
  background: #34d399;
}

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

.terminal-card code {
  display: block;
  color: var(--accent);
  font-size: 15px;
}

.terminal-card small,
.metric-card span,
.docs-grid small,
.doc-card span,
.meta-row span {
  color: var(--muted);
}

.metric-card {
  padding: 18px;
}

.metric-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 27px;
  letter-spacing: -0.045em;
}

.hero-badges,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge,
.meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.58);
  color: var(--muted);
  font-size: 13px;
}

.badge::before {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  content: "";
  background: var(--accent-3);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 880px;
  margin-bottom: 22px;
  font-size: clamp(42px, 6.4vw, 70px);
  line-height: 0.97;
  letter-spacing: -0.062em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(28px, 3.5vw, 46px);
  line-height: 1.04;
  letter-spacing: -0.048em;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  letter-spacing: -0.035em;
}

p {
  color: var(--muted);
  line-height: 1.75;
}

.lead {
  max-width: 720px;
  color: #c8d0dc;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.5;
}

.article-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.article-note a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.article-note a:hover {
  text-decoration: underline;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button,
.actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 11px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.button.primary,
.actions a.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06101f;
  box-shadow: 0 14px 36px rgba(139, 211, 221, 0.16);
}

.button:hover,
.actions a:hover {
  border-color: rgba(139, 211, 221, 0.54);
  background: rgba(139, 211, 221, 0.08);
  transform: translateY(-2px);
}

.button.primary:hover,
.actions a.primary:hover {
  background: linear-gradient(135deg, #b7edf2, #ccc2ff);
}

.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 0;
  background: var(--line);
}

.strip div {
  padding: 22px 24px;
  background: rgba(12, 18, 28, 0.78);
}

.strip strong,
.strip span {
  display: block;
}

.strip strong {
  margin-bottom: 8px;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.strip span {
  color: var(--muted);
  font-size: 14px;
}

.split,
.code-section {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 48px;
  margin-top: 26px;
  padding: clamp(30px, 5vw, 58px);
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 26px;
}

.cards article,
.doc-card,
.docs-grid a {
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.cards article {
  padding: 24px;
}

.cards article:hover,
.doc-card:hover,
.docs-grid a:hover {
  border-color: rgba(139, 211, 221, 0.42);
  background: rgba(17, 24, 39, 0.88);
  transform: translateY(-3px);
}

.card-icon {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(139, 211, 221, 0.08);
  color: var(--accent);
  font-size: 13px;
  font-weight: 760;
}

.code-section pre,
.docs-content pre {
  overflow-x: auto;
  margin: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(139, 211, 221, 0.025), transparent),
    #060a10;
}

pre code {
  color: #dce6f2;
  font-size: 14px;
  line-height: 1.72;
}

.comparison,
.docs-preview {
  margin-top: 26px;
  padding: clamp(28px, 5vw, 56px);
}

.decision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 26px;
}

.decision > div {
  padding: 28px;
  border-radius: var(--radius-lg);
}

.decision ul,
.docs-content ul,
.docs-content ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.docs-grid,
.doc-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.doc-cards {
  grid-template-columns: repeat(2, 1fr);
}

.docs-grid a,
.doc-card {
  display: block;
  min-height: 176px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(10, 15, 23, 0.62);
  color: var(--text);
  text-decoration: none;
}

.docs-grid span,
.docs-grid small,
.doc-card span,
.doc-card small {
  display: block;
}

.docs-grid span,
.doc-card span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-grid strong,
.doc-card strong {
  display: block;
  margin: 16px 0 10px;
  font-size: 21px;
  letter-spacing: -0.035em;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  padding: 36px 0 56px;
  color: var(--subtle);
  font-size: 14px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

.docs-page {
  background:
    radial-gradient(circle at top left, rgba(139, 211, 221, 0.1), transparent 30rem),
    radial-gradient(circle at top right, rgba(184, 168, 255, 0.08), transparent 26rem),
    var(--bg);
}

.docs-shell {
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
  gap: 28px;
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 42px;
}

.docs-sidebar {
  position: sticky;
  top: 92px;
  align-self: start;
  padding: 18px;
  border-radius: var(--radius-lg);
}

.sidebar-title {
  margin: 0 0 14px;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.docs-sidebar a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--muted);
  text-decoration: none;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.docs-sidebar a:hover,
.docs-sidebar a.active {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text);
  transform: translateX(2px);
}

.docs-content {
  padding: clamp(32px, 5vw, 64px);
}

.docs-content h1 {
  max-width: 800px;
  font-size: clamp(40px, 4.8vw, 62px);
}

.docs-content h2 {
  margin-top: 46px;
  font-size: clamp(27px, 3vw, 40px);
}

.docs-content h3 {
  margin-top: 30px;
}

.docs-content li {
  margin: 8px 0;
}

.docs-content a:not(.doc-card) {
  color: var(--accent);
  text-underline-offset: 3px;
}

.docs-note,
.callout {
  margin: 24px 0;
  padding: 18px;
  border: 1px solid rgba(139, 211, 221, 0.22);
  border-radius: 18px;
  background: rgba(139, 211, 221, 0.06);
  color: #c8d5e6;
}

.callout strong,
.docs-note strong {
  color: var(--text);
}

.seo-section {
  margin-top: 26px;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 88% 12%, rgba(139, 211, 221, 0.08), transparent 18rem),
    var(--panel);
  box-shadow: var(--shadow);
}

.seo-section p {
  max-width: 900px;
}

.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.keyword-list span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
}

.steps {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(10, 15, 23, 0.6);
}

.step span:first-child {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  background: rgba(139, 211, 221, 0.08);
  color: var(--accent);
  font-weight: 850;
}

.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: 20px;
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: rgba(6, 10, 16, 0.46);
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  text-align: left;
  vertical-align: top;
}

tr:last-child td {
  border-bottom: 0;
}

th {
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 46px;
}

.pager a {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(10, 15, 23, 0.66);
  color: var(--text);
  text-decoration: none;
}

.pager small {
  display: block;
  margin-bottom: 6px;
  color: var(--subtle);
}

@keyframes enter-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes soft-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.hero-copy,
.hero-panel,
.strip,
.split,
.cards,
.code-section,
.comparison,
.decision,
.docs-preview,
.docs-shell {
  animation: enter-up 0.55s ease both;
}

.hero-panel {
  animation:
    enter-up 0.55s ease both,
    soft-float 7s ease-in-out 0.7s infinite;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 940px) {
  .hero,
  .split,
  .code-section,
  .decision,
  .docs-shell {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    animation: enter-up 0.55s ease both;
  }

  .strip,
  .cards,
  .docs-grid,
  .doc-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .docs-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .nav {
    position: static;
    display: block;
    border-radius: 24px;
    margin-top: 12px;
  }

  .nav nav {
    flex-wrap: wrap;
    overflow-x: visible;
    margin-top: 12px;
  }

  .hero {
    padding-top: 38px;
  }

  .hero-copy,
  .hero-panel,
  .docs-content {
    border-radius: 24px;
  }

  .strip,
  .cards,
  .docs-grid,
  .doc-cards,
  .pager {
    grid-template-columns: 1fr;
  }

  h1 {
    letter-spacing: -0.06em;
  }
}
