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

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --accent-mac: #2563eb;
  --accent-win: #7c3aed;
  --radius: 14px;

  /* Blob colours — same as the desktop app */
  --blob-red:    #e8445a;
  --blob-purple: #8a5ae8;
  --blob-teal:   #0eadb0;
  --blob-amber:  #e89a2a;
}

/* ── Blobs ───────────────────────────────────────────────── */
.blob {
  position: fixed;
  border-radius: 50%;
  opacity: 0.08;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  animation: drift 18s ease-in-out infinite alternate;
}

.blob-tl {
  width: 560px; height: 560px;
  background: var(--blob-red);
  top: -200px; left: -200px;
  animation-delay: 0s;
}
.blob-tr {
  width: 500px; height: 500px;
  background: var(--blob-purple);
  top: -160px; right: -160px;
  animation-delay: -4s;
}
.blob-br {
  width: 520px; height: 520px;
  background: var(--blob-teal);
  bottom: -180px; right: -180px;
  animation-delay: -8s;
}
.blob-bl {
  width: 480px; height: 480px;
  background: var(--blob-amber);
  bottom: -160px; left: -160px;
  animation-delay: -12s;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, 20px) scale(1.06); }
}

/* ── Layout ─────────────────────────────────────────────── */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem;
  position: relative;
}

main {
  max-width: 780px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* ── Header ─────────────────────────────────────────────── */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 1rem 0.4rem 0.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.logo-icon { font-size: 1.25rem; }

.logo-text {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

header h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.gradient-text {
  background: linear-gradient(135deg, var(--blob-red) 0%, var(--blob-purple) 50%, var(--accent-mac) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--muted);
  letter-spacing: -0.01em;
}

/* ── Download buttons ───────────────────────────────────── */
.downloads {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 1.1rem 2.25rem;
  border-radius: var(--radius);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  min-width: 230px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.btn:hover::after { opacity: 1; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.18); }
.btn:active { transform: translateY(0); }

.btn-mac {
  background: linear-gradient(135deg, #1d4ed8, var(--accent-mac));
  box-shadow: 0 4px 16px rgba(37,99,235,0.35);
}
.btn-win {
  background: linear-gradient(135deg, #5b21b6, var(--accent-win));
  box-shadow: 0 4px 16px rgba(124,58,237,0.35);
}

.os-icon {
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 0.15rem;
}

.sub {
  font-size: 0.73rem;
  font-weight: 400;
  opacity: 0.8;
}

/* ── Security notice ────────────────────────────────────── */
.notice {
  width: 100%;
}

.notice-inner {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.notice-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.notice-inner strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.notice-inner p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

.notice-inner p em {
  font-style: normal;
  font-weight: 600;
  color: var(--text);
}

/* ── Features ───────────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.25rem;
  width: 100%;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: left;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.feature:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.feature-icon { font-size: 1.75rem; }

.feature h3 {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.feature p {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Footer ─────────────────────────────────────────────── */
footer {
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-bottom: 1rem;
}

footer a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.1s;
}

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

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 500px) {
  .btn { min-width: 100%; }
  .downloads { flex-direction: column; align-items: stretch; }
  .notice-inner { flex-direction: column; gap: 0.5rem; }
}
