:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: #07111f;
  --panel-strong: #0f172a;
  --line: #1e293b;
  --line-strong: #334155;
  --text: #f8fafc;
  --muted: #94a3b8;
  --subtle: #64748b;
  --cyan: #22d3ee;
  --green: #a3e635;
  --pink: #f472b6;
  --purple: #a78bfa;
  --yellow: #facc15;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.96) 34rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, black, transparent 78%);
}

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

code,
pre {
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
}

code {
  color: #d9f99d;
}

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

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 68px;
  padding: 14px max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(16px);
}

.brand,
.site-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--text);
  font-weight: 800;
}

.brand-mark {
  position: relative;
  width: 26px;
  height: 26px;
  border: 3px solid var(--cyan);
  transform: skew(-10deg);
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-left: 2px solid var(--purple);
  border-bottom: 2px solid var(--green);
}

.site-nav {
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.72);
}

.site-nav a {
  min-height: 36px;
  padding: 9px 12px;
  border-radius: 6px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: rgba(34, 211, 238, 0.12);
  color: var(--cyan);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 620px;
  overflow: hidden;
  padding: 56px max(24px, calc((100vw - var(--max)) / 2)) 44px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.82) 46%, rgba(2, 6, 23, 0.16) 100%);
}

.hero-beams {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero-beams span {
  position: absolute;
  right: -80px;
  width: 66%;
  height: 58px;
  transform: skewX(-16deg);
  opacity: 0.26;
}

.hero-beams span:nth-child(1) {
  top: 130px;
  background: linear-gradient(90deg, transparent, var(--cyan));
}

.hero-beams span:nth-child(2) {
  top: 230px;
  background: linear-gradient(90deg, transparent, var(--green));
}

.hero-beams span:nth-child(3) {
  top: 330px;
  background: linear-gradient(90deg, transparent, var(--pink));
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 500px;
}

.hero-logo {
  width: 330px;
  height: auto;
  margin: 0 0 28px;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 500px;
  margin: 0;
  color: var(--text);
  font-size: 64px;
  line-height: 0.98;
}

.hero-lede {
  max-width: 500px;
  margin: 24px 0 0;
  color: #cbd5e1;
  font-size: 19px;
  line-height: 1.6;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 17px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 800;
}

.button.primary {
  color: #02121a;
  background: var(--cyan);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.2), 0 12px 32px rgba(34, 211, 238, 0.25);
}

.button.secondary {
  color: #dbeafe;
  border-color: var(--line-strong);
  background: rgba(15, 23, 42, 0.72);
}

.button:hover,
.copy-button:hover,
.install-links a:hover {
  transform: translateY(-1px);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 520px;
  margin: 32px 0 0;
}

.hero-facts div {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: rgba(7, 17, 31, 0.82);
}

.hero-facts dt {
  color: var(--subtle);
  font-size: 13px;
  font-weight: 800;
}

.hero-facts dd {
  margin: 5px 0 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.hero-preview {
  position: absolute;
  right: max(24px, calc((100vw - var(--max)) / 2));
  bottom: -18px;
  z-index: 1;
  width: 600px;
  margin: 0;
  border-radius: 8px;
  opacity: 0.92;
  filter: drop-shadow(0 38px 80px rgba(0, 0, 0, 0.48));
}

.hero-preview img {
  border-radius: 8px;
}

.command-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  transform: translateY(-1px);
}

.command-line {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  background: #030a16;
  color: #e5e7eb;
  font-size: 14px;
  overflow: hidden;
}

.prompt {
  margin-right: 8px;
  color: var(--green);
  font-weight: 900;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 92px 24px;
}

.section-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 42px;
}

.section-heading h2,
.section-copy h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.08;
}

.section-heading.compact {
  max-width: 780px;
}

.section-copy p {
  margin: 20px 0 0;
  color: #cbd5e1;
  font-size: 17px;
  line-height: 1.7;
}

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

.feature-card,
.install-card,
.workflow-step {
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: rgba(7, 17, 31, 0.72);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.feature-card {
  padding: 22px;
}

.feature-kicker {
  display: inline-flex;
  margin-bottom: 52px;
  color: var(--green);
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
  font-weight: 900;
}

.feature-card h3,
.install-card h3,
.workflow-step h3 {
  margin: 0;
  font-size: 20px;
}

.feature-card p,
.workflow-step p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.62;
}

.split-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 46px;
  align-items: center;
}

.media-panel {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: #030a16;
  padding: 10px;
}

.media-panel img {
  border-radius: 8px;
}

.profile-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.profile-list span {
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.78);
  color: #dbeafe;
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
}

.install-section {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.install-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.install-card {
  padding: 18px;
}

.install-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.copy-button {
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: #cbd5e1;
  background: #0f172a;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

pre {
  margin: 18px 0 0;
  padding: 14px;
  border: 1px solid #172033;
  border-radius: 8px;
  background: #010714;
  color: #e5e7eb;
  overflow-x: hidden;
}

pre code {
  color: #e5e7eb;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

#preview,
#profiles,
#install {
  scroll-margin-top: 90px;
}

.install-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.install-links a {
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  color: var(--cyan);
  background: rgba(15, 23, 42, 0.72);
  font-weight: 800;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.workflow-step {
  padding: 22px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 24px;
  border: 1px solid rgba(163, 230, 53, 0.35);
  border-radius: 8px;
  color: var(--green);
  font-weight: 900;
  background: rgba(163, 230, 53, 0.08);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 24px 44px;
  color: var(--muted);
}

.site-footer a {
  color: var(--cyan);
  font-weight: 800;
}

@media (max-width: 1040px) {
  h1 {
    font-size: 52px;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-preview {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 760px;
    margin-top: 38px;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.7));
  }

  .section-grid,
  .split-section {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .site-header {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 18px;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
  }

  .site-nav a {
    flex: 0 0 auto;
  }

  .hero {
    min-height: 0;
    padding: 34px 18px 38px;
  }

  .hero-logo {
    width: 100%;
    max-width: 330px;
  }

  h1 {
    font-size: 40px;
    line-height: 1.05;
  }

  .hero-lede {
    font-size: 17px;
  }

  .hero-facts,
  .command-band,
  .install-grid,
  .workflow {
    grid-template-columns: 1fr;
  }

  .hero-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-facts div {
    padding: 10px;
  }

  .hero-facts dt {
    font-size: 11px;
  }

  .hero-facts dd {
    font-size: 15px;
  }

  .command-band,
  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .section-heading h2,
  .section-copy h2 {
    font-size: 32px;
  }

  .install-card-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  h1 {
    font-size: 34px;
  }
}

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