/* ============================================================
   PRECISION LIVESTOCK FARMING HUB — DESIGN SYSTEM
   plfhub.com | © 2025 PLFHub Research Team
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Inter:ital,wght@0,300;0,400;0,500;0,600;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Background Palette */
  --bg-primary:   #090d16;    /* Deep slate black */
  --bg-surface:   #111827;    /* Slate dark gray */
  --bg-elevated:  #1f2937;    /* Slate medium gray */
  --bg-card:      #111827;
  --bg-glass:     rgba(17, 24, 39, 0.85);

  /* Accent Colors */
  --accent-cyan:        #3b82f6;    /* Clean Steel Blue */
  --accent-cyan-dim:    rgba(59, 130, 246, 0.08);
  --accent-cyan-glow:   rgba(59, 130, 246, 0.15);
  --accent-green:       #10b981;    /* Clean Emerald */
  --accent-green-dim:   rgba(16, 185, 129, 0.08);
  --accent-amber:       #f59e0b;    /* Muted Amber */
  --accent-amber-dim:   rgba(245, 158, 11, 0.08);
  --accent-purple:      #6366f1;    /* Indigo */
  --accent-purple-dim:  rgba(99, 102, 241, 0.08);
  --accent-red:         #ef4444;    /* Crimson */
  --accent-red-dim:     rgba(239, 68, 68, 0.08);

  /* Text */
  --text-primary:   #f8fafc;    /* Crisp off-white */
  --text-secondary: #94a3b8;    /* Muted blue-gray */
  --text-muted:     #64748b;    /* Soft gray */

  /* Borders */
  --border-subtle:  rgba(255, 255, 255, 0.06);
  --border-glass:   rgba(255, 255, 255, 0.08);
  --border-accent:  rgba(59, 130, 246, 0.25);

  /* Gradients */
  --gradient-brand:       linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  --gradient-purple-cyan: linear-gradient(135deg, #1d4ed8 0%, #60a5fa 100%);
  --gradient-amber-red:   linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  --gradient-hero-mesh:
    radial-gradient(ellipse 80% 80% at 10% 40%, rgba(59, 130, 246, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 90% 15%, rgba(16, 185, 129, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse 50% 50% at 50% 90%, rgba(99, 102, 241, 0.03) 0%, transparent 55%);

  /* Species Identity Colors */
  --species-poultry:   #f59e0b;
  --species-dairy:     #3b82f6;
  --species-beef:      #ef4444;
  --species-ruminants: #10b981;
  --species-cross:     #6366f1;
  --species-kb:        #818cf8;

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

  /* Type Scale */
  --text-xs:   0.7rem;
  --text-sm:   0.825rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  /* Spacing (8px system) */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* Radii */
  --radius-xs:   4px;
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-2xl:  32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:       0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md:       0 4px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg:       0 8px 40px rgba(0, 0, 0, 0.55);
  --shadow-glow:     0 0 40px rgba(59, 130, 246, 0.1);
  --shadow-glow-lg:  0 0 80px rgba(59, 130, 246, 0.15);

  /* Transitions */
  --ease-fast:   150ms cubic-bezier(0.4, 0, 0.2, 1);
  --ease-base:   250ms cubic-bezier(0.4, 0, 0.2, 1);
  --ease-slow:   400ms cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  --bg-nav: rgba(9, 13, 22, 0.88);
  --bg-nav-scrolled: rgba(9, 13, 22, 0.97);
  --shadow-nav: 0 4px 32px rgba(0, 0, 0, 0.45);
}

/* ============================================================
   LIGHT MODE THEME
   ============================================================ */
:root.light-mode, body.light-mode {
  --bg-primary:   #f8fafc;    /* Clean cool white */
  --bg-surface:   #ffffff;    /* Pure white */
  --bg-elevated:  #f1f5f9;    /* Light slate gray */
  --bg-card:      #ffffff;
  --bg-glass:     rgba(255, 255, 255, 0.85);

  --accent-cyan:        #2563eb;    /* Royal Blue */
  --accent-cyan-dim:    rgba(37, 99, 235, 0.06);
  --accent-cyan-glow:   rgba(37, 99, 235, 0.1);
  --accent-green:       #059669;    /* Emerald */
  --accent-green-dim:   rgba(5, 150, 105, 0.06);
  --accent-amber:       #d97706;    /* Amber */
  --accent-amber-dim:   rgba(217, 119, 6, 0.06);
  --accent-purple:      #4f46e5;    /* Indigo */
  --accent-purple-dim:  rgba(79, 70, 229, 0.06);
  --accent-red:         #dc2626;    /* Crimson */
  --accent-red-dim:     rgba(220, 38, 38, 0.06);

  --text-primary:   #0f172a;    /* Slate black */
  --text-secondary: #475569;    /* slate gray */
  --text-muted:     #64748b;    /* Cool gray */

  --border-subtle:  rgba(15, 23, 42, 0.06);
  --border-glass:   rgba(15, 23, 42, 0.08);
  --border-accent:  rgba(37, 99, 235, 0.2);

  --shadow-sm:       0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md:       0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg:       0 8px 40px rgba(0, 0, 0, 0.1);
  --shadow-glow:     0 0 40px rgba(37, 99, 235, 0.05);
  --shadow-glow-lg:  0 0 80px rgba(37, 99, 235, 0.08);

  --gradient-brand:       linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  --gradient-purple-cyan: linear-gradient(135deg, #4f46e5 0%, #2563eb 100%);
  --gradient-amber-red:   linear-gradient(135deg, #d97706 0%, #dc2626 100%);
  --gradient-hero-mesh:
    radial-gradient(ellipse 80% 80% at 10% 40%, rgba(37, 99, 235, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 90% 15%, rgba(5, 150, 105, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse 50% 50% at 50% 90%, rgba(79, 70, 229, 0.03) 0%, transparent 55%);

  --bg-nav: rgba(255, 255, 255, 0.88);
  --bg-nav-scrolled: rgba(255, 255, 255, 0.97);
  --shadow-nav: 0 4px 32px rgba(0, 0, 0, 0.05);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background-color var(--ease-base), color var(--ease-base);
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-surface); }
::-webkit-scrollbar-thumb { background: rgba(0,200,255,0.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,200,255,0.45); }

/* Selection */
::selection { background: rgba(0, 200, 255, 0.2); color: var(--text-primary); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
  line-height: 1.75;
  color: var(--text-secondary);
  font-size: var(--text-base);
}

p + p { margin-top: var(--sp-4); }

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color var(--ease-fast);
}
a:hover { color: var(--accent-green); }

strong { font-weight: 600; color: var(--text-primary); }
em { color: var(--text-secondary); }

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--bg-elevated);
  color: var(--accent-cyan);
  padding: 0.15em 0.45em;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
}

pre {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--sp-6);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

blockquote {
  border-left: 3px solid var(--accent-cyan);
  padding: var(--sp-4) var(--sp-6);
  background: var(--accent-cyan-dim);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--text-secondary);
  font-style: italic;
}

ul, ol {
  padding-left: 1.5rem;
}
li {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--sp-2);
}

img { max-width: 100%; height: auto; display: block; }

table {
  width: 100%;
  border-collapse: collapse;
}

hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
  margin: var(--sp-8) 0;
}

/* Text utilities */
.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-purple {
  background: var(--gradient-purple-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-amber {
  background: var(--gradient-amber-red);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-primary   { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted     { color: var(--text-muted) !important; }
.text-cyan      { color: var(--accent-cyan) !important; }
.text-green     { color: var(--accent-green) !important; }
.text-amber     { color: var(--accent-amber) !important; }
.text-center    { text-align: center; }
.text-left      { text-align: left; }
.text-sm        { font-size: var(--text-sm); }
.text-xs        { font-size: var(--text-xs); }
.font-mono      { font-family: var(--font-mono); }
.font-heading   { font-family: var(--font-heading); }
.font-medium    { font-weight: 500; }
.font-semibold  { font-weight: 600; }
.font-bold      { font-weight: 700; }
.tracking-wide  { letter-spacing: 0.06em; }
.tracking-wider { letter-spacing: 0.1em; }
.uppercase      { text-transform: uppercase; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--sp-6);
  padding-right: var(--sp-6);
}
.container--narrow { max-width: var(--container-narrow); }
.container--xs     { max-width: var(--container-xs); }

.section        { padding: var(--sp-24) 0; }
.section--sm    { padding: var(--sp-16) 0; }
.section--lg    { padding: calc(var(--sp-24) * 1.4) 0; }
.section--flush { padding: 0; }

/* Grid system */
.grid   { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-auto-sm { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-auto-md { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.grid-auto-lg { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
.gap-3  { gap: var(--sp-3); }
.gap-4  { gap: var(--sp-4); }
.gap-5  { gap: var(--sp-5); }
.gap-6  { gap: var(--sp-6); }
.gap-8  { gap: var(--sp-8); }
.gap-10 { gap: var(--sp-10); }
.gap-12 { gap: var(--sp-12); }

/* Flex utilities */
.flex          { display: flex; }
.flex-col      { flex-direction: column; }
.flex-wrap     { flex-wrap: wrap; }
.items-start   { align-items: flex-start; }
.items-center  { align-items: center; }
.items-end     { align-items: flex-end; }
.justify-start   { justify-content: flex-start; }
.justify-center  { justify-content: center; }
.justify-end     { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around  { justify-content: space-around; }
.flex-1        { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }

/* Spacing utilities */
.mt-auto { margin-top: auto; }
.mb-0    { margin-bottom: 0; }
.mt-4    { margin-top: var(--sp-4); }
.mt-6    { margin-top: var(--sp-6); }
.mt-8    { margin-top: var(--sp-8); }
.mb-4    { margin-bottom: var(--sp-4); }
.mb-6    { margin-bottom: var(--sp-6); }
.mb-8    { margin-bottom: var(--sp-8); }

/* Width/Height */
.w-full   { width: 100%; }
.h-full   { height: 100%; }
.min-h-screen { min-height: 100vh; }

/* Display */
.hidden     { display: none !important; }
.block      { display: block; }
.inline     { display: inline; }
.inline-flex { display: inline-flex; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: var(--bg-nav);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--ease-base), box-shadow var(--ease-base);
}
.site-nav.scrolled {
  background: var(--bg-nav-scrolled);
  box-shadow: var(--shadow-nav);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-6);
  gap: var(--sp-6);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo__mark {
  width: 38px; height: 38px;
  background: var(--gradient-brand);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: #07090f;
  letter-spacing: -0.04em;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.nav-logo__mark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 60%);
}
.nav-logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-logo__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.nav-logo__domain {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--accent-cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  list-style: none;
  flex: 1;
  justify-content: center;
}
.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: var(--sp-2) var(--sp-3);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--ease-fast);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  border: none;
  background: none;
  font-family: var(--font-body);
}
.nav-link svg { width: 12px; height: 12px; transition: transform var(--ease-fast); opacity: 0.7; }
.nav-link:hover, .nav-link:hover svg { color: var(--text-primary); }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }
.nav-link--active { color: var(--text-primary); background: var(--border-subtle); }

/* Mega menu */
.mega-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--bg-elevated);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: var(--sp-5);
  min-width: 620px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--ease-base);
  pointer-events: none;
}
.mega-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px; height: 6px;
  background: var(--bg-elevated);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}
.mega-menu::after {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  width: 100%;
  height: 15px;
  background: transparent;
}
.nav-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}
.mega-menu__header {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 var(--sp-2) var(--sp-4);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--sp-4);
}
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); }
.mega-grid--2 { grid-template-columns: repeat(2, 1fr); }
.mega-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-3);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background var(--ease-fast);
}
.mega-item:hover { background: var(--border-subtle); }
.mega-item__icon {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.mega-item__body {}
.mega-item__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text-primary);
  margin-bottom: 2px;
  line-height: 1.3;
}
.mega-item:hover .mega-item__title { color: var(--accent-cyan); }
.mega-item__desc {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Nav CTA */
.nav-actions { display: flex; align-items: center; gap: var(--sp-3); flex-shrink: 0; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 9px var(--sp-5);
  background: var(--gradient-brand);
  color: #07090f;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  transition: opacity var(--ease-fast), transform var(--ease-fast), box-shadow var(--ease-fast);
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0, 200, 255, 0.3); color: #07090f; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-primary);
  transition: all var(--ease-fast);
}
.nav-toggle:hover { border-color: var(--border-accent); }
.nav-toggle svg { width: 18px; height: 18px; }

/* Theme Toggle Button */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--ease-fast);
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
}
.theme-toggle svg {
  color: currentColor;
  transition: transform var(--ease-base);
}
.theme-toggle:hover svg {
  transform: rotate(20deg);
}
.light-mode .theme-icon-sun { display: none; }
:not(.light-mode) .theme-icon-moon { display: none; }

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 998;
  background: var(--bg-primary);
  flex-direction: column;
  overflow-y: auto;
  padding-top: var(--nav-height);
}
.mobile-nav.open { display: flex; }
.mobile-nav__inner { padding: var(--sp-6); }
.mobile-nav__section { margin-bottom: var(--sp-6); }
.mobile-nav__section-title {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--sp-2) var(--sp-4);
}
.mobile-nav__link {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--ease-fast);
  border-bottom: 1px solid var(--border-subtle);
}
.mobile-nav__link:last-child { border-bottom: none; }
.mobile-nav__link:hover { color: var(--accent-cyan); background: var(--accent-cyan-dim); }
.mobile-nav__icon { width: 28px; height: 28px; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all var(--ease-base);
  text-decoration: none;
  border: none;
  white-space: nowrap;
  line-height: 1;
}
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.btn--sm { padding: var(--sp-2) var(--sp-4); font-size: var(--text-xs); }
.btn--lg { padding: var(--sp-4) var(--sp-8); font-size: var(--text-base); }

.btn-primary {
  background: var(--gradient-brand);
  color: #07090f;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 200, 255, 0.35);
  color: #07090f;
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}
.btn-secondary:hover {
  border-color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
  transform: translateY(-2px);
  color: var(--accent-cyan);
}

.btn-ghost {
  background: transparent;
  color: var(--accent-cyan);
  padding: var(--sp-2) var(--sp-4);
}
.btn-ghost:hover { background: var(--accent-cyan-dim); color: var(--accent-cyan); }

.btn-amber {
  background: var(--gradient-amber-red);
  color: #07090f;
}
.btn-amber:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(245, 166, 35, 0.35); color: #07090f; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  transition: all var(--ease-base);
  position: relative;
  overflow: hidden;
}
.card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity var(--ease-base);
}
.card:hover::before { opacity: 1; }

.card--glass {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.card--elevated { background: var(--bg-elevated); }
.card--featured {
  border-color: var(--border-accent);
  background: linear-gradient(145deg, var(--bg-elevated) 0%, rgba(0, 200, 255, 0.04) 100%);
}
.card--featured::before { opacity: 1; }

.card--no-hover:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border-subtle);
}
.card--no-hover::before { display: none; }

/* Article card */
.article-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  height: 100%;
  text-decoration: none;
}
.article-card__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.article-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  transition: color var(--ease-fast);
}
.card:hover .article-card__title { color: var(--accent-cyan); }
.article-card__excerpt {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
}
.article-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border-subtle);
}
.article-card__cta {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent-cyan);
  transition: gap var(--ease-fast);
}
.card:hover .article-card__cta { gap: var(--sp-3); }
.article-card__cta svg { width: 14px; height: 14px; }

/* Species card */
.species-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-8);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--ease-base);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.species-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--species-color, var(--gradient-brand));
  opacity: 0;
  transition: opacity var(--ease-base);
}
.species-card:hover {
  border-color: var(--species-color, var(--border-accent));
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.species-card:hover::after { opacity: 1; }
.species-card__icon {
  font-size: 2rem;
  width: 58px; height: 58px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: transform var(--ease-spring);
}
.species-card:hover .species-card__icon { transform: scale(1.1); }
.species-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
}
.species-card__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}
.species-card__count {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.species-card__arrow {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--species-color, var(--accent-cyan));
  transition: gap var(--ease-fast);
}
.species-card:hover .species-card__arrow { gap: var(--sp-3); }

/* Species color variants */
.species-card--poultry   { --species-color: var(--species-poultry); }
.species-card--dairy     { --species-color: var(--species-dairy); }
.species-card--beef      { --species-color: var(--species-beef); }
.species-card--ruminants { --species-color: var(--species-ruminants); }
.species-card--cross     { --species-color: var(--species-cross); }
.species-card--kb        { --species-color: var(--species-kb); }

/* Knowledge Base card */
.kb-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-6);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all var(--ease-base);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.kb-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.kb-card__stripe {
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity var(--ease-base);
}
.kb-card:hover .kb-card__stripe { opacity: 1; }
.kb-card__num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.06em;
}
.kb-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  transition: color var(--ease-fast);
  line-height: 1.35;
}
.kb-card:hover .kb-card__title { color: var(--accent-cyan); }
.kb-card__summary {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}
.kb-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: auto;
}
.kb-card__tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  background: var(--bg-surface);
  padding: 0.2em 0.55em;
  border-radius: var(--radius-xs);
  letter-spacing: 0.03em;
  border: 1px solid var(--border-subtle);
}

/* ============================================================
   BADGES & TAGS
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 3px var(--sp-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.5;
}
.badge--poultry   { background: rgba(245,166,35,0.13);   color: var(--species-poultry);   border: 1px solid rgba(245,166,35,0.25); }
.badge--dairy     { background: rgba(0,200,255,0.13);    color: var(--species-dairy);     border: 1px solid rgba(0,200,255,0.25); }
.badge--beef      { background: rgba(255,107,107,0.13);  color: var(--species-beef);      border: 1px solid rgba(255,107,107,0.25); }
.badge--ruminants { background: rgba(0,229,160,0.13);    color: var(--species-ruminants); border: 1px solid rgba(0,229,160,0.25); }
.badge--cross     { background: rgba(124,92,252,0.13);   color: var(--species-cross);     border: 1px solid rgba(124,92,252,0.25); }
.badge--kb        { background: rgba(167,139,250,0.13);  color: var(--species-kb);        border: 1px solid rgba(167,139,250,0.25); }
.badge--research  { background: var(--accent-cyan-dim);  color: var(--accent-cyan);       border: 1px solid var(--border-accent); }
.badge--new       { background: var(--accent-green-dim); color: var(--accent-green);      border: 1px solid rgba(0,229,160,0.3); }

.reading-time {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header { text-align: center; margin-bottom: var(--sp-12); }
.section-header--left { text-align: left; }
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: var(--sp-3);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.section-header--left .section-eyebrow { justify-content: flex-start; }
.section-header .section-eyebrow { justify-content: center; }
.section-eyebrow::before, .section-eyebrow::after {
  content: '';
  flex: 1;
  max-width: 40px;
  height: 1px;
  background: var(--border-accent);
  opacity: 0.6;
}
.section-header--left .section-eyebrow::before { display: none; }
.section-header--left .section-eyebrow::after { display: none; }
.section-title { margin-bottom: var(--sp-4); }
.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.65;
}
.section-header--left .section-subtitle { margin: 0; }

/* ============================================================
   HERO (HOMEPAGE)
   ============================================================ */
.site-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--nav-height) var(--sp-6) var(--sp-20);
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero-mesh);
}
.site-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%2300c8ff' fill-opacity='0.018'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}
.hero-content {}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: var(--accent-cyan-dim);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: var(--sp-6);
}
.hero-eyebrow__dot {
  width: 6px; height: 6px;
  background: var(--accent-cyan);
  border-radius: 50%;
  animation: blink 2.5s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: var(--sp-6);
}
.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--sp-8);
  max-width: 540px;
}
.hero-actions {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: var(--sp-10);
}
.hero-stats {
  display: flex;
  gap: var(--sp-8);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}
.hero-stat__value {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--sp-1);
}
.hero-stat__label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Hero visual */
.hero-visual {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual__orb {
  position: absolute;
  width: 390px; height: 320px;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.25) 100%), url('../images/hero_telemetry.png');
  background-size: cover;
  background-position: center;
  animation: float 10s ease-in-out infinite;
  border: 1px solid var(--border-accent);
  box-shadow: var(--shadow-lg);
  opacity: 0.95;
  transition: opacity var(--ease-base), border var(--ease-base), box-shadow var(--ease-base);
}
.hero-visual__orb:hover {
  opacity: 1;
  border-color: var(--accent-cyan);
}
.hero-visual__card {
  position: absolute;
  background: var(--bg-elevated);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: var(--sp-4) var(--sp-5);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  min-width: 180px;
}
.hero-visual__card--1 { top: 15%; left: 5%; animation: float 7s ease-in-out infinite; }
.hero-visual__card--2 { top: 10%; right: 8%; animation: float 9s ease-in-out infinite 1.5s; }
.hero-visual__card--3 { bottom: 20%; left: 2%; animation: float 6s ease-in-out infinite 0.8s; }
.hero-visual__card--4 { bottom: 15%; right: 5%; animation: float 8s ease-in-out infinite 2s; }
.hvc-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
}
.hvc-value {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.hvc-bar { height: 3px; background: var(--bg-surface); border-radius: 2px; margin-top: var(--sp-2); overflow: hidden; }
.hvc-bar-fill { height: 100%; background: var(--gradient-brand); border-radius: 2px; }
.hvc-indicator {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-top: var(--sp-2);
}
.hvc-dot { width: 6px; height: 6px; border-radius: 50%; }
.hvc-dot--green { background: var(--accent-green); }
.hvc-dot--cyan  { background: var(--accent-cyan); }
.hvc-dot--amber { background: var(--accent-amber); }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  padding: calc(var(--nav-height) + var(--sp-16)) var(--sp-6) var(--sp-16);
  background: var(--gradient-hero-mesh);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}
.page-hero__inner { max-width: var(--container-max); margin: 0 auto; }
.page-hero__breadcrumb { margin-bottom: var(--sp-6); }
.page-hero__eyebrow { margin-bottom: var(--sp-4); }
.page-hero__title { margin-bottom: var(--sp-5); max-width: 800px; }
.page-hero__subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 700px;
  line-height: 1.65;
  margin-bottom: var(--sp-8);
}
.page-hero__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  flex-wrap: wrap;
}

/* ============================================================
   ARTICLE LAYOUT
   ============================================================ */
.article-wrap {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--sp-12) var(--sp-6);
}
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--sp-12);
  align-items: start;
}
.article-body { min-width: 0; }
.article-body h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  margin: var(--sp-10) 0 var(--sp-5);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border-subtle);
}
.article-body h3 { font-size: var(--text-xl); margin: var(--sp-8) 0 var(--sp-4); }
.article-body h4 { font-size: var(--text-lg); margin: var(--sp-6) 0 var(--sp-3); }
.article-body p  { margin-bottom: var(--sp-5); }
.article-body ul, .article-body ol { margin-bottom: var(--sp-5); }
.article-body li { margin-bottom: var(--sp-2); }
.article-body .card { margin: var(--sp-8) 0; }
.article-sidebar { position: sticky; top: calc(var(--nav-height) + var(--sp-6)); }

/* ============================================================
   TABLE OF CONTENTS
   ============================================================ */
.toc {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  margin-bottom: var(--sp-6);
}
.toc__title {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border-subtle);
}
.toc__list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--sp-1); }
.toc__link {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-xs);
  display: block;
  border-left: 2px solid transparent;
  transition: all var(--ease-fast);
  line-height: 1.4;
}
.toc__link:hover, .toc__link.active {
  color: var(--accent-cyan);
  border-left-color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
}
.toc__link--sub { padding-left: var(--sp-6); font-size: var(--text-xs); }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  list-style: none;
  padding: 0;
  flex-wrap: wrap;
}
.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.breadcrumb__item a { color: var(--text-secondary); }
.breadcrumb__item a:hover { color: var(--accent-cyan); }
.breadcrumb__item:last-child { color: var(--text-primary); }
.breadcrumb__sep { color: var(--text-muted); font-size: 0.65rem; }

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--ease-fast);
}
.faq-item.open { border-color: var(--border-accent); }
.faq-question {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: var(--sp-5) var(--sp-6);
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--text-primary);
  gap: var(--sp-4);
  user-select: none;
}
.faq-question:hover { color: var(--accent-cyan); }
.faq-icon {
  width: 22px; height: 22px;
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
  transition: transform var(--ease-base), background var(--ease-base);
  margin-top: 2px;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--accent-cyan-dim); }
.faq-icon svg { width: 12px; height: 12px; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-answer__inner {
  padding: 0 var(--sp-6) var(--sp-5);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.75;
}
.faq-arrow {
  width: 16px;
  height: 16px;
  color: var(--accent-cyan);
  transition: transform var(--ease-base);
  flex-shrink: 0;
  align-self: center;
}
.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

/* ============================================================
   CITATION BLOCK
   ============================================================ */
.citation-block {
  border-left: 3px solid var(--accent-cyan);
  padding: var(--sp-4) var(--sp-6);
  background: var(--accent-cyan-dim);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: var(--sp-6) 0;
}
.citation-block__source {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent-cyan);
  letter-spacing: 0.06em;
  margin-bottom: var(--sp-2);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.citation-block__source svg { width: 12px; height: 12px; }
.citation-block__text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.65;
}

/* Research badge */
.research-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: linear-gradient(135deg, rgba(0,200,255,0.08), rgba(0,229,160,0.08));
  border: 1px solid rgba(0, 200, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: var(--accent-cyan);
  font-weight: 500;
}
.research-badge svg { width: 13px; height: 13px; color: var(--accent-green); }

/* ============================================================
   AUTHOR BLOCK
   ============================================================ */
.author-block {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}
.author-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-lg);
  color: #07090f;
  flex-shrink: 0;
}
.author-info__name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--text-primary);
  margin-bottom: var(--sp-1);
}
.author-info__role { font-size: var(--text-sm); color: var(--text-secondary); margin-bottom: var(--sp-2); }
.author-info__verified {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
  padding: 0.2em 0.6em;
  border-radius: var(--radius-xs);
  letter-spacing: 0.04em;
}

/* ============================================================
   METRICS & STATS
   ============================================================ */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--sp-4);
}
.metric-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  text-align: center;
  transition: all var(--ease-base);
}
.metric-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
}
.metric-card__value {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--sp-2);
}
.metric-card__label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.4;
}
.metric-card__sub {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--sp-1);
}

/* Progress bar */
.progress-bar {
  height: 4px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: var(--sp-2);
}
.progress-bar__fill {
  height: 100%;
  background: var(--gradient-brand);
  border-radius: var(--radius-full);
  transition: width 1.2s ease;
  width: 0;
}

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.table-wrap {
  overflow-x: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}
.comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  white-space: nowrap;
}
.comp-table th {
  background: var(--bg-elevated);
  padding: var(--sp-3) var(--sp-5);
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-muted);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border-subtle);
}
.comp-table td {
  padding: var(--sp-3) var(--sp-5);
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}
.comp-table tbody tr:last-child td { border-bottom: none; }
.comp-table tbody tr:hover td { background: rgba(255,255,255,0.015); }
.comp-table td:first-child { font-weight: 500; color: var(--text-primary); }
.chk-yes     { color: var(--accent-green); font-weight: 600; }
.chk-partial { color: var(--accent-amber); }
.chk-no      { color: var(--text-muted); }

/* ============================================================
   HIGHLIGHT BOXES
   ============================================================ */
.highlight-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
}
.highlight-box--cyan   { background: var(--accent-cyan-dim);   border-color: var(--border-accent); }
.highlight-box--green  { background: var(--accent-green-dim);  border-color: rgba(0,229,160,0.25); }
.highlight-box--amber  { background: var(--accent-amber-dim);  border-color: rgba(245,166,35,0.25); }
.highlight-box--purple { background: var(--accent-purple-dim); border-color: rgba(124,92,252,0.25); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: var(--sp-16) 0 var(--sp-8);
  margin-top: var(--sp-24);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1fr;
  gap: var(--sp-12);
  margin-bottom: var(--sp-12);
}
.footer-brand { display: flex; flex-direction: column; gap: var(--sp-4); }
.footer-tagline {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 300px;
}
.footer-col-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-xs);
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-4);
}
.footer-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.footer-links a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color var(--ease-fast);
}
.footer-links a:hover { color: var(--accent-cyan); }
.footer-bottom {
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
}
.footer-copyright { font-size: var(--text-xs); color: var(--text-muted); }
.footer-legal {
  display: flex;
  gap: var(--sp-4);
}
.footer-legal a { font-size: var(--text-xs); color: var(--text-muted); }
.footer-legal a:hover { color: var(--accent-cyan); }
.footer-social { display: flex; gap: var(--sp-3); }
.footer-social a {
  width: 34px; height: 34px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--ease-fast);
  font-size: 0.875rem;
}
.footer-social a:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); background: var(--accent-cyan-dim); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 200, 255, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(0, 200, 255, 0); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll-triggered animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }
.reveal-delay-6 { transition-delay: 0.48s; }

/* Hover glow */
.glow-hover:hover { box-shadow: var(--shadow-glow); }

/* Dividers */
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border-subtle), transparent); margin: var(--sp-8) 0; }
.divider--accent { background: linear-gradient(90deg, transparent, rgba(0,200,255,0.3), transparent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-height: 64px; }
  .nav-links  { display: none; }
  .nav-cta    { display: none; }
  .nav-toggle { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-stats { gap: var(--sp-5); }
  .section { padding: var(--sp-16) 0; }
  .section--lg { padding: var(--sp-20) 0; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .container { padding-left: var(--sp-4); padding-right: var(--sp-4); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .metrics-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-nav, .site-footer, .mobile-nav { display: none !important; }
  body { background: white; color: black; }
}
