 /* =========================
   CSS VARIABLES — home page match
========================= */
:root {
  --blue: #1a56ff;
  --blue-mid: #4f75ff;
  --blue-light: #e8edff;
  --cyan: #00d4ff;
  --dark: #111320;
  --muted: #6b7280;
  --white: #ffffff;
  --off: #f7f8fc;
  --border: #e2e6f0;
  --live: #10b981;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0; padding: 0;
}

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--dark);
  font-family: 'Inter', system-ui, sans-serif;
}

/* =========================
   HERO
========================= */
.hero {
  background: linear-gradient(135deg, #0d1526 0%, #0f2044 50%, #0a1a3a 100%);
  text-align: center;
  padding: clamp(5rem, 10vw, 9rem) clamp(1.5rem, 5vw, 3rem) clamp(4rem, 8vw, 7rem);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(26,86,255,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 800;
  color: #ffffff !important;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.hero h1 span { color: var(--cyan) !important; }

.hero p {
  max-width: 640px;
  margin: 0 auto;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: rgba(255,255,255,0.65) !important;
  line-height: 1.75;
  font-weight: 300;
  position: relative;
  z-index: 1;
}

/* =========================
   STATS
========================= */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  max-width: 1300px;
  margin: 0 auto;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;

  /* animation initial state — same as original */
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out, border-color 0.25s ease, box-shadow 0.25s ease;
  will-change: opacity, transform;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.stat-card:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 32px rgba(26,86,255,0.1);
  transform: translateY(-4px) !important;
}

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

.stat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.25rem;
}

.icon {
  width: 44px; height: 44px;
  background: var(--blue-light);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s ease;
}

.stat-card:hover .icon { background: var(--blue); }

.icon .bi {
  font-size: 20px;
  color: var(--blue) !important;
  line-height: 1;
  transition: color 0.25s ease;
}

.stat-card:hover .icon .bi { color: #fff !important; }

.stat-head h3 {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted) !important;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-card h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--dark) !important;
  margin: 0 0 4px 0;
  line-height: 1;
}

.stat-card p {
  font-size: 13px;
  color: var(--muted) !important;
  margin: 0;
}

/* Highlight card */
.stat-card.highlight {
  background: var(--dark);
  border-color: rgba(26,86,255,0.3) !important;
}

.stat-card.highlight::before {
  opacity: 1;
}

.stat-card.highlight .stat-head h3 {
  color: rgba(255,255,255,0.5) !important;
}

.stat-card.highlight .icon {
  background: rgba(26,86,255,0.2);
}

.stat-card.highlight .icon .bi {
  color: var(--cyan) !important;
}

.stat-card.highlight h4 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--blue-mid), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 4px 0;
}

.stat-card.highlight p {
  color: rgba(255,255,255,0.4) !important;
}

/* =========================
   DAILY
========================= */
.daily {
  background: var(--off);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
}

.daily h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--dark) !important;
  letter-spacing: -1.5px;
  margin-bottom: 8px;
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
}

.subtitle {
  font-size: 14px;
  color: var(--muted) !important;
  margin-bottom: 2rem;
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
}

.daily-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(1.25rem, 2.5vw, 2rem) clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: 16px;
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
  transition: all 0.25s ease, opacity 0.6s ease-out, transform 0.6s ease-out;
  position: relative;
  overflow: hidden;

  /* animation initial state — same as original */
  opacity: 0;
  transform: translateY(-20px);
  will-change: opacity, transform;
}

.daily-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--blue), var(--cyan));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.daily-card:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 32px rgba(26,86,255,0.08);
  transform: translateY(-2px) !important;
}

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

.left {
  max-width: 70%;
  min-width: 0;
}

.meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.date {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted) !important;
  font-size: 13px;
}

.date .bi {
  font-size: 14px;
  color: var(--blue) !important;
  line-height: 1;
}

.tag {
  background: var(--blue-light);
  color: var(--blue) !important;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
}

.left p {
  font-size: clamp(13px, 1.3vw, 15px);
  line-height: 1.65;
  margin-bottom: 12px;
  color: var(--dark) !important;
  font-weight: 300;
}

.left a {
  color: var(--blue) !important;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s;
}

.left a:hover { opacity: 0.75; }

.right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: right;
  min-width: 120px;
}

.metric small {
  display: block;
  font-size: 11px;
  color: var(--muted) !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.metric strong {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--dark) !important;
  line-height: 1;
}

/* =========================
   ELLIPSIS
========================= */
.ellipsis {
  display: block;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 1440px) {
  .ellipsis { max-width: max-content; text-overflow: clip; }
}

/* =========================
   ANIMATIONS — exactly same as original
========================= */
@keyframes slide-fade-in {
  0%   { opacity: 0; transform: translateY(-30px); }
  100% { opacity: 1; transform: translateY(0); }
}

.stat-card.loaded,
.daily-card.loaded {
  animation: slide-fade-in 0.8s ease-out forwards;
}

.stat-card.loaded:nth-child(1) { animation-delay: 0.1s; }
.stat-card.loaded:nth-child(2) { animation-delay: 0.2s; }
.stat-card.loaded:nth-child(3) { animation-delay: 0.3s; }
.stat-card.loaded:nth-child(4) { animation-delay: 0.4s; }

.daily-card.loaded:nth-child(1) { animation-delay: 0.1s; }
.daily-card.loaded:nth-child(2) { animation-delay: 0.2s; }
.daily-card.loaded:nth-child(3) { animation-delay: 0.3s; }
.daily-card.loaded:nth-child(4) { animation-delay: 0.4s; }
.daily-card.loaded:nth-child(5) { animation-delay: 0.5s; }
.daily-card.loaded:nth-child(6) { animation-delay: 0.6s; }
.daily-card.loaded:nth-child(7) { animation-delay: 0.7s; }

.stat-card.visible,
.daily-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-card.loaded, .stat-card.visible,
.daily-card.loaded, .daily-card.visible {
  will-change: auto;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

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

@media (max-width: 768px) {
  .daily-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .left { max-width: 100%; }
  .right {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    min-width: 0;
  }
  .metric strong { font-size: 2rem; }
  .ellipsis { max-width: 100%; }
}