:root {
  --bg: #0b0f19;
  --panel: #121826;
  --text: #f3f6fb;
  --muted: #9aa6bc;
  --accent: #b8a0ef;
  --accent-deep: #8b6fd6;
  --line: rgba(255, 255, 255, 0.1);
  --radius: 14px;
  --font: "Sora", system-ui, sans-serif;
}

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

html,
body {
  margin: 0;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  min-height: 100dvh;
  overflow-x: hidden;
}

.page {
  width: min(40rem, 100%);
  margin: 0 auto;
  padding: 4.5rem 1.25rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.15rem;
  padding-top: min(12vh, 5rem);
  animation: rise-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.logo {
  width: min(28rem, 86vw);
  height: auto;
  display: block;
}

.tagline {
  margin: 0;
  max-width: 28rem;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  width: min(22rem, 100%);
  margin-top: 0.75rem;
  animation: rise-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.15rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid rgba(184, 160, 239, 0.45);
  background: var(--accent);
  color: #0b0914;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-align: center;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.download:hover {
  transform: translateY(-1px);
  background: #c9b6f6;
  border-color: rgba(255, 255, 255, 0.35);
}

.download:active {
  transform: translateY(0);
}

.download.is-disabled {
  pointer-events: none;
  cursor: default;
  opacity: 0.72;
  background: #2a3144;
  border-color: var(--line);
  color: var(--muted);
}

.other {
  position: relative;
  width: 100%;
  text-align: center;
}

.other-toggle {
  appearance: none;
  background: none;
  border: 0;
  padding: 0.35rem 0.5rem;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.15s ease;
}

.other-toggle:hover,
.other-toggle[aria-expanded="true"] {
  color: var(--text);
}

.chevron {
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.2s ease;
}

.other-toggle[aria-expanded="true"] .chevron {
  transform: rotate(225deg) translateY(-1px);
}

.other-menu {
  margin-top: 0.55rem;
  padding: 0.35rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  animation: menu-in 0.18s ease both;
}

.other-menu[hidden] {
  display: none;
}

.other-link {
  display: block;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  transition: background 0.15s ease;
}

.other-link:hover {
  background: rgba(255, 255, 255, 0.06);
}

.other-link.is-disabled {
  pointer-events: none;
  color: var(--muted);
  font-weight: 400;
}

.other-link .hint {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--muted);
}

.about {
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
  text-align: center;
  animation: rise-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}

.about h2 {
  margin: 0 0 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.about p {
  margin: 0 auto;
  max-width: 32rem;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.65;
}

.about .credit {
  margin-top: 1.35rem;
  color: var(--text);
  font-size: 0.95rem;
}

.about .name {
  color: var(--accent);
  font-weight: 600;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero,
  .cta,
  .about,
  .other-menu,
  .download,
  .chevron {
    animation: none;
    transition: none;
  }
}
