:root {
  --bg: #080b10;
  --bg-raised: #0d1117;
  --bg-soft: #111821;
  --surface: #151b23;
  --border: #28323f;
  --border-bright: #3d4b5d;
  --text: #f0f6fc;
  --text-soft: #c7d0da;
  --muted: #8b98a7;
  --cyan: #54d5da;
  --cyan-bright: #8aebee;
  --blue: #79c0ff;
  --green: #56d364;
  --red: #ff7b72;
  --gold: #d7b875;
  --shadow: 0 30px 90px rgb(0 0 0 / 38%);
  --shell: min(1120px, calc(100% - 40px));
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 4%, rgb(84 213 218 / 10%), transparent 26rem),
    radial-gradient(circle at 86% 26%, rgb(121 192 255 / 7%), transparent 28rem),
    var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 760px;
  background-image:
    linear-gradient(rgb(61 75 93 / 12%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(61 75 93 / 12%) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
  content: "";
}

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

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--cyan-bright);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--cyan-bright);
  outline-offset: 4px;
}

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

h1,
h2,
h3 {
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h1 {
  max-width: 760px;
  margin-bottom: 26px;
  font-size: clamp(3.1rem, 7.8vw, 6.6rem);
  font-weight: 780;
}

h1 em {
  display: block;
  color: var(--cyan);
  font-style: normal;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.15rem, 5vw, 4rem);
  font-weight: 740;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.22rem;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  color: var(--bg);
  background: var(--cyan-bright);
  font-weight: 750;
  transform: translateY(-180%);
}

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

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgb(61 75 93 / 55%);
  background: rgb(8 11 16 / 78%);
  backdrop-filter: blur(18px);
}

.nav-wrap,
.brand,
.site-header nav,
.hero-actions,
.trust-list,
.inline-links,
.cta-actions {
  display: flex;
  align-items: center;
}

.nav-wrap {
  min-height: 76px;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  gap: 11px;
  color: var(--text);
  font-size: 1.03rem;
  font-weight: 760;
  text-decoration: none;
}

.brand img {
  border-radius: 8px;
}

.site-header nav {
  gap: clamp(16px, 3vw, 34px);
}

.site-header nav a {
  color: var(--text-soft);
  font-size: 0.91rem;
  font-weight: 650;
  text-decoration: none;
}

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

.site-header nav .nav-github {
  padding: 8px 13px;
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  color: var(--text);
  background: rgb(255 255 255 / 3%);
}

.hero {
  padding: clamp(72px, 10vw, 132px) 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(410px, 0.95fr);
  align-items: center;
  gap: clamp(52px, 8vw, 96px);
}

.eyebrow,
.kicker {
  margin-bottom: 18px;
  color: var(--cyan-bright);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow span {
  color: var(--green);
  font-size: 0.75rem;
  line-height: 1;
  box-shadow: 0 0 20px rgb(86 211 100 / 75%);
}

.hero-lede {
  max-width: 650px;
  margin-bottom: 18px;
  color: var(--text-soft);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.65;
}

.directory-listing {
  max-width: 650px;
  margin-bottom: 34px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.65;
}

.directory-listing a {
  color: var(--cyan-bright);
  font-weight: 700;
}

.hero-actions,
.cta-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 0.94rem;
  font-weight: 760;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

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

.button-primary {
  color: #041013;
  background: var(--cyan);
  box-shadow: 0 12px 34px rgb(84 213 218 / 16%);
}

.button-primary:hover {
  color: #041013;
  background: var(--cyan-bright);
}

.button-secondary {
  border-color: var(--border-bright);
  color: var(--text);
  background: rgb(255 255 255 / 3%);
}

.button-secondary:hover {
  border-color: var(--muted);
  color: var(--text);
  background: rgb(255 255 255 / 6%);
}

.trust-list {
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 25px 0 0;
  padding: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.76rem;
  list-style: none;
}

.trust-list li::before {
  margin-right: 8px;
  color: var(--green);
  content: "✓";
}

.terminal {
  overflow: hidden;
  border: 1px solid var(--border-bright);
  border-radius: 15px;
  background: #080c11;
  box-shadow: var(--shadow);
  font-family: var(--mono);
  transform: perspective(1100px) rotateY(-2.5deg) rotateX(1deg);
}

.terminal-bar {
  position: relative;
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.terminal-bar > span {
  color: #ff5f56;
  font-size: 0.9rem;
  line-height: 1;
}

.terminal-bar > span:nth-child(2) {
  color: #ffbd2e;
}

.terminal-bar > span:nth-child(3) {
  color: #27c93f;
}

.terminal-bar p {
  position: absolute;
  inset: 0;
  display: grid;
  margin: 0;
  place-items: center;
  color: var(--muted);
  font-size: 0.7rem;
}

.terminal-body {
  padding: clamp(24px, 4vw, 34px);
  color: var(--text-soft);
  font-size: clamp(0.7rem, 1.15vw, 0.84rem);
  line-height: 1.55;
}

.terminal-body > p:first-child {
  margin-bottom: 28px;
  overflow-wrap: anywhere;
}

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

.terminal ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.terminal li {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-soft);
}

.terminal li b {
  color: var(--green);
}

.state {
  font-weight: 800;
}

.state-red {
  color: var(--red);
}

.state-green {
  color: var(--green);
}

.state-blue {
  color: var(--blue);
}

.terminal-success {
  margin: 24px 0 0;
  color: var(--green);
}

.proof-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(74px, 10vw, 120px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.proof-bar p {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 25px clamp(14px, 2.2vw, 28px);
  border-right: 1px solid var(--border);
}

.proof-bar p:first-child {
  padding-left: 0;
}

.proof-bar p:last-child {
  padding-right: 0;
  border-right: 0;
}

.proof-bar strong {
  font-size: 0.94rem;
}

.proof-bar span {
  color: var(--muted);
  font-size: 0.78rem;
}

.section {
  padding: clamp(92px, 13vw, 156px) 0;
}

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

.section-heading > p:last-child,
.split-heading > p,
.install-grid > div > p,
.cta-panel > div > p {
  color: var(--muted);
  font-size: 1.03rem;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0;
  padding: 1px;
  border-radius: 14px;
  background: var(--border);
  list-style: none;
}

.workflow-grid li {
  min-height: 260px;
  padding: clamp(26px, 4vw, 38px);
  background: var(--bg-raised);
}

.workflow-grid li:first-child {
  border-radius: 13px 0 0 13px;
}

.workflow-grid li:last-child {
  border-radius: 0 13px 13px 0;
}

.step-number {
  display: inline-block;
  margin-bottom: 60px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.workflow-grid p,
.feature-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.demo-frame {
  margin: clamp(54px, 8vw, 86px) 0 0;
}

.demo-frame img {
  width: 100%;
  border: 1px solid var(--border-bright);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.demo-frame figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.79rem;
  text-align: center;
}

.capabilities {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgb(13 17 23 / 72%);
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: end;
  gap: clamp(44px, 8vw, 110px);
  margin-bottom: 58px;
}

.split-heading h2 {
  margin-bottom: 0;
}

.split-heading > p {
  margin-bottom: 6px;
}

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

.feature-grid article {
  min-height: 230px;
  padding: 27px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(145deg, rgb(255 255 255 / 2.5%), transparent 65%);
}

.feature-icon {
  display: inline-grid;
  min-width: 42px;
  height: 42px;
  margin-bottom: 38px;
  padding: 0 8px;
  border: 1px solid rgb(84 213 218 / 34%);
  border-radius: 8px;
  place-items: center;
  color: var(--cyan-bright);
  background: rgb(84 213 218 / 7%);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 760;
}

.install-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(430px, 1.2fr);
  align-items: center;
  gap: clamp(54px, 10vw, 120px);
}

.install-grid h2 {
  margin-bottom: 22px;
}

.inline-links {
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-top: 28px;
}

.inline-links a {
  color: var(--cyan-bright);
  font-size: 0.9rem;
  font-weight: 700;
}

.code-stack {
  display: grid;
  gap: 14px;
}

.code-block {
  overflow: hidden;
  border: 1px solid var(--border-bright);
  border-radius: 11px;
  background: #080c11;
}

.code-block > p {
  margin: 0;
  padding: 9px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.code-block pre {
  overflow-x: auto;
  margin: 0;
  padding: 20px;
  color: var(--text);
  font-family: var(--mono);
  font-size: clamp(0.72rem, 1.4vw, 0.88rem);
}

.final-cta {
  padding-top: 20px;
}

.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 50px;
  padding: clamp(32px, 6vw, 62px);
  border: 1px solid var(--border-bright);
  border-radius: 18px;
  background:
    radial-gradient(circle at 90% 20%, rgb(84 213 218 / 12%), transparent 21rem),
    var(--bg-raised);
  box-shadow: var(--shadow);
}

.cta-panel h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.cta-panel > div > p:last-child {
  max-width: 650px;
  margin-bottom: 0;
}

.cta-actions {
  justify-content: flex-end;
}

.site-footer {
  margin-top: clamp(92px, 12vw, 150px);
  padding: 36px 0 42px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.footer-grid > div > p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 26px;
}

.site-footer nav a {
  color: var(--muted);
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .hero-grid,
  .split-heading,
  .install-grid,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 58px;
  }

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

  .terminal {
    width: min(620px, 100%);
    transform: none;
  }

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

  .proof-bar p:nth-child(2) {
    border-right: 0;
  }

  .proof-bar p:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }

  .proof-bar p:nth-child(3) {
    padding-left: 0;
  }

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

  .workflow-grid li {
    min-height: auto;
  }

  .workflow-grid li:first-child {
    border-radius: 13px 13px 0 0;
  }

  .workflow-grid li:last-child {
    border-radius: 0 0 13px 13px;
  }

  .step-number {
    margin-bottom: 36px;
  }

  .cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  :root {
    --shell: min(100% - 28px, 1120px);
  }

  html {
    scroll-behavior: auto;
  }

  .nav-wrap {
    min-height: 68px;
  }

  .site-header nav a:not(.nav-github) {
    display: none;
  }

  .hero {
    padding-top: 70px;
  }

  h1 {
    font-size: clamp(2.9rem, 15vw, 4.6rem);
  }

  .hero-actions .button,
  .cta-actions .button {
    width: 100%;
  }

  .terminal-body {
    padding: 20px 14px;
    font-size: 0.66rem;
  }

  .terminal li {
    grid-template-columns: 64px minmax(0, 1fr) 12px;
    gap: 7px;
    padding: 11px 9px;
  }

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

  .proof-bar p,
  .proof-bar p:first-child,
  .proof-bar p:nth-child(3),
  .proof-bar p:last-child {
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .proof-bar p:last-child {
    border-bottom: 0;
  }

  .feature-grid article {
    min-height: 0;
  }

  .feature-icon {
    margin-bottom: 28px;
  }

  .install-grid {
    gap: 42px;
  }

  .code-block pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

  .footer-grid {
    display: grid;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

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