/* ═══════════════════════ CODEPRIZM LANDING — CUSTOM STYLES ═══════════════════════ */

/* ── Hero grid background ── */
.hero-grid {
  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: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 100%);
}

/* ── Navigation ── */
#navbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.nav-link {
  color: #475569;
}
.nav-link:hover {
  color: #1A365D;
}
#mobile-toggle {
  color: #1A365D;
}

/* ── Problem cards ── */
.problem-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.problem-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* ── Platform cards ── */
.platform-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.platform-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

/* ── Metric cards (dark section) ── */
.metric-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  transition: background 0.2s;
}
.metric-card:hover {
  background: rgba(255, 255, 255, 0.07);
}

/* ── Step cards ── */
.step-card {
  position: relative;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.75rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.step-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.step-number {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1;
  color: #EBF0F7;
  margin-bottom: 0.75rem;
}

/* ── Lineage visualization ── */
.lineage-node {
  padding: 0.625rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-family: 'JetBrains Mono', monospace;
  text-align: center;
  font-weight: 500;
}
.lineage-arrow {
  width: 2px;
  height: 16px;
  background: #cbd5e1;
  margin: 0 auto;
  position: relative;
}
.lineage-arrow::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #cbd5e1;
}

/* ── Stat cards ── */
.stat-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

/* ── Sample cards ── */
.sample-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.75rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.sample-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.sample-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #2B6CB0;
  transition: background 0.15s, color 0.15s;
}
.sample-link::before {
  content: '\2192';
  font-size: 0.8em;
  opacity: 0.6;
}
.sample-link:hover {
  background: #EBF0F7;
  color: #1A365D;
}

/* ── Use case cards ── */
.usecase-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.usecase-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.usecase-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* ── Pricing cards ── */
.pricing-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 2rem;
  text-align: left;
  transition: transform 0.2s, box-shadow 0.2s;
}
.pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

/* ── Scroll-triggered fade-up animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }

/* ── Smooth scroll ── */
html {
  scroll-behavior: smooth;
}

/* ── Selection color ── */
::selection {
  background: #2B6CB0;
  color: white;
}
