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

:root {
  --bg: #f8f5ef;
  --bg-soft: #f3efe7;
  --surface: #f8f5ef;
  --text: rgba(0, 0, 0, 0.85);
  --text-secondary: rgba(0, 0, 0, 0.55);
  --text-tertiary: rgba(0, 0, 0, 0.4);
  --accent: #2e66ff;
  --accent-hover: #2456e0;
  --download: #3dba5c;
  --download-hover: #34a852;
  --download-shadow: rgba(61, 186, 92, 0.28);
  --border: rgba(0, 0, 0, 0.08);
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1080px;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(circle at top, var(--bg) 0%, var(--bg-soft) 100%);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 72px 24px 48px;
}

/* --- Intro --- */
.intro {
  max-width: 640px;
  margin-bottom: 56px;
}

.app-icon {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin-bottom: 20px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.06),
    0 4px 12px rgba(0, 0, 0, 0.06);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 12px;
}

.tagline {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 36ch;
  margin-bottom: 28px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  margin-bottom: 14px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--download);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 8px var(--download-shadow);
  transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.btn-download:hover {
  background: var(--download-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(61, 186, 92, 0.34);
}

.linux-icon {
  flex-shrink: 0;
}

.btn-download.is-disabled {
  opacity: 0.72;
  pointer-events: none;
  transform: none;
  box-shadow: none;
  cursor: default;
}

.launch-note {
  margin-top: 10px;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.launch-note[hidden] {
  display: none;
}

.alt-formats.is-unavailable {
  opacity: 0.45;
}

.alt-formats.is-unavailable a {
  pointer-events: none;
  color: var(--text-tertiary);
  text-decoration: none;
}

.verify-link.is-unavailable {
  opacity: 0.45;
  pointer-events: none;
}

.meta {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  white-space: nowrap;
}

.verify-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color 150ms ease;
}

.verify-link:hover {
  color: var(--text-secondary);
}

.alt-formats {
  margin-top: 20px;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.alt-formats a {
  color: var(--accent);
  text-decoration: none;
}

.alt-formats a:hover {
  text-decoration: underline;
}

/* --- Hero screenshot --- */
.hero-visual {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 24px 48px rgba(0, 0, 0, 0.08);
}

.screenshot {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

/* --- Features --- */
.features {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.features h2 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--text);
}

.features-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 32px;
}

.features-grid li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feature-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

.feature-desc {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.site-footer {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.credits {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  line-height: 1.5;
}

.credits-muted {
  color: var(--text-tertiary);
  opacity: 0.85;
}

.credits a {
  color: var(--text-secondary);
  text-decoration: none;
}

.credits a:hover {
  color: var(--text);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .page {
    padding: 48px 20px 32px;
  }

  .intro {
    margin-bottom: 40px;
  }

  .cta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .btn-download {
    width: 100%;
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
