:root {
  --bg-deep: #0f0618;
  --bg-card: rgba(26, 10, 46, 0.55);
  --surface: #161022;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f2f8;
  --muted: rgba(244, 242, 248, 0.72);
  --accent: #a78bfa;
  --accent-strong: #8b5cf6;
  --brand: #1a0a2e;
  --radius-lg: 20px;
  --radius-md: 12px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-deep);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Shared site chrome (landing + legal) --- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(15, 6, 24, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.site-header__brand:hover {
  text-decoration: none;
  color: #fff;
}

.site-logo {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.92rem;
}

.site-nav a {
  color: var(--muted);
}

.site-nav a:hover {
  color: #fff;
}

.site-footer {
  margin-top: 64px;
  padding: 32px 24px 48px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: center;
  margin-bottom: 12px;
}

.legal-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

.legal-page h1 {
  margin-top: 0;
  font-size: 1.85rem;
  letter-spacing: -0.02em;
}

.legal-page h2 {
  margin-top: 28px;
  font-size: 1.15rem;
  color: #e8e4f2;
}

.legal-page ul {
  padding-left: 1.25rem;
  color: var(--muted);
}

.legal-page li {
  margin: 6px 0;
}

/* --- Landing only --- */

.landing-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(139, 92, 246, 0.35), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 50%, rgba(99, 102, 241, 0.12), transparent 45%),
    radial-gradient(ellipse 60% 40% at 0% 80%, rgba(167, 139, 250, 0.1), transparent 50%),
    var(--bg-deep);
}

.landing-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px 64px;
}

.hero {
  padding: 48px 0 56px;
  text-align: center;
}

.hero__logo {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  margin: 0 auto 24px;
  display: block;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.03em;
}

.hero__lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 28px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent-strong), #6366f1);
  color: #fff;
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.35);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--border);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  backdrop-filter: blur(10px);
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: #fff;
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.section-title {
  text-align: center;
  margin: 56px 0 24px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.privacy-strip {
  margin-top: 48px;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(22, 16, 34, 0.9);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.privacy-strip h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.privacy-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 520px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    padding-top: 32px;
  }
}
