:root {
  color-scheme: dark;
  --bg: #080d16;
  --bg-soft: #0d1524;
  --panel: rgba(17, 27, 44, 0.74);
  --panel-strong: #101827;
  --panel-border: rgba(148, 163, 184, 0.18);
  --text: #eef5ff;
  --muted: #a9b6cc;
  --subtle: #6f7e95;
  --brand: #68e1fd;
  --brand-2: #a78bfa;
  --brand-3: #34d399;
  --warning: #fbbf24;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --content: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  /* Safety net: stop any single wide element (long install command, table,
     decorative grid background) from creating a horizontal scroll on phones. */
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(104, 225, 253, 0.16), transparent 34rem),
    radial-gradient(circle at 90% 8%, rgba(167, 139, 250, 0.18), transparent 32rem),
    linear-gradient(180deg, #080d16 0%, #0b1220 46%, #080d16 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 75%);
}

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

a:hover {
  color: var(--brand);
}

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

code {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 0.45rem;
  background: rgba(148, 163, 184, 0.09);
  padding: 0.1rem 0.32rem;
  color: #d9f7ff;
  font-size: 0.92em;
}

pre {
  margin: 0;
  max-width: 100%;
  overflow-x: auto;
  color: #dceaff;
  font-size: 0.9rem;
  line-height: 1.7;
}

img, svg {
  max-width: 100%;
  height: auto;
}

/* On phones, let long shell commands soft-wrap so the page never scrolls
   sideways just to show one curl line. */
@media (max-width: 760px) {
  pre, pre code {
    white-space: pre-wrap;
    word-break: break-word;
  }
}

pre code {
  display: block;
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  transform: translateY(-150%);
  border-radius: 999px;
  background: var(--brand);
  padding: 0.65rem 1rem;
  color: #04111b;
  font-weight: 800;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(8, 13, 22, 0.72);
  backdrop-filter: blur(18px);
}

.site-header.is-elevated {
  border-bottom-color: rgba(148, 163, 184, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--text);
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.brand small {
  margin-top: -0.12rem;
  color: var(--subtle);
  font-size: 0.75rem;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
}

.brand-mark img {
  width: 2.2rem;
  height: 2.2rem;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 0 6px rgba(104, 225, 253, 0.8)) drop-shadow(0 0 16px rgba(104, 225, 253, 0.35));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.nav-links a {
  border-radius: 999px;
  padding: 0.42rem 0.7rem;
}

.nav-links a:hover {
  background: rgba(148, 163, 184, 0.09);
}

.github-link {
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--text);
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  padding: 0.5rem 0.85rem;
  color: var(--text);
  font: inherit;
}

.section {
  max-width: var(--content);
  margin: 0 auto;
  padding: 5.25rem 1.5rem;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding-top: 5rem;
  padding-bottom: 1rem;
  text-align: center;
}

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

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #34d399;
  box-shadow: 0 0 0 0.38rem rgba(52, 211, 153, 0.12);
  animation: pulse-shift 2.2s ease-in-out infinite;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 880px;
  font-size: clamp(2.15rem, 5.2vw, 4.25rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.45rem);
}

h3 {
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

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

.hero-lede {
  max-width: 700px;
  margin-top: 1.4rem;
  color: #c4d0e4;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border-radius: 999px;
  padding: 0.78rem 1.18rem;
  font-weight: 800;
}

.button.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #04111b;
  box-shadow: 0 16px 36px rgba(104, 225, 253, 0.18);
}

.button.secondary {
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.65);
  color: var(--text);
}

.hero-meta {
  margin-top: 1.6rem;
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.005em;
  line-height: 1.7;
}

.hero-meta .dot {
  display: inline-block;
  margin: 0 0.3rem;
  color: rgba(148, 163, 184, 0.55);
}

.hero-card,
.code-card,
.batch-panel,
.preview-window,
.step-card,
.feature-card,
.command-grid article,
.architecture-panel,
.quickstart-card,
.footer-cta {
  border: 1px solid var(--panel-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  width: 100%;
  max-width: 760px;
}

.hero-card::before {
  position: absolute;
  inset: -60% auto auto 50%;
  transform: translateX(-50%);
  width: 22rem;
  height: 10rem;
  content: "";
  border-radius: 50%;
  background: rgba(104, 225, 253, 0.1);
  filter: blur(40px);
}

.terminal-bar {
  display: flex;
  gap: 0.46rem;
  margin-bottom: 0.9rem;
}

.terminal-bar span {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  background: #64748b;
}

.terminal-bar span:nth-child(1) {
  background: #fb7185;
}

.terminal-bar span:nth-child(2) {
  background: #fbbf24;
}

.terminal-bar span:nth-child(3) {
  background: #34d399;
}

.hero-card pre,
.code-card pre,
.batch-panel pre,
.step-card pre {
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 1.05rem;
  background: rgba(3, 7, 18, 0.6);
  padding: 1.1rem;
}

.hero-card pre {
  min-height: auto;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 0;
}

.trust-strip div {
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.52);
  padding: 1.25rem;
}

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

.trust-strip strong {
  margin-bottom: 0.35rem;
}

.trust-strip span {
  color: var(--muted);
  font-size: 0.94rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

.split > div:first-child p:not(.section-kicker),
.section-heading p {
  margin-top: 1rem;
  font-size: 1.04rem;
}

.feature-grid,
.command-grid,
.steps {
  display: grid;
  gap: 1rem;
}

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

.feature-card,
.command-grid article,
.step-card {
  border-radius: var(--radius-md);
  padding: 1.3rem;
}

.feature-card p,
.command-grid p {
  margin-top: 0.7rem;
}

.architecture {
  padding-top: 4rem;
}

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

.architecture-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.42fr) minmax(0, 1fr);
  gap: 1rem;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.arch-column {
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 1.2rem;
  background: rgba(3, 7, 18, 0.26);
  padding: 1.3rem;
}

.arch-column ul {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.arch-flow {
  display: grid;
  align-content: center;
  gap: 0.7rem;
}

.arch-flow span {
  border: 1px solid rgba(104, 225, 253, 0.22);
  border-radius: 999px;
  background: rgba(104, 225, 253, 0.08);
  padding: 0.55rem 0.75rem;
  color: #c8f7ff;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 800;
}

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

.step-number {
  display: inline-flex;
  margin-bottom: 0.9rem;
  color: var(--brand);
  font-weight: 900;
  letter-spacing: 0.12em;
}

.step-card h3 {
  min-height: 2.3rem;
  margin-bottom: 1rem;
}

.quickstart-card {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 2rem;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.command-list {
  display: grid;
  gap: 0.8rem;
}

.command-list div {
  display: grid;
  grid-template-columns: minmax(190px, 0.58fr) minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(3, 7, 18, 0.22);
  padding: 0.85rem;
}

.command-list code {
  justify-self: start;
}

.command-list span {
  color: var(--muted);
}

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

.code-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.code-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.13);
  padding: 0.9rem 1rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.copy-button {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  padding: 0.38rem 0.7rem;
  color: var(--text);
  cursor: pointer;
}

.copy-button:hover {
  border-color: rgba(104, 225, 253, 0.5);
  color: var(--brand);
}

.code-card pre {
  border: 0;
  border-radius: 0;
}

.dashboard-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
  gap: 1rem;
}

.preview-window {
  border-radius: var(--radius-lg);
  padding: 1rem;
}

.stats-row {
  display: grid;
  grid-template-columns: 1.1fr 0.55fr 0.65fr 1fr;
  gap: 0.7rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  padding: 0.85rem 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.stats-row.header {
  color: var(--subtle);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stats-row strong {
  color: var(--text);
}

.preview-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: 1rem;
  background: rgba(52, 211, 153, 0.08);
  padding: 0.9rem;
}

.preview-form button {
  border: 0;
  border-radius: 999px;
  background: var(--brand-3);
  padding: 0.55rem 0.9rem;
  color: #052014;
  font-weight: 900;
}

.api-list {
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.46);
  padding: 1.3rem;
}

.api-list p {
  margin-top: 0.9rem;
}

.batch-panel {
  border-radius: var(--radius-lg);
  padding: 1rem;
}

.footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.footer-cta > div:first-child {
  max-width: 700px;
}

.footer-cta p:not(.section-kicker) {
  margin-top: 1rem;
}

.pr-welcome {
  margin-top: 0.8rem;
  color: #cde7ff;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--content);
  margin: 0 auto;
  border-top: 1px solid rgba(148, 163, 184, 0.13);
  padding: 1.5rem;
  color: var(--subtle);
  font-size: 0.9rem;
}

.site-footer p {
  color: inherit;
}

.site-footer a {
  color: #cbd5e1;
}

@media (max-width: 960px) {
  .split,
  .quickstart-card,
  .dashboard-preview,
  .architecture-panel,
  .footer-cta {
    grid-template-columns: 1fr;
  }

  .trust-strip,
  .steps,
  .command-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-cta {
    align-items: flex-start;
  }
}

@keyframes pulse-shift {
  0% {
    background: #34d399;
    box-shadow: 0 0 0 0.32rem rgba(52, 211, 153, 0.12), 0 0 0.25rem rgba(52, 211, 153, 0.6);
  }
  33% {
    background: #68e1fd;
    box-shadow: 0 0 0 0.44rem rgba(104, 225, 253, 0.14), 0 0 0.35rem rgba(104, 225, 253, 0.6);
  }
  66% {
    background: #a78bfa;
    box-shadow: 0 0 0 0.4rem rgba(167, 139, 250, 0.14), 0 0 0.35rem rgba(167, 139, 250, 0.6);
  }
  100% {
    background: #34d399;
    box-shadow: 0 0 0 0.32rem rgba(52, 211, 153, 0.12), 0 0 0.25rem rgba(52, 211, 153, 0.6);
  }
}

@media (max-width: 760px) {
  .nav {
    align-items: flex-start;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% - 0.35rem);
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 1.1rem;
    background: rgba(8, 13, 22, 0.96);
    padding: 0.6rem;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 0.9rem;
  }

  .section {
    padding: 4rem 1rem;
  }

  .hero {
    gap: 2rem;
    padding-top: 4rem;
  }

  .command-list div,
  .stats-row {
    grid-template-columns: 1fr;
  }

  .arch-flow {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }
}

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