/* ============================================================
   shell.css — shared chrome (nav, footer, bg, themes, language menu)
   Used by: About.html, Contact.html, Privacy.html
   The marketing landing page (InspirationApp.html) keeps its own
   inline copy of these styles + extra section styles.
   ============================================================ */

:root {
  --bg: #0c2e17;
  --bg-2: #0a2614;
  --blob-1: #16401f;
  --blob-2: #1f5a2c;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-hi: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.10);
  --border-hi: rgba(255, 255, 255, 0.18);
  --text: #f3efe5;
  --text-dim: rgba(243, 239, 229, 0.7);
  --text-faint: rgba(243, 239, 229, 0.5);
  --accent: #4ea355;
  --accent-hi: #5fbb66;
  --accent-soft: rgba(78, 163, 85, 0.18);
  --nav-bg: rgba(10, 30, 18, 0.55);
  --nav-border: rgba(255, 255, 255, 0.12);
  --download-bg: #f8f5ed;
  --download-fg: #0c2e17;
  --shadow-card: 0 30px 80px -30px rgba(0, 0, 0, 0.55);
  --menu-bg: rgba(20, 50, 30, 0.92);
}

[data-theme="light"] {
  --bg: #eef2e7;
  --bg-2: #e2ead7;
  --blob-1: #d6e3c7;
  --blob-2: #c4d6b1;
  --surface: rgba(255, 255, 255, 0.55);
  --surface-hi: rgba(255, 255, 255, 0.75);
  --border: rgba(12, 46, 23, 0.10);
  --border-hi: rgba(12, 46, 23, 0.18);
  --text: #0c2e17;
  --text-dim: rgba(12, 46, 23, 0.7);
  --text-faint: rgba(12, 46, 23, 0.45);
  --accent: #2f7a37;
  --accent-hi: #3d9446;
  --accent-soft: rgba(47, 122, 55, 0.15);
  --nav-bg: rgba(243, 247, 235, 0.6);
  --nav-border: rgba(12, 46, 23, 0.10);
  --download-bg: #0c2e17;
  --download-fg: #f3efe5;
  --shadow-card: 0 30px 80px -30px rgba(31, 67, 38, 0.35);
  --menu-bg: rgba(255, 255, 255, 0.92);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
  min-height: 100vh;
}

/* ---------- Background blobs ---------- */
.bg-stage { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bg-stage::before, .bg-stage::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(80px);
  opacity: 0.85; transition: background 0.4s ease;
}
.bg-stage::before { width: 700px; height: 700px; background: var(--blob-1); top: -100px; left: -200px; }
.bg-stage::after  { width: 900px; height: 900px; background: var(--blob-2); top: 30%; right: -250px; opacity: 0.55; }
.bg-blob-3 {
  position: fixed; width: 600px; height: 600px; background: var(--blob-1);
  border-radius: 50%; filter: blur(100px); opacity: 0.55;
  bottom: -200px; left: 20%; pointer-events: none; z-index: 0;
  transition: background 0.4s ease;
}

/* ---------- Floating leaves ---------- */
.leaf {
  position: absolute; pointer-events: none; z-index: 1;
  opacity: 0.92; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.25));
  animation: leafFloat 8s ease-in-out infinite;
}
[data-theme="light"] .leaf { opacity: 0.85; filter: drop-shadow(0 12px 24px rgba(31, 67, 38, 0.18)); }
@keyframes leafFloat {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50%      { transform: translateY(-10px) rotate(calc(var(--rot, 0deg) + 3deg)); }
}

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: 'Nunito', system-ui, sans-serif;
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; text-wrap: balance;
}

/* ---------- Nav ---------- */
.nav-wrap {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
  z-index: 100; width: min(1080px, calc(100% - 32px));
}
.nav {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 12px 10px 22px; border-radius: 999px;
  background: transparent; border: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled {
  background: var(--nav-bg); border-color: var(--nav-border);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow: 0 12px 40px -16px rgba(0, 0, 0, 0.35);
}
.brand { display: inline-flex; align-items: center; color: var(--text); text-decoration: none; }
.brand-wordmark {
  display: block; width: 160px; height: 40px;
  background-color: var(--text);
  -webkit-mask: url('inspiration-wordmark.svg') no-repeat center / contain;
          mask: url('inspiration-wordmark.svg') no-repeat center / contain;
  transition: background-color 0.4s ease;
}
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  color: var(--text-dim); text-decoration: none;
  font-size: 14.5px; font-weight: 500;
  padding: 8px 14px; border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.current { color: var(--text); background: var(--surface); }

/* ---------- Chip buttons (theme + lang) ---------- */
.chip-btn {
  height: 38px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); cursor: pointer; padding: 0 12px;
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 13.5px 'Inter', sans-serif;
  transition: background 0.2s, border-color 0.2s;
}
.chip-btn:hover { background: var(--surface-hi); border-color: var(--border-hi); }
.theme-toggle { width: 38px; padding: 0; justify-content: center; }
.theme-toggle svg { width: 18px; height: 18px; transition: transform 0.3s ease; }
.theme-toggle:hover svg { transform: rotate(15deg); }

.lang-wrap { position: relative; }
.flag {
  width: 22px; height: 16px; border-radius: 3px;
  overflow: hidden; display: inline-block; flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.1) inset;
}
.flag svg { display: block; width: 100%; height: 100%; }
.lang-btn .chev { width: 10px; height: 10px; opacity: 0.6; transition: transform 0.2s ease; }
.lang-wrap.open .lang-btn .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0;
  min-width: 200px;
  background: var(--menu-bg);
  border: 1px solid var(--border-hi);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border-radius: 18px; padding: 6px;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.5);
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 10;
}
.lang-wrap.open .lang-menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
.lang-option {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px; border-radius: 12px;
  width: 100%; background: transparent; border: 0;
  color: var(--text); cursor: pointer;
  font: 500 14px 'Inter', sans-serif; text-align: left;
  transition: background 0.15s ease;
}
.lang-option:hover { background: var(--surface-hi); }
.lang-option .check { margin-left: auto; opacity: 0; color: var(--accent-hi); transition: opacity 0.15s; }
.lang-option.active .check { opacity: 1; }
.lang-option .name { font-weight: 500; }
.lang-option .code { font-size: 11px; color: var(--text-faint); letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Download button ---------- */
.btn-download {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--download-bg); color: var(--download-fg);
  border-radius: 999px; padding: 10px 20px 10px 16px;
  font-weight: 700; font-size: 14.5px; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.btn-download:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -8px rgba(0,0,0,0.3); }
.btn-download svg { width: 16px; height: 16px; }

/* ---------- Layout ---------- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }

.subpage {
  position: relative;
  z-index: 2;
  padding: 140px 0 80px;
}

/* ---------- Footer ---------- */
footer { padding: 60px 0 40px; border-top: 1px solid var(--border); margin-top: 60px; position: relative; z-index: 2; }
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-row .links { display: flex; gap: 24px; }
.footer-row a { color: var(--text-dim); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-row a:hover { color: var(--text); }
.footer-row a.current { color: var(--text); }
.footer-row .copy { color: var(--text-faint); font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .nav { padding: 8px 8px 8px 16px; gap: 8px; }
  .brand-wordmark { width: 130px; height: 32px; }
  .lang-btn .lang-short { display: none; }
  .subpage { padding-top: 120px; }
}
