/* ==========================================================================
   AlhadiTech — Enterprise Software Solutions
   Website CSS v2.0  |  Inspired by Salesforce / Stripe / Linear
   ========================================================================== */

/* ===================== DESIGN TOKENS ===================== */
:root {
  /* Brand Colors */
  --primary:        #2563EB;
  --primary-dark:   #1D4ED8;
  --primary-light:  #3B82F6;
  --secondary:      #7C3AED;
  --accent:         #06B6D4;
  --success:        #10B981;
  --warning:        #F59E0B;
  --danger:         #EF4444;

  /* Backgrounds */
  --bg-hero:    #030B1A;
  --bg-dark:    #0F172A;
  --bg-darker:  #020617;
  --bg-body:    #FFFFFF;
  --bg-surface: #F8FAFC;
  --bg-card:    #FFFFFF;

  /* Text */
  --text-primary:   #0F172A;
  --text-secondary: #475569;
  --text-muted:     #94A3B8;
  --text-white:     #F8FAFC;
  --text-white-dim: rgba(248,250,252,0.72);

  /* Borders */
  --border-light: rgba(0,0,0,0.06);
  --border-white: rgba(255,255,255,0.1);

  /* Gradients */
  --grad-hero:    linear-gradient(135deg, #030B1A 0%, #0F172A 45%, #1E1B4B 100%);
  --grad-primary: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
  --grad-accent:  linear-gradient(135deg, #06B6D4 0%, #2563EB 100%);
  --grad-warm:    linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
  --grad-green:   linear-gradient(135deg, #059669 0%, #10B981 100%);
  --grad-card1:   linear-gradient(135deg, #EEF2FF, #E0E7FF);
  --grad-card2:   linear-gradient(135deg, #F0FDF4, #DCFCE7);
  --grad-card3:   linear-gradient(135deg, #FFF7ED, #FEF3C7);
  --grad-card4:   linear-gradient(135deg, #FDF4FF, #FAE8FF);
  --grad-card5:   linear-gradient(135deg, #ECFEFF, #CFFAFE);
  --grad-card6:   linear-gradient(135deg, #FFF1F2, #FFE4E6);

  /* Shadows */
  --shadow-xs:  0 1px 3px rgba(0,0,0,0.06);
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-lg:  0 10px 40px rgba(0,0,0,0.1),  0 4px 16px rgba(0,0,0,0.06);
  --shadow-xl:  0 20px 60px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.08);
  --shadow-2xl: 0 30px 80px rgba(0,0,0,0.18), 0 12px 32px rgba(0,0,0,0.1);
  --shadow-glow: 0 0 30px rgba(37,99,235,0.35);
  --shadow-glow-lg: 0 0 60px rgba(37,99,235,0.4);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --section-py: 4.5rem;
  --container:  1280px;

  /* Radii */
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-2xl:  32px;
  --r-full: 9999px;

  /* Transitions */
  --t-fast:   0.15s ease;
  --t-normal: 0.3s ease;
  --t-slow:   0.5s ease;
}

/* ===================== RESET & BASE ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-body);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a  { text-decoration: none; color: inherit; }

/* Custom scrollbar */
::-webkit-scrollbar             { width: 5px; }
::-webkit-scrollbar-track       { background: var(--bg-dark); }
::-webkit-scrollbar-thumb       { background: var(--primary); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }

/* ===================== TYPOGRAPHY ===================== */
.display-1 { font-size: clamp(2.75rem, 6vw, 4.25rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
.display-2 { font-size: clamp(2rem,   4vw, 3rem);     font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.heading-1 { font-size: clamp(1.5rem, 3vw, 2.25rem);  font-weight: 700; line-height: 1.25; }
.heading-2 { font-size: 1.375rem; font-weight: 700; line-height: 1.35; }

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

.gradient-text-cyan {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===================== LAYOUT UTILITIES ===================== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: var(--section-py) 0;
}

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

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

.flex           { display: flex; }
.flex-center    { display: flex; align-items: center; justify-content: center; }
.flex-between   { display: flex; align-items: center; justify-content: space-between; }
.flex-col       { display: flex; flex-direction: column; }
.gap-1          { gap: 0.5rem; }
.gap-2          { gap: 1rem; }
.gap-3          { gap: 1.5rem; }
.gap-4          { gap: 2rem; }
.items-center   { align-items: center; }
.text-center    { text-align: center; }

/* ===================== SECTION HEADER COMPONENT ===================== */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(37,99,235,0.08);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-badge.badge-purple {
  background: rgba(124,58,237,0.08);
  border-color: rgba(124,58,237,0.2);
  color: var(--secondary);
}

.section-badge.badge-cyan {
  background: rgba(6,182,212,0.08);
  border-color: rgba(6,182,212,0.2);
  color: var(--accent);
}

.section-badge.badge-white {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.9);
}

.section-header {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 2.5rem;
}

.section-header .section-title {
  font-size: clamp(1.5rem, 2.8vw, 2.125rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-header .section-subtitle {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 540px;
  margin: 0 auto;
}

.section-header.on-dark .section-title { color: var(--text-white); }
.section-header.on-dark .section-subtitle { color: var(--text-white-dim); }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--t-normal);
  white-space: nowrap;
  line-height: 1;
  outline: none;
}

.btn-md  { padding: 13px 24px; border-radius: var(--r-sm); }
.btn-lg  { padding: 16px 32px; border-radius: 10px; font-size: 16px; }
.btn-xl  { padding: 18px 40px; border-radius: 12px; font-size: 17px; }

.btn-primary {
  background: var(--grad-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(37,99,235,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37,99,235,0.55);
}
.btn-primary:active { transform: translateY(0); }

.btn-white {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-md);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-ghost {
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.25);
  color: white;
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
}

.btn-outline-primary {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline-primary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.35);
}

.btn-icon svg { flex-shrink: 0; width: 18px; height: 18px; }

/* ===================== SCROLL REVEAL ANIMATIONS ===================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.16,1,0.3,1), transform 0.65s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: none; }

.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.65s cubic-bezier(0.16,1,0.3,1), transform 0.65s cubic-bezier(0.16,1,0.3,1);
}
.reveal-left.visible { opacity: 1; transform: none; }

.reveal-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.65s cubic-bezier(0.16,1,0.3,1), transform 0.65s cubic-bezier(0.16,1,0.3,1);
}
.reveal-right.visible { opacity: 1; transform: none; }

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.65s cubic-bezier(0.16,1,0.3,1), transform 0.65s cubic-bezier(0.16,1,0.3,1);
}
.reveal-scale.visible { opacity: 1; transform: none; }

/* Stagger delays */
.delay-1 { transition-delay: 0.1s !important; }
.delay-2 { transition-delay: 0.2s !important; }
.delay-3 { transition-delay: 0.3s !important; }
.delay-4 { transition-delay: 0.4s !important; }
.delay-5 { transition-delay: 0.5s !important; }
.delay-6 { transition-delay: 0.6s !important; }

/* ===================== KEYFRAMES ===================== */
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}
@keyframes float-y-slow {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-20px); }
}
@keyframes pulse-ring {
  0%   { transform: scale(1);   opacity: 0.5; }
  100% { transform: scale(1.8); opacity: 0; }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
@keyframes bar-grow {
  from { height: 0; }
  to   { height: var(--h); }
}
@keyframes badge-in {
  from { opacity: 0; transform: scale(0.8) translateY(10px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(37,99,235,0.3); }
  50%       { box-shadow: 0 0 50px rgba(37,99,235,0.6); }
}

/* ===================== NAVIGATION ===================== */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all 0.35s ease;
}

.site-nav.scrolled {
  background: rgba(3,11,26,0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 0.875rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-mark {
  width: 36px;
  height: 36px;
  background: var(--grad-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  color: white;
  letter-spacing: -0.5px;
  box-shadow: 0 4px 15px rgba(37,99,235,0.4);
}

.nav-logo-text {
  font-size: 18px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.5px;
}

.nav-logo-text span {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.78);
  border-radius: 6px;
  transition: all var(--t-fast);
}
.nav-links a:hover {
  color: white;
  background: rgba(255,255,255,0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  gap: 5px;
  transition: all var(--t-fast);
}
.nav-toggle:hover { background: rgba(255,255,255,0.12); }

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 0.75rem;
}
.nav-mobile a {
  display: block;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  border-radius: 8px;
  transition: all var(--t-fast);
}
.nav-mobile a:hover { color: white; background: rgba(255,255,255,0.08); }
.nav-mobile .btn { width: 100%; margin-top: 0.5rem; justify-content: center; }

/* ===================== HERO SECTION ===================== */
.hero {
  min-height: 100svh;
  background: var(--grad-hero);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 90px;
  padding-bottom: 4rem;
}

/* Animated background orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero-orb-1 {
  width: 700px;
  height: 700px;
  top: -200px;
  right: -150px;
  background: radial-gradient(circle, rgba(37,99,235,0.18) 0%, transparent 70%);
  animation: spin-slow 30s linear infinite;
}
.hero-orb-2 {
  width: 500px;
  height: 500px;
  bottom: -100px;
  left: -100px;
  background: radial-gradient(circle, rgba(124,58,237,0.15) 0%, transparent 70%);
  animation: spin-slow 22s linear infinite reverse;
}
.hero-orb-3 {
  width: 300px;
  height: 300px;
  top: 40%;
  left: 30%;
  background: radial-gradient(circle, rgba(6,182,212,0.08) 0%, transparent 70%);
  animation: float-y-slow 8s ease-in-out infinite;
}

/* Grid dots overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  background: rgba(37,99,235,0.12);
  border: 1px solid rgba(37,99,235,0.3);
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  width: fit-content;
  animation: fade-in-up 0.6s ease 0.2s both;
}

.hero-badge-dot {
  width: 22px;
  height: 22px;
  background: var(--grad-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.hero-headline {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: white;
  animation: fade-in-up 0.6s ease 0.35s both;
}

.hero-subtext {
  font-size: 1rem;
  color: var(--text-white-dim);
  line-height: 1.8;
  max-width: 480px;
  animation: fade-in-up 0.6s ease 0.5s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fade-in-up 0.6s ease 0.65s both;
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  animation: fade-in-up 0.6s ease 0.8s both;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}
.hero-stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-stat-label {
  font-size: 12px;
  color: var(--text-white-dim);
  font-weight: 500;
  margin-top: 2px;
}
.hero-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.12);
}

/* Hero Dashboard Visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in-up 0.8s ease 0.4s both;
}

.dashboard-mockup {
  width: 440px;
  max-width: 100%;
  background: rgba(15,23,42,0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
  animation: float-y 6s ease-in-out infinite;
}

.mockup-titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.mockup-dots { display: flex; gap: 6px; }
.mockup-dots span {
  width: 10px; height: 10px; border-radius: 50%;
}
.mockup-dots span:nth-child(1) { background: #FF5F57; }
.mockup-dots span:nth-child(2) { background: #FFBD2E; }
.mockup-dots span:nth-child(3) { background: #28C840; }
.mockup-app-name {
  flex: 1;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
}

.mockup-body { padding: 18px; }

.mockup-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.mockup-kpi {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 12px 14px;
}
.mockup-kpi-label {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.mockup-kpi-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: white;
  line-height: 1;
  margin-top: 4px;
}
.mockup-kpi-change {
  font-size: 10px;
  font-weight: 600;
  margin-top: 3px;
}
.mockup-kpi-change.up   { color: #34D399; }
.mockup-kpi-change.down { color: #F87171; }

.mockup-chart-section { margin-bottom: 14px; }
.mockup-chart-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.mockup-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 70px;
}
.mockup-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: rgba(37,99,235,0.3);
  animation: bar-grow 1s cubic-bezier(0.16,1,0.3,1) 0.5s both;
  height: var(--h);
  min-height: 4px;
}
.mockup-bar.active {
  background: var(--grad-primary);
  box-shadow: 0 0 12px rgba(37,99,235,0.5);
}

.mockup-items { display: flex; flex-direction: column; gap: 8px; }
.mockup-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
}
.mockup-item-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.mockup-item-dot.green  { background: #34D399; box-shadow: 0 0 8px rgba(52,211,153,0.6); }
.mockup-item-dot.blue   { background: #60A5FA; box-shadow: 0 0 8px rgba(96,165,250,0.6); }
.mockup-item-dot.purple { background: #A78BFA; box-shadow: 0 0 8px rgba(167,139,250,0.6); }
.mockup-item-name {
  flex: 1;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
}
.mockup-item-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.mockup-item-badge.active  { background: rgba(52,211,153,0.15); color: #34D399; }
.mockup-item-badge.live    { background: rgba(96,165,250,0.15);  color: #60A5FA; }
.mockup-item-badge.running { background: rgba(167,139,250,0.15); color: #A78BFA; }

/* Floating badges */
.hero-float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(15,23,42,0.85);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-xl);
  z-index: 2;
  white-space: nowrap;
}
.hero-float-badge .badge-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.hero-float-badge .badge-text { display: flex; flex-direction: column; }
.hero-float-badge .badge-text strong {
  font-size: 13px;
  font-weight: 700;
  color: white;
  line-height: 1;
}
.hero-float-badge .badge-text span {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
}

.float-badge-1 {
  top: -20px;
  left: -30px;
  animation: badge-in 0.6s ease 1.2s both, float-y 5s ease-in-out 1.8s infinite;
}
.float-badge-2 {
  bottom: 20px;
  right: -25px;
  animation: badge-in 0.6s ease 1.5s both, float-y 5.5s ease-in-out 2s infinite reverse;
}

/* ===================== CLIENTS MARQUEE ===================== */
.clients-section {
  padding: 2.5rem 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}
.clients-label {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.5rem;
}
.marquee-track {
  display: flex;
  gap: 0;
  overflow: hidden;
}
.marquee-inner {
  display: flex;
  gap: 0;
  animation: marquee 25s linear infinite;
  min-width: max-content;
}
.client-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 2.5rem;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: -0.3px;
  opacity: 0.7;
  transition: opacity var(--t-normal);
  white-space: nowrap;
}
.client-logo:hover { opacity: 1; color: var(--primary); }
.client-logo-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* ===================== PRODUCTS SECTION ===================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  padding: 2rem;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity var(--t-normal);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(37,99,235,0.15);
}
.product-card:hover::before { opacity: 1; }

.product-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.product-card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.product-card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.product-card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  transition: gap var(--t-fast);
}
.product-card-link:hover { gap: 8px; }
.product-card-link svg { width: 14px; height: 14px; transition: transform var(--t-fast); }
.product-card-link:hover svg { transform: translateX(2px); }

/* Product card color variants */
.pc-1 .product-icon { background: var(--grad-card1); }
.pc-2 .product-icon { background: var(--grad-card2); }
.pc-3 .product-icon { background: var(--grad-card3); }
.pc-4 .product-icon { background: var(--grad-card4); }
.pc-5 .product-icon { background: var(--grad-card5); }
.pc-6 .product-icon { background: var(--grad-card6); }

/* ===================== SERVICES SECTION ===================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  padding: 2.25rem;
  display: flex;
  gap: 1.5rem;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37,99,235,0.12);
}
.service-icon-wrap {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.service-content { flex: 1; }
.service-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.service-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.service-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.service-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ===================== STATS SECTION ===================== */
.stats-section {
  padding: 3.5rem 0;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(37,99,235,0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(124,58,237,0.1) 0%, transparent 60%);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.stat-item {
  padding: 1.75rem 1.5rem;
  background: rgba(15,23,42,0.8);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  transition: background var(--t-normal);
}
.stat-item:hover { background: rgba(37,99,235,0.08); }
.stat-icon { font-size: 1.5rem; margin-bottom: 0.15rem; }
.stat-number {
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  font-weight: 900;
  color: white;
  line-height: 1;
  letter-spacing: -0.03em;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* ===================== WHY CHOOSE US ===================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.why-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
}
.why-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(37,99,235,0.12);
}
.why-card-num {
  position: absolute;
  top: -10px;
  right: 20px;
  font-size: 6rem;
  font-weight: 900;
  color: rgba(37,99,235,0.05);
  line-height: 1;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}
.why-icon-wrap {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 1.25rem;
  background: var(--grad-primary);
}
.why-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.625rem;
}
.why-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===================== PRICING SECTION ===================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.pricing-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  padding: 2.25rem;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
}
.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.pricing-card.featured {
  background: var(--bg-dark);
  border-color: rgba(37,99,235,0.4);
  box-shadow: 0 0 0 1px rgba(37,99,235,0.2), var(--shadow-xl);
  transform: scale(1.02);
}
.pricing-card.featured:hover {
  transform: scale(1.02) translateY(-5px);
  box-shadow: 0 0 0 1px rgba(37,99,235,0.3), 0 30px 70px rgba(0,0,0,0.3);
}
.pricing-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  background: var(--grad-primary);
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1.25rem;
}
.pricing-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
}
.pricing-card.featured .pricing-name { color: white; }
.pricing-period {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.pricing-card.featured .pricing-period { color: rgba(255,255,255,0.5); }

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 0.375rem;
}
.pricing-currency {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 6px;
}
.pricing-card.featured .pricing-currency { color: rgba(255,255,255,0.6); }
.pricing-amount {
  font-size: 3rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.03em;
}
.pricing-card.featured .pricing-amount { color: white; }

.pricing-divider {
  height: 1px;
  background: var(--border-light);
  margin: 1.5rem 0;
}
.pricing-card.featured .pricing-divider { background: rgba(255,255,255,0.1); }

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 2rem;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.pricing-card.featured .pricing-features li { color: rgba(255,255,255,0.75); }
.pricing-check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  color: #10B981;
  font-size: 10px;
  font-weight: 700;
}
.pricing-card.featured .pricing-check {
  background: rgba(52,211,153,0.15);
  border-color: rgba(52,211,153,0.3);
}

.pricing-card .btn { width: 100%; text-align: center; justify-content: center; }
.pricing-highlight { font-size: 11px; text-align: center; margin-top: 0.75rem; color: var(--text-muted); }
.pricing-card.featured .pricing-highlight { color: rgba(255,255,255,0.4); }

/* ===================== TESTIMONIALS ===================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.testimonial-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  padding: 2.25rem;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37,99,235,0.1);
}
.testimonial-quote-mark {
  font-size: 4rem;
  line-height: 0.8;
  font-weight: 900;
  color: var(--primary);
  opacity: 0.15;
  margin-bottom: 1rem;
  font-family: Georgia, serif;
}
.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 1rem;
  color: var(--warning);
  font-size: 15px;
}
.testimonial-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}
.testimonial-author-info {}
.testimonial-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}
.testimonial-company {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ===================== BLOG SECTION ===================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.blog-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(37,99,235,0.1);
}
.blog-card-img {
  height: 180px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  overflow: hidden;
}
.blog-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, transparent 60%);
}
.blog-img-1 { background: linear-gradient(135deg, #0F172A, #1E3A5F, #1E40AF); }
.blog-img-2 { background: linear-gradient(135deg, #0C1A2E, #1F2937, #374151); }
.blog-img-3 { background: linear-gradient(135deg, #150B30, #1E1B4B, #312E81); }
.blog-img-emoji { font-size: 3rem; position: relative; z-index: 1; }
.blog-category {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 1;
  padding: 3px 10px;
  background: var(--grad-primary);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.blog-card-body { padding: 1.5rem; }
.blog-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 0.625rem;
}
.blog-card-excerpt {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
}
.blog-author-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}
.blog-meta-text { display: flex; flex-direction: column; gap: 1px; }
.blog-author-name { font-weight: 600; color: var(--text-secondary); }

/* ===================== CTA SECTION ===================== */
.cta-section {
  padding: 5rem 0;
  background: var(--grad-hero);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(37,99,235,0.2) 0%, transparent 70%);
}
.cta-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.035) 1px, transparent 0);
  background-size: 48px 48px;
}
.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.cta-title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 900;
  color: white;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.cta-subtitle {
  font-size: 1.0625rem;
  color: var(--text-white-dim);
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
}
.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===================== CONTACT SECTION ===================== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-intro-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.contact-intro-sub {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  transition: all var(--t-normal);
}
.contact-item:hover {
  border-color: rgba(37,99,235,0.2);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}
.contact-item-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  background: var(--grad-card1);
}
.contact-item-content {}
.contact-item-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}
.contact-item-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.contact-item-value a { color: var(--primary); }
.contact-item-value a:hover { text-decoration: underline; }

.contact-map {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  height: 420px;
}
.contact-map iframe { width: 100%; height: 100%; border: none; display: block; }

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--bg-darker);
  color: rgba(255,255,255,0.65);
  padding: 5rem 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand { display: flex; flex-direction: column; gap: 1rem; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-logo-mark {
  width: 34px; height: 34px;
  background: var(--grad-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  color: white;
}
.footer-logo-text {
  font-size: 17px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.5px;
}
.footer-tagline {
  font-size: 14px;
  line-height: 1.75;
  max-width: 280px;
  color: rgba(255,255,255,0.45);
}
.footer-social {
  display: flex;
  gap: 8px;
}
.footer-social-link {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: all var(--t-fast);
  color: rgba(255,255,255,0.55);
  text-decoration: none;
}
.footer-social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateY(-2px);
}
.footer-col { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col-title {
  font-size: 13px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}
.footer-link {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  transition: color var(--t-fast);
  text-decoration: none;
}
.footer-link:hover { color: white; }

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copyright {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}
.footer-copyright strong { color: rgba(255,255,255,0.55); }
.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}
.footer-bottom-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  transition: color var(--t-fast);
}
.footer-bottom-links a:hover { color: rgba(255,255,255,0.6); }

/* ===================== WHATSAPP BUTTON ===================== */
.whatsapp-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
  animation: float-y 4s ease-in-out infinite;
}
.whatsapp-fab:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 30px rgba(37,211,102,0.65);
  animation: none;
}
.whatsapp-fab svg { width: 28px; height: 28px; fill: white; }

.whatsapp-fab::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: rgba(37,211,102,0.25);
  animation: pulse-ring 2.5s ease-out infinite;
}

/* ===================== SCROLL TO TOP ===================== */
.scroll-top-btn {
  position: fixed;
  bottom: 98px;
  right: 28px;
  z-index: 998;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s, visibility .25s, transform .25s ease, background .2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  padding: 0;
}
.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top-btn:hover {
  background: var(--primary);
  border-color: transparent;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.4);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  :root { --section-py: 3.5rem; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .hero-headline { font-size: clamp(1.875rem, 5.5vw, 2.75rem); }
  .hero-subtext { max-width: 560px; margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .hero-social-proof { justify-content: center; }
  .hero-visual { justify-content: center; }
  .dashboard-mockup { width: 380px; }
  .float-badge-1 { left: 0; }
  .float-badge-2 { right: 0; }

  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; gap: 1rem; max-width: 420px; margin: 0 auto; }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-5px); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-wrapper { grid-template-columns: 1fr; }
  .contact-map { height: 300px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@keyframes mobileNavIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  :root { --section-py: 3.5rem; }
  .container { padding: 0 1.25rem; }

  /* Nav bar — hide desktop CTA buttons, show hamburger */
  .nav-links, .nav-actions .btn-ghost, .nav-actions .btn-primary { display: none; }
  .nav-toggle { display: flex; }

  /* Ensure nav bar has solid bg when overlay is open */
  .site-nav.nav-open {
    background: rgba(3, 11, 26, 0.97) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  /* Full-screen overlay nav — #nav-mobile is now outside <nav> so fixed covers full viewport */
  .nav-mobile.open {
    display: flex;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;   /* inset:0 equiv — max browser support */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    background: rgba(3, 11, 26, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1001;                            /* above site-nav (1000) so overlay is truly full-screen */
    border-top: none;
    margin-top: 0;
    animation: mobileNavIn 0.25s ease forwards;
  }
  /* Prominent close button inside overlay */
  .nav-mobile-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
  }
  .nav-mobile-close:hover { background: rgba(255,255,255,0.18); }
  .nav-mobile.open a {
    font-size: 1.375rem;
    font-weight: 600;
    padding: 0.9rem 2rem;
    border-radius: 12px;
    color: rgba(255,255,255,0.85);
    text-align: center;
    min-width: 220px;
  }
  .nav-mobile.open a:hover {
    color: white;
    background: rgba(255,255,255,0.08);
  }
  .nav-mobile.open .btn-primary {
    font-size: 1rem;
    margin-top: 1.5rem;
    min-width: 220px;
    justify-content: center;
    display: flex;
  }

  .hero { padding-top: 80px; min-height: auto; padding-bottom: 3rem; }
  .hero-headline { font-size: clamp(2rem, 8vw, 2.75rem); }
  .hero-social-proof { flex-wrap: wrap; justify-content: center; gap: 1rem; }

  .dashboard-mockup { width: 100%; max-width: 340px; }
  .float-badge-1, .float-badge-2 { display: none; }

  .products-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { flex-direction: column; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 2rem 1.25rem; }
  .why-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom-links { justify-content: center; }

  .btn-xl { padding: 16px 28px; font-size: 15px; }
  .hero-actions .btn-xl { width: 100%; justify-content: center; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .clients-label { font-size: 11px; }
  .cta-actions { flex-direction: column; width: 100%; }
  .cta-actions .btn { width: 100%; justify-content: center; }
}

/* ===================== BLOG — DYNAMIC STATES ===================== */

/* Shimmer skeleton cards while blog posts are loading */
.blog-skeleton {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  overflow: hidden;
  min-height: 320px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e8edf4 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
}

/* Empty state when no posts are published */
.blog-empty-state {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border: 1px dashed var(--border-light);
  border-radius: var(--r-xl);
}
.blog-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.6;
}
.blog-empty-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
}
.blog-empty-sub {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.6;
}

/* "View All Posts" row below the blog grid */
.blog-view-more {
  display: none; /* shown by JS after posts load */
  justify-content: center;
  margin-top: 2.5rem;
}

/* Make blog-card anchor behave like a block card */
a.blog-card:hover { color: inherit; }
a.blog-card .blog-card-title { transition: color var(--t-fast); }
a.blog-card:hover .blog-card-title { color: var(--primary); }

/* ===================== REDUCED MOTION ===================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
