/* ═══════════════════════════════════════════
   MINDLIFT — Shared Design System
   Aesthetic: Refined Dark Organic / Deep Night Sky
   Fonts: Cormorant Garamond (display) + Outfit (body)
═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --bg:        #080c18;
  --bg2:       #0d1225;
  --bg3:       #111830;
  --surface:   #161d38;
  --surface2:  #1c2445;
  --border:    rgba(255,255,255,0.07);
  --border2:   rgba(255,255,255,0.12);
  --accent:    #5e9bff;       /* sky blue */
  --accent2:   #ff8c6b;       /* coral */
  --accent3:   #5effd8;       /* mint */
  --accent4:   #c084fc;       /* violet */
  --text:      #e2e8f8;
  --text2:     #8b95b8;
  --text3:     #5a6285;
  --radius:    14px;
  --radius-lg: 22px;
  --shadow:    0 8px 40px rgba(0,0,0,0.5);
  --font-d:    'Cormorant Garamond', Georgia, serif;
  --font-b:    'Outfit', system-ui, sans-serif;
  --nav-h:     68px;
  --max-w:     1120px;
}

[data-theme="light"] {
  --bg:        #f0f4ff;
  --bg2:       #e8eeff;
  --bg3:       #dde5ff;
  --surface:   #ffffff;
  --surface2:  #f5f7ff;
  --border:    rgba(0,0,30,0.08);
  --border2:   rgba(0,0,30,0.14);
  --text:      #0d1225;
  --text2:     #3a4468;
  --text3:     #8890b5;
  --shadow:    0 8px 40px rgba(0,10,60,0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
  min-height: 100vh;
}

/* ── SKIP LINK ── */
.skip-link {
  position: absolute; top: -60px; left: 14px;
  background: var(--accent); color: #fff;
  padding: 8px 18px; border-radius: 8px;
  z-index: 1000; transition: top 0.2s;
  font-size: 0.85rem; font-weight: 600;
}
.skip-link:focus { top: 10px; }

/* ══════════════════
   NAV
══════════════════ */
.nav-wrapper {
  position: sticky; top: 0; z-index: 200;
  background: rgba(8,12,24,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}
[data-theme="light"] .nav-wrapper {
  background: rgba(240,244,255,0.88);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 5vw;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-logo {
  font-family: var(--font-d);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  background: linear-gradient(130deg, var(--accent), var(--accent3));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  flex-wrap: wrap;
}
.nav-links a {
  display: flex; align-items: center; gap: 5px;
  color: var(--text2);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: 10px;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text); background: var(--surface2);
}
.nav-links a.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 7px 16px;
}
.nav-links a.nav-cta:hover { opacity: 0.88; transform: translateY(-1px); }
.nav-end { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text2);
  width: 38px; height: 38px;
  border-radius: 10px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: all 0.2s;
  flex-shrink: 0;
}
.icon-btn:hover { color: var(--text); border-color: var(--border2); transform: scale(1.05); }

/* Hamburger */
.nav-toggle { display: none; }
.nav-mobile { display: none; }

@media (max-width: 780px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile {
    display: none;
    position: fixed; inset: var(--nav-h) 0 0 0;
    background: var(--bg2);
    z-index: 199;
    flex-direction: column;
    padding: 24px 5vw;
    gap: 8px;
    overflow-y: auto;
  }
  .nav-mobile.open { display: flex; }
  .nav-mobile a {
    color: var(--text2); text-decoration: none;
    font-size: 1.1rem; font-weight: 500;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.2s;
    display: flex; align-items: center; gap: 10px;
  }
  .nav-mobile a:hover, .nav-mobile a.active { background: var(--surface); color: var(--text); }
}

/* ══════════════════
   LAYOUT UTILITIES
══════════════════ */
.page-wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 5vw; }
.section { padding: 80px 5vw; max-width: var(--max-w); margin: 0 auto; }
.section-sm { padding: 48px 5vw; max-width: var(--max-w); margin: 0 auto; }
.full-bleed { padding: 80px 5vw; }

.tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(94,155,255,0.1);
  border: 1px solid rgba(94,155,255,0.2);
  padding: 4px 12px; border-radius: 100px;
  margin-bottom: 14px;
}
.tag.coral { color: var(--accent2); background: rgba(255,140,107,0.1); border-color: rgba(255,140,107,0.2); }
.tag.mint  { color: var(--accent3); background: rgba(94,255,216,0.1); border-color: rgba(94,255,216,0.2); }
.tag.violet{ color: var(--accent4); background: rgba(192,132,252,0.1); border-color: rgba(192,132,252,0.2); }

.section-title {
  font-family: var(--font-d);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400; line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.section-title em { font-style: italic; color: var(--accent); }
.section-sub {
  color: var(--text2); font-size: 1.05rem;
  max-width: 520px; margin-bottom: 44px;
  font-weight: 300;
}

/* ══════════════════
   CARDS
══════════════════ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative; overflow: hidden;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--border2);
}
.card-glow::before {
  content: ''; position: absolute;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94,155,255,0.12), transparent);
  top: -40px; right: -40px;
  pointer-events: none;
}

.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }

/* ══════════════════
   BUTTONS
══════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-b); font-weight: 600; font-size: 0.92rem;
  padding: 13px 26px; border-radius: 12px;
  text-decoration: none; cursor: pointer; border: none;
  transition: all 0.25s; white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 20px rgba(94,155,255,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(94,155,255,0.45); opacity: 0.95; }
.btn-coral {
  background: var(--accent2); color: #fff;
  box-shadow: 0 4px 20px rgba(255,140,107,0.3);
}
.btn-coral:hover { transform: translateY(-2px); }
.btn-ghost {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border2);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover { background: rgba(94,155,255,0.1); transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 0.84rem; border-radius: 9px; }
.btn-full { width: 100%; justify-content: center; }

/* ══════════════════
   FORMS
══════════════════ */
.field { margin-bottom: 18px; }
.field-label {
  display: block; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text3); margin-bottom: 7px;
}
.field-input, .field-select, .field-textarea {
  width: 100%;
  background: var(--bg3); border: 1px solid var(--border2);
  color: var(--text); border-radius: 10px;
  padding: 11px 15px; font-size: 0.95rem;
  font-family: var(--font-b);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none; appearance: none;
}
.field-input:focus, .field-select:focus, .field-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(94,155,255,0.12);
}
.field-textarea { resize: vertical; min-height: 110px; }

/* ══════════════════
   TOAST / MSG
══════════════════ */
.toast {
  display: none; padding: 11px 16px;
  border-radius: 10px; font-size: 0.88rem;
  margin-top: 10px; font-weight: 500;
}
.toast.show { display: flex; align-items: center; gap: 8px; }
.toast-success { background: rgba(94,255,216,0.1); border: 1px solid rgba(94,255,216,0.25); color: var(--accent3); }
.toast-warn { background: rgba(255,140,107,0.1); border: 1px solid rgba(255,140,107,0.25); color: var(--accent2); }

/* ══════════════════
   FOOTER
══════════════════ */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 56px 5vw 32px;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
}
.footer-brand .nav-logo { display: inline-block; margin-bottom: 12px; font-size: 1.8rem; }
.footer-brand p { color: var(--text2); font-size: 0.88rem; font-weight: 300; line-height: 1.7; max-width: 260px; }
.footer-col h4 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text3); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text2); text-decoration: none; font-size: 0.9rem; padding: 4px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  max-width: var(--max-w); margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { color: var(--text3); font-size: 0.82rem; }
.crisis-strip {
  background: linear-gradient(135deg, rgba(255,80,80,0.1), rgba(255,140,107,0.08));
  border: 1px solid rgba(255,80,80,0.2);
  border-radius: 12px; padding: 14px 20px;
  display: flex; align-items: center; gap: 12px;
  margin: 0 auto 24px; max-width: var(--max-w);
}
.crisis-strip p { font-size: 0.88rem; color: var(--text); }
.crisis-strip strong { color: #ff6b6b; }

@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ══════════════════
   SCROLL REVEAL
══════════════════ */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ══════════════════
   MISC
══════════════════ */
.divider { border: none; border-top: 1px solid var(--border); margin: 48px 0; }
.badge { display: inline-block; font-size: 0.7rem; font-weight: 700; padding: 3px 10px; border-radius: 100px; }
.badge-new { background: rgba(94,255,216,0.15); color: var(--accent3); border: 1px solid rgba(94,255,216,0.25); }
img { max-width: 100%; }
a { color: var(--accent); }
strong { font-weight: 600; }
