/* Electric Dirt Bikes Design System
   Dark, performance-focused aesthetic with electric lime accents
   Converted from Tailwind CSS to Vanilla CSS
*/

/* Google Fonts loaded via <link rel="preload"> in HTML <head> for non-render-blocking loading */

/* ===== CSS Custom Properties ===== */
:root {
  /* Dark theme - performance/tech aesthetic */
  --background: hsl(0, 0%, 4%);
  --foreground: hsl(0, 0%, 98%);

  --card: hsl(0, 0%, 7%);
  --card-foreground: hsl(0, 0%, 98%);

  --popover: hsl(0, 0%, 7%);
  --popover-foreground: hsl(0, 0%, 98%);

  /* Electric Lime - Primary brand accent */
  --primary: hsl(75, 100%, 50%);
  --primary-foreground: hsl(0, 0%, 4%);

  --secondary: hsl(0, 0%, 12%);
  --secondary-foreground: hsl(0, 0%, 98%);

  --muted: hsl(0, 0%, 15%);
  --muted-foreground: hsl(0, 0%, 60%);

  --accent: hsl(75, 100%, 50%);
  --accent-foreground: hsl(0, 0%, 4%);

  --destructive: hsl(0, 72%, 51%);
  --destructive-foreground: hsl(0, 0%, 98%);

  --border: hsl(0, 0%, 18%);
  --input: hsl(0, 0%, 18%);
  --ring: hsl(75, 100%, 50%);

  --radius: 0.75rem;

  /* Custom tokens */
  --glow: hsl(75, 100%, 50%);
  --surface-elevated: hsl(0, 0%, 10%);
  --text-secondary: hsl(0, 0%, 70%);

  /* Gradients */
  --gradient-hero: linear-gradient(180deg, hsl(0, 0%, 4%) 0%, hsl(0, 0%, 8%) 100%);
  --gradient-card: linear-gradient(180deg, hsl(0, 0%, 10%) 0%, hsl(0, 0%, 7%) 100%);
  --gradient-accent: linear-gradient(135deg, hsl(75, 100%, 50%) 0%, hsl(85, 100%, 45%) 100%);
  --gradient-dark-fade: linear-gradient(180deg, transparent 0%, hsl(0, 0%, 4%) 100%);
}

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input {
  font-family: inherit;
}

ul {
  list-style: none;
}

/* ===== Layout Utilities ===== */
.container-tight {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container-tight {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container-tight {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.section-padding {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (min-width: 768px) {
  .section-padding {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }
}

@media (min-width: 1024px) {
  .section-padding {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}

/* ===== Typography ===== */
.text-gradient {
  background-image: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-muted {
  color: var(--muted-foreground);
}

.text-primary {
  color: var(--primary);
}

.text-secondary-color {
  color: var(--text-secondary);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-default {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-default:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-hero {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 0 30px hsla(75, 100%, 50%, 0.3);
}

.btn-hero:hover {
  box-shadow: 0 0 50px hsla(75, 100%, 50%, 0.5);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn-outline:hover {
  background-color: var(--secondary);
  border-color: var(--muted-foreground);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  width: 100%;
}

.btn-secondary:hover {
  background-color: var(--muted);
}

.btn-secondary .icon {
  transition: transform 0.2s ease;
}

.btn-secondary:hover .icon {
  transform: translateX(4px);
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: hsl(0, 0%, 4%);
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
  .header {
    background-color: hsla(0, 0%, 4%, 0.8);
    backdrop-filter: blur(12px);
  }
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

@media (min-width: 768px) {
  .header-nav {
    height: 5rem;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.logo-icon {
  color: var(--primary);
  font-size: 1.5rem;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--foreground);
}

.header-cta {
  display: none;
}

@media (min-width: 768px) {
  .header-cta {
    display: block;
  }
}

.mobile-menu-btn {
  display: block;
  padding: 0.5rem;
  color: var(--foreground);
  font-size: 1.5rem;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu {
  display: none;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  animation: fadeIn 0.3s ease;
}

.mobile-menu.active {
  display: block;
}

@media (min-width: 768px) {
  .mobile-menu {
    display: none !important;
  }
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu .btn-default {
  width: 100%;
  margin-top: 0.5rem;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

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

.hero-overlay-1 {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--background), hsla(0, 0%, 4%, 0.6), hsla(0, 0%, 4%, 0.4));
}

.hero-overlay-2 {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, hsla(0, 0%, 4%, 0.8), transparent, hsla(0, 0%, 4%, 0.4));
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding-top: 5rem;
}

.hero-inner {
  max-width: 56rem;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background-color: hsla(0, 0%, 12%, 0.8);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
  animation: fadeUp 0.6s ease forwards;
}

.hero-badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: var(--primary);
  animation: pulse 2s infinite;
}

.hero-badge-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s ease both;
  animation-delay: 100ms;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  animation: fadeUp 0.6s ease both;
  animation-delay: 200ms;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.25rem;
  }
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  animation: fadeUp 0.6s ease both;
  animation-delay: 300ms;
}

@media (min-width: 640px) {
  .hero-ctas {
    flex-direction: row;
  }
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 32rem;
  margin: 4rem auto 0;
  animation: fadeUp 0.6s ease both;
  animation-delay: 400ms;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

@media (min-width: 768px) {
  .hero-stat-value {
    font-size: 1.875rem;
  }
}

.hero-stat-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  color: var(--muted-foreground);
  font-size: 2rem;
}

/* ===== Hub Hero Section (Inner Pages) ===== */
.hub-hero {
  padding-top: 7rem;
  padding-bottom: 4rem;
  background: var(--gradient-hero);
  text-align: center;
}

@media (min-width: 768px) {
  .hub-hero {
    padding-top: 8rem;
    padding-bottom: 5rem;
  }
}

@media (min-width: 1024px) {
  .hub-hero {
    padding-top: 9rem;
    padding-bottom: 6rem;
  }
}

.hub-hero-content {
  max-width: 48rem;
  margin: 0 auto;
}

.hub-hero-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .hub-hero-title {
    font-size: 2.5rem;
  }
}

@media (min-width: 768px) {
  .hub-hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hub-hero-title {
    font-size: 3.5rem;
  }
}

.hub-hero-subtitle {
  font-size: 1rem;
  color: var(--muted-foreground);
  max-width: 36rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .hub-hero-subtitle {
    font-size: 1.125rem;
  }
}

/* ===== Featured Bikes Section ===== */
.featured-bikes {
  background-color: var(--background);
}

.section-header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 4rem;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 3rem;
  }
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
}

.bikes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .bikes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .bikes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== Bike Card ===== */
.bike-card {
  position: relative;
  background-color: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .bike-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px hsla(0, 0%, 0%, 0.4), 0 0 40px hsla(75, 100%, 50%, 0.1);
  }
}

.bike-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.75rem;
  font-weight: 700;
}

.bike-card-image {
  position: relative;
  height: 14rem;
  overflow: hidden;
  background-color: var(--secondary);
}

.bike-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.bike-card:hover .bike-card-image img {
  transform: scale(1.05);
}

.bike-card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--card), transparent);
}

.bike-card-content {
  padding: 1.5rem;
}

.bike-card-brand {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.bike-card-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.bike-card-price {
  font-size: 1.5rem;
  font-weight: 700;
  background-image: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
}

.bike-card-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.bike-card-spec {
  text-align: center;
}

.bike-card-spec-icon {
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.bike-card-spec-value {
  font-size: 0.875rem;
  font-weight: 600;
}

.bike-card-spec-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.bike-card .btn-secondary {
  margin-top: 1rem;
}

/* ===== Features Section ===== */
.features {
  background-color: hsla(0, 0%, 12%, 0.3);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background-color: var(--card);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px hsla(0, 0%, 0%, 0.4), 0 0 40px hsla(75, 100%, 50%, 0.1);
  }
}

.feature-icon-wrapper {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background-color: hsla(75, 100%, 50%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: background-color 0.2s ease;
}

.feature-card:hover .feature-icon-wrapper {
  background-color: hsla(75, 100%, 50%, 0.2);
}

.feature-icon {
  color: var(--primary);
  font-size: 1.5rem;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-description {
  color: var(--muted-foreground);
}

/* ===== Comparison Section ===== */
.comparison {
  background-color: var(--background);
}

.comparison-table-wrapper {
  max-width: 48rem;
  margin: 0 auto;
}

.comparison-table {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}

.comparison-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background-color: var(--secondary);
}

.comparison-header-cell {
  padding: 1rem;
  font-weight: 600;
}

.comparison-header-cell:nth-child(2) {
  text-align: center;
  color: var(--primary);
}

.comparison-header-cell:nth-child(3) {
  text-align: center;
}

.comparison-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-top: 1px solid var(--border);
}

.comparison-row:nth-child(odd) {
  background-color: var(--card);
}

.comparison-row:nth-child(even) {
  background-color: var(--background);
}

.comparison-cell {
  padding: 1rem;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .comparison-cell {
    font-size: 1rem;
  }
}

.comparison-cell:nth-child(2),
.comparison-cell:nth-child(3) {
  display: flex;
  justify-content: center;
  align-items: center;
}

.check-icon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
}

.check-icon.positive {
  background-color: hsla(75, 100%, 50%, 0.2);
  color: var(--primary);
}

.check-icon.neutral {
  background-color: var(--muted);
  color: var(--muted-foreground);
}

.comparison-note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 1.5rem;
}

/* ===== Newsletter Section ===== */
.newsletter {
  background-color: hsla(0, 0%, 12%, 0.3);
  position: relative;
  overflow: hidden;
}

.newsletter-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background-color: hsla(75, 100%, 50%, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

@media (min-width: 768px) {
  .newsletter-glow {
    filter: blur(80px);
  }
}

.newsletter-content {
  position: relative;
  z-index: 10;
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.newsletter-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background-color: hsla(75, 100%, 50%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--primary);
}

.newsletter-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .newsletter-title {
    font-size: 2.25rem;
  }
}

.newsletter-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 28rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .newsletter-form {
    flex-direction: row;
  }
}

.newsletter-input {
  flex: 1;
  height: 3rem;
  padding: 0 1rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  font-size: 1rem;
}

.newsletter-input::placeholder {
  color: var(--muted-foreground);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px hsla(75, 100%, 50%, 0.2);
}

.newsletter-success {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 0.5rem;
  background-color: hsla(75, 100%, 50%, 0.1);
  border: 1px solid hsla(75, 100%, 50%, 0.3);
}

.newsletter-success.active {
  display: flex;
}

.newsletter-success-icon {
  color: var(--primary);
  font-size: 1.5rem;
}

.newsletter-success-text {
  font-weight: 500;
}

.newsletter-note {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 1rem;
}

/* ===== Article Section (Placeholder) ===== */
.article-section {
  background-color: var(--background);
  border-top: 1px solid var(--border);
}

.article-wrapper {
  max-width: 48rem;
  margin: 0 auto;
}

.article-header {
  margin-bottom: 2rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.article-category {
  color: var(--primary);
  font-weight: 600;
}

.article-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .article-title {
    font-size: 2.5rem;
  }
}

.article-excerpt {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.article-body {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.article-body h2 {
  font-size: 1.5rem;
  color: var(--foreground);
  margin: 2rem 0 1rem;
}

.article-body p {
  margin-bottom: 1.5rem;
}

.article-body ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
  list-style: disc;
}

.article-cta {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
}

.article-cta p {
  margin-bottom: 1rem;
  font-weight: 500;
}

/* ===== Article Expanded Styles ===== */

/* --- Table of Contents --- */
.toc-container {
  margin-bottom: 3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--card);
  overflow: hidden;
}

.toc-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: var(--foreground);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.toc-toggle:hover {
  background-color: hsla(75, 100%, 50%, 0.05);
}

.toc-toggle-icon {
  font-size: 0.875rem;
  transition: transform 0.3s ease;
  color: var(--primary);
}

.toc-toggle.active .toc-toggle-icon {
  transform: rotate(180deg);
}

.toc-list {
  display: none;
  padding: 0 1.5rem 1.5rem;
  list-style: none;
}

.toc-list.active {
  display: block;
}

.toc-list li {
  margin-bottom: 0.25rem;
}

.toc-list a {
  display: block;
  padding: 0.4rem 0.75rem;
  font-size: 0.9rem;
  color: var(--muted-foreground);
  border-radius: 0.25rem;
  transition: all 0.2s ease;
  border-left: 2px solid transparent;
}

.toc-list a:hover {
  color: var(--primary);
  background-color: hsla(75, 100%, 50%, 0.05);
  border-left-color: var(--primary);
}

.toc-list .toc-sub {
  padding-left: 1.5rem;
}

.toc-list .toc-sub a {
  font-size: 0.825rem;
}

/* --- Article body h3, h4, blockquote, strong --- */
.article-body h3 {
  font-size: 1.25rem;
  color: var(--foreground);
  margin: 2rem 0 0.75rem;
  font-weight: 700;
}

.article-body h4 {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin: 1.5rem 0 0.5rem;
  font-weight: 600;
}

.article-body blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 3px solid var(--primary);
  background-color: hsla(75, 100%, 50%, 0.04);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-secondary);
}

.article-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-body ol li {
  margin-bottom: 0.5rem;
  list-style: decimal;
}

/* --- Info / Callout Box --- */
.info-box {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: var(--card);
}

.info-box.tip {
  border-left: 3px solid var(--primary);
}

.info-box.warning {
  border-left: 3px solid hsl(45, 100%, 50%);
}

.info-box.note {
  border-left: 3px solid hsl(200, 100%, 55%);
}

.info-box-title {
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.info-box.warning .info-box-title {
  color: hsl(45, 100%, 50%);
}

.info-box.note .info-box-title {
  color: hsl(200, 100%, 55%);
}

.info-box p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.info-box p:last-child {
  margin-bottom: 0;
}

/* --- Data Tables --- */
.data-table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table thead {
  background-color: var(--secondary);
}

.data-table th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--foreground);
  white-space: nowrap;
}

.data-table th.highlight {
  color: var(--primary);
}

.data-table td {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
}

.data-table tbody tr:nth-child(odd) {
  background-color: var(--card);
}

.data-table tbody tr:nth-child(even) {
  background-color: var(--background);
}

.data-table tbody tr:hover {
  background-color: hsla(75, 100%, 50%, 0.04);
}

.data-table .model-name {
  font-weight: 600;
  color: var(--foreground);
  white-space: nowrap;
}

.data-table .badge-cell {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  background-color: hsla(75, 100%, 50%, 0.15);
  color: var(--primary);
}

/* --- Model Review Cards --- */
.model-review {
  margin: 3rem 0;
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: var(--card);
}

.model-review-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.model-review-name {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--foreground);
}

.model-review-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  background-color: var(--primary);
  color: var(--primary-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.model-review-price {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background-image: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.model-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: 0.5rem;
  background-color: hsla(0, 0%, 0%, 0.3);
}

@media (min-width: 640px) {
  .model-specs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .model-specs-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.model-spec-item {
  text-align: center;
  padding: 0.5rem;
}

.model-spec-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  margin-bottom: 0.25rem;
}

.model-spec-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--foreground);
}

.model-pros-cons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .model-pros-cons {
    grid-template-columns: 1fr 1fr;
  }
}

.model-pros,
.model-cons {
  padding: 1rem;
  border-radius: 0.5rem;
}

.model-pros {
  background-color: hsla(75, 100%, 50%, 0.05);
  border: 1px solid hsla(75, 100%, 50%, 0.15);
}

.model-cons {
  background-color: hsla(0, 100%, 50%, 0.03);
  border: 1px solid hsla(0, 100%, 50%, 0.1);
}

.model-pros h4,
.model-cons h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.model-pros h4 {
  color: var(--primary);
}

.model-cons h4 {
  color: hsl(0, 80%, 60%);
}

.model-pros ul,
.model-cons ul {
  list-style: none;
  padding: 0;
}

.model-pros li,
.model-cons li {
  padding: 0.25rem 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding-left: 1.25rem;
  position: relative;
}

.model-pros li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.model-cons li::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: hsl(0, 80%, 60%);
  font-weight: 700;
}

.model-best-for {
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background-color: hsla(75, 100%, 50%, 0.05);
  border-left: 3px solid var(--primary);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.model-best-for strong {
  color: var(--primary);
}

/* --- FAQ Accordion --- */
.faq-section {
  margin: 2rem 0;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background-color: var(--card);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  color: var(--foreground);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.2s ease;
}

.faq-question:hover {
  background-color: hsla(75, 100%, 50%, 0.05);
}

.faq-icon {
  flex-shrink: 0;
  font-size: 0.875rem;
  color: var(--primary);
  transition: transform 0.3s ease;
  margin-left: 1rem;
}

.faq-question.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 1.25rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-answer.active {
  display: block;
}

.faq-answer p {
  margin-bottom: 0.75rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* ===== Video Embeds ===== */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 Aspect Ratio */
  height: 0;
  margin: 2rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background-color: var(--card);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* --- Glossary --- */
.glossary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

@media (min-width: 768px) {
  .glossary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.glossary-item {
  padding: 1rem;
  border-radius: 0.5rem;
  background-color: var(--card);
  border: 1px solid var(--border);
}

.glossary-term {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.glossary-definition {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Category Recommendation Cards --- */
.recommendation-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

@media (min-width: 640px) {
  .recommendation-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.recommendation-card {
  padding: 1.25rem;
  border-radius: var(--radius);
  background-color: var(--card);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .recommendation-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px hsla(0, 0%, 0%, 0.3);
  }
}

.recommendation-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.recommendation-model {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.recommendation-reason {
  font-size: 0.85rem;
  color: var(--muted-foreground);
}

/* --- Video Embed --- */
.video-embed {
  margin: 2rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.video-embed iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
}

.video-embed.vertical {
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.video-embed.vertical iframe {
  aspect-ratio: 9 / 16;
}

/* --- Section Divider --- */
.section-divider {
  margin: 3rem 0;
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), var(--primary), var(--border), transparent);
}

/* --- Anchor offset for fixed header --- */
.article-body [id] {
  scroll-margin-top: 5rem;
}

/* ===== Footer ===== */
.footer {
  background-color: var(--card);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
  }
}

.footer-brand {
  grid-column: span 2;
}

@media (min-width: 768px) {
  .footer-brand {
    grid-column: span 1;
  }
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-brand-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-links-title {
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--foreground);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-copyright,
.footer-tagline {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ===== Animations ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-10px);
  }

  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* ===== Utility Classes ===== */
.hidden {
  display: none !important;
}

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

/* ===== Back to Top Button ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 99;
  box-shadow: 0 4px 20px hsla(75, 100%, 50%, 0.3);
  border: none;
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px hsla(75, 100%, 50%, 0.5);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }
}

/* ===== Model Video Embed ===== */
.model-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 1.5rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background-color: var(--secondary);
}

.model-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== Linkable Asset Callout ===== */
.linkable-asset {
  margin: 2.5rem 0;
  padding: 1.5rem 2rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, hsla(75, 100%, 50%, 0.06) 0%, hsla(75, 100%, 50%, 0.02) 100%);
  border: 1px solid hsla(75, 100%, 50%, 0.2);
  border-left: 4px solid var(--primary);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .linkable-asset {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.linkable-asset-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.linkable-asset-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.linkable-asset-text h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.linkable-asset-text p {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  margin-bottom: 0;
}

.linkable-asset .btn {
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 0.85rem;
  padding: 0.5rem 1.25rem;
}

/* ===== Article Comparison Tables ===== */
.article-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  min-width: 600px;
}

.article-table thead {
  position: sticky;
  top: 0;
  z-index: 5;
}

.article-table th {
  background: linear-gradient(180deg, var(--secondary) 0%, hsla(0, 0%, 12%, 1) 100%);
  color: var(--foreground);
  font-weight: 700;
  padding: 1rem 0.75rem;
  text-align: left;
  white-space: nowrap;
  border-bottom: 2px solid var(--primary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.article-table th:first-child {
  color: var(--primary);
}

.article-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: middle;
}

.article-table td:first-child {
  font-weight: 600;
  color: var(--foreground);
  white-space: nowrap;
}

.article-table tbody tr {
  background-color: var(--background);
  transition: background-color 0.2s ease;
}

.article-table tbody tr:nth-child(odd) {
  background-color: var(--card);
}

.article-table tbody tr:hover {
  background-color: hsla(75, 100%, 50%, 0.05);
}

@media (max-width: 640px) {
  .article-table {
    font-size: 0.8rem;
  }

  .article-table th,
  .article-table td {
    padding: 0.6rem 0.5rem;
  }
}

/* ===== Hero Comparison Table Improvements ===== */
.comparison-row:hover {
  background-color: hsla(75, 100%, 50%, 0.05) !important;
}

.comparison-header {
  background: linear-gradient(180deg, var(--secondary) 0%, hsla(0, 0%, 12%, 1) 100%);
}

.comparison-header-cell {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

/* ===== Phase 6: Mobile & UX Enhancements ===== */

/* --- Explicit body font-size for mobile readability --- */
/* Ensures minimum 16px on all devices */

/* --- Touch Target Sizing (44px minimum) --- */
.nav-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0;
}

.mobile-menu-links .nav-link {
  min-height: 48px;
  padding: 0.75rem 0;
  font-size: 1rem;
}

.mobile-menu-links .btn {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-question {
  min-height: 48px;
}

.toc-header {
  min-height: 48px;
}

/* --- Article Meta Bar (read time + last updated) --- */
.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  margin-bottom: 2rem;
  background-color: hsla(0, 0%, 7%, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--muted-foreground);
}

.article-meta-bar .meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.article-meta-bar .meta-icon {
  font-size: 1rem;
  line-height: 1;
}

.article-meta-bar .meta-separator {
  width: 1px;
  height: 1rem;
  background-color: var(--border);
}

@media (max-width: 480px) {
  .article-meta-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .article-meta-bar .meta-separator {
    display: none;
  }
}

/* --- Share Buttons --- */
.share-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 2.5rem 0;
  padding: 1.25rem 1.5rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.share-buttons-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 0.5rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  min-height: 44px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  color: #fff;
}

.share-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.share-btn.twitter {
  background-color: #1DA1F2;
}

.share-btn.twitter:hover {
  background-color: #0d8ddb;
}

.share-btn.facebook {
  background-color: #1877F2;
}

.share-btn.facebook:hover {
  background-color: #0d6eef;
}

.share-btn.linkedin {
  background-color: #0A66C2;
}

.share-btn.linkedin:hover {
  background-color: #0856a3;
}

.share-btn.reddit {
  background-color: #FF4500;
}

.share-btn.reddit:hover {
  background-color: #e03e00;
}

.share-btn.copy-link {
  background-color: var(--secondary);
  color: var(--foreground);
  border-color: var(--border);
}

.share-btn.copy-link:hover {
  background-color: var(--muted);
  border-color: var(--primary);
}

.share-btn.copy-link.copied {
  background-color: hsla(75, 100%, 50%, 0.15);
  border-color: var(--primary);
  color: var(--primary);
}

@media (max-width: 480px) {
  .share-buttons {
    gap: 0.5rem;
    padding: 1rem;
  }

  .share-buttons-label {
    width: 100%;
    margin-bottom: 0.25rem;
  }

  .share-btn {
    flex: 1;
    min-width: 0;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
}

/* --- Comparison Table Responsive Wrapper --- */
.comparison-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  min-width: 500px;
}

.comparison-table thead {
  background-color: var(--secondary);
}

.comparison-table th {
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--foreground);
  white-space: nowrap;
  border-bottom: 2px solid var(--primary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.comparison-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.comparison-table td.spec-label {
  font-weight: 600;
  color: var(--foreground);
  white-space: nowrap;
}

.comparison-table tbody tr {
  background-color: var(--background);
  transition: background-color 0.2s ease;
}

.comparison-table tbody tr:nth-child(odd) {
  background-color: var(--card);
}

.comparison-table tbody tr:hover {
  background-color: hsla(75, 100%, 50%, 0.05);
}

@media (max-width: 640px) {
  .comparison-table {
    font-size: 0.8rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.6rem 0.5rem;
  }
}

/* ===== Sources Section ===== */
.sources-section {
  padding: 2.5rem;
  background-color: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.sources-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-accent);
}

.sources-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--foreground);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sources-section h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.sources-list {
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sources-list li {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.sources-list a {
  color: var(--primary);
  word-break: break-all;
  font-weight: 500;
  transition: all 0.2s ease;
  border-bottom: 1px solid transparent;
}

.sources-list a:hover {
  color: var(--foreground);
  border-bottom-color: var(--primary);
}

/* --- Mobile heading scaling --- */
@media (max-width: 480px) {
  .article-content h2 {
    font-size: 1.5rem;
  }

  .article-content h3 {
    font-size: 1.2rem;
  }

  .hub-hero-title {
    font-size: 1.75rem;
  }
}

/* --- Ensure body font-size is explicit --- */
body {
  font-size: 1rem;
  /* 16px base */
}

/* ===== Mobile Performance: content-visibility ===== */
/* Skip rendering of off-screen sections until they scroll into view */
.features,
.comparison,
.article-section,
.newsletter,
.footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 800px;
}

/* Model reviews are individually heavy — each gets its own content-visibility */
.model-review {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}

/* Disable infinite animations on mobile to save CPU/battery */
@media (max-width: 767px) {
  .scroll-indicator {
    animation: none;
  }

  .hero-badge-dot {
    animation: none;
  }
}

/* GPU-hint for elements that will animate */
.hero-bg img {
  will-change: auto;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}