/* Nivaan Business Portal - Enterprise B2B Stylesheet */
:root {
  --navy-950: #060d1f;
  --navy-900: #0b132b;
  --navy-800: #132043;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #eff6ff;
  --accent: #d97706;
  --accent-soft: #fef3c7;
  --success: #059669;
  --success-soft: #ecfdf5;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --white: #ffffff;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px -10px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 24px 48px -12px rgba(11, 19, 43, 0.22);
  --max-w: 1220px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--slate-900);
  background: var(--slate-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.18rem;
  color: var(--navy-900);
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy-900), var(--primary));
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
}

.brand-img {
  height: 46px;
  width: 46px;
  border-radius: 10px;
  object-fit: contain;
  background: var(--white);
  border: 1px solid var(--slate-200);
  padding: 2px;
  flex-shrink: 0;
}

.brand-sub {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--slate-500);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: -2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--slate-700);
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--primary-soft);
  color: var(--primary);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--slate-900);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.94rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: var(--slate-200);
  color: var(--slate-900);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--white);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* Hero */
.hero {
  background: radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.26), transparent 45%),
              linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
  color: var(--white);
  padding: 84px 0 92px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: #93c5fd;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  line-height: 1.14;
  margin: 0 0 18px;
  letter-spacing: -0.025em;
}

.hero p {
  color: #cbd5e1;
  font-size: 1.08rem;
  margin: 0 0 30px;
  max-width: 600px;
}

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

.hero-panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}

.hero-panel h3 {
  margin: 0 0 14px;
  font-size: 1.1rem;
  color: var(--white);
}

.hero-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.hero-checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.92rem;
  color: #e2e8f0;
}

.hero-checklist span.dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 0.78rem;
}

/* Stats Strip */
.stats-strip {
  margin-top: -42px;
  position: relative;
  z-index: 10;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-md);
}

.stat-value {
  font-size: 1.95rem;
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--slate-600);
  margin-top: 6px;
}

/* Page Header Banner */
.page-banner {
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-800) 100%);
  color: var(--white);
  padding: 58px 0;
}

.page-banner h1 {
  margin: 0 0 10px;
  font-size: clamp(1.85rem, 3.4vw, 2.65rem);
  letter-spacing: -0.02em;
}

.page-banner p {
  margin: 0;
  color: #cbd5e1;
  max-width: 680px;
  font-size: 1.03rem;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--white);
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 8px;
}

.section-title {
  margin: 0 0 8px;
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  letter-spacing: -0.02em;
  color: var(--navy-900);
}

.section-subtitle {
  margin: 0;
  color: var(--slate-600);
  max-width: 640px;
}

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

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.card-media {
  aspect-ratio: 16 / 9;
  background: var(--navy-900);
  overflow: hidden;
  position: relative;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 12px;
}

.card-badge-amber {
  background: var(--accent-soft);
  color: #b45309;
}

.card-title {
  margin: 0 0 10px;
  font-size: 1.16rem;
  color: var(--navy-900);
  line-height: 1.3;
}

.card-text {
  margin: 0 0 16px;
  color: var(--slate-600);
  font-size: 0.94rem;
  flex: 1;
}

.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 8px;
  font-size: 0.89rem;
  color: var(--slate-700);
}

.feature-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.feature-list li::before {
  content: "✓";
  color: var(--success);
  font-weight: 800;
}

.card-footer {
  padding-top: 16px;
  border-top: 1px solid var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.price-tag {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy-900);
}

/* Filter Pills */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.filter-pill {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slate-700);
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
}

/* Clients */
.client-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.client-logo-wrap {
  border-radius: 10px;
  overflow: hidden;
  background: var(--slate-50);
  border: 1px solid var(--slate-100);
}

.client-logo-wrap img {
  width: 100%;
  height: 92px;
  object-fit: contain;
}

/* Gallery */
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--slate-200);
  background: var(--white);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-meta {
  padding: 16px 18px;
}

.gallery-meta h4 {
  margin: 6px 0 4px;
  font-size: 1.02rem;
}

.gallery-meta p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--slate-600);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(6, 13, 31, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 999;
}

.lightbox.open {
  display: flex;
}

.lightbox-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 860px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 23, 42, 0.8);
  color: var(--white);
  font-size: 1.3rem;
  cursor: pointer;
}

/* Forms & Alerts */
.form-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slate-700);
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--slate-900);
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.94rem;
  font-weight: 500;
  border: 1px solid transparent;
}

.alert-success {
  background: var(--success-soft);
  color: #065f46;
  border-color: #a7f3d0;
}

.alert-danger {
  background: var(--danger-soft);
  color: #991b1b;
  border-color: #fecaca;
}

.alert-warning {
  background: var(--accent-soft);
  color: #92400e;
  border-color: #fde68a;
}

/* Prose (About / Privacy Policy) */
.prose-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
}

.prose-card h2, .prose-card h3 {
  color: var(--navy-900);
  margin-top: 26px;
}

.prose-card h3:first-child {
  margin-top: 0;
}

.prose-card p, .prose-card li {
  color: var(--slate-700);
}

.prose-card a {
  color: var(--primary);
  text-decoration: underline;
}

/* FAQ Accordion */
.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 18px 22px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy-900);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--primary);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 12px 0 0;
  color: var(--slate-600);
  font-size: 0.94rem;
}

/* CTA Banner */
.cta-band {
  background: linear-gradient(135deg, var(--navy-900), var(--primary-dark));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.cta-band h2 {
  margin: 0 0 8px;
  font-size: 1.75rem;
}

.cta-band p {
  margin: 0;
  color: #dbeafe;
  max-width: 600px;
}

/* Footer */
.site-footer {
  background: var(--navy-950);
  color: #cbd5e1;
  padding: 64px 0 28px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 36px;
  padding-bottom: 42px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-title {
  color: var(--white);
  font-size: 0.96rem;
  font-weight: 700;
  margin: 0 0 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  font-size: 0.86rem;
  color: #94a3b8;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .hero-grid, .grid-3, .grid-4, .stats-grid, .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--slate-200);
    padding: 16px 20px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .hero-grid, .grid-3, .grid-2, .grid-4, .stats-grid, .footer-grid, .form-grid {
    grid-template-columns: 1fr;
  }
  .stats-strip {
    margin-top: 24px;
  }
  .prose-card {
    padding: 24px;
  }
}
