/* The app's palette: grays from the window, the logo's accent (assets/logo). */
:root {
  --bg: #1c1c1c;
  --surface: #262626;
  --surface-2: #303030;
  --border: #3d3d3d;
  --text: #ffffff;
  --muted: #b8b8b8;
  --accent: #ff5a3c;
  --radius: 14px;
  --wrap: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

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

.narrow > :not(h2) { max-width: 760px; }

/* Top bar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(28, 28, 28, 0.85);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  text-decoration: none;
}

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

.topnav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
}

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

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

.lang {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 10px;
  cursor: pointer;
}

.lang:hover { border-color: var(--muted); }

/* Hero */

.hero { padding-block: 72px 56px; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.rec {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 90, 60, 0.2);
  animation: rec 2s ease-in-out infinite;
}

@keyframes rec {
  50% { opacity: 0.35; }
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

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

.button.primary {
  background: var(--text);
  color: #1c1c1c;
  border-color: var(--text);
}

.button.primary:hover { background: #e6e6e6; }

.button.primary.disabled {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
  border-style: dashed;
}

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

.hero-shot {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.03);
}

/* Sections */

.section { padding-block: 80px; }

.section.alt {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

h2 {
  margin: 0 0 32px;
  font-size: clamp(28px, 3.5vw, 36px);
  letter-spacing: -0.01em;
}

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

.section-lead {
  margin: -16px 0 32px;
  color: var(--muted);
}

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

.steps li,
.features article,
.download {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.steps p,
.features p,
.download p {
  margin: 0;
  color: var(--muted);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--text);
  color: #1c1c1c;
  font-weight: 700;
}

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

.features article { background: var(--bg); }

/* Downloads */

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

.download .alt-link {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.download .alt-link:hover { color: var(--text); }

.download {
  display: flex;
  flex-direction: column;
}

.download p { flex: 1; margin-bottom: 20px; }

.download.suggested { border-color: var(--text); }

.download small {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

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

/* Setup */

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

.setup ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

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

/* FAQ */

details {
  border-bottom: 1px solid var(--border);
  padding-block: 18px;
}

summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  color: var(--muted);
  font-weight: 400;
}

details[open] summary::after { content: "−"; }

details p {
  margin: 12px 0 0;
  color: var(--muted);
}

/* Footer */

.footer {
  border-top: 1px solid var(--border);
  padding-block: 28px;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

/* Narrow screens */

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .downloads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .topnav a { display: none; }
  .steps,
  .features,
  .downloads,
  .setup { grid-template-columns: 1fr; }
  .section { padding-block: 56px; }
}

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