/* Azeel — shared styles (nav, footer, cookie banner, legal/prose pages) */
:root {
  --bg: #0a0e07;
  --bg-2: #0f1309;
  --panel: rgba(255, 255, 255, 0.03);
  --stroke: rgba(255, 255, 255, 0.08);
  --stroke-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f5ef;
  --muted: #9fa398;
  --muted-2: #6b7163;
  --brand: #a3d54f;
  --brand-deep: #7da631;
  --brand-glow: rgba(163, 213, 79, 0.45);
  --amber: #f5a623;
  --cream: #fdf7e2;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }

/* ───────── SHARED NAV ───────── */
.site-shell {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem clamp(1rem, 3vw, 2rem) 2rem;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.25rem 0 2rem;
}
.wordmark { height: 26px; width: auto; display: block; }
.nav-actions { display: flex; align-items: center; gap: 0.25rem; font-size: 0.875rem; }
.nav-link {
  color: var(--muted);
  text-decoration: none;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav-cta {
  color: #0a0e07;
  background: var(--brand);
  padding: 0.55rem 0.95rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  margin-left: 0.5rem;
  transition: transform 0.15s ease, background 0.15s ease;
}
.nav-cta:hover { background: #b7e06a; transform: translateY(-1px); }

/* ───────── SHARED FOOTER ───────── */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1.25rem;
  margin-top: 2rem;
  border-top: 1px solid var(--stroke);
  font-size: 0.8125rem;
  color: var(--muted-2);
}
.foot a { color: var(--muted); text-decoration: none; margin-left: 1.25rem; }
.foot-links a:first-child { margin-left: 0; }
.foot a:hover { color: var(--text); }

/* ───────── LEGAL / PROSE PAGES ───────── */
.prose-page {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 1.5rem clamp(1rem, 3vw, 2rem) 4rem;
}
.prose-hero {
  margin: 1rem 0 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--stroke);
}
.prose-eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 0.5rem;
}
.prose-title {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--text);
}

.prose {
  font-size: 1rem;
  line-height: 1.7;
  color: #d8dcd0;
}
.prose h1, .prose h2, .prose h3 {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 2.25rem 0 0.85rem;
}
.prose h1 { font-size: 1.55rem; }
.prose h2 { font-size: 1.2rem; color: var(--cream); }
.prose h3 { font-size: 1.05rem; color: #eaead8; }
.prose p { margin: 0 0 1rem; }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul, .prose ol { margin: 0 0 1.25rem; padding-left: 1.25rem; }
.prose li { margin: 0.3rem 0; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: #b7e06a; }
.prose hr { border: none; border-top: 1px solid var(--stroke); margin: 2rem 0; }

.prose-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color 0.15s ease;
}
.prose-back:hover { color: var(--brand); }

/* ───────── AMBIENT BACKGROUND ───────── */
.bg-layer { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.bg-mesh {
  background:
    radial-gradient(1000px 700px at 82% -10%, rgba(245, 166, 35, 0.14), transparent 60%),
    radial-gradient(900px 650px at 12% 110%, rgba(125, 166, 49, 0.22), transparent 60%);
}
.bg-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 0%, transparent 85%);
}

/* ───────── COOKIE BANNER ───────── */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  max-width: 640px;
  margin: 0 auto;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--stroke-strong);
  background: rgba(15, 18, 12, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1rem;
  color: #e6e8dd;
  font-size: 0.875rem;
  line-height: 1.5;
  transform: translateY(calc(100% + 2rem));
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.cookie-banner.is-visible { transform: translateY(0); opacity: 1; }
.cookie-text { flex: 1 1 240px; margin: 0; color: #d9dccf; }
.cookie-text a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.cookie-btn {
  border: 1px solid var(--stroke-strong);
  background: transparent;
  color: var(--text);
  padding: 0.55rem 0.95rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.cookie-btn:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.3); }
.cookie-btn.primary {
  background: linear-gradient(180deg, #b7e06a, var(--brand-deep));
  color: #0a0e07;
  border-color: rgba(255, 255, 255, 0.1);
}
.cookie-btn.primary:hover { transform: translateY(-1px); }

@media (max-width: 520px) {
  .nav-link.hide-sm { display: none; }
  .cookie-banner { padding: 0.85rem 0.95rem; }
  .cookie-actions { width: 100%; }
  .cookie-btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-banner { transition: none; }
}
