:root {
  color-scheme: light;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --primary: #2c6e8f;
  --primary-dark: #204e68;
  --accent: #ffb347;
  --text: #1f2d3d;
  --muted: #5f6c7b;
  --border: #d9e1e8;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Source Sans 3', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
}

a:hover,
a:focus {
  color: var(--primary);
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
}

.brand-logo {
  width: 48px;
  height: auto;
}

.brand h1 {
  font-size: 1.5rem;
  margin: 0;
}

.brand p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  font-weight: 600;
}

.nav-links a {
  text-decoration: none;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  inset: auto 0 -0.35rem;
  height: 2px;
  background: transparent;
  transition: background 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a:focus::after {
  background: var(--primary);
}

.hero {
  background: linear-gradient(120deg, rgba(44, 110, 143, 0.1), rgba(255, 179, 71, 0.2));
  padding: 4rem 0 3rem;
}

.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
}

.hero-highlight {
  background: var(--surface);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--border);
  min-width: 180px;
}

.hero-highlight strong {
  display: block;
  font-size: 2rem;
  color: var(--primary);
}

.filters {
  padding: 2.5rem 0;
}

.filters h2 {
  margin-top: 0;
}

.filter-form {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  align-items: end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-weight: 600;
}

.filter-group input,
.filter-group select {
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 1rem;
}

button.primary,
button.secondary {
  padding: 0.65rem 1rem;
  font-size: 1rem;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  font-weight: 600;
}

button.primary {
  background: var(--primary);
  color: white;
}

button.primary:hover,
button.primary:focus {
  background: var(--primary-dark);
}

button.secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
}

.projects {
  padding: 0 0 4rem;
}

.project-count {
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover,
.project-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(31, 45, 61, 0.1);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.project-meta span::before {
  content: '•';
  margin-right: 0.35rem;
  color: var(--border);
}

.project-meta span:first-child::before {
  content: '';
  margin-right: 0;
}

.funding-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(44, 110, 143, 0.15);
  overflow: hidden;
}

.funding-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.rewards {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.95rem;
}

.exclusive-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9rem;
  color: var(--primary);
  background: rgba(44, 110, 143, 0.12);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  width: fit-content;
}

.steps,
.faq-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.steps article,
.faq-grid article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 720px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .filter-form {
    grid-template-columns: 1fr;
  }
}
