*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--p2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(10,21,32,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(37,99,160,.25);
  padding: 1rem 0;
  box-shadow: 0 2px 16px rgba(26,77,122,.08);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.55rem; font-weight: 800;
  background: linear-gradient(90deg, #2563a0, #f0518a);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -.02em;
}
.logo:hover { text-decoration: none; }
.main-nav { display: flex; gap: 2rem; align-items: center; }
.main-nav a {
  color: rgba(245,234,255,.8); font-size: .9rem; font-weight: 500;
  letter-spacing: .01em; transition: color .2s; position: relative;
}
.main-nav a::after {
  content: ''; position: absolute; left: 0; bottom: -3px;
  width: 0; height: 2px; background: var(--p4);
  border-radius: 2px; transition: width .25s;
}
.main-nav a:hover { color: #fff; text-decoration: none; }
.main-nav a:hover::after { width: 100%; }
.nav-cta {
  background: var(--grad-btn); color: #fff !important;
  padding: .45rem 1.1rem; border-radius: 99px;
  font-weight: 600 !important; font-size: .85rem !important;
  box-shadow: 0 2px 12px rgba(208,49,123,.4);
  transition: opacity .2s, transform .15s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { opacity: .9; transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 4px 0; border-radius: 2px; }

/* ── Main ────────────────────────────────────────────────── */
.site-main { flex: 1; padding: 2rem 0; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: #0e0518;
  color: rgba(245,234,255,.55);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem; margin-bottom: 2.5rem;
}
.footer-logo {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  background: linear-gradient(90deg, #f0518a, #c78eff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-brand p { font-size: .85rem; line-height: 1.6; margin-top: .75rem; max-width: 260px; }
.footer-col h4 {
  font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: rgba(245,234,255,.45); margin-bottom: 1rem;
}
.footer-col a { display: block; font-size: .86rem; color: rgba(245,234,255,.6); margin-bottom: .5rem; }
.footer-col a:hover { color: var(--p5); text-decoration: none; }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,.08); margin-bottom: 1.25rem; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .8rem; flex-wrap: wrap; gap: .5rem;
}

/* ── Typography ─────────────────────────────────────────── */
h1 { font-size: 2rem; margin-bottom: .75rem; }
h2 { font-size: 1.5rem; margin-bottom: .5rem; }
h3 { font-size: 1.2rem; margin-bottom: .4rem; }
p  { margin-bottom: .75rem; }

/* ── Utilities ──────────────────────────────────────────── */
.text-muted      { color: var(--text-muted); }
.text-center     { text-align: center; }
.mt-1 { margin-top: .5rem; }  .mt-2 { margin-top: 1rem; }  .mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.d-flex { display: flex; }
.gap-1  { gap: .5rem; }  .gap-2 { gap: 1rem; }
.align-center    { align-items: center; }
.justify-between { justify-content: space-between; }
.hidden          { display: none !important; }

/* ── Grid ───────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; }

:focus-visible { outline: 2px solid var(--p4); outline-offset: 3px; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #140720; padding: 1.25rem; gap: 1rem;
    border-bottom: 1px solid rgba(255,255,255,.1); z-index: 199;
  }
  .nav-toggle { display: block; }
}
