:root {
  color-scheme: light;
  --ink: #07111f;
  --ink-soft: #263649;
  --paper: #f7f9fb;
  --white: #ffffff;
  --line: #d9e1e8;
  --cyan: #5de1d2;
  --cyan-dark: #087d74;
  --green: #b6ee6e;
  --amber: #ffc760;
  --rose: #ff8d9d;
  --max: 1180px;
  --header-height: 68px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

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

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

figure,
p,
h1,
h2,
h3 {
  margin: 0;
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(28px, calc((100vw - var(--max)) / 2));
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(7, 17, 31, 0.72);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 760;
}

.brand img {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 650;
}

.nav-links a:not(.nav-github) {
  color: rgba(255, 255, 255, 0.78);
}

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

.nav-github {
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 6px;
}

.hero {
  position: relative;
  min-height: 680px;
  height: 88svh;
  max-height: 840px;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
  isolation: isolate;
}

.hero-backdrop,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-backdrop {
  overflow: hidden;
  background: #07111f;
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(93, 225, 210, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93, 225, 210, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, transparent 8%, #000 50%, #000 100%);
}

.hero-stage {
  position: absolute;
  z-index: 1;
  top: var(--header-height);
  right: max(-26px, calc((100vw - 1540px) / 2));
  width: 910px;
  height: calc(100% - var(--header-height));
}

.hero-stage::before,
.hero-stage::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero-stage::before {
  z-index: 0;
  left: 118px;
  top: 112px;
  width: 710px;
  height: 490px;
  border: 1px solid rgba(93, 225, 210, 0.2);
  transform: skewY(-4deg);
}

.hero-stage::after {
  z-index: 5;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 17, 31, 0.45) 0%, transparent 18%, transparent 88%, rgba(7, 17, 31, 0.25) 100%);
}

.hero-frame {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(203, 220, 235, 0.38);
  border-radius: 7px;
  background: var(--white);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.46);
  transform-origin: center;
}

.hero-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-frame > span {
  position: absolute;
  z-index: 2;
  top: 13px;
  left: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 1px 7px rgba(0, 0, 0, 0.9);
}

.hero-frame > span::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(93, 225, 210, 0.18);
}

.hero-frame-prompt {
  z-index: 1;
  top: 62px;
  right: 292px;
  width: 520px;
  opacity: 0.83;
  transform: rotate(-3deg);
  animation: hero-drift-prompt 9s ease-in-out infinite;
}

.hero-frame-output {
  z-index: 3;
  top: 202px;
  right: 52px;
  width: 650px;
  transform: rotate(0.7deg);
  animation: hero-drift-output 8s ease-in-out infinite;
}

.hero-frame-languages {
  z-index: 2;
  top: 492px;
  right: 6px;
  width: 510px;
  opacity: 0.9;
  transform: rotate(2.2deg);
  animation: hero-drift-languages 10s ease-in-out infinite;
}

.hero-frame-output > span,
.hero-frame-languages > span {
  color: rgba(7, 17, 31, 0.86);
  text-shadow: 0 1px 6px rgba(255, 255, 255, 0.92);
}

.hero-shade {
  z-index: 2;
  background:
    linear-gradient(90deg, #07111f 0%, rgba(7, 17, 31, 0.98) 31%, rgba(7, 17, 31, 0.73) 48%, rgba(7, 17, 31, 0.12) 73%, rgba(7, 17, 31, 0.1) 100%),
    linear-gradient(0deg, rgba(7, 17, 31, 0.72) 0%, transparent 35%);
}

.hero-content {
  position: relative;
  z-index: 6;
  width: min(var(--max), calc(100% - 56px));
  margin: 0 auto;
  padding-top: 140px;
}

.eyebrow {
  color: var(--cyan-dark);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow,
.outputs .eyebrow {
  color: var(--cyan);
}

.hero h1 {
  margin-top: 18px;
  font-size: 78px;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 650px;
  margin-top: 22px;
  font-size: 31px;
  font-weight: 710;
  line-height: 1.18;
}

.hero-copy {
  max-width: 580px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  line-height: 1.55;
}

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

.hero-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  width: min(560px, 100%);
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  font-weight: 680;
}

.hero-capabilities span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.capability-mark {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  background: var(--cyan);
}

.capability-mark.amber {
  background: var(--amber);
}

.capability-mark.green {
  background: var(--green);
}

@keyframes hero-drift-prompt {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-3deg); }
  50% { transform: translate3d(-5px, -7px, 0) rotate(-2.6deg); }
}

@keyframes hero-drift-output {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0.7deg); }
  50% { transform: translate3d(4px, -8px, 0) rotate(0.3deg); }
}

@keyframes hero-drift-languages {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(2.2deg); }
  50% { transform: translate3d(-4px, 6px, 0) rotate(1.8deg); }
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 760;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button.primary {
  color: var(--ink);
  background: var(--cyan);
}

.button.primary:hover {
  background: #7aeadf;
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(7, 17, 31, 0.3);
}

.hero-cue {
  position: absolute;
  z-index: 7;
  left: 50%;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.section {
  padding: 104px 28px;
}

.section-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.section-heading {
  max-width: 720px;
}

.section-heading h2 {
  margin-top: 14px;
  font-size: 45px;
  line-height: 1.1;
  letter-spacing: 0;
}

.section-heading > p:last-child,
.section-heading div + p,
.demo-heading > p {
  margin-top: 18px;
  color: #506174;
  font-size: 18px;
}

.section-heading.centered {
  margin: 0 auto;
  text-align: center;
}

.before-after {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
  align-items: center;
  margin-top: 58px;
}

.before-after figure {
  min-width: 0;
}

.before-after img,
.wide-frame img,
.workflow-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid #cad4de;
  border-radius: 7px;
  box-shadow: 0 22px 56px rgba(26, 42, 58, 0.13);
}

.before-after figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 720;
}

.before-after figcaption span,
.pipeline span {
  color: var(--cyan-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.flow-arrow {
  color: #8292a3;
  font-size: 28px;
  text-align: center;
}

.outputs {
  color: var(--white);
  background: #0b1726;
}

.outputs .section-inner {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 64px;
  align-items: center;
}

.outputs .section-heading > p:last-child {
  color: rgba(255, 255, 255, 0.64);
}

.language-list {
  margin-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.language-list div {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.language-list strong {
  font-size: 14px;
}

.language-list span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
}

.wide-frame img {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
}

.demo {
  background: var(--white);
}

.demo-heading {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 80px;
  align-items: end;
}

.demo-frame {
  margin-top: 46px;
  overflow: hidden;
  border: 1px solid #cbd6e0;
  border-radius: 8px;
  background: var(--ink);
  box-shadow: 0 26px 70px rgba(18, 38, 58, 0.16);
}

.demo-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.workflow {
  background: #eef3f6;
}

.workflow-layout {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 64px;
  align-items: center;
}

.pipeline {
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #cbd5df;
}

.pipeline li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 15px 0;
  border-bottom: 1px solid #cbd5df;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 680;
}

.install {
  color: var(--ink);
  background: var(--green);
}

.install .eyebrow {
  color: #476f17;
}

.install-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 82px;
  align-items: center;
}

.install .section-heading > p:last-child {
  color: #355119;
}

.install-stack {
  display: grid;
  gap: 12px;
}

.command {
  min-width: 0;
  padding: 15px 18px;
  border: 1px solid rgba(7, 17, 31, 0.2);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.48);
}

.command span {
  display: block;
  margin-bottom: 5px;
  color: #476021;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.command code {
  display: block;
  overflow-x: auto;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  white-space: nowrap;
}

.dark-button {
  justify-self: start;
  color: var(--white) !important;
  background: var(--ink) !important;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 32px max(28px, calc((100vw - var(--max)) / 2));
  color: rgba(255, 255, 255, 0.64);
  background: var(--ink);
  font-size: 13px;
}

.footer-brand {
  color: var(--white);
}

.site-footer > div {
  justify-self: end;
  display: flex;
  gap: 22px;
}

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

@media (max-width: 1180px) {
  .hero-stage {
    right: -170px;
    width: 860px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, #07111f 0%, rgba(7, 17, 31, 0.99) 45%, rgba(7, 17, 31, 0.88) 57%, rgba(7, 17, 31, 0.22) 80%, rgba(7, 17, 31, 0.1) 100%),
      linear-gradient(0deg, rgba(7, 17, 31, 0.76) 0%, transparent 40%);
  }

  .hero-frame-prompt {
    right: 260px;
    width: 460px;
  }

  .hero-frame-output {
    right: 110px;
    width: 540px;
  }

  .hero-frame-languages {
    right: 0;
    width: 450px;
  }
}

@media (max-width: 900px) {
  .nav-links a:not(.nav-github) {
    display: none;
  }

  .hero {
    min-height: 680px;
    height: 88svh;
  }

  .hero-stage {
    right: -170px;
    width: 720px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, #07111f 0%, rgba(7, 17, 31, 0.99) 56%, rgba(7, 17, 31, 0.64) 72%, rgba(7, 17, 31, 0.14) 100%),
      linear-gradient(0deg, rgba(7, 17, 31, 0.76) 0%, transparent 40%);
  }

  .hero-frame-prompt {
    right: 238px;
    width: 440px;
  }

  .hero-frame-output {
    top: 230px;
    right: 90px;
    width: 480px;
  }

  .hero-frame-languages {
    top: 500px;
    right: 0;
    width: 430px;
  }

  .hero h1 {
    font-size: 60px;
  }

  .hero-subtitle {
    font-size: 27px;
  }

  .section {
    padding: 78px 24px;
  }

  .section-heading h2 {
    font-size: 36px;
  }

  .outputs .section-inner,
  .workflow-layout,
  .install-layout {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .demo-heading {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer > p {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 62px;
  }

  .site-header {
    padding: 0 18px;
  }

  .brand {
    font-size: 17px;
  }

  .brand img {
    width: 29px;
    height: 29px;
  }

  .nav-github {
    padding: 7px 11px;
  }

  .hero {
    min-height: 748px;
    height: 92svh;
    max-height: 790px;
  }

  .hero-grid {
    background-size: 40px 40px;
    mask-image: linear-gradient(180deg, transparent 0%, #000 46%, #000 100%);
  }

  .hero-stage {
    top: 424px;
    right: -58px;
    width: 500px;
    height: 332px;
  }

  .hero-stage::before {
    left: 72px;
    top: 30px;
    width: 390px;
    height: 250px;
  }

  .hero-stage::after {
    background: linear-gradient(180deg, rgba(7, 17, 31, 0.5) 0%, transparent 32%, rgba(7, 17, 31, 0.18) 100%);
  }

  .hero-frame-prompt {
    top: 6px;
    right: 182px;
    width: 300px;
    opacity: 0.72;
  }

  .hero-frame-output {
    top: 92px;
    right: 60px;
    width: 370px;
  }

  .hero-frame-languages {
    display: none;
  }

  .hero-frame > span {
    top: 9px;
    left: 10px;
    font-size: 9px;
  }

  .hero-shade {
    background: linear-gradient(180deg, #07111f 0%, #07111f 49%, rgba(7, 17, 31, 0.88) 61%, rgba(7, 17, 31, 0.16) 100%);
  }

  .hero-content {
    width: calc(100% - 36px);
    padding-top: 100px;
  }

  .hero h1 {
    margin-top: 14px;
    font-size: 52px;
  }

  .hero-subtitle {
    margin-top: 18px;
    font-size: 23px;
  }

  .hero-copy {
    margin-top: 15px;
    font-size: 16px;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .hero-actions .button {
    flex: 1 1 150px;
  }

  .hero-capabilities {
    display: none;
  }

  .hero-cue {
    bottom: 14px;
    white-space: nowrap;
  }

  .section {
    padding: 64px 18px;
  }

  .section-heading h2 {
    font-size: 31px;
  }

  .section-heading > p:last-child,
  .section-heading div + p,
  .demo-heading > p {
    font-size: 16px;
  }

  .before-after {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 40px;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }

  .outputs .section-inner,
  .workflow-layout,
  .install-layout {
    gap: 36px;
  }

  .language-list div {
    grid-template-columns: 110px 1fr;
  }

  .demo-frame {
    margin-top: 32px;
  }

  .command code {
    font-size: 12px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 28px 18px;
  }

  .site-footer > div {
    justify-self: start;
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }

  .hero-frame {
    animation: none;
  }
}
