:root {
  color-scheme: dark;
  --bg: #18191b;
  --panel: #25272a;
  --panel-2: #303236;
  --line: #4b4f55;
  --text: #f4f6f8;
  --muted: #b6bec9;
  --soft: #8f99a8;
  --lime: #b6ed4a;
  --violet: #c0a8ff;
  --amber: #ffc66d;
  --teal: #62d6c5;
  --red: #ff6b6b;
  --shadow: 0 28px 80px rgba(0, 0, 0, .38);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 64px);
  background: rgba(24, 25, 27, .76);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(18px);
}

.brand,
nav,
.hero-actions,
footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 11px;
  font-weight: 760;
}

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

nav {
  gap: clamp(14px, 3vw, 32px);
  color: var(--muted);
  font-size: 14px;
}

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

.language-link {
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 6px;
  color: var(--text);
  font-weight: 760;
}

.hero {
  position: relative;
  min-height: 94vh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 112px clamp(18px, 6vw, 88px) 92px;
  isolation: isolate;
}

.ide-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 116px clamp(16px, 4vw, 70px) 54px;
}

.ide-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(24, 25, 27, .9) 0%, rgba(24, 25, 27, .56) 42%, rgba(24, 25, 27, .08) 100%),
    linear-gradient(180deg, rgba(24, 25, 27, .08), rgba(24, 25, 27, .72));
}

.screenshot-trigger {
  display: block;
  width: min(1180px, 82vw);
  padding: 0;
  background: transparent;
  border: 0;
  cursor: zoom-in;
}

.screenshot-trigger:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 5px;
}

.screenshot-trigger img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2556 / 1438;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: .98;
  filter: saturate(1.08) brightness(1.08);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--lime);
  font-size: 13px;
  font-weight: 780;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

pre {
  margin: 0;
}

h1 {
  margin: 0;
  font-size: clamp(64px, 11vw, 142px);
  line-height: .88;
  letter-spacing: 0;
}

.lead {
  max-width: 650px;
  margin: 28px 0 0;
  color: #e3e7ed;
  font-size: clamp(19px, 2.2vw, 27px);
  line-height: 1.38;
}

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

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 7px;
  font-weight: 760;
}

.button.primary {
  color: #131517;
  background: var(--lime);
}

.button.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
}

.feature-band,
.workflow,
.download,
.start {
  padding: clamp(74px, 9vw, 118px) clamp(18px, 6vw, 88px);
}

.feature-band {
  background: #f1f3f0;
  color: #191b1e;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 36px;
}

.section-heading.compact {
  margin-bottom: 30px;
}

.section-heading h2,
.start h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1.02;
  letter-spacing: 0;
}

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

.feature-grid article,
.steps div {
  min-height: 230px;
  padding: 26px;
  background: #ffffff;
  border: 1px solid #dde2dc;
  border-radius: 8px;
}

.marker {
  display: block;
  width: 36px;
  height: 5px;
  margin-bottom: 34px;
  border-radius: 99px;
}

.lime {
  background: #8fc91f;
}

.violet {
  background: #8c70e8;
}

.amber {
  background: #d98a22;
}

.teal {
  background: #239c8e;
}

.blue {
  background: #3f86d8;
}

.rose {
  background: #d85d7a;
}

h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.15;
}

.feature-grid p,
.steps p,
.start p {
  margin: 0;
  color: #505862;
  line-height: 1.65;
}

.workflow {
  background: #202124;
}

.workflow .section-heading {
  max-width: 860px;
}

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

.steps div {
  background: #2c2e31;
  border-color: #45494f;
}

.steps strong {
  display: block;
  margin-bottom: 38px;
  color: var(--teal);
  font-size: 13px;
}

.steps p {
  color: var(--muted);
}

.download {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(360px, .65fr);
  gap: clamp(24px, 6vw, 76px);
  align-items: center;
  background: #f1f3f0;
  color: #191b1e;
}

.download p {
  max-width: 620px;
  margin: 18px 0 0;
  color: #505862;
  line-height: 1.65;
}

.download-card {
  display: grid;
  gap: 12px;
  padding: 28px;
  background: #ffffff;
  border: 1px solid #dde2dc;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(20, 24, 30, .12);
}

.download-options {
  display: grid;
  gap: 14px;
}

.download-card:hover,
.download-card:focus-visible {
  border-color: #9abf35;
}

.download-card span,
.download-card small {
  color: #505862;
}

.download-card strong {
  color: #191b1e;
  font-size: 28px;
}

.start {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, .7fr);
  gap: clamp(24px, 6vw, 76px);
  align-items: center;
  background: #e7e9ee;
  color: #17191c;
}

.start.alt {
  background: #f5f6f8;
  padding-top: clamp(48px, 6vw, 80px);
}

.start p {
  max-width: 560px;
  margin-top: 18px;
}

.command {
  padding: 28px;
  border-radius: 8px;
  background: #1e2023;
  border: 1px solid #373c42;
  box-shadow: 0 18px 44px rgba(20, 24, 30, .2);
  color: #f8f8f2;
  font: 16px/1.7 "Cascadia Mono", Consolas, monospace;
  overflow-x: auto;
}

footer {
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 6vw, 88px);
  background: #18191b;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, .08);
}

footer span:first-child {
  color: var(--text);
  font-weight: 760;
}

footer a {
  color: var(--text);
  font-weight: 760;
}

body.modal-open {
  overflow: hidden;
}

.screenshot-modal[hidden] {
  display: none;
}

.screenshot-modal {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 9, 11, .86);
  border: 0;
  cursor: zoom-out;
}

.modal-content {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.modal-content img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .5);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  background: rgba(20, 22, 25, .86);
  color: var(--text);
  cursor: pointer;
  font-size: 18px;
  font-weight: 760;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: rgba(45, 48, 54, .96);
}

@media (max-width: 1020px) {
  .screenshot-trigger {
    width: 980px;
    max-width: none;
    transform: translateX(250px);
  }

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

  .download,
  .start {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 66px;
  }

  nav {
    display: none;
  }

  .hero {
    min-height: 92vh;
    padding-top: 104px;
  }

  .ide-scene {
    padding-top: 94px;
  }

  .screenshot-trigger {
    width: 940px;
    transform: translateX(370px) scale(.86);
    transform-origin: top left;
  }

  .hero-content {
    max-width: 96%;
  }

  .lead {
    max-width: 94%;
  }

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

  .feature-grid article,
  .steps div {
    min-height: auto;
  }

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

@media (max-width: 420px) {
  .button {
    width: 100%;
    justify-content: center;
  }

  .command {
    font-size: 14px;
  }
}
