/* =========================
   Theme variables
   ========================= */
:root {
  --bg: #06070a;
  --text: rgba(255,255,255,0.95);
  --muted: rgba(255,255,255,0.72);
  --panel: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.10);
  --btn: rgba(255,255,255,0.10);
  --btn2: rgba(255,255,255,0.06);
}

/* =========================
   Global reset
   ========================= */
* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 50% 10%, rgba(0,180,255,0.14), transparent 60%),
    radial-gradient(900px 500px at 80% 55%, rgba(0,255,200,0.12), transparent 55%),
    var(--bg);
}

/* =========================================================
   LANDING PAGE ONLY
   ========================================================= */

body.landing {
  overflow: hidden;
  min-height: 100vh;
}

/* Remove any legacy splash artifacts */
body.landing img.logo,
body.landing .splash,
body.landing .cryptic {
  display: none !important;
}

/* Top-left logo container */
body.landing .landing-header {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 100;
}

/*
  FORCE logo visibility:
  - invert() turns dark strokes light
  - brightness() ensures contrast
*/
body.landing .landing-logo {
  width: 150px;
  height: auto;
  display: block;

  filter:
    invert(1)
    brightness(1.2)
    drop-shadow(0 2px 10px rgba(0,0,0,0.6));
}

/* Centered cryptic message */
body.landing .landing-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

body.landing .landing-cryptic {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.8px;
  color: rgba(255,255,255,0.85);
}

/* =========================================================
   SHARED STRUCTURE (NGO + Speakeasy pages)
   ========================================================= */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(6,7,10,0.60);
  border-bottom: 1px solid var(--border);
  padding: 14px 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mark {
  width: 26px;
  height: auto;
}

.brandtext {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.3px;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 34px 18px 70px;
}

.hero {
  padding: 18px 0 10px;
}

h1 {
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 12px;
}

.lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 720px;
  margin: 0 0 18px;
}

.ctaRow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 6px;
}

.btn {
  display: inline-block;
  padding: 10px 14px;
  border: 1px solid var(--border);
  background: var(--btn);
  border-radius: 12px;
}

.btn.secondary {
  background: var(--btn2);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.card {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 18px;
  padding: 16px;
}

.card h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.footer {
  margin-top: 26px;
  color: var(--muted);
}

.fineprint {
  font-size: 13px;
}



/* =========================================================
   Landing footer (very faint, bottom anchored) 
   ========================================================= */

body.landing .landing-footer {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 12px;
  z-index: 90;

  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;

  font-size: 12px;
  letter-spacing: 0.3px;
  color: rgba(255,255,255,0.32);

  pointer-events: auto;
}

body.landing .landing-footer a {
  color: rgba(255,255,255,0.36);
  text-decoration: none;
}

body.landing .landing-footer a:hover {
  color: rgba(255,255,255,0.60);
}

body.landing .landing-footer .sep {
  color: rgba(255,255,255,0.18);
}

