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

:root {
  --bg: #08060F;
  --bg2: #0E0A1A;
  --bg3: #150F24;
  --accent: #7B5EA7;
  --accent2: #A67DD4;
  --accent-glow: rgba(123, 94, 167, 0.2);
  --text: #F0EBF8;
  --text-muted: #9B8EC4;
  --text-faint: #4A3F6B;
  --border: rgba(123, 94, 167, 0.18);
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8,6,15,0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.nav-logo-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  padding: 10px 22px;
  background: var(--accent);
  color: white !important;
  border-radius: 100px;
  font-size: 14px !important;
  font-weight: 500 !important;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--accent2) !important; }

.nav-appstore {
  display: inline-block;
  line-height: 0;
  transition: all 0.2s !important;
}

.nav-appstore img { height: 40px; width: auto; display: block; }

.nav-appstore:hover {
  transform: translateY(-1px);
  filter: drop-shadow(0 6px 20px rgba(255,255,255,0.12));
}

/* Hamburger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-burger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s;
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--sans);
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--accent2);
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(123,94,167,0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 400;
  font-family: var(--sans);
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  color: var(--text);
  border-color: rgba(123,94,167,0.4);
}

/* ─── TYPO HELPERS ─── */
.section-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--accent2);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.section-title em, .serif-em { font-style: italic; color: var(--accent2); }

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── LEGAL / TEXT PAGES ─── */
.page-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 160px 24px 100px;
}

.page-wrap h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 60px);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 12px;
}

.page-updated {
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 48px;
}

.legal-content h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 40px 0 14px;
  letter-spacing: -0.2px;
}

.legal-content p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 14px;
}

.legal-content ul {
  margin: 0 0 14px 20px;
}

.legal-content li {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 6px;
}

.placeholder-note {
  background: rgba(123,94,167,0.08);
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 20px 24px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─── FOOTER ─── */
footer {
  padding: 40px 48px;
  border-top: 1px solid rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg2);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.footer-logo img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.footer-logo-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.footer-copy {
  font-size: 13px;
  color: var(--text-faint);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-faint);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ─── MOBILE ─── */
@media (max-width: 820px) {
  nav { padding: 14px 20px; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(8,6,15,0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 8px 0 16px;
  }

  .nav-links.open { display: flex; }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 14px 24px;
    font-size: 16px;
  }

  .nav-links .nav-cta {
    margin: 8px 24px 0;
    display: inline-block;
    text-align: center;
  }

  .nav-burger { display: flex; }

  footer {
    padding: 32px 20px;
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  .footer-links { justify-content: center; }

  .page-wrap { padding: 130px 20px 70px; }
}
