:root {
      --teal: #1b7a6e;
      --teal-dark: #145e55;
      --teal-light: #e6f4f1;
      --teal-mid: #2a9d8f;
      --accent: #f4a261;
      --dark: #0f1923;
      --dark-mid: #1a2b38;
      --text: #1a1a2e;
      --text-muted: #5a6a7a;
      --border: #dde8e6;
      --white: #ffffff;
      --card-bg: #ffffff;
      --section-alt: #f8fffe;
      --radius: 12px;
      --radius-sm: 8px;
      --shadow: 0 4px 24px rgba(27,122,110,0.10);
      --shadow-hover: 0 8px 40px rgba(27,122,110,0.18);
      --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }

    body {
      font-family: var(--font);
      color: var(--text);
      background: var(--white);
      line-height: 1.65;
    }

    /* ── NAV ── */
    nav {
      position: sticky; top: 0; z-index: 1000;
      background: rgba(255,255,255,0.97);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid #dde8e6;
      padding: 0 2rem;
      display: flex; align-items: center; justify-content: space-between;
      height: 64px;
      box-shadow: 0 1px 12px rgba(0,0,0,0.06);
    }
    .nav-logo {
      display: flex; align-items: center; gap: 10px;
      text-decoration: none;
    }
    .nav-logo-icon {
      width: 42px; height: 42px;
      border-radius: 10px;
      object-fit: cover;
      flex-shrink: 0;
      box-shadow: 0 4px 14px rgba(15, 25, 35, 0.08);
    }
    .nav-logo-text { color: var(--text); font-weight: 700; font-size: 1rem; line-height: 1.2; }
    .nav-logo-text span { display: block; font-weight: 400; font-size: 0.7rem; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; }
    .nav-links { display: flex; gap: 0.25rem; align-items: center; }
    .nav-links a {
      color: var(--text-muted);
      text-decoration: none;
      padding: 0.4rem 0.85rem;
      border-radius: 6px;
      font-size: 0.875rem;
      font-weight: 500;
      transition: all 0.2s;
    }
    .nav-links a:hover { color: var(--text); background: var(--teal-light); }
    .nav-links a.active { color: var(--teal); background: var(--teal-light); }
    .nav-cta {
      background: var(--teal-mid); color: white !important;
      padding: 0.4rem 1rem !important;
      border-radius: 20px !important;
      font-weight: 600 !important;
    }
    .nav-cta:hover { background: var(--teal) !important; }
    .nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
    .nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: 0.3s; }

    /* ── HERO ── */
    .hero {
      background: linear-gradient(135deg, #f8fffe 0%, #ffffff 50%, #f0fbf9 100%);
      border-bottom: 1px solid var(--border);
      padding: 7rem 2rem 5rem;
      position: relative; overflow: hidden;
    }
    .hero::before {
      content: '';
      position: absolute; inset: 0;
      background: radial-gradient(ellipse 80% 60% at 70% 40%, rgba(42,157,143,0.08) 0%, transparent 70%);
    }
    .hero-grid {
      max-width: 1100px; margin: 0 auto;
      display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
      position: relative; z-index: 1;
    }
    .hero-badge {
      display: inline-flex; align-items: center; gap: 6px;
      background: var(--teal-light); border: 1.5px solid var(--border);
      color: var(--teal); padding: 4px 12px; border-radius: 20px;
      font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
      margin-bottom: 1.25rem;
    }
    .hero-badge::before { content: '●'; font-size: 0.5rem; }
    .hero h1 {
      font-size: clamp(2rem, 4vw, 3rem); font-weight: 800;
      color: var(--text); line-height: 1.15; margin-bottom: 1.25rem;
    }
    .hero h1 em { font-style: normal; color: var(--teal-mid); }
    .hero p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 2rem; max-width: 460px; }
    .hero-actions { display: flex; gap: 0.875rem; flex-wrap: wrap; }
    .btn-primary {
      background: var(--teal-mid); color: white;
      padding: 0.75rem 1.5rem; border-radius: 8px;
      font-weight: 600; font-size: 0.9rem; text-decoration: none;
      transition: all 0.2s; border: none; cursor: pointer;
      display: inline-flex; align-items: center; gap: 6px;
    }
    .btn-primary:hover { background: var(--teal); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(42,157,143,0.4); }
    .btn-outline {
      background: transparent; color: var(--teal);
      padding: 0.75rem 1.5rem; border-radius: 8px;
      font-weight: 600; font-size: 0.9rem; text-decoration: none;
      border: 1.5px solid var(--teal-mid); transition: all 0.2s;
    }
    .btn-outline:hover { background: var(--teal-light); border-color: var(--teal); color: var(--teal-dark); }
    .hero-visual {
      background: white;
      border: 1.5px solid var(--border);
      border-radius: 16px; padding: 1.75rem;
      box-shadow: var(--shadow);
    }
    .stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
    .stat-card {
      background: var(--teal-light); border: 1.5px solid var(--border);
      border-radius: 10px; padding: 1.25rem;
      text-align: center;
    }
    .stat-card .num { font-size: 2rem; font-weight: 800; color: var(--teal); }
    .stat-card .lbl { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.05em; }
    .hero-mission {
      margin-top: 1rem;
      background: var(--teal-light); border: 1.5px solid var(--border);
      border-radius: 10px; padding: 1rem 1.25rem;
      color: var(--text-muted); font-size: 0.875rem; line-height: 1.6;
      font-style: italic;
    }
    .hero-mission strong {
      color: var(--teal-dark);
      font-style: normal;
    }

    /* ── SECTIONS ── */
    section { padding: 5rem 2rem; }
    section:nth-child(even) { background: var(--section-alt); }
    .section-inner { max-width: 1100px; margin: 0 auto; }
    .section-header { margin-bottom: 2.5rem; }
    .section-label {
      font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
      text-transform: uppercase; color: var(--teal-mid); margin-bottom: 0.5rem;
    }
    .section-header h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; color: var(--text); }
    .section-header p { color: var(--text-muted); margin-top: 0.5rem; max-width: 560px; }
    .section-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }

    /* ── FILTER BAR ── */
    .filter-bar { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; align-items: center; }
    .filter-search {
      flex: 1; min-width: 200px; max-width: 320px;
      padding: 0.55rem 1rem; border: 1.5px solid var(--border);
      border-radius: 8px; font-size: 0.875rem; outline: none;
      transition: border-color 0.2s; background: white;
    }
    .filter-search:focus { border-color: var(--teal-mid); }
    .filter-tag {
      padding: 0.45rem 1rem; border-radius: 20px;
      border: 1.5px solid var(--border); background: white;
      font-size: 0.8rem; font-weight: 600; cursor: pointer;
      color: var(--text-muted); transition: all 0.2s;
    }
    .filter-tag.active, .filter-tag:hover { border-color: var(--teal-mid); color: var(--teal); background: var(--teal-light); }

    /* ── CARDS ── */
    .cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 1.5rem; }
    .card {
      background: var(--card-bg); border: 1.5px solid var(--border);
      border-radius: var(--radius); padding: 1.5rem;
      transition: all 0.25s; cursor: pointer;
      display: flex; flex-direction: column;
    }
    .card:hover { box-shadow: var(--shadow-hover); border-color: var(--teal-mid); transform: translateY(-2px); }
    .card-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
    .card-tag {
      font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
      padding: 3px 10px; border-radius: 20px;
    }
    .tag-research { background: #e6f4f1; color: #1b7a6e; }
    .tag-incident { background: #fef3e7; color: #c85a00; }
    .tag-safety { background: #ede9fe; color: #5b21b6; }
    .tag-policy { background: #e0f2fe; color: #075985; }
    .card-date { font-size: 0.78rem; color: var(--text-muted); }
    .card h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.6rem; line-height: 1.4; }
    .card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; flex: 1; }
    .card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border); }
    .card-authors { font-size: 0.78rem; color: var(--text-muted); }
    .card-link {
      font-size: 0.8rem; font-weight: 700; color: var(--teal);
      text-decoration: none; display: flex; align-items: center; gap: 4px;
      transition: gap 0.2s;
    }
    .card-link:hover { gap: 8px; }
    .card-status { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600; }
    .status-dot { width: 7px; height: 7px; border-radius: 50%; }
    .status-active .status-dot { background: #22c55e; }
    .status-review .status-dot { background: #f59e0b; }
    .status-draft .status-dot { background: #94a3b8; }
    .status-active { color: #166534; }
    .status-review { color: #92400e; }
    .status-draft { color: #475569; }

    /* ── INCIDENT CARDS ── */
    .incident-card {
      background: var(--card-bg); border: 1.5px solid var(--border);
      border-radius: var(--radius); overflow: hidden;
      transition: all 0.25s;
    }
    .incident-card:hover { box-shadow: var(--shadow-hover); border-color: #f4a261; transform: translateY(-2px); }
    .incident-header {
      padding: 1.25rem 1.5rem;
      display: flex; justify-content: space-between; align-items: center;
      border-bottom: 1px solid var(--border);
    }
    .incident-severity {
      font-size: 0.72rem; font-weight: 800; padding: 3px 10px; border-radius: 4px;
      text-transform: uppercase; letter-spacing: 0.08em;
    }
    .sev-critical { background: #fee2e2; color: #991b1b; }
    .sev-high { background: #fef3c7; color: #92400e; }
    .sev-medium { background: #e0f2fe; color: #075985; }
    .incident-body { padding: 1.25rem 1.5rem; }
    .incident-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
    .incident-body p { font-size: 0.875rem; color: var(--text-muted); }
    .incident-steps { margin-top: 1rem; }
    .incident-step {
      display: flex; gap: 0.75rem; align-items: flex-start;
      padding: 0.5rem 0; border-bottom: 1px solid var(--border);
      font-size: 0.85rem;
    }
    .incident-step:last-child { border: none; }
    .step-num {
      width: 22px; height: 22px; border-radius: 50%;
      background: var(--teal-light); color: var(--teal);
      font-size: 0.72rem; font-weight: 800;
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0; margin-top: 1px;
    }

    /* ── MODEL SAFETY ── */
    .safety-card {
      background: var(--card-bg); border: 1.5px solid var(--border);
      border-radius: var(--radius); padding: 1.5rem;
      transition: all 0.25s;
    }
    .safety-card:hover { box-shadow: var(--shadow-hover); border-color: #a78bfa; transform: translateY(-2px); }
    .safety-model-name { font-size: 1.05rem; font-weight: 800; margin-bottom: 0.25rem; }
    .safety-model-org { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1rem; }
    .safety-scores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin: 1rem 0; }
    .score-item { text-align: center; }
    .score-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
    .score-bar-wrap { height: 6px; background: #e2e8f0; border-radius: 4px; overflow: hidden; }
    .score-bar { height: 100%; border-radius: 4px; transition: width 1s ease; }
    .score-val { font-size: 0.8rem; font-weight: 700; margin-top: 4px; }
    .bar-green { background: linear-gradient(90deg, #22c55e, #16a34a); }
    .bar-yellow { background: linear-gradient(90deg, #f59e0b, #d97706); }
    .bar-red { background: linear-gradient(90deg, #ef4444, #dc2626); }
    .bar-blue { background: linear-gradient(90deg, #3b82f6, #2563eb); }
    .safety-findings { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
    .finding { display: flex; gap: 8px; align-items: flex-start; font-size: 0.83rem; margin-bottom: 0.4rem; color: var(--text-muted); }
    .finding::before { content: '→'; color: var(--teal); font-weight: 700; flex-shrink: 0; }

    /* ── ABOUT ── */
    .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
    .about-text h2 { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; }
    .about-text p { color: var(--text-muted); margin-bottom: 1rem; }
    .pillar-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
    .pillar { display: flex; gap: 1rem; align-items: flex-start; }
    .pillar-icon { width: 40px; height: 40px; background: var(--teal-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
    .pillar-body h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 2px; }
    .pillar-body p { font-size: 0.85rem; color: var(--text-muted); }
    .about-info { display: flex; flex-direction: column; gap: 1rem; }
    .info-box { background: var(--teal-light); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
    .info-box h4 { font-size: 0.8rem; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 0.5rem; }
    .info-box p, .info-box a { font-size: 0.875rem; color: var(--text); }
    .info-box a { color: var(--teal); }

    /* ── DONATE ── */
    .donate-section {
      background: var(--teal-light);
      border-top: 1.5px solid var(--border);
    }
    .donate-layout {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 300px;
      gap: 2rem;
      align-items: start;
    }
    .donate-widget {
      min-width: 0;
    }
    .donate-sidebar {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }
    .donate-card {
      background: var(--white);
      border: 1.5px solid var(--border);
      border-radius: var(--radius-sm);
      padding: 1.25rem;
    }
    .donate-card-icon {
      font-size: 1.5rem;
      margin-bottom: 0.5rem;
    }
    .donate-card-title {
      font-weight: 700;
      color: var(--text);
      margin-bottom: 0.25rem;
    }
    .donate-card-copy {
      font-size: 0.82rem;
      color: var(--text-muted);
    }
    .donate-note {
      color: var(--text-muted);
      font-size: 0.75rem;
      margin-top: 0.5rem;
    }

    /* ── ROADMAP ── */
    .roadmap-intro {
      display: grid;
      grid-template-columns: 1.4fr 0.9fr;
      gap: 1.5rem;
      align-items: start;
    }
    .roadmap-phase-grid,
    .funding-grid,
    .model-list-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 1.25rem;
    }
    .roadmap-card {
      background: white;
      border: 1.5px solid var(--border);
      border-radius: var(--radius);
      padding: 1.5rem;
      box-shadow: var(--shadow);
    }
    .roadmap-card h3,
    .roadmap-card h4 {
      color: var(--text);
      margin-bottom: 0.6rem;
    }
    .roadmap-card p {
      color: var(--text-muted);
      font-size: 0.92rem;
      line-height: 1.65;
    }
    .roadmap-kicker {
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
      padding: 0.3rem 0.75rem;
      border-radius: 999px;
      background: var(--teal-light);
      border: 1px solid var(--border);
      color: var(--teal);
      font-size: 0.74rem;
      font-weight: 700;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      margin-bottom: 0.9rem;
    }
    .roadmap-highlight {
      background: linear-gradient(135deg, #f7fffd 0%, #eefaf7 100%);
    }
    .funding-amount {
      font-size: 2rem;
      line-height: 1;
      font-weight: 800;
      color: var(--teal-dark);
      margin-bottom: 0.55rem;
    }
    .roadmap-list,
    .roadmap-checklist {
      display: flex;
      flex-direction: column;
      gap: 0.7rem;
      margin-top: 1rem;
    }
    .roadmap-list-item,
    .roadmap-check {
      display: flex;
      gap: 0.7rem;
      align-items: flex-start;
      color: var(--text-muted);
      font-size: 0.9rem;
      line-height: 1.6;
    }
    .roadmap-list-item::before,
    .roadmap-check::before {
      color: var(--teal);
      font-weight: 800;
      flex-shrink: 0;
    }
    .roadmap-list-item::before {
      content: "→";
    }
    .roadmap-check::before {
      content: "✓";
    }
    .roadmap-micro {
      font-size: 0.8rem;
      color: var(--text-muted);
      margin-top: 0.75rem;
    }
    .model-tag-row {
      display: flex;
      flex-wrap: wrap;
      gap: 0.45rem;
      margin-top: 0.9rem;
    }
    .model-tag {
      display: inline-flex;
      align-items: center;
      padding: 0.3rem 0.6rem;
      border-radius: 999px;
      background: var(--teal-light);
      color: var(--teal-dark);
      border: 1px solid var(--border);
      font-size: 0.78rem;
      font-weight: 600;
    }
    .roadmap-source-note {
      color: var(--text-muted);
      font-size: 0.82rem;
      margin-top: 1rem;
    }

    /* ── FOOTER ── */
    footer {
      background: var(--dark);
      padding: 3rem 2rem 2rem;
      color: rgba(255,255,255,0.78);
    }
    .footer-inner { max-width: 1100px; margin: 0 auto; }
    .footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 2rem; }
    .footer-brand-lockup { display:flex; align-items:center; gap:10px; }
    .footer-brand-mark {
      width: 38px;
      height: 38px;
      border-radius: 10px;
      object-fit: cover;
      flex-shrink: 0;
      background: white;
    }
    .footer-brand p { font-size: 0.875rem; margin-top: 0.75rem; max-width: 300px; line-height: 1.6; }
    .footer-col h4 { color: white; font-size: 0.85rem; font-weight: 700; margin-bottom: 1rem; }
    .footer-col a { display: block; color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.85rem; margin-bottom: 0.4rem; transition: color 0.2s; }
    .footer-col a:hover { color: rgba(255,255,255,0.9); }
    .footer-bottom { padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; align-items: center; flex-wrap: gap; gap: 1rem; font-size: 0.8rem; }
    .footer-bottom a { color: rgba(255,255,255,0.4); text-decoration: none; }
    .ein-badge { background: rgba(42,157,143,0.15); border: 1px solid rgba(42,157,143,0.3); color: #7dd4cc; padding: 2px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }

    /* ── MOBILE ── */
    @media (max-width: 768px) {
      nav { padding: 0 1rem; }
      .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: white; padding: 1rem; gap: 0.25rem; border-bottom: 1.5px solid var(--border); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
      .nav-links.open { display: flex; }
      .nav-hamburger { display: block; }
      .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
      .hero { padding: 5rem 1.5rem 3.5rem; }
      .about-grid { grid-template-columns: 1fr; gap: 2rem; }
      .footer-top { grid-template-columns: 1fr; gap: 2rem; }
      section { padding: 3.5rem 1.25rem; }
      .filter-bar { gap: 0.4rem; }
      .filter-search { max-width: 100%; width: 100%; }
      .donate-layout { grid-template-columns: 1fr; }
      .roadmap-intro { grid-template-columns: 1fr; }
      .donate-sidebar { order: 2; }
      .donate-widget { order: 1; }
      .donate-section .section-header p { margin-left: auto; margin-right: auto; }
    }

/* ── SUBPAGE HEADER ── */
.page-hero {
  background: linear-gradient(135deg, #f8fffe 0%, #ffffff 50%, #f0fbf9 100%);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 2rem 2.75rem;
}
.page-hero-inner { max-width: 1100px; margin: 0 auto; }
.breadcrumb { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--teal); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.page-hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; color: var(--text); line-height: 1.15; }
.page-hero p { color: var(--text-muted); margin-top: 0.75rem; max-width: 620px; font-size: 1.02rem; }

/* ── HOMEPAGE HUB CARDS ── */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.hub-card {
  background: var(--card-bg); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem; text-decoration: none;
  display: flex; flex-direction: column; transition: all 0.25s; color: var(--text);
}
.hub-card:hover { box-shadow: var(--shadow-hover); border-color: var(--teal-mid); transform: translateY(-2px); }
.hub-card .hub-icon { width: 48px; height: 48px; background: var(--teal-light); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 1rem; }
.hub-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.hub-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; flex: 1; }
.hub-card .hub-link { margin-top: 1rem; font-size: 0.85rem; font-weight: 700; color: var(--teal); display: flex; align-items: center; gap: 4px; transition: gap 0.2s; }
.hub-card:hover .hub-link { gap: 8px; }
