/* ==========================================================================
   NexusCore Nidhi™ CBS — Marketing Design System
   Owned & Licensed by AiFolks Private Limited
   Palette: Deep Emerald (#007242 / #064e3b) + Bullion Gold (#d9b25d)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
  --emerald-950: #022c22;
  --emerald-900: #064e3b;
  --emerald-800: #065f46;
  --emerald-700: #007242;
  --emerald-600: #059669;
  --emerald-100: #d1fae5;
  --emerald-50: #ecfdf5;

  --gold-600: #b88928;
  --gold-500: #d9b25d;
  --gold-400: #e7cb83;
  --gold-100: #fef3c7;
  --gold-50: #fffbeb;

  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --ink-300: #cbd5e1;
  --border-light: #e2e8f0;
  --surface-50: #f8fafc;
  --surface-0: #ffffff;

  --danger: #dc2626;
  --warning: #d97706;
  --success: #007242;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --shadow-sm: 0 2px 8px rgba(2, 44, 34, 0.05);
  --shadow-md: 0 10px 30px rgba(2, 44, 34, 0.08);
  --shadow-lg: 0 24px 60px rgba(2, 44, 34, 0.14);

  --container-max: 1240px;
  --nav-height: 76px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink-900);
  background: var(--surface-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  letter-spacing: -0.02em;
  margin: 0;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

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

/* ---------------- Header & Navigation ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

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

.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink-900);
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--emerald-900), var(--emerald-700));
  color: var(--gold-400);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  box-shadow: 0 6px 16px rgba(0, 114, 66, 0.22);
}

.brand-text strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.15;
}

.brand-text span {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-500);
}

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

.nav-link {
  text-decoration: none;
  color: var(--ink-700);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.nav-link:hover, .nav-link.active {
  background: var(--emerald-50);
  color: var(--emerald-700);
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 1.1rem;
  color: var(--ink-900);
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  position: fixed;
  inset: var(--nav-height) 0 0 0;
  background: var(--surface-0);
  z-index: 99;
  padding: 24px;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--border-light);
}

.mobile-drawer.open {
  display: flex;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--emerald-700);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 114, 66, 0.22);
}

.btn-primary:hover {
  background: var(--emerald-900);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--emerald-950);
  box-shadow: 0 6px 18px rgba(184, 137, 40, 0.25);
}

.btn-outline {
  background: #ffffff;
  color: var(--ink-900);
  border-color: var(--border-light);
}

.btn-outline:hover {
  border-color: var(--emerald-700);
  color: var(--emerald-700);
}

/* ---------------- Hero & Sections ---------------- */
.hero-section {
  background: radial-gradient(circle at 85% 15%, rgba(217, 178, 93, 0.14), transparent 45%),
              linear-gradient(180deg, var(--emerald-50) 0%, #ffffff 100%);
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--border-light);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-50);
  border: 1px solid rgba(217, 178, 93, 0.45);
  color: var(--emerald-900);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--emerald-950);
  margin-bottom: 18px;
}

.hero-subtitle {
  font-size: 1.08rem;
  color: var(--ink-700);
  margin-bottom: 28px;
  max-width: 580px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--border-light);
}

.hero-metric strong {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--emerald-700);
}

.hero-metric span {
  font-size: 0.78rem;
  color: var(--ink-500);
  font-weight: 600;
}

.hero-visual-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-lg);
}

/* ---------------- Trust Bar & Bento ---------------- */
.trust-bar {
  background: var(--emerald-950);
  color: #ffffff;
  padding: 18px 0;
}

.trust-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.84rem;
  font-weight: 600;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--emerald-100);
}

.trust-item i {
  color: var(--gold-400);
}

.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--surface-50);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-header h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 800;
  color: var(--emerald-950);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--ink-500);
  font-size: 1.02rem;
  margin: 0;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--emerald-50);
  color: var(--emerald-700);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--ink-900);
}

.card p {
  font-size: 0.9rem;
  color: var(--ink-500);
  margin: 0;
}

/* ---------------- Edge Case Spotlight Tabs ---------------- */
.spotlight-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.spotlight-tab {
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--ink-700);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.spotlight-tab.active {
  background: var(--emerald-700);
  color: #ffffff;
  border-color: var(--emerald-700);
}

.spotlight-panel {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.spotlight-panel.hidden {
  display: none;
}

.step-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--ink-700);
}

.step-list li i {
  color: var(--emerald-700);
  margin-top: 4px;
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--emerald-950);
  color: var(--emerald-100);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  color: var(--emerald-100);
  opacity: 0.85;
  text-decoration: none;
  font-size: 0.86rem;
  margin-bottom: 8px;
}

.footer-col a:hover {
  color: var(--gold-400);
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
}

.license-highlight {
  color: var(--gold-400);
  font-weight: 700;
}

/* ---------------- Responsive Breakpoints ---------------- */
@media (max-width: 1024px) {
  .hero-grid, .spotlight-panel, .calc-grid {
    grid-template-columns: 1fr !important;
  }
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .bento-grid, .footer-grid, .hero-metrics {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 52px 0;
  }
}
