:root {
  --bg: #050711;
  --bg-alt: #0b0f1d;
  --bg-soft: #101426;
  --accent: #4f46e5;
  --accent-soft: rgba(79, 70, 229, 0.16);
  --accent-strong: #a855f7;
  --text: #f9fafb;
  --muted: #9ca3af;
  --border: #1f2933;
  --danger: #f97373;
  --radius-lg: 1.25rem;
  --radius-md: 0.875rem;
  --radius-sm: 0.5rem;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.65);
  --shadow-subtle: 0 10px 30px rgba(15, 23, 42, 0.5);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 55%, #000 100%);
  color: var(--text);
}

body {
  min-height: 100vh;
}

/* Layout */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: radial-gradient(circle at top left, #111827 0, #020617 55%);
}

.section-cta {
  text-align: center;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.18), rgba(248, 250, 252, 0.02));
}

.section-header {
  max-width: 700px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.section-header p {
  margin: 0;
  color: var(--muted);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.8));
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 10%, #6366f1, #a855f7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.logo-text {
  letter-spacing: 0.03em;
  font-size: 0.98rem;
}

/* Nav */

.nav {
  position: relative;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a.active {
  color: var(--text);
  font-weight: 500;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

/* Hero */

.hero {
  padding: 4.5rem 0 4rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.9fr);
  gap: 2.75rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: 2.4rem;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero-copy .accent {
  background: linear-gradient(120deg, #6366f1, #a855f7, #22c55e);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  color: var(--muted);
  margin: 0 0 1.75rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.hero-meta span {
  font-size: 0.8rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-visual {
  position: relative;
}

.hero-image {
  border-radius: 1.75rem;
  background-size: cover;
  background-position: center;
  min-height: 260px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.hero-stats {
  position: absolute;
  bottom: -1rem;
  left: 0.75rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.stat-card {
  padding: 0.55rem 0.9rem;
  border-radius: 0.9rem;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.2);
  backdrop-filter: blur(18px);
}

.stat-label {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
}

.stat-value {
  font-size: 0.95rem;
  font-weight: 600;
}

/* Hero variants */

.hero-nonprofits,
.hero-contact {
  background: radial-gradient(circle at top, rgba(79, 70, 229, 0.3), rgba(2, 6, 23, 1));
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.65rem 1.3rem;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease,
    border-color 0.16s ease;
  white-space: nowrap;
}

.primary-btn {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #f9fafb;
  box-shadow: 0 14px 30px rgba(79, 70, 229, 0.5);
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(79, 70, 229, 0.6);
}

.secondary-btn {
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.5);
}

.secondary-btn:hover {
  border-color: rgba(129, 140, 248, 0.8);
}

.btn-outline {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.55);
  color: var(--muted);
}

.btn-outline:hover {
  color: var(--text);
  border-color: rgba(129, 140, 248, 0.9);
}

.btn-small {
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
}

.full-width {
  width: 100%;
}

/* Cards & grids */

.card {
  background: rgba(15, 23, 42, 0.98);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.22);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-subtle);
}

.service-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.92));
  border-radius: var(--radius-lg);
}

.service-card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.service-card p {
  margin-bottom: 0.75rem;
  color: var(--muted);
}

.deep-card {
  padding: 1.6rem 1.8rem;
}

.mini-card {
  padding: 1.2rem 1.3rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Lists */

.pill-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill-list li {
  font-size: 0.78rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.pill-list.small li {
  font-size: 0.76rem;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
}

.checklist li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.checklist li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0.05rem;
  font-size: 0.78rem;
  color: #4ade80;
}

.checklist.small li {
  font-size: 0.86rem;
}

.text-link {
  font-size: 0.86rem;
  color: #a5b4fc;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

/* Info blocks */

.tagline {
  margin-top: 0.7rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.info-note {
  margin-top: 2.5rem;
  padding: 1.3rem 1.4rem;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: var(--muted);
  font-size: 0.9rem;
}

.info-small {
  font-size: 0.86rem;
  color: var(--muted);
}

/* CTA rows */

.cta-row {
  margin-top: 2.4rem;
  padding: 1.5rem 1.6rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: radial-gradient(circle at top left, var(--accent-soft), rgba(15, 23, 42, 0.96));
  box-shadow: var(--shadow-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cta-banner {
  margin-top: 2rem;
  padding: 1.8rem 1.7rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(129, 140, 248, 0.4);
  background: radial-gradient(circle at top right, rgba(129, 140, 248, 0.25), #020617);
  text-align: left;
}

/* About */

.about-visual .hero-image {
  min-height: 260px;
}

/* Contact */

.contact-card {
  max-width: 420px;
  margin-left: auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

label {
  font-size: 0.84rem;
  color: var(--muted);
}

input,
select,
textarea {
  border-radius: 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
  font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(129, 140, 248, 0.9);
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.7);
}

textarea {
  resize: vertical;
}

.form-note {
  margin: 0.6rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Steps list */

.steps-list {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(2, 6, 23, 0.98);
  padding: 1.4rem 0 1.6rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  font-size: 0.82rem;
  text-decoration: none;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--text);
}

/* Responsive */

@media (max-width: 900px) {
  .hero-inner,
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-inner {
    gap: 2rem;
  }

  .hero-visual {
    order: -1;
  }

  .hero-stats {
    position: static;
    margin-top: 0.8rem;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .cta-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .header-inner {
    padding: 0.6rem 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(2, 6, 23, 0.97);
    border-radius: 0 0 1rem 1rem;
    padding: 0.75rem 1rem 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    width: 220px;
    max-width: 80vw;
    transform-origin: top right;
    transform: scaleY(0.5);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.16s ease, opacity 0.16s ease;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: scaleY(1);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 0.35rem 0;
  }

  .hero-copy h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-copy h1 {
    font-size: 1.8rem;
  }

  .section {
    padding: 3.5rem 0;
  }
}
