/* index.css — Planet Positive Investing Redesign */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600;1,700&display=swap');

:root {
  /* Colors (Light Mode Default) */
  --bg-primary: #faf9f5;
  --bg-secondary: #f3efe6;
  --bg-card: #ffffff;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  
  --primary-green: #0b4f30;      /* Deep Forest Green */
  --primary-green-rgb: 11, 79, 48;
  --mint: #10b981;               /* Emerald Mint */
  --mint-rgb: 16, 185, 129;
  --mint-light: #ecfdf5;
  --mint-dark: #065f46;
  
  --accent-gold: #d97706;
  --accent-gold-light: #fef3c7;
  
  --border-color: #e5e0d5;
  --border-focus: #10b981;
  
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(11, 79, 48, 0.04);
  --shadow-md: 0 12px 30px -4px rgba(11, 79, 48, 0.08);
  --shadow-lg: 0 22px 48px -10px rgba(11, 79, 48, 0.14);
  
  /* Borders */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 100px;
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Hero Background Banner */
  --hero-bg: linear-gradient(to right, #faf9f5 48%, rgba(250, 249, 245, 0.9) 70%, rgba(250, 249, 245, 0.25) 100%), url('community_banner.png') center/cover no-repeat;
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --bg-primary: #05140e;
  --bg-secondary: #081d14;
  --bg-card: #0c271b;
  --text-primary: #f3f4f6;
  --text-secondary: #d1d5db;
  --text-muted: #9ca3af;
  
  --primary-green: #10b981;      /* Brightened for Dark Mode */
  --primary-green-rgb: 16, 185, 129;
  --mint: #34d399;
  --mint-rgb: 52, 211, 153;
  --mint-light: rgba(16, 185, 129, 0.1);
  --mint-dark: #059669;
  
  --accent-gold: #f59e0b;
  --accent-gold-light: rgba(245, 158, 11, 0.15);
  
  --border-color: #123325;
  --border-focus: #34d399;
  
  --glass-bg: rgba(12, 39, 27, 0.7);
  --glass-border: rgba(16, 185, 129, 0.1);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 32px -4px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 64px -10px rgba(0, 0, 0, 0.6);
  
  /* Hero Background Banner (Dark) */
  --hero-bg: linear-gradient(to right, #05140e 48%, rgba(5, 20, 14, 0.9) 70%, rgba(5, 20, 14, 0.25) 100%), url('community_banner.png') center/cover no-repeat;
}

/* ── BASE RESET ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
  transition: background var(--transition-normal), color var(--transition-normal);
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

p {
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── LAYOUT WRAPPER ── */
.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── BUTTON STYLES ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
  border: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary-green);
  color: #ffffff !important;
}
[data-theme="dark"] .btn-primary {
  background: var(--primary-green);
  color: #05140e !important;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -6px rgba(var(--primary-green-rgb), 0.4);
  opacity: 0.95;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--primary-green);
  color: var(--primary-green);
  background: rgba(var(--mint-rgb), 0.05);
}

.btn-text {
  background: transparent;
  color: var(--text-primary);
  padding: 8px 16px;
  font-weight: 500;
  border-radius: var(--radius-sm);
}

.btn-text:hover {
  color: var(--primary-green);
  background: rgba(var(--mint-rgb), 0.05);
}

/* ── TOP NAV BAR ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  height: 80px;
  transition: background var(--transition-normal), border var(--transition-normal);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 48px;
  width: auto;
  transition: filter var(--transition-normal);
}

[data-theme="dark"] .logo-img {
  filter: brightness(0) invert(1) opacity(0.9);
}

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

.nav-links a {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 0;
  transition: color var(--transition-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-green);
  transition: width var(--transition-fast);
}

.nav-links a:hover {
  color: var(--primary-green);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Theme Switcher Toggle */
.theme-switch {
  width: 46px;
  height: 26px;
  background: var(--border-color);
  border-radius: var(--radius-full);
  position: relative;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.theme-switch::after {
  content: '☀️';
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform var(--transition-normal), content var(--transition-fast);
}

[data-theme="dark"] .theme-switch {
  background: var(--primary-green);
}

[data-theme="dark"] .theme-switch::after {
  transform: translateX(20px);
  content: '🌙';
  background: var(--bg-card);
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* Mobile Nav Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: var(--bg-card);
  z-index: 1000;
  box-shadow: var(--shadow-lg);
  transition: right var(--transition-normal);
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  border-left: 1px solid var(--border-color);
}

.mobile-drawer.open {
  right: 0;
}

.drawer-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-primary);
  cursor: pointer;
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-drawer-links a {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1.5px solid var(--border-color);
  padding-bottom: 12px;
}

.mobile-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: auto;
}

.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  backdrop-filter: blur(4px);
}

.drawer-overlay.open {
  display: block;
}

/* ── LIVE TICKER BAR ── */
.ticker-container {
  background: var(--primary-green);
  color: #ffffff;
  padding: 12px 0;
  overflow: hidden;
  position: relative;
  margin-top: 80px; /* offset nav */
  z-index: 10;
  border-bottom: 1.5px solid var(--border-color);
}
[data-theme="dark"] .ticker-container {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.ticker-track {
  display: flex;
  animation: ticker-anim 35s linear infinite;
  white-space: nowrap;
  width: max-content;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 40px;
  font-size: 0.88rem;
  font-weight: 500;
  font-family: 'Outfit', sans-serif;
}

.ticker-dot {
  width: 8px;
  height: 8px;
  background: var(--mint);
  border-radius: 50%;
  animation: pulse-ring-green 2.5s ease-out infinite;
}

.ticker-amount {
  font-weight: 700;
  color: var(--mint);
}
[data-theme="light"] .ticker-amount {
  color: #a7f3d0; /* Soft green on dark green background */
}

@keyframes ticker-anim {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── HERO SECTION ── */
.hero {
  position: relative;
  padding: 100px 0 120px;
  background: var(--hero-bg);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-green);
  margin-bottom: 24px;
  font-family: 'Outfit', sans-serif;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  background: var(--mint);
  border-radius: 50%;
  position: relative;
}

.eyebrow-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 2.5px solid var(--mint);
  border-radius: 50%;
  animation: pulse-ring-green 1.8s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.hero h1 em {
  font-style: italic;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--mint);
  position: relative;
  z-index: 1;
}

.hero h1 em::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(var(--mint-rgb), 0.15);
  z-index: -1;
  border-radius: 4px;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 520px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 48px;
}

.cta-anchor {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  transition: transform var(--transition-fast);
}

.cta-anchor:hover {
  color: var(--primary-green);
  transform: translateX(4px);
}

/* Hero Avatars & Social Proof */
.hero-trust {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar-stack {
  display: flex;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid var(--bg-primary);
  margin-left: -10px;
  background: linear-gradient(135deg, var(--primary-green), var(--mint));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: #ffffff;
}

.avatar:first-child {
  margin-left: 0;
}

.trust-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.trust-text strong {
  color: var(--text-primary);
}

/* ── CONVERTKIT FORM CARD ── */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: transform var(--transition-slow), border-color var(--transition-normal);
}

.form-card:hover {
  border-color: rgba(var(--mint-rgb), 0.3);
}

.form-header {
  background: var(--primary-green);
  padding: 32px;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .form-header {
  background: var(--bg-secondary);
}

.free-pill {
  display: inline-block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--mint);
  font-size: 0.72rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.form-header h2 {
  font-size: 1.55rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.form-header p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}
[data-theme="dark"] .form-header p {
  color: var(--text-secondary);
}

.form-body {
  padding: 36px 32px;
}

.input-group {
  position: relative;
  margin-bottom: 16px;
}

.input-group input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding: 14px 16px 14px 46px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.input-group input::placeholder {
  color: var(--text-muted);
}

.input-group input:focus {
  border-color: var(--border-focus);
  background: var(--bg-card);
  box-shadow: 0 0 0 4px rgba(var(--mint-rgb), 0.1);
}

.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  opacity: 0.6;
}

.form-btn {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-md);
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff !important;
  background: var(--mint);
  cursor: pointer;
  border: none;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}
[data-theme="dark"] .form-btn {
  color: #05140e !important;
}

.form-btn:hover {
  background: var(--mint-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
[data-theme="dark"] .form-btn:hover {
  background: #34d399;
}

.form-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.form-geo-msg {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  line-height: 1.5;
}

.form-geo-msg.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px dashed rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.form-privacy {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 14px;
}

.form-divider {
  border: none;
  border-top: 1.5px solid var(--border-color);
  margin: 24px 0;
}

.form-benefit {
  display: flex;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.5;
}

.form-benefit strong {
  color: var(--text-primary);
}

.benefit-check {
  color: var(--mint);
  font-weight: 700;
}

/* ── STATS BAR SECTION ── */
.stats-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  z-index: 5;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stat-cell {
  padding: 40px 24px;
  text-align: center;
  border-right: 1px solid var(--border-color);
  transition: background var(--transition-normal);
}

.stat-cell:last-child {
  border-right: none;
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--primary-green);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ── SECTIONS BASE ── */
.section {
  padding: 100px 0;
  position: relative;
}

.bg-cream {
  background: var(--bg-primary);
}

.bg-white {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.sec-kicker {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--mint);
  margin-bottom: 12px;
  font-family: 'Outfit', sans-serif;
}

.sec-title {
  text-align: center;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.sec-sub {
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 60px;
}

/* ── ACTIVE DEALS GRID ── */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.deal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

.deal-card:hover {
  transform: translateY(-8px);
  border-color: rgba(var(--mint-rgb), 0.4);
  box-shadow: var(--shadow-lg);
}

.deal-media {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--bg-secondary);
}

.deal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.deal-card:hover .deal-img {
  transform: scale(1.06);
}

.deal-status-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(var(--primary-green-rgb), 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'Outfit', sans-serif;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.deal-status-badge.funded {
  background: rgba(217, 119, 6, 0.85); /* Gold badge */
}

.deal-live-dot {
  width: 8px;
  height: 8px;
  background: #34d399;
  border-radius: 50%;
  animation: pulse-ring-green 2s ease-in-out infinite;
}

.deal-funded-dot {
  width: 8px;
  height: 8px;
  background: #fbbf24;
  border-radius: 50%;
}

.deal-raised-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 16px;
  font-family: 'Outfit', sans-serif;
}

.deal-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.deal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.deal-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 4px;
  object-fit: contain;
  flex-shrink: 0;
}

.deal-meta-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.deal-meta-sector {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.deal-card-cta {
  margin-top: auto;
}

.btn-deal {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  transition: all var(--transition-fast);
}

.deal-card:hover .btn-deal {
  background: var(--primary-green);
  color: #ffffff;
  border-color: var(--primary-green);
}
[data-theme="dark"] .deal-card:hover .btn-deal {
  color: #05140e;
}

.deals-cta-box {
  text-align: center;
  margin-top: 40px;
}

.deals-cta-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 12px;
}

/* ── COMPLETED DEALS SECTION ── */
.completed-showcase {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 60px 40px;
  margin-top: 60px;
}

/* Filter controls */
.filter-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-btn {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  color: var(--text-secondary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--primary-green);
  color: var(--primary-green);
}

.filter-btn.active {
  background: var(--primary-green);
  border-color: var(--primary-green);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(var(--primary-green-rgb), 0.15);
}
[data-theme="dark"] .filter-btn.active {
  color: #05140e;
}

/* Closed Cards Grid (3 columns for closed deals details) */
.closed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.closed-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal), opacity var(--transition-normal);
  opacity: 1;
}

.closed-card.hidden {
  display: none;
  opacity: 0;
}

.closed-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(var(--mint-rgb), 0.3);
}

.closed-logo-band {
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border-bottom: 1.5px solid var(--border-color);
  height: 90px;
  position: relative;
}

.closed-logo-img {
  max-height: 48px;
  max-width: 170px;
  object-fit: contain;
}

.closed-thumb {
  height: 180px;
  overflow: hidden;
}

.closed-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.closed-card:hover .closed-thumb img {
  transform: scale(1.04);
}

.closed-desc-band {
  background: var(--primary-green);
  padding: 20px;
  flex: 1;
  display: flex;
  align-items: flex-start;
  transition: background var(--transition-normal);
}
[data-theme="light"] .closed-desc-band {
  background: #093c24; /* Make light mode text band slightly more readable/darker */
}

.closed-desc-text {
  font-size: 0.85rem;
  color: #ffffff;
  line-height: 1.6;
}

.closed-desc-text strong {
  color: var(--mint);
}

.closed-footer-stats {
  background: var(--bg-card);
  padding: 14px 20px;
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-green);
  border-top: 1.5px solid var(--border-color);
  letter-spacing: 0.02em;
}

/* ── INTERACTIVE IMPACT CALCULATOR ── */
.calculator-box {
  max-width: 780px;
  margin: 60px auto 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-lg);
}

.calculator-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.calc-header {
  text-align: center;
}

.calc-header h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.calc-header p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.slider-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 10px 0;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.slider-label {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.slider-val {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-green);
}

/* Range input styling */
.calc-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--border-color);
  outline: none;
  transition: background var(--transition-fast);
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--mint);
  cursor: pointer;
  border: 3px solid var(--bg-card);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transition: transform var(--transition-fast);
}

.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.calc-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--mint);
  cursor: pointer;
  border: 3px solid var(--bg-card);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transition: transform var(--transition-fast);
}

.calc-slider::-moz-range-thumb:hover {
  transform: scale(1.15);
}

/* Outputs grid */
.calc-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  border-top: 1.5px solid var(--border-color);
  padding-top: 32px;
}

.calc-result-card {
  text-align: center;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: transform var(--transition-normal);
}

.calc-result-card:hover {
  transform: translateY(-2px);
}

.calc-result-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
  display: block;
}

.calc-result-val {
  font-family: 'Outfit', sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-primary);
  display: block;
  margin-bottom: 4px;
}

.calc-result-lbl {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ── HOW IT WORKS SECTION ── */
.how-section {
  background: var(--primary-green);
  color: #ffffff;
}
[data-theme="dark"] .how-section {
  background: var(--bg-secondary);
}

.how-section .sec-title,
.how-section .sec-sub {
  color: #ffffff !important;
}
[data-theme="dark"] .how-section .sec-title {
  color: var(--text-primary) !important;
}
[data-theme="dark"] .how-section .sec-sub {
  color: var(--text-secondary) !important;
}

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

.how-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: background var(--transition-normal), border var(--transition-normal), transform var(--transition-normal);
  display: flex;
  flex-direction: column;
}
[data-theme="dark"] .how-card {
  background: var(--bg-card);
  border-color: var(--border-color);
}

.how-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateY(-6px);
}
[data-theme="dark"] .how-card:hover {
  border-color: var(--mint);
}

.how-card.highlight {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.25);
}
[data-theme="dark"] .how-card.highlight {
  background: rgba(16, 185, 129, 0.05);
  border-color: var(--mint);
}

.how-step-num {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.15);
  line-height: 1;
  margin-bottom: 16px;
}
[data-theme="dark"] .how-step-num {
  color: rgba(16, 185, 129, 0.2);
}

.how-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}
[data-theme="dark"] .how-card h3 {
  color: var(--text-primary);
}

.how-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 24px;
  flex: 1;
}
[data-theme="dark"] .how-card p {
  color: var(--text-secondary);
}

.how-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.72rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  align-self: flex-start;
}
.how-card.highlight .how-pill {
  background: var(--mint);
}
[data-theme="dark"] .how-card.highlight .how-pill {
  background: var(--mint);
  color: #05140e;
}

/* ── MENTIONS & PARTNERS ── */
.partner-section {
  text-align: center;
}

.partners-wrap {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.partners-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px 52px;
}

.partner-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
  transition: opacity var(--transition-fast), transform var(--transition-fast), filter var(--transition-fast);
  filter: grayscale(1) contrast(0.85);
  opacity: 0.7;
}

.partner-logo:hover {
  filter: grayscale(0) contrast(1);
  opacity: 1;
  transform: scale(1.06);
}

[data-theme="dark"] .partner-logo {
  filter: grayscale(1) brightness(2) contrast(0.5);
  opacity: 0.6;
}

[data-theme="dark"] .partner-logo:hover {
  filter: grayscale(0) brightness(1) contrast(1);
  opacity: 1;
}

/* ── TESTIMONIALS SECTION ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.testimonial-card:hover {
  border-color: var(--primary-green);
  transform: translateY(-4px);
}

.stars {
  color: #f59e0b;
  font-size: 0.95rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.quote {
  font-size: 0.92rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
  flex: 1;
}

.author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
}

.author-av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-green), var(--mint));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
  border: 2px solid var(--border-color);
  overflow: hidden;
}

.author-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-name {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.author-role {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── BOTTOM HERO CALL TO ACTION ── */
.bottom-cta {
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(to right, rgba(11, 79, 48, 0.92), rgba(6, 95, 70, 0.96)),
              url('https://images.unsplash.com/photo-1501854140801-50d01698950b?w=1800&q=80&auto=format&fit=crop') center/cover no-repeat;
  color: #ffffff;
}

.bottom-cta h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  margin-bottom: 16px;
  color: #ffffff;
}

.bottom-cta p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 40px;
}

.bottom-cta .btn-primary {
  background: #ffffff;
  color: var(--primary-green) !important;
}

.bottom-cta .btn-primary:hover {
  box-shadow: 0 10px 24px rgba(255, 255, 255, 0.25);
  background: var(--bg-primary);
}

/* ── FOOTER ── */
footer {
  background: var(--primary-green);
  color: rgba(255, 255, 255, 0.6);
  padding: 80px 0 40px;
  border-top: 1px solid var(--border-color);
  font-size: 0.88rem;
}
[data-theme="dark"] footer {
  background: var(--bg-secondary);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-logo {
  height: 42px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  margin-bottom: 20px;
}

.footer-tagline {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.7);
}
[data-theme="dark"] .footer-tagline {
  color: var(--text-secondary);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  transition: all var(--transition-fast);
}

.social-btn:hover {
  background: var(--mint);
  color: #0b4f30;
  transform: translateY(-2px);
}
[data-theme="dark"] .social-btn:hover {
  color: #05140e;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 20px;
  font-family: 'Outfit', sans-serif;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}
[data-theme="dark"] .footer-col ul li a {
  color: var(--text-secondary);
}

.footer-col ul li a:hover {
  color: var(--mint);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8rem;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.5);
}
[data-theme="dark"] .footer-copy {
  color: var(--text-muted);
}

.footer-us-flag {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}
[data-theme="dark"] .footer-us-flag {
  color: var(--text-secondary);
}

/* ── ANIMATION KEYFRAMES ── */
@keyframes pulse-ring-green {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* ── ABOUT & TEAM PAGE COMPONENT STYLES ── */
.mission-strip {
  background: var(--primary-green);
  color: #ffffff;
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color);
}
[data-theme="dark"] .mission-strip {
  background: var(--bg-secondary);
}
.mission-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.mission-item {
  text-align: center;
  padding: 0 32px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}
[data-theme="dark"] .mission-item {
  border-right: 1px solid var(--border-color);
}
.mission-item:last-child {
  border-right: none;
}
.mission-item .icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
  display: block;
}
.mission-item h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}
[data-theme="dark"] .mission-item h3 {
  color: var(--text-primary);
}
.mission-item p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}
[data-theme="dark"] .mission-item p {
  color: var(--text-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-img-wrap {
  position: relative;
}
.about-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: block;
  border: 1px solid var(--border-color);
}
.about-img-badge {
  position: absolute;
  bottom: -20px;
  right: -10px;
  background: var(--mint);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 16px 24px;
  box-shadow: var(--shadow-md);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .about-img-badge {
  color: #05140e;
}
.about-img-badge .num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
}
.about-img-badge .lbl {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
  opacity: 0.9;
}
.check-list {
  list-style: none;
  margin: 24px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.check-list li::before {
  content: '✓';
  color: var(--mint);
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 2px;
}

.founder-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 360px 1fr;
  box-shadow: var(--shadow-md);
  margin-top: 40px;
}
.founder-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  min-height: 400px;
}
.founder-body {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.founder-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--mint-light);
  color: var(--mint-dark);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  width: fit-content;
  font-family: 'Outfit', sans-serif;
  border: 1px solid rgba(var(--mint-rgb), 0.15);
}
[data-theme="dark"] .founder-label {
  color: var(--mint);
  border-color: rgba(52, 211, 153, 0.2);
}
.founder-body h3 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.founder-role {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 24px;
}
.founder-quote {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.75;
  border-left: 3px solid var(--mint);
  padding-left: 20px;
  margin-bottom: 28px;
  font-family: 'Playfair Display', serif;
}
.founder-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.founder-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  transition: all var(--transition-fast);
}
.founder-link:hover {
  border-color: var(--mint);
  color: var(--primary-green);
  background: rgba(var(--mint-rgb), 0.05);
}

.advisor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.advisor-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}
.advisor-card:hover {
  border-color: var(--mint);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.advisor-img-wrap {
  margin: 0 auto 20px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--bg-secondary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.advisor-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.advisor-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.advisor-role {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mint);
  margin-bottom: 16px;
  font-family: 'Outfit', sans-serif;
}
.advisor-bio {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── ENDORSEMENTS / FOUNDER TESTIMONIALS ── */
.endorse-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.endorse-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
}
.endorse-card:hover {
  border-color: var(--mint);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.endorse-quote-icon {
  font-family: 'Outfit', sans-serif;
  font-size: 4rem;
  line-height: 1;
  color: rgba(16, 185, 129, 0.08);
  position: absolute;
  top: 10px;
  right: 24px;
  pointer-events: none;
}
.endorse-stars {
  color: #f59e0b;
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.endorse-quote {
  font-size: 0.92rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
  flex: 1;
}
.endorse-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
}
.endorse-av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-green), var(--mint));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
  border: 2px solid var(--border-color);
  overflow: hidden;
}
.endorse-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.endorse-name {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}
.endorse-role {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── MEDIA RESPONSIVENESS BREAKPOINTS ── */

@media (max-width: 1024px) {
  .hero {
    /* More opaque top-to-bottom overlay for mobile text readability */
    --hero-bg: linear-gradient(to bottom, rgba(250, 249, 245, 0.96) 0%, rgba(250, 249, 245, 0.98) 100%), url('community_banner.png') center/cover no-repeat;
  }
  
  [data-theme="dark"] .hero {
    --hero-bg: linear-gradient(to bottom, rgba(5, 20, 14, 0.96) 0%, rgba(5, 20, 14, 0.98) 100%), url('community_banner.png') center/cover no-repeat;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  
  .hero-eyebrow {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .hero-trust {
    justify-content: center;
  }
  
  .form-card {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }
  
  .deals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .closed-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .founder-card {
    grid-template-columns: 1fr;
  }
  
  .founder-img {
    height: 320px;
    min-height: auto;
  }
  
  .endorse-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  nav {
    height: 70px;
  }
  .ticker-container {
    margin-top: 70px;
  }
  .nav-links {
    display: none;
  }
  .logo-img {
    height: 38px;
  }
  .nav-actions {
    margin-left: auto;
    margin-right: 8px;
  }
  .nav-actions .btn-secondary,
  .nav-actions .btn-primary {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-cell {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 24px;
  }
  .stat-cell:last-child {
    border-bottom: none;
  }
  
  .closed-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .calc-results-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .how-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .mission-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .mission-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 32px;
  }
  [data-theme="dark"] .mission-item {
    border-bottom: 1px solid var(--border-color);
  }
  .mission-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .advisor-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .endorse-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 520px) {
  .deals-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .form-body {
    padding: 24px;
  }
  .calculator-box {
    padding: 24px;
  }
  .slider-val {
    font-size: 1.6rem;
  }
}

/* ── SUBPAGES & LEGAL STYLES ── */
.page-hero-legal {
  background: linear-gradient(to bottom, rgba(11, 79, 48, 0.92), rgba(11, 79, 48, 0.98)), url('startups_montage.png') center/cover no-repeat;
  color: #ffffff;
  padding: 140px 0 60px;
  text-align: left;
}
[data-theme="dark"] .page-hero-legal {
  background: linear-gradient(to bottom, rgba(3, 15, 10, 0.94), rgba(3, 15, 10, 0.98)), url('startups_montage.png') center/cover no-repeat;
}
.page-hero-legal h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 12px;
  color: #ffffff !important;
}
.page-hero-legal p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  line-height: 1.6;
}
.last-updated-badge {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--mint);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.legal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  align-items: start;
}

.toc-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  position: sticky;
  top: 110px;
}
.toc-box h3 {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-green);
  margin-bottom: 16px;
}
.toc-box ol {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toc-box ol li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.toc-box ol li a {
  transition: color var(--transition-fast);
}
.toc-box ol li a:hover {
  color: var(--primary-green);
  text-decoration: underline;
}

.legal-content {
  max-width: 780px;
}
.legal-section {
  margin-bottom: 48px;
  scroll-margin-top: 110px;
}
.legal-section h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-color);
}
.legal-section p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
}
.legal-section ul, .legal-section ol {
  padding-left: 20px;
  margin: 12px 0 16px;
}
.legal-section li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 8px;
}
.legal-section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 24px 0 8px;
}
.legal-alert-box {
  background: var(--bg-secondary);
  border-left: 4px solid var(--accent-gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-secondary);
}
.legal-alert-box strong {
  color: var(--text-primary);
}

.legal-highlight-box {
  background: var(--mint-light);
  border-left: 4px solid var(--mint);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ── PLANET POSITIVE MAGAZINE SECTION (HOMEPAGE) ── */
.recently-blogs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 56px;
}

.blog-card-inline {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.blog-card-inline:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md) !important;
}

.blog-card-inline-img {
  height: 180px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.blog-card-inline-body {
  padding: 24px;
}

.blog-card-inline-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--mint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 8px;
}

.blog-card-inline-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.blog-card-inline-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0;
}

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

.blog-card-inline-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.blog-card-inline-btn {
  font-size: 0.75rem;
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

@media (max-width: 768px) {
  .recently-blogs-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}


@media (max-width: 1024px) {
  .recently-blogs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .toc-box {
    position: relative;
    top: 0;
  }
}

