:root {
  --bg: #09090B;
  --surface: #18181B;
  --surface-elevated: #202024;
  --border: #27272A;
  --text: #FAFAFA;
  --text-muted: #A1A1AA;
  --accent-green: #10B981;
  --accent-green-soft: rgba(16, 185, 129, 0.14);
  --accent-blue: #3B82F6;
  --accent-blue-soft: rgba(59, 130, 246, 0.14);
  --accent-red: #EF4444;
  --accent-red-soft: rgba(239, 68, 68, 0.14);
  --radius: 12px;
  --max-width: 1040px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text);
  text-underline-offset: 3px;
}

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: rgba(9, 9, 11, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
  padding: 10px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background-color: var(--accent-green);
  box-shadow: 0 0 0 4px var(--accent-green-soft);
  flex-shrink: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.925rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: var(--surface);
  overflow: hidden;
  font-size: 0.85rem;
  font-weight: 600;
}

.lang-switch a,
.lang-switch span {
  padding: 5px 10px;
  text-decoration: none;
  color: var(--text-muted);
}

.lang-switch .lang-active {
  background-color: var(--surface-elevated);
  color: var(--text);
}

.lang-switch a:hover {
  color: var(--text);
}

/* Hero */
.hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-green);
  background-color: var(--accent-green-soft);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 2.85rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.hero-lead {
  margin: 0 0 28px;
  max-width: 720px;
  font-size: 1.125rem;
  color: var(--text-muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background-color: var(--accent-green);
  color: #04130D;
}

.btn-primary:hover {
  background-color: #34D399;
}

.btn-secondary {
  background-color: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background-color: var(--surface-elevated);
  border-color: #3F3F46;
}

/* Sections */
.section {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.section-head {
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: 1.65rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  max-width: 760px;
}

/* RadioAlert Highlight Card */
.radioalert-card {
  background-color: var(--surface);
  border: 1px solid rgba(16, 185, 129, 0.45);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.1);
}

.radioalert-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.radioalert-top h2 {
  margin: 0;
  font-size: 1.65rem;
  line-height: 1.25;
}

.badge-volunteer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-green);
  background-color: var(--accent-green-soft);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 999px;
  padding: 4px 12px;
}

.badge-alert {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #FCA5A5;
  background-color: var(--accent-red-soft);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 999px;
  padding: 3px 10px;
}

.radioalert-desc {
  margin: 0 0 18px;
  color: var(--text-muted);
  max-width: 780px;
}

.bullet-list {
  margin: 0 0 22px;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: var(--text);
}

.bullet-list li::marker {
  color: var(--accent-green);
}

.radioalert-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.attribution-box {
  font-size: 0.925rem;
  color: var(--text-muted);
}

.attribution-box strong {
  color: var(--text);
}

.attribution-box a {
  color: var(--accent-green);
  font-weight: 600;
}

/* Modules Grid */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.module-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.module-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-blue);
  background-color: var(--accent-blue-soft);
  border-radius: 6px;
  padding: 3px 8px;
  margin-bottom: 10px;
}

.module-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.module-card p {
  margin: 0;
  font-size: 0.925rem;
  color: var(--text-muted);
}

/* Features Grid (8 items) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.feature-accent {
  border-color: rgba(59, 130, 246, 0.55);
  background-color: #161B26;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.04rem;
  line-height: 1.35;
}

.feature-card p {
  margin: 0;
  font-size: 0.925rem;
  color: var(--text-muted);
}

/* Compliance & Contacts */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.contact-card h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
}

.contact-card p {
  margin: 0 0 12px;
  font-size: 0.94rem;
  color: var(--text-muted);
}

.contact-card p:last-child {
  margin-bottom: 0;
}

.contact-email {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-blue);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  background-color: var(--accent-blue-soft);
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.contact-email:hover {
  background-color: rgba(59, 130, 246, 0.22);
}

/* Footer */
.site-footer {
  padding: 28px 0 40px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.footer-inner a {
  color: var(--text);
}

/* 404 */
.page-404 {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 48px 0;
}

.card-404 {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 640px;
}

.card-404 h1 {
  margin: 0 0 12px;
  font-size: 2rem;
}

.card-404 p {
  margin: 0 0 20px;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .modules-grid,
  .features-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 36px 0 32px;
  }

  .section {
    padding: 36px 0;
  }

  .radioalert-card {
    padding: 20px;
  }

  .nav-links {
    gap: 12px;
  }
}
