/* ============================================
   CALCULATEUR CHARGE - DESIGN SYSTEM
   Premium SEO Website
   ============================================ */

/* --- CSS Variables --- */
:root {
  /* Primary Colors */
  --color-primary: #3b82f6;
  --color-primary-dark: #2563eb;
  --color-primary-light: #60a5fa;
  --color-accent: #22d3ee;
  --color-accent-dark: #06b6d4;
  --color-gold: #f59e0b;
  --color-gold-dark: #d97706;
  --color-success: #10b981;
  --color-danger: #ef4444;

  /* Backgrounds */
  --bg-dark: #0a1628;
  --bg-dark-secondary: #111d35;
  --bg-dark-card: #162032;
  --bg-light: #f8fafc;
  --bg-light-secondary: #f1f5f9;
  --bg-white: #ffffff;

  /* Text Colors */
  --text-dark: #0f172a;
  --text-dark-secondary: #475569;
  --text-light: #f8fafc;
  --text-light-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Borders */
  --border-light: #e2e8f0;
  --border-dark: #1e3a5f;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.3);

  /* Container */
  --container-max: 1200px;
  --container-narrow: 800px;
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--bg-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.15rem; }

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover { color: var(--color-primary-dark); }

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

ul, ol { list-style: none; }

/* --- Utility Classes --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.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;
}

.text-center { text-align: center; }
.text-gradient {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  line-height: 1;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: var(--text-light);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
  color: var(--text-light);
}

.btn--secondary {
  background: transparent;
  color: var(--text-light);
  border: 2px solid var(--glass-border);
}

.btn--secondary:hover {
  background: var(--glass-bg);
  border-color: var(--color-primary);
  color: var(--text-light);
}

.btn--gold {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  color: #000;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn--sm { padding: 0.6rem 1.25rem; font-size: 0.875rem; }
.btn--lg { padding: 1.1rem 2.5rem; font-size: 1.1rem; }

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-md) 0;
  transition: all var(--transition-base);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  padding: var(--space-sm) 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text-light);
  text-decoration: none;
}

.navbar__logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.navbar__link {
  color: var(--text-light-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color var(--transition-fast);
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-base);
}

.navbar__link:hover,
.navbar__link.active {
  color: var(--text-light);
}

.navbar__link:hover::after,
.navbar__link.active::after {
  width: 100%;
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-light);
  transition: all var(--transition-fast);
  border-radius: 2px;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, var(--bg-dark) 0%, var(--bg-dark-secondary) 50%, #0d2847 100%);
  position: relative;
  overflow: hidden;
  padding: var(--space-4xl) 0 var(--space-3xl);
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 70%);
  top: -200px;
  right: -200px;
  border-radius: 50%;
  animation: pulse-glow 6s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.1), transparent 70%);
  bottom: -100px;
  left: -100px;
  border-radius: 50%;
  animation: pulse-glow 8s ease-in-out infinite reverse;
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 1; }
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.5rem 1.25rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  color: var(--color-accent);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-xl);
  backdrop-filter: blur(10px);
}

.hero__title {
  color: var(--text-light);
  margin-bottom: var(--space-lg);
  max-width: 700px;
}

.hero__subtitle {
  color: var(--text-light-secondary);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  gap: var(--space-3xl);
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--glass-border);
}

.hero__stat {
  text-align: left;
}

.hero__stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-light);
}

.hero__stat-label {
  color: var(--text-light-secondary);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

/* --- Calculator Section --- */
.calculator-section {
  background: linear-gradient(160deg, var(--bg-dark) 0%, var(--bg-dark-secondary) 50%, #0d2847 100%);
  padding: var(--space-4xl) 0;
  position: relative;
  overflow: hidden;
}

.calculator-section::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1), transparent 70%);
  top: -200px;
  right: -200px;
  border-radius: 50%;
}

.calculator-section .section-title {
  color: var(--text-light);
}

.calculator-section .section-subtitle {
  color: var(--text-light-secondary);
}

/* Calculator Card */
.calculator {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--glass-shadow);
  padding: var(--space-2xl);
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.calculator__header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.calculator__header h2 {
  color: var(--text-light);
  font-size: 1.75rem;
  margin-bottom: var(--space-sm);
}

.calculator__header p {
  color: var(--text-light-secondary);
  font-size: 0.95rem;
}

.calculator__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
}

.calculator__inputs,
.calculator__results {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* Preset Dropdown */
.calculator__preset {
  margin-bottom: var(--space-sm);
}

.calculator__preset label {
  display: block;
  color: var(--text-light-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-sm);
}

.calculator__preset select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-light);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color var(--transition-fast);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.calculator__preset select:focus {
  outline: none;
  border-color: var(--color-primary);
}

.calculator__preset select option {
  background: var(--bg-dark-secondary);
  color: var(--text-light);
}

/* Input Groups */
.input-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.input-group label {
  color: var(--text-light-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-group__field {
  position: relative;
}

.input-group__field input {
  width: 100%;
  padding: 0.85rem 1rem;
  padding-right: 3.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-light);
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.input-group__field input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.input-group__field input::placeholder {
  color: var(--text-muted);
}

.input-group__unit {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Results */
.calculator__results-title {
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-sm);
}

.result-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: all var(--transition-base);
}

.result-card:hover {
  border-color: var(--color-primary);
  background: rgba(59, 130, 246, 0.05);
}

.result-card__label {
  color: var(--text-light-secondary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-xs);
}

.result-card__value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-light);
  transition: all var(--transition-fast);
}

.result-card__value span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light-secondary);
  margin-left: 4px;
}

.result-card--highlight {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(34, 211, 238, 0.1));
  border-color: rgba(59, 130, 246, 0.3);
}

.result-card--highlight .result-card__value {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2.25rem;
}

.result-card--co2 {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
}

.result-card--co2 .result-card__value {
  color: var(--color-success);
}

/* Projections */
.calculator__projections {
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--glass-border);
}

.calculator__projections-title {
  color: var(--text-light-secondary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-md);
  text-align: center;
}

.projections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.projection-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
}

.projection-card__period {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-xs);
}

.projection-card__value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-gold);
}

.projection-card__value span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Sections --- */
.section {
  padding: var(--space-4xl) 0;
}

.section--light { background: var(--bg-light); }
.section--white { background: var(--bg-white); }
.section--dark {
  background: var(--bg-dark);
  color: var(--text-light);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.section-title {
  margin-bottom: var(--space-md);
}

.section-subtitle {
  color: var(--text-dark-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* --- Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.feature-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature-card:hover::before { opacity: 1; }

.feature-card__icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(34, 211, 238, 0.1));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
}

.feature-card__title {
  font-size: 1.15rem;
  margin-bottom: var(--space-sm);
}

.feature-card__text {
  color: var(--text-dark-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- SEO Content --- */
.content-section {
  padding: var(--space-3xl) 0;
}

.content-section article {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.content-section h2 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--border-light);
}

.content-section h3 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  color: var(--color-primary-dark);
}

.content-section p {
  margin-bottom: var(--space-md);
  color: var(--text-dark-secondary);
  font-size: 1.05rem;
  line-height: 1.85;
}

.content-section ul,
.content-section ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-xl);
}

.content-section ul { list-style: disc; }
.content-section ol { list-style: decimal; }

.content-section li {
  margin-bottom: var(--space-sm);
  color: var(--text-dark-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

.content-section strong {
  color: var(--text-dark);
}

.content-section .highlight-box {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(34, 211, 238, 0.05));
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-lg) var(--space-xl);
  margin: var(--space-xl) 0;
}

.content-section .highlight-box p {
  margin-bottom: 0;
  color: var(--text-dark);
  font-weight: 500;
}

.content-section .formula-box {
  background: var(--bg-dark);
  border-radius: var(--radius-md);
  padding: var(--space-xl) var(--space-2xl);
  margin: var(--space-xl) 0;
  text-align: center;
}

.content-section .formula-box code {
  color: var(--color-accent);
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 1.1rem;
  line-height: 2;
}

/* --- FAQ Section --- */
.faq-section {
  padding: var(--space-4xl) 0;
  background: var(--bg-light);
}

.faq-list {
  max-width: var(--container-narrow);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item:hover { border-color: var(--color-primary); }

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: left;
  transition: color var(--transition-fast);
}

.faq-item__question:hover { color: var(--color-primary); }

.faq-item__icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--color-primary);
  transition: transform var(--transition-base);
}

.faq-item.active .faq-item__icon {
  transform: rotate(45deg);
  background: var(--color-primary);
  color: #fff;
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-slow);
}

.faq-item.active .faq-item__answer {
  max-height: 500px;
  padding: 0 var(--space-xl) var(--space-lg);
}

.faq-item__answer p {
  color: var(--text-dark-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* --- Blog Cards --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.blog-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

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

.blog-card__image {
  height: 200px;
  background: linear-gradient(135deg, var(--bg-dark), var(--bg-dark-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.blog-card__image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(34, 211, 238, 0.1));
}

.blog-card__category {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  padding: 0.3rem 0.8rem;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-full);
  z-index: 1;
}

.blog-card__body {
  padding: var(--space-lg);
}

.blog-card__date {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: var(--space-sm);
}

.blog-card__title {
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__title a {
  color: var(--text-dark);
  transition: color var(--transition-fast);
}

.blog-card__title a:hover { color: var(--color-primary); }

.blog-card__excerpt {
  color: var(--text-dark-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: var(--space-md);
}

.blog-card__link:hover { gap: 0.7rem; }

/* --- Blog List (for index page) --- */
.blog-list .blog-card {
  display: grid;
  grid-template-columns: 280px 1fr;
}

.blog-list .blog-card__image {
  height: 100%;
  min-height: 200px;
}

/* --- Article Page --- */
.article-hero {
  background: linear-gradient(160deg, var(--bg-dark) 0%, var(--bg-dark-secondary) 100%);
  padding: calc(80px + var(--space-3xl)) 0 var(--space-3xl);
  text-align: center;
}

.article-hero__category {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(59, 130, 246, 0.2);
  color: var(--color-primary-light);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
}

.article-hero h1 {
  color: var(--text-light);
  max-width: 750px;
  margin: 0 auto var(--space-lg);
}

.article-hero__meta {
  color: var(--text-light-secondary);
  font-size: 0.9rem;
}

.article-content {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-lg);
}

.article-content p {
  margin-bottom: var(--space-md);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-dark-secondary);
}

.article-content h2 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.article-content h3 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  color: var(--color-primary-dark);
}

.article-content ul,
.article-content ol {
  padding-left: var(--space-xl);
  margin-bottom: var(--space-md);
}

.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }

.article-content li {
  margin-bottom: var(--space-sm);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-dark-secondary);
}

.article-content strong { color: var(--text-dark); }

.article-cta {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(34, 211, 238, 0.05));
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  margin: var(--space-2xl) 0;
}

.article-cta h3 { margin-bottom: var(--space-md); }
.article-cta p { margin-bottom: var(--space-lg); }

/* --- Breadcrumbs --- */
.breadcrumbs {
  padding: calc(80px + var(--space-md)) 0 var(--space-md);
  background: var(--bg-dark);
}

.breadcrumbs__list {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.85rem;
}

.breadcrumbs__list li { display: flex; align-items: center; gap: var(--space-sm); }
.breadcrumbs__list li + li::before { content: '›'; color: var(--text-muted); }
.breadcrumbs__list a { color: var(--text-light-secondary); }
.breadcrumbs__list a:hover { color: var(--text-light); }
.breadcrumbs__list .current { color: var(--color-accent); }

/* --- Footer --- */
.footer {
  background: var(--bg-dark);
  color: var(--text-light-secondary);
  padding: var(--space-4xl) 0 var(--space-xl);
  border-top: 1px solid var(--border-dark);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer__brand p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-top: var(--space-md);
  max-width: 320px;
}

.footer__title {
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__links a {
  color: var(--text-light-secondary);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.footer__links a:hover {
  color: var(--text-light);
  padding-left: 4px;
}

.footer__bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer__bottom-links {
  display: flex;
  gap: var(--space-lg);
}

.footer__bottom-links a {
  color: var(--text-light-secondary);
}

.footer__bottom-links a:hover { color: var(--text-light); }

/* --- Table --- */
.content-section table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-xl) 0;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.content-section table th,
.content-section table td {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.95rem;
}

.content-section table th {
  background: var(--bg-dark);
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.content-section table tr:nth-child(even) {
  background: var(--bg-light);
}

.content-section table td {
  color: var(--text-dark-secondary);
}

/* --- Related Articles --- */
.related-articles {
  padding: var(--space-3xl) 0;
  background: var(--bg-light);
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--bg-dark), var(--bg-dark-secondary));
  padding: var(--space-3xl) 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--text-light);
  margin-bottom: var(--space-md);
}

.cta-banner p {
  color: var(--text-light-secondary);
  margin-bottom: var(--space-xl);
  font-size: 1.05rem;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .navbar__links { 
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-2xl);
    z-index: 999;
  }

  .navbar__links.active { display: flex; }

  .navbar__links .navbar__link {
    font-size: 1.25rem;
  }

  .navbar__toggle { display: flex; z-index: 1001; }

  .hero { padding-top: 120px; min-height: auto; }
  .hero__stats { flex-direction: column; gap: var(--space-xl); }
  .hero__actions { flex-direction: column; align-items: flex-start; }

  .calculator__grid { grid-template-columns: 1fr; }
  .projections-grid { grid-template-columns: 1fr; }

  .features-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }

  .blog-list .blog-card { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: var(--space-md); text-align: center; }

  .calculator { padding: var(--space-lg); }
}

@media (max-width: 480px) {
  :root { font-size: 15px; }
  .container { padding: 0 var(--space-md); }
  .calculator { padding: var(--space-md); }
  .result-card__value { font-size: 1.5rem; }
  .result-card--highlight .result-card__value { font-size: 1.75rem; }
}

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Number Animation */
.number-animate {
  transition: all var(--transition-fast);
}

/* --- Print Styles --- */
@media print {
  .navbar, .footer, .btn, .navbar__toggle { display: none !important; }
  .hero { min-height: auto; padding: var(--space-xl) 0; }
  .calculator { box-shadow: none; border: 1px solid #ccc; }
}
