/* ================================================
   PrimeQub — Main Stylesheet v2.0
   Building Intelligent Digital Systems
   Professional light/dark theme system
   ================================================ */

/* ================================================
   1. DESIGN TOKENS
   ================================================ */
:root {
  /* --- Light Mode (default) --- */
  --c-bg:        #ffffff;
  --c-bg-2:      #f8fafc;
  --c-bg-3:      #f1f5f9;
  --c-surface:   #ffffff;
  --c-surface-2: #f8fafc;
  --c-border:    #e2e8f0;
  --c-border-2:  #cbd5e1;

  --c-text-1:    #0f172a;
  --c-text-2:    #1e293b;
  --c-text-3:    #475569;
  --c-text-4:    #94a3b8;

  --c-brand:        #2563eb;
  --c-brand-hover:  #1d4ed8;
  --c-brand-light:  #eff6ff;
  --c-brand-border: #bfdbfe;
  --c-brand-2:      #1e40af;

  --grad-brand:    linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  --grad-hero:     linear-gradient(160deg, #edf2fe 0%, #f5f8ff 40%, #ffffff 80%);
  --grad-section:  linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);

  /* Hero background system */
  --hero-dot:      rgba(37,99,235,.18);
  --hero-line:     rgba(37,99,235,.07);
  --hero-orb-1:    rgba(37,99,235,.08);
  --hero-orb-2:    rgba(99,102,241,.06);

  --shadow-xs: 0 1px 2px rgba(0,0,0,.05);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.06);
  --shadow-xl: 0 20px 50px rgba(0,0,0,.12), 0 8px 16px rgba(0,0,0,.06);

  --navbar-bg:     rgba(255,255,255,.92);
  --navbar-border: rgba(0,0,0,.07);
  --mobile-bg:     #ffffff;

  /* Shared */
  --r-xs:   4px;
  --r-sm:   8px;
  --r-md:   10px;
  --r-lg:   14px;
  --r-xl:   18px;
  --r-2xl:  24px;
  --r-3xl:  32px;
  --r-full: 9999px;

  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-accent:  'Poppins', sans-serif;

  --sp-1:  .25rem;  --sp-2: .5rem;   --sp-3: .75rem;
  --sp-4:  1rem;    --sp-5: 1.25rem; --sp-6: 1.5rem;
  --sp-8:  2rem;    --sp-10: 2.5rem; --sp-12: 3rem;
  --sp-16: 4rem;    --sp-20: 5rem;   --sp-24: 6rem;
  --sp-32: 8rem;

  --t-fast:   150ms ease;
  --t-base:   250ms ease;
  --t-slow:   400ms cubic-bezier(0.22,1,0.36,1);
  --t-slower: 500ms cubic-bezier(0.22,1,0.36,1);

  --z-drop:  100;
  --z-sticky:200;
  --z-modal: 400;
  --z-toast: 500;
}

[data-theme="dark"] {
  --c-bg:        #0c1220;
  --c-bg-2:      #111827;
  --c-bg-3:      #1a2436;
  --c-surface:   #111827;
  --c-surface-2: #1a2436;
  --c-border:    rgba(255,255,255,.08);
  --c-border-2:  rgba(255,255,255,.13);

  --c-text-1:    #f1f5f9;
  --c-text-2:    #e2e8f0;
  --c-text-3:    #94a3b8;
  --c-text-4:    #64748b;

  --c-brand:        #3b82f6;
  --c-brand-hover:  #60a5fa;
  --c-brand-light:  rgba(59,130,246,.12);
  --c-brand-border: rgba(59,130,246,.28);
  --c-brand-2:      #60a5fa;

  --grad-brand:    linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  --grad-hero:     linear-gradient(160deg, #060c18 0%, #0a1020 45%, #0c1220 100%);
  --grad-section:  linear-gradient(180deg, #111827 0%, #0c1220 100%);

  /* Hero background system — dark */
  --hero-dot:      rgba(148,180,255,.22);
  --hero-line:     rgba(148,180,255,.08);
  --hero-orb-1:    rgba(59,130,246,.16);
  --hero-orb-2:    rgba(99,102,241,.12);

  --shadow-xs: 0 1px 2px rgba(0,0,0,.3);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.35), 0 1px 2px rgba(0,0,0,.25);
  --shadow-md: 0 4px 12px rgba(0,0,0,.35), 0 2px 4px rgba(0,0,0,.25);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.45), 0 4px 8px rgba(0,0,0,.3);
  --shadow-xl: 0 20px 50px rgba(0,0,0,.5), 0 8px 16px rgba(0,0,0,.3);

  --navbar-bg:     rgba(12,18,32,.92);
  --navbar-border: rgba(255,255,255,.07);
  --mobile-bg:     #111827;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--c-bg);
  color: var(--c-text-2);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .3s ease, color .3s ease;
}

img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

:focus-visible {
  outline: 2px solid var(--c-brand);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

::selection { background: var(--c-brand-light); color: var(--c-brand-2); }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--c-bg-2); }
::-webkit-scrollbar-thumb { background: var(--c-border-2); border-radius: var(--r-full); }
::-webkit-scrollbar-thumb:hover { background: var(--c-text-4); }

/* ================================================
   3. TYPOGRAPHY
   ================================================ */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  color: var(--c-text-1);
  letter-spacing: -.02em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p { color: var(--c-text-3); max-width: 65ch; }

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

.lead {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  color: var(--c-text-3);
  line-height: 1.8;
  max-width: 58ch;
}

/* ================================================
   4. LAYOUT SYSTEM
   ================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

@media (min-width: 768px)  { .container { padding: 0 var(--sp-8); } }
@media (min-width: 1280px) { .container { padding: 0 var(--sp-10); } }

.section    { padding: var(--sp-24) 0; position: relative; }
.section-sm { padding: var(--sp-16) 0; position: relative; }
.section-lg { padding: var(--sp-32) 0; position: relative; }

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

.section-header {
  text-align: center;
  margin-bottom: var(--sp-14, 3.5rem);
}
.section-header p {
  margin: var(--sp-4) auto 0;
  max-width: 560px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-brand);
  padding: var(--sp-1) var(--sp-3);
  background: var(--c-brand-light);
  border: 1px solid var(--c-brand-border);
  border-radius: var(--r-full);
  margin-bottom: var(--sp-4);
}

.grid   { display: grid; gap: var(--sp-6); }
.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         { 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     { flex-direction: column; }
.flex-wrap    { flex-wrap: wrap; }
.items-center { align-items: center; }
.gap-2  { gap: var(--sp-2); }
.gap-4  { gap: var(--sp-4); }
.gap-6  { gap: var(--sp-6); }
.gap-8  { gap: var(--sp-8); }

/* ================================================
   5. BUTTONS
   ================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: .625rem 1.25rem;
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .01em;
  transition: all var(--t-base);
  position: relative;
  white-space: nowrap;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
}
.btn-lg { padding: .8rem 1.75rem; font-size: .95rem; border-radius: var(--r-lg); }
.btn-sm { padding: .45rem 1rem;   font-size: .8rem; }

.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 1px 3px rgba(37,99,235,.25), 0 4px 12px rgba(37,99,235,.15);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(37,99,235,.3), 0 8px 20px rgba(37,99,235,.2);
  filter: brightness(1.05);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--c-text-2);
  border-color: var(--c-border);
}
.btn-ghost:hover {
  background: var(--c-bg-2);
  border-color: var(--c-border-2);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--c-brand);
  border-color: var(--c-brand-border);
}
.btn-outline:hover {
  background: var(--c-brand-light);
  border-color: var(--c-brand);
}

/* ================================================
   6. CARDS
   ================================================ */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  transition: all var(--t-slow);
  box-shadow: var(--shadow-sm);
}
.card:hover {
  border-color: var(--c-border-2);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Service Card */
.service-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  transition: all var(--t-slow);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  height: 100%;
}
.service-card:hover {
  border-color: var(--c-brand-border);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.service-card__icon {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  background: var(--c-brand-light);
  color: var(--c-brand);
  margin-bottom: var(--sp-2);
  transition: all var(--t-base);
  flex-shrink: 0;
}
.service-card:hover .service-card__icon {
  background: var(--c-brand);
  color: #fff;
  transform: scale(1.05);
}
.service-card h3 { font-size: 1.15rem; }
.service-card p  { font-size: .9rem; }
.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: .875rem;
  font-weight: 600;
  color: var(--c-brand);
  margin-top: auto;
  transition: gap var(--t-fast);
}
.service-card__link:hover { gap: var(--sp-3); }
.service-card__list {
  display: flex; flex-direction: column; gap: var(--sp-2);
  margin-top: var(--sp-2);
}
.service-card__list li {
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: .85rem; color: var(--c-text-3);
}
.service-card__list li i { color: var(--c-brand); font-size: .75rem; flex-shrink: 0; }

/* Portfolio Card */
.portfolio-card {
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  transition: all var(--t-slow);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.portfolio-card__img {
  height: 200px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}
.portfolio-card__body { padding: var(--sp-6); }
.portfolio-card__tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.portfolio-card h3 { font-size: 1.05rem; margin-bottom: var(--sp-2); transition: color var(--t-fast); }
.portfolio-card:hover h3 { color: var(--c-brand); }
.portfolio-card p { font-size: .875rem; line-height: 1.6; }
.portfolio-card:hover {
  border-color: var(--c-brand-border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Blog Card */
.blog-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: all var(--t-slow);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-sm);
}
.blog-card__img {
  height: 185px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.8rem;
  position: relative;
}
.blog-card__body { padding: var(--sp-6); display: flex; flex-direction: column; flex: 1; }
.blog-card__meta {
  display: flex; align-items: center; gap: var(--sp-4);
  font-size: .75rem; color: var(--c-text-4);
  margin-bottom: var(--sp-3);
}
.blog-card h3 { font-size: 1.05rem; margin-bottom: var(--sp-3); transition: color var(--t-fast); line-height: 1.45; }
.blog-card:hover h3 { color: var(--c-brand); }
.blog-card p { font-size: .875rem; line-height: 1.65; margin-bottom: var(--sp-4); }
.blog-card__link {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: .875rem; font-weight: 600; color: var(--c-brand);
  margin-top: auto; transition: gap var(--t-fast);
}
.blog-card__link:hover { gap: var(--sp-3); }
.blog-card:hover {
  border-color: var(--c-brand-border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Testimonial Card */
.testimonial-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  transition: all var(--t-base);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.testimonial-card:hover { border-color: var(--c-border-2); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.testimonial-card__stars { color: #f59e0b; font-size: .875rem; margin-bottom: var(--sp-4); letter-spacing: 2px; }
.testimonial-card__text { color: var(--c-text-2); line-height: 1.8; margin-bottom: var(--sp-6); font-size: .925rem; font-style: italic; }
.testimonial-card__author { display: flex; align-items: center; gap: var(--sp-3); }
.testimonial-card__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--grad-brand);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; color: #fff;
  font-family: var(--font-display); flex-shrink: 0;
}
.testimonial-card__name { font-weight: 600; font-size: .9rem; color: var(--c-text-1); }
.testimonial-card__role { font-size: .78rem; color: var(--c-text-4); }

/* Tag / Badge */
.tag {
  padding: 2px 10px;
  border-radius: var(--r-full);
  font-size: .72rem; font-weight: 600;
  background: var(--c-brand-light);
  border: 1px solid var(--c-brand-border);
  color: var(--c-brand);
  white-space: nowrap;
}
.tag-green {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}
[data-theme="dark"] .tag-green {
  background: rgba(21,128,61,.12);
  border-color: rgba(21,128,61,.3);
  color: #4ade80;
}
.tag-orange {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #c2410c;
}
[data-theme="dark"] .tag-orange {
  background: rgba(194,65,12,.12);
  border-color: rgba(194,65,12,.3);
  color: #fb923c;
}

/* ================================================
   7. NAVIGATION
   ================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: var(--z-sticky);
  padding: var(--sp-4) 0;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease, padding .25s ease;
}
.navbar.scrolled {
  background: var(--navbar-bg);
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  border-bottom: 1px solid var(--navbar-border);
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
  padding: var(--sp-3) 0;
}
.navbar__inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: var(--sp-8);
}

.logo {
  display: flex; align-items: center; gap: var(--sp-3);
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 800;
  color: var(--c-text-1); text-decoration: none; flex-shrink: 0;
}
.logo__mark {
  width: 36px; height: 36px;
  background: var(--grad-brand);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 800; color: #fff;
  font-family: var(--font-display); flex-shrink: 0;
}
.logo__text em {
  font-style: normal; color: var(--c-brand);
}

.nav-links {
  display: flex; align-items: center; gap: var(--sp-1); list-style: none;
}
.nav-links a {
  display: block;
  padding: var(--sp-2) var(--sp-3);
  font-size: .875rem; font-weight: 500;
  color: var(--c-text-3);
  border-radius: var(--r-sm);
  transition: all var(--t-fast);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--c-text-1);
  background: var(--c-bg-2);
}
[data-theme="dark"] .nav-links a:hover,
[data-theme="dark"] .nav-links a.active {
  background: var(--c-surface-2);
}

.nav-actions { display: flex; align-items: center; gap: var(--sp-3); flex-shrink: 0; }

/* Theme Toggle Button */
.theme-toggle {
  width: 38px; height: 38px;
  border-radius: var(--r-md);
  background: var(--c-bg-2);
  border: 1px solid var(--c-border);
  color: var(--c-text-3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; cursor: pointer;
  transition: all var(--t-base);
}
.theme-toggle:hover {
  background: var(--c-bg-3);
  color: var(--c-text-1);
  border-color: var(--c-border-2);
}
.theme-toggle .ri-sun-line   { display: none; }
.theme-toggle .ri-moon-line  { display: block; }
[data-theme="dark"] .theme-toggle .ri-sun-line  { display: block; }
[data-theme="dark"] .theme-toggle .ri-moon-line { display: none; }

/* Mobile Toggle */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  padding: var(--sp-2);
  background: var(--c-bg-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  transition: all var(--t-base);
}
.nav-toggle span {
  display: block; width: 20px; height: 2px;
  background: var(--c-text-2); border-radius: var(--r-full);
  transition: all var(--t-base); 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); }

/* Mobile Nav */
.nav-mobile {
  display: none; position: fixed; inset: 0; top: 65px;
  background: var(--mobile-bg);
  z-index: calc(var(--z-sticky) - 1);
  padding: var(--sp-6);
  border-top: 1px solid var(--c-border);
  flex-direction: column; gap: var(--sp-1);
  box-shadow: var(--shadow-xl);
  animation: slideDown .25s ease;
  overflow-y: auto;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  display: block; padding: var(--sp-3) var(--sp-4);
  font-size: 1rem; font-weight: 500;
  color: var(--c-text-2); border-radius: var(--r-md);
  transition: all var(--t-base);
}
.nav-mobile a:hover { color: var(--c-text-1); background: var(--c-bg-2); }
.nav-mobile-sep { height: 1px; background: var(--c-border); margin: var(--sp-3) 0; }
.nav-mobile .btn { margin-top: var(--sp-2); width: 100%; justify-content: center; }

/* ================================================
   8. HERO SECTION
   ================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
  padding: 130px 0 80px;
  background: var(--grad-hero);
}

.hero__bg-dots {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    radial-gradient(circle, var(--hero-dot) 1.5px, transparent 1.5px),
    linear-gradient(to right, var(--hero-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hero-line) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, black 0%, transparent 80%);
  pointer-events: none;
}

.hero__radial {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 75% 55% at 50% -10%, rgba(37,99,235,.13) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 88% 78%, rgba(99,102,241,.06) 0%, transparent 50%);
  pointer-events: none;
}
[data-theme="dark"] .hero__radial {
  background:
    radial-gradient(ellipse 75% 55% at 50% -10%, rgba(59,130,246,.20) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 88% 78%, rgba(99,102,241,.12) 0%, transparent 50%);
}

/* Depth orbs */
.hero::before, .hero::after {
  content: ''; position: absolute; z-index: 0;
  border-radius: 50%; pointer-events: none;
}
.hero::before {
  width: min(680px,80vw); height: min(680px,80vw);
  background: radial-gradient(circle, var(--hero-orb-1) 0%, transparent 70%);
  top: -20%; right: -5%;
}
.hero::after {
  width: min(520px,60vw); height: min(520px,60vw);
  background: radial-gradient(circle, var(--hero-orb-2) 0%, transparent 70%);
  bottom: 0; left: -10%;
}

.hero__content {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 860px; margin: 0 auto;
}

.hero__badge {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: var(--c-brand-light);
  border: 1px solid var(--c-brand-border);
  border-radius: var(--r-full);
  font-size: .78rem; color: var(--c-brand); font-weight: 600;
  margin-bottom: var(--sp-6);
  letter-spacing: .015em;
}
.hero__badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-brand);
  animation: blink 2.5s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(2.5rem, 6.5vw, 4.8rem);
  font-weight: 800; line-height: 1.06;
  letter-spacing: -.035em;
  margin-bottom: var(--sp-6);
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--c-text-3);
  max-width: 540px; margin: 0 auto var(--sp-10);
  line-height: 1.8;
}

.hero__cta {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: var(--sp-4);
  margin-bottom: var(--sp-16);
}

.hero__stats {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: var(--sp-8);
  padding-top: var(--sp-10);
  border-top: 1px solid var(--c-border);
}
.hero__stat { text-align: center; }
.hero__stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--c-text-1);
  line-height: 1.1;
}
.hero__stat-lbl { font-size: .8rem; color: var(--c-text-4); margin-top: var(--sp-1); }
.hero__stat-divider { width: 1px; height: 38px; background: var(--c-border); }

/* Floating micro-cards (desktop only) */
.floating-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-3) var(--sp-4);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: var(--sp-3);
  font-size: .82rem; color: var(--c-text-2);
  white-space: nowrap;
  position: absolute; z-index: 2; pointer-events: none;
}
.floating-card__icon {
  width: 32px; height: 32px; border-radius: var(--r-sm);
  background: var(--c-brand-light); display: flex; align-items: center; justify-content: center;
  font-size: .9rem; flex-shrink: 0; color: var(--c-brand);
}
.fc-1 { top: 22%; left: 4%; animation: float 5s ease-in-out infinite; }
.fc-2 { bottom: 26%; right: 4%; animation: float 5s ease-in-out 2s infinite; }

/* Network animation canvas — sits above static bg layers (z:0), below content (z:2) */
.hero__canvas {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  pointer-events: none; display: block;
}

/* ================================================
   9. STATS STRIP
   ================================================ */
.stats-strip {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
.stats-strip__grid {
  display: grid; grid-template-columns: repeat(4,1fr);
}
.stats-strip__item {
  padding: var(--sp-10) var(--sp-6);
  text-align: center;
  border-right: 1px solid var(--c-border);
  transition: background var(--t-base);
}
.stats-strip__item:last-child { border-right: none; }
.stats-strip__item:hover { background: var(--c-bg-2); }
.stats-strip__num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--c-brand);
  line-height: 1;
  margin-bottom: var(--sp-2);
}
.stats-strip__lbl { font-size: .8rem; color: var(--c-text-4); }

/* ================================================
   10. SOLUTIONS TABS
   ================================================ */
.solutions { background: var(--c-bg-2); }
.solutions__tabs {
  display: flex; gap: var(--sp-2); flex-wrap: wrap;
  justify-content: center; margin-bottom: var(--sp-12);
}
.solutions__tab {
  padding: var(--sp-2) var(--sp-5);
  border-radius: var(--r-full); font-size: .875rem; font-weight: 500;
  border: 1px solid var(--c-border);
  background: var(--c-surface); color: var(--c-text-3);
  cursor: pointer; transition: all var(--t-base);
}
.solutions__tab.active, .solutions__tab:hover {
  background: var(--c-brand); color: #fff;
  border-color: var(--c-brand);
  box-shadow: 0 2px 8px rgba(37,99,235,.25);
}
.solutions__panel { display: none; }
.solutions__panel.active { display: block; }
.solutions__content {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--sp-12); align-items: center;
}
.solutions__visual {
  height: 400px; border-radius: var(--r-2xl);
  background: var(--c-bg-3); border: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative; font-size: 5rem;
}
.solutions__visual-inner { position: relative; z-index: 1; text-align: center; }
.solutions__list { display: flex; flex-direction: column; gap: var(--sp-4); margin-top: var(--sp-8); }
.solutions__list-item {
  display: flex; gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); transition: all var(--t-base);
  box-shadow: var(--shadow-xs);
}
.solutions__list-item:hover { border-color: var(--c-brand-border); box-shadow: var(--shadow-sm); }
.solutions__list-icon {
  width: 38px; height: 38px; border-radius: var(--r-sm); flex-shrink: 0;
  background: var(--c-brand-light);
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; color: var(--c-brand);
}

/* ================================================
   11. WHY CHOOSE US
   ================================================ */
.why-us__grid {
  display: grid; grid-template-columns: repeat(2,1fr); gap: var(--sp-5);
}
.why-us__item {
  display: flex; gap: var(--sp-4);
  padding: var(--sp-6);
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-xl); transition: all var(--t-base);
  box-shadow: var(--shadow-xs);
}
.why-us__item:hover { border-color: var(--c-brand-border); box-shadow: var(--shadow-sm); }
.why-us__icon {
  width: 46px; height: 46px; border-radius: var(--r-md); flex-shrink: 0;
  background: var(--c-brand-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--c-brand);
  transition: all var(--t-base);
}
.why-us__item:hover .why-us__icon { background: var(--c-brand); color: #fff; }
.why-us__text h4 { font-size: 1rem; margin-bottom: var(--sp-2); }
.why-us__text p  { font-size: .875rem; max-width: none; }

/* ================================================
   12. TECH STACK
   ================================================ */
.tech-stack { background: var(--c-bg-2); }
.tech-grid { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; }
.tech-badge {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); font-size: .875rem; font-weight: 500;
  color: var(--c-text-2); transition: all var(--t-base);
  cursor: default; box-shadow: var(--shadow-xs);
}
.tech-badge:hover {
  background: var(--c-brand-light); border-color: var(--c-brand-border);
  color: var(--c-brand); transform: translateY(-2px);
}
.tech-badge i { font-size: 1.1rem; }

/* ================================================
   13. FAQ
   ================================================ */
.faq__wrap { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--sp-3); }
.faq-item {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); overflow: hidden;
  transition: border-color var(--t-base);
  box-shadow: var(--shadow-xs);
}
.faq-item.open { border-color: var(--c-brand-border); }
.faq-item__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4); padding: var(--sp-5) var(--sp-6);
  background: transparent; color: var(--c-text-1);
  font-size: .95rem; font-weight: 600; text-align: left;
  cursor: pointer; font-family: var(--font-display); border: none;
  transition: color var(--t-fast);
}
.faq-item__q:hover { color: var(--c-brand); }
.faq-item__icon {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: var(--c-bg-2); border: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; color: var(--c-brand);
  transition: all var(--t-base);
}
.faq-item.open .faq-item__icon { transform: rotate(180deg); background: var(--c-brand-light); border-color: var(--c-brand-border); }
.faq-item__a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-item.open .faq-item__a { max-height: 300px; }
.faq-item__a-inner { padding: 0 var(--sp-6) var(--sp-5); font-size: .875rem; color: var(--c-text-3); line-height: 1.75; }

/* ================================================
   14. CONTACT CTA
   ================================================ */
.contact-cta__box {
  background: var(--c-brand);
  border-radius: var(--r-2xl);
  padding: var(--sp-20) var(--sp-12);
  text-align: center; position: relative; overflow: hidden;
}
.contact-cta__box::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.06) 0%, transparent 60%);
  pointer-events: none;
}
.contact-cta__box > * { position: relative; z-index: 1; }
.contact-cta__box h2 { color: #fff; margin-bottom: var(--sp-4); }
.contact-cta__box p  { color: rgba(255,255,255,.8); margin: 0 auto var(--sp-10); }
.contact-cta__box .btn-ghost {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.35);
  color: #fff;
}
.contact-cta__box .btn-ghost:hover { background: rgba(255,255,255,.25); }
.contact-cta__box .btn-primary {
  background: #fff;
  color: var(--c-brand);
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.contact-cta__box .btn-primary:hover { filter: brightness(.97); }

/* ================================================
   15. FORM
   ================================================ */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: var(--sp-12); align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: var(--sp-8); }
.contact-info-item { display: flex; gap: var(--sp-4); align-items: flex-start; }
.contact-info-icon {
  width: 46px; height: 46px; border-radius: var(--r-md); flex-shrink: 0;
  background: var(--c-brand-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--c-brand);
}
.contact-info-text h5 { font-size: .8rem; color: var(--c-text-4); font-weight: 500; margin-bottom: var(--sp-1); text-transform: uppercase; letter-spacing: .06em; }
.contact-info-text p  { font-size: 1rem; color: var(--c-text-1); max-width: none; font-weight: 500; }

.contact-form-wrap {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-2xl); padding: var(--sp-10);
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.form-group { display: flex; flex-direction: column; gap: var(--sp-2); }
.form-label { font-size: .82rem; font-weight: 500; color: var(--c-text-2); }
.form-control {
  width: 100%; padding: var(--sp-3) var(--sp-4);
  background: var(--c-bg-2); border: 1.5px solid var(--c-border);
  border-radius: var(--r-md); color: var(--c-text-1);
  font-size: .9rem; outline: none; transition: all var(--t-base);
}
.form-control::placeholder { color: var(--c-text-4); }
.form-control:focus {
  border-color: var(--c-brand);
  background: var(--c-surface);
  box-shadow: 0 0 0 3px var(--c-brand-light);
}
.form-control.field-error { border-color: #ef4444; box-shadow: 0 0 0 3px #fee2e2; }
[data-theme="dark"] .form-control.field-error { box-shadow: 0 0 0 3px rgba(239,68,68,.15); }
textarea.form-control { min-height: 120px; resize: vertical; }
.form-success {
  display: none; text-align: center;
  padding: var(--sp-8); color: #16a34a; font-weight: 600;
}

/* ================================================
   16. FOOTER
   ================================================ */
.footer {
  background: var(--c-bg-2);
  border-top: 1px solid var(--c-border);
  padding-top: var(--sp-20);
}
.footer__top {
  display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: var(--sp-12); padding-bottom: var(--sp-16);
  border-bottom: 1px solid var(--c-border);
}
.footer__brand p { margin-top: var(--sp-4); font-size: .875rem; max-width: 260px; line-height: 1.75; color: var(--c-text-3); }
.footer__social { display: flex; gap: var(--sp-2); margin-top: var(--sp-6); }
.social-btn {
  width: 38px; height: 38px; border-radius: var(--r-md);
  background: var(--c-surface); border: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-text-3); font-size: .95rem;
  transition: all var(--t-base); text-decoration: none;
}
.social-btn:hover { background: var(--c-brand); border-color: var(--c-brand); color: #fff; transform: translateY(-2px); }
.footer__col h4 {
  font-size: .72rem; font-weight: 700; color: var(--c-text-1);
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: var(--sp-5);
}
.footer__links { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer__links a {
  font-size: .875rem; color: var(--c-text-3);
  display: inline-flex; align-items: center; gap: var(--sp-2);
  transition: all var(--t-fast);
}
.footer__links a:hover { color: var(--c-brand); gap: var(--sp-3); }
.footer__contact-item { display: flex; align-items: flex-start; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.footer__contact-item i { color: var(--c-brand); margin-top: 3px; flex-shrink: 0; font-size: .95rem; }
.footer__contact-item span, .footer__contact-item a { font-size: .875rem; color: var(--c-text-3); line-height: 1.6; }
.footer__contact-item a:hover { color: var(--c-brand); }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--sp-4); padding: var(--sp-6) 0;
}
.footer__copy { font-size: .82rem; color: var(--c-text-4); }
.footer__legal { display: flex; gap: var(--sp-6); }
.footer__legal a { font-size: .82rem; color: var(--c-text-4); transition: color var(--t-fast); }
.footer__legal a:hover { color: var(--c-brand); }

/* ================================================
   17. SCROLL PROGRESS + BACK TO TOP
   ================================================ */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px;
  background: var(--grad-brand); z-index: 9999;
  transition: width .1s linear; width: 0;
  pointer-events: none;
}
.back-to-top {
  position: fixed; bottom: var(--sp-8); right: var(--sp-8);
  width: 42px; height: 42px; border-radius: var(--r-md);
  background: var(--c-brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); cursor: pointer; border: none;
  transition: all var(--t-base);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  z-index: var(--z-drop);
}
.back-to-top.show { opacity: 1; transform: translateY(0); pointer-events: all; }
.back-to-top:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* ================================================
   18. PRELOADER
   ================================================ */
.preloader {
  position: fixed; inset: 0; background: var(--c-bg); z-index: 9999;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: var(--sp-5);
  transition: opacity .4s ease, visibility .4s ease;
}
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader__logo {
  width: 60px; height: 60px; background: var(--grad-brand); border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 800; color: #fff; font-family: var(--font-display);
  animation: logoPulse 1.6s ease-in-out infinite;
}
.preloader__bar { width: 180px; height: 2px; background: var(--c-border); border-radius: var(--r-full); overflow: hidden; }
.preloader__fill { height: 100%; background: var(--grad-brand); border-radius: var(--r-full); animation: fillBar 1.4s ease-in-out forwards; }

/* ================================================
   19. PAGE HERO (inner pages)
   ================================================ */
.page-hero {
  padding: 140px 0 80px; text-align: center;
  position: relative; overflow: hidden;
  background: var(--grad-hero);
}
.page-hero__dots {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle, var(--hero-dot) 1.5px, transparent 1.5px),
    linear-gradient(to right, var(--hero-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hero-line) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 0%, transparent 100%);
  pointer-events: none;
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 { margin-bottom: var(--sp-4); }
.page-hero .lead { margin: 0 auto; }

/* ================================================
   20. ABOUT PAGE SPECIFIC
   ================================================ */
.about-story { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-12); align-items: center; }
.about-visual {
  height: 420px; border-radius: var(--r-2xl);
  background: var(--c-bg-2); border: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* Timeline */
.timeline { position: relative; max-width: 700px; margin: 0 auto; }
.timeline::before {
  content: '';
  /* centered on the 40px dot: (40 / 2) - (2 / 2) = 19px */
  position: absolute; left: 19px; top: 8px; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, var(--c-brand-border), var(--c-border));
  border-radius: var(--r-full);
}
.timeline-item {
  display: flex; gap: var(--sp-6);
  margin-bottom: var(--sp-10); position: relative;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline__dot {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--c-brand-light); border: 2px solid var(--c-brand-border);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; color: var(--c-brand); position: relative; z-index: 1;
  transition: all var(--t-base);
}
.timeline-item:hover .timeline__dot { background: var(--c-brand); color: #fff; border-color: var(--c-brand); }
.timeline__year {
  font-size: .75rem; font-weight: 700; color: var(--c-brand);
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: var(--sp-1);
}
.timeline__title { font-size: 1.05rem; font-weight: 700; color: var(--c-text-1); margin-bottom: var(--sp-2); }
.timeline__desc { font-size: .875rem; color: var(--c-text-3); line-height: 1.7; max-width: none; }

/* Values */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: var(--sp-6); }
.value-card {
  padding: var(--sp-8); background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-xl); transition: all var(--t-base);
  box-shadow: var(--shadow-xs);
}
.value-card:hover { border-color: var(--c-brand-border); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.value-card__icon {
  width: 52px; height: 52px; border-radius: var(--r-md); margin-bottom: var(--sp-5);
  background: var(--c-brand-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--c-brand);
  transition: all var(--t-base);
}
.value-card:hover .value-card__icon { background: var(--c-brand); color: #fff; }

/* Process steps */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: var(--sp-6); position: relative; }
.process-step {
  text-align: center; padding: var(--sp-8) var(--sp-6);
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-xl); box-shadow: var(--shadow-xs);
  transition: all var(--t-base);
}
.process-step:hover { border-color: var(--c-brand-border); box-shadow: var(--shadow-sm); }
.process-step__num {
  width: 48px; height: 48px; border-radius: 50%; margin: 0 auto var(--sp-4);
  background: var(--grad-brand);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: #fff;
}

/* Company stats */
.company-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: var(--sp-4); }
.stat-block {
  text-align: center; padding: var(--sp-8) var(--sp-6);
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-xl); box-shadow: var(--shadow-xs);
}
.stat-block__num {
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 800;
  color: var(--c-brand); line-height: 1; margin-bottom: var(--sp-2);
}
.stat-block__lbl { font-size: .82rem; color: var(--c-text-4); }

/* Trust badges */
.trust-grid { display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: center; }
.trust-badge {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-xs);
  font-size: .875rem; font-weight: 600; color: var(--c-text-2);
}
.trust-badge i { font-size: 1.2rem; color: var(--c-brand); }

/* ================================================
   21. BLOG / SINGLE ARTICLE
   ================================================ */
.blog-hero { background: var(--c-bg-2); padding: 140px 0 60px; text-align: center; position: relative; overflow: hidden; }
.blog-hero__dots {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle, var(--hero-dot) 1.5px, transparent 1.5px),
    linear-gradient(to right, var(--hero-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hero-line) 1px, transparent 1px);
  background-size: 28px 28px; pointer-events: none;
}
.blog-hero > * { position: relative; z-index: 1; }

.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: var(--sp-12); align-items: start; }

/* Sticky sidebar — the whole aside sticks as one scrollable unit */
.article-layout > aside {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  scrollbar-width: thin;
  scrollbar-color: var(--c-border-2) transparent;
}
.article-layout > aside::-webkit-scrollbar { width: 3px; }
.article-layout > aside::-webkit-scrollbar-track { background: transparent; }
.article-layout > aside::-webkit-scrollbar-thumb {
  background: var(--c-border-2);
  border-radius: var(--r-full);
}
.article-content { min-width: 0; }
.article-content h2 { font-size: 1.6rem; margin: var(--sp-10) 0 var(--sp-4); color: var(--c-text-1); }
.article-content h3 { font-size: 1.25rem; margin: var(--sp-8) 0 var(--sp-3); color: var(--c-text-1); }
.article-content h4 { font-size: 1.05rem; margin: var(--sp-6) 0 var(--sp-3); }
.article-content p  { color: var(--c-text-2); line-height: 1.85; margin-bottom: var(--sp-5); max-width: none; font-size: .975rem; }
.article-content ul, .article-content ol { margin: var(--sp-4) 0 var(--sp-6) var(--sp-6); }
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { color: var(--c-text-2); line-height: 1.8; margin-bottom: var(--sp-2); font-size: .975rem; }
.article-content blockquote {
  border-left: 3px solid var(--c-brand);
  padding: var(--sp-4) var(--sp-6); margin: var(--sp-8) 0;
  background: var(--c-brand-light); border-radius: 0 var(--r-md) var(--r-md) 0;
  font-style: italic; color: var(--c-text-2);
}

.article-progress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: var(--grad-brand); z-index: 9999; width: 0;
  transition: width .1s linear; pointer-events: none;
}

.article-meta {
  display: flex; flex-wrap: wrap; gap: var(--sp-5);
  align-items: center; margin-bottom: var(--sp-8);
  padding-bottom: var(--sp-6); border-bottom: 1px solid var(--c-border);
}
.article-meta span { display: flex; align-items: center; gap: var(--sp-2); font-size: .82rem; color: var(--c-text-4); }

.article-author {
  display: flex; gap: var(--sp-4); align-items: center;
  padding: var(--sp-6); background: var(--c-bg-2); border: 1px solid var(--c-border);
  border-radius: var(--r-xl); margin: var(--sp-12) 0;
}
.article-author__avatar {
  width: 60px; height: 60px; border-radius: 50%; flex-shrink: 0;
  background: var(--grad-brand); display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 700; color: #fff; font-family: var(--font-display);
}
.article-author__name { font-weight: 700; color: var(--c-text-1); margin-bottom: var(--sp-1); }
.article-author__bio { font-size: .875rem; color: var(--c-text-3); max-width: none; }

.article-share { display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-8); }
.share-btn {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4); border-radius: var(--r-md);
  font-size: .82rem; font-weight: 600;
  border: 1px solid var(--c-border); background: var(--c-surface);
  color: var(--c-text-3); transition: all var(--t-base);
}
.share-btn:hover { border-color: var(--c-brand); color: var(--c-brand); background: var(--c-brand-light); }

.article-toc {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-xl); padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.article-toc h5 { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-text-4); margin-bottom: var(--sp-4); }
.toc-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.toc-list a {
  font-size: .82rem; color: var(--c-text-3); padding: var(--sp-1) var(--sp-2);
  border-radius: var(--r-sm); transition: all var(--t-fast); display: block;
  border-left: 2px solid transparent;
}
.toc-list a:hover { color: var(--c-brand); background: var(--c-brand-light); border-left-color: var(--c-brand); padding-left: var(--sp-3); }
.toc-list a.active { color: var(--c-brand); background: var(--c-brand-light); border-left-color: var(--c-brand); padding-left: var(--sp-3); }

.sidebar-widget {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-xl); padding: var(--sp-6);
  box-shadow: var(--shadow-xs);
  flex-shrink: 0;
}
.sidebar-widget h5 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-text-4); margin-bottom: var(--sp-4); }

/* ================================================
   22. PORTFOLIO FILTER
   ================================================ */
.portfolio-filters {
  display: flex; gap: var(--sp-2); flex-wrap: wrap; justify-content: center;
  margin-bottom: var(--sp-10);
}

/* ================================================
   23. CAREERS PAGE
   ================================================ */
.job-card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-xl); padding: var(--sp-6) var(--sp-8);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-6); transition: all var(--t-base);
  box-shadow: var(--shadow-xs); margin-bottom: var(--sp-4);
}
.job-card:hover { border-color: var(--c-brand-border); box-shadow: var(--shadow-md); transform: translateX(4px); }
.job-card__info {}
.job-card__title { font-size: 1.1rem; font-weight: 700; color: var(--c-text-1); margin-bottom: var(--sp-2); font-family: var(--font-display); }
.job-card__meta { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.job-card__meta span {
  display: flex; align-items: center; gap: var(--sp-1);
  font-size: .78rem; color: var(--c-text-4);
}
.job-card__action { flex-shrink: 0; }

.benefit-card {
  text-align: center; padding: var(--sp-8) var(--sp-6);
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-xl); box-shadow: var(--shadow-xs);
  transition: all var(--t-base);
}
.benefit-card:hover { border-color: var(--c-brand-border); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.benefit-card__icon {
  width: 56px; height: 56px; border-radius: var(--r-md); margin: 0 auto var(--sp-5);
  background: var(--c-brand-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--c-brand);
}

/* ================================================
   24. KEYFRAMES
   ================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-10px); }
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50%     { opacity: .4; }
}
@keyframes logoPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); }
  50%     { box-shadow: 0 0 0 10px rgba(37,99,235,.1); }
}
@keyframes fillBar {
  from { width: 0%; }
  to   { width: 100%; }
}
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ================================================
   25. SCROLL REVEAL (SEO-safe approach)
   ================================================ */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s cubic-bezier(0.22,1,0.36,1), transform .5s cubic-bezier(0.22,1,0.36,1);
}
.js-ready .reveal-l {
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity .5s cubic-bezier(0.22,1,0.36,1), transform .5s cubic-bezier(0.22,1,0.36,1);
}
.js-ready .reveal-r {
  opacity: 0;
  transform: translateX(16px);
  transition: opacity .5s cubic-bezier(0.22,1,0.36,1), transform .5s cubic-bezier(0.22,1,0.36,1);
}
.js-ready .reveal.shown,
.js-ready .reveal-l.shown,
.js-ready .reveal-r.shown {
  opacity: 1;
  transform: none;
}

/* Stagger */
.stagger > *:nth-child(1) { transition-delay: 0ms; }
.stagger > *:nth-child(2) { transition-delay: 60ms; }
.stagger > *:nth-child(3) { transition-delay: 120ms; }
.stagger > *:nth-child(4) { transition-delay: 180ms; }
.stagger > *:nth-child(5) { transition-delay: 240ms; }
.stagger > *:nth-child(6) { transition-delay: 300ms; }

/* ================================================
   26. UTILITIES
   ================================================ */
.text-center  { text-align: center; }
.text-brand   { color: var(--c-brand); }
.text-muted   { color: var(--c-text-4); }
.text-sm      { font-size: .875rem; }
.font-display { font-family: var(--font-display); }
.font-bold    { font-weight: 700; }
.mx-auto      { margin-left: auto; margin-right: auto; }
.mt-auto      { margin-top: auto; }
.d-none       { display: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.divider {
  height: 1px; background: var(--c-border);
  margin: var(--sp-8) 0;
}

/* ================================================
   27. RESPONSIVE
   ================================================ */
@media (max-width: 1200px) {
  .footer__top { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer__top > *:last-child { grid-column: 1 / -1; max-width: 360px; }
  .article-layout { grid-template-columns: 1fr 280px; }
}

@media (max-width: 1024px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-actions .theme-toggle { display: flex; }
  .nav-toggle { display: flex; }

  .stats-strip__grid { grid-template-columns: repeat(2,1fr); }
  .stats-strip__item:nth-child(2) { border-right: none; }
  .stats-strip__item:nth-child(1),
  .stats-strip__item:nth-child(2) { border-bottom: 1px solid var(--c-border); }

  .solutions__content { grid-template-columns: 1fr; }
  .solutions__visual  { height: 260px; }

  .why-us__grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-story  { grid-template-columns: 1fr; }
  .about-visual { height: 260px; }

  .footer__top { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
  .footer__brand { grid-column: 1/-1; }

  .floating-card { display: none; }
  .article-layout { grid-template-columns: 1fr; }
  /* Reset aside sticky — becomes normal block flow */
  .article-layout > aside {
    position: static;
    max-height: none;
    overflow-y: visible;
    order: -1; /* TOC appears above article on tablet/mobile for quick navigation */
  }
  /* Hide marketing widgets on tablet/mobile — keep only the TOC */
  .article-layout > aside .sidebar-widget { display: none; }
}

@media (max-width: 900px) {
  /* 3 & 4-column grids become 2-column on tablet to prevent cramped layouts */
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  /* Featured blog article collapses to single column */
  .featured-article-grid { grid-template-columns: 1fr !important; gap: var(--sp-6) !important; padding: var(--sp-8) !important; }
  .featured-article-grid > div:first-child { height: 240px !important; }
}

@media (max-width: 768px) {
  .section    { padding: var(--sp-16) 0; }
  .section-lg { padding: var(--sp-20) 0; }
  .section-header { margin-bottom: var(--sp-10); }

  .hero { padding: 110px 0 60px; }
  .hero__stats { gap: var(--sp-5); }

  .services__grid { grid-template-columns: 1fr; }
  .why-us__grid   { grid-template-columns: 1fr; }
  .form-row       { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }

  .footer__top   { grid-template-columns: 1fr; }
  .footer__brand { grid-column: auto; }
  .footer__bottom { flex-direction: column; text-align: center; }

  .contact-cta__box { padding: var(--sp-12) var(--sp-6); }

  .stats-strip__grid { grid-template-columns: repeat(2,1fr); }
  .stats-strip__item { border-right: none; border-bottom: 1px solid var(--c-border); }
  .stats-strip__item:last-child { border-bottom: none; }
  .stats-strip__item:nth-child(odd) { border-right: 1px solid var(--c-border); }

  .job-card { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.75rem; }
  .hero h1 { font-size: 2rem; letter-spacing: -.025em; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { text-align: center; justify-content: center; }
  .hero__stats .hero__stat-divider { display: none; }
  .contact-form-wrap { padding: var(--sp-6); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .floating-card { display: none; }
}

@media print {
  .navbar, .preloader, .back-to-top, .scroll-progress,
  .floating-card, .article-toc { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
}

/* ================================================
   28. SERVICES GRID (shared across pages)
   ================================================ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sp-6);
}

/* ================================================
   29. TAG VARIANTS
   ================================================ */
.tag-purple {
  background: #f5f3ff;
  border-color: #ddd6fe;
  color: #6d28d9;
}
[data-theme="dark"] .tag-purple {
  background: rgba(109,40,217,.12);
  border-color: rgba(109,40,217,.28);
  color: #a78bfa;
}

/* ================================================
   30. CAREER APPLICATION MODAL
   ================================================ */
.apply-modal {
  position: fixed; inset: 0; z-index: var(--z-modal);
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-4);
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.apply-modal.open { opacity: 1; visibility: visible; }

.apply-modal__overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  cursor: pointer;
}
.apply-modal__panel {
  position: relative; z-index: 1;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-2xl);
  padding: var(--sp-10);
  max-width: 680px; width: 100%;
  max-height: 92vh; overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: modalSlideUp .3s cubic-bezier(0.22,1,0.36,1);
}
@keyframes modalSlideUp {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.apply-modal__close {
  position: absolute; top: var(--sp-5); right: var(--sp-5);
  width: 36px; height: 36px; border-radius: var(--r-md);
  background: var(--c-bg-2); border: 1px solid var(--c-border);
  color: var(--c-text-3); font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--t-base);
}
.apply-modal__close:hover { background: var(--c-bg-3); color: var(--c-text-1); }
.apply-modal__header { margin-bottom: var(--sp-8); padding-right: var(--sp-10); }
.apply-modal__header h2 { font-size: 1.5rem; margin-bottom: var(--sp-2); }
.apply-modal__header p  { font-size: .875rem; margin: 0; }
.apply-modal__form { display: flex; flex-direction: column; gap: var(--sp-5); }
.apply-modal__success {
  text-align: center; padding: var(--sp-12) var(--sp-4);
  display: none;
}
.apply-modal__success .success-icon {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto var(--sp-6);
  background: #f0fdf4; border: 2px solid #bbf7d0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; color: #16a34a;
}
.apply-modal__success h3 { margin-bottom: var(--sp-3); }
.apply-modal__success p  { margin-bottom: var(--sp-8); }

/* File upload */
.file-upload-wrap { position: relative; }
.file-upload-input {
  position: absolute; inset: 0;
  opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.file-upload-label {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--sp-2); padding: var(--sp-8) var(--sp-6);
  border: 2px dashed var(--c-border-2);
  border-radius: var(--r-md); cursor: pointer;
  transition: all var(--t-base); background: var(--c-bg-2);
  text-align: center;
}
.file-upload-label:hover,
.file-upload-wrap:focus-within .file-upload-label {
  border-color: var(--c-brand); background: var(--c-brand-light);
}
.file-upload-label i { font-size: 2rem; color: var(--c-brand); }
.file-upload-text  { font-size: .875rem; font-weight: 500; color: var(--c-text-2); }
.file-upload-hint  { font-size: .78rem; color: var(--c-text-4); }
.file-upload-wrap.has-file .file-upload-label {
  border-style: solid; border-color: var(--c-brand); background: var(--c-brand-light);
}

@media (max-width: 640px) {
  .apply-modal__panel { padding: var(--sp-6); border-radius: var(--r-xl); }
  .apply-modal { padding: var(--sp-3); }
}

/* ================================================
   31. FEATURED ARTICLE GRID (blog.html)
   ================================================ */
.featured-article-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: center;
  padding: var(--sp-10);
}
.featured-article-img {
  height: 320px;
  border-radius: var(--r-xl);
  display: flex; align-items: center; justify-content: center;
  font-size: 6rem; overflow: hidden; position: relative;
}

/* ================================================
   32. MOBILE — extra polish (< 480px)
   ================================================ */
@media (max-width: 480px) {
  /* Compact page hero padding on small phones */
  .page-hero { padding: 120px 0 56px; }
  .blog-hero  { padding: 120px 0 40px; }

  /* Pricing card padding reduction */
  .grid-3 > .card { padding: var(--sp-8) var(--sp-6); }

  /* Value/benefit cards tighten */
  .value-card, .benefit-card, .process-step { padding: var(--sp-6); }
  .benefit-card__icon { width: 46px; height: 46px; }

  /* Timeline compact on very small screens */
  .timeline-item { gap: var(--sp-4); }
  .timeline__dot { width: 34px; height: 34px; font-size: .78rem; }
  .timeline::before { left: 16px; }

  /* Job cards on mobile */
  .job-card { padding: var(--sp-5) var(--sp-5); }
  .job-card__meta { gap: var(--sp-2); }

  /* Article share buttons wrap */
  .article-share { flex-wrap: wrap; }

  /* Footer social buttons don't overflow */
  .footer__social { flex-wrap: wrap; }

  /* Solutions visual smaller on phone */
  .solutions__visual { height: 200px; }
  .about-visual      { height: 220px; }

  /* Stats strip — equal columns on phone */
  .stats-strip__grid { grid-template-columns: 1fr 1fr; }

  /* Contact info items on narrow phone */
  .contact-info-item { flex-direction: column; gap: var(--sp-2); }
  .contact-info-icon { width: 38px; height: 38px; }
}
