:root {
  --bg: #080a16;
  --ink: #f4f6ff;
  --muted: #aab1d3;
  --accent: #7c5cff;
  --accent-2: #38bdf8;
  --card: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

a {
  color: #b3a2ff;
}

/* the app's own light, drifting behind everything */
.glow {
  position: fixed;
  inset: -20% -10% auto;
  height: 90vh;
  background:
    radial-gradient(40% 50% at 25% 30%, rgba(124, 92, 255, 0.35), transparent 70%),
    radial-gradient(35% 45% at 75% 20%, rgba(56, 189, 248, 0.22), transparent 70%),
    radial-gradient(30% 40% at 55% 70%, rgba(236, 72, 153, 0.12), transparent 70%);
  filter: blur(40px);
  animation: drift 18s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes drift {
  to {
    transform: translate(3%, 4%) scale(1.08);
  }
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.4rem 1.5rem 3rem;
}

/* ------------------------------------------------------------------ top */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0 2.5rem;
}

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

.logo {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.45);
}

.links a {
  margin-left: 1.4rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;

  &:hover {
    color: var(--ink);
  }
}

/* ------------------------------------------------------------------ hero */
.hero {
  text-align: center;
  padding: 3rem 0 4rem;
}

.kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0.8rem 0 1.2rem;
}

.shine {
  background: linear-gradient(90deg, #a996ff, var(--accent-2), #a996ff);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}

@keyframes shine {
  to {
    background-position: -200% 0;
  }
}

.lede {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 44rem;
  margin: 0 auto 2.2rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;

  &:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
  }

  &.primary {
    padding: 0.95rem 1.9rem;
    border: 0;
    background: linear-gradient(135deg, var(--accent), #5b8cff);
    box-shadow: 0 14px 40px rgba(124, 92, 255, 0.45);
    font-size: 1.05rem;

    &:hover {
      box-shadow: 0 18px 50px rgba(124, 92, 255, 0.6);
    }
  }

  &.small {
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
  }
}

.meta {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ------------------------------------------------------------------ features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1rem;
  scroll-margin-top: 1.5rem;

  article {
    padding: 1.4rem 1.5rem;
    border-radius: 20px;
    background: var(--card);
    border: 1px solid var(--line);
    backdrop-filter: blur(12px);
    transition:
      transform 0.2s ease,
      border-color 0.2s ease;

    &:hover {
      transform: translateY(-3px);
      border-color: rgba(124, 92, 255, 0.45);
    }
  }

  .icon {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(124, 92, 255, 0.16);
    color: #b3a2ff;
    font-size: 1.1rem;
  }

  h2 {
    margin: 0.8rem 0 0.3rem;
    font-size: 1.1rem;
  }

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

/* ------------------------------------------------------------------ releases */
.releases {
  margin-top: 4.5rem;
  scroll-margin-top: 1.5rem;

  > h2 {
    font-size: 1.8rem;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
  }
}

.release-list {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.release {
  padding: 1.1rem 1.3rem;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);

  &.latest {
    border-color: rgba(124, 92, 255, 0.5);
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.12), rgba(56, 189, 248, 0.05));
  }
}

.release-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.badge {
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.16);
  color: #34d399;
  font-size: 0.75rem;
  font-weight: 700;
}

.notes {
  margin: 0.5rem 0 0;
  white-space: pre-line;
}

.files {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.file {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
}

.hash {
  color: var(--muted);
  font-size: 0.72rem;
  word-break: break-all;
  opacity: 0.7;
}

/* ------------------------------------------------------------------ small print */
.faint {
  color: var(--muted);
}

.small {
  font-size: 0.85rem;
}

.note {
  text-align: center;
  margin-top: 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

footer {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

/* ------------------------------------------------------------------ the privacy policy: a readable column */
.doc {
  max-width: 720px;
  padding-top: 3rem;

  h1 {
    font-size: 2.4rem;
    margin-top: 1.5rem;
  }

  h2 {
    margin: 2rem 0 0.5rem;
    font-size: 1.2rem;
  }

  li {
    margin-bottom: 0.4rem;
  }
}

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

@media (max-width: 640px) {
  .links a:not(:last-child) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .glow,
  .shine {
    animation: none;
  }
}
