:root {
  --bg: #0b1020;
  --bg-soft: #11182d;
  --card: #161f37;
  --card-light: #f7f8fc;
  --text: #f8fafc;
  --muted: #cbd5e1;
  --dark-text: #14213d;
  --dark-muted: #536071;
  --line: rgba(255,255,255,.12);
  --accent: #8b5cf6;
  --accent-2: #22d3ee;
  --shadow: 0 24px 70px rgba(0,0,0,.35);
  --radius: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(139,92,246,.35), transparent 34rem),
    radial-gradient(circle at 80% 10%, rgba(34,211,238,.18), transparent 30rem),
    var(--bg);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: .86; }

.site-header {
  width: min(1120px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(16px);
  background: rgba(11,16,32,.72);
  position: sticky;
  top: 12px;
  z-index: 20;
}
.site-header.compact { position: relative; top: auto; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; }
.brand-logo { width: 42px; height: 42px; object-fit: cover; border-radius: 12px; box-shadow: 0 0 18px rgba(139,92,246,.36); }
.nav { display: flex; align-items: center; gap: 20px; color: var(--muted); font-size: 15px; }
.nav-cta { padding: 10px 15px; border-radius: 999px; color: white; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.menu-button { display: none; border: 0; background: transparent; color: white; font-size: 24px; }

.hero {
  width: min(1120px, calc(100% - 32px));
  margin: 72px auto 44px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 34px;
  align-items: center;
}
.hero-content h1 {
  font-size: clamp(42px, 7vw, 76px);
  line-height: .98;
  margin: 12px 0 22px;
  letter-spacing: -.06em;
}
.hero-text { color: var(--muted); font-size: 19px; max-width: 640px; }
.eyebrow { color: var(--accent-2); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 800; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 18px; border-radius: 999px; font-weight: 800; }
.button.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 10px 36px rgba(139,92,246,.34); }
.button.secondary { border: 1px solid var(--line); color: var(--text); }

.hero-card {
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.04));
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.hero-card:after {
  content: "";
  position: absolute;
  inset: auto -20% -40% 20%;
  height: 230px;
  background: radial-gradient(circle, rgba(34,211,238,.28), transparent 64%);
}
.hero-logo {
  width: min(100%, 320px);
  display: block;
  border-radius: 28px;
  margin: 0 0 28px;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 22px 70px rgba(0,0,0,.42), 0 0 70px rgba(139,92,246,.34);
}
.page-logo {
  width: 104px;
  height: 104px;
  object-fit: cover;
  border-radius: 24px;
  display: block;
  margin-bottom: 22px;
  box-shadow: 0 14px 38px rgba(76,29,149,.22);
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand p { margin: 4px 0 0; }
.footer-logo {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 0 24px rgba(139,92,246,.28);
}
.hero-card h2 { font-size: 34px; margin: 0 0 8px; }
.hero-card p, .hero-card li { color: var(--muted); }
.hero-card ul { padding-left: 20px; }

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 44px;
  padding: 54px 0;
}
.section-heading { max-width: 720px; margin-bottom: 24px; }
.section-heading h2, .split h2, .contact-box h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.08; margin: 10px 0 12px; letter-spacing: -.04em; }
.section-heading p, .split p, .contact-box p { color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.06);
}
.card h3 { margin: 0 0 10px; font-size: 22px; }
.card p { color: var(--muted); }
.card-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.card-links a, .link-list a {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #e0f2fe;
  font-size: 14px;
  font-weight: 700;
}
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 34px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.contact-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(139,92,246,.2), rgba(34,211,238,.12));
  border: 1px solid var(--line);
}

.footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 28px;
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.footer nav { display: flex; flex-wrap: wrap; gap: 14px; }

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}
.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.social-links a,
.footer-social a {
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.08);
  color: #e0f2fe;
  font-size: 14px;
  font-weight: 800;
}
.social-links.light a {
  border-color: #ddd6fe;
  background: #ede9fe;
  color: #4c1d95;
}
.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.footer-social {
  justify-content: flex-end;
}

.footer.small { justify-content: center; text-align: center; }

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 44px auto 70px;
}
.legal-card {
  background: var(--card-light);
  color: var(--dark-text);
  border-radius: var(--radius);
  padding: clamp(26px, 5vw, 54px);
  box-shadow: var(--shadow);
}
.legal-card h1 { font-size: clamp(34px, 6vw, 54px); line-height: 1.05; margin: 8px 0; letter-spacing: -.04em; }
.legal-card h2 { margin-top: 30px; font-size: 22px; }
.legal-card p, .legal-card li { color: var(--dark-muted); }
.legal-card a { color: #5b21b6; font-weight: 800; }
.updated { font-size: 14px; margin-bottom: 28px; }
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 26px 0; }
.support-grid > div { border: 1px solid #e2e8f0; border-radius: 18px; padding: 18px; }
.link-list { display: flex; gap: 10px; flex-wrap: wrap; }
.link-list a { background: #ede9fe; color: #4c1d95; }

@media (max-width: 820px) {
  .menu-button { display: block; }
  .site-header { border-radius: 24px; align-items: flex-start; }
  .nav { display: none; position: absolute; left: 16px; right: 16px; top: 64px; padding: 16px; border: 1px solid var(--line); border-radius: 22px; background: rgba(11,16,32,.96); flex-direction: column; align-items: stretch; }
  .nav.open, .nav.always-visible { display: flex; position: static; padding: 0; border: 0; background: transparent; flex-direction: row; }
  .hero, .cards, .split { grid-template-columns: 1fr; }
  .hero { margin-top: 48px; }
  .hero-card { min-height: auto; }
  .contact-box { flex-direction: column; align-items: flex-start; }
  .contact-actions { align-items: flex-start; }
  .social-links { justify-content: flex-start; }
  .footer-links { align-items: flex-start; }
  .footer { flex-direction: column; }
  .footer-brand { align-items: flex-start; }
  .support-grid { grid-template-columns: 1fr; }
}
