/* Cipher-Tracer homepage — styles not in legacy Next CSS bundle */

/* Hero */
.ct-hero {
  background: #0b1120;
  background-image: radial-gradient(circle at top right, rgba(37, 99, 235, 0.35), transparent 45%);
  color: #fff;
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}

.ct-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 58, 138, 0.75));
  pointer-events: none;
}

.ct-hero-wrap {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.ct-hero-inner {
  display: flex;
  gap: 48px;
  align-items: center;
}

.ct-hero-text {
  flex: 1;
  min-width: 0;
}

.ct-hero-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 20px;
  color: #f8fafc;
}

.ct-hero-desc {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin: 0 0 32px;
}

.ct-hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.ct-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2563eb;
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.ct-btn-primary:hover {
  background: #1d4ed8;
}

.ct-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.ct-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.ct-hero-stats {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  min-width: 280px;
}

.ct-stat-card {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  padding: 20px;
}

.ct-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.ct-stat-label {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-top: 6px;
}

.ct-ticker {
  margin-top: 40px;
  background: rgba(220, 38, 38, 0.28);
  border: 1px solid rgba(252, 165, 165, 0.45);
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 0.875rem;
  color: #fee2e2;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  align-items: center;
}

.ct-ticker-label {
  font-weight: 700;
  color: #fecaca;
}

/* Sections */
.ct-section {
  padding: 64px 0;
}

.ct-section--white {
  background: #fff;
}

.ct-section--muted {
  background: #f1f5f9;
}

.ct-section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.ct-section-head {
  text-align: center;
  margin-bottom: 40px;
}

.ct-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.ct-badge--blue {
  background: #dbeafe;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.ct-badge--green {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.ct-section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 16px;
  line-height: 1.25;
}

.ct-section-desc {
  font-size: 1.0625rem;
  color: #475569;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Live updates */
.ct-updates-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 40px;
}

.ct-updates-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.ct-updates-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
}

.ct-updates-dot {
  width: 12px;
  height: 12px;
  background: #22c55e;
  border-radius: 50%;
  flex-shrink: 0;
}

.ct-updates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ct-update-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.875rem;
  color: #334155;
  line-height: 1.5;
}

/* KPI row */
.ct-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.ct-kpi {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ct-kpi-value {
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.ct-kpi-label {
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 8px;
}

.ct-kpi-trend {
  font-size: 0.75rem;
  color: #16a34a;
  font-weight: 600;
  margin-top: 10px;
}

/* Red CTA */
.ct-cta {
  background: linear-gradient(135deg, #dc2626, #ea580c);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}

.ct-cta-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.ct-cta-eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #fff;
}

.ct-cta-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 16px;
  color: #fff;
}

.ct-cta-desc {
  font-size: 1rem;
  color: #fecaca;
  margin: 0 0 28px;
  line-height: 1.6;
}

.ct-cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.ct-btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #dc2626;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.ct-btn-white:hover {
  background: #fef2f2;
}

.ct-btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  background: transparent;
  transition: background 0.2s;
}

.ct-btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.12);
}

.ct-cta-badges {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: #fecaca;
}

/* Video */
.ct-video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.ct-video-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.ct-video-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ct-video-card iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
}

.ct-video-info {
  padding: 16px 18px;
}

.ct-video-title {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 4px;
}

.ct-video-meta {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}

.ct-callout {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 28px;
  background: #f8fafc;
  text-align: center;
}

.ct-callout p {
  color: #334155;
  margin: 0 0 20px;
  font-size: 1rem;
}

/* Cards grid */
.ct-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ct-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 28px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.ct-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 12px;
}

.ct-card-text {
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 16px;
}

.ct-card-author {
  font-weight: 600;
  color: #0f172a;
  margin: 0;
  font-size: 0.9375rem;
}

.ct-link {
  color: #2563eb;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.ct-link:hover {
  text-decoration: underline;
}

.ct-center {
  text-align: center;
  margin-top: 32px;
}

.ct-btn-blue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2563eb;
  color: #fff;
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.ct-btn-blue:hover {
  background: #1d4ed8;
}

/* Responsive */
@media (max-width: 1024px) {
  .ct-hero-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .ct-hero-stats {
    width: 100%;
  }

  .ct-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ct-updates-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .ct-hero {
    padding: 56px 0 48px;
  }

  .ct-hero-stats {
    grid-template-columns: 1fr;
  }

  .ct-updates-grid,
  .ct-video-grid,
  .ct-grid-3 {
    grid-template-columns: 1fr;
  }

  .ct-video-grid-2,
  .ct-stats-grid {
    grid-template-columns: 1fr;
  }

  .ct-section {
    padding: 48px 0;
  }
}
