/* ============================================================
   HOME.CSS — Landing page: hero, stats, capabilities, featured
   ============================================================ */

/* --- Hero -------------------------------------------------- */
.hero {
  background: linear-gradient(150deg, #1E1B4B 0%, #312E81 45%, #4F46E5 75%, #06B6D4 100%);
  color: white;
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}

/* Subtle grid overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* Decorative glow */
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6,182,212,0.35) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 64px;
}

.hero-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 3px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 2px;
  color: white;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  animation: fadeInScale 0.6s cubic-bezier(0.16,1,0.3,1) both;
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

.hero-content { animation: fadeInUp 0.65s ease-out 0.15s both; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
}

.hero h1 {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 12px;
  color: white;
}

.hero-subtitle {
  font-size: 22px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  margin-bottom: 20px;
  letter-spacing: -0.2px;
}

.hero-description {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Hero-specific button overrides */
.hero .btn-primary {
  background: white;
  color: var(--jpm-primary);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.hero .btn-primary:hover {
  background: #f0f4f8;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* --- Stats Strip ------------------------------------------- */
.stats-strip {
  background: white;
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.stats-inner {
  display: flex;
  align-items: stretch;
}

.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 28px 20px;
  text-align: center;
  border-right: 1px solid var(--border-light);
}
.stat-item:last-child { border-right: none; }

.stat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stat-value {
  font-size: 17px;
  font-weight: 700;
  color: var(--jpm-primary);
  letter-spacing: -0.2px;
}

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

.capability-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.capability-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--jpm-primary), var(--jpm-accent));
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.capability-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border);
}
.capability-card:hover::before { transform: scaleX(1); }

.cap-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(79,70,229,0.08), rgba(6,182,212,0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--jpm-primary);
}

.capability-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

.capability-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* --- Featured Work ----------------------------------------- */
.featured-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.featured-card-content {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.featured-card-content .tag { align-self: flex-start; }

.featured-card-content h3 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--text-primary);
  line-height: 1.3;
}

.featured-card-content p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

.featured-visual {
  background: linear-gradient(135deg, #312E81 0%, #06B6D4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  position: relative;
  overflow: hidden;
}

/* Decorative bar chart illustration */
.visual-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 20px;
}

.visual-bar {
  width: 28px;
  border-radius: 4px 4px 0 0;
  background: rgba(255,255,255,0.15);
  position: relative;
  transition: background 0.3s;
}

.visual-bar.highlight { background: rgba(255,255,255,0.7); }

.visual-bar-label {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
}

/* --- CTA Band ---------------------------------------------- */
.cta-band {
  background: linear-gradient(135deg, #1E1B4B 0%, #312E81 50%, #4F46E5 100%);
  color: white;
  padding: 72px 0;
  text-align: center;
  margin-top: 0;
}

.cta-band h2 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.cta-band p {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
}

/* --- Responsive -------------------------------------------- */
@media (max-width: 960px) {
  .hero-inner { flex-direction: column; align-items: flex-start; gap: 32px; }
  .hero h1 { font-size: 40px; }
  .capability-grid { grid-template-columns: 1fr 1fr; }
  .featured-card { grid-template-columns: 1fr; }
  .featured-visual { min-height: 180px; }
}

@media (max-width: 640px) {
  .hero { padding: 64px 0 56px; }
  .hero h1 { font-size: 32px; }
  .hero-subtitle { font-size: 18px; }
  .hero-avatar { width: 88px; height: 88px; font-size: 30px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .capability-grid { grid-template-columns: 1fr; }
  .stats-inner { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border-light); padding: 20px; }
  .stat-item:last-child { border-bottom: none; }
  .featured-card-content { padding: 32px 24px; }
  .cta-band h2 { font-size: 26px; }
}
