:root {
  --bg: #0c0c0e;
  --surface: #111114;
  --surface-raised: #17171b;
  --border: #29292f;
  --border-strong: #3a3a42;
  --text: #e7e7e9;
  --muted: #95959f;
  --faint: #82828c;
  --accent: #2bc3d6;
  --accent-hover: #58d5e3;
  --accent-soft: rgba(43, 195, 214, 0.13);
  --signal: #ffbd33;
  --signal-hover: #ffd064;
  --signal-soft: rgba(255, 189, 51, 0.12);
  color: var(--text);
  background: var(--bg);
  font-family: "JetBrains Mono", "Fira Code", "Cascadia Code", "Liberation Mono", monospace;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 280px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 42% 7%, rgba(43, 195, 214, 0.06), transparent 26rem),
    radial-gradient(circle at 62% 10%, rgba(255, 189, 51, 0.035), transparent 22rem),
    var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
}

body::before {
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 760px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
  content: "";
  pointer-events: none;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 8px 12px;
  transform: translateY(-180%);
  border: 1px solid var(--accent);
  background: var(--surface-raised);
}

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

.site-header,
main,
.site-footer {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  border-bottom: 1px solid var(--border);
}

.wordmark {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.wordmark .wordmark-mark,
.site-footer .wordmark-mark {
  margin-right: 2px;
  color: var(--accent);
}

.wordmark .wordmark-signal,
.site-footer .wordmark-signal {
  color: var(--signal);
}

.header-link {
  color: var(--muted);
  font-size: 11px;
  text-decoration: none;
}

.header-link:hover {
  color: var(--accent);
}

.hero {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: clamp(84px, 12vw, 148px) 0 clamp(108px, 14vw, 168px);
  text-align: center;
}

.eyebrow,
.section-index {
  margin: 0 0 23px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow span {
  color: var(--signal);
}

.section-index {
  color: var(--accent);
}

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

h1 {
  max-width: 920px;
  margin-bottom: 27px;
  font-size: clamp(42px, 7.2vw, 82px);
  font-weight: 600;
  letter-spacing: -0.075em;
  line-height: 1.02;
}

.hero-copy {
  max-width: 670px;
  margin-bottom: 54px;
  color: var(--muted);
  font-size: clamp(13px, 1.6vw, 16px);
  line-height: 1.75;
}

.terminal {
  width: min(710px, 100%);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  background: rgba(14, 14, 17, 0.94);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
  text-align: left;
}

.terminal-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 43px;
  padding: 0 15px;
  border-bottom: 1px solid var(--border);
  color: var(--faint);
  background: var(--surface);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots i {
  width: 6px;
  height: 6px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
}

.terminal-dots i:first-child {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.terminal-dots i:last-child {
  border-color: var(--signal);
  background: var(--signal-soft);
}

.terminal-state {
  justify-self: end;
}

.terminal-state i {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  vertical-align: 1px;
}

.terminal-body {
  min-height: 227px;
  padding: 31px clamp(19px, 5vw, 46px);
}

.terminal-output {
  min-width: 0;
  color: #b6b6be;
  font-size: clamp(11px, 1.7vw, 14px);
  line-height: 2.2;
  white-space: pre;
}

.terminal-line {
  min-height: 2.2em;
}

.terminal-line--command {
  color: var(--text);
  font-weight: 600;
}

.terminal-line--result {
  color: var(--signal);
}

.terminal-line.is-active::after {
  display: inline-block;
  width: 0.58em;
  height: 1.08em;
  margin-left: 4px;
  background: var(--accent);
  content: "";
  vertical-align: -0.16em;
  animation: cursor-blink 0.8s steps(1, end) infinite;
}

@keyframes cursor-blink {
  50% {
    opacity: 0;
  }
}

.download-block {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin-top: 42px;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 274px;
  min-height: 52px;
  padding: 13px 22px;
  border: 1px solid #e4a829;
  border-radius: 4px;
  color: #181105;
  background: var(--signal);
  box-shadow: 0 8px 30px rgba(255, 189, 51, 0.13);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.download-button:hover {
  transform: translateY(-2px);
  color: #181105;
  background: var(--signal-hover);
  box-shadow: 0 12px 36px rgba(255, 189, 51, 0.19);
}

.download-button svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.6;
}

.download-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.download-note a {
  font-weight: 600;
}

.download-meta {
  margin: 7px 0 0;
  color: var(--faint);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section {
  padding: clamp(86px, 12vw, 136px) 0;
  border-top: 1px solid var(--border);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(320px, 1.6fr);
  gap: 24px;
  margin-bottom: 62px;
}

.section-heading .section-index {
  padding-top: 9px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(29px, 4.5vw, 50px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.12;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.feature-grid article {
  min-height: 245px;
  padding: 28px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(17, 17, 20, 0.45);
}

.feature-key {
  display: block;
  margin-bottom: 48px;
  color: var(--accent);
  font-size: 9px;
}

.feature-grid article:nth-child(even) .feature-key {
  color: var(--signal);
}

.feature-grid h3 {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.feature-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.preview-section .section-heading {
  grid-template-columns: minmax(150px, 0.7fr) minmax(280px, 1fr) minmax(240px, 0.6fr);
}

.preview-section .section-heading > p:last-child {
  align-self: end;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.preview-image {
  display: block;
  width: 100%;
  height: auto;
  padding: 10px;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
}

.preview-image:only-child {
  grid-column: 1 / -1;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 104px;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: 9px;
}

.site-footer > span {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.site-footer p {
  margin: 0;
  text-transform: uppercase;
}

.site-footer a {
  justify-self: end;
  text-decoration: none;
}

@media (max-width: 760px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 32px, 1120px);
  }

  .hero {
    padding-top: 78px;
  }

  h1 {
    letter-spacing: -0.065em;
    line-height: 1.12;
  }

  .terminal-bar {
    grid-template-columns: 1fr 1fr;
  }

  .terminal-bar > span:not(.terminal-state) {
    display: none;
  }

  .terminal-body {
    min-height: 204px;
  }

  .section-heading,
  .preview-section .section-heading {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 40px;
  }

  .section-heading .section-index {
    padding-top: 0;
  }

  .preview-section .section-heading > p:last-child {
    max-width: 520px;
    margin-top: 14px;
  }

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

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

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

@media (max-width: 480px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 24px, 1120px);
  }

  .site-header {
    min-height: 64px;
  }

  .hero {
    padding: 64px 0 96px;
  }

  .hero-copy {
    margin-bottom: 40px;
  }

  .terminal-body {
    min-height: 190px;
    padding-block: 25px;
  }

  .terminal-output {
    line-height: 2.1;
  }

  .download-block,
  .download-button {
    width: 100%;
  }

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

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

  .feature-key {
    margin-bottom: 30px;
  }

  .preview-image {
    padding: 6px;
  }

  .site-footer {
    min-height: 90px;
  }

  .site-footer a {
    max-width: 150px;
    text-align: right;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .terminal-line.is-active::after {
    display: none;
  }
}
