/* Style of the home page of the website (scripts/build-site.sh), light and dark. The colors of the banner come from
   the icon of the application. */
:root {
  color-scheme: light dark;
  --text: #1e293b;
  --muted: #556275;
  --background: #ffffff;
  --surface: #f4f5f9;
  --border: #d9dee7;
  --link: #5b2bd6;
  --accent: #e0338c;
  --accent-text: #ffffff;
  --hero-from: #1a0f3d;
  --hero-to: #3a1a7a;
  --hero-text: #f4efff;
  --hero-muted: #c9bdf0;
  --shadow: 0 12px 40px rgba(26, 15, 61, 0.18);
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e2e8f0;
    --muted: #a3acc0;
    --background: #0e0b1a;
    --surface: #18142b;
    --border: #2f2949;
    --link: #b49cff;
    --accent: #ff4fa3;
    --hero-from: #120a2c;
    --hero-to: #2a1260;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
}

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

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

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

code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, "DejaVu Sans Mono", monospace;
  font-size: 0.88em;
}

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 16px;
}

/* Banner: name, pitch, downloads and the main window */
.hero {
  color: var(--hero-text);
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 79, 163, 0.25), transparent 40%),
    radial-gradient(circle at 85% 10%, rgba(47, 155, 255, 0.25), transparent 40%),
    linear-gradient(160deg, var(--hero-from), var(--hero-to));
  padding-bottom: 3rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  font-size: 0.95rem;
}

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

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

.topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.topbar .brand {
  color: var(--hero-text);
}

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

.hero-text {
  max-width: 46rem;
  margin: 2.5rem auto 2rem;
  text-align: center;
}

.hero h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero .lead {
  margin: 0 0 1.8rem;
  font-size: 1.15rem;
  color: var(--hero-muted);
}

.downloads {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 13rem;
  padding: 0.75rem 1.4rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent-text);
  background: var(--accent);
  box-shadow: 0 4px 14px rgba(224, 51, 140, 0.35);
}

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

.button small {
  font-weight: 400;
  opacity: 0.85;
}

.button.secondary {
  color: var(--hero-text);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.release-info {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--hero-muted);
}

.release-info a {
  color: var(--hero-text);
}

.screenshot img {
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.hero .screenshot img {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

/* Sections */
section {
  padding: 4rem 0;
}

section.alt {
  background: var(--surface);
}

h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.section-lead {
  max-width: 44rem;
  margin: 0 0 2rem;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
}

.card {
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--background);
}

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

.card .tag {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-text);
  background: var(--link);
}

/* A feature: its text beside its screenshot, the sides swapping from one to the next */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 2.5rem;
  align-items: center;
}

.feature + .feature {
  margin-top: 4.5rem;
}

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

.feature ul {
  margin: 0.8rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.feature li + li {
  margin-top: 0.3rem;
}

.screenshot img {
  border: 1px solid var(--border);
}

.checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 0.6rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 1.6rem;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--accent);
}

.terminal {
  overflow-x: auto;
  margin: 1.5rem 0 0;
  padding: 1rem 1.2rem;
  border-radius: 10px;
  color: #e9e4ff;
  background: #151026;
  line-height: 1.7;
}

.terminal .prompt {
  color: #ff4fa3;
  user-select: none;
}

.guide-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.guide-links a {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  background: var(--background);
}

.guide-links a:hover {
  border-color: var(--link);
}

footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
}

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

  .feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

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

  .topbar nav .optional {
    display: none;
  }

  .button {
    width: 100%;
  }

  section {
    padding: 3rem 0;
  }
}
