/**
 * BYD Shares and Stocks - Home Page Styles
 * 
 * Styles specific to the home page (index.html).
 * Includes: Hero, stats, features, instruments, platform, how it works,
 * testimonials, news, and CTA sections.
 */

/* ============================================
   1. HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: auto;
  padding-top: calc(var(--header-height) + var(--space-12));
  padding-bottom: var(--space-12);
  overflow: hidden;
  background: var(--gradient-hero);
}

/* Hero Background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(var(--color-accent-soft-blue-rgb), 0.02) 30%,
    rgba(var(--color-accent-soft-blue-rgb), 0.08) 100%
  );
}

/* Floating dots */
.hero-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  background-color: var(--color-text-primary);
  border-radius: var(--radius-full);
  opacity: 0.2;
}

[data-theme="dark"] .hero-dot {
  background-color: var(--color-primary);
  opacity: 0.5;
}

/* Position dots */
.hero-dot:nth-child(1) { top: 8%; left: 5%; animation: dotFloat 8s ease-in-out infinite; }
.hero-dot:nth-child(2) { top: 15%; left: 15%; animation: dotFloat 12s ease-in-out infinite 1s; }
.hero-dot:nth-child(3) { top: 25%; left: 8%; animation: dotFloat 10s ease-in-out infinite 0.5s; }
.hero-dot:nth-child(4) { top: 12%; left: 25%; animation: dotFloat 9s ease-in-out infinite 2s; }
.hero-dot:nth-child(5) { top: 30%; left: 20%; animation: dotFloat 11s ease-in-out infinite 1.5s; }
.hero-dot:nth-child(6) { top: 5%; right: 10%; animation: dotFloat 13s ease-in-out infinite 0.3s; }
.hero-dot:nth-child(7) { top: 18%; right: 5%; animation: dotFloat 8s ease-in-out infinite 2.5s; }
.hero-dot:nth-child(8) { top: 35%; right: 15%; animation: dotFloat 10s ease-in-out infinite 1s; }
.hero-dot:nth-child(9) { top: 22%; right: 25%; animation: dotFloat 14s ease-in-out infinite 0.8s; }
.hero-dot:nth-child(10) { top: 40%; right: 8%; animation: dotFloat 9s ease-in-out infinite 3s; }
.hero-dot:nth-child(11) { top: 45%; left: 12%; animation: dotFloat 11s ease-in-out infinite 2s; }
.hero-dot:nth-child(12) { top: 55%; left: 3%; animation: dotFloat 12s ease-in-out infinite 1.2s; }
.hero-dot:nth-child(13) { top: 60%; right: 20%; animation: dotFloat 10s ease-in-out infinite 0.6s; }
.hero-dot:nth-child(14) { top: 50%; right: 5%; animation: dotFloat 8s ease-in-out infinite 2.8s; }
.hero-dot:nth-child(15) { top: 70%; left: 18%; animation: dotFloat 13s ease-in-out infinite 1.8s; }

@keyframes dotFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.15;
  }
  50% {
    transform: translateY(-20px) scale(1.3);
    opacity: 0.35;
  }
}

[data-theme="dark"] .hero-dot {
  animation-name: dotFloatDark;
}

@keyframes dotFloatDark {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.4;
  }
  50% {
    transform: translateY(-20px) scale(1.3);
    opacity: 0.7;
  }
}

/* Trading candles animation */
.hero-candles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.08;
}

[data-theme="dark"] .hero-candles {
  opacity: 0.15;
}

.candle {
  position: absolute;
  width: 6px;
  border-radius: 1px;
  animation: candleAppear 5s ease-in-out infinite;
}

.candle::before,
.candle::after {
  content: '';
  position: absolute;
  width: 1px;
  left: 50%;
  transform: translateX(-50%);
}

.candle.green {
  background: #22C55E;
}
.candle.green::before { background: #22C55E; top: -6px; height: 6px; }
.candle.green::after { background: #22C55E; bottom: -4px; height: 4px; }

.candle.red {
  background: #EF4444;
}
.candle.red::before { background: #EF4444; top: -4px; height: 4px; }
.candle.red::after { background: #EF4444; bottom: -6px; height: 6px; }

/* Position candles */
.candle:nth-child(1) { left: 3%; top: 15%; height: 25px; animation-delay: 0s; }
.candle:nth-child(2) { left: 5%; top: 28%; height: 18px; animation-delay: 0.7s; }
.candle:nth-child(3) { left: 7%; top: 20%; height: 30px; animation-delay: 1.4s; }
.candle:nth-child(4) { left: 9%; top: 35%; height: 22px; animation-delay: 2.1s; }
.candle:nth-child(5) { left: 11%; top: 25%; height: 28px; animation-delay: 2.8s; }
.candle:nth-child(6) { right: 3%; top: 12%; height: 32px; animation-delay: 0.3s; }
.candle:nth-child(7) { right: 5%; top: 25%; height: 20px; animation-delay: 1s; }
.candle:nth-child(8) { right: 7%; top: 18%; height: 26px; animation-delay: 1.7s; }
.candle:nth-child(9) { right: 9%; top: 32%; height: 24px; animation-delay: 2.4s; }
.candle:nth-child(10) { right: 11%; top: 22%; height: 30px; animation-delay: 3.1s; }
.candle:nth-child(11) { left: 15%; bottom: 25%; height: 22px; animation-delay: 3.5s; }
.candle:nth-child(12) { right: 15%; bottom: 20%; height: 28px; animation-delay: 4s; }

@keyframes candleAppear {
  0%, 100% {
    opacity: 0;
    transform: scaleY(0.3) translateY(10px);
  }
  15%, 85% {
    opacity: 1;
    transform: scaleY(1) translateY(0);
  }
}

/* Hero content */
.hero > .container {
  position: relative;
  z-index: 2;
}

/* Hero Grid - Two columns */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

.hero-grid-single {
  grid-template-columns: 1fr;
  margin: 0 auto;
}

.hero-grid-single .hero-content {
  max-width: 100%;
  text-align: center;
}

.hero-grid-single .hero-title {
  margin-left: auto;
  margin-right: auto;
}

.hero-content {
  max-width: 800px;
}

.hero-title {
  margin: 0 0 var(--space-8) 0;
}

/* Glass Card */
.hero-glass-card {
  padding: var(--space-8);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-2xl);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  text-align: left;
}

.hero-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-6);
}

.hero-card-col .hero-card-text {
  margin-bottom: 0;
}

[data-theme="dark"] .hero-glass-card {
  background: rgba(25, 25, 25, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
}

.hero-card-title {
  font-size: var(--text-h4);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-5);
}

.hero-card-text {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-5);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-body-sm);
  color: var(--color-text-secondary);
}

.trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
}

/* Orbit Rings (replaces bitcoin coin) */
.hero-bitcoin {
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-animation {
  width: 320px;
  height: 320px;
  position: relative;
  border-radius: 50%;
  isolation: isolate;
}

/* Shared ring base (2 pseudo rings + 1 inner span = 3 rings) */
.orbit-animation::before,
.orbit-animation::after,
.orbit-animation .orbit-ring {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;

  /* Fallback ring stroke */
  border: 1px solid rgba(15, 183, 128, 0.22);
  border-color: color-mix(in srgb, var(--color-primary) 35%, transparent);

  /* Rotating “orbit” highlight */
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 250deg,
    rgba(15, 183, 128, 0.65) 285deg,
    transparent 320deg,
    transparent 360deg
  );
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 250deg,
    color-mix(in srgb, var(--color-primary) 70%, transparent) 285deg,
    transparent 320deg,
    transparent 360deg
  );

  /* Mask to keep highlight as a thin ring */
  -webkit-mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 2px),
    #000 calc(100% - 2px)
  );
  mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 2px),
    #000 calc(100% - 2px)
  );

  opacity: 0.55;
  animation:
    orbitRotate 9s linear infinite,
    orbitPulse 4.5s ease-in-out infinite;

  /* Subtle glow */
  filter: drop-shadow(0 0 14px rgba(15, 183, 128, 0.16));
}

/* Ring variants */
.orbit-animation::before {
  inset: 12%;
  opacity: 0.45;
  animation-duration: 11s, 5.2s;
}

.orbit-animation::after {
  inset: 26%;
  opacity: 0.35;
  animation-duration: 13s, 6s;
  animation-direction: reverse, alternate;
}

.orbit-animation .orbit-ring {
  inset: 0;
  opacity: 0.6;
  animation-duration: 8s, 4.2s;
}

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .orbit-animation::before,
  .orbit-animation::after,
  .orbit-animation .orbit-ring {
    animation: none !important;
  }
}

/* Hero responsive */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  
  .hero-card-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .orbit-animation {
    width: 240px;
    height: 240px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: calc(var(--header-height-mobile) + var(--space-8));
    padding-bottom: var(--space-8);
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-glass-card {
    text-align: center;
    padding: var(--space-5);
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-trust {
    justify-content: center;
    flex-direction: column;
    gap: var(--space-3);
    align-items: center;
  }
  
  .orbit-animation {
    width: 160px;
    height: 160px;
  }
}

/* ============================================
   2. TRADING INSTRUMENTS SECTION
   ============================================ */
/* TradingView Widget Section - connected to instruments */
.tradingview-section {
  padding: var(--space-4) 0 var(--space-12) 0;
  background: var(--color-bg-primary);
}

.tradingview-section .section-header {
  margin-bottom: var(--space-4);
}

.tradingview-section .section-label {
  margin-bottom: var(--space-2);
}

.tradingview-section .section-title {
  font-size: var(--text-h4);
  margin-bottom: 0;
}

.tradingview-widget-container {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Remove bottom padding from instruments section */
.instruments {
  padding-bottom: var(--space-8);
}

/* ============================================
   ANIMATED BACKGROUNDS FOR SECTIONS
   ============================================ */

/* Animated crypto icons background */
.section-bg-crypto {
  position: relative;
  overflow: hidden;
}

.section-bg-crypto::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath fill='%23666' fill-opacity='0.03' d='M30 5c-13.8 0-25 11.2-25 25s11.2 25 25 25 25-11.2 25-25-11.2-25-25-25zm0 44c-10.5 0-19-8.5-19-19s8.5-19 19-19 19 8.5 19 19-8.5 19-19 19z'/%3E%3C/svg%3E");
  opacity: 0.5;
  animation: floatBg 60s linear infinite;
  pointer-events: none;
}

[data-theme="dark"] .section-bg-crypto::before {
  background-image: 
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath fill='%23D4AF37' fill-opacity='0.03' d='M30 5c-13.8 0-25 11.2-25 25s11.2 25 25 25 25-11.2 25-25-11.2-25-25-25zm0 44c-10.5 0-19-8.5-19-19s8.5-19 19-19 19 8.5 19 19-8.5 19-19 19z'/%3E%3C/svg%3E");
}

@keyframes floatBg {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 200px 200px;
  }
}

/* Animated chart lines background */
.section-bg-chart {
  position: relative;
  overflow: hidden;
}

.section-bg-chart::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 100px,
      rgba(128, 128, 128, 0.03) 100px,
      rgba(128, 128, 128, 0.03) 101px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 50px,
      rgba(128, 128, 128, 0.03) 50px,
      rgba(128, 128, 128, 0.03) 51px
    );
  pointer-events: none;
}

/* Animated rising lines */
.section-bg-lines {
  position: relative;
  overflow: hidden;
}

.section-bg-lines::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(
    0deg,
    rgba(34, 197, 94, 0.05) 0%,
    transparent 100%
  );
  clip-path: polygon(
    0% 100%,
    10% 80%,
    20% 85%,
    30% 60%,
    40% 70%,
    50% 40%,
    60% 55%,
    70% 30%,
    80% 45%,
    90% 20%,
    100% 35%,
    100% 100%
  );
  animation: riseChart 10s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes riseChart {
  0% {
    opacity: 0.3;
    transform: translateY(10px);
  }
  100% {
    opacity: 0.6;
    transform: translateY(-10px);
  }
}

/* ============================================
   3. STATISTICS SECTION
   ============================================ */
.stats {
  background-color: var(--color-bg-primary);
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}

.stat-card {
  text-align: center;
  padding: var(--space-6);
}

.stat-value {
  font-family: var(--font-primary);
  font-size: var(--text-display-2);
  font-weight: var(--weight-bold);
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
  
  .stat-value {
    font-size: var(--text-h1);
  }
}

/* ============================================
   4. FEATURES SECTION
   ============================================ */
.features {
  background-color: var(--color-bg-secondary);
}

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

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

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   5. TRADING INSTRUMENTS SECTION
   ============================================ */
.instruments {
  background-color: var(--color-bg-primary);
}

.instruments-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.instruments-tab {
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
  background: none;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

.instruments-tab:hover {
  color: var(--color-text-primary);
  border-color: var(--color-border-medium);
}

.instruments-tab.active {
  color: var(--color-text-primary);
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.instruments-content {
  display: none;
}

.instruments-content.active {
  display: block;
  animation: fadeIn var(--duration-normal) var(--ease-out);
}

.instruments-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.instrument-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background-color: var(--color-bg-elevated);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  transition: var(--transition-fast);
}

.instrument-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.instrument-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background-color: var(--color-bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-caption);
  font-weight: var(--weight-bold);
  color: var(--color-text-secondary);
}

.instrument-name {
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
  font-size: var(--text-body-sm);
}

.instrument-pair {
  font-size: var(--text-caption);
  color: var(--color-text-muted);
}

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

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

/* ============================================
   6. PLATFORM PREVIEW SECTION
   ============================================ */
.platform {
  background-color: var(--color-bg-secondary);
  overflow: hidden;
}

.platform-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-12);
  align-items: center;
}

.platform-features {
  list-style: none;
  padding: 0;
  margin: var(--space-6) 0;
}

.platform-feature {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  font-size: var(--text-body);
  color: var(--color-text-secondary);
}

.platform-feature svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
}

.platform-preview {
  position: relative;
}

.platform-image {
  width: 100%;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
}

/* Platform image with breathing animation - no borders/shadows */
.platform-image-breathe {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@media (max-width: 768px) {
  .platform-grid {
    grid-template-columns: 1fr;
  }
  
  .platform-preview {
    order: -1;
  }
}

/* ============================================
   7. HOW IT WORKS SECTION
   ============================================ */
.how-it-works {
  background-color: var(--color-bg-primary);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  position: relative;
}

/* Connecting line - positioned BEHIND the circles */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(16.66% + 40px);
  right: calc(16.66% + 40px);
  height: 3px;
  background: var(--color-border-light);
  z-index: 0;
}

/* Gradient overlay on line */
.steps-grid::after {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(16.66% + 40px);
  right: calc(16.66% + 40px);
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--color-primary) 0%,
    var(--color-primary-gradient-2) 50%,
    var(--color-primary) 100%
  );
  z-index: 0;
  animation: lineProgress 3s ease-in-out infinite;
}

@keyframes lineProgress {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin-bottom: var(--space-4);
  font-family: var(--font-primary);
  font-size: var(--text-h2);
  font-weight: var(--weight-bold);
  color: var(--color-primary);
  background-color: var(--color-bg-primary);
  border: 3px solid var(--color-primary);
  border-radius: var(--radius-full);
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 8px var(--color-bg-primary);
}

[data-theme="dark"] .step-number {
  background-color: var(--color-bg-secondary);
  box-shadow: 0 0 0 8px var(--color-bg-secondary);
}

.step-title {
  font-size: var(--text-h5);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.step-description {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  max-width: 280px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  
  .steps-grid::before,
  .steps-grid::after {
    display: none;
  }
  
  .step-number {
    box-shadow: none;
  }
}

/* ============================================
   8. TESTIMONIALS SECTION
   ============================================ */
.testimonials {
  background-color: var(--color-bg-secondary);
}

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

.testimonial-card {
  padding: var(--space-6);
  background-color: var(--color-bg-elevated);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border-light);
  transition: var(--transition-normal);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-primary);
}

.testimonial-stars {
  display: flex;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
}

.testimonial-stars svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
  fill: var(--color-primary);
}

.testimonial-text {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-5);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background-color: var(--color-bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
}

.testimonial-info {
  flex: 1;
}

.testimonial-name {
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  font-size: var(--text-body);
}

.testimonial-role {
  font-size: var(--text-body-sm);
  color: var(--color-text-muted);
}

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

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   9. NEWS SECTION
   ============================================ */
.news {
  background-color: var(--color-bg-primary);
}

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

.news-card {
  background-color: var(--color-bg-elevated);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  transition: var(--transition-normal);
}

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

.news-image {
  aspect-ratio: 16/9;
  background-color: var(--color-bg-tertiary);
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

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

.news-content {
  padding: var(--space-5);
}

.news-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.news-category {
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  color: var(--color-primary);
  text-transform: uppercase;
}

.news-date {
  font-size: var(--text-caption);
  color: var(--color-text-muted);
}

.news-title {
  font-size: var(--text-h5);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
  line-height: var(--leading-snug);
}

.news-excerpt {
  font-size: var(--text-body-sm);
  color: var(--color-text-secondary);
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   10. CTA SECTION
   ============================================ */
.cta {
  position: relative;
  padding: var(--space-20) 0;
  background: linear-gradient(
    135deg,
    var(--color-bg-tertiary) 0%,
    rgba(var(--color-accent-soft-blue-rgb), 0.1) 100%
  );
  overflow: hidden;
}

[data-theme="dark"] .cta {
  background: linear-gradient(
    135deg,
    var(--color-bg-secondary) 0%,
    rgba(var(--color-accent-soft-blue-rgb), 0.15) 100%
  );
}

.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: var(--text-h1);
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}

.cta-subtitle {
  font-size: var(--text-body-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
}

.cta-form {
  display: flex;
  gap: var(--space-3);
  max-width: 450px;
  margin: 0 auto var(--space-4);
}

.cta-form input {
  flex: 1;
  padding: var(--space-4);
  font-size: var(--text-body);
  background-color: var(--color-bg-primary);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
}

.cta-form input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.15);
}

.cta-trust {
  font-size: var(--text-body-sm);
  color: var(--color-text-muted);
}

/* CTA decorative elements */
.cta-decoration {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: var(--radius-full);
  background: radial-gradient(
    circle,
    rgba(var(--color-accent-soft-blue-rgb), 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.cta-decoration-1 {
  top: -100px;
  right: -100px;
}

.cta-decoration-2 {
  bottom: -100px;
  left: -100px;
}

@media (max-width: 768px) {
  .cta {
    padding: var(--space-16) 0;
  }
  
  .cta-title {
    font-size: var(--text-h2);
  }
  
  .cta-form {
    flex-direction: column;
  }
}

