@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800;900&family=Nunito:wght@300;400;500;600;700&display=swap');

:root {
  --font-title: 'Montserrat', sans-serif;
  --font-body: 'Nunito', sans-serif;
  --ink: #07070f;
  --s1: #0e0e1a;
  --s2: #131320;
  --electric: #5b4eff;
  --neon: #00e5c0;
  --warm: #ff6b35;
  --pink: #e858ff;
  --text: #f9f9ff;
  --muted: #ffffff;
  --border: rgba(91,78,255,0.18);
  --border2: rgba(255,255,255,0.07);
}

/* ── RESET & BODY ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 20px; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.65;
  overflow-x: hidden;
}

@media (max-width: 600px) {
  html { font-size: 16px; }
  body { font-size: 16px; }
}

/* ── GLOBAL BG ── */
.mesh {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 15% 5%, rgba(91,78,255,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 85%, rgba(0,229,192,0.08) 0%, transparent 55%),
    radial-gradient(ellipse 40% 30% at 85% 5%, rgba(255,107,53,0.06) 0%, transparent 50%);
}
.grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(91,78,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91,78,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* ── LAYOUT UTILS ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.section { position: relative; z-index: 1; }

/* ── TAGS ── */
.tag {
  display: inline-flex; align-items: center; gap: 7px;
  border-radius: 100px; padding: 5px 14px;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
}
.tag-purple { background: rgba(91,78,255,0.12); border: 1px solid rgba(91,78,255,0.3); color: #a78bfa; }
.tag-teal   { background: rgba(0,229,192,0.08); border: 1px solid rgba(0,229,192,0.25); color: var(--neon); }
.tag-orange { background: rgba(255,107,53,0.08); border: 1px solid rgba(255,107,53,0.25); color: var(--warm); }

.section-label {
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--neon);
  margin-bottom: 14px; display: block;
}

/* ── HEADINGS ── */
h2 {
  font-family: var(--font-title); font-weight: 800;
  font-size: clamp(1.9rem, 3.5vw, 2.9rem);
  letter-spacing: -0.035em; line-height: 1.1;
  margin-bottom: 18px;
}
h2 .grad {
  background: linear-gradient(90deg, var(--electric), var(--neon));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.section-sub { font-size: 1rem; color: var(--muted); max-width: 580px; }

/* ── BUTTONS ── */
.btn-main {
  background: linear-gradient(135deg, var(--electric), #7c3aed);
  color: #fff; border: none; border-radius: 10px;
  padding: 14px 30px; font-family: var(--font-body);
  font-size: 0.95rem; font-weight: 500; cursor: pointer; white-space: nowrap;
  box-shadow: 0 0 36px rgba(91,78,255,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
}
.btn-main:hover { transform: translateY(-2px); box-shadow: 0 0 56px rgba(91,78,255,0.5); }

.btn-outline {
  background: transparent; color: var(--muted);
  border: 1px solid var(--border2); border-radius: 10px;
  padding: 14px 28px; font-family: var(--font-body);
  font-size: 0.95rem; cursor: pointer; white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
}
.btn-outline:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }

/* ── NAV (floating pill) ── */
nav {
  position: fixed; top: 16px; left: 16px; right: 16px; z-index: 200;
  padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(59,59,59,0.20);
  backdrop-filter: blur(9px) saturate(140%);
  -webkit-backdrop-filter: blur(9px) saturate(140%);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
}
.logo {
  font-family: var(--font-title); font-weight: 800; font-size: 1.1rem;
  letter-spacing: -0.03em; display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.logo-icon {
  width: 30px; height: 30px; border-radius: 7px;
  background: url('/favicon.png') center/cover no-repeat;
  display: flex; align-items: center; justify-content: center; font-size: 0; color: transparent;
}
.logo span { color: var(--text); }
.logo em { color: var(--text); font-style: normal; }
.nav-links { display: flex; gap: 1.8rem; list-style: none; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,0.6); text-decoration: none;
  font-size: 0.9rem; font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }
.nav-cta {
  background: var(--electric); color: #fff;
  border: 0; border-radius: 10px; padding: 9px 18px;
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 600;
  cursor: pointer; transition: background 0.2s, box-shadow 0.2s; text-decoration: none;
}
.nav-cta:hover { background: #4a3fe6; box-shadow: 0 0 20px rgba(91,78,255,0.35); }
.nav-back {
  background: rgba(255,255,255,0.10); color: #fff;
  border: 0; border-radius: 10px; padding: 9px 18px;
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 500;
  cursor: pointer; transition: background 0.2s; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-back:hover { background: rgba(255,255,255,0.20); color: #fff; }

/* ── FOOTER (dark card style) ── */
footer {
  position: relative; z-index: 1;
  padding: 0 24px 24px;
  margin-top: 120px;
}
.footer-card {
  background: #161616;
  border-radius: 20px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 72px;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}
.footer-contacts { display: flex; flex-direction: column; gap: 24px; }
.footer-link-lg {
  color: #ffffff; font-size: 1.5rem; font-weight: 500;
  text-decoration: none; transition: opacity 0.2s;
}
.footer-link-lg:hover { text-decoration: underline; }
.footer-row-top .footer-logo { align-self: flex-start; }
.footer-row-bottom { align-items: center; }
.footer-bottom-left { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; }
.footer-copy { color: #ffffff; font-size: 0.95rem; }
.footer-social-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-social-links a {
  color: #ffffff; font-size: 0.95rem;
  text-decoration: none; transition: opacity 0.2s;
}
.footer-social-links a:hover { opacity: 0.7; }
.footer-legal-links { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-legal-links a {
  color: rgba(255,255,255,0.6); font-size: 0.75rem;
  text-decoration: none; transition: color 0.2s;
}
.footer-legal-links a:hover { color: #ffffff; }
.footer-legal { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.footer-address { color: rgba(255,255,255,0.6); font-size: 0.75rem; }

/* ── POLICY PAGE LAYOUT ── */
.page-wrap { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; padding: 104px 32px 80px; }
.page-title {
  font-family: var(--font-title); font-weight: 800;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  letter-spacing: -0.035em; line-height: 1.1; margin-bottom: 12px;
}
.page-title .grad {
  background: linear-gradient(90deg, var(--electric), var(--neon));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.page-meta { font-size: 0.82rem; color: var(--muted); margin-bottom: 48px; padding-bottom: 32px; border-bottom: 1px solid var(--border2); }
.doc-body h2 {
  font-family: var(--font-title); font-weight: 700;
  font-size: 1.15rem; letter-spacing: -0.02em;
  color: var(--text); margin: 36px 0 12px;
  padding-left: 14px; border-left: 3px solid var(--electric);
}
.doc-body p { color: rgba(238,238,255,0.75); margin-bottom: 14px; font-size: 0.95rem; }
.doc-body ul { list-style: none; padding: 0; margin-bottom: 16px; }
.doc-body ul li { color: rgba(238,238,255,0.75); font-size: 0.95rem; padding: 5px 0 5px 20px; position: relative; }
.doc-body ul li::before { content: '—'; position: absolute; left: 0; color: var(--electric); font-weight: 500; }
.doc-body strong { color: var(--text); font-weight: 500; }
.doc-body a { color: var(--neon); text-decoration: none; }
.doc-body a:hover { text-decoration: underline; }

/* ── ANIMATIONS ── */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  nav { top: 12px; left: 12px; right: 12px; padding: 12px 18px; border-radius: 14px; }
  .nav-links { display: none; }
  .nav-cta { font-size: 0.75rem; padding: 8px 14px; white-space: nowrap; }
  footer { padding: 0 16px 16px; margin-top: 80px; }
  .footer-card { padding: 32px 24px; gap: 48px; border-radius: 16px; }
  .footer-row { flex-wrap: wrap-reverse; gap: 24px; }
  .footer-link-lg { font-size: 1.2rem; }
  .footer-row-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom-left { flex-direction: column; align-items: flex-start; gap: 16px; }
}
@media (max-width: 600px) {
  nav { top: 8px; left: 8px; right: 8px; padding: 10px 14px; border-radius: 12px; }
  .page-wrap { padding: 90px 20px 60px; }
  footer { padding: 0 12px 12px; }
  .footer-card { border-radius: 16px; padding: 32px 16px; gap: 28px; text-align: center; }
  .footer-row { flex-direction: column; align-items: center; gap: 24px; flex-wrap: nowrap; }
  .footer-row-top { flex-direction: column-reverse; }
  .footer-contacts { align-items: center; gap: 14px; }
  .footer-link-lg { font-size: 1.05rem; }
  .footer-row-bottom { align-items: center; gap: 20px; }
  .footer-bottom-left { flex-direction: column; align-items: center; gap: 16px; width: 100%; }
  .footer-social-links {
    flex-wrap: nowrap; justify-content: center;
    gap: 14px; width: 100%;
  }
  .footer-social-links a { font-size: 0.85rem; white-space: nowrap; }
  .footer-legal-links { justify-content: center; flex-wrap: wrap; gap: 14px; }
  .footer-legal { align-items: center; }
  .footer-address { text-align: center; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
