/* ============================================
   加拿大28数据实验室 - 数学极客实验室风格
   主色调: 实验室白 #f8f9fa | 数据蓝 #0984e3 | 荧光绿 #00b894 | 石墨灰 #2d3436
   ============================================ */

/* === Google Fonts Import === */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;500;700&family=Source+Sans+3:wght@300;400;600;700&display=swap');

/* === CSS Variables === */
:root {
  --lab-white: #f8f9fa;
  --data-blue: #0984e3;
  --neon-green: #00b894;
  --graphite: #2d3436;
  --dark-blue: #0652a1;
  --light-blue: #dfe6e9;
  --card-bg: rgba(255, 255, 255, 0.85);
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(9, 132, 227, 0.2);
  --shadow-sm: 0 2px 8px rgba(45, 52, 54, 0.08);
  --shadow-md: 0 4px 20px rgba(45, 52, 54, 0.12);
  --shadow-lg: 0 8px 40px rgba(45, 52, 54, 0.16);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --grid-gap: 20px;
  --font-mono: 'Roboto Mono', monospace;
  --font-sans: 'Source Sans 3', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--lab-white);
  color: var(--graphite);
  line-height: 1.7;
  overflow-x: hidden;
  background-image:
    linear-gradient(rgba(9,132,227,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9,132,227,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* === Jammer Block (SEO干扰标签 - 不可见) === */
.jammer-block {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-mono);
  color: var(--graphite);
  line-height: 1.3;
  margin-bottom: 0.5em;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1em; }

a {
  color: var(--data-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover { color: var(--neon-green); }

/* === Container === */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === Header / Navigation === */
.site-header {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  padding: 12px 0;
  /* 非sticky导航 */
  position: relative;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo img {
  height: 45px;
  width: auto;
}

.main-nav { display: flex; align-items: center; }

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 6px;
}

.main-nav a {
  display: block;
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--graphite);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--data-blue);
  color: #fff;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--data-blue);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  cursor: pointer;
  font-size: 1.4rem;
  color: var(--data-blue);
}

/* === Breadcrumb === */
.breadcrumb {
  padding: 12px 0;
  font-size: 0.85rem;
  color: #636e72;
}

.breadcrumb a { color: var(--data-blue); }
.breadcrumb span { margin: 0 6px; color: #b2bec3; }

/* === Section Titles === */
.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 1.8rem;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--data-blue), var(--neon-green));
  border-radius: 2px;
}

.section-title h2 span { color: var(--data-blue); }

.section-title p {
  color: #636e72;
  margin-top: 10px;
  font-size: 1rem;
}

/* === Hero Module === */
.hero-section {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--graphite);
}

.hero-section .hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.hero-video-container {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

.hero-video-container img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(45,52,54,0.85), rgba(9,132,227,0.4));
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 20px;
}

.hero-content h1 {
  font-size: 3rem;
  font-family: var(--font-mono);
  color: #fff;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(9,132,227,0.5);
}

.hero-content p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* === CTA Button with Pulse === */
.btn-cta {
  display: inline-block;
  padding: 14px 36px;
  background: var(--data-blue);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: visible;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(9,132,227,0.4);
  color: #fff;
}

.btn-cta::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 100%; height: 100%;
  border-radius: var(--radius-md);
  border: 2px solid var(--data-blue);
  transform: translate(-50%, -50%);
  animation: pulse-glow 2s ease-out infinite;
  pointer-events: none;
}

@keyframes pulse-glow {
  0% { width: 100%; height: 100%; opacity: 1; }
  100% { width: 140%; height: 160%; opacity: 0; }
}

.btn-cta-green {
  background: var(--neon-green);
}
.btn-cta-green::before { border-color: var(--neon-green); }

/* === Dashboard Grid Layout === */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--grid-gap);
  padding: 40px 0;
}

.dashboard-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* === Data Module Card (Glassmorphism) === */
.data-module {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.data-module:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.data-module::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--data-blue), var(--neon-green));
}

.data-module h3 {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  margin-bottom: 14px;
  color: var(--data-blue);
}

.data-module img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 12px 0;
}

/* === White Paper Section === */
.whitepaper-section {
  padding: 60px 0;
  background: #fff;
  border-top: 1px solid var(--light-blue);
  border-bottom: 1px solid var(--light-blue);
}

.whitepaper-content {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  padding: 40px;
  border: 1px solid var(--light-blue);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  background-image:
    linear-gradient(rgba(9,132,227,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9,132,227,0.02) 1px, transparent 1px);
  background-size: 20px 20px;
}

.whitepaper-content h3 {
  color: var(--data-blue);
  border-left: 4px solid var(--neon-green);
  padding-left: 14px;
  margin-top: 30px;
  margin-bottom: 14px;
}

.whitepaper-content .abstract {
  background: rgba(9,132,227,0.05);
  border-left: 4px solid var(--data-blue);
  padding: 16px 20px;
  margin: 20px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}

/* === Calculator Module === */
.calculator-section {
  padding: 60px 0;
}

.calculator-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
}

.calc-input, .calc-output {
  padding: 20px;
}

.calc-input h3, .calc-output h3 {
  font-family: var(--font-mono);
  margin-bottom: 20px;
}

.calc-input h3 { color: var(--graphite); }
.calc-output h3 { color: var(--data-blue); }

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: #636e72;
}

.form-group select,
.form-group input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--light-blue);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  background: #fff;
  transition: border-color 0.3s ease;
}

.form-group select:focus,
.form-group input:focus {
  outline: none;
  border-color: var(--data-blue);
}

.result-card {
  background: rgba(9,132,227,0.05);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 14px;
  border-left: 3px solid var(--neon-green);
}

.result-card .label {
  font-size: 0.85rem;
  color: #636e72;
  margin-bottom: 4px;
}

.result-card .value {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--neon-green);
}

/* === Data Table Module === */
.data-table-section {
  padding: 60px 0;
}

.table-controls {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.table-controls input,
.table-controls select {
  padding: 8px 14px;
  border: 2px solid var(--light-blue);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.btn-export {
  padding: 8px 20px;
  background: var(--neon-green);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-export:hover { background: #00a381; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.data-table thead {
  background: var(--data-blue);
  color: #fff;
}

.data-table th,
.data-table td {
  padding: 10px 14px;
  text-align: center;
  border-bottom: 1px solid var(--light-blue);
}

.data-table tbody tr:nth-child(even) {
  background: rgba(9,132,227,0.03);
}

.data-table tbody tr:hover {
  background: rgba(9,132,227,0.08);
}

.tag-big { color: #d63031; font-weight: 700; }
.tag-small { color: var(--data-blue); font-weight: 700; }
.tag-odd { color: #6c5ce7; font-weight: 700; }
.tag-even { color: var(--neon-green); font-weight: 700; }

/* === Chart Tabs === */
.chart-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--light-blue);
  padding-bottom: 0;
}

.chart-tab {
  padding: 10px 20px;
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: #636e72;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.3s ease;
}

.chart-tab:hover,
.chart-tab.active {
  color: var(--data-blue);
  border-bottom-color: var(--data-blue);
}

.chart-panel {
  display: none;
  animation: fadeIn 0.4s ease;
}

.chart-panel.active { display: block; }

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

/* === Article Cards === */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
  padding: 20px 0;
}

.article-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.article-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-card-body {
  padding: 20px;
}

.article-card-body h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  line-height: 1.4;
}

.article-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: #636e72;
  margin-bottom: 10px;
}

.article-card-body p {
  font-size: 0.9rem;
  color: #636e72;
  line-height: 1.6;
}

/* === Registration Module === */
.register-section {
  padding: 60px 0;
  background: linear-gradient(135deg, rgba(9,132,227,0.05), rgba(0,184,148,0.05));
}

.register-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.register-form-wrapper h3 {
  text-align: center;
  color: var(--data-blue);
  margin-bottom: 8px;
}

.register-form-wrapper .subtitle {
  text-align: center;
  color: #636e72;
  margin-bottom: 30px;
}

.bonus-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--neon-green), #00a381);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* === Responsible Gaming === */
.responsible-section {
  padding: 60px 0;
  background: #fff;
}

.responsible-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.responsible-content .age-badge {
  width: 80px;
  height: auto;
  margin-bottom: 20px;
}

.responsible-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
  text-align: left;
}

.responsible-item {
  background: rgba(9,132,227,0.03);
  padding: 20px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--data-blue);
}

/* === License Module === */
.license-section {
  padding: 60px 0;
  background: var(--graphite);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.license-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image:
    linear-gradient(rgba(9,132,227,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9,132,227,0.1) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

.license-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.license-content img {
  max-width: 250px;
  margin-bottom: 20px;
}

.license-content p {
  max-width: 700px;
  margin: 0 auto;
  color: rgba(255,255,255,0.8);
  line-height: 1.8;
}

/* === FAQ Module === */
.faq-section {
  padding: 60px 0;
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 18px 24px;
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--graphite);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: rgba(9,132,227,0.05);
}

.faq-question::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--data-blue);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  content: '−';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 24px 20px;
}

.faq-answer p {
  color: #636e72;
  line-height: 1.8;
}

/* === Researcher Notes === */
.researcher-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 20px;
}

.researcher-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.researcher-info h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.researcher-info .title {
  font-size: 0.85rem;
  color: var(--data-blue);
  margin-bottom: 10px;
}

.researcher-info p {
  font-size: 0.9rem;
  color: #636e72;
}

/* === Footer === */
.site-footer {
  background: var(--graphite);
  color: rgba(255,255,255,0.7);
  padding: 50px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #fff;
  font-family: var(--font-mono);
  font-size: 1rem;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--data-blue);
  display: inline-block;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--neon-green);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.footer-social img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.footer-social img:hover {
  transform: scale(1.15);
}

.footer-payment {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.footer-payment img {
  height: 35px;
  width: auto;
  border-radius: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
}

/* === Inner Page Styles === */
.page-hero {
  background: linear-gradient(135deg, var(--graphite), var(--dark-blue));
  padding: 60px 0 40px;
  color: #fff;
}

.page-hero h1 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 10px;
}

.page-hero p {
  color: rgba(255,255,255,0.75);
  max-width: 700px;
}

.page-content {
  padding: 50px 0;
}

.page-content .content-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.page-content h2 {
  color: var(--data-blue);
  border-left: 4px solid var(--neon-green);
  padding-left: 14px;
  margin-top: 40px;
  margin-bottom: 16px;
}

.page-content h3 {
  margin-top: 30px;
  margin-bottom: 12px;
}

.page-content img {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 20px 0;
  box-shadow: var(--shadow-sm);
}

.page-content .formula-box {
  background: rgba(9,132,227,0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin: 20px 0;
  font-family: var(--font-mono);
  text-align: center;
  font-size: 1.1rem;
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
}

.page-content table th {
  background: var(--data-blue);
  color: #fff;
  padding: 10px 14px;
}

.page-content table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--light-blue);
}

.page-content table tr:nth-child(even) {
  background: rgba(9,132,227,0.03);
}

/* === APP Download Page === */
.app-hero {
  background: linear-gradient(135deg, var(--graphite), #1a1a2e);
  padding: 80px 0;
  color: #fff;
  text-align: center;
}

.app-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  padding: 40px 0;
}

.app-feature-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
}

.app-feature-card .icon {
  font-size: 2.5rem;
  margin-bottom: 14px;
}

.download-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px 0;
}

.download-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
}

.download-card img {
  max-width: 200px;
  margin: 20px auto;
}

.steps-list {
  text-align: left;
  max-width: 700px;
  margin: 0 auto;
}

.step-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 24px;
  padding: 20px;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--data-blue);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  flex-shrink: 0;
}

/* === Number Rolling Animation === */
.rolling-number {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  animation: numberRoll 0.8s ease-out;
}

@keyframes numberRoll {
  0% { transform: translateY(-20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* === Chart Draw Animation === */
.chart-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.chart-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Responsive Design === */
@media (max-width: 1024px) {
  .dashboard-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  html { font-size: 15px; }

  .menu-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid var(--light-blue);
    box-shadow: var(--shadow-md);
    z-index: 99;
  }

  .main-nav.open { display: block; }

  .main-nav ul {
    flex-direction: column;
    padding: 10px;
  }

  .main-nav a {
    padding: 12px 16px;
  }

  .hero-content h1 { font-size: 2rem; }

  .calculator-panel {
    grid-template-columns: 1fr;
  }

  .dashboard-grid,
  .dashboard-grid-3 {
    grid-template-columns: 1fr;
  }

  .download-section {
    grid-template-columns: 1fr;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .researcher-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  html { font-size: 14px; }

  .container { padding: 0 14px; }

  .hero-content h1 { font-size: 1.6rem; }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .table-controls {
    flex-direction: column;
  }

  .data-table {
    font-size: 0.8rem;
  }

  .data-table th,
  .data-table td {
    padding: 6px 8px;
  }
}

/* === Utility Classes === */
.text-center { text-align: center; }
.text-blue { color: var(--data-blue); }
.text-green { color: var(--neon-green); }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
