@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #f4f7f5;
  --fg: #0f1f15;
  --card: #ffffff;
  --primary: #2e9d5e;
  --primary-fg: #ffffff;
  --secondary: #e4ede8;
  --muted: #6b7c72;
  --border: #dbe5df;
  --accent: #e89b1c;
  --radius: 0.75rem;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --gradient: linear-gradient(135deg, #2e9d5e, #2a8a6e);
  --shadow: 0 1px 3px rgba(15,31,21,0.06), 0 4px 12px rgba(15,31,21,0.04);
  --shadow-hover: 0 4px 12px rgba(15,31,21,0.1), 0 8px 24px rgba(15,31,21,0.06);
}
body { font-family: var(--font-body); background: var(--bg); color: var(--fg); line-height: 1.6; }
h1, h2, h3, h4 { font-family: var(--font-heading); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
/* NAV */
.navbar { position: sticky; top: 0; z-index: 50; background: rgba(244,247,245,0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; }
.nav-logo span { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; background: var(--gradient); color: #fff; font-size: 0.85rem; }
.nav-links { display: flex; gap: 0.25rem; }
.nav-links a { padding: 0.5rem 1rem; border-radius: 6px; font-size: 0.875rem; font-weight: 500; color: var(--muted); transition: all 0.2s; }
.nav-links a:hover, .nav-links a.active { background: var(--secondary); color: var(--fg); }
.hamburger { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--muted); }
/* HERO */
.hero { background: linear-gradient(135deg, rgba(46,157,94,0.08), rgba(42,138,110,0.04)); text-align: center; padding: 5rem 1rem; }
.hero .badge { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.75rem; border-radius: 999px; border: 1px solid rgba(46,157,94,0.2); background: rgba(46,157,94,0.1); font-size: 0.75rem; font-weight: 500; color: var(--primary); margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; max-width: 700px; margin: 0 auto; line-height: 1.15; }
.hero h1 .highlight { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { max-width: 540px; margin: 1.25rem auto 0; font-size: 1.1rem; color: var(--muted); }
.hero-btns { display: flex; gap: 0.75rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.btn-primary { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem; border-radius: 8px; background: var(--gradient); color: #fff; font-family: var(--font-heading); font-size: 0.875rem; font-weight: 600; border: none; cursor: pointer; box-shadow: 0 8px 32px rgba(46,157,94,0.2); transition: filter 0.2s; }
.btn-primary:hover { filter: brightness(1.1); }
.btn-secondary { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem; border-radius: 8px; background: var(--card); color: var(--fg); font-family: var(--font-heading); font-size: 0.875rem; font-weight: 600; border: 1px solid var(--border); cursor: pointer; box-shadow: var(--shadow); transition: box-shadow 0.2s; }
.btn-secondary:hover { box-shadow: var(--shadow-hover); }
/* SECTIONS */
.section { padding: 4rem 0; }
.section-alt { background: rgba(228,237,232,0.5); }
.section-title { text-align: center; font-size: 1.75rem; font-weight: 700; }
.section-subtitle { text-align: center; color: var(--muted); margin-top: 0.5rem; }
/* FEATURE CARDS */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.feature-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); transition: box-shadow 0.2s; }
.feature-card:hover { box-shadow: var(--shadow-hover); }
.feature-icon { width: 40px; height: 40px; border-radius: 8px; background: var(--gradient); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.feature-card h3 { margin-top: 1rem; font-size: 1.1rem; font-weight: 600; }
.feature-card p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted); }
/* CATEGORY CARDS */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.cat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); transition: all 0.2s; }
.cat-card:hover { box-shadow: var(--shadow-hover); border-color: rgba(46,157,94,0.3); }
.cat-card .emoji { font-size: 1.75rem; }
.cat-card h3 { margin-top: 0.75rem; font-weight: 600; }
.cat-card .count { font-size: 0.75rem; color: var(--muted); margin-top: 0.25rem; }
/* ARTICLES GRID - exactly 3 columns on desktop, 1 on mobile */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; }
/* FAQ */
details { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }
details + details { margin-top: 0.75rem; }
summary { cursor: pointer; font-family: var(--font-heading); font-weight: 600; }
details p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted); }
/* TABLES */
.group-section { margin-bottom: 3rem; scroll-margin-top: 5rem; }
.group-section .sec-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.group-section .sec-header .emoji { font-size: 1.75rem; }
.group-section .sec-header h2 { font-size: 1.5rem; font-weight: 700; }
.group-section .sec-header p { font-size: 0.875rem; color: var(--muted); }
.search-box { width: 100%; max-width: 400px; padding: 0.6rem 1rem; border: 1px solid var(--border); border-radius: 8px; font-size: 0.875rem; background: var(--card); margin-bottom: 1rem; outline: none; }
.search-box:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(46,157,94,0.15); }
table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
th { background: var(--secondary); text-align: left; padding: 0.75rem 1rem; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
td { padding: 0.75rem 1rem; font-size: 0.875rem; border-top: 1px solid var(--border); }
tr:hover td { background: rgba(46,157,94,0.03); }
td a { color: var(--primary); font-weight: 500; }
td a:hover { text-decoration: underline; }
/* JOIN BUTTON */
.join-btn {
  display: inline-block;
  background: #2b8e6b;
  color: #ffffff !important;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  text-decoration: none !important;
  transition: background 0.15s;
  white-space: nowrap;
}
.join-btn::after,
.join-btn::before { display: none !important; content: none !important; }
.join-btn:hover { background: #1f6b50; }
/* MOBILE CARDS (for tables on mobile) */
.mobile-cards { display: none; }
.mobile-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); margin-bottom: 0.75rem; }
.mobile-card h4 { font-size: 0.95rem; font-weight: 600; }
.mobile-card p { font-size: 0.8rem; color: var(--muted); margin: 0.4rem 0; }
.mobile-card a { color: var(--primary); font-weight: 500; font-size: 0.85rem; }
/* ABOUT */
.about-promise { margin-top: 3rem; max-width: 600px; }
.about-promise h2 { font-size: 1.25rem; font-weight: 700; }
.about-promise ul { list-style: none; margin-top: 1rem; }
.about-promise li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; color: var(--muted); margin-bottom: 0.5rem; }
.about-promise li::before { content: ''; display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); margin-top: 0.5rem; flex-shrink: 0; }
/* CONTACT FORM */
.contact-form { max-width: 560px; margin-top: 2rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.4rem; }
.form-group label span { color: var(--muted); font-weight: 400; }
.form-group input, .form-group textarea { width: 100%; padding: 0.65rem 1rem; border: 1px solid var(--border); border-radius: 8px; font-size: 0.875rem; background: var(--bg); outline: none; font-family: var(--font-body); }
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(46,157,94,0.15); }
/* FOOTER */
.footer { border-top: 1px solid var(--border); background: rgba(228,237,232,0.5); padding: 3rem 0 2rem; }
.footer-grid { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem; }
.footer h4 { font-size: 0.875rem; font-weight: 600; margin-bottom: 0.75rem; }
.footer p, .footer a, .footer li { font-size: 0.875rem; color: var(--muted); }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.5rem; }
.footer a:hover { color: var(--primary); }
.footer-bottom { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); text-align: center; font-size: 0.75rem; color: var(--muted); }
.footer-bottom p + p { margin-top: 0.25rem; }
/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .nav-mobile { display: flex; flex-direction: column; border-top: 1px solid var(--border); background: var(--bg); padding: 0.5rem 1rem 1rem; }
  .nav-mobile a { padding: 0.75rem 1rem; border-radius: 6px; font-size: 0.875rem; font-weight: 500; color: var(--muted); }
  .nav-mobile a:hover, .nav-mobile a.active { background: var(--secondary); color: var(--fg); }
  /* Hide desktop table, show mobile cards */
  table { display: none; }
  .mobile-cards { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  /* Articles grid - 1 column on mobile */
  .articles-grid { grid-template-columns: 1fr; }
}