/* ══════════════════════════════════════════════════
   STORMYCLOUD — Main Stylesheet
   Dark theme default · Light via [data-theme="light"]
══════════════════════════════════════════════════ */

/* ── 1. THEME VARIABLES ── */
:root {
  /* Dark theme (default) */
  --bg:        #040c18;
  --surface:   #091428;
  --card:      #0d1c35;
  --border:    rgba(43,147,244,0.12);
  --border-hi: rgba(87,206,248,0.28);
  --accent:    #57cef8;
  --primary:   #2b93f4;
  --secondary: #2186bd;
  --text:      #8aaec8;
  --text-hi:   #ddeef8;
  --muted:     #2e5070;
  --ok:        #27c93f;
  --warn:      #ffb547;

  --nav-bg:          rgba(4,12,24,0.97);
  --nav-bg-scrolled: rgba(4,12,24,0.99);
  --grid-color:      rgba(43,147,244,0.06);

  /* Terminal vars (intentionally always dark interior) */
  --term-bg:         #091428;
  --term-bar-bg:     rgba(255,255,255,0.02);
  --term-bar-border: rgba(43,147,244,0.12);
  --term-title:      #2e5070;
  --term-prompt:     #57cef8;
  --term-cmd:        #ddeef8;
  --term-key:        #2e5070;
  --term-val:        #8aaec8;
  --term-ok:         #27c93f;
  --term-warn:       #ffb547;
  --term-blue:       #2b93f4;
  --term-cursor:     #57cef8;
}

[data-theme="light"] {
  --bg:        #eef4fb;
  --surface:   #ffffff;
  --card:      #ffffff;
  --border:    rgba(33,134,189,0.15);
  --border-hi: rgba(33,134,189,0.4);
  --accent:    #2186bd;
  --primary:   #1a6fc4;
  --secondary: #214478;
  --text:      #2e4f6e;
  --text-hi:   #0c1d35;
  --muted:     #6e90aa;
  --ok:        #1a7a30;
  --warn:      #b56000;

  --nav-bg:          rgba(238,244,251,0.98);
  --nav-bg-scrolled: rgba(238,244,251,0.99);
  --grid-color:      rgba(33,134,189,0.07);

  /* Terminal vars — light page keeps dark terminal */
  --term-bg:         #0d1f38;
  --term-bar-bg:     rgba(255,255,255,0.06);
  --term-bar-border: rgba(255,255,255,0.08);
  --term-title:      rgba(255,255,255,0.3);
  --term-prompt:     #57cef8;
  --term-cmd:        #ffffff;
  --term-key:        rgba(255,255,255,0.35);
  --term-val:        rgba(255,255,255,0.7);
  --term-ok:         #4cde74;
  --term-warn:       #ffca6a;
  --term-blue:       #7eb8f7;
  --term-cursor:     #57cef8;
}

/* ── 2. RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── 3. BODY ── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
}


/* ═══════════════════════════════
   NAV
═══════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 800;
  height: 64px;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  padding: 0 56px;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  display: flex; align-items: center;
  text-decoration: none;
  height: 100%;
  padding: 18px 0;
}

.nav-logo img {
  height: 50px;
  width: auto;
  opacity: 0.92;
  transition: opacity 0.2s;
}
.nav-logo:hover img { opacity: 1; }

[data-theme="light"] .nav-logo img {
  filter: brightness(0.7) saturate(1.3);
  opacity: 1;
}
[data-theme="light"] .nav-logo:hover img { opacity: 0.85; }

.nav-links {
  display: flex; align-items: center;
}

.nav-links a {
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 11px; font-weight: 400;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  padding: 0 22px; height: 64px;
  display: flex; align-items: center;
  border-left: 1px solid var(--border);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--accent); background: rgba(87,206,248,0.04); }
[data-theme="light"] .nav-links a:hover { color: var(--secondary); background: rgba(33,134,189,0.05); }

.nav-links a.donate {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff !important;
  font-weight: 500;
  border-left: none;
  margin-left: 1px;
}
.nav-links a.donate:hover {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: #fff !important;
}
[data-theme="light"] .nav-links a.donate {
  background: linear-gradient(135deg, #214478, #162d50);
}
[data-theme="light"] .nav-links a.donate:hover {
  background: linear-gradient(135deg, #2186bd, #214478);
}

/* Theme toggle button */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  width: 36px; height: 36px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  margin-left: 16px;
  color: var(--text);
  border-color: var(--border-hi);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(87,206,248,0.08);
}
[data-theme="light"] .theme-toggle {
  color: var(--secondary);
  border-color: rgba(33,134,189,0.4);
}
[data-theme="light"] .theme-toggle:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(33,134,189,0.08);
}
.theme-toggle svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ═══════════════════════════════
   HERO
═══════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 64px 56px 0;
  text-align: center;
  position: relative; overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(33,134,189,0.13) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 70% 70%, rgba(43,147,244,0.06) 0%, transparent 60%),
    linear-gradient(180deg, rgba(4,12,24,0) 0%, var(--bg) 100%);
  pointer-events: none;
}
[data-theme="light"] .hero::before {
  background:
    radial-gradient(ellipse 80% 55% at 50% 30%, rgba(33,134,189,0.09) 0%, transparent 65%),
    radial-gradient(ellipse 40% 35% at 72% 68%, rgba(43,147,244,0.05) 0%, transparent 60%);
}

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 0%, transparent 80%);
}

.hero-content {
  position: relative; z-index: 2;
  width: 100%; max-width: 900px;
}

.hero-eyebrow {
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-hi);
  margin-bottom: 36px;
  opacity: 0; animation: fadeUp 0.6s ease forwards 0.2s;
}

.hero h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(48px, 6.5vw, 92px);
  font-weight: 900; line-height: 1.02;
  color: var(--text-hi);
  margin-bottom: 28px;
  opacity: 0; animation: fadeUp 0.7s ease forwards 0.35s;
}

.hero h1 em {
  font-style: italic; font-weight: 700;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="light"] .hero h1 em {
  background: linear-gradient(135deg, var(--secondary) 0%, #162d50 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-sub {
  font-size: 17px; font-weight: 300;
  color: var(--text);
  max-width: 520px;
  margin: 0 auto 64px;
  line-height: 1.78;
  opacity: 0; animation: fadeUp 0.7s ease forwards 0.5s;
}

/* ─── TERMINAL ─── */
.terminal-wrap {
  width: 100%; max-width: 800px; margin: 0 auto;
  opacity: 0; animation: fadeUp 0.8s ease forwards 0.65s;
}

.terminal {
  background: var(--term-bg);
  border: 1px solid rgba(43,147,244,0.15);
  border-radius: 10px; overflow: hidden; text-align: left;
  box-shadow:
    0 0 0 1px rgba(87,206,248,0.06),
    0 4px 24px rgba(43,147,244,0.1),
    0 48px 120px rgba(0,0,0,0.8);
}
[data-theme="light"] .terminal {
  border-color: rgba(33,134,189,0.2);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.8) inset,
    0 8px 40px rgba(14,31,56,0.15),
    0 32px 80px rgba(14,31,56,0.1);
}

.term-bar {
  display: flex; align-items: center;
  padding: 0 18px; height: 42px;
  background: var(--term-bar-bg);
  border-bottom: 1px solid var(--term-bar-border);
  gap: 8px;
}

.dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dr { background: #ff5f57; }
.dy { background: #febc2e; }
.dg { background: #27c93f; }

.term-title {
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 11px;
  color: var(--term-title);
  flex: 1; text-align: center; letter-spacing: 0.05em;
}

.term-body {
  padding: 28px 36px 36px;
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 13.5px; line-height: 1.85;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 52px;
}

.tp  { color: var(--term-prompt); }
.tc  { color: var(--term-cmd); }
.tv  { color: var(--term-val); }
.tok { color: var(--term-ok); }
.tw  { color: var(--term-warn); }
.tb  { color: var(--term-blue); }
.term-key { color: var(--term-key); min-width: 155px; flex-shrink: 0; }
.term-line { display: flex; }

.term-prompt-line {
  grid-column: 1 / -1;
  margin-top: 8px;
}

.cursor {
  display: inline-block; width: 7px; height: 14px;
  background: var(--term-cursor);
  vertical-align: middle; margin-left: 1px;
  animation: blink 1.1s step-end infinite;
}


/* ═══════════════════════════════
   SECTION SHARED
═══════════════════════════════ */
.section-eyebrow {
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); white-space: nowrap;
}

.section-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(32px, 3.5vw, 52px); font-weight: 700;
  color: var(--text-hi); line-height: 1.1;
}

.section-header {
  display: flex; align-items: baseline; gap: 32px; margin-bottom: 72px;
}

/* ═══════════════════════════════
   SERVICES
═══════════════════════════════ */
.services-section {
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.services-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 72px 56px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 36px 34px 30px;
  text-decoration: none;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.service-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-5px);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.5),
    0 0 0 1px rgba(87,206,248,0.1),
    0 0 40px rgba(43,147,244,0.08);
}
[data-theme="light"] .service-card:hover {
  box-shadow:
    0 16px 48px rgba(14,31,56,0.1),
    0 4px 16px rgba(33,134,189,0.1),
    0 0 0 1px rgba(33,134,189,0.15);
}

/* sweeping top-border on hover */
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.service-card:hover::before { transform: scaleX(1); }

/* inner glow */
.service-card::after {
  content: '';
  position: absolute; top: -80px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(43,147,244,0.07) 0%, transparent 70%);
  opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
[data-theme="light"] .service-card::after {
  background: radial-gradient(circle, rgba(33,134,189,0.05) 0%, transparent 70%);
}
.service-card:hover::after { opacity: 1; }

/* featured spans 2 cols */
.service-card.featured {
  grid-column: span 2;
  background: linear-gradient(135deg, #0a1d34 0%, #091428 100%);
  border-color: rgba(43,147,244,0.18);
}
[data-theme="light"] .service-card.featured {
  background: linear-gradient(135deg, #e8f2fb 0%, #f5f9ff 100%);
  border-color: rgba(33,134,189,0.22);
}

.featured-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; flex: 1;
}

.featured-stats {
  display: flex; flex-direction: column;
  justify-content: flex-end; gap: 10px;
}

.f-stat {
  background: rgba(9,20,40,0.7);
  border: 1px solid var(--border);
  border-radius: 4px; padding: 14px 18px;
  display: flex; flex-direction: column; gap: 4px;
}
[data-theme="light"] .f-stat {
  background: rgba(238,244,251,0.9);
}

.f-stat-num {
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 20px; font-weight: 500;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="light"] .f-stat-num {
  background: linear-gradient(135deg, #2186bd, #162d50);
  -webkit-background-clip: text;
  background-clip: text;
}

.f-stat-label {
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 9px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}

/* partner badge */
.partner-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 9px;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: rgba(43,147,244,0.1);
  border: 1px solid rgba(87,206,248,0.25);
  color: var(--accent);
  padding: 4px 12px; border-radius: 20px;
  margin-bottom: 28px; width: fit-content;
}
[data-theme="light"] .partner-badge {
  background: rgba(33,134,189,0.08);
  border-color: rgba(33,134,189,0.3);
}
.partner-badge::before { content: '★'; font-size: 8px; }

/* service icon */
.svc-icon {
  width: 44px; height: 44px;
  background: rgba(43,147,244,0.08);
  border: 1px solid rgba(43,147,244,0.18);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px; flex-shrink: 0;
  transition: background 0.3s, border-color 0.3s;
}
[data-theme="light"] .svc-icon {
  background: rgba(33,134,189,0.07);
  border-color: rgba(33,134,189,0.18);
}
.service-card:hover .svc-icon {
  background: rgba(43,147,244,0.15);
  border-color: rgba(87,206,248,0.35);
}
[data-theme="light"] .service-card:hover .svc-icon {
  background: rgba(33,134,189,0.14);
  border-color: rgba(33,134,189,0.38);
}
.svc-icon svg {
  width: 20px; height: 20px;
  stroke: var(--accent); fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

.svc-tag {
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 9px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text); margin-bottom: 10px;
}

.svc-name {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 22px; font-weight: 700;
  color: var(--text-hi); line-height: 1.2; margin-bottom: 12px;
  transition: color 0.3s;
}
.service-card:hover .svc-name { color: var(--accent); }

.svc-desc {
  font-size: 13.5px; color: var(--text); line-height: 1.75;
  flex: 1; margin-bottom: 28px;
}

.svc-footer {
  display: flex; align-items: center; justify-content: space-between; margin-top: auto;
}

.svc-status {
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 10px; color: var(--ok);
  display: flex; align-items: center; gap: 6px;
}
.svc-status::before {
  content: ''; width: 6px; height: 6px;
  background: var(--ok); border-radius: 50%;
  box-shadow: 0 0 6px var(--ok); flex-shrink: 0;
}
[data-theme="light"] .svc-status::before {
  box-shadow: 0 0 6px rgba(26,122,48,0.4);
}

.svc-status.warn { color: var(--warn); }
.svc-status.warn::before {
  background: var(--warn);
  box-shadow: 0 0 6px var(--warn);
}
[data-theme="light"] .svc-status.warn::before {
  box-shadow: 0 0 6px rgba(181,96,0,0.4);
}

.svc-arrow {
  font-size: 18px; color: var(--muted);
  transition: transform 0.25s, color 0.25s;
}
.service-card:hover .svc-arrow {
  transform: translate(3px, -3px);
  color: var(--accent);
}

/* ═══════════════════════════════
   BLOG
═══════════════════════════════ */
.blog-section {
  border-top: 1px solid var(--border);
  background: var(--bg);
}
[data-theme="light"] .blog-section {
  background: var(--surface);
}

.blog-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 72px 56px;
}

.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}

.blog-card {
  background: var(--card);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 36px; cursor: pointer;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative; overflow: hidden;
  text-decoration: none;
}
[data-theme="light"] .blog-card {
  background: var(--bg);
}

.blog-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-4px);
}
[data-theme="light"] .blog-card:hover {
  box-shadow: 0 12px 40px rgba(14,31,56,0.08), 0 0 0 1px rgba(33,134,189,0.15);
}

.blog-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0; transition: opacity 0.3s;
}
.blog-card:hover::before { opacity: 1; }

.blog-tag {
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 9px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); display: block; margin-bottom: 18px;
}

.blog-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 21px; font-weight: 700;
  color: var(--text-hi); line-height: 1.3; margin-bottom: 14px;
}

.blog-excerpt {
  font-size: 13.5px; color: var(--text); line-height: 1.75; margin-bottom: 28px;
}

.blog-footer {
  display: flex; align-items: center; justify-content: space-between;
}

.blog-date {
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 10px; color: var(--text);
}

.blog-read {
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text); text-decoration: none; transition: color 0.2s;
}
.blog-read:hover { color: var(--accent); }

.blog-all { margin-top: 40px; text-align: center; }

.btn-outline {
  display: inline-block;
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text); border: 1px solid var(--border);
  padding: 14px 44px; border-radius: 4px; text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.btn-outline:hover {
  border-color: var(--border-hi);
  color: var(--accent);
  background: rgba(43,147,244,0.05);
}
[data-theme="light"] .btn-outline:hover {
  background: rgba(33,134,189,0.05);
}

/* ═══════════════════════════════
   DONATE STRIP
═══════════════════════════════ */
.donate-strip {
  border-top: 1px solid var(--border);
  background: linear-gradient(135deg, #071222 0%, #091428 50%, #091220 100%);
  padding: 56px 56px;
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 80px;
  max-width: 100%; position: relative; overflow: hidden;
}
[data-theme="light"] .donate-strip {
  background: linear-gradient(135deg, #ddeaf8 0%, #e8f2fb 60%, #dce8f5 100%);
}

.donate-strip::before {
  content: '';
  position: absolute; top: -100px; right: -50px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(43,147,244,0.07) 0%, transparent 65%);
  pointer-events: none;
}
[data-theme="light"] .donate-strip::before {
  top: -120px;
  background: radial-gradient(circle, rgba(33,134,189,0.1) 0%, transparent 65%);
}

.donate-eyebrow {
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 10px;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}

.donate-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 40px; font-weight: 700;
  color: var(--text-hi); line-height: 1.15; margin-bottom: 14px;
}
/* donate strip is always dark-ish, so fix text colors */
.donate-strip .donate-title { color: #ddeef8; }
.donate-strip .donate-eyebrow { color: #57cef8; }
.donate-strip .donate-body { color: #2e5070; }
[data-theme="light"] .donate-strip .donate-title { color: #0c1d35; }
[data-theme="light"] .donate-strip .donate-eyebrow { color: #2186bd; }
[data-theme="light"] .donate-strip .donate-body { color: #2e4f6e; }

.donate-body { font-size: 15px; max-width: 480px; line-height: 1.75; }

.donate-right {
  min-width: 220px;
  display: flex; flex-direction: column; gap: 12px; align-items: stretch;
}

.btn-donate {
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #fff; text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border: none; padding: 16px 32px; border-radius: 4px;
  text-decoration: none; cursor: pointer;
  transition: background 0.25s, box-shadow 0.25s;
}
.btn-donate:hover {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  box-shadow: 0 8px 32px rgba(43,147,244,0.3);
}
[data-theme="light"] .btn-donate {
  background: linear-gradient(135deg, #214478, #162d50);
}
[data-theme="light"] .btn-donate:hover {
  background: linear-gradient(135deg, #2186bd, #214478);
  box-shadow: 0 8px 28px rgba(33,68,120,0.25);
}

.donate-note {
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 10px;
  text-align: center; letter-spacing: 0.05em;
}
.donate-strip .donate-note { color: #2e5070; }
[data-theme="light"] .donate-strip .donate-note { color: #6e90aa; }

/* ═══════════════════════════════
   FOOTER
═══════════════════════════════ */
footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 72px 56px 0;
}
[data-theme="light"] footer {
  background: #162d50;
  border-top-color: rgba(33,134,189,0.2);
}

.footer-inner { max-width: 1200px; margin: 0 auto; }

.footer-top {
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 60px; padding-bottom: 64px;
  border-bottom: 1px solid var(--border);
}
[data-theme="light"] .footer-top {
  border-bottom-color: rgba(255,255,255,0.08);
}

.footer-logo img {
  height: 20px; width: auto;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.footer-logo:hover img { opacity: 1; }
.footer-logo { text-decoration: none; display: inline-block; margin-bottom: 20px; }

.footer-about p {
  font-size: 13.5px; color: var(--text);
  line-height: 1.75; max-width: 280px; margin-bottom: 28px;
}
[data-theme="light"] .footer-about p {
  color: rgba(255,255,255,0.75);
}

.footer-socials { display: flex; flex-wrap: wrap; gap: 8px; }
.social-btn {
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 9px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text); border: 1px solid var(--border-hi);
  padding: 5px 14px; border-radius: 20px; text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}
.social-btn:hover { color: var(--accent); border-color: rgba(87,206,248,0.5); }
[data-theme="light"] .social-btn {
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.25);
}
[data-theme="light"] .social-btn:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}

.footer-col h5 {
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 9px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 24px;
}
[data-theme="light"] .footer-col h5 {
  color: #57cef8;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul a {
  font-size: 13.5px; color: var(--text);
  text-decoration: none; transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--text-hi); }
[data-theme="light"] .footer-col ul a {
  color: rgba(255,255,255,0.7);
}
[data-theme="light"] .footer-col ul a:hover {
  color: #fff;
}

.footer-bottom {
  padding: 24px 0;
  display: flex; align-items: center; justify-content: space-between;
}

.footer-copy {
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 11px; color: var(--text);
}
[data-theme="light"] .footer-copy { color: rgba(255,255,255,0.65); }

.canary {
  display: flex; align-items: center; gap: 8px;
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 12px; letter-spacing: 0.08em;
  color: #4cde74; text-decoration: none;
  border: 1px solid rgba(76,222,116,0.5);
  padding: 6px 16px; border-radius: 4px;
  transition: background 0.2s;
}
.canary:hover { background: rgba(76,222,116,0.1); }
[data-theme="light"] .canary {
  color: #4cde74;
  border-color: rgba(76,222,116,0.5);
}
[data-theme="light"] .canary:hover { background: rgba(76,222,116,0.1); }

.canary-dot {
  width: 7px; height: 7px;
  background: #4cde74; border-radius: 50%;
  box-shadow: 0 0 8px rgba(76,222,116,0.9);
  animation: blink 2s ease-in-out infinite;
}
[data-theme="light"] .canary-dot {
  background: #4cde74;
  box-shadow: 0 0 8px rgba(76,222,116,0.9);
}

/* Lapsed state — overrides green with amber */
.canary--lapsed {
  color: #ffb547;
  border-color: rgba(255,181,71,0.5);
}
.canary--lapsed:hover { background: rgba(255,181,71,0.08); }
.canary--lapsed .canary-dot {
  background: #ffb547;
  box-shadow: 0 0 8px rgba(255,181,71,0.9);
}
[data-theme="light"] .canary--lapsed {
  color: #ffb547;
  border-color: rgba(255,181,71,0.5);
}

.nonprofit-tag {
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 11px;
  color: var(--text); border: 1px solid var(--border-hi);
  padding: 5px 14px; border-radius: 4px;
}
[data-theme="light"] .nonprofit-tag {
  color: rgba(255,255,255,0.65);
  border-color: rgba(255,255,255,0.2);
}

/* ═══════════════════════════════
   PAGE HEADER (inner pages)
═══════════════════════════════ */
.page-header {
  padding: 128px 56px 60px;
  text-align: center;
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 50% 30%, rgba(33,134,189,0.1) 0%, transparent 65%),
    linear-gradient(180deg, rgba(4,12,24,0) 0%, var(--bg) 100%);
  pointer-events: none;
}
[data-theme="light"] .page-header::before {
  background:
    radial-gradient(ellipse 70% 80% at 50% 30%, rgba(33,134,189,0.08) 0%, transparent 65%);
}

.page-header-inner {
  position: relative; z-index: 2;
  max-width: 680px; margin: 0 auto;
}

.page-header h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(42px, 5.5vw, 76px);
  font-weight: 900; line-height: 1.05;
  color: var(--text-hi);
  margin-bottom: 24px;
  opacity: 0; animation: fadeUp 0.7s ease forwards 0.35s;
}

.page-header h1 em {
  font-style: italic; font-weight: 700;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="light"] .page-header h1 em {
  background: linear-gradient(135deg, var(--secondary) 0%, #162d50 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.page-header .hero-eyebrow {
  opacity: 0; animation: fadeUp 0.6s ease forwards 0.2s;
}

.page-header-sub {
  font-size: 16px; font-weight: 300;
  color: var(--text); line-height: 1.78;
  max-width: 500px; margin: 0 auto;
  opacity: 0; animation: fadeUp 0.7s ease forwards 0.5s;
}

/* ═══════════════════════════════
   ABOUT PAGE SECTIONS
═══════════════════════════════ */
.about-section {
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.about-section.about-alt {
  background: var(--surface);
}
[data-theme="light"] .about-section.about-alt {
  background: #f4f9ff;
}

.about-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 56px 56px;
}

.about-inner .section-header { margin-bottom: 40px; }

/* Mission / Vision */
.mission-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin-top: 28px;
}

.mission-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px; padding: 44px 40px;
  position: relative; overflow: hidden;
}

.mission-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.mission-label {
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px;
}

.mission-text {
  font-size: 16px; line-height: 1.8;
  color: var(--text); font-weight: 300;
}

/* Facts bar */
.facts-bar {
  display: flex; flex-wrap: wrap;
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
  margin-top: 28px;
}

.fact-item {
  flex: 1; min-width: 150px;
  padding: 32px 36px;
  border-right: 1px solid var(--border);
  background: var(--card);
}
.fact-item:last-child { border-right: none; }

.fact-num {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 28px; font-weight: 700;
  color: var(--accent); line-height: 1.1; margin-bottom: 6px;
}

.fact-label {
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text);
}

/* Board grid */
.board-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 28px;
}

.board-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px; padding: 32px 28px;
  position: relative; overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.board-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s ease;
}
.board-card:hover::before { transform: scaleX(1); }

.board-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-4px);
}

.board-name {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px; font-weight: 700;
  color: var(--text-hi); margin-bottom: 6px; line-height: 1.3;
}

.board-alias {
  font-size: 0.8em;
  color: var(--text); font-weight: 300;
}

.board-title {
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}

.board-bio {
  font-size: 13px; color: var(--text); line-height: 1.72;
}

/* Legal docs grid */
.docs-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 28px;
}

.doc-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px; padding: 36px 32px;
  text-decoration: none; display: flex; flex-direction: column; gap: 14px;
  position: relative; overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.doc-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s ease;
}
.doc-card:hover::before { transform: scaleX(1); }

.doc-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-4px);
}

.doc-icon {
  width: 40px; height: 40px;
  background: rgba(43,147,244,0.08);
  border: 1px solid rgba(43,147,244,0.18);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
[data-theme="light"] .doc-icon {
  background: rgba(33,134,189,0.07);
  border-color: rgba(33,134,189,0.18);
}

.doc-icon svg {
  width: 18px; height: 18px;
  stroke: var(--accent); fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

.doc-name {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px; font-weight: 700;
  color: var(--text-hi); line-height: 1.3;
}

.doc-desc {
  font-size: 13.5px; color: var(--text); line-height: 1.7; flex: 1;
}

.doc-link {
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
}

/* ═══════════════════════════════
   BLOG LISTING
═══════════════════════════════ */
.blog-listing {
  max-width: 1200px; margin: 0 auto;
  padding: 64px 56px 96px;
}

.blog-tag {
  display: inline-block;
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(87,206,248,0.25);
  padding: 4px 10px; border-radius: 3px;
  margin-bottom: 16px;
}
[data-theme="light"] .blog-tag {
  color: var(--secondary);
  border-color: rgba(33,134,189,0.3);
}

/* Featured post */
.blog-featured {
  display: block;
  background: var(--card);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 0;
  margin-bottom: 40px;
  position: relative; overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
  text-decoration: none;
}
.blog-featured::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 1;
}
.blog-featured:hover {
  border-color: var(--border-hi);
  transform: translateY(-3px);
}

.blog-featured-img {
  width: 100%; height: 320px;
  object-fit: cover; display: block;
}
.blog-featured-content {
  padding: 36px 52px 48px;
}

.blog-featured-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(22px, 2.6vw, 34px); font-weight: 700;
  color: var(--text-hi); line-height: 1.25; margin-bottom: 16px;
  max-width: 720px;
}

.blog-featured-excerpt {
  font-size: 15px; color: var(--text); line-height: 1.78;
  margin-bottom: 24px; max-width: 620px;
}

.blog-featured-meta {
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 11px; letter-spacing: 0.08em;
  color: var(--muted); margin-bottom: 20px;
}

.blog-featured-cta {
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
}

/* Blog listing grid (scoped to .blog-listing to avoid overriding homepage cards) */
.blog-listing .blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}

.blog-listing .blog-card {
  background: var(--card);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 0;
  display: flex; flex-direction: column;
  text-decoration: none;
  position: relative; overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.blog-card-img {
  width: 100%; height: 180px;
  object-fit: cover; display: block;
  flex-shrink: 0;
}
.blog-card-content {
  padding: 24px 28px 28px;
  display: flex; flex-direction: column; flex: 1;
}
.blog-listing .blog-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s ease;
}
.blog-listing .blog-card:hover::before { transform: scaleX(1); }
.blog-listing .blog-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-4px);
}

.blog-card-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px; font-weight: 700;
  color: var(--text-hi); line-height: 1.3; margin-bottom: 12px;
}

.blog-card-excerpt {
  font-size: 13px; color: var(--text); line-height: 1.72; margin-bottom: 20px;
}

.blog-card-meta {
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 10px; letter-spacing: 0.08em;
  color: var(--muted);
}

/* ═══════════════════════════════
   BLOG POST (individual pages)
═══════════════════════════════ */
.post-outer {
  max-width: 760px; margin: 0 auto;
  padding: 56px 56px 96px;
}

.post-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text); text-decoration: none; margin-bottom: 40px;
  transition: color 0.2s;
}
.post-back:hover { color: var(--accent); }
.post-back svg {
  width: 14px; height: 14px; stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.post-header { margin-bottom: 0; }

.post-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(26px, 3.2vw, 44px); font-weight: 900;
  color: var(--text-hi); line-height: 1.15; margin-bottom: 20px;
}

.post-meta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 13px; letter-spacing: 0.04em;
  color: var(--text); margin-bottom: 32px;
}

.post-divider {
  border: none; border-top: 1px solid var(--border); margin-bottom: 40px;
}

.post-hero-img {
  width: 100%; height: 400px;
  object-fit: cover; display: block;
  border-radius: 8px; margin-bottom: 48px;
}

.post-body { font-size: 16px; line-height: 1.85; color: var(--text); }
.post-body h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 24px; font-weight: 700;
  color: var(--text-hi); line-height: 1.25;
  margin: 52px 0 18px;
}
.post-body h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 19px; font-weight: 700;
  color: var(--text-hi); line-height: 1.3;
  margin: 36px 0 14px;
}
.post-body p { margin-bottom: 22px; }
.post-body ul, .post-body ol { padding-left: 24px; margin-bottom: 22px; }
.post-body li { margin-bottom: 8px; }
.post-body strong { color: var(--text-hi); font-weight: 600; }
.post-body a { color: var(--accent); text-decoration: underline; }
.post-body a:hover { color: var(--text-hi); }
.post-body blockquote {
  border-left: 3px solid var(--primary);
  padding: 2px 0 2px 24px; margin: 32px 0;
  font-style: italic; color: var(--text);
}

/* ═══════════════════════════════
   REVEAL ANIMATIONS
═══════════════════════════════ */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

/* ═══════════════════════════════
   KEYFRAMES
═══════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

@keyframes blink { 50% { opacity: 0; } }

