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

/* ==========================================================================
   Design Tokens & CSS Variables (UI UX Pro Max Master Spec)
   ========================================================================== */
:root {
  /* Official Brand Colors (Bhuvanesh Groups Crimson Red #E31E24) */
  --color-brand-red: #E31E24;
  --color-brand-red-dark: #C01217;
  --color-brand-red-light: #FF4D4F;
  --color-brand-red-subtle: #FEF2F2;

  --color-primary: #E31E24;
  --color-primary-dark: #C01217;
  --color-primary-light: #FF4D4F;
  --color-primary-subtle: #FEF2F2;
  --color-on-primary: #FFFFFF;

  /* Accent & Conversion */
  --color-accent: #E31E24;
  --color-accent-hover: #C01217;
  --color-accent-subtle: #FEF2F2;
  --color-on-accent: #FFFFFF;

  /* Tech Accents */
  --color-tech-blue: #2563EB;
  --color-tech-blue-subtle: #EFF6FF;
  --color-saffron: #F59E0B;
  --color-saffron-subtle: #FEF3C7;
  --color-emerald: #10B981;
  --color-emerald-dark: #047857;
  --color-emerald-subtle: #DCFCE7;

  /* Canvas & Surfaces */
  --color-background: #F8FAFC;
  --color-surface: #FFFFFF;
  --color-surface-glass: rgba(255, 255, 255, 0.92);
  --color-surface-card: #FFFFFF;
  --color-surface-dark: #0B192C;
  --color-surface-dark-card: #1E293B;

  /* Typography */
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --color-foreground: #0F172A;
  --color-foreground-muted: #475569;
  --color-foreground-light: #94A3B8;
  --color-foreground-on-dark: #F8FAFC;
  --color-foreground-muted-on-dark: #CBD5E1;

  /* Borders & Shadows */
  --color-border: #E2E8F0;
  --color-border-subtle: #F1F5F9;
  --color-border-dark: rgba(255, 255, 255, 0.12);
  --color-ring: #2563EB;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 28px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 20px 40px rgba(15, 23, 42, 0.16);
  --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.25);
  --shadow-glow-accent: 0 0 25px rgba(234, 88, 12, 0.28);

  /* Spacing Scale */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Border Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

/* ==========================================================================
   Base Styles & Reset
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-main);
  background-color: var(--color-background);
  color: var(--color-foreground);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.6;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--color-primary-dark);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

@media (min-width: 768px) {
  .container {
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
  }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.3s ease;
}

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

.brand-logo-link {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  min-width: 180px;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: none;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 1024px) {
  .nav-menu {
    display: flex;
  }
}

.nav-link {
  font-weight: 600;
  font-size: 13.5px;
  color: #334155;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-brand-red);
  background: rgba(227, 30, 36, 0.08);
}

.nav-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #FEF2F2;
  border: 1.5px solid rgba(227, 30, 36, 0.4);
  border-radius: 10px;
  color: #E31E24;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(227, 30, 36, 0.12);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.mobile-toggle:hover {
  background: #FEE2E2;
}

.mobile-toggle:active {
  transform: scale(0.95);
}

.mobile-toggle svg {
  width: 24px;
  height: 24px;
  stroke: #E31E24;
  stroke-width: 2.5;
}

@media (min-width: 1024px) {
  .mobile-toggle {
    display: none !important;
  }
}

@media (max-width: 1023px) {
  .nav-wrapper {
    height: 62px;
    gap: 12px;
  }

  .brand-logo-link {
    min-width: 0;
    max-width: 180px;
    flex-shrink: 1;
  }

  .brand-logo-img {
    height: 38px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
  }

  .nav-actions {
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
  }

  /* Hide long desktop CTA button on mobile to ensure the hamburger button has full visibility */
  .nav-actions .btn {
    display: none !important;
  }

  .mobile-toggle {
    display: flex !important;
  }
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #FFFFFF;
  padding: 20px 24px;
  overflow-y: auto;
  z-index: 99999;
  box-shadow: var(--shadow-xl);
}

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

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.mobile-nav-link {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-foreground);
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border-subtle);
}

/* ==========================================================================
   Storytelling Chapter Tracker Bar
   ========================================================================== */
.chapter-tracker {
  background: #0B192C;
  color: #94A3B8;
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.chapter-tracker::-webkit-scrollbar {
  display: none;
}

.chapter-track-inner {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  padding: 10px 0;
}

.chapter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #94A3B8;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chapter-pill span.num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  font-size: 11px;
}

.chapter-pill:hover, .chapter-pill.active {
  color: #FFFFFF;
}

.chapter-pill.active span.num {
  background: var(--color-primary);
  color: #FFFFFF;
}

/* ==========================================================================
   Buttons & Micro-Interactions
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  text-decoration: none;
  line-height: 1.3;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--color-accent);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.4);
}

.btn-secondary {
  background: var(--color-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-secondary:hover {
  background: var(--color-primary-dark);
  color: #FFFFFF;
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background: var(--color-primary-subtle);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #FFFFFF;
  color: #FFFFFF;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 17px;
  border-radius: var(--radius-lg);
}

/* ==========================================================================
   Badges, Chips & Alerts
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-draft {
  background: rgba(234, 88, 12, 0.12);
  color: #C2410C;
  border: 1px solid rgba(234, 88, 12, 0.3);
}

.badge-verified {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-primary {
  background: var(--color-primary-subtle);
  color: var(--color-primary);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.badge-saffron {
  background: var(--color-saffron-subtle);
  color: #B45309;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.alert-disclaimer {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-left: 4px solid var(--color-saffron);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  font-size: 13px;
  color: #92400E;
  margin: var(--space-md) 0;
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  line-height: 1.5;
}

.alert-success {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  border-left: 4px solid var(--color-emerald);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  font-size: 14px;
  color: #065F46;
  margin-bottom: var(--space-lg);
}

/* ==========================================================================
   Hero Section (Chapter 1)
   ========================================================================== */
.hero-section {
  position: relative;
  background: radial-gradient(circle at 75% 20%, #1E3A8A 0%, #0F172A 50%, #020617 100%);
  color: #FFFFFF;
  padding: var(--space-3xl) 0 var(--space-4xl) 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  color: #60A5FA;
  margin-bottom: var(--space-md);
  backdrop-filter: blur(8px);
}

.hero-headline {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-lg);
}

@media (min-width: 768px) {
  .hero-headline {
    font-size: 52px;
  }
}

.hero-headline .highlight {
  background: linear-gradient(135deg, #60A5FA 0%, #38BDF8 50%, #F59E0B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subhead {
  font-size: 18px;
  line-height: 1.6;
  color: #CBD5E1;
  margin-bottom: var(--space-xl);
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.hero-chips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  max-width: 540px;
}

@media (min-width: 640px) {
  .hero-chips-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.hero-chip-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
}

.hero-chip-title {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
}

.hero-chip-sub {
  font-size: 11px;
  color: #94A3B8;
}

.hero-visual-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   Section Styling & Headers
   ========================================================================== */
.section-pad {
  padding: var(--space-3xl) 0;
}

.section-pad-lg {
  padding: var(--space-4xl) 0;
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto var(--space-3xl) auto;
}

.section-chapter-tag {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
  display: block;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-foreground);
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

@media (min-width: 768px) {
  .section-title {
    font-size: 40px;
  }
}

.section-desc {
  font-size: 17px;
  color: var(--color-foreground-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Traditional vs Partner Visual Comparison (Chapter 2)
   ========================================================================== */
.comparison-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .comparison-container {
    grid-template-columns: 1fr 1fr;
  }
}

.comparison-card {
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
  position: relative;
  transition: all 0.3s ease;
}

.comparison-card.traditional {
  background: #FFF1F2;
  border: 1px solid #FECDD3;
}

.comparison-card.partner {
  background: #EFF6FF;
  border: 2px solid #93C5FD;
  box-shadow: var(--shadow-lg);
}

.comparison-card:hover {
  transform: translateY(-4px);
}

.comparison-header {
  margin-bottom: var(--space-xl);
}

.comparison-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.comparison-point {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 15px;
}

.comparison-point .icon {
  flex-shrink: 0;
  margin-top: 3px;
}

/* ==========================================================================
   Product Catalogue Grid & Filters (Chapter 3)
   ========================================================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  background: var(--color-surface);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.filter-btn {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-foreground-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
}

.search-box {
  position: relative;
  min-width: 260px;
}

.search-input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}

.search-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-foreground-light);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-lg);
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-card-img {
  transform: scale(1.04);
}

.product-title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.product-card:hover .product-title-link {
  color: var(--color-brand-red);
}

.product-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.product-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-primary-subtle);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-foreground);
  margin-bottom: 6px;
}

.product-tagline {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.product-desc {
  font-size: 14px;
  color: var(--color-foreground-muted);
  line-height: 1.5;
  margin-bottom: var(--space-md);
}

.product-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--space-lg);
  font-size: 13px;
  color: var(--color-foreground);
}

.product-features-list li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-card-footer {
  border-top: 1px solid var(--color-border-subtle);
  padding-top: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   How It Works — 5-Step Storyline (Chapter 4)
   ========================================================================== */
.stepper-timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 1024px) {
  .stepper-timeline {
    grid-template-columns: repeat(5, 1fr);
  }
}

.step-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: relative;
  transition: all 0.3s ease;
}

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

.step-number {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.step-desc {
  font-size: 13px;
  color: var(--color-foreground-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Franchise Tier Comparison Cards (Chapter 5)
   ========================================================================== */
.franchise-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 1024px) {
  .franchise-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.franchise-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: all 0.3s ease;
}

.franchise-card.featured {
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: scale(1.02);
}

.franchise-card:hover {
  transform: translateY(-6px);
}

.franchise-name {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
}

.franchise-price {
  font-size: 32px;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.franchise-territory {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.franchise-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: var(--space-lg) 0;
  font-size: 14px;
}

.franchise-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* ==========================================================================
   Interactive Earnings & ROI Calculators (Chapter 6)
   ========================================================================== */
.calc-wrapper {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-lg);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

@media (min-width: 1024px) {
  .calc-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.calc-slider-group {
  margin-bottom: var(--space-lg);
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.calc-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #E2E8F0;
  outline: none;
  accent-color: var(--color-primary);
}

.calc-presets-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.preset-chip {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all 0.2s ease;
}

.preset-chip:hover, .preset-chip.active {
  background: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
}

.calc-output-card {
  background: #0B192C;
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-xl);
}

.calc-output-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.calc-output-big {
  font-size: 32px;
  font-weight: 800;
  color: var(--color-emerald);
}

/* ==========================================================================
   Accordions, Forms & Modals
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 840px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: var(--space-lg);
  text-align: left;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-foreground);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-answer {
  display: none;
  padding: 0 var(--space-lg) var(--space-lg) var(--space-lg);
  font-size: 14px;
  color: var(--color-foreground-muted);
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Forms */
.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-lg);
  max-width: 800px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-foreground);
  margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  font-size: 15px;
  outline: none;
  transition: all 0.2s ease;
  background: #FFFFFF;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-error {
  color: #DC2626;
  font-size: 12px;
  margin-top: 4px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Footer */
.site-footer {
  background: #020617;
  color: #94A3B8;
  padding: 60px 0 28px 0;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo-img {
  height: 110px;
  width: auto;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  .footer-logo-img {
    height: 92px !important;
  }
}

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

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.05fr;
    gap: 36px;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.45fr 1fr 1fr 1.05fr;
    gap: 44px;
  }
}

.footer-col-title {
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  padding: 0;
  margin: 0;
}

.footer-links a {
  color: #94A3B8;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
  line-height: 1.45;
}

.footer-links a:hover {
  color: #FFFFFF;
  transform: translateX(2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: #64748B;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-2xl);
  box-shadow: var(--shadow-xl);
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--color-foreground-light);
}

/* ==========================================================================
   Pagination Component & Icon Fixes
   ========================================================================== */
.pagination-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

/* Strict fix for any oversized pagination SVG arrow icons */
nav[role="navigation"] svg,
.pagination-icon,
svg.w-5,
svg.h-5 {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.pagination-mobile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}

.pagination-mobile-info {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-foreground-muted);
}

.pagination-desktop {
  display: none;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 20px;
}

@media (min-width: 640px) {
  .pagination-mobile {
    display: none;
  }
  .pagination-desktop {
    display: flex;
  }
}

.pagination-summary {
  font-size: 14px;
  color: var(--color-foreground-muted);
}

.pagination-summary .font-semibold {
  font-weight: 700;
  color: var(--color-foreground);
}

.pagination-links-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  padding: 5px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.pagination-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  background: transparent;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.2s ease;
  user-select: none;
  line-height: 1;
}

.pagination-item:hover:not(.pagination-active):not(.pagination-disabled):not(.pagination-ellipsis) {
  background: var(--color-brand-red-subtle);
  color: var(--color-brand-red);
  border-color: rgba(227, 30, 36, 0.2);
}

.pagination-item.pagination-active {
  background: var(--color-brand-red);
  color: #FFFFFF !important;
  font-weight: 700;
  border-color: var(--color-brand-red);
  box-shadow: 0 2px 8px rgba(227, 30, 36, 0.28);
}

.pagination-item.pagination-disabled {
  color: #CBD5E1;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.6;
}

.pagination-item.pagination-ellipsis {
  color: #94A3B8;
  cursor: default;
  min-width: 32px;
}

.pagination-item-arrow {
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  line-height: 1.2;
}

.pagination-btn:hover:not(.pagination-btn-disabled) {
  background: var(--color-brand-red-subtle);
  color: var(--color-brand-red);
  border-color: rgba(227, 30, 36, 0.25);
}

.pagination-btn-disabled {
  color: #CBD5E1;
  background: #F8FAFC;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.6;
}

/* Fallback support for any other Tailwind pagination output */
nav[role="navigation"] {
  width: 100%;
}
nav[role="navigation"] .w-5,
nav[role="navigation"] .h-5 {
  width: 16px !important;
  height: 16px !important;
}

/* ==========================================================================
   Legal Document Viewer & Contract Styles
   ========================================================================== */
.legal-document {
  font-family: var(--font-main);
  color: #1E293B;
  line-height: 1.8;
  font-size: 15px;
}

.legal-document h1 {
  font-size: 26px;
  font-weight: 900;
  color: #0F172A;
  margin-top: 36px;
  margin-bottom: 16px;
  border-bottom: 2px solid #E2E8F0;
  padding-bottom: 8px;
  letter-spacing: -0.02em;
}

.legal-document h1:first-child {
  margin-top: 0;
}

.legal-document h2 {
  font-size: 20px;
  font-weight: 800;
  color: #0F172A;
  margin-top: 28px;
  margin-bottom: 12px;
}

.legal-document h3 {
  font-size: 17px;
  font-weight: 700;
  color: #1E293B;
  margin-top: 22px;
  margin-bottom: 10px;
}

.legal-document h4 {
  font-size: 15px;
  font-weight: 700;
  color: #334155;
  margin-top: 16px;
  margin-bottom: 8px;
}

.legal-document p {
  margin-bottom: 16px;
  color: #334155;
}

.legal-document strong {
  color: #0F172A;
  font-weight: 700;
}

.legal-document ul, .legal-document ol {
  margin-bottom: 18px;
  padding-left: 24px;
}

.legal-document li {
  margin-bottom: 8px;
}

.legal-document hr {
  border: 0;
  height: 1px;
  background: #E2E8F0;
  margin: 32px 0;
}

.legal-document table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px 0;
  font-size: 13.5px;
  display: block;
  overflow-x: auto;
}

.legal-document th, .legal-document td {
  border: 1px solid #CBD5E1;
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}

.legal-document th {
  background: #F1F5F9;
  font-weight: 700;
  color: #0F172A;
}

.legal-document tr:nth-child(even) td {
  background: #F8FAFC;
}

.legal-document blockquote {
  border-left: 4px solid var(--color-brand-red);
  background: #FEF2F2;
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  margin: 18px 0;
  font-style: italic;
  color: #991B1B;
}

/* Print Styles */
@media print {
  .site-header,
  .top-announcement-bar,
  .footer-main,
  .no-print,
  button,
  .btn {
    display: none !important;
  }
  body, .legal-document-container {
    background: #FFFFFF !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    border: none !important;
  }
  .legal-document {
    font-size: 12pt !important;
    line-height: 1.5 !important;
    color: #000000 !important;
  }
}

/* ==========================================================================
   Product Detail — Cinematic Hero Background & Bottom Text Overlay
   ========================================================================== */
.product-hero-cinematic {
  position: relative;
  min-height: 580px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: #0B192C;
  color: #FFFFFF;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.product-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.product-hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.product-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 25, 44, 0.35) 0%,
    rgba(11, 25, 44, 0.6) 35%,
    rgba(11, 25, 44, 0.92) 75%,
    #0B192C 100%
  );
  pointer-events: none;
}

.hero-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #93C5FD;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.hero-back-link:hover {
  background: rgba(15, 23, 42, 0.95);
  color: #FFFFFF;
  border-color: rgba(147, 197, 253, 0.4);
}

.hero-category-pill {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #E2E8F0;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 9999px;
}

.hero-fullscreen-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.hero-fullscreen-btn:hover {
  background: rgba(30, 58, 138, 0.85);
  border-color: #60A5FA;
}

.product-hero-overlay-card {
  max-width: 900px;
  background: rgba(11, 25, 44, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 36px 40px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.75);
}

@media (max-width: 640px) {
  .product-hero-overlay-card {
    padding: 24px 20px;
  }
}

.product-hero-title {
  font-size: 40px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

@media (max-width: 768px) {
  .product-hero-title {
    font-size: 28px;
  }
}

.product-hero-tagline {
  font-size: 19px;
  color: #38BDF8;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.4;
}

.product-hero-desc {
  font-size: 15px;
  color: #CBD5E1;
  line-height: 1.7;
  margin-bottom: 26px;
  max-width: 800px;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}
@media (max-width: 991px) {
  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Lightbox Modal */
.product-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(11, 25, 44, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: none;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-lightbox-modal.active {
  display: flex;
  opacity: 1;
}

.lightbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.85);
  color: #FFFFFF;
  gap: 16px;
  flex-wrap: wrap;
}
.lightbox-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 24px;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}
.lightbox-image {
  max-width: 95vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.15);
  cursor: zoom-out;
}




