:root {
  color-scheme: dark;
  --bg: #05060a;
  --bg-secondary: #0c0d13;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.12);
  --text: #f5f6ff;
  --muted: rgba(245, 246, 255, 0.64);
  --primary: #7a5bff;
  --primary-strong: #c756ff;
  --accent: #ff6b8c;
  --shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 10% 20%, rgba(255, 92, 143, 0.28), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(122, 91, 255, 0.45), transparent 50%),
    var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.legal-banner {
  width: 100%;
  background: linear-gradient(120deg, rgba(122, 91, 255, 0.6), rgba(255, 107, 140, 0.6));
  padding: 0.85rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  text-align: right;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.legal-banner--slim {
  padding-block: 0.65rem;
}

.legal-banner__links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pill-link {
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-weight: 600;
  color: #fff;
  background: rgba(5, 6, 10, 0.2);
  box-shadow: inset 0 0 25px rgba(255, 255, 255, 0.08);
}

main,
header,
footer {
  width: min(1200px, 100% - 3rem);
  margin-inline: auto;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  letter-spacing: -0.02em;
  margin-top: 0;
}

p {
  color: var(--muted);
  line-height: 1.7;
  margin-top: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
}

.btn--primary {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: var(--shadow);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
  background: transparent;
}

.btn--text {
  background: none;
  border: none;
  color: var(--text);
  padding: 0.5rem 0;
}

.site-header {
  padding: 2rem 0 4rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  gap: 1.5rem;
  font-weight: 500;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  align-items: center;
  justify-content: center;
}

.nav__toggle span {
  width: 1.3rem;
  height: 2px;
  background: #fff;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  align-items: center;
  padding-top: 2rem;
}

.hero__copy h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.hero__copy .lede {
  font-size: 1.15rem;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
}

.hero__stats {
  display: flex;
  gap: 2rem;
  padding: 0;
}

.hero__stats dt {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text);
}

.hero__stats dd {
  margin: 0;
  color: var(--muted);
}

.hero__visual {
  position: relative;
  background: linear-gradient(160deg, rgba(122, 91, 255, 0.3), rgba(255, 107, 140, 0.3));
  border-radius: 32px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.hero__visual img {
  border-radius: 24px;
}

.hero__badge {
  position: absolute;
  right: -1rem;
  bottom: 1rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 1.25rem;
  max-width: 240px;
  backdrop-filter: blur(8px);
}

.section {
  margin-block: 4rem;
}

.section--split {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.feature-grid article {
  padding: 1.5rem;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--card-border);
  min-height: 190px;
}

.section--story {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  align-items: center;
}

.story__media img {
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
}

.story__copy ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.story__copy li {
  margin-bottom: 0.75rem;
  padding-left: 1.75rem;
  position: relative;
}

.story__copy li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.quote {
  font-style: italic;
  color: #fff;
}

.gallery {
  background: var(--bg-secondary);
  border-radius: 32px;
  padding: 3rem;
  border: 1px solid var(--card-border);
}

.gallery__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.gallery__controls {
  display: flex;
  gap: 1rem;
}

.pill {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
}

.gallery__viewport {
  display: flex;
  gap: 2rem;
  overflow: hidden;
  margin-top: 2rem;
  position: relative;
}

.gallery__slide {
  flex: 0 0 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery__slide.is-active {
  opacity: 1;
}

.gallery__slide img {
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.gallery__slide figcaption {
  margin-top: 1rem;
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.stats div {
  padding: 1.75rem;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--card-border);
}

.section--download {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.store {
  display: inline-flex;
  flex-direction: column;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 1.25rem 1.5rem;
  margin-right: 1rem;
  margin-bottom: 1rem;
  width: 210px;
  background: rgba(255, 255, 255, 0.03);
}

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

.download__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.contact {
  margin-top: 1rem;
}

.footer {
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 1rem;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer__note {
  color: var(--muted);
}

/* Legal pages */

body.legal {
  background: var(--bg-secondary);
}

.legal header,
.legal main,
.legal footer {
  width: min(900px, 100% - 3rem);
}

.legal .legal-card {
  margin: 2rem 0 4rem;
  padding: 2.5rem;
  border-radius: 28px;
  background: var(--card);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
}

.legal h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.legal-content h2,
.legal-content h3,
.legal-content h4 {
  margin-top: 2rem;
}

.legal-content ul {
  padding-left: 1.25rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: absolute;
    top: 5rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(5, 6, 10, 0.95);
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid var(--card-border);
    flex-direction: column;
    width: min(320px, 90vw);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .nav__links.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .hero__cta {
    flex-direction: column;
  }

  .hero__stats {
    flex-direction: column;
  }

  .gallery {
    padding: 2rem;
  }

  .gallery__viewport {
    gap: 0;
  }

  .gallery__slide {
    flex: 0 0 100%;
  }

  .download__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .store {
    width: 100%;
  }

  .legal-banner {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  .legal-banner__links {
    justify-content: center;
  }
}
