/* ==========================================
   SOFTEDGE SOLUTION — GLOBAL DESIGN SYSTEM
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800;900&family=Manrope:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Custom Properties ── */
:root {
  --primary: #FFFFFF;
  --secondary: #F8FAFC;
  --secondary-dark: #F1F5F9;
  --accent: #2563EB;
  --accent-hover: #1D4ED8;
  --purple: #7C3AED;
  --purple-hover: #6D28D9;
  --accent-light: #EFF6FF;
  --purple-light: #F5F3FF;
  --gradient: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
  --gradient-reverse: linear-gradient(135deg, #7C3AED 0%, #2563EB 100%);
  --gradient-soft: linear-gradient(135deg, rgba(37,99,235,0.07) 0%, rgba(124,58,237,0.07) 100%);
  --gradient-bg: linear-gradient(160deg, #F8FAFC 0%, #EFF6FF 50%, #F5F3FF 100%);
  --card: rgba(255, 255, 255, 0.9);
  --card-hover: rgba(255, 255, 255, 1);
  --border: #E5E7EB;
  --border-light: rgba(229, 231, 235, 0.6);
  --border-glass: rgba(255, 255, 255, 0.8);
  --text: #111827;
  --text-secondary: #6B7280;
  --text-light: #9CA3AF;
  --text-white: rgba(255,255,255,0.85);

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow: 0 4px 24px rgba(37,99,235,0.08), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 40px rgba(37,99,235,0.12), 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 24px 64px rgba(37,99,235,0.16), 0 8px 24px rgba(0,0,0,0.08);
  --shadow-xl: 0 40px 96px rgba(37,99,235,0.2), 0 16px 40px rgba(0,0,0,0.1);
  --shadow-hover: 0 32px 80px rgba(124,58,237,0.2), 0 8px 32px rgba(0,0,0,0.1);
  --shadow-blue: 0 8px 32px rgba(37,99,235,0.28);
  --shadow-purple: 0 8px 32px rgba(124,58,237,0.28);

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Poppins', sans-serif;
  --font-display: 'Manrope', sans-serif;

  /* Spacing Scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Layout */
  --container-max: 1280px;
  --section-pad: 96px 0;

  /* Border Radius */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-2xl: 40px;
  --radius-full: 9999px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t: 0.28s var(--ease);
  --t-slow: 0.55s var(--ease);
  --t-bounce: 0.48s var(--ease-bounce);

  /* Z-index */
  --z-base: 1;
  --z-card: 10;
  --z-sticky: 100;
  --z-modal: 500;
  --z-toast: 900;
  --z-loader: 9999;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--t);
}

ul, ol { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}

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

/* ── Container ── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
}

.container-sm {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Section ── */
section {
  padding: var(--section-pad);
  position: relative;
}

.section-alt {
  background: var(--secondary);
}

.section-gradient {
  background: var(--gradient-bg);
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.15;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.6rem, 5.5vw, 4.75rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 800; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.875rem); font-weight: 700; }
h4 { font-size: clamp(1.1rem, 2vw, 1.375rem); font-weight: 600; }
h5 { font-size: 1.1rem; font-weight: 600; }
h6 { font-size: 0.95rem; font-weight: 600; }

p {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ── Section Labels ── */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 18px;
  background: var(--gradient-soft);
  border: 1px solid rgba(37,99,235,0.18);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
  font-family: var(--font-body);
}

.section-badge svg {
  width: 13px;
  height: 13px;
}

.section-tag-purple {
  background: linear-gradient(135deg, rgba(124,58,237,0.07) 0%, rgba(37,99,235,0.07) 100%);
  border-color: rgba(124,58,237,0.18);
  color: var(--purple);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.12;
  margin-bottom: 18px;
  letter-spacing: -0.03em;
}

.section-title .gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.75;
}

.section-header { margin-bottom: 64px; }
.section-header.center { text-align: center; }
.section-header.center .section-subtitle { margin: 0 auto; }

.section-divider {
  width: 56px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
  margin: 14px 0 24px;
}

.section-header.center .section-divider {
  margin: 14px auto 24px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 30px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.93rem;
  line-height: 1;
  transition: all var(--t-bounce);
  position: relative;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.01em;
  border: none;
}

.btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  transition: transform var(--t);
}

.btn:hover svg { transform: translateX(3px); }

/* Primary */
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
  background: var(--gradient-reverse);
  transform: translateY(-2px);
  box-shadow: var(--shadow-purple);
  color: #fff;
}

.btn-primary:active { transform: translateY(0px); }

/* Secondary / Outline */
.btn-secondary {
  background: var(--primary);
  color: var(--text);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: var(--accent-light);
  border-color: rgba(37,99,235,0.3);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Ghost */
.btn-ghost {
  color: var(--accent);
  padding: 14px 16px;
  background: transparent;
}

.btn-ghost:hover { color: var(--purple); }

/* Sizes */
.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 17px 36px;
  font-size: 1.05rem;
}

/* ── Cards ── */
.card {
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: all var(--t-slow);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px);
  border-color: rgba(37,99,235,0.15);
}

.glass-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ── Gradient Text ── */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Tags / Badges ── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 13px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.tag-purple {
  background: var(--purple-light);
  color: var(--purple);
}

.tag-green {
  background: #F0FDF4;
  color: #15803D;
}

.tag-orange {
  background: #FFF7ED;
  color: #C2410C;
}

/* ── Icon Box ── */
.icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--gradient-soft);
  border: 1px solid rgba(37,99,235,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-box svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.icon-box-lg {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
}

.icon-box-lg svg {
  width: 30px;
  height: 30px;
}

.icon-box-purple {
  background: linear-gradient(135deg, rgba(124,58,237,0.08) 0%, rgba(37,99,235,0.08) 100%);
  border-color: rgba(124,58,237,0.15);
}

.icon-box-purple svg { color: var(--purple); }

/* ── Grid Helpers ── */
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── Flex Helpers ── */
.flex { display: flex; align-items: center; }
.flex-col { display: flex; flex-direction: column; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* Stagger delays */
.d-1 { transition-delay: 0.08s; }
.d-2 { transition-delay: 0.16s; }
.d-3 { transition-delay: 0.24s; }
.d-4 { transition-delay: 0.32s; }
.d-5 { transition-delay: 0.40s; }
.d-6 { transition-delay: 0.48s; }
.d-7 { transition-delay: 0.56s; }
.d-8 { transition-delay: 0.64s; }

/* ── WhatsApp Float ── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(37,211,102,0.45);
  z-index: var(--z-toast);
  transition: all var(--t-bounce);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.12) rotate(8deg);
  box-shadow: 0 16px 48px rgba(37,211,102,0.55);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: white;
}

/* ── Loading Screen ── */
.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  z-index: var(--z-loader);
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}

.loading-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.loading-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.4rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.04em;
  animation: loadingPulse 1.6s ease infinite;
}

.loading-tagline {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.loading-bar-track {
  width: 180px;
  height: 3px;
  background: var(--secondary-dark);
  border-radius: 2px;
  overflow: hidden;
}

.loading-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient);
  border-radius: 2px;
  animation: loadingFill 2s var(--ease) forwards;
}

@keyframes loadingPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.45; }
}

@keyframes loadingFill {
  0%  { width: 0%;   }
  60% { width: 75%;  }
  100%{ width: 100%; }
}

/* ── Horizontal Rule ── */
hr.divider {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 48px 0;
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.breadcrumb a:hover { color: var(--accent); }

.breadcrumb span { color: var(--text-light); }

/* ── Back to Top ── */
.back-top {
  position: fixed;
  bottom: 100px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: var(--z-toast);
  box-shadow: var(--shadow-md);
  transition: all var(--t-bounce);
  opacity: 0;
  pointer-events: none;
}

.back-top.visible {
  opacity: 1;
  pointer-events: all;
}

.back-top:hover {
  background: var(--gradient);
  border-color: transparent;
  transform: translateY(-3px);
}

.back-top:hover svg { stroke: white; }

.back-top svg {
  width: 18px;
  height: 18px;
  stroke: var(--text-secondary);
  fill: none;
  stroke-width: 2.5;
  transition: stroke var(--t);
}

/* ── Utility ── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }
.w-full { width: 100%; }
.hidden { display: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
