/* =============================================================================
   WEBNOMICS — Core Stylesheet
   Design system for a premium software-company marketing site.
   Structure:
     1. Design tokens (:root)
     2. Reset & base
     3. Typography
     4. Layout utilities
     5. Buttons
     6. Navbar
     7. Hero + signature illustration
     8. Cards (service / portfolio / blog / pricing / testimonial)
     9. Sections (stats, process, why-us, logos, tech stack, CTA, FAQ)
    10. Forms
    11. Footer
    12. Floating UI (WhatsApp, back-to-top, progress bar, cookie banner)
    13. Breadcrumb / inner-page header
    14. 404
    15. Animations
    16. Dark mode
    17. Responsive
    18. Accessibility
   ============================================================================= */

/* ---------- 1. Design tokens ------------------------------------------------ */
:root {
  /* Brand palette (fixed by brief) */
  --primary: #2563EB;
  --primary-600: #1D4ED8;
  --primary-700: #1E40AF;
  --primary-50: #EFF6FF;
  --primary-100: #DBEAFE;

  --secondary: #7C3AED;
  --secondary-600: #6D28D9;
  --secondary-700: #5B21B6;
  --secondary-50: #F5F3FF;

  --accent: #06B6D4;
  --accent-600: #0891B2;
  --accent-50: #ECFEFF;

  --bg: #FFFFFF;
  --dark: #0F172A;
  --text: #475569;
  --heading: #0F172A;
  --border: #E2E8F0;
  --surface: #F8FAFC;
  --surface-2: #F1F5F9;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  --gradient-mesh:
    radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(124, 58, 237, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(6, 182, 212, 0.12) 0%, transparent 50%);

  /* Shadows — soft, tinted, never flat grey */
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.10);
  --shadow-xl: 0 24px 64px rgba(15, 23, 42, 0.14);
  --shadow-glow: 0 12px 28px rgba(37, 99, 235, 0.28);
  --shadow-glow-lg: 0 18px 40px rgba(37, 99, 235, 0.32);

  /* Radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-full: 999px;

  /* Type */
  --font-display: 'Poppins', 'Inter', sans-serif;
  --font-body: 'Inter', 'Poppins', sans-serif;
  --fs-hero: clamp(2.6rem, 5vw, 4.1rem);
  --fs-h1: clamp(2.2rem, 3.6vw, 3rem);
  --fs-h2: clamp(1.7rem, 2.6vw, 2.25rem);
  --fs-h3: 1.375rem;
  --fs-body-lg: 1.125rem;
  --fs-body: 1rem;
  --fs-sm: 0.9rem;
  --fs-xs: 0.8rem;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 0.2s;
  --t-med: 0.4s;
  --t-slow: 0.8s;

  /* Layout */
  --container-w: 1240px;
  --header-h: 84px;
  --z-header: 1000;
  --z-overlay: 1100;
  --z-toast: 1300;
}

[data-theme="dark"] {
  --bg: #0B1220;
  --dark: #020617;
  --text: #94A3B8;
  --heading: #F1F5F9;
  --border: #1E293B;
  --surface: #111A2E;
  --surface-2: #16213A;
  --primary-50: rgba(37, 99, 235, 0.12);
  --secondary-50: rgba(124, 58, 237, 0.14);
  --accent-50: rgba(6, 182, 212, 0.12);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.5);
}

/* ---------- 2. Reset & base -------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background var(--t-med) var(--ease), color var(--t-med) var(--ease);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
svg { display: block; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 2000;
  background: var(--dark); color: #fff; padding: 0.75rem 1.25rem; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* ---------- 3. Typography ---------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--heading);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1rem; }
.lead { font-size: var(--fs-body-lg); color: var(--text); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gradient-primary);
}
.section-heading { max-width: 640px; margin-bottom: 3rem; }
.section-heading.center { margin-inline: auto; text-align: center; }
.section-heading p { font-size: var(--fs-body-lg); }

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

/* ---------- 4. Layout utilities ---------------------------------------------- */
.container-custom {
  width: 100%; max-width: var(--container-w); margin-inline: auto; padding-inline: 24px;
}
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section-tight { padding-block: clamp(40px, 6vw, 72px); }
.bg-surface { background: var(--surface); }
.bg-dark-section { background: var(--dark); color: #CBD5E1; }
.bg-dark-section h2, .bg-dark-section h3 { color: #fff; }
.grid { display: grid; gap: 1.75rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.mesh-bg { position: relative; }
.mesh-bg::before {
  content: ''; position: absolute; inset: 0; background: var(--gradient-mesh);
  pointer-events: none; z-index: 0;
}

/* ---------- 5. Buttons -------------------------------------------------------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem;
  padding: 0.9rem 1.8rem; border-radius: var(--r-full); border: none;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--gradient-primary); color: #fff; box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-glow-lg); }
.btn-outline {
  background: transparent; color: var(--heading); border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-3px); }
.btn-white { background: #fff; color: var(--primary); box-shadow: var(--shadow-md); }
.btn-white:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn-sm { padding: 0.6rem 1.3rem; font-size: 0.88rem; }
.btn-lg { padding: 1.05rem 2.3rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn .ripple {
  position: absolute; border-radius: 50%; background: rgba(255,255,255,0.55);
  transform: scale(0); animation: ripple-anim 0.6s ease-out; pointer-events: none;
}
@keyframes ripple-anim { to { transform: scale(3.2); opacity: 0; } }

.icon-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg); color: var(--heading); transition: all var(--t-fast) var(--ease);
}
.icon-btn:hover { background: var(--gradient-primary); color: #fff; border-color: transparent; transform: translateY(-3px); }

/* ---------- 6. Navbar --------------------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-header);
  padding: 20px 0; transition: all var(--t-med) var(--ease);
}
.site-header.is-scrolled {
  padding: 12px 0; background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-md); border-bottom: 1px solid rgba(226,232,240,0.6);
}
[data-theme="dark"] .site-header.is-scrolled { background: rgba(11, 18, 32, 0.75); border-bottom-color: rgba(30,41,59,0.7); }

.navbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--heading); }
.brand .brand-mark {
  width: 38px; height: 38px; border-radius: var(--r-sm); background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1.1rem;
  box-shadow: var(--shadow-glow);
}
.nav-links { display: flex; align-items: center; gap: 2.1rem; }
.nav-links > li > a {
  font-size: 0.96rem; font-weight: 500; color: var(--heading); padding: 0.5rem 0; position: relative;
}
.nav-links > li > a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--gradient-primary); transition: width var(--t-fast) var(--ease); border-radius: 2px;
}
.nav-links > li > a:hover::after, .nav-links > li.is-active > a::after { width: 100%; }
.nav-item-dropdown { position: relative; }
.dropdown-panel {
  position: absolute; top: calc(100% + 18px); left: -20px; width: 300px;
  background: var(--bg); border-radius: var(--r-md); box-shadow: var(--shadow-xl);
  border: 1px solid var(--border); padding: 10px; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: all var(--t-fast) var(--ease);
}
.nav-item-dropdown:hover .dropdown-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-panel a {
  display: flex; align-items: center; gap: 0.7rem; padding: 0.65rem 0.75rem; border-radius: var(--r-sm);
  font-size: 0.92rem; color: var(--heading); font-weight: 500;
}
.dropdown-panel a:hover { background: var(--surface); color: var(--primary); }
.dropdown-panel a i { color: var(--primary); font-size: 1rem; width: 20px; }
.nav-actions { display: flex; align-items: center; gap: 0.9rem; }
.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--border);
  background: var(--bg); display: inline-flex; align-items: center; justify-content: center; color: var(--heading);
}
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: var(--r-sm); border: 1.5px solid var(--border);
  background: var(--bg); align-items: center; justify-content: center; color: var(--heading);
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--gradient-primary); z-index: 1200; transition: width 0.1s linear;
}

/* ---------- 7. Hero + signature illustration --------------------------------- */
.hero {
  position: relative; padding-top: calc(var(--header-h) + 64px); padding-bottom: 80px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center; }
.hero-badges { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.9rem;
  background: var(--primary-50); color: var(--primary-600); border-radius: var(--r-full);
  font-size: 0.8rem; font-weight: 600;
}
.hero h1 { font-size: var(--fs-hero); margin-bottom: 1.3rem; }
.hero h1 .line { display: block; }
.hero-lead { font-size: var(--fs-body-lg); max-width: 520px; margin-bottom: 2.2rem; }
.hero-cta-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.75rem; }
.hero-trust { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.hero-trust span { font-size: 0.82rem; color: var(--text); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }

.hero-stage { position: relative; height: 480px; }
.stack-panel {
  position: absolute; border-radius: var(--r-lg); background: var(--bg);
  box-shadow: var(--shadow-xl); border: 1px solid var(--border); overflow: hidden;
}
.stack-panel.panel-back {
  width: 78%; height: 72%; top: 4%; right: 0; background: var(--surface-2);
  opacity: 0.7;
}
.stack-panel.panel-mid {
  width: 82%; height: 76%; top: 10%; left: 2%; background: var(--primary-50);
  opacity: 0.85;
}
.stack-panel.panel-front {
  width: 92%; height: 88%; top: 6%; left: 4%; background: var(--bg);
  display: flex; flex-direction: column;
}
.panel-chrome { display: flex; align-items: center; gap: 6px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.panel-chrome span { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.panel-chrome span:nth-child(1) { background: #F87171; }
.panel-chrome span:nth-child(2) { background: #FBBF24; }
.panel-chrome span:nth-child(3) { background: #34D399; }
.panel-chrome .panel-url {
  margin-left: 10px; flex: 1; height: 20px; border-radius: var(--r-full);
  background: var(--surface); font-size: 0.7rem; color: var(--text);
  display: flex; align-items: center; padding-left: 10px;
}
.panel-content { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 14px; }
.panel-nav { display: flex; gap: 8px; }
.panel-nav div { height: 8px; border-radius: 4px; background: var(--surface-2); }
.panel-nav div:nth-child(1) { width: 36px; }
.panel-nav div:nth-child(2) { width: 26px; }
.panel-nav div:nth-child(3) { width: 30px; }
.panel-hero-block { height: 68px; border-radius: var(--r-sm); background: var(--gradient-primary); position: relative; overflow: hidden; }
.panel-hero-block::after {
  content: ''; position: absolute; inset: 0; background: var(--gradient-mesh); mix-blend-mode: overlay;
}
.panel-cards-row { display: flex; gap: 10px; flex: 1; }
.panel-cards-row div { flex: 1; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--border); }
.panel-cards-row div:nth-child(1) { background: var(--accent-50); }
.panel-cards-row div:nth-child(2) { background: var(--secondary-50); }
.panel-cards-row div:nth-child(3) { background: var(--primary-50); }

.hero-float-chip {
  position: absolute; display: flex; align-items: center; gap: 0.6rem;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 0.7rem 1rem; box-shadow: var(--shadow-lg); font-size: 0.82rem; font-weight: 600; color: var(--heading);
  backdrop-filter: blur(10px);
}
.hero-float-chip i { color: var(--primary); font-size: 1.05rem; }
.chip-top { top: 2%; left: -6%; }
.chip-bottom { bottom: 4%; right: -4%; }

.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(60px); z-index: -1; opacity: 0.55;
}
.blob-1 { width: 420px; height: 420px; background: var(--primary); top: -120px; right: 10%; }
.blob-2 { width: 380px; height: 380px; background: var(--secondary); bottom: -140px; left: -80px; }

.partner-strip { margin-top: 90px; padding-top: 40px; border-top: 1px solid var(--border); }
.partner-strip p { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text); margin-bottom: 1.5rem; text-align: center; }
.partner-logos { display: flex; align-items: center; justify-content: center; gap: clamp(1.5rem, 4vw, 3.5rem); flex-wrap: wrap; opacity: 0.75; filter: grayscale(1); }
.partner-logos span { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--heading); }

/* ---------- 8. Cards ----------------------------------------------------------- */
.service-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 2.2rem; box-shadow: var(--shadow-sm); transition: all var(--t-med) var(--ease); height: 100%;
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); border-color: transparent; }
.service-card .card-icon {
  width: 58px; height: 58px; border-radius: var(--r-md); background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.5rem;
  margin-bottom: 1.5rem; transition: transform var(--t-med) var(--ease);
}
.service-card:hover .card-icon { transform: rotate(-8deg) scale(1.08); }
.service-card h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.service-card p { font-size: 0.94rem; flex: 1; }
.card-link { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; font-size: 0.9rem; color: var(--primary); margin-top: 1rem; }
.card-link i { transition: transform var(--t-fast) var(--ease); }
.service-card:hover .card-link i { transform: translateX(4px); }

.portfolio-card { border-radius: var(--r-lg); overflow: hidden; background: var(--bg); border: 1px solid var(--border); transition: all var(--t-med) var(--ease); }
.portfolio-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.portfolio-cover { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.portfolio-cover .cover-fill { position: absolute; inset: 0; }
.portfolio-cover .cover-mock {
  position: absolute; inset: 12%; background: rgba(255,255,255,0.16); border-radius: var(--r-sm);
  backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,0.3);
}
.portfolio-overlay {
  position: absolute; inset: 0; background: rgba(15,23,42,0.55); opacity: 0; display: flex;
  align-items: center; justify-content: center; gap: 0.8rem; transition: opacity var(--t-fast) var(--ease);
}
.portfolio-card:hover .portfolio-overlay { opacity: 1; }
.portfolio-body { padding: 1.4rem 1.5rem; }
.portfolio-tag { display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--primary); margin-bottom: 0.4rem; }
.portfolio-body h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.portfolio-body p { font-size: 0.86rem; margin-bottom: 0; }
.filter-bar { display: flex; gap: 0.7rem; flex-wrap: wrap; justify-content: center; margin-bottom: 3rem; }
.filter-btn {
  padding: 0.6rem 1.4rem; border-radius: var(--r-full); border: 1.5px solid var(--border); background: var(--bg);
  font-weight: 600; font-size: 0.88rem; color: var(--heading); transition: all var(--t-fast) var(--ease);
}
.filter-btn.is-active, .filter-btn:hover { background: var(--gradient-primary); color: #fff; border-color: transparent; }

.grad-1 { background: linear-gradient(135deg, #2563EB, #06B6D4); }
.grad-2 { background: linear-gradient(135deg, #7C3AED, #2563EB); }
.grad-3 { background: linear-gradient(135deg, #06B6D4, #7C3AED); }
.grad-4 { background: linear-gradient(135deg, #2563EB, #7C3AED, #06B6D4); }
.grad-5 { background: linear-gradient(160deg, #0F172A, #2563EB); }
.grad-6 { background: linear-gradient(160deg, #7C3AED, #0F172A); }

.blog-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; transition: all var(--t-med) var(--ease); height: 100%; display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
.blog-cover { aspect-ratio: 16/10; position: relative; }
.blog-cat {
  position: absolute; top: 16px; left: 16px; background: rgba(255,255,255,0.92); color: var(--primary-600);
  font-size: 0.72rem; font-weight: 700; padding: 0.35rem 0.85rem; border-radius: var(--r-full); text-transform: uppercase; letter-spacing: 0.03em;
}
.blog-body { padding: 1.6rem; flex: 1; display: flex; flex-direction: column; }
.blog-meta { display: flex; align-items: center; gap: 1rem; font-size: 0.82rem; color: var(--text); margin-bottom: 0.7rem; }
.blog-meta i { margin-right: 0.3rem; color: var(--primary); }
.blog-body h3 { font-size: 1.12rem; margin-bottom: 0.6rem; }
.blog-body p { font-size: 0.92rem; flex: 1; }
.read-more { font-weight: 600; font-size: 0.9rem; color: var(--primary); display: inline-flex; align-items: center; gap: 0.4rem; margin-top: auto; }

.testimonial-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 2.2rem; box-shadow: var(--shadow-sm); height: 100%;
}
.rating { color: #FBBF24; font-size: 0.9rem; margin-bottom: 1rem; letter-spacing: 2px; }
.testimonial-card .quote { font-size: 1.02rem; color: var(--heading); margin-bottom: 1.6rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.9rem; }
.avatar-initials {
  width: 48px; height: 48px; border-radius: 50%; background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-family: var(--font-display);
  flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 0.94rem; color: var(--heading); }
.testimonial-author span { font-size: 0.82rem; color: var(--text); }

.pricing-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 2.4rem;
  transition: all var(--t-med) var(--ease); position: relative; height: 100%; display: flex; flex-direction: column;
}
.pricing-card.featured { border: none; background: var(--dark); color: #CBD5E1; transform: scale(1.03); box-shadow: var(--shadow-xl); }
.pricing-card.featured h3, .pricing-card.featured .price { color: #fff; }
.pricing-card.featured .badge-pop { position: absolute; top: -14px; right: 28px; background: var(--gradient-accent); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 0.35rem 0.9rem; border-radius: var(--r-full); }
.pricing-card:hover:not(.featured) { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.price { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--heading); margin: 0.6rem 0 0.2rem; }
.price span { font-size: 0.95rem; font-weight: 500; color: var(--text); }
.pricing-card ul { margin: 1.6rem 0 2rem; display: flex; flex-direction: column; gap: 0.8rem; }
.pricing-card ul li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.92rem; }
.pricing-card ul li i { color: var(--accent); margin-top: 3px; }
.pricing-card.featured ul li { color: #CBD5E1; }
.pricing-card.featured ul li i { color: #22D3EE; }

/* ---------- 9. Sections -------------------------------------------------------- */
.stats-band { background: var(--dark); border-radius: var(--r-xl); padding: clamp(2.5rem, 5vw, 4rem); position: relative; overflow: hidden; }
.stats-band::before { content: ''; position: absolute; inset: 0; background: var(--gradient-mesh); opacity: 0.5; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; position: relative; z-index: 1; text-align: center; }
.stat-item .stat-number { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; color: #fff; }
.stat-item .stat-number span { color: var(--accent); }
.stat-item .stat-label { color: #94A3B8; font-size: 0.9rem; margin-top: 0.4rem; }

.process-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.process-steps { display: flex; flex-direction: column; gap: 2.2rem; }
.process-step { display: flex; gap: 1.5rem; }
.step-num {
  font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: transparent;
  -webkit-text-stroke: 1.5px var(--primary); flex-shrink: 0; width: 56px; line-height: 1;
}
.process-step h3 { font-size: 1.08rem; margin-bottom: 0.35rem; }
.process-step p { font-size: 0.92rem; margin-bottom: 0; }
.process-line { position: relative; }

.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.why-item {
  padding: 2rem 1.6rem; border-radius: var(--r-md); background: var(--bg); border: 1px solid var(--border);
  transition: all var(--t-med) var(--ease); text-align: left;
}
.why-item:hover { border-color: transparent; box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.why-item i { font-size: 1.6rem; color: var(--primary); margin-bottom: 1rem; display: block; }
.why-item h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.why-item p { font-size: 0.86rem; margin-bottom: 0; }

.tech-marquee { overflow: hidden; position: relative; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.tech-track { display: flex; gap: 3rem; width: max-content; animation: marquee 28s linear infinite; }
.tech-chip { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 600; color: var(--heading); font-size: 1rem; white-space: nowrap; }
.tech-chip i { color: var(--primary); font-size: 1.2rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.logos-band { display: flex; align-items: center; justify-content: center; gap: clamp(2rem, 5vw, 4rem); flex-wrap: wrap; }
.logos-band span { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--text); opacity: 0.7; filter: grayscale(1); transition: all var(--t-fast) var(--ease); }
.logos-band span:hover { opacity: 1; filter: none; color: var(--primary); }

.cta-banner {
  background: var(--gradient-primary); border-radius: var(--r-xl); padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before { content: ''; position: absolute; inset: 0; background: var(--gradient-mesh); mix-blend-mode: overlay; }
.cta-banner h2, .cta-banner p { color: #fff; position: relative; z-index: 1; }
.cta-banner .btn-row { position: relative; z-index: 1; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.4rem 0; background: none; border: none; text-align: left;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--heading);
}
.faq-question i { transition: transform var(--t-fast) var(--ease); color: var(--primary); flex-shrink: 0; }
.faq-item.is-open .faq-question i { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height var(--t-med) var(--ease); }
.faq-answer p { padding-bottom: 1.4rem; margin: 0; font-size: 0.94rem; }

/* ---------- 10. Forms ---------------------------------------------------------- */
.form-control-modern {
  width: 100%; padding: 0.95rem 1.15rem; border-radius: var(--r-sm); border: 1.5px solid var(--border);
  background: var(--surface); font-family: var(--font-body); font-size: 0.95rem; color: var(--heading);
  transition: all var(--t-fast) var(--ease);
}
.form-control-modern:focus { outline: none; border-color: var(--primary); background: var(--bg); box-shadow: 0 0 0 4px var(--primary-50); }
.form-group { margin-bottom: 1.3rem; position: relative; }
.form-group label { display: block; font-size: 0.86rem; font-weight: 600; color: var(--heading); margin-bottom: 0.5rem; }
.form-error { font-size: 0.78rem; color: #EF4444; margin-top: 0.35rem; display: none; }
.form-group.has-error .form-control-modern { border-color: #EF4444; }
.form-group.has-error .form-error { display: block; }
.form-success-box {
  display: none; align-items: center; gap: 0.8rem; background: #ECFDF5; color: #047857;
  padding: 1rem 1.3rem; border-radius: var(--r-sm); font-size: 0.9rem; font-weight: 600; margin-top: 1rem;
}
.form-success-box.is-visible { display: flex; }
.contact-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-xl); padding: clamp(1.8rem, 4vw, 3rem); box-shadow: var(--shadow-lg); }
.map-placeholder {
  position: relative; border-radius: var(--r-lg); overflow: hidden; height: 100%; min-height: 340px;
  background:
    linear-gradient(rgba(37,99,235,0.08), rgba(124,58,237,0.08)),
    repeating-linear-gradient(0deg, rgba(71,85,105,0.08) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(71,85,105,0.08) 0 1px, transparent 1px 40px);
  display: flex; align-items: center; justify-content: center; border: 1px solid var(--border);
}
.map-pin { text-align: center; }
.map-pin i { font-size: 2.6rem; color: var(--primary); }
.map-pin p { font-weight: 700; color: var(--heading); margin: 0.6rem 0 0.2rem; font-family: var(--font-display); }
.map-pin span { font-size: 0.85rem; color: var(--text); }

.newsletter-box {
  background: var(--dark); border-radius: var(--r-xl); padding: clamp(2rem, 5vw, 3.2rem);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; position: relative; overflow: hidden;
}
.newsletter-box::before { content: ''; position: absolute; inset: 0; background: var(--gradient-mesh); opacity: 0.6; }
.newsletter-box .nl-text { position: relative; z-index: 1; max-width: 460px; }
.newsletter-box h3 { color: #fff; margin-bottom: 0.4rem; }
.newsletter-box p { color: #94A3B8; margin-bottom: 0; }
.newsletter-form { position: relative; z-index: 1; display: flex; gap: 0.7rem; flex: 1; max-width: 460px; }
.newsletter-form input {
  flex: 1; padding: 0.9rem 1.2rem; border-radius: var(--r-full); border: none; font-size: 0.92rem;
  background: rgba(255,255,255,0.08); color: #fff; border: 1.5px solid rgba(255,255,255,0.15);
}
.newsletter-form input::placeholder { color: #94A3B8; }
.newsletter-form input:focus { outline: none; border-color: var(--accent); }

/* ---------- 11. Footer ---------------------------------------------------------- */
.site-footer { background: var(--dark); color: #94A3B8; padding-top: clamp(60px, 8vw, 100px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 3rem; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand .brand { color: #fff; margin-bottom: 1rem; }
.footer-grid p { font-size: 0.92rem; line-height: 1.7; }
.footer-social { display: flex; gap: 0.7rem; margin-top: 1.4rem; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.14);
  display: inline-flex; align-items: center; justify-content: center; color: #fff; transition: all var(--t-fast) var(--ease);
}
.footer-social a:hover { background: var(--gradient-primary); border-color: transparent; transform: translateY(-3px); }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 1.4rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.8rem; }
.footer-col a { font-size: 0.9rem; transition: color var(--t-fast) var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-col .contact-line { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.9rem; }
.footer-col .contact-line i { color: var(--accent); margin-top: 3px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 26px 0; flex-wrap: wrap; gap: 1rem; font-size: 0.85rem; }
.footer-bottom .legal-links { display: flex; gap: 1.5rem; }

/* ---------- 12. Floating UI ------------------------------------------------------ */
.whatsapp-float {
  position: fixed; bottom: 28px; left: 28px; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45); z-index: var(--z-overlay);
  animation: pulse-wa 2.6s infinite;
}
@keyframes pulse-wa { 0%, 100% { box-shadow: 0 10px 28px rgba(37,211,102,0.45); } 50% { box-shadow: 0 10px 28px rgba(37,211,102,0.75), 0 0 0 8px rgba(37,211,102,0.12); } }

.back-to-top {
  position: fixed; bottom: 28px; right: 28px; width: 50px; height: 50px; border-radius: 50%;
  background: var(--gradient-primary); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-glow); z-index: var(--z-overlay); opacity: 0; visibility: hidden; transform: translateY(15px);
  transition: all var(--t-fast) var(--ease); border: none;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

.sticky-cta-mobile {
  position: fixed; bottom: 0; left: 0; right: 0; background: var(--bg); border-top: 1px solid var(--border);
  padding: 12px 16px; z-index: var(--z-overlay); display: none; box-shadow: 0 -6px 20px rgba(15,23,42,0.08);
}

.cookie-banner {
  position: fixed; bottom: 20px; left: 20px; right: 20px; max-width: 480px; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--r-md); padding: 1.4rem 1.6rem; box-shadow: var(--shadow-xl);
  z-index: var(--z-toast); transform: translateY(140%); transition: transform var(--t-med) var(--ease);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner p { font-size: 0.88rem; margin-bottom: 1rem; }
.cookie-actions { display: flex; gap: 0.7rem; }

.livechat-bubble {
  position: fixed; bottom: 96px; left: 28px; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 0.8rem 1.1rem; box-shadow: var(--shadow-lg); font-size: 0.84rem;
  max-width: 220px; z-index: var(--z-overlay); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all var(--t-fast) var(--ease);
}
.livechat-bubble.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- 13. Inner-page header / breadcrumb ----------------------------------- */
.page-hero {
  padding-top: calc(var(--header-h) + 60px); padding-bottom: 60px; text-align: center; position: relative; overflow: hidden;
}
.breadcrumb-row { display: flex; align-items: center; justify-content: center; gap: 0.5rem; font-size: 0.88rem; margin-bottom: 1rem; }
.breadcrumb-row a { color: var(--text); }
.breadcrumb-row a:hover { color: var(--primary); }
.breadcrumb-row .sep { color: var(--border); }
.breadcrumb-row .current { color: var(--primary); font-weight: 600; }
.page-hero h1 { font-size: var(--fs-h1); }
.page-hero .lead { max-width: 620px; margin-inline: auto; }

/* ---------- 14. 404 -------------------------------------------------------------- */
.error-page { min-height: 90vh; display: flex; align-items: center; padding-top: var(--header-h); }
.error-code { font-family: var(--font-display); font-size: clamp(5rem, 16vw, 9rem); font-weight: 700; line-height: 1; background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------- 15. Animations -------------------------------------------------------- */
@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes float-slow { 0%, 100% { transform: translate(0,0) rotate(0deg); } 50% { transform: translate(10px,-14px) rotate(3deg); } }
.animate-float { animation: float-y 5s ease-in-out infinite; }
.animate-float-slow { animation: float-slow 9s ease-in-out infinite; }
[data-aos] { transition-property: opacity, transform; }

/* ---------- 16. Dark mode tweaks -------------------------------------------------- */
[data-theme="dark"] .service-card, [data-theme="dark"] .portfolio-card, [data-theme="dark"] .blog-card,
[data-theme="dark"] .testimonial-card, [data-theme="dark"] .pricing-card, [data-theme="dark"] .why-item,
[data-theme="dark"] .contact-card, [data-theme="dark"] .stack-panel.panel-front { background: var(--surface); border-color: var(--border); }
[data-theme="dark"] .stack-panel.panel-back { background: var(--surface-2); }
[data-theme="dark"] .form-control-modern { background: var(--surface-2); color: #E2E8F0; }
[data-theme="dark"] .partner-logos, [data-theme="dark"] .logos-band span { opacity: 0.55; }
[data-theme="dark"] .theme-toggle .bi-moon-stars { display: none; }
[data-theme="dark"] .theme-toggle .bi-sun { display: inline-block; }
.theme-toggle .bi-sun { display: none; }
[data-theme="dark"] .footer-social a { border-color: rgba(255,255,255,0.1); }

/* ---------- 17. Responsive -------------------------------------------------------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { height: 380px; order: -1; }
  .process-wrap { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2.2rem; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .hero { padding-top: calc(var(--header-h) + 30px); }
  .why-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .newsletter-box { flex-direction: column; text-align: center; }
  .newsletter-form { width: 100%; }
  .whatsapp-float { width: 52px; height: 52px; font-size: 1.4rem; bottom: 82px; left: 14px; }
  .back-to-top { width: 44px; height: 44px; bottom: 86px; right: 14px; }
  .livechat-bubble { bottom: 146px; left: 14px; }
  /* bottom: 86px; */
  .cookie-banner { left: 14px; right: 14px;  }
  .chip-top, .chip-bottom { display: none; }
  .pricing-card.featured { transform: none; }
  .sticky-cta-mobile { display: flex; gap: 10px; }
  body { padding-bottom: 68px; }
}

/* Mobile off-canvas nav */
.mobile-nav {
  position: fixed; top: 0; right: -100%; width: min(340px, 86%); height: 100%; background: var(--bg);
  z-index: 1400; box-shadow: -10px 0 40px rgba(15,23,42,0.2); transition: right var(--t-med) var(--ease);
  padding: 24px; overflow-y: auto;
}
.mobile-nav.is-open { right: 0; }
.mobile-nav-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,0.5); z-index: 1390; opacity: 0; visibility: hidden;
  transition: all var(--t-med) var(--ease);
}
.mobile-nav-overlay.is-open { opacity: 1; visibility: visible; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 0.3rem; margin-top: 2rem; }
.mobile-nav ul a { display: block; padding: 0.85rem 0.5rem; font-weight: 600; font-size: 1.02rem; color: var(--heading); border-bottom: 1px solid var(--border); }
.mobile-nav .sub-links { padding-left: 1rem; display: flex; flex-direction: column; }
.mobile-nav .sub-links a { font-weight: 500; font-size: 0.92rem; color: var(--text); border-bottom: none; padding: 0.6rem 0.5rem; }
.mobile-close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: none; display: flex; align-items: center; justify-content: center; }
