:root {
  --bg: #ffffff;
  --bg-soft: #f5f6fb;
  --card: #ffffff;
  --text: #1c1f2b;
  --muted: #5a6075;
  --border: #e3e6ef;
  --brand: #12805c;
  --brand-2: #0e6a7a;
  --brand-text: #ffffff;
  --accent: #b45309;
  --code-bg: #f1f2f7;
  --shadow: 0 10px 30px rgba(40, 40, 90, 0.12);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1117;
    --bg-soft: #151824;
    --card: #181b27;
    --text: #e8eaf2;
    --muted: #a0a6ba;
    --border: #2a2e3d;
    --brand: #3fcf9b;
    --brand-2: #4fc3d9;
    --brand-text: #05261b;
    --accent: #fde68a;
    --code-bg: #1f2333;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--brand);
}

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

code,
kbd,
pre {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.9em;
}

code,
kbd {
  background: var(--code-bg);
  border-radius: 4px;
  padding: 1px 5px;
}

pre {
  background: var(--code-bg);
  border-radius: 8px;
  padding: 12px 14px;
  overflow-x: auto;
}

pre code {
  padding: 0;
  background: none;
}

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px max(16px, calc((100% - 1120px) / 2));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.pill {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-text);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-radius: 999px;
  padding: 2px 8px;
}

nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

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

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

/* Layout */
main > section {
  padding: 64px max(16px, calc((100% - 1120px) / 2));
}

.section:nth-of-type(even) {
  background: var(--bg-soft);
}

h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.1;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

h3 {
  margin: 14px 0 6px;
  font-size: 18px;
}

.accent {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 34em;
}

.section-lead {
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 44em;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 14px;
}

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

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: center;
}

.hero-shot {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 26px 0 12px;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  border-color: var(--brand);
}

.button.primary {
  border: none;
  color: var(--brand-text);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

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

.button:focus-visible,
nav a:focus-visible,
[role='tab']:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 12px 16px;
}

.feature img {
  border-radius: 8px;
  border: 1px solid var(--border);
}

.feature h3,
.feature p {
  padding: 0 6px;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* Downloads */
.downloads {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.download {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}

.download h3 {
  margin: 0;
}

.download p {
  margin: 0;
}

.download .button {
  flex-wrap: wrap;
  column-gap: 8px;
  text-align: center;
}

.download .size {
  font-weight: 400;
  opacity: 0.8;
  font-size: 13px;
  white-space: nowrap;
}

.download.yours {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 30%, transparent);
}

/* Install tabs */
.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}

[role='tab'] {
  font: inherit;
  font-weight: 600;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  padding: 10px 14px;
  cursor: pointer;
}

[role='tab'][aria-selected='true'] {
  color: var(--text);
  border-bottom-color: var(--brand);
}

.panel {
  max-width: 46em;
}

.panel li {
  margin-bottom: 8px;
}

/* Get started */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.steps article {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.step {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--brand-text);
  font-weight: 700;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

/* Feedback and footer */
.feedback {
  text-align: center;
}

.feedback .section-lead {
  margin-left: auto;
  margin-right: auto;
}

.bottom {
  padding: 28px 16px 40px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--border);
}

.bottom p {
  margin: 4px 0;
}

/* Narrower screens */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
  .downloads,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  nav {
    display: none;
  }
  main > section {
    padding-top: 44px;
    padding-bottom: 44px;
  }
  .features,
  .downloads,
  .steps {
    grid-template-columns: 1fr;
  }
}
