:root {
  --bg: #f6f5fa;
  --surface: #ffffff;
  --fg: #1b1a22;
  --muted: #5f5e6b;
  --border: rgba(20, 18, 40, 0.1);
  --link: #3756d6;
  --accent: #5e81f4;
  --fox-1: #ff7a1a;
  --fox-2: #e8346b;
  --fox-3: #9b3ce0;
  --neon-1: #37c8ff;
  --neon-2: #b44cff;
  --hero-bg: #02030c;
  --hero-fg: #f3f2f8;
  --hero-muted: #a9a8b8;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 18, 40, 0.06), 0 6px 24px rgba(20, 18, 40, 0.06);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0c15;
    --surface: #14151f;
    --fg: #eeedf5;
    --muted: #a3a2b2;
    --border: rgba(255, 255, 255, 0.09);
    --link: #8ea6ff;
    --shadow: none;
    color-scheme: dark;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

a {
  color: var(--link);
  text-underline-offset: 2px;
}

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

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */

.site-header {
  background: var(--hero-bg);
  color: var(--hero-fg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 650;
  font-size: 17px;
}

.brand img {
  width: 26px;
  height: 26px;
}

.site-nav {
  display: flex;
  gap: 4px 18px;
  flex-wrap: wrap;
  font-size: 15px;
}

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

.site-nav a:hover {
  color: var(--hero-fg);
}

/* Hero */

.hero {
  background:
    radial-gradient(60% 80% at 80% 60%, rgba(180, 76, 255, 0.14), transparent 70%),
    radial-gradient(50% 70% at 70% 40%, rgba(55, 200, 255, 0.08), transparent 70%),
    var(--hero-bg);
  color: var(--hero-fg);
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 56px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--hero-muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero h1 .glow {
  background: linear-gradient(90deg, var(--fox-1), var(--fox-2) 55%, var(--fox-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lede {
  margin: 0 0 28px;
  max-width: 34em;
  color: #d4d3e0;
  font-size: 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 650;
  font-size: 16px;
  text-decoration: none;
  line-height: 1.2;
}

.btn-primary {
  background: linear-gradient(90deg, var(--fox-1), var(--fox-2));
  color: #fff;
  box-shadow: 0 6px 24px rgba(232, 52, 107, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--hero-fg);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
}

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

.hero-art {
  display: flex;
  justify-content: center;
}

.hero-art img {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 45%;
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
}

/* Sections */

section {
  padding: 64px 0;
}

section + section {
  border-top: 1px solid var(--border);
}

h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.section-intro {
  margin: 0 0 32px;
  max-width: 40em;
  color: var(--muted);
  font-size: 17px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  box-shadow: var(--shadow);
}

.card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 18px;
}

.card h3 .dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dot, var(--accent));
}

.card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 15px;
}

.card li + li {
  margin-top: 4px;
}

/* Screenshots */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 32px 24px;
}

.gallery figure {
  margin: 0;
}

.gallery img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.gallery figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

/* Tables and steps */

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 15px;
}

th,
td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

tr:last-child td {
  border-bottom: 0;
}

th {
  font-weight: 650;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

kbd {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--bg);
  font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: nowrap;
}

code {
  font: 0.92em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 5px;
  overflow-wrap: anywhere;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.steps {
  margin: 0;
  padding-left: 22px;
}

.steps li + li {
  margin-top: 8px;
}

.note {
  color: var(--muted);
  font-size: 15px;
}

.callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.callout h2 {
  font-size: 24px;
}

.callout p {
  margin: 0;
  max-width: 38em;
  color: var(--muted);
}

/* Footer */

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

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

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

.site-footer a {
  color: inherit;
}

/* Prose pages (privacy policy) */

.prose {
  max-width: 720px;
  padding-top: 48px;
  padding-bottom: 64px;
}

.prose h1 {
  margin: 0 0 6px;
  font-size: clamp(30px, 5vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.prose .updated {
  margin: 0 0 32px;
  color: var(--muted);
}

.prose h2 {
  margin-top: 36px;
  font-size: 22px;
}

.prose .summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 17px;
}

@media (max-width: 760px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-top: 36px;
    padding-bottom: 44px;
  }

  .hero-art {
    order: -1;
  }

  .hero-art img {
    max-width: 220px;
  }

  section {
    padding: 48px 0;
  }

  .wrap {
    padding: 0 16px;
  }
}

@media (max-width: 520px) {
  .shortcuts thead {
    display: none;
  }

  .shortcuts tr {
    display: block;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
  }

  .shortcuts tr:last-child {
    border-bottom: 0;
  }

  .shortcuts td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 3px 0;
    border: 0;
  }

  .shortcuts td:first-child {
    font-weight: 650;
    padding-bottom: 6px;
  }

  .shortcuts td[data-label]::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 14px;
  }
}
