/* static/css/pages/home.css */
/* Modern Public Homepage Styles */

.nptor-home {
  color: var(--nptor-text, #0f172a);
}

.nptor-section {
  padding: 4.5rem 1.25rem;
}

.nptor-container {
  max-width: 1180px;
  margin: 0 auto;
}

.nptor-hero {
  border-radius: 1.5rem;
  padding: 4.5rem 2rem;
  background: linear-gradient(135deg, var(--nptor-surface, #ffffff) 0%, var(--nptor-surface-soft, #f1f5f9) 100%);
  overflow: hidden;
  border: 1px solid var(--nptor-border, #e2e8f0);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.nptor-eyebrow {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--nptor-primary, #2563eb);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nptor-hero h1 {
  max-width: 820px;
  margin: 1rem auto;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.1;
  font-weight: 850;
  color: var(--nptor-text, #0f172a);
}

.nptor-hero p {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--nptor-text-muted, #64748b);
}

.nptor-grid {
  display: grid;
  gap: 1.35rem;
}

.nptor-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nptor-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nptor-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nptor-card {
  height: 100%;
  padding: 1.8rem;
  border: 1px solid var(--nptor-border, #e2e8f0);
  border-radius: 1rem;
  background: var(--nptor-surface, #ffffff);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.nptor-card h3 {
  margin-top: 0.8rem;
  font-weight: 800;
  color: var(--nptor-text, #0f172a);
}

.nptor-card p {
  color: var(--nptor-text-muted, #64748b);
  line-height: 1.6;
}

.nptor-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  background: rgba(37, 99, 235, 0.08);
  color: var(--nptor-primary, #2563eb);
  font-size: 1.3rem;
}

.nptor-audience:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}

.nptor-checklist {
  padding-left: 1.2rem;
  margin: 1rem 0;
  color: var(--nptor-text-secondary, #475569);
}

.nptor-checklist li {
  margin: 0.7rem 0;
}

.nptor-checklist li::marker {
  color: var(--nptor-primary, #2563eb);
}

.nptor-step {
  text-align: center;
}

.nptor-step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--nptor-primary, #2563eb);
  color: #ffffff;
  font-weight: 850;
  font-size: 1.1rem;
}

.nptor-compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--nptor-surface, #ffffff);
  border: 1px solid var(--nptor-border, #e2e8f0);
  border-radius: 1rem;
  overflow: hidden;
}

.nptor-compare th,
.nptor-compare td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--nptor-border, #e2e8f0);
  text-align: left;
}

.nptor-compare th {
  font-weight: 800;
  color: var(--nptor-text, #0f172a);
  background: var(--nptor-surface-soft, #f8fafc);
}

.nptor-compare td {
  color: var(--nptor-text-secondary, #475569);
}

.nptor-cta {
  padding: 3.5rem 2rem;
  border-radius: 1.4rem;
  color: #ffffff;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.25);
}

.nptor-cta h2,
.nptor-cta p {
  color: #ffffff !important;
}

.nptor-cta p {
  opacity: 0.94;
}

/* =====================================================
   DARK MODE OVERRIDES
   ===================================================== */

html[data-theme="dark"] .nptor-hero,
:root[data-theme="dark"] .nptor-hero {
  background: linear-gradient(135deg, #111827 0%, #1e293b 100%);
  border-color: #334155;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .nptor-hero h1,
:root[data-theme="dark"] .nptor-hero h1 {
  color: #f8fafc;
}

html[data-theme="dark"] .nptor-hero p,
:root[data-theme="dark"] .nptor-hero p {
  color: #94a3b8;
}

html[data-theme="dark"] .nptor-eyebrow,
:root[data-theme="dark"] .nptor-eyebrow {
  background: rgba(59, 130, 246, 0.16);
  color: #60a5fa;
}

html[data-theme="dark"] .nptor-card,
:root[data-theme="dark"] .nptor-card {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .nptor-card h3,
:root[data-theme="dark"] .nptor-card h3 {
  color: #f8fafc;
}

html[data-theme="dark"] .nptor-card p,
:root[data-theme="dark"] .nptor-card p {
  color: #94a3b8;
}

html[data-theme="dark"] .nptor-icon,
:root[data-theme="dark"] .nptor-icon {
  background: rgba(59, 130, 246, 0.16);
  color: #60a5fa;
}

html[data-theme="dark"] .nptor-checklist,
:root[data-theme="dark"] .nptor-checklist {
  color: #cbd5e1;
}

html[data-theme="dark"] .nptor-compare,
:root[data-theme="dark"] .nptor-compare {
  background: #1e293b;
  border-color: #334155;
}

html[data-theme="dark"] .nptor-compare th,
:root[data-theme="dark"] .nptor-compare th {
  background: #111827;
  color: #f8fafc;
  border-bottom-color: #334155;
}

html[data-theme="dark"] .nptor-compare td,
:root[data-theme="dark"] .nptor-compare td {
  border-bottom-color: #334155;
  color: #cbd5e1;
}

/* =====================================================
   RESPONSIVE BEHAVIOR
   ===================================================== */

@media (max-width: 900px) {
  .nptor-grid-4,
  .nptor-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .nptor-section {
    padding: 3rem 1rem;
  }
  .nptor-hero {
    padding: 3rem 1.2rem;
  }
  .nptor-grid-2,
  .nptor-grid-3,
  .nptor-grid-4 {
    grid-template-columns: 1fr;
  }
  .nptor-compare {
    font-size: 0.9rem;
  }
  .nptor-compare th,
  .nptor-compare td {
    padding: 0.75rem 0.55rem;
  }
}
