:root {
  color-scheme: dark;
  --bg: #08090b;
  --bg-soft: #0d0f12;
  --surface: #12151a;
  --surface-strong: #171b22;
  --line: #2a3038;
  --line-strong: #3b444f;
  --text: #f3f6f8;
  --muted: #bac3cc;
  --subtle: #87919e;
  --cyan: #72f3d7;
  --green: #93e48b;
  --amber: #e9c46a;
  --red: #f07178;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

::selection {
  background: rgba(114, 243, 215, 0.3);
}

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

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

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

:not(pre) > code {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.08em 0.32em;
  color: #d9fff6;
  font-size: 0.92em;
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-140%);
}

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

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  padding: 22px 0;
}

.site-header__inner,
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0;
}

.nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.nav a,
.site-footer a,
.secondary-links a,
.inline-links a {
  border-radius: 6px;
  color: var(--muted);
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.nav a {
  padding: 9px 11px;
  font-size: 0.92rem;
}

.nav a:hover,
.site-footer a:hover,
.secondary-links a:hover,
.inline-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.hero {
  position: relative;
  display: flex;
  min-height: 82vh;
  align-items: flex-end;
  overflow: hidden;
  padding: 132px 0 70px;
  border-bottom: 1px solid var(--line);
}

.hero__image {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(8, 9, 11, 0.98) 0%, rgba(8, 9, 11, 0.83) 42%, rgba(8, 9, 11, 0.62) 100%),
    linear-gradient(0deg, rgba(8, 9, 11, 1) 0%, rgba(8, 9, 11, 0.2) 46%, rgba(8, 9, 11, 0.8) 100%),
    image-set(
      url("assets/screenshots/overview.webp") type("image/webp"),
      url("assets/screenshots/overview.png") type("image/png")
    );
  background-position: center;
  background-size: cover;
}

.hero__grid {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.1));
}

.hero__content {
  position: relative;
  z-index: 5;
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 700px;
  margin-bottom: 12px;
  font-size: 5rem;
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: 2.35rem;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero__subtitle {
  margin-bottom: 12px;
  color: var(--text);
  font-size: 1.45rem;
  line-height: 1.35;
}

.hero__copy {
  max-width: 680px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1.08rem;
}

.button-row,
.secondary-links,
.inline-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

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

.button--primary {
  background: var(--cyan);
  color: #06110f;
}

.button--primary:hover {
  background: #9affeb;
}

.button--secondary {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.button--secondary:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.13);
}

.secondary-links {
  margin-top: 18px;
}

.secondary-links a,
.inline-links a {
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 11px;
  font-size: 0.92rem;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 48px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--muted);
  font-size: 0.94rem;
  list-style: none;
}

.hero-facts li {
  position: relative;
  min-height: 48px;
  padding-left: 14px;
}

.hero-facts li::before {
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  content: "";
}

.section {
  padding: 88px 0;
}

.section--media,
.section--quiet {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.section-intro {
  max-width: 740px;
  margin-bottom: 34px;
}

.section-intro--wide {
  max-width: 860px;
}

.section-intro p,
.text-block p,
.install-copy p {
  color: var(--muted);
}

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

.info-card,
.link-grid a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.info-card {
  min-height: 220px;
  padding: 22px;
}

.info-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.card-rule {
  display: block;
  width: 38px;
  height: 3px;
  margin-bottom: 26px;
  border-radius: 999px;
}

.card-rule--green {
  background: var(--green);
}

.card-rule--cyan {
  background: var(--cyan);
}

.card-rule--amber {
  background: var(--amber);
}

.card-rule--red {
  background: var(--red);
}

.media-frame {
  margin: 0;
}

.media-frame img {
  display: block;
  overflow: hidden;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #0f1116;
  box-shadow: var(--shadow);
}

.media-frame figcaption {
  max-width: 720px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.install-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 28px;
  align-items: center;
}

.install-copy {
  max-width: 430px;
}

.terminal {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #0b0d11;
  box-shadow: var(--shadow);
}

.terminal__bar {
  display: flex;
  gap: 7px;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: #11151b;
}

.terminal__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal__bar span:nth-child(1) {
  background: var(--red);
}

.terminal__bar span:nth-child(2) {
  background: var(--amber);
}

.terminal__bar span:nth-child(3) {
  background: var(--green);
}

.terminal pre {
  margin: 0;
  overflow-x: auto;
  padding: 24px;
  color: #d9fff6;
  font-size: 1rem;
  line-height: 1.7;
}

.inline-links {
  grid-column: 2;
  align-self: start;
}

.text-block {
  max-width: 820px;
}

.text-block p {
  font-size: 1.04rem;
}

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

.link-grid a {
  display: block;
  min-height: 132px;
  padding: 18px;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.link-grid a:hover {
  border-color: rgba(114, 243, 215, 0.44);
  background: var(--surface-strong);
  transform: translateY(-2px);
}

.link-grid span {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.link-grid small {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.compare-table th,
.compare-table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.compare-table thead th {
  background: var(--surface);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.compare-table thead th:first-child {
  border-radius: 8px 0 0 0;
}

.compare-table thead th:last-child {
  border-radius: 0 8px 0 0;
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

.compare-table td:first-child {
  color: var(--muted);
  white-space: nowrap;
}

.cell--yes {
  color: var(--green);
}

.cell--no {
  color: var(--red);
  opacity: 0.7;
}

.cell--partial {
  color: var(--amber);
}

.faq-list {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  margin-left: auto;
  flex-shrink: 0;
  color: var(--muted);
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1;
  transition: transform 160ms ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.faq-item > p {
  margin: 0;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  padding: 7px 9px;
  font-size: 0.9rem;
}

@media (max-width: 920px) {
  h1 {
    font-size: 3.9rem;
  }

  h2 {
    font-size: 2rem;
  }

  .site-header__inner,
  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .hero {
    min-height: 78vh;
    padding-top: 150px;
  }

  .hero-facts,
  .card-grid,
  .link-grid,
  .install-layout {
    grid-template-columns: 1fr 1fr;
  }

  .inline-links {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .container {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    padding-top: 16px;
  }

  .nav a {
    padding: 8px 9px;
  }

  .hero {
    min-height: 76vh;
    padding: 150px 0 46px;
  }

  .hero__image {
    background-position: 58% center;
  }

  h1 {
    font-size: 3.05rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero__subtitle {
    font-size: 1.18rem;
  }

  .button-row,
  .secondary-links,
  .inline-links {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .secondary-links a,
  .inline-links a {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero-facts,
  .card-grid,
  .link-grid,
  .install-layout {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 62px 0;
  }

  .info-card,
  .link-grid a {
    min-height: auto;
  }

  .terminal pre {
    padding: 20px;
    font-size: 0.92rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
