@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  --bg: #08070f;
  --bg-elevated: #13111d;
  --bg-card: rgba(24, 21, 36, 0.72);
  --text: #f5f3fb;
  --muted: #a79fb8;
  --primary: #b388ff;
  --secondary: #ff6fb5;
  --tertiary: #3fe0c8;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(179, 136, 255, 0.22);
  --max: 720px;
  --page-max: 1080px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --shadow-glow: 0 0 80px rgba(179, 136, 255, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

body::before {
  width: 520px;
  height: 520px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, rgba(179, 136, 255, 0.35), transparent 70%);
}

body::after {
  width: 420px;
  height: 420px;
  bottom: 10%;
  left: -100px;
  background: radial-gradient(circle, rgba(255, 111, 181, 0.22), transparent 70%);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #d4b8ff;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px) saturate(1.2);
  background: rgba(8, 7, 15, 0.78);
  border-bottom: 1px solid var(--border);
}

.site-header-inner,
.page-wrap,
.hero-inner,
.footer-inner,
.section-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  box-shadow: 0 4px 20px rgba(179, 136, 255, 0.35);
}

.nav {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav a {
  color: var(--muted);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

/* —— Landing hero —— */
.hero {
  padding: 5rem 0 2rem;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-glow {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
}

.hero-glow::before {
  content: '';
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle, rgba(179, 136, 255, 0.45), transparent 65%);
  filter: blur(20px);
  z-index: 0;
}

.hero-logo {
  position: relative;
  z-index: 1;
  width: 108px;
  height: 108px;
  border-radius: 26px;
  box-shadow: var(--shadow-glow), 0 16px 40px rgba(0, 0, 0, 0.45);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  margin: 0 0 1.25rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #eadbff;
  background: rgba(179, 136, 255, 0.12);
  border: 1px solid var(--border-strong);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tertiary);
  box-shadow: 0 0 10px var(--tertiary);
}

.hero h1 {
  font-size: clamp(2.35rem, 6vw, 3.75rem);
  line-height: 1.08;
  margin: 0 0 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 14ch;
  margin-left: auto;
  margin-right: auto;
}

.gradient-text {
  background: linear-gradient(135deg, #d4b8ff 0%, var(--primary) 40%, var(--secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 580px;
  margin: 0 auto 2rem;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.7;
  font-weight: 400;
}

.purpose-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.purpose-tag {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffd9e8;
  background: rgba(255, 111, 181, 0.1);
  border: 1px solid rgba(255, 111, 181, 0.2);
}

.purpose-tag:nth-child(2) {
  color: #eadbff;
  background: rgba(179, 136, 255, 0.1);
  border-color: rgba(179, 136, 255, 0.22);
}

.purpose-tag:nth-child(3) {
  color: #9cffef;
  background: rgba(63, 224, 200, 0.08);
  border-color: rgba(63, 224, 200, 0.2);
}

.purpose-tag:nth-child(4) {
  color: #f5f3fb;
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
}

.cta-row {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #1a0a2e;
  box-shadow: 0 8px 32px rgba(179, 136, 255, 0.35);
}

.btn-primary:hover {
  color: #12061f;
  box-shadow: 0 12px 40px rgba(255, 111, 181, 0.35);
}

.btn-secondary {
  border-color: var(--border-strong);
  color: var(--text);
  background: rgba(19, 17, 29, 0.8);
}

.btn-secondary:hover {
  color: var(--text);
  background: rgba(31, 27, 46, 0.95);
}

/* —— Features —— */
.section-label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 2rem;
}

.features-section {
  padding: 2rem 0 3.5rem;
}

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

.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.35rem;
  backdrop-filter: blur(12px);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.feature:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(179, 136, 255, 0.2), rgba(255, 111, 181, 0.15));
  border: 1px solid var(--border-strong);
}

.feature h3 {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

/* —— Closing CTA —— */
.closing {
  padding: 2rem 0 5rem;
  text-align: center;
}

.closing-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.75rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(179, 136, 255, 0.08), rgba(255, 111, 181, 0.06));
  border: 1px solid var(--border-strong);
}

.closing-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.closing-card strong {
  color: var(--text);
  font-weight: 600;
}

/* —— Legal / prose pages —— */
.page {
  padding: 3rem 0 5rem;
}

.page-wrap {
  max-width: var(--max);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.page h1 {
  margin-top: 0;
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.page h2 {
  margin-top: 2.25rem;
  margin-bottom: 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #eadbff;
}

.page p,
.page li {
  color: #ddd8ea;
  font-size: 0.98rem;
}

.page ul,
.page ol {
  padding-left: 1.25rem;
}

.page li {
  margin-bottom: 0.45rem;
}

.page .meta {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.page code {
  font-size: 0.88em;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #eadbff;
}

.page a {
  font-weight: 500;
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  color: var(--muted);
  font-size: 0.88rem;
  background: rgba(8, 7, 15, 0.6);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}

.footer-links a {
  color: var(--muted);
  font-weight: 500;
}

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

.footer-copy {
  margin: 0;
  opacity: 0.85;
}

@media (max-width: 640px) {
  .nav {
    gap: 0.15rem;
  }

  .nav a {
    padding: 0.35rem 0.6rem;
    font-size: 0.82rem;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .page-wrap {
    padding: 1.5rem 1.15rem;
    border-radius: var(--radius-lg);
  }
}

@media (min-width: 900px) {
  .hero {
    padding-top: 6rem;
  }
}

.character-share {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.character-share-icon {
  border-radius: 22px;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-glow);
}
