﻿*, *::before, *::after { box-sizing: border-box; }

  .cr-funding {
    background-color: #09090b;
    padding: 5rem 1.5rem;
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
  }

  /* radial red glow overlay */
  .cr-funding::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(220,38,38,0.06) 0%, transparent 70%);
    pointer-events: none;
  }

  .cr-funding-inner {
    max-width: 64rem;
    margin: 0 auto;
    position: relative;
    z-index: 1;
  }

  /* accent pill */
  .cr-funding-pill {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
  }
  .cr-funding-pill-inner {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.3);
  }
  .cr-funding-pill-dot {
    position: relative;
    width: 0.5rem;
    height: 0.5rem;
    flex-shrink: 0;
  }
  .cr-funding-pill-dot::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(74,222,128,0.75);
    animation: cr-ping 1.5s ease-out infinite;
  }
  .cr-funding-pill-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #22c55e;
  }
  @keyframes cr-ping {
    0% { transform: scale(1); opacity: 0.75; }
    100% { transform: scale(2.5); opacity: 0; }
  }
  .cr-funding-pill-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: #4ade80;
    letter-spacing: 0.04em;
  }

  /* headings */
  .cr-funding-h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0 0 0.5rem;
  }
  .cr-funding-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.6);
    text-align: center;
    max-width: 36rem;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
    letter-spacing: -0.01em;
  }

  /* stats banner */
  .cr-funding-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 1.25rem;
    background: rgba(24,24,27,0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(220,38,38,0.2);
    max-width: 40rem;
    margin: 0 auto 3.5rem;
  }
  @media (min-width: 560px) {
    .cr-funding-stats { flex-direction: row; justify-content: center; }
  }

  .cr-funding-stat {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0 1.5rem;
    flex: 1;
    justify-content: center;
  }
  .cr-funding-stat + .cr-funding-stat {
    border-left: 1px solid rgba(255,255,255,0.1);
  }
  @media (max-width: 559px) {
    .cr-funding-stat + .cr-funding-stat { border-left: none; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1rem; }
  }
  .cr-funding-stat-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: rgba(220,38,38,0.1);
    border: 1px solid rgba(220,38,38,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .cr-funding-stat-val {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1;
  }
  .cr-funding-stat-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: -0.01em;
  }

  /* gallery grid â€” 2 cols mobile, 3 cols md+ (8 items â†’ 2 rows of 3 + 1 row of 2 centered) */
  .cr-funding-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  @media (min-width: 640px) {
    .cr-funding-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  }

  /* gallery card */
  .cr-funding-card {
    position: relative;
    border-radius: 0.875rem;
    overflow: hidden;
    background: rgba(24,24,27,0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.5s cubic-bezier(0.175,0.885,0.32,1.275);
  }
  .cr-funding-card:hover {
    border-color: rgba(220,38,38,0.4);
    box-shadow: 0 0 30px -5px rgba(220,38,38,0.3);
    transform: translateY(-4px);
  }
  .cr-funding-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
  }

  /* gradient overlay for badge readability */
  .cr-funding-card-overlay {
    position: absolute;
    inset-x: 0;
    bottom: 0;
    height: 4rem;
    background: linear-gradient(to top, rgba(9,9,11,0.85), transparent);
    pointer-events: none;
  }

  /* approved badge */
  .cr-approved-badge {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(9,9,11,0.85);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(245,158,11,0.35);
    color: #fbbf24;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    white-space: nowrap;
  }

  /* trust line */
  .cr-funding-trust {
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: -0.01em;
    margin-top: 2.5rem;
  }

  /* mid-page CTA */
  .cr-mid-cta {
    margin-top: 4rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  .cr-mid-cta-h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0;
  }
  .cr-mid-cta-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.6);
    letter-spacing: -0.01em;
    margin: 0;
  }
  .cr-mid-cta-btns {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
  }
  .cr-mid-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.375rem;
    border-radius: 0.5rem;
    background: linear-gradient(to right, #dc2626, #ef4444);
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.01em;
    box-shadow: 0 0 25px -5px rgba(220,38,38,0.5);
    transition: all 0.4s cubic-bezier(0.175,0.885,0.32,1.275);
    white-space: nowrap;
  }
  .cr-mid-btn:hover { transform: scale(1.03); box-shadow: 0 0 35px -5px rgba(220,38,38,0.7); }
  .cr-mid-btn.silver { background: linear-gradient(to right, #94a3b8, #cbd5e1); box-shadow: 0 0 20px -5px rgba(203,213,225,0.3); }
  .cr-mid-btn.gold { background: linear-gradient(to right, #d97706, #f59e0b); box-shadow: 0 0 20px -5px rgba(251,191,36,0.3); }
  .cr-mid-btn.emerald { background: linear-gradient(to right, #059669, #10b981); box-shadow: 0 0 20px -5px rgba(16,185,129,0.3); }
  .cr-mid-btn.amber-outline {
    background: transparent;
    border: 1px solid rgba(245,158,11,0.4);
    color: #fbbf24;
    box-shadow: none;
  }
  .cr-mid-btn.amber-outline:hover { background: rgba(245,158,11,0.08); box-shadow: none; }
  .cr-mid-trust {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: -0.01em;
  }

  /* divider */
  .cr-funding-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(220,38,38,0.3), transparent);
    margin-top: 4rem;
  }

  @media (max-width: 600px) {
    .cr-funding { padding: 3rem 1rem; }
    .cr-mid-cta-btns { flex-direction: column; width: 100%; }
    .cr-mid-btn { width: 100%; justify-content: center; }
  }