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

:root {
  --bg:       #F8FAFC;
  --bg-alt:   #F1F5F9;
  --white:    #FFFFFF;
  --text:     #0F172A;
  --muted:    #475569;
  --border:   #E2E8F0;
  --accent:   #E8630A;
  --indigo:   #3730A3;
  --navy:     #0F172A;
  --font:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

/* ── Navigation ─────────────────────────────── */
nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 64px;
  gap: 2rem;
}

.nav-brand {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex: 1;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s;
}

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

.nav-cta {
  background: var(--accent);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.15s;
}

.nav-cta:hover { opacity: 0.88; }

/* ── Layout helpers ──────────────────────────── */
section { padding: 5rem 2rem; }

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.375rem;
}

p { color: var(--muted); line-height: 1.7; }

.intro-text {
  max-width: 680px;
  font-size: 1.0625rem;
  margin-bottom: 0;
}

.section-alt { background: var(--bg-alt); }

/* ── Hero ────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 60%, #1a1f35 100%);
  padding: 7rem 2rem;
}

.hero-bar {
  display: inline-block;
  background: var(--accent);
  width: 48px;
  height: 4px;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.hero h1 { color: white; }

.hero-sub {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  color: #93C5FD;
  margin: 1.25rem 0 1rem;
  font-weight: 500;
  line-height: 1.4;
}

.hero-copy {
  max-width: 600px;
  font-size: 1rem;
  color: #CBD5E1;
  margin-bottom: 2.5rem;
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent);
  color: white;
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9375rem;
  transition: opacity 0.15s;
}

.btn-primary:hover { opacity: 0.88; }

.btn-outline {
  background: transparent;
  color: white;
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  border: 2px solid rgba(255,255,255,0.28);
  transition: border-color 0.15s;
}

.btn-outline:hover { border-color: rgba(255,255,255,0.65); }

/* ── Teach grid ──────────────────────────────── */
.teach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.teach-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.125rem 1.375rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.teach-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.teach-item strong {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

/* ── Cards ───────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.875rem;
  margin-bottom: 0.625rem;
}

.badge {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}

.badge-available { background: #DCFCE7; color: #15803D; }
.badge-planned   { background: #E0E7FF; color: var(--indigo); }
.badge-seed      { background: #FFF7ED; color: var(--accent); }
.badge-future    { background: var(--bg-alt); color: var(--muted); }

/* ── Library (dark band) ─────────────────────── */
.section-dark {
  background: var(--navy);
}

.section-dark .section-label { color: #93C5FD; }
.section-dark h2              { color: white; }
.section-dark .intro-text     { color: #CBD5E1; }

.lib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.book-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 1.5rem;
}

.book-track {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.book-card h3 { color: white; margin-bottom: 0.5rem; }
.book-card p  { color: #94A3B8; font-size: 0.875rem; }

.book-card.labs { border-color: rgba(232,99,10,0.25); }
.book-card.labs .book-track { color: #94A3B8; }

/* ── Resources ───────────────────────────────── */
.res-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.res-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
}

.res-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #FFF7ED;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0.875rem;
}

.res-card h3  { font-size: 0.9375rem; margin-bottom: 0.375rem; }
.res-card p   { font-size: 0.875rem; }

/* ── Ecosystem ───────────────────────────────── */
.eco-tagline {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin: 0.25rem 0 0.75rem;
}

.eco-tagline span { color: var(--accent); }

.eco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.eco-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.eco-role {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.eco-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.eco-card p { font-size: 0.875rem; }

/* ── Footer ──────────────────────────────────── */
footer {
  background: #0F172A;
  color: #94A3B8;
  padding: 3.5rem 2rem 2rem;
}

.footer-inner { max-width: 1200px; margin: 0 auto; }

.footer-brand {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.375rem;
}

.footer-sub {
  font-size: 0.875rem;
  color: #64748B;
  margin-bottom: 2rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem 2rem;
  margin-bottom: 2.5rem;
}

.footer-links a {
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid #1E293B;
  padding-top: 1.5rem;
  font-size: 0.8125rem;
  color: #475569;
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  section    { padding: 3.5rem 1.25rem; }
  .hero      { padding: 5rem 1.25rem; }
}
