:root {
  --black: #000;
  --ink: #050505;
  --panel: #0c0c0c;
  --panel-soft: #141414;
  --line: #272727;
  --line-strong: #3b3b3b;
  --white: #fff;
  --text: #f5f5f5;
  --muted: #a8a8a8;
  --dim: #6f6f6f;
  --inverse: #050505;
  --radius: 8px;
  --max: 1180px;
  --mono: "JetBrains Mono", "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  --sans: "Aptos", "Segoe UI", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    var(--black);
  background-size: 48px 48px;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.12), transparent 34rem);
  opacity: 0.55;
}

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

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

code {
  font-family: var(--mono);
  font-size: 0.9em;
}

.container {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

.navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(18px);
  transition: background 180ms ease, border-color 180ms ease;
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.92);
  border-color: var(--line);
}

.nav-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
  font-size: 1.08rem;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: contain;
  padding: 4px;
  background: var(--black);
}

.brand.small .brand-mark {
  width: 30px;
  height: 30px;
  padding: 3px;
}

.nav-links,
.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0;
  margin: 0;
  list-style: none;
}

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

.nav-links a:hover,
.footer-links a:hover {
  color: var(--white);
}

.nav-cta,
.btn-primary,
.btn-secondary,
.install-command {
  border-radius: var(--radius);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--white);
  font-weight: 750;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.nav-cta {
  padding: 0 16px;
  background: var(--white);
  color: var(--inverse);
  font-size: 0.9rem;
}

.nav-cta:hover,
.btn-primary:hover,
.btn-secondary:hover,
.install-command:hover {
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--black);
  color: var(--white);
  font: inherit;
  font-weight: 700;
}

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px 0 72px;
  position: relative;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.86fr);
  gap: clamp(40px, 8vw, 104px);
  align-items: center;
  position: relative;
}

.hero-kicker,
.section-label {
  margin: 0 0 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.cta-block h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(3.8rem, 8.4vw, 8.6rem);
  line-height: 0.86;
  letter-spacing: 0;
}

.section h2,
.cta-block h2 {
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  line-height: 0.95;
}

.hero-subtitle,
.section-intro p:last-child,
.lead,
.cta-block p {
  max-width: 670px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.32rem);
}

.hero-subtitle {
  margin: 30px 0 0;
}

.hero-subtitle strong {
  color: var(--white);
  font-family: var(--mono);
  font-weight: 700;
}

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

.btn-primary,
.btn-secondary {
  padding: 0 20px;
}

.btn-primary {
  background: var(--white);
  color: var(--inverse);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.hero-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 10, 10, 0.78);
  box-shadow: 0 32px 120px rgba(0, 0, 0, 0.72);
  overflow: hidden;
}

.logo-plate {
  min-height: 330px;
  display: grid;
  place-items: center;
  padding: 44px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 34%),
    var(--black);
}

.logo-plate img {
  width: min(76%, 330px);
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.18));
}

.terminal {
  background: var(--panel);
}

.terminal-header,
.code-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.terminal-body {
  padding: 20px 18px 22px;
  font-family: var(--mono);
  font-size: 0.88rem;
  overflow-x: auto;
}

.terminal-body p {
  margin: 0;
  white-space: nowrap;
}

.terminal-body p + p {
  margin-top: 8px;
}

.terminal-body span,
.install-command span {
  color: var(--white);
  margin-right: 8px;
}

.muted {
  color: var(--dim);
}

.section {
  padding: clamp(72px, 10vw, 132px) 0;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
}

.section-intro {
  margin-bottom: 42px;
}

.section-intro.centered {
  text-align: center;
  margin-right: auto;
  margin-left: auto;
}

.section-intro.centered p {
  margin-right: auto;
  margin-left: auto;
}

.card-grid {
  display: grid;
  gap: 16px;
}

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

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

.card,
.step,
.snapshot-code,
.cta-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(12, 12, 12, 0.78);
}

.card,
.step {
  padding: 24px;
  min-height: 230px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.card:hover,
.step:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: rgba(20, 20, 20, 0.92);
}

.card-index,
.step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 28px;
  margin-bottom: 24px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.card h3,
.step h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  color: var(--white);
}

.card p,
.step p,
.plain-list li {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step code {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--white);
  border-bottom: 1px solid var(--line-strong);
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

.pipeline span {
  min-height: 74px;
  display: grid;
  place-items: center;
  background: var(--black);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.85rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  text-align: left;
}

th,
td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

th {
  color: var(--white);
  font-size: 0.8rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0;
  background: var(--black);
}

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

.highlight-row td {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 750;
}

.snapshot-layout {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: clamp(32px, 7vw, 88px);
  align-items: start;
}

.plain-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.plain-list li {
  padding-left: 18px;
  border-left: 1px solid var(--line-strong);
}

.plain-list strong {
  color: var(--white);
}

.snapshot-code {
  overflow: hidden;
}

.snapshot-code pre {
  margin: 0;
  padding: 24px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.9rem;
  line-height: 1.65;
  overflow-x: auto;
}

.cta-block {
  text-align: center;
  padding: clamp(34px, 7vw, 72px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 28%),
    var(--panel);
}

.cta-logo {
  width: 84px;
  height: 84px;
  margin: 0 auto 28px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  object-fit: contain;
  padding: 8px;
  background: var(--black);
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.16));
}

.cta-block p {
  margin: 22px auto 0;
}

.cta-block .hero-actions {
  justify-content: center;
}

.install-command {
  gap: 8px;
  margin-top: 22px;
  padding: 10px 16px;
  background: var(--black);
  color: var(--white);
  cursor: pointer;
  font-family: var(--mono);
}

.install-command code {
  color: var(--white);
}

.install-command small {
  color: var(--dim);
  font-family: var(--sans);
  font-size: 0.76rem;
}

.shot {
  margin: 0 0 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  box-shadow: 0 32px 120px rgba(0, 0, 0, 0.72);
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

.shot figcaption {
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.integrations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.integration-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(12, 12, 12, 0.78);
  padding: 20px;
  transition: transform 160ms ease, border-color 160ms ease;
}

.integration-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.integration-card.highlight {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

.integration-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.int-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
}

.int-badge {
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  color: var(--dim);
  white-space: nowrap;
}

.int-badge.zero {
  border-color: rgba(120, 220, 120, 0.3);
  color: rgba(120, 220, 120, 0.85);
}

.integration-card code {
  display: inline-block;
  color: var(--white);
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.integration-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.integration-note {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 18px 22px;
  font-size: 0.92rem;
  color: var(--muted);
}

.integration-note strong {
  color: var(--white);
}

.cmd-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.cmd-pills code {
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 3px 9px;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer {
  position: relative;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: var(--black);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer p {
  margin: 0;
  color: var(--dim);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links.open {
    position: absolute;
    top: 72px;
    right: 20px;
    left: 20px;
    display: grid;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(0, 0, 0, 0.96);
  }

  .nav-links.open a {
    display: block;
    padding: 12px;
  }

  .hero-layout,
  .snapshot-layout {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 620px;
  }

  .card-grid.four,
  .card-grid.three,
  .steps,
  .integrations-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

  .hero {
    padding-top: 112px;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 16vw, 4.7rem);
  }

  .card-grid.four,
  .card-grid.three,
  .steps,
  .integrations-grid {
    grid-template-columns: 1fr;
  }

  .logo-plate {
    min-height: 250px;
    padding: 30px;
  }

  .hero-actions,
  .footer-links {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .install-command {
    width: 100%;
    flex-wrap: wrap;
  }
}
