/* ==========================================================================
   Next Sales Landing Page - Main Styles
   Variables, Reset, Typography, Utilities
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Colors - Primary */
  --color-primary: #25D366;
  /* WhatsApp Green */
  --color-primary-dark: #128C7E;
  /* Darker Green for hover */
  --color-primary-light: #34E879;
  --gradient-primary: linear-gradient(135deg, #25D366 0%, #128C7E 100%);

  /* Colors - Secondary */
  --color-secondary: #1A2A44;
  /* Bleu Nuit */
  --color-secondary-dark: #0F172A;
  /* Almost Black */
  --color-secondary-light: #2A3E5C;
  --gradient-secondary: linear-gradient(135deg, #1A2A44 0%, #0F172A 100%);
  --gradient-dark: linear-gradient(180deg, #1A2A44 0%, #0B1120 100%);

  /* Colors - Neutral */
  --color-white: #FFFFFF;
  --color-gray-50: #F8FAFC;
  --color-gray-100: #F1F5F9;
  --color-gray-200: #E2E8F0;
  --color-gray-300: #CBD5E1;
  --color-gray-400: #94A3B8;
  --color-gray-500: #64748B;
  --color-gray-600: #475569;
  --color-gray-700: #334155;
  --color-gray-800: #1E293B;
  --color-gray-900: #0F172A;

  /* Colors - Semantic */
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-error: #EF4444;
  --color-info: #3B82F6;

  /* Colors - Mobile Money */
  --color-mtn: #FFCC00;
  --color-orange: #FF6600;

  /* Typography */
  --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 0.75rem;
  /* 12px */
  --font-size-sm: 0.875rem;
  /* 14px */
  --font-size-base: 1rem;
  /* 16px */
  --font-size-lg: 1.125rem;
  /* 18px */
  --font-size-xl: 1.25rem;
  /* 20px */
  --font-size-2xl: 1.5rem;
  /* 24px */
  --font-size-3xl: 1.875rem;
  /* 30px */
  --font-size-4xl: 2.25rem;
  /* 36px */
  --font-size-5xl: 3.5rem;
  /* 56px (Increased for Hero) */

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-tight: 1.1;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  /* Spacing */
  --spacing-1: 0.25rem;
  /* 4px */
  --spacing-2: 0.5rem;
  /* 8px */
  --spacing-3: 0.75rem;
  /* 12px */
  --spacing-4: 1rem;
  /* 16px */
  --spacing-5: 1.25rem;
  /* 20px */
  --spacing-6: 1.5rem;
  /* 24px */
  --spacing-8: 2rem;
  /* 32px */
  --spacing-10: 2.5rem;
  /* 40px */
  --spacing-12: 3rem;
  /* 48px */
  --spacing-16: 4rem;
  /* 64px */
  --spacing-20: 5rem;
  /* 80px */
  --spacing-24: 6rem;
  /* 96px */

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows (Modernized) */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);

  /* Colored Shadows (Glows) */
  --shadow-primary: 0 10px 25px -5px rgba(37, 211, 102, 0.4);
  --shadow-secondary: 0 10px 25px -5px rgba(26, 42, 68, 0.3);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-Index */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-tooltip: 600;

  /* Container */
  --container-max: 1200px;
  --container-padding: var(--spacing-4);
}

/* --------------------------------------------------------------------------
   CSS Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-relaxed);
  /* Increased from normal */
  color: var(--color-gray-800);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

input,
button,
textarea,
select {
  font: inherit;
}

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

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-secondary);
  margin-bottom: var(--spacing-4);
}

h1 {
  font-size: var(--font-size-4xl);
}

h2 {
  font-size: var(--font-size-3xl);
}

h3 {
  font-size: var(--font-size-2xl);
}

h4 {
  font-size: var(--font-size-xl);
}

h5 {
  font-size: var(--font-size-lg);
}

h6 {
  font-size: var(--font-size-base);
}

p {
  margin-bottom: var(--spacing-4);
  color: var(--color-gray-700);
  /* Darker than default 600/500 for better contrast */
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: var(--font-weight-semibold);
  color: var(--color-gray-900);
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* Text Alignment */
.text-left {
  text-align: left;
}

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

.text-right {
  text-align: right;
}

/* Text Colors */
.text-primary {
  color: var(--color-primary);
}

.text-secondary {
  color: var(--color-secondary);
}

.text-white {
  color: var(--color-white);
}

.text-muted {
  color: var(--color-gray-600);
}

/* Darkened from 500 */

/* Background Colors */
.bg-primary {
  background-color: var(--color-primary);
}

.bg-secondary {
  background-color: var(--color-secondary);
}

.bg-white {
  background-color: var(--color-white);
}

.bg-gray {
  background-color: var(--color-gray-50);
}

/* Display */
.hidden {
  display: none;
}

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.grid {
  display: grid;
}

/* Flexbox */
.flex-row {
  flex-direction: row;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-start {
  align-items: flex-start;
}

.items-center {
  align-items: center;
}

.items-end {
  align-items: flex-end;
}

.justify-start {
  justify-content: flex-start;
}

.justify-center {
  justify-content: center;
}

.justify-end {
  justify-content: flex-end;
}

.justify-between {
  justify-content: space-between;
}

.gap-1 {
  gap: var(--spacing-1);
}

.gap-2 {
  gap: var(--spacing-2);
}

.gap-3 {
  gap: var(--spacing-3);
}

.gap-4 {
  gap: var(--spacing-4);
}

.gap-6 {
  gap: var(--spacing-6);
}

.gap-8 {
  gap: var(--spacing-8);
}

/* Spacing - Margin */
.m-0 {
  margin: 0;
}

.m-auto {
  margin: auto;
}

.mt-4 {
  margin-top: var(--spacing-4);
}

.mt-6 {
  margin-top: var(--spacing-6);
}

.mt-8 {
  margin-top: var(--spacing-8);
}

.mb-4 {
  margin-bottom: var(--spacing-4);
}

.mb-6 {
  margin-bottom: var(--spacing-6);
}

.mb-8 {
  margin-bottom: var(--spacing-8);
}

.my-4 {
  margin-top: var(--spacing-4);
  margin-bottom: var(--spacing-4);
}

.my-8 {
  margin-top: var(--spacing-8);
  margin-bottom: var(--spacing-8);
}

/* Spacing - Padding */
.p-0 {
  padding: 0;
}

.p-4 {
  padding: var(--spacing-4);
}

.p-6 {
  padding: var(--spacing-6);
}

.p-8 {
  padding: var(--spacing-8);
}

.py-4 {
  padding-top: var(--spacing-4);
  padding-bottom: var(--spacing-4);
}

.py-8 {
  padding-top: var(--spacing-8);
  padding-bottom: var(--spacing-8);
}

.py-12 {
  padding-top: var(--spacing-12);
  padding-bottom: var(--spacing-12);
}

.py-16 {
  padding-top: var(--spacing-16);
  padding-bottom: var(--spacing-16);
}

.px-4 {
  padding-left: var(--spacing-4);
  padding-right: var(--spacing-4);
}

.px-6 {
  padding-left: var(--spacing-6);
  padding-right: var(--spacing-6);
}

/* Width */
.w-full {
  width: 100%;
}

.max-w-sm {
  max-width: 24rem;
}

.max-w-md {
  max-width: 28rem;
}

.max-w-lg {
  max-width: 32rem;
}

.max-w-xl {
  max-width: 36rem;
}

.max-w-2xl {
  max-width: 42rem;
}

/* Border Radius */
.rounded {
  border-radius: var(--radius-md);
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

.rounded-xl {
  border-radius: var(--radius-xl);
}

.rounded-full {
  border-radius: var(--radius-full);
}

/* Shadows */
.shadow {
  box-shadow: var(--shadow-md);
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

.shadow-xl {
  box-shadow: var(--shadow-xl);
}

/* Visibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Mode Light (Save-Data / Low Bandwidth)
   -------------------------------------------------------------------------- */
.light-mode {
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
  --shadow-xl: none;
}

.light-mode img:not(.essential-img) {
  display: none;
}

.light-mode .img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-gray-100);
  color: var(--color-gray-400);
  min-height: 150px;
}

.light-mode .hero-bg {
  background: var(--color-gray-100);
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints (Mobile First)
   -------------------------------------------------------------------------- */
@media (min-width: 640px) {
  :root {
    --container-padding: var(--spacing-6);
  }

  h1 {
    font-size: var(--font-size-5xl);
  }

  h2 {
    font-size: var(--font-size-4xl);
  }
}

@media (min-width: 768px) {
  .md\:hidden {
    display: none;
  }

  .md\:block {
    display: block;
  }

  .md\:flex {
    display: flex;
  }

  .md\:grid {
    display: grid;
  }

  .md\:text-left {
    text-align: left;
  }
}

@media (min-width: 1024px) {
  :root {
    --container-padding: var(--spacing-8);
  }

  .lg\:hidden {
    display: none;
  }

  .lg\:block {
    display: block;
  }

  .lg\:flex {
    display: flex;
  }
}

/* --------------------------------------------------------------------------
   Print Styles
   -------------------------------------------------------------------------- */
@media print {

  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  img {
    page-break-inside: avoid;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

/* --------------------------------------------------------------------------
   Utility Classes (New)
   -------------------------------------------------------------------------- */

/* Text Sizes */
.text-xs {
  font-size: var(--font-size-xs);
}

.text-sm {
  font-size: var(--font-size-sm);
}

.text-base {
  font-size: var(--font-size-base);
}

.text-lg {
  font-size: var(--font-size-lg);
}

.text-xl {
  font-size: var(--font-size-xl);
}

.text-2xl {
  font-size: var(--font-size-2xl);
}

.text-4xl {
  font-size: var(--font-size-4xl);
}

/* Text Weights */
.font-normal {
  font-weight: var(--font-weight-normal);
}

.font-medium {
  font-weight: var(--font-weight-medium);
}

.font-semibold {
  font-weight: var(--font-weight-semibold);
}

.font-bold {
  font-weight: var(--font-weight-bold);
}

/* Layout & Flex */
.flex-item-center {
  display: flex;
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-1 {
  gap: var(--spacing-1);
}

.gap-2 {
  gap: var(--spacing-2);
}

.gap-3 {
  gap: var(--spacing-3);
}

.gap-4 {
  gap: var(--spacing-4);
}

.gap-6 {
  gap: var(--spacing-6);
}

/* Margins & Padding */
.mt-2 {
  margin-top: var(--spacing-2);
}

.mt-4 {
  margin-top: var(--spacing-4);
}

.mt-6 {
  margin-top: var(--spacing-6);
}

.mt-8 {
  margin-top: var(--spacing-8);
}

.mb-2 {
  margin-bottom: var(--spacing-2);
}

.mb-4 {
  margin-bottom: var(--spacing-4);
}

.mb-6 {
  margin-bottom: var(--spacing-6);
}

.mb-8 {
  margin-bottom: var(--spacing-8);
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Width & Height */
.w-6 {
  width: 1.5rem;
}

.h-6 {
  height: 1.5rem;
}

.w-8 {
  width: 2rem;
}

.h-8 {
  height: 2rem;
}

.w-12 {
  width: 3rem;
}

.h-12 {
  height: 3rem;
}

.w-16 {
  width: 4rem;
}

.h-16 {
  height: 4rem;
}

/* Display & Position */
.absolute {
  position: absolute;
}

.relative {
  position: relative;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.z-minus-1 {
  z-index: -1;
}

.overflow-hidden {
  overflow: hidden;
}

.object-contain {
  object-fit: contain;
}

/* Opacity */
.bg-opacity-10 {
  background-color: rgba(37, 211, 102, 0.1) !important;
}

/* Hardcoded primary for now as per HTML usage */
.opacity-10 {
  opacity: 0.1;
}

.opacity-80 {
  opacity: 0.8;
}

/* --------------------------------------------------------------------------
   Dark Section Overrides (The "Dark Mode" for specific sections)
   -------------------------------------------------------------------------- */
.section--dark {
  color: var(--color-white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark h5,
.section--dark h6 {
  color: var(--color-white);
}

.section--dark p,
.section--dark .text-muted {
  color: var(--color-gray-200);
}

.section--dark .btn--outline {
  border-color: var(--color-white);
  color: var(--color-white);
}

.section--dark .btn--outline:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(80px + var(--spacing-12));
  background-color: var(--color-secondary);
  /* Dark Blue Base */
  background-image: var(--gradient-dark);
}

/* Glow Effects */
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: var(--color-primary);
  opacity: 0.1;
  filter: blur(100px);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: var(--color-info);
  opacity: 0.1;
  filter: blur(100px);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

/* Content Layout */
.hero__inner {
  position: relative;
  z-index: 1;
  /* Ensure content stays above globs */
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-12);
  align-items: center;
}

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

/* Hero Typography */
.hero__title {
  color: var(--color-white);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: var(--spacing-6);
}

.hero__title span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero__description {
  color: var(--color-gray-200);
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-8);
  max-width: 500px;
}

.hero__description strong {
  color: var(--color-white);
}

.hero__trust {
  color: var(--color-gray-300);
  font-size: var(--font-size-sm);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-4);
  margin-bottom: var(--spacing-8);
}

/* --------------------------------------------------------------------------
   CSS Phone Mockups (High Quality Text)
   -------------------------------------------------------------------------- */
.hero__phones-container {
  position: relative;
  /* width: 100%; */
  height: 500px;
  /* Constrain height */
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
  margin-top: 2rem;
}

.hero__phone {
  position: absolute;
  width: 240px;
  /* Standard phone width approx */
  /* height: auto; properties handled by img */
  border-radius: 30px;
  background: #000;
  /* Bezel color */
  padding: 8px;
  /* Bezel thickness */
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6), 0 18px 36px -18px rgba(0, 0, 0, 0.7);
  /* Deep 3D Shadow */
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  /* For glare clipping */
}

/* Glass Reflection / Glare */
.hero__phone::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.05) 40%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  border-radius: 28px;
  /* Match sibling border radius */
  z-index: 100;
}

.hero__phone-img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  /* Inner radius matching bezel */
  display: block;
}

/* Positioning */
.hero__phone--center {
  z-index: 20;
  position: relative;
  /* Keep it in flow if needed, or relative to stack */
  transform: translateY(0);
}

.hero__phone--left {
  z-index: 10;
  transform: translateX(-160px) translateY(40px) scale(0.9) rotateY(15deg);
  opacity: 0.9;
}

.hero__phone--right {
  z-index: 10;
  transform: translateX(160px) translateY(40px) scale(0.9) rotateY(-15deg);
  opacity: 0.9;
}

/* Hover Effect: Bring side phones forward slightly */
.hero__phones-container:hover .hero__phone--left {
  transform: translateX(-180px) translateY(40px) scale(0.95) rotateY(10deg);
}

.hero__phones-container:hover .hero__phone--right {
  transform: translateX(180px) translateY(40px) scale(0.95) rotateY(-10deg);
}

/* Mobile Responsiveness for Phones */
@media (max-width: 768px) {
  .hero__phones-container {
    height: 400px;
    transform: scale(0.7);
    /* Scale down entire assembly */
    margin-top: 0;
  }

  .hero__phone--left,
  .hero__phone--right {
    display: none;
    /* Show only center phone on small screens to avoid clutter */
  }

  .hero__phone--center {
    width: 220px;
  }
}

/* Reset previous single image styles if any collide */
.hero__image-container {
  perspective: none;
  /* We handle perspective in .hero__phones-container */
}