:root {
  /* Backgrounds */
  --bg-body: #020617;
  --bg-section-dark: #020617;
  --bg-section-dark-soft: #0b1120;
  --bg-card-dark: #111827;

  --bg-section-light: #f9fafb;
  --bg-card-light: #ffffff;

  /* Text on dark backgrounds */
  --text-on-dark: #f9fafb;
  --text-muted-on-dark: #9ca3af;

  /* Text on light backgrounds */
  --text-on-light: #020617;
  --text-muted-on-light: #4b5563;

  /* Accent colors */
  --accent: #22c55e;
  --accent-soft: rgba(34, 197, 94, 0.12);
  --accent-strong: #16a34a;

  /* Borders / dividers */
  --border-subtle-dark: #1f2937;
  --border-subtle-light: #e5e7eb;

  /* Buttons / links */
  --btn-primary-bg: #22c55e;
  --btn-primary-bg-hover: #16a34a;
  --btn-primary-text: #020617;

  --btn-outline-border: #22c55e;
  --btn-outline-text: #22c55e;
  --btn-outline-bg-hover: rgba(34, 197, 94, 0.12);

  /* General radius & shadows */
  --radius-lg: 0.75rem;
  --shadow-soft: 0 18px 35px rgba(15, 23, 42, 0.55);
}

/* Base page */
body {
  background-color: var(--bg-body);
  color: var(--text-on-dark);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-on-dark);
  font-weight: 600;
  line-height: 1.3;
}

/* Paragraphs & small text */
p {
  margin-bottom: 0.75rem;
}

.text-muted,
small,
.help-text {
  color: var(--text-muted-on-dark);
  font-size: 0.875rem;
}

/* Global links */
a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--accent-strong);
  opacity: 0.9;
}

/* Dark section: dark background, light text */
.section-dark {
  background-color: var(--bg-section-dark);
  color: var(--text-on-dark);
}

.section-dark-soft {
  background-color: var(--bg-section-dark-soft);
  color: var(--text-on-dark);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6,
.section-dark-soft h1,
.section-dark-soft h2,
.section-dark-soft h3,
.section-dark-soft h4,
.section-dark-soft h5,
.section-dark-soft h6 {
  color: var(--text-on-dark);
}

.section-dark .text-muted,
.section-dark-soft .text-muted {
  color: var(--text-muted-on-dark);
}

/* Light section: light background, dark text */
.section-light {
  background-color: var(--bg-section-light);
  color: var(--text-on-light);
}

.section-light h1,
.section-light h2,
.section-light h3,
.section-light h4,
.section-light h5,
.section-light h6 {
  color: var(--text-on-light);
}

.section-light .text-muted {
  color: var(--text-muted-on-light);
}

/* Cards inside sections */
.card-dark {
  background-color: var(--bg-card-dark);
  color: var(--text-on-dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.card-light {
  background-color: var(--bg-card-light);
  color: var(--text-on-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* Keep links readable inside light sections */
.section-light a {
  color: var(--accent-strong);
}

.section-light a:hover {
  color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

/* Primary button */
.btn-primary {
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.35);
}

.btn-primary:hover {
  background-color: var(--btn-primary-bg-hover);
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.4);
  transform: translateY(-1px);
}

/* Outline button */
.btn-outline {
  background-color: transparent;
  color: var(--btn-outline-text);
  border: 1px solid var(--btn-outline-border);
}

.btn-outline:hover {
  background-color: var(--btn-outline-bg-hover);
}

/* Generic section spacing */
.section,
.content-section {
  padding: 4rem 0;
}

.section .section-heading,
.content-heading {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.section .section-subtitle {
  max-width: 640px;
  margin: 0 auto 2.5rem auto;
  font-size: 0.98rem;
}

/* Simple responsive grid helper */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

@media (max-width: 992px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}
