:root {
  --bg: #f8fafc;
  --border: rgba(0,0,0,0.07);
  --border-light: rgba(0,0,0,0.1);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --green: #059669;
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --orange: #f59e0b;
  --pink: #f43f5e;
  --teal: #0d9488;
  --radius: 20px;
  --bg-body: #f8fafc;
  --surface: #ffffff;
  --accent-main: #0ea5e9;
  --accent-dark: #0284c7;
  --accent-light: #e0f2fe;
  --radius-sm: 8px;
}

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

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .page-title, .age-title-big, .info-card-title, .sources-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.bg-container {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  background: #f8fafc;
  pointer-events: none;
}

.bg-layer {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.bg-layer.active {
  opacity: 1;
}

.bg-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(248, 250, 252, 0.82),
    rgba(226, 232, 240, 0.92)
  );
}

.glass-card {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 20px 10px rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}
.glass-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 1px; height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), transparent, rgba(255, 255, 255, 0.3));
}
.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 20px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
}

.glass-accent {
  background: rgba(255,255,255,0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.6);
}

    nav {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 100;
      padding: 0 40px;
      height: 72px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(8px);
      border-bottom: 1px solid var(--border);
      animation: slideDown 0.6s ease-out both;
    }

    @keyframes slideDown { 
      from { opacity: 0; transform: translateY(-100%); } 
      to { opacity: 1; transform: translateY(0); } 
    }

    .nav-logo {
      font-family: 'Plus Jakarta Sans', sans-serif;
      font-size: 20px;
      font-weight: 800;
      color: var(--accent-dark);
      letter-spacing: -0.5px;
      display: flex;
      align-items: center;
      gap: 8px;
      text-decoration: none;
    }

    .nav-logo i {
      font-size: 24px;
      color: var(--accent-main);
    }

    .nav-links { display: flex; gap: 8px; align-items: center; }
    
    .nav-link {
      font-size: 14px;
      font-weight: 500;
      color: var(--text-secondary);
      text-decoration: none;
      padding: 8px 16px;
      border-radius: var(--radius-sm);
      transition: all 0.2s ease;
      position: relative;
    }

    .nav-link::after {
  content: "";
  position: absolute;
  left: 16px;
  bottom: 4px;
  width: calc(100% - 32px);
  height: 2px;
  background: #0ea5e9;
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

    .nav-link:hover,
    .nav-link.active { 
      color: var(--accent-dark); 
      background: var(--bg-body); 
      font-weight: 600;
    }

    .nav-cta {
      font-size: 14px;
      font-weight: 600;
      color: #fff;
      text-decoration: none;
      padding: 10px 20px;
      border-radius: 40px;
      background: var(--accent-main);
      transition: all 0.2s ease;
    }

    .nav-cta:hover { 
      background: var(--accent-dark); 
      transform: translateY(-1px); 
    }

.layout {
  display: flex;
  min-height: 100vh;
  padding-top: 72px;
  position: relative;
  z-index: 1;
}

.sidebar {
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  width: 260px;
  min-width: 260px;
  padding: 32px 20px;
  overflow-y: auto;
  border-right: 1px solid rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
}

.sidebar-title {
  font-size: 11px; font-weight: 700;
  letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 12px; margin-bottom: 8px; margin-top: 16px;
  font-family:'Plus Jakarta Sans',sans-serif;
}
.sidebar-title:first-child { margin-top: 0; }

.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 12px;
  font-size: 14px; font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}
.sidebar-link:hover { color: var(--text-primary); background: rgba(0,0,0,0.04); }
.sidebar-link.active {
  color: var(--text-primary);
  background: rgba(255,255,255,0.6);
  border-color: rgba(0,0,0,0.05);
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.sidebar-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

.main-content {
  flex: 1;
  padding: 60px 60px 120px;
  max-width: 900px;
}

.page-hero {
  margin-bottom: 72px;
  animation: fadeUp 0.8s cubic-bezier(0.22,1,0.36,1) 0.2s both;
}
.page-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(5,150,105,0.1);
  border: 1px solid rgba(5,150,105,0.25);
  border-radius: 40px; padding: 5px 14px;
  font-size: 12px; color: var(--green); font-weight: 600;
  letter-spacing: 0.5px; margin-bottom: 20px;
}
.page-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800; line-height: 1.1; letter-spacing: -1.5px;
  margin-bottom: 16px;
}
.page-sub {
  font-size: 17px; color: var(--text-secondary);
  line-height: 1.7; font-weight: 400; max-width: 560px;
}

@keyframes fadeUp {
  from { opacity:0; transform:translateY(30px); }
  to { opacity:1; transform:translateY(0); }
}

.age-section { margin-bottom: 96px; scroll-margin-top: 100px; }

.age-header {
  display: flex; align-items: flex-start; gap: 20px;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.age-icon-big {
  width: 72px; height: 72px; min-width: 72px;
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; flex-shrink: 0;
}
.age-range-badge {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; opacity: 0.7; margin-bottom: 6px;
}
.age-title-big {
  font-size: 32px; font-weight: 700; letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.age-tagline { font-size: 15px; color: var(--text-secondary); line-height: 1.6; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.info-grid.three { grid-template-columns: 1fr 1fr 1fr; }

.info-card { padding: 28px 24px; }
.info-card-icon { font-size: 28px; margin-bottom: 12px; display: block; color: var(--text-primary); }
.info-card-title { font-size: 14px; font-weight: 700; color: var(--text-primary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.info-card-body { font-size: 14px; color: var(--text-secondary); line-height: 1.65; }

.check-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.check-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--text-secondary); line-height: 1.55;
}
.check-list li::before {
  content: '✓';
  width: 18px; height: 18px; min-width: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: bold; margin-top: 2px;
}
.check-green li::before  { background: rgba(5,150,105,0.12); color: var(--green); }
.check-blue li::before   { background: rgba(59,130,246,0.12); color: var(--blue); }
.check-purple li::before { background: rgba(139,92,246,0.12); color: var(--purple); }
.check-orange li::before { background: rgba(245,158,11,0.12); color: var(--orange); }
.check-pink li::before   { background: rgba(244,63,94,0.12); color: var(--pink); }
.check-teal li::before   { background: rgba(13,148,136,0.12); color: var(--teal); }

.wide-card { padding: 32px 28px; margin-bottom: 20px; }

.nutrition-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.nut-item { padding: 16px; text-align: center; border-radius: 12px; }
.nut-icon { font-size: 26px; margin-bottom: 8px; color: var(--text-primary); }
.nut-name { font-size: 12px; color: var(--text-secondary); margin-bottom: 4px; font-weight: 500; }
.nut-amount { font-size: 15px; font-weight: 700; }

.warning-card {
  padding: 20px 24px; border-radius: 14px;
  margin-bottom: 20px;
  display: flex; gap: 14px; align-items: flex-start;
}
.warning-icon { font-size: 24px; flex-shrink: 0; margin-top: 1px; }
.warning-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.warning-body { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

.sleep-bar-wrap { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.sleep-label { font-size: 13px; color: var(--text-secondary); min-width: 100px; font-weight: 500; }
.sleep-bar { flex: 1; height: 8px; border-radius: 4px; background: rgba(0,0,0,0.06); overflow: hidden; }
.sleep-fill { height: 100%; border-radius: 4px; transition: width 1.5s cubic-bezier(0.22,1,0.36,1); width: 0; }
.sleep-fill.animated { width: var(--w); }
.sleep-hours { font-size: 13px; font-weight: 600; min-width: 60px; text-align: right; }

.vaccine-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.vaccine-table th { text-align: left; padding: 10px 14px; color: var(--text-muted); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--border-light); }
.vaccine-table td { padding: 12px 14px; border-bottom: 1px solid rgba(0,0,0,0.05); color: var(--text-secondary); }
.vaccine-table tr:last-child td { border-bottom: none; }
.vax-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }

.section-divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border-light), transparent); margin: 20px 0; }

.sources-section { margin-top: 80px; padding-top: 48px; border-top: 1px solid var(--border-light); }
.sources-title { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.sources-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }
.source-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 20px; margin-bottom: 10px;
  border-radius: 14px;
  background: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.6);
  transition: all 0.3s;
}
.source-item:hover { background: rgba(255,255,255,0.7); box-shadow: 0 4px 10px rgba(0,0,0,0.03); transform: translateX(4px); }
.source-num { font-size: 12px; font-weight: 700; color: var(--green); min-width: 22px; }
.source-text { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.source-text strong { color: var(--text-primary); }
.source-year { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

.reveal { opacity:0; transform:translateY(40px); transition:all 0.75s cubic-bezier(0.22,1,0.36,1); }
.reveal.visible { opacity:1; transform:translateY(0); }

.c-green  { color: var(--green); }
.c-teal   { color: var(--teal); }
.c-purple { color: var(--purple); }
.c-orange { color: var(--orange); }
.c-pink   { color: var(--pink); }
.c-blue   { color: var(--blue); }

.bg-green  { background: rgba(48,209,88,0.1);  border-color: rgba(48,209,88,0.2); }
.bg-teal   { background: rgba(90,200,250,0.1);  border-color: rgba(90,200,250,0.2); }
.bg-purple { background: rgba(191,90,242,0.1);  border-color: rgba(191,90,242,0.2); }
.bg-orange { background: rgba(255,159,10,0.1);  border-color: rgba(255,159,10,0.2); }
.bg-pink   { background: rgba(255,55,95,0.1);   border-color: rgba(255,55,95,0.2); }
.bg-blue   { background: rgba(10,132,255,0.1);  border-color: rgba(10,132,255,0.2); }

footer {
  position: relative;
  z-index: 2;
  padding: 40px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  background: var(--surface);
}

.footer-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-logo i { color: var(--accent-main); }

.footer-links { display: flex; gap: 24px; }

.footer-link {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--accent-main); }

.footer-address {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.footer-address .address-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.footer-copy { font-size: 14px; color: var(--text-muted); }

.social-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 22px;
  transition: all 0.3s ease;
  text-decoration: none;
}
.social-circle:hover {
  background: var(--accent-main);
  color: white;
  border-color: var(--accent-main);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

@media (max-width: 1000px) {
  .sidebar { display: none; }
  .main-content { padding: 40px 24px 80px; }
}
@media (max-width: 680px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .info-grid, .info-grid.three, .nutrition-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  footer > div > div {
    align-items: flex-start !important;
    text-align: left;
  }
}
