/* Pendulum landing — dark by default */
:root {
  color-scheme: dark;
  --bg: #0b0f14;
  --bg-elevated: #121821;
  --bg-soft: #18212c;
  --border: #243041;
  --text: #e8eef6;
  --text-muted: #9aa8b8;
  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --accent-pressed: #2563eb;
  --coming-soon: #6b7a8c;
  --radius: 12px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
}

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

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(59, 130, 246, 0.16), transparent 55%),
    radial-gradient(800px 400px at 90% 20%, rgba(37, 99, 235, 0.08), transparent 50%),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-hover);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(720px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3.5rem 0 4rem;
}

header.hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.logo {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  display: block;
  margin: 0 auto 1.25rem;
  box-shadow: var(--shadow);
}

h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.tagline {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.card {
  background: linear-gradient(180deg, var(--bg-elevated), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
}

.card p:last-child {
  margin-bottom: 0;
}

.download-panel {
  text-align: center;
  padding: 2rem 1.5rem 1.75rem;
}

.version {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.28);
  color: var(--accent-hover);
  font-size: 0.9rem;
  font-family: var(--mono);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-width: 240px;
  padding: 0.9rem 1.4rem;
  border-radius: 10px;
  border: none;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.35);
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.btn:hover {
  background: var(--accent-hover);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.42);
}

.btn:active {
  background: var(--accent-pressed);
  transform: translateY(0);
}

.btn-meta {
  margin: 0.9rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.btn-meta a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.btn-meta a:hover {
  color: var(--accent-hover);
}

.platforms {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-top: 1.5rem;
  text-align: left;
}

@media (min-width: 520px) {
  .platforms {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.platform {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
}

.platform strong {
  font-size: 0.95rem;
}

.platform span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.platform.available span {
  color: #86efac;
}

.platform.soon span {
  color: var(--coming-soon);
}

footer {
  margin-top: 2.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

footer a {
  color: var(--text-muted);
}

footer a:hover {
  color: var(--accent-hover);
}

/* Release notes page */
.notes-header {
  margin-bottom: 1.5rem;
}

.notes-header a.back {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.notes-header a.back:hover {
  color: var(--accent-hover);
}

.notes-header h1 {
  text-align: left;
  font-size: 1.85rem;
}

.notes article {
  margin-bottom: 1.5rem;
}

.notes article h2 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}

.notes article .meta {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-family: var(--mono);
}

.notes ul {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.notes li {
  margin: 0.35rem 0;
}

.notes li strong {
  color: var(--text);
}
