/* ════════════════════════════════════════════════════════════
   Plague Tags - shared base styles (tokens, reset, nav, footer,
   particles, reveal). Page-specific CSS stays inline in each page.
   ════════════════════════════════════════════════════════════ */

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

:root {
  --void:#06020E; --void-2:#0D0820; --void-3:#130F28;
  --purple:#7C3AED; --purple-glow:#A855F7; --purple-pale:rgba(168,85,247,0.12);
  --acid:#8BC34A; --acid-dark:#6A9E32; --cyan:#06B6D4; --cyan-pale:rgba(6,182,212,0.12);
  --blue:#4F8EF7; --bio-orange:#F97316; --white:#FFFFFF;
  --text-body:#C5D6E8; --text-muted:#9CA3AF; --text-dim:#8C97A8;
  --border:rgba(168,85,247,0.18); --border-bright:rgba(168,85,247,0.45);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { font-family: 'Inter', system-ui, sans-serif; background: transparent; color: var(--white); font-size: 16px; line-height: 1.7; overflow-x: hidden; }
h1,h2,h3,h4 { font-family: 'Barlow Condensed', system-ui, sans-serif; text-transform: uppercase; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--acid); color: var(--void); font-family: 'Barlow Condensed', system-ui, sans-serif; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; padding: 10px 18px; border-radius: 8px; transition: top 0.2s; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; border-radius: 4px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.1s; } .reveal.d2 { transition-delay: 0.2s; } .reveal.d3 { transition-delay: 0.3s; } .reveal.d4 { transition-delay: 0.4s; }

.bg-particles { position: fixed; top: 0; left: 0; z-index: 1; width: 100%; height: 100vh; height: 100lvh; pointer-events: none; }
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--cyan), var(--acid)); box-shadow: 0 0 12px rgba(139,195,74,0.55); will-change: transform; }

/* ── NAV ── */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 72px; background: rgba(6,2,14,0.90); backdrop-filter: blur(18px); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 48px; transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, height 0.3s ease; }
nav.scrolled { height: 64px; background: rgba(6,2,14,0.97); border-bottom-color: var(--border-bright); box-shadow: 0 10px 36px rgba(0,0,0,0.45); }
nav.scrolled .nav-logo img { height: 52px; }
.nav-logo img { height: 64px; width: auto; filter: drop-shadow(0 0 12px rgba(139,195,74,0.45)); transition: height 0.3s ease; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--text-muted); letter-spacing: 0.03em; transition: color 0.2s; }
.nav-links a:hover { color: var(--white); }
.nav-links > a.current { color: var(--acid); }
.nav-links .nav-pill { font-family: 'Barlow Condensed', system-ui, sans-serif; font-size: 13px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; padding: 8px 18px; border-radius: 6px; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; background: linear-gradient(135deg, var(--acid) 0%, var(--acid-dark) 100%); color: var(--void) !important; box-shadow: 0 0 16px rgba(139,195,74,0.2); transition: box-shadow 0.2s, transform 0.2s !important; }
.nav-links .nav-pill:hover { box-shadow: 0 0 28px rgba(139,195,74,0.4); transform: translateY(-1px); }
.lang-toggle { font-family: 'Barlow Condensed', system-ui, sans-serif; font-size: 13px; font-weight: 900; letter-spacing: 0.08em; color: var(--text-muted); border: 1px solid var(--border-bright); border-radius: 6px; padding: 6px 12px; transition: color 0.2s, border-color 0.2s; }
.lang-toggle:hover { color: var(--white); border-color: var(--purple-glow); }
.mobile-drawer .lang-toggle { align-self: flex-start; margin-top: 20px; font-size: 15px; padding: 9px 18px; border-bottom: 0; }
.mobile-drawer .lang-toggle::after { content: none; }
.nav-collection { position: relative; }
.nav-caret { transition: transform 0.2s; }
.nav-pill[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }
.nav-dropdown { position: absolute; top: calc(100% + 12px); right: 0; min-width: 210px; background: rgba(13,8,32,0.98); backdrop-filter: blur(18px); border: 1px solid var(--border-bright); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 20px 44px rgba(0,0,0,0.5); opacity: 0; transform: translateY(-6px); pointer-events: none; visibility: hidden; transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s; z-index: 101; }
.nav-dropdown.open { opacity: 1; transform: translateY(0); pointer-events: auto; visibility: visible; transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s; }
.nav-dropdown a { font-size: 14px; font-weight: 500; color: var(--text-muted); padding: 11px 14px; border-radius: 8px; letter-spacing: 0.02em; transition: background 0.15s, color 0.15s; }
.nav-dropdown a.current { color: var(--acid); }
.nav-dropdown a:hover { background: var(--purple-pale); color: var(--white); }
.nav-hamburger { display: none; background: transparent; border: 0; cursor: pointer; width: 40px; height: 40px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: all 0.25s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-drawer { position: fixed; top: 72px; inset-inline: 0; bottom: 0; z-index: 99; background: rgba(6,2,14,0.97); backdrop-filter: blur(20px); padding: 32px 28px; display: flex; flex-direction: column; gap: 4px; opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.mobile-drawer.open { opacity: 1; pointer-events: auto; }
.mobile-drawer a { padding: 18px 0; font-size: 20px; font-weight: 500; color: var(--white); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.mobile-drawer a::after { content: '→'; color: var(--acid); opacity: 0.7; }
.mob-collapse { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--border); padding: 18px 0; font-family: 'Inter', system-ui, sans-serif; font-size: 20px; font-weight: 500; color: var(--white); display: flex; align-items: center; justify-content: space-between; cursor: pointer; letter-spacing: 0.01em; }
.mob-caret { stroke: var(--acid); transition: transform 0.25s; flex-shrink: 0; }
.mob-collapse[aria-expanded="true"] .mob-caret { transform: rotate(180deg); }
.mob-submenu { overflow: hidden; max-height: 0; visibility: hidden; transition: max-height 0.3s ease, visibility 0s linear 0.3s; }
.mob-submenu.open { max-height: 260px; visibility: visible; transition: max-height 0.3s ease, visibility 0s; }
.mob-submenu a { padding-left: 18px; font-size: 18px; color: var(--text-muted); }

/* ── Section heads + divider ── */
.section-eyebrow { font-family: 'Barlow Condensed', system-ui, sans-serif; font-size: 11px; font-weight: 800; letter-spacing: 0.32em; text-transform: uppercase; color: var(--cyan); display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.section-eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--cyan); display: block; }
.section-headline { font-size: clamp(30px, 4vw, 46px); font-weight: 900; line-height: 0.98; letter-spacing: -0.01em; margin-bottom: 16px; }
.section-headline span { color: var(--acid); }
.lab-divider { position: relative; width: min(1080px, calc(100% - 96px)); height: 1px; margin: 0 auto; background: linear-gradient(90deg, transparent, var(--border-bright), transparent); }
.lab-divider::before { content: ''; position: absolute; left: 50%; top: 50%; width: 260px; height: 70px; transform: translate(-50%, -50%); background: radial-gradient(ellipse at center, rgba(6,182,212,0.16), transparent 70%); pointer-events: none; }
.lab-divider::after { content: ''; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }

/* ── Buttons ── */
.btn-primary { font-family: 'Barlow Condensed', system-ui, sans-serif; font-size: 15px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; padding: 13px 24px; border-radius: 8px; display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, var(--acid) 0%, var(--acid-dark) 100%); color: var(--void); box-shadow: 0 0 24px rgba(139,195,74,0.28); transition: transform 0.2s, box-shadow 0.2s; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(139,195,74,0.48); }
.btn-ghost { font-family: 'Barlow Condensed', system-ui, sans-serif; font-size: 15px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 13px 24px; border-radius: 8px; display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--white); border: 1px solid var(--border-bright); transition: border-color 0.2s, color 0.2s; }
.btn-ghost:hover { border-color: var(--purple-glow); color: var(--purple-glow); }

/* ── FOOTER ── */
footer { background: transparent; border-top: 1px solid var(--border); padding: 60px 48px 28px; position: relative; z-index: 1; }
.footer-grid { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; padding-bottom: 44px; border-bottom: 1px solid var(--border); }
.footer-logo img { height: 52px; width: auto; filter: drop-shadow(0 0 8px rgba(139,195,74,0.3)); margin-bottom: 14px; }
.footer-tagline { font-size: 13px; color: var(--text-muted); line-height: 1.65; max-width: 270px; }
.footer-col-head { display: block; font-family: 'Barlow Condensed', system-ui, sans-serif; font-size: 11px; font-weight: 900; color: var(--white); letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col a { display: block; font-size: 14px; color: var(--text-muted); margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { max-width: 1080px; margin: 0 auto; padding-top: 22px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-copy, .footer-credit { font-size: 12px; color: var(--text-dim); }
.footer-credit a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 2px; }
.footer-credit a:hover { color: var(--white); }

/* ── Shared responsive (nav + footer) ── */
@media (max-width: 960px) {
  nav { padding: 0 24px; }
  .nav-links > a:not(.lang-toggle) { display: none; }
  .nav-links { margin-left: auto; margin-right: 14px; }
  .nav-hamburger { display: flex; }
  footer { padding: 60px 24px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 680px) {
  .nav-links .nav-collection { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
