/* ============================================
   WHR — World Healing Research
   Stylesheet — Methylene Blue Theme
   ============================================ */

:root {
  --cream: #eef2f7;
  --deep: #050d1a;
  --navy: #0a1628;
  --ocean: #0d2a4a;
  --mb-blue: #1565c0;
  --mb-bright: #1e88e5;
  --mb-vivid: #00a8ff;
  --mb-glow: #42a5f5;
  --azure: #0277bd;
  --gold: #e8c84a;
  --mist: #b8d4f0;
  --white: #ffffff;
  --text-body: #8ab0d4;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  background: var(--cream);
  color: var(--deep);
  overflow-x: hidden;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 4rem;
  background: rgba(5,13,26,0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(30,136,229,0.2);
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem; font-weight: 600; letter-spacing: 0.05em;
  color: var(--mist); text-decoration: none;
}
.nav-logo span { color: var(--mb-vivid); }
.nav-links { display: flex; gap: 0; list-style: none; align-items: center; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: block;
  font-size: 0.75rem; font-weight: 300; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--mist); text-decoration: none;
  padding: 0.5rem 1rem;
  transition: color 0.3s;
}
.nav-links > li > a:hover { color: var(--mb-vivid); }

/* Dropdown */
.nav-dropdown-trigger { cursor: pointer; }
.nav-dropdown-trigger > a::after { content: ' ▾'; font-size: 0.55rem; opacity: 0.5; }
.nav-dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: rgba(5,13,26,0.98);
  border: 1px solid rgba(30,136,229,0.25);
  min-width: 220px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 200;
  backdrop-filter: blur(16px);
}
.nav-dropdown-trigger:hover .nav-dropdown,
.nav-dropdown-trigger:focus-within .nav-dropdown {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: block;
  font-size: 0.72rem; font-weight: 300; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--mist); text-decoration: none;
  padding: 0.8rem 1.25rem;
  border-bottom: 1px solid rgba(30,136,229,0.1);
  transition: background 0.2s, color 0.2s;
}
.nav-dropdown a:last-child { border-bottom: none; }
.nav-dropdown a:hover { background: rgba(30,136,229,0.12); color: var(--mb-vivid); }
.dropdown-invest {
  color: var(--gold) !important;
  border-top: 1px solid rgba(232,200,74,0.2) !important;
}
.dropdown-invest:hover { background: rgba(232,200,74,0.08) !important; color: var(--gold) !important; }

.nav-donate {
  margin-left: 0.75rem;
  padding: 0.5rem 1.3rem !important;
  background: var(--mb-blue) !important;
  color: white !important;
  font-weight: 400 !important;
  transition: background 0.3s, transform 0.2s !important;
}
.nav-donate:hover { background: var(--mb-vivid) !important; transform: translateY(-1px); }

/* HERO */
.hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  padding-top: 72px;
  background: var(--navy);
  overflow: hidden;
}
.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 6rem 4rem; position: relative; z-index: 2;
}
.hero-tag {
  font-size: 0.7rem; font-weight: 400; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--mb-glow);
  border-left: 2px solid var(--mb-vivid); padding-left: 1rem;
  margin-bottom: 2rem;
  opacity: 0; animation: fadeUp 0.8s 0.2s forwards;
}
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  font-weight: 300; line-height: 1.05; color: var(--mist);
  opacity: 0; animation: fadeUp 0.8s 0.4s forwards;
}
.hero h1 em { font-style: italic; color: var(--mb-vivid); }
.hero-sub {
  margin-top: 2rem; max-width: 480px;
  font-size: 1.05rem; font-weight: 200; line-height: 1.7; color: var(--text-body);
  opacity: 0; animation: fadeUp 0.8s 0.6s forwards;
}
.hero-cta {
  display: flex; gap: 1rem; margin-top: 3rem;
  opacity: 0; animation: fadeUp 0.8s 0.8s forwards;
}
.btn-primary {
  padding: 0.85rem 2rem;
  background: var(--mb-blue); color: white;
  font-family: 'Jost', sans-serif; font-size: 0.8rem;
  font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase;
  border: none; cursor: pointer; text-decoration: none;
  transition: background 0.3s, transform 0.2s; display: inline-block;
}
.btn-primary:hover { background: var(--mb-vivid); transform: translateY(-2px); }
.btn-outline {
  padding: 0.85rem 2rem;
  background: transparent; color: var(--mist);
  font-family: 'Jost', sans-serif; font-size: 0.8rem;
  font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid rgba(184,212,240,0.35); cursor: pointer; text-decoration: none;
  transition: all 0.3s; display: inline-block;
}
.btn-outline:hover { border-color: var(--mb-vivid); color: var(--mb-vivid); background: rgba(0,168,255,0.05); }

.hero-right {
  position: relative; background: var(--ocean);
  clip-path: polygon(8% 0%, 100% 0%, 100% 100%, 0% 100%);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero-right::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(21,101,192,0.5) 0%, transparent 65%),
              radial-gradient(ellipse at 80% 20%, rgba(0,168,255,0.2) 0%, transparent 60%);
}
.hero-visual {
  position: relative; z-index: 1; text-align: center; padding: 2rem;
  opacity: 0; animation: fadeIn 1.2s 1s forwards;
}

.dna-center {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem; font-weight: 300;
  color: var(--mb-vivid); letter-spacing: 0.05em;
  position: relative; z-index: 2;
  text-shadow: 0 0 30px rgba(0,168,255,0.5);
}
.dna-center small {
  display: block; font-size: 0.8rem;
  font-family: 'Jost', sans-serif; font-weight: 200;
  color: var(--mist); letter-spacing: 0.2em; margin-top: 0.25rem;
}

@keyframes fadeUp { from { opacity:0; transform: translateY(24px); } to { opacity:1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes rotateSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes orbitDot {
  from { transform: translate(-50%,-50%) rotate(0deg) translateX(150px) rotate(0deg); }
  to   { transform: translate(-50%,-50%) rotate(360deg) translateX(150px) rotate(-360deg); }
}

/* STATS BAR */
.stats-bar {
  background: var(--deep);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 3px solid var(--mb-blue);
}
.stat-item {
  padding: 2.5rem 2rem; text-align: center;
  border-right: 1px solid rgba(30,136,229,0.12);
  transition: background 0.3s;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(21,101,192,0.15); }
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem; font-weight: 400; color: var(--mb-vivid);
  text-shadow: 0 0 20px rgba(0,168,255,0.35);
}
.stat-label {
  font-size: 0.7rem; font-weight: 300; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--mist); margin-top: 0.4rem; opacity: 0.7;
}

/* SECTIONS */
section { padding: 7rem 4rem; }
.section-tag {
  font-size: 0.68rem; font-weight: 400; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--mb-vivid); margin-bottom: 1rem;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 300; line-height: 1.1; color: var(--ocean);
}
.section-title em { font-style: italic; color: var(--mb-blue); }
.section-body { font-size: 1rem; font-weight: 200; line-height: 1.8; color: #3a5a7a; max-width: 640px; margin-top: 1.5rem; }

/* ABOUT */
#about { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; background: var(--white); }
.about-image-panel { position: relative; }
.about-graphic {
  width: 100%; aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--navy) 0%, var(--mb-blue) 100%);
  position: relative; overflow: hidden;
}
.about-graphic::before {
  content: ''; position: absolute; top: -30%; right: -20%;
  width: 80%; aspect-ratio: 1; border: 1px solid rgba(0,168,255,0.25); border-radius: 50%;
}
.about-graphic::after {
  content: ''; position: absolute; bottom: -10%; left: -10%;
  width: 60%; aspect-ratio: 1; border: 1px solid rgba(184,212,240,0.2); border-radius: 50%;
}
.about-graphic-text {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 3rem; text-align: center;
}
.about-graphic-text .big-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4rem; color: var(--mb-vivid); opacity: 0.3; line-height: 1;
}
.about-graphic-text p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; font-style: italic; color: var(--cream); line-height: 1.5; margin-top: 1rem;
}
.about-accent-bar {
  position: absolute; left: -1.5rem; top: 2rem; bottom: 2rem;
  width: 3px; background: linear-gradient(to bottom, var(--mb-vivid), transparent);
}

/* RESEARCH */
#research { background: var(--cream); }
.research-header { max-width: 600px; margin-bottom: 4rem; }
.research-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5px; background: rgba(21,101,192,0.12); }
.research-card {
  background: var(--cream); padding: 3rem 2.5rem;
  position: relative; overflow: hidden; transition: background 0.4s; cursor: default;
}
.research-card::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: linear-gradient(to right, var(--mb-blue), var(--mb-vivid));
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s;
}
.research-card:hover { background: var(--white); }
.research-card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 48px; height: 48px; border: 1px solid var(--mb-blue); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem; color: var(--mb-blue); font-size: 1.2rem;
}
.card-title { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 400; color: var(--ocean); margin-bottom: 0.75rem; line-height: 1.2; }
.card-body { font-size: 0.88rem; font-weight: 300; line-height: 1.7; color: #3a5a7a; }
.card-tag {
  display: inline-block; margin-top: 1.5rem;
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--mb-blue); border: 1px solid rgba(21,101,192,0.35); padding: 0.25rem 0.75rem;
}

/* OUTCOMES */
#outcomes { background: var(--navy); color: var(--mist); position: relative; overflow: hidden; }
#outcomes::before {
  content: ''; position: absolute; top: 0; right: 0; width: 40%; height: 100%;
  background: radial-gradient(ellipse at right center, rgba(21,101,192,0.3) 0%, transparent 70%); pointer-events: none;
}
#outcomes .section-title { color: var(--mist); }
#outcomes .section-title em { color: var(--mb-vivid); }
#outcomes .section-body { color: rgba(184,212,240,0.75); }
.outcomes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-top: 4rem; }
.outcome-card { border: 1px solid rgba(21,101,192,0.3); padding: 2.5rem; position: relative; transition: border-color 0.3s; }
.outcome-card:hover { border-color: var(--mb-vivid); }
.outcome-card::before {
  content: attr(data-num); position: absolute; top: 1.5rem; right: 1.5rem;
  font-family: 'Cormorant Garamond', serif; font-size: 3.5rem; font-weight: 300;
  color: rgba(0,168,255,0.1); line-height: 1;
}
.outcome-title { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; color: var(--mb-vivid); margin-bottom: 0.75rem; }
.outcome-body { font-size: 0.88rem; font-weight: 200; line-height: 1.7; color: rgba(184,212,240,0.8); }

/* APP */
#app { background: var(--ocean); display: grid; grid-template-columns: 1fr 1fr; gap: 0; min-height: 600px; }
.app-content { padding: 7rem 4rem; color: var(--cream); display: flex; flex-direction: column; justify-content: center; }
.app-content .section-title { color: var(--mist); }
.app-content .section-title em { color: var(--mb-vivid); }
.app-content .section-body { color: rgba(184,212,240,0.8); max-width: 480px; }
.app-features { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1rem; }
.app-feature {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.2rem; border-left: 2px solid rgba(0,168,255,0.2); transition: border-color 0.3s, background 0.3s;
}
.app-feature:hover { border-color: var(--mb-vivid); background: rgba(21,101,192,0.1); }
.feature-icon { color: var(--mb-vivid); font-size: 1.1rem; margin-top: 0.1rem; flex-shrink: 0; }
.feature-text { font-size: 0.88rem; font-weight: 200; color: rgba(184,212,240,0.85); line-height: 1.6; }
.feature-text strong { color: var(--mist); font-weight: 400; display: block; margin-bottom: 0.2rem; }
.app-mockup {
  background: rgba(0,0,0,0.25); display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; padding: 3rem;
}
.app-mockup::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,168,255,0.07) 0%, transparent 70%);
}
.phone-frame {
  width: 220px; background: var(--deep); border-radius: 36px;
  border: 6px solid rgba(0,168,255,0.3);
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 40px rgba(0,168,255,0.12);
  overflow: hidden; padding: 2rem 1.5rem; position: relative; z-index: 2;
}
.phone-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.phone-brand { font-size: 0.65rem; letter-spacing: 0.15em; color: var(--mb-vivid); text-transform: uppercase; }
.phone-dot { width: 6px; height: 6px; background: var(--mb-glow); border-radius: 50%; box-shadow: 0 0 6px rgba(66,165,245,0.8); }
.phone-metric { background: rgba(21,101,192,0.12); border: 1px solid rgba(21,101,192,0.3); border-radius: 12px; padding: 1rem; margin-bottom: 0.75rem; }
.phone-metric-label { font-size: 0.55rem; letter-spacing: 0.15em; color: var(--mb-glow); text-transform: uppercase; }
.phone-metric-val { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; color: var(--mb-vivid); margin-top: 0.2rem; }
.phone-bar { height: 4px; background: rgba(255,255,255,0.05); border-radius: 2px; margin-top: 0.5rem; overflow: hidden; }
.phone-bar-fill { height: 100%; background: linear-gradient(to right, var(--mb-blue), var(--mb-vivid)); border-radius: 2px; }

/* ETHICS */
#ethics { background: var(--cream); display: grid; grid-template-columns: 1fr 2fr; gap: 6rem; align-items: start; }
.ethics-left { position: sticky; top: 100px; }
.ethics-items { display: flex; flex-direction: column; gap: 2rem; }
.ethics-item { padding-bottom: 2rem; border-bottom: 1px solid rgba(21,101,192,0.12); }
.ethics-item:last-child { border-bottom: none; }
.ethics-item-title { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 400; color: var(--ocean); margin-bottom: 0.5rem; }
.ethics-item-body { font-size: 0.88rem; font-weight: 200; line-height: 1.7; color: #3a5a7a; }

/* CONTACT */
#contact { background: var(--navy); text-align: center; padding: 8rem 4rem; position: relative; overflow: hidden; }
#contact::before {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 600px; height: 600px; border: 1px solid rgba(0,168,255,0.07); border-radius: 50%; pointer-events: none;
}
#contact::after {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 400px; height: 400px; border: 1px solid rgba(21,101,192,0.1); border-radius: 50%; pointer-events: none;
}
#contact .section-title { color: var(--mist); }
#contact .section-title em { color: var(--mb-vivid); }
#contact .section-body { color: rgba(184,212,240,0.7); max-width: 540px; margin: 1.5rem auto 0; }
.contact-form {
  margin-top: 3rem; display: flex; flex-direction: column; gap: 1rem;
  max-width: 520px; margin-left: auto; margin-right: auto; position: relative; z-index: 1;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-input {
  padding: 0.85rem 1.2rem;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(184,212,240,0.15);
  color: var(--mist); font-family: 'Jost', sans-serif; font-size: 0.85rem;
  font-weight: 200; letter-spacing: 0.05em; transition: border-color 0.3s, background 0.3s; width: 100%;
}
.form-input:focus { outline: none; border-color: var(--mb-vivid); background: rgba(0,168,255,0.04); }
.form-input::placeholder { color: rgba(184,212,240,0.3); }
textarea.form-input { resize: vertical; min-height: 120px; }
.form-input option { background: #050d1a; }
.contact-email-note {
  font-size: 0.78rem; font-weight: 200; letter-spacing: 0.06em;
  color: rgba(184,212,240,0.4); position: relative; z-index: 1; margin-top: 0.25rem;
}
.contact-email-note a { color: var(--mb-glow); text-decoration: none; }
.contact-email-note a:hover { color: var(--mb-vivid); }

/* DONATE BANNER */
.donate-banner {
  background: linear-gradient(135deg, var(--mb-blue) 0%, #0d47a1 100%);
  padding: 4rem; display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap; position: relative; overflow: hidden;
}
.donate-banner::before {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 400px; height: 400px; border: 1px solid rgba(255,255,255,0.07); border-radius: 50%; pointer-events: none;
}
.donate-banner-content { max-width: 580px; }
.donate-banner-eyebrow { font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; color: rgba(184,212,240,0.6); margin-bottom: 0.6rem; }
.donate-banner-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 300; color: white; line-height: 1.1; }
.donate-banner-title em { font-style: italic; color: var(--mb-vivid); }
.donate-banner-body { margin-top: 0.9rem; font-size: 0.92rem; font-weight: 200; color: rgba(184,212,240,0.8); line-height: 1.7; max-width: 460px; }
.donate-btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 1rem 2.5rem; background: white; color: var(--mb-blue);
  font-family: 'Jost', sans-serif; font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase; text-decoration: none;
  white-space: nowrap; transition: background 0.3s, transform 0.2s, color 0.3s;
  position: relative; z-index: 1;
}
.donate-btn:hover { background: var(--mb-vivid); color: white; transform: translateY(-2px); }

/* FOOTER */
footer {
  background: var(--deep); padding: 3rem 4rem;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(21,101,192,0.2);
}
.footer-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; color: var(--mist); }
.footer-logo span { color: var(--mb-vivid); }
.footer-note { font-size: 0.7rem; font-weight: 200; letter-spacing: 0.1em; color: rgba(184,212,240,0.3); max-width: 400px; text-align: center; line-height: 1.6; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(184,212,240,0.4); text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: var(--mb-vivid); }

.icon { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s, transform 0.7s; }
.reveal.visible { opacity: 1; transform: translateY(0); }


/* ============================================
   DEMO SECTION
   ============================================ */
/* ============================================
   DEMO NAV LINK
   ============================================ */
.nav-demo-link {
  padding: 0.45rem 1rem !important;
  background: #1565c0 !important;
  color: #fff !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em !important;
  transition: all 0.25s !important;
  border: none !important;
}
.nav-demo-link:hover {
  background: #0d47a1 !important;
  color: #fff !important;
}

/* ============================================
   DEMO SECTION — Light/White Theme
   ============================================ */
.demo-section {
  background: #fff;
  padding: 6rem 4rem 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid #e8edf5;
}
.demo-section::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(to right, #0d47a1, #1565c0, #42a5f5);
}

.demo-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.demo-text { max-width: 520px; }

.demo-section .section-tag { color: #1565c0; }
.demo-section .section-title { color: #0d1a2e; }
.demo-section .section-title em { color: #1565c0; }

.demo-desc {
  font-size: .92rem;
  font-weight: 300;
  line-height: 1.7;
  color: #4a6080;
  margin-top: .75rem;
  max-width: 480px;
}

.demo-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: flex-start;
  padding-top: .5rem;
}
.demo-pill {
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .85rem;
  background: #e8f0fe;
  border: 1px solid #c5d8f5;
  color: #1565c0;
  font-weight: 500;
}
.demo-pill.gold {
  background: #fffbec;
  border-color: #f0d060;
  color: #7a5a00;
}

.demo-frame-wrap {
  background: #f0f4f8;
  border: 1px solid #c8d8ec;
  border-bottom: none;
  min-height: 750px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0,0,0,.04);
}

#whs-app-root {
  width: 100%;
  min-height: 750px;
}

/* ============================================
   MOBILE — Complete Responsive System
   Single source of truth for all breakpoints
   ============================================ */

/* ── 900px: Tablet ── */
@media (max-width: 900px) {
  /* Demo section */
  .demo-section { padding: 3rem 1.5rem 0; }
  .demo-header-inner { flex-direction: column; gap: 1rem; }
  .demo-frame-wrap { min-height: 560px; border-radius: 0; margin: 0 -1.5rem; border-left: none; border-right: none; }
}

/* ── 768px: Mobile ── */
@media (max-width: 768px) {

  /* ─── GLOBAL ─── */
  body { overflow-x: hidden; }
  section { padding: 3.5rem 1.4rem !important; }

  /* ─── NAV ─── */
  nav { padding: 1rem 1.2rem; }
  .nav-links { display: none; }

  /* ─── HERO ─── */
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-right { clip-path: none; min-height: 280px; }
  .hero-left { padding: 5rem 1.4rem 3rem; }

  /* ─── ABOUT ─── */
  #about { grid-template-columns: 1fr; gap: 2.5rem; }

  /* ─── RESEARCH ─── */
  .research-grid { grid-template-columns: 1fr; gap: 1rem; }
  .card-title { font-size: 1.1rem; }

  /* ─── OUTCOMES ─── */
  .outcomes-grid { grid-template-columns: 1fr; gap: 1px; }

  /* ─── STATS ─── */
  .stats-bar { grid-template-columns: 1fr 1fr; }

  /* ─── APP SECTION ─── */
  #app {
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    gap: 0 !important;
    background: var(--white) !important;
  }

  /* Text block: full-width, good padding, dark readable text */
  .app-content {
    order: 1;
    padding: 3rem 1.4rem 2rem !important;
    background: var(--white) !important;
    color: var(--navy) !important;
  }
  .app-content .section-tag {
    color: var(--mb-blue) !important;
    font-size: .58rem;
    letter-spacing: .22em;
  }
  .app-content .section-title {
    color: var(--navy) !important;
    font-size: 2rem;
    line-height: 1.1;
    margin-top: .5rem;
  }
  .app-content .section-title em {
    color: var(--mb-blue) !important;
  }
  .app-content .section-body {
    color: #3a5a78 !important;
    font-size: .85rem;
    line-height: 1.72;
    max-width: 100% !important;
    margin-top: 1rem;
  }

  /* Features: clean vertical stack, no horizontal scroll */
  .app-features {
    flex-direction: column !important;
    gap: 0 !important;
    margin-top: 1.8rem !important;
    overflow: visible !important;
  }
  .app-feature {
    display: flex !important;
    flex-direction: row !important;
    gap: .85rem !important;
    align-items: flex-start !important;
    padding: .9rem 0 !important;
    border-left: none !important;
    border-top: none !important;
    border-bottom: 1px solid rgba(21,101,192,.08) !important;
    background: transparent !important;
    min-width: unset !important;
    flex-shrink: unset !important;
  }
  .app-feature:last-child { border-bottom: none !important; }
  .feature-icon {
    font-size: .9rem !important;
    color: var(--mb-blue) !important;
    flex-shrink: 0 !important;
    margin-top: .15rem !important;
    width: 20px;
    text-align: center;
  }
  .feature-text {
    font-size: .82rem !important;
    font-weight: 300 !important;
    line-height: 1.65 !important;
    color: #3a5a78 !important;
  }
  .feature-text strong {
    display: block !important;
    font-size: .83rem !important;
    font-weight: 600 !important;
    color: var(--navy) !important;
    margin-bottom: .18rem !important;
  }

  /* Phone mockup: centered, floating against dark bg */
  .app-mockup {
    order: 2;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 2.5rem 2rem 3rem !important;
    background: var(--navy) !important;
    min-height: unset !important;
    position: relative;
    overflow: hidden;
  }
  /* Subtle glow */
  .app-mockup::before {
    content: '';
    position: absolute;
    top: -40px; left: 50%;
    transform: translateX(-50%);
    width: 300px; height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,168,255,.12) 0%, transparent 65%);
    pointer-events: none;
  }

  .phone-frame {
    width: 200px !important;
    padding: 1.5rem 1.25rem !important;
    background: rgba(5,13,26,.95) !important;
    border: 1px solid rgba(0,168,255,.2) !important;
    border-radius: 24px !important;
    box-shadow: 0 24px 56px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.03) !important;
    position: relative;
    z-index: 2;
  }
  .phone-top { margin-bottom: 1.2rem !important; }
  .phone-brand {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: .75rem !important;
    letter-spacing: .12em !important;
    color: var(--mist) !important;
    text-transform: none !important;
  }
  .phone-dot {
    width: 7px !important; height: 7px !important;
    background: var(--mb-vivid) !important;
    border-radius: 50% !important;
    box-shadow: 0 0 8px rgba(0,168,255,.9) !important;
  }
  .phone-metric {
    margin-bottom: .9rem !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    border-bottom: 1px solid rgba(30,136,229,.12) !important;
    padding-bottom: .85rem !important;
  }
  .phone-metric:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
  .phone-metric-label {
    font-size: .52rem !important;
    letter-spacing: .14em !important;
    color: rgba(184,212,240,.4) !important;
    text-transform: uppercase !important;
    margin-bottom: .2rem !important;
  }
  .phone-metric-val {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 1.6rem !important;
    color: var(--mb-vivid) !important;
    line-height: 1 !important;
    margin-bottom: .35rem !important;
  }
  .phone-bar {
    height: 2px !important;
    background: rgba(30,136,229,.15) !important;
    margin-top: 0 !important;
  }
  .phone-bar-fill {
    height: 100% !important;
    background: linear-gradient(to right, var(--mb-blue), var(--mb-vivid)) !important;
  }

  /* ─── ETHICS ─── */
  #ethics { grid-template-columns: 1fr !important; gap: 0 !important; }
  .ethics-left { position: static !important; padding-bottom: 2rem; border-bottom: 1px solid rgba(21,101,192,.12); margin-bottom: 2rem; }
  .ethics-left .section-title { font-size: 1.8rem; }

  /* ─── CONTACT ─── */
  .form-row { grid-template-columns: 1fr; }
  #contact { padding: 3.5rem 1.4rem !important; }

  /* ─── DONATE BANNER ─── */
  .donate-banner { flex-direction: column; padding: 2.5rem 1.4rem; gap: 1.5rem; text-align: center; }
  .donate-banner-title { font-size: 1.6rem; }
  .donate-btn { width: 100%; text-align: center; padding: .9rem 1.5rem; }

  /* ─── FOOTER ─── */
  footer { flex-direction: column; gap: 1.5rem; text-align: center; padding: 2.5rem 1.4rem; }
  .footer-links { flex-wrap: wrap; gap: 1rem; justify-content: center; }

  /* ─── DEMO SECTION ─── */
  .demo-section { padding: 2rem 0 0 !important; }
  .demo-header-inner {
    flex-direction: column;
    gap: .75rem;
    padding: 0 1.4rem;
    margin-bottom: 1.5rem;
  }
  .demo-section .section-tag { font-size: .55rem; letter-spacing: .22em; }
  .demo-section .section-title { font-size: 1.55rem; }
  .demo-desc { font-size: .78rem; line-height: 1.65; }
  .demo-pills { gap: .3rem; flex-wrap: wrap; }
  .demo-pill { font-size: .56rem; padding: .26rem .6rem; }
  .demo-frame-wrap {
    border: none;
    border-top: 1px solid #dde6f0;
    margin: 0;
    min-height: 100svh;
    min-height: 100vh;
    overflow: visible;
    box-shadow: none;
    background: transparent;
  }
  #whs-app-root {
    width: 100%;
    min-height: 100svh;
    min-height: 100vh;
    display: block;
  }

  /* Typography */
  .section-title { font-size: 1.8rem !important; }
  .section-body { font-size: .85rem !important; line-height: 1.7 !important; }
}

/* ── 480px: Small phones ── */
@media (max-width: 480px) {
  section { padding: 3rem 1.2rem !important; }

  #app { padding: 0 !important; }
  .app-content { padding: 2.5rem 1.2rem 1.75rem !important; }
  .app-content .section-title { font-size: 1.75rem; }
  .app-feature { gap: .75rem !important; padding: .8rem 0 !important; }
  .feature-text { font-size: .79rem !important; }

  .app-mockup { padding: 2rem 1.5rem 2.5rem !important; }
  .phone-frame { width: 185px !important; border-radius: 20px !important; }
  .phone-metric-val { font-size: 1.45rem !important; }

  #contact { padding: 3rem 1.2rem !important; }
  .donate-banner { padding: 2rem 1.2rem; }
}

/* ═══════════════════════════════════════════════
   ORBITAL HERO ANIMATION
═══════════════════════════════════════════════ */

.hero-visual {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; animation: fadeIn 1.2s 0.8s forwards;
}

.orb-scene {
  position: relative;
  width: 460px; height: 460px;
  flex-shrink: 0;
}

/* ── PULSE RINGS (expand from center) ── */
.orb-pulse {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(0, 200, 255, 0.45);
  animation: orbPulse 4.2s ease-out infinite;
  pointer-events: none;
}
@keyframes orbPulse {
  0%   { width: 60px;  height: 60px;  opacity: 0.65; }
  100% { width: 460px; height: 460px; opacity: 0; }
}

/* ── STATIC RINGS ── */
.orb-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}
.orb-r1 {
  width: 180px; height: 180px;
  border: 1px solid rgba(0, 200, 255, 0.28);
  box-shadow: 0 0 8px rgba(0,200,255,0.08);
  animation: orbRing1 8s linear infinite;
}
.orb-r2 {
  width: 280px; height: 280px;
  border: 1px solid rgba(0, 160, 255, 0.2);
  animation: orbRing2 14s linear infinite;
}
.orb-r3 {
  width: 390px; height: 390px;
  border: 1px solid rgba(0, 120, 255, 0.14);
  animation: orbRing2 22s linear infinite reverse;
}
.orb-r4 {
  width: 454px; height: 454px;
  border: 1px dashed rgba(0, 100, 200, 0.09);
  animation: orbRing1 45s linear infinite reverse;
}

@keyframes orbRing1 { from{transform:translate(-50%,-50%) rotate(0deg)}   to{transform:translate(-50%,-50%) rotate(360deg)} }
@keyframes orbRing2 { from{transform:translate(-50%,-50%) rotate(0deg)}   to{transform:translate(-50%,-50%) rotate(-360deg)} }

/* ── SVG OVERLAY (radial lines + ticks) ── */
.orb-svg {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 460px; height: 460px;
  pointer-events: none;
  animation: orbRing2 70s linear infinite;
}

/* ── SPINNING HEX FRAME ── */
.orb-hex-wrap {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 110px; height: 110px;
}
.orb-hex-svg {
  width: 100%; height: 100%;
  animation: orbRing1 18s linear infinite;
}

/* ── ORBIT TRACKS ── */
.orb-track {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

/* Track 1 — inner, fast */
.orb-t1 { animation: orbRing1 8s linear infinite; }
/* Track 2 — main, medium */
.orb-t2 { animation: orbRing2 14s linear infinite; }
/* Track 3 — outer, slow */
.orb-t3 { animation: orbRing1 24s linear infinite; }

/* ── NODES ── */
.orb-node {
  position: absolute;
  top: 50%; left: 50%;
}

/* Cardinal positions — distance = orbit radius */
.orb-t1 .on-top    { transform: translate(-50%, calc(-50% - 90px)); }
.orb-t1 .on-right  { transform: translate(calc(-50% + 90px), -50%); }

.orb-t2 .on-top    { transform: translate(-50%, calc(-50% - 140px)); }
.orb-t2 .on-right  { transform: translate(calc(-50% + 140px), -50%); }
.orb-t2 .on-bottom { transform: translate(-50%, calc(-50% + 140px)); }
.orb-t2 .on-left   { transform: translate(calc(-50% - 140px), -50%); }

.orb-t3 .on-top    { transform: translate(-50%, calc(-50% - 195px)); }
.orb-t3 .on-right  { transform: translate(calc(-50% + 195px), -50%); }
.orb-t3 .on-bottom { transform: translate(-50%, calc(-50% + 195px)); }
.orb-t3 .on-left   { transform: translate(calc(-50% - 195px), -50%); }

/* ── DOT STYLES ── */
.orb-dot {
  border-radius: 50%;
  transform: translate(-50%, -50%);
  position: absolute;
  top: 0; left: 0;
}
.od-xs  { width: 5px;  height: 5px;  }
.od-sm  { width: 9px;  height: 9px;  }
.od-md  { width: 11px; height: 11px; }
.od-lg  { width: 14px; height: 14px; }

.od-cyan   { background: radial-gradient(circle at 35% 35%, #80f0ff, #00aaff); box-shadow: 0 0 10px rgba(0,200,255,.8), 0 0 24px rgba(0,180,255,.3); }
.od-gold   { background: radial-gradient(circle at 35% 35%, #ffe066, #c9a84c); box-shadow: 0 0 12px rgba(201,168,76,.85), 0 0 28px rgba(201,168,76,.3); }
.od-blue   { background: radial-gradient(circle at 35% 35%, #88c8ff, #0066cc); box-shadow: 0 0 10px rgba(0,120,220,.8), 0 0 24px rgba(0,100,200,.3); }
.od-white  { background: radial-gradient(circle at 35% 35%, #ffffff, #b0d8ff); box-shadow: 0 0 8px rgba(200,230,255,.9), 0 0 20px rgba(160,210,255,.35); }
.od-purple { background: radial-gradient(circle at 35% 35%, #d0a8ff, #7040cc); box-shadow: 0 0 9px rgba(160,100,255,.75), 0 0 20px rgba(120,60,220,.3); }
.od-green  { background: radial-gradient(circle at 35% 35%, #88ffcc, #00c878); box-shadow: 0 0 9px rgba(0,200,120,.75), 0 0 20px rgba(0,180,100,.3); }

/* ── NODE LABELS ── */
.orb-lbl {
  position: absolute;
  font-family: 'Courier New', monospace;
  font-size: 7px;
  letter-spacing: 0.2em;
  color: rgba(160, 210, 255, 0.75);
  white-space: nowrap;
  top: -18px; left: 50%;
  transform: translateX(-50%);

  /* counter-rotate so label stays upright */
}
.orb-t1 .orb-lbl { animation: orbCounter1  8s linear infinite; }
.orb-t2 .orb-lbl { animation: orbCounter2 14s linear infinite; }
.orb-t3 .orb-lbl { animation: orbCounter3 24s linear infinite; }

@keyframes orbCounter1 { from{transform:translateX(-50%) rotate(0deg)}   to{transform:translateX(-50%) rotate(-360deg)} }
@keyframes orbCounter2 { from{transform:translateX(-50%) rotate(0deg)}   to{transform:translateX(-50%) rotate(360deg)} }
@keyframes orbCounter3 { from{transform:translateX(-50%) rotate(0deg)}   to{transform:translateX(-50%) rotate(-360deg)} }

/* ── CORE ── */
.orb-core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  text-align: center;
}
.orb-core-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,168,255,0.18) 0%, rgba(0,80,200,0.08) 45%, transparent 70%);
  animation: coreBreath 3.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes coreBreath {
  0%, 100% { transform: translate(-50%,-50%) scale(1);    opacity: 1; }
  50%       { transform: translate(-50%,-50%) scale(1.18); opacity: 0.7; }
}
.orb-core-text { position: relative; z-index: 2; }
.orb-whs {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 3.8rem;
  font-weight: 300;
  color: #fff;
  letter-spacing: 0.06em;
  line-height: 1;
  text-shadow:
    0 0 18px rgba(0,200,255,1),
    0 0 40px rgba(0,200,255,0.6),
    0 0 80px rgba(0,140,255,0.28);
  animation: wshPulse 4s ease-in-out infinite;
}
@keyframes wshPulse {
  0%, 100% { text-shadow: 0 0 18px rgba(0,200,255,1), 0 0 40px rgba(0,200,255,.6), 0 0 80px rgba(0,140,255,.28); }
  50%       { text-shadow: 0 0 26px rgba(0,220,255,1), 0 0 60px rgba(0,200,255,.8), 0 0 110px rgba(0,160,255,.4); }
}
.orb-sub {
  display: block;
  font-family: 'Jost', sans-serif;
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.32em;
  color: rgba(0, 210, 255, 0.65);
  text-transform: uppercase;
  margin-top: 5px;
}

/* ── HUD LABELS ── */
.orb-hud {
  position: absolute;
  font-family: 'Courier New', monospace;
  font-size: 7.5px;
  letter-spacing: 0.18em;
  color: rgba(0, 200, 255, 0.38);
  line-height: 1.7;
  text-transform: uppercase;
  pointer-events: none;
}
.orb-hud-tl { top: 12px;  left: 12px;  }
.orb-hud-br { bottom: 12px; right: 12px; text-align: right; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .orb-scene { width: 300px; height: 300px; }
  .orb-r1 { width: 120px; height: 120px; }
  .orb-r2 { width: 185px; height: 185px; }
  .orb-r3 { width: 258px; height: 258px; }
  .orb-r4 { width: 298px; height: 298px; }
  .orb-t1 .on-top   { transform: translate(-50%, calc(-50% - 60px)); }
  .orb-t1 .on-right { transform: translate(calc(-50% + 60px), -50%); }
  .orb-t2 .on-top    { transform: translate(-50%, calc(-50% - 92px)); }
  .orb-t2 .on-right  { transform: translate(calc(-50% + 92px), -50%); }
  .orb-t2 .on-bottom { transform: translate(-50%, calc(-50% + 92px)); }
  .orb-t2 .on-left   { transform: translate(calc(-50% - 92px), -50%); }
  .orb-t3 .on-top    { transform: translate(-50%, calc(-50% - 129px)); }
  .orb-t3 .on-right  { transform: translate(calc(-50% + 129px), -50%); }
  .orb-t3 .on-bottom { transform: translate(-50%, calc(-50% + 129px)); }
  .orb-t3 .on-left   { transform: translate(calc(-50% - 129px), -50%); }
  .orb-svg { width: 298px; height: 298px; }
  .orb-whs { font-size: 2.8rem; }
  .orb-hud { display: none; }
}

/* ═══════════════════════════════════════════════
   INVESTOR + MBLU SECTION — GRID DEFAULTS
═══════════════════════════════════════════════ */

.inv-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #1a2d45;
  border: 1px solid #1a2d45;
  margin-bottom: 3.5rem;
}

.inv-main-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}

.mblu-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #0f1f35;
  border: 1px solid #0f1f35;
  margin-bottom: 3rem;
}

.mblu-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}

/* ═══════════════════════════════════════════════
   MOBILE — ALL SECTIONS
═══════════════════════════════════════════════ */
@media (max-width: 700px) {

  /* ── Investor section ── */
  #invest { padding: 3.5rem 1.1rem !important; }

  .inv-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .inv-main-grid {
    grid-template-columns: 1fr;
  }

  /* hide slide preview thumbnails on mobile — too small to be useful */
  .inv-main-grid > div:first-child > div:first-child > div:nth-child(2),
  .inv-main-grid > div:first-child > div:first-child > div:nth-child(3) {
    display: none;
  }

  /* make download button full width */
  .inv-main-grid a[href*="pptx"] {
    width: 100%;
  }

  /* right column (terms + bar chart) stacks below */
  .inv-main-grid > div:last-child {
    width: 100%;
  }

  /* ── MBLU section ── */
  #mblu { padding: 3.5rem 1.1rem !important; }

  .mblu-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .mblu-main-grid {
    grid-template-columns: 1fr;
  }

  /* ── Orbital hero ── */
  .hero { grid-template-columns: 1fr !important; }
  .hero-right { min-height: 320px; clip-path: none !important; }
  .orb-scene { width: 280px !important; height: 280px !important; }
  .orb-r1 { width: 110px !important; height: 110px !important; }
  .orb-r2 { width: 170px !important; height: 170px !important; }
  .orb-r3 { width: 238px !important; height: 238px !important; }
  .orb-r4 { width: 278px !important; height: 278px !important; }
  .orb-svg { width: 278px !important; height: 278px !important; }
  .orb-whs { font-size: 2.6rem !important; }
  .orb-hud { display: none !important; }

  .orb-t1 .on-top   { transform: translate(-50%, calc(-50% - 55px)) !important; }
  .orb-t1 .on-right { transform: translate(calc(-50% + 55px), -50%) !important; }

  .orb-t2 .on-top    { transform: translate(-50%, calc(-50% - 85px)) !important; }
  .orb-t2 .on-right  { transform: translate(calc(-50% + 85px), -50%) !important; }
  .orb-t2 .on-bottom { transform: translate(-50%, calc(-50% + 85px)) !important; }
  .orb-t2 .on-left   { transform: translate(calc(-50% - 85px), -50%) !important; }

  .orb-t3 .on-top    { transform: translate(-50%, calc(-50% - 119px)) !important; }
  .orb-t3 .on-right  { transform: translate(calc(-50% + 119px), -50%) !important; }
  .orb-t3 .on-bottom { transform: translate(-50%, calc(-50% + 119px)) !important; }
  .orb-t3 .on-left   { transform: translate(calc(-50% - 119px), -50%) !important; }

  /* ── Stats bar ── */
  .stats-bar { grid-template-columns: 1fr 1fr !important; }

  /* ── About / general sections ── */
  .about-grid { grid-template-columns: 1fr !important; }
  .about-image-panel { display: none !important; }

  /* ── Contact form ── */
  .form-row { flex-direction: column !important; }

  /* ── Nav ── */
  .nav-links { gap: 0.6rem !important; }
  .nav-dropdown { left: auto !important; right: 0 !important; }

  /* ── Demo section ── */
  .demo-header-inner { flex-direction: column !important; }
  .demo-frame-wrap { overflow-x: auto; }
}
