/* SauceCtrl marketing site */

:root {
  color-scheme: dark;
  --bg: #111114;
  --bg-2: #18181b;
  --panel: #1d1d21;
  --line: #2c2c32;
  --text: #f4f4f5;
  --muted: #a8a8b3;
  --accent: #56b6c2;
  --accent-strong: #7cc9d3;
  --accent-ink: #0b1a1c;
  --chrome: #202024;
  --chrome-line: #2c2c31;
  --chrome-border: #34343a;
  --chrome-title: #9a9aa3;
  --code-bg: #0c0c0e;
  --code-text: #e4e4e7;
  --line-strong: #3a3a42;
  --line-hover: #45454d;
  --code-muted: #c9c9d1;
  --radius: 14px;
  --max: 1160px;
  --gutter: 24px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  accent-color: var(--accent);
  caret-color: var(--accent);
  scrollbar-color: var(--line-strong) var(--bg);
}

[id] {
  scroll-margin-top: 80px;
}

::selection {
  background: rgba(86, 182, 194, 0.35);
  color: var(--text);
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: var(--accent-strong);
  text-underline-offset: 3px;
}

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

:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3,
h4 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 700;
}

.skip:focus {
  left: 8px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}

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

.nav .btn {
  color: var(--accent-ink);
}

/* ---------- Buttons ---------- */

.btn {
  max-width: 100%;
  text-align: center;
  overflow-wrap: anywhere;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: var(--accent-strong);
  color: var(--accent-ink);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--line-hover);
  color: var(--text);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 14px;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 88px 0 72px;
  text-align: center;
  background:
    radial-gradient(900px 520px at 50% -10%, rgba(86, 182, 194, 0.22), transparent 70%),
    var(--bg);
}

.hero h1 {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800;
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--accent);
}

.hero .lede {
  max-width: 680px;
  margin: 0 auto 32px;
  color: var(--muted);
  font-size: clamp(17px, 2.2vw, 20px);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

/* ---------- Mac window frame ---------- */

.window {
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--chrome-border);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.03);
  text-align: left;
}

.window-bar {
  position: relative;
  height: 30px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  background: var(--chrome);
  border-bottom: 1px solid var(--chrome-line);
}

.window-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: block;
}

.window-bar i:nth-child(1) {
  background: #ff5f57;
}

.window-bar i:nth-child(2) {
  background: #febc2e;
}

.window-bar i:nth-child(3) {
  background: #28c840;
}

.window-bar span {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--chrome-title);
  pointer-events: none;
}

.hero .window {
  max-width: 1080px;
  margin: 0 auto;
}

/* ---------- Sections ---------- */

section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-head p {
  color: var(--muted);
  font-size: 18px;
}

/* ---------- Change and feature lists ---------- */

.changes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 56px;
  margin: 0;
  max-width: 980px;
  margin-inline: auto;
}

.changes > div {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.changes dt {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.changes dd {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  max-width: 60ch;
}

/* ---------- Spotlights ---------- */

.spotlight {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: center;
}

.spotlight + .spotlight {
  margin-top: 96px;
}

.spotlight.flip {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.spotlight.flip .spotlight-text {
  order: 2;
}

.spotlight h2 {
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 800;
  margin-bottom: 16px;
}

.spotlight .spotlight-text > p {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 20px;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.checks li {
  position: relative;
  padding-left: 28px;
  font-size: 16px;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: rgba(86, 182, 194, 0.16);
  border: 1px solid rgba(86, 182, 194, 0.5);
}

.checks li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 10px;
  width: 6px;
  height: 8px;
  border: solid var(--accent-strong);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.stack {
  display: grid;
  gap: 18px;
}

.stack figure {
  margin: 0;
}

.stack figcaption {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Themes ---------- */

.themes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.theme {
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
}

.theme img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: left top;
  width: 100%;
}

.theme-cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
}

.theme-cap strong {
  font-size: 16px;
}

.theme-cap small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  margin-left: 6px;
}

.swatches {
  display: flex;
  gap: 5px;
}

.swatches i {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: block;
}

/* ---------- Under the hood ---------- */

.stack-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}

.stack-list div {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.stack-list div:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.stack-list div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.stack-list dt {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-strong);
  margin-bottom: 4px;
}

.stack-list dd {
  margin: 0;
  font-size: 16px;
}

/* ---------- Get it ---------- */

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

.get-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  min-width: 0;
}

.get-card h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.get-card > p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 16px;
}

.get-card .note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

pre {
  margin: 0;
  padding: 16px 18px;
  border-radius: 10px;
  background: var(--code-bg);
  border: 1px solid var(--line);
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.7;
  color: var(--code-text);
}

.reqs {
  margin-top: 32px;
  padding: 24px 28px;
  border-radius: var(--radius);
  border: 1px dashed var(--line-strong);
}

.reqs h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.reqs ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 15px;
  display: grid;
  gap: 4px;
}

/* ---------- Download ---------- */

.download-card {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 40px;
  padding: 36px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(86, 182, 194, 0.14), transparent 70%),
    var(--panel);
  border: 1px solid rgba(86, 182, 194, 0.35);
}

.download-card h3 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
}

.download-card .specs {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 22px;
}

.download-card .btn {
  margin-bottom: 18px;
}

.sha {
  font-size: 13px;
  color: var(--muted);
}

.sha code {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--code-muted);
  word-break: break-all;
}

.steps-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.steps li,
.download-card > div {
  min-width: 0;
}

.steps code,
.get-card .note code,
.reqs code {
  overflow-wrap: anywhere;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 40px;
  font-size: 15px;
  color: var(--muted);
}

.steps li strong {
  color: var(--text);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-ink);
  background: var(--accent);
}

.steps pre {
  margin-top: 8px;
  font-size: 13px;
}

.hero-sub,
.download-card .specs,
.stack figcaption {
  font-variant-numeric: tabular-nums;
}

.hero-sub {
  margin: 0 0 56px;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Final CTA ---------- */

.final {
  text-align: center;
  background:
    radial-gradient(700px 360px at 50% 120%, rgba(86, 182, 194, 0.2), transparent 70%),
    var(--bg);
}

.final h2 {
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 800;
  margin-bottom: 14px;
}

.final p {
  color: var(--muted);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 28px;
}

/* ---------- Footer ---------- */

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

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

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

/* ---------- 404 ---------- */

.not-found {
  min-height: calc(100vh - 64px - 97px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 0;
}

.not-found h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  margin-bottom: 12px;
}

.not-found p {
  color: var(--muted);
  margin-bottom: 28px;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .spotlight,
  .spotlight.flip {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .spotlight.flip .spotlight-text {
    order: 0;
  }

  .spotlight + .spotlight {
    margin-top: 72px;
  }

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

  .get-grid,
  .download-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .download-card {
    gap: 28px;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 16px;
  }

  body {
    font-size: 16px;
  }

  section {
    padding: 72px 0;
  }

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

  .nav a:not(.btn) {
    display: none;
  }

  .themes,
  .changes {
    grid-template-columns: minmax(0, 1fr);
  }

  .stack-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .stack-list div:nth-child(odd) {
    border-right: 0;
  }

  .stack-list div:nth-last-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .get-card,
  .download-card {
    padding: 22px 18px;
  }

  .window-bar {
    height: 24px;
  }

  .window-bar i {
    width: 9px;
    height: 9px;
  }

  .window-bar span {
    display: none;
  }
}
