/* ─── SHKD QUEST — SHARED DESIGN SYSTEM ─────────────────── */
:root {
  --bg:        #0A0E27;
  --bg2:       #0F1336;
  --bg3:       #161B45;
  --border:    rgba(229,243,253,0.10);
  --border2:   rgba(229,243,253,0.18);
  --text:      #FFFFFF;
  --muted:     #8B92B8;
  --muted2:    rgba(139,146,184,0.6);
  --accent:    #FFDF22;     /* Sun Yellow — CTAs, accents only */
  --snow:      #E5F3FD;     /* Snowbound — celestial layer */
  --r:         4px;
  --font-disp: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ─── CELESTIAL BACKGROUND LAYER ─────────────────────── */
.celestial {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.celestial svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
main, nav, footer { position: relative; z-index: 1; }

/* ─── NAV ─────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 48px;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}
nav.scrolled {
  background: rgba(10,14,39,0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img {
  height: 64px;
  width: auto;
  filter: invert(1) brightness(1.85);
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
}
.nav-cta {
  font-family: var(--font-disp);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent);
  color: #0A0E27;
  padding: 11px 22px;
  border-radius: var(--r);
  transition: transform 0.18s, filter 0.18s;
}
.nav-cta:hover { transform: translateY(-1px); filter: brightness(1.08); }

/* mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border2);
  color: var(--text);
  width: 40px; height: 40px;
  border-radius: 4px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 880px) {
  nav { padding: 12px 20px; }
  .nav-logo img { height: 48px; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile-open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: rgba(10,14,39,0.97);
    backdrop-filter: blur(24px);
    padding: 24px;
    gap: 18px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .nav-mobile-open .nav-cta {
    display: inline-block;
    position: fixed;
    top: 14px; right: 70px;
    padding: 8px 14px;
    font-size: 0.7rem;
  }
}

/* ─── BUTTONS ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-disp);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 30px;
  border-radius: var(--r);
  border: none;
  cursor: pointer;
  transition: transform 0.18s, filter 0.18s, background 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #0A0E27; }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border2);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* ─── TYPOGRAPHY ─────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-disp);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--accent);
}
h1, h2, h3, h4 {
  font-family: var(--font-disp);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text);
  text-wrap: balance;
}
p { color: var(--muted); line-height: 1.65; text-wrap: pretty; }

/* ─── PAGE LAYOUT ─────────────────────────────────────── */
main { padding-top: 80px; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 32px; }

/* ─── PAGE HERO ───────────────────────────────────────── */
.page-hero {
  padding: 120px 0 100px;
  text-align: center;
  position: relative;
}
.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  margin-bottom: 22px;
}
.page-hero .sub {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  max-width: 720px;
  margin: 0 auto 14px;
  color: var(--text);
  opacity: 0.85;
}
.page-hero .support {
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 36px;
  color: var(--muted);
}

/* ─── FOOTER ──────────────────────────────────────────── */
footer {
  padding: 80px 48px 32px;
  border-top: 1px solid var(--border);
  margin-top: 100px;
  background: rgba(10,14,39,0.6);
}
.footer-inner { max-width: 1240px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.footer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.footer-brand img {
  height: 96px; width: auto;
  filter: invert(1) brightness(1.85);
  margin-bottom: 20px;
  align-self: center;
}
.footer-brand .tagline {
  font-family: var(--font-disp);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.footer-brand p { font-size: 0.92rem; max-width: 320px; }
.footer-col h4 {
  font-family: var(--font-disp);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 0.92rem; color: var(--muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-social { display: flex; gap: 14px; margin-top: 22px; }
.footer-social a {
  width: 38px; height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border2);
  border-radius: 50%;
  color: var(--muted);
  transition: all 0.2s;
}
.footer-social a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--muted2);
}
.footer-bottom a { color: var(--muted2); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--text); }

@media (max-width: 760px) {
  footer { padding: 60px 24px 28px; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; padding-bottom: 40px; }
  .footer-brand img { height: 44px; }
}

/* ─── FORM ELEMENTS (used on Contact + Legal forms) ─── */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--font-disp);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  background: rgba(229,243,253,0.04);
  border: 1px solid var(--border2);
  border-radius: var(--r);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(229,243,253,0.06);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted2); }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%238B92B8' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}
.field select option { background: var(--bg2); color: var(--text); }
.field textarea { min-height: 140px; resize: vertical; font-family: var(--font-body); }

/* ─── UTILITY ─────────────────────────────────────────── */
.divider {
  width: 60px; height: 2px;
  background: var(--accent);
  margin: 0 auto 28px;
}
