/* ===================================================================
   OmnifyTools — Main Stylesheet
   Facebook-inspired blue palette + clean white
   =================================================================== */

/* ─── CSS Custom Properties ──────────────────────────────────────── */
:root {
  /* Brand colours (Facebook-inspired) */
  --clr-primary:        #0c4b9e;
  --clr-primary-dark:   #0e4792;
  --clr-primary-light:  #e7f0fd;
  --clr-primary-xlight: #f0f6ff;
  --clr-accent:         #225885;

  /* Neutrals */
  --clr-white:   #ffffff;
  --clr-bg:      #f0f2f5;       /* Facebook-style off-white bg */
  --clr-surface: #ffffff;
  --clr-border:  #dce1e7;
  --clr-text:    #1c1e21;
  --clr-muted:   #65676b;
  --clr-dark-bg: #18191a;

  /* Typography */
  --ff-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-md:   1rem;
  --fs-lg:   1.125rem;
  --fs-xl:   1.25rem;
  --fs-2xl:  1.5rem;
  --fs-3xl:  2rem;
  --fs-4xl:  2.5rem;
  --fs-5xl:  3.5rem;

  /* Spacing */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.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;

  /* Radius */
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 10px 40px rgba(24,119,242,.15);
  --shadow-glow:0 0 60px 20px rgba(24,119,242,.18);

  /* Transitions */
  --tr-fast:   150ms ease;
  --tr-base:   250ms ease;
  --tr-slow:   400ms cubic-bezier(.4,0,.2,1);

  /* Header height */
  --header-h:  80px;
}

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

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

body {
  font-family: var(--ff-base);
  background-color: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ─── Container ──────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

/* ─── Typography Utilities ───────────────────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.625rem 1.25rem;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: all var(--tr-base);
  white-space: nowrap;
  text-align: center;
}

.btn--primary {
  background: var(--clr-primary);
  color: var(--clr-white);
  box-shadow: 0 2px 12px rgba(24,119,242,.35);
}
.btn--primary:hover {
  background: var(--clr-primary-dark);
  box-shadow: 0 4px 20px rgba(24,119,242,.5);
  transform: translateY(-1px);
}

.btn--ghost {
  color: var(--clr-primary);
  background: transparent;
}
.btn--ghost:hover { background: var(--clr-primary-xlight); }

.btn--outline {
  border: 2px solid var(--clr-primary);
  color: var(--clr-primary);
  background: transparent;
}
.btn--outline:hover {
  background: var(--clr-primary);
  color: var(--clr-white);
}

.btn--white {
  background: var(--clr-white);
  color: var(--clr-primary);
  font-weight: 700;
  box-shadow: var(--shadow-md);
}
.btn--white:hover { background: var(--clr-primary-xlight); transform: translateY(-1px); }

.btn--outline-white {
  border: 2px solid rgba(255,255,255,.7);
  color: var(--clr-white);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(6px);
}
.btn--outline-white:hover { background: rgba(255,255,255,.18); }

.btn--lg  { padding: 0.875rem 1.75rem; font-size: var(--fs-md); }
.btn--sm  { padding: 0.4rem 0.9rem; font-size: var(--fs-xs); }
.btn--full { width: 100%; justify-content: center; }

/* ─── Badge ──────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .03em;
}
.badge--blue {
  background: rgba(255,255,255,.18);
  color: var(--clr-white);
  border: 1px solid rgba(255,255,255,.35);
}

/* ─── HEADER ─────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: #0c4b9e;
  border-bottom: 1px solid rgba(0,0,0,.15);
  transition: box-shadow var(--tr-base);
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(12,75,158,.5); }

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  height: 100%;
}

/* Brand */
.brand { display: flex; align-items: center; flex-shrink: 0; }
/* Brand logo — wrapper clips whitespace. Image 1920×1080, content x:175–1150px y:230–845px */
/* Target content height 44px → scale = 44/615 = 0.0716 */
/* img rendered: 77×137px | content in rendered: starts at left=13px top=17px, ends at right=82px bottom=61px */
/* wrapper = content size + 4px padding each side */
.brand-logo-wrap {
  display: block;
  width: 285px;
  height: 140px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.brand-logo {
  position: absolute;
  height: 130px;
  width: 234px;
  top:  7px;
  left: -12px;
  filter: brightness(0) invert(1);
}

/* Nav */
/* Nav — pushed to right of header */
.nav-primary { margin-left: auto; }
.nav-list {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: rgba(255,255,255,.85);
  transition: color var(--tr-fast), background var(--tr-fast);
}
.nav-link:hover, .nav-link.active {
  color: var(--clr-white);
  background: rgba(255,255,255,.15);
}
.nav-link.active { font-weight: 600; }

/* Chevron icon */
.chevron {
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform var(--tr-fast);
}
.nav-dropdown__trigger[aria-expanded="true"] .chevron { transform: rotate(180deg); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 180px;
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: var(--sp-2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity var(--tr-base), transform var(--tr-base);
}
.nav-dropdown__menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
/* Mega menu open — must preserve the X centering that base .open kills */
.nav-mega.open {
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown__item {
  display: block;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  color: var(--clr-text);
  transition: background var(--tr-fast), color var(--tr-fast);
}
.nav-dropdown__item:hover { background: var(--clr-primary-xlight); color: var(--clr-primary); }

/* Header CTA buttons — inverted for blue background */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
}

/* Header Search Bar */
.header-search {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 100px;
  padding: 0 var(--sp-1) 0 var(--sp-4);
  gap: var(--sp-1);
  transition: background var(--tr-fast), border-color var(--tr-fast), box-shadow var(--tr-fast);
  flex-shrink: 0;
}
.header-search:focus-within {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.5);
  box-shadow: 0 0 0 3px rgba(255,255,255,.12);
}
.header-search__input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: var(--fs-sm);
  font-family: inherit;
  width: 160px;
  padding: 7px 0;
  transition: width var(--tr-base);
}
.header-search__input::placeholder { color: rgba(255,255,255,.55); }
.header-search:focus-within .header-search__input { width: 200px; }
.header-search__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: none;
  color: rgba(255,255,255,.85);
  cursor: pointer;
  transition: background var(--tr-fast), color var(--tr-fast);
  flex-shrink: 0;
}
.header-search__btn:hover {
  background: rgba(255,255,255,.28);
  color: #fff;
}
.site-header .btn--ghost {
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
}
.site-header .btn--ghost:hover {
  background: rgba(255,255,255,.22);
  color: var(--clr-white);
}
.site-header .btn--primary {
  background: var(--clr-white);
  color: var(--clr-primary);
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.site-header .btn--primary:hover {
  background: #e8f0fe;
  box-shadow: 0 4px 16px rgba(0,0,0,.22);
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 6px;
  border-radius: var(--r-sm);
  flex-shrink: 0;
  transition: background var(--tr-fast);
}
.hamburger:hover { background: rgba(255,255,255,.15); }
.hamburger__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--clr-white);
  border-radius: 2px;
  transition: transform var(--tr-base), opacity var(--tr-base);
  transform-origin: center;
}
.hamburger.open .hamburger__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open .hamburger__bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open .hamburger__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  background: #1462cc;
  border-top: 1px solid rgba(255,255,255,.12);
  padding: var(--sp-4) var(--sp-6);
  box-shadow: var(--shadow-md);
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--tr-slow), padding var(--tr-slow);
}
.mobile-menu.open {
  max-height: 500px;
  padding: var(--sp-4) var(--sp-6);
}
.mobile-nav-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.mobile-nav-link {
  display: block;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-sm);
  font-weight: 500;
  color: rgba(255,255,255,.85);
  transition: background var(--tr-fast), color var(--tr-fast);
}
.mobile-nav-link:hover { background: rgba(255,255,255,.15); color: var(--clr-white); }
.mobile-nav-divider {
  border-top: 1px solid rgba(255,255,255,.15);
  margin: var(--sp-2) 0;
}

/* ─── HERO ───────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: var(--sp-24) 0 var(--sp-20);
  background: linear-gradient(170deg, #c8daf8 0%, #dce8ff 40%, #eef3ff 100%);
}

/* Very subtle center depth */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 0%, rgba(255,255,255,.45) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after { display: none; }

.hero__glow { display: none; }

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-5);
}

.hero__badge { margin-bottom: var(--sp-1); }

.hero__heading {
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: #0d1f5c;
  max-width: 860px;
}

.hero__subtext {
  font-size: clamp(var(--fs-base), 1.8vw, var(--fs-lg));
  color: #1d3866;
  max-width: 540px;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
  margin-top: var(--sp-3);
}

.hero__footnote {
  font-size: var(--fs-xs);
  color: #1d3866;
  margin-top: calc(-1 * var(--sp-2));
  letter-spacing: .03em;
}

/* Solid blue primary */
.btn--hero-primary {
  background: var(--clr-primary);
  color: #fff;
  font-weight: 700;
  border: none;
  box-shadow: 0 4px 20px rgba(24,119,242,.35);
  padding: 0.875rem 2rem;
  border-radius: var(--r-full);
  transition: background var(--tr-fast), box-shadow var(--tr-fast), transform var(--tr-fast);
}
.btn--hero-primary:hover {
  background: var(--clr-primary-dark);
  box-shadow: 0 6px 28px rgba(24,119,242,.5);
  transform: translateY(-2px);
}

/* Ghost on light-blue bg */
.btn--hero-ghost {
  background: rgba(255,255,255,.55);
  color: #2a4aaa;
  border: 1.5px solid rgba(255,255,255,.8);
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: var(--r-full);
  backdrop-filter: blur(8px);
  transition: background var(--tr-fast), box-shadow var(--tr-fast), transform var(--tr-fast);
}
.btn--hero-ghost:hover {
  background: rgba(255,255,255,.8);
  box-shadow: 0 4px 16px rgba(24,119,242,.15);
  transform: translateY(-2px);
}

/* Stats row */
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-10);
  justify-content: center;
  margin-top: var(--sp-8);
  padding-top: var(--sp-8);
  border-top: 1px solid rgba(100,140,220,.18);
  width: 100%;
}
.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.75);
  border: 1.5px solid rgba(255,255,255,.95);
  border-radius: var(--r-xl);
  padding: var(--sp-8) var(--sp-10);
  min-width: 140px;
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px rgba(60,100,200,.15), 0 1px 6px rgba(60,100,200,.1);
  transition: box-shadow var(--tr-base), transform var(--tr-base);
}
.stat-card:hover {
  box-shadow: 0 10px 32px rgba(60,100,200,.22);
  transform: translateY(-3px);
}
.stat-card__value {
  font-size: 3rem;
  font-weight: 800;
  color: rgba(100,150,230,.5);
  letter-spacing: -.02em;
  line-height: 1;
}
.stat-card__label {
  font-size: var(--fs-sm);
  color: rgba(80,120,200,.55);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
}

/* Badge on light-blue hero */
.hero .badge--blue {
  background: rgba(255,255,255,.55);
  color: #1a3a9c;
  border: 1px solid rgba(100,150,240,.25);
  font-size: var(--fs-sm);
  padding: var(--sp-2) var(--sp-5);
  border-radius: var(--r-full);
  backdrop-filter: blur(6px);
  font-weight: 600;
}

/* text-gradient — blue to purple on light bg */
.text-gradient {
  background: linear-gradient(135deg, #1877F2 0%, #7c5cfc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Deco shapes — lighter on new bg */
.hero-deco__shape--arrow   { opacity: .08; }

/* ─── FLOATING DECO BASE SHAPES ─────────────────────────────────── */
.hero-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-deco__shape { position: absolute; }
.hero-deco__shape--circle-sm {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2.5px solid rgba(24,119,242,.20);
}
.hero-deco__shape--circle-lg {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(24,119,242,.08);
}
.hero-deco__shape--dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(24,119,242,.15);
}
.hero-deco__shape--arc {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(24,119,242,.18);
  clip-path: inset(0 0 50% 0);
  transform: rotate(-30deg);
}
.hero-deco__shape--cross { width: 16px; height: 16px; }
.hero-deco__shape--cross::before,
.hero-deco__shape--cross::after {
  content: '';
  position: absolute;
  background: rgba(24,119,242,.18);
  border-radius: 2px;
}
.hero-deco__shape--cross::before { width: 16px; height: 3px; top: 6px; left: 0; }
.hero-deco__shape--cross::after  { width: 3px; height: 16px; top: 0; left: 6px; }
.hero-deco__shape--arrow {
  width: 52px; height: 60px;
  opacity: .08;
  background: var(--clr-primary);
  clip-path: polygon(50% 0%, 100% 40%, 70% 40%, 70% 100%, 30% 100%, 30% 40%, 0% 40%);
}
.hero-deco__shape--spark {
  width: 20px; height: 20px;
  opacity: .25;
  background: var(--clr-primary);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* Subtle animated shimmer sweep */
.hero::after {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(105deg,
    transparent 30%,
    rgba(255,255,255,.045) 50%,
    transparent 70%);
  animation: hero-shimmer 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes hero-shimmer {
  0%   { left: -60%; }
  60%  { left: 130%; }
  100% { left: 130%; }
}

/* Dot-grid texture overlay */
.hero__glow {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-6);
}

.hero__badge { margin-bottom: var(--sp-2); }

.hero__heading {
  font-size: clamp(var(--fs-3xl), 6vw, var(--fs-5xl));
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.025em;
  color: #ffffff;
  max-width: 800px;
  text-shadow: 0 2px 30px rgba(0,0,0,.3);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
  margin-top: var(--sp-2);
}

/* Stats row with glass cards */
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  justify-content: center;
  margin-top: var(--sp-6);
}

/* ─── TRUSTED BY ─────────────────────────────────────────────────── */
.trusted {
  padding: var(--sp-10) 0;
  background: var(--clr-white);
  border-top: 1px solid #eaecef;
  border-bottom: 1px solid #eaecef;
}
.trusted .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-5);
  text-align: center;
}
.trusted__label {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #adb5c2;
}
.trusted__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
}
.trusted__name {
  font-size: var(--fs-md);
  font-weight: 700;
  color: #c8cdd6;
  letter-spacing: -.01em;
  padding: 0 var(--sp-6);
  transition: color var(--tr-fast);
  position: relative;
}
.trusted__name + .trusted__name::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #dde0e5;
}
.trusted__name:hover { color: var(--clr-primary); }

/* ─── TOOLS SECTION ──────────────────────────────────────────────── */
.tools-section {
  padding: var(--sp-24) 0;
  background: var(--clr-bg);
}
.section-header {
  text-align: center;
  margin-bottom: var(--sp-12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
}
.section-eyebrow {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--clr-primary);
}
.section-title {
  font-size: clamp(var(--fs-2xl), 4vw, var(--fs-4xl));
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--clr-text);
}
.section-subtitle {
  font-size: var(--fs-md);
  color: var(--clr-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* Tool Tabs */
.tool-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  justify-content: center;
  margin-bottom: var(--sp-8);
}
.tool-tab {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--r-full);
  background: var(--clr-white);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--clr-muted);
  transition: all var(--tr-fast);
}
.tool-tab:hover { border-color: var(--clr-primary); color: var(--clr-primary); background: var(--clr-primary-xlight); }
.tool-tab--active {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: var(--clr-white);
  box-shadow: 0 2px 12px rgba(24,119,242,.3);
}
.tool-tab__icon { font-size: var(--fs-md); }

/* Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sp-4);
  animation: fadeUp var(--tr-slow) both;
}
.tools-grid--hidden { display: none; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Tool Card */
.tool-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  transition: transform var(--tr-base), box-shadow var(--tr-base), border-color var(--tr-base);
}
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(24,119,242,.25);
}
.tool-card:focus { outline: 2px solid var(--clr-primary); outline-offset: 2px; }
.tool-card__icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--icon-color, var(--clr-primary)) 12%, white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.tool-card__body { flex: 1; }
.tool-card__title { font-size: var(--fs-md); font-weight: 700; margin-bottom: var(--sp-1); }
.tool-card__desc  { font-size: var(--fs-sm); color: var(--clr-muted); line-height: 1.5; }
.tool-card__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-primary);
  transition: gap var(--tr-fast);
  margin-top: auto;
}
.tool-card:hover .tool-card__cta { gap: var(--sp-2); }

/* ─── FEATURES SECTION ───────────────────────────────────────────── */
.features-section {
  padding: var(--sp-24) 0;
  background: var(--clr-white);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--sp-6);
}
.feature-card {
  padding: var(--sp-6);
  border-radius: var(--r-lg);
  border: 1px solid var(--clr-border);
  transition: box-shadow var(--tr-base), transform var(--tr-base);
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.feature-card__icon { font-size: 2rem; margin-bottom: var(--sp-3); }
.feature-card__title { font-size: var(--fs-lg); font-weight: 700; margin-bottom: var(--sp-2); }
.feature-card__desc  { font-size: var(--fs-sm); color: var(--clr-muted); line-height: 1.6; }

/* ─── CTA BANNER ─────────────────────────────────────────────────── */
/* ─── CTA BANNER (lavender hero style) ─── */
.cta-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(170deg, #c8daf8 0%, #dce8ff 45%, #ede8ff 80%, #f0eeff 100%);
  padding: var(--sp-24) 0;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.7) 0%, transparent 65%);
  pointer-events: none;
}
.cta-banner__inner {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
}
.cta-banner__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.9);
  color: #1a3a9c;
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 999px;
  letter-spacing: .03em;
}
.cta-banner__title {
  font-size: clamp(var(--fs-3xl), 5vw, 3.6rem);
  font-weight: 800;
  color: #0d1f5c;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-top: var(--sp-2);
}
.cta-banner__title-accent {
  background: linear-gradient(90deg, #1877F2 0%, #7c5cfc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cta-banner__sub {
  font-size: var(--fs-lg);
  color: #1e3a6e;
  max-width: 520px;
  line-height: 1.65;
}
.cta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
  margin-top: var(--sp-2);
}
.cta-banner__footnote {
  font-size: var(--fs-xs);
  color: rgba(30,58,110,.55);
  letter-spacing: .03em;
  margin-top: var(--sp-1);
}

/* ── CTA deco floating shapes ── */
.cta-deco {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}
.cta-deco--circle-lg {
  width: 220px; height: 220px;
  border: 2px solid rgba(24,119,242,.12);
  top: -60px; left: -60px;
}
.cta-deco--circle-sm {
  width: 110px; height: 110px;
  border: 2px solid rgba(124,92,252,.15);
  bottom: 20px; right: 8%;
}
.cta-deco--dot {
  width: 14px; height: 14px;
  background: rgba(24,119,242,.25);
  top: 18%; left: 12%;
  animation: cta-float 5s ease-in-out infinite;
}
.cta-deco--dot2 {
  width: 10px; height: 10px;
  background: rgba(124,92,252,.3);
  bottom: 22%; right: 18%;
  animation: cta-float 6s ease-in-out infinite reverse;
}
.cta-deco--cross {
  width: 24px; height: 24px;
  border-radius: 0;
  top: 15%; right: 12%;
  background:
    linear-gradient(#3a7fec,#3a7fec) 50% 0/3px 100% no-repeat,
    linear-gradient(#3a7fec,#3a7fec) 0 50%/100% 3px no-repeat;
  opacity: .25;
  animation: cta-float 7s ease-in-out infinite;
}
.cta-deco--cross2 {
  width: 18px; height: 18px;
  border-radius: 0;
  bottom: 18%; left: 20%;
  background:
    linear-gradient(#7c5cfc,#7c5cfc) 50% 0/3px 100% no-repeat,
    linear-gradient(#7c5cfc,#7c5cfc) 0 50%/100% 3px no-repeat;
  opacity: .22;
  animation: cta-float 8s ease-in-out infinite reverse;
}
.cta-deco--arc {
  width: 90px; height: 90px;
  border-radius: 0;
  border: 3px solid rgba(24,119,242,.18);
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-radius: 50%;
  bottom: -20px; left: 6%;
  transform: rotate(-30deg);
  animation: cta-spin 18s linear infinite;
}
.cta-deco--arrow {
  width: 0; height: 0;
  border-radius: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 16px solid rgba(24,119,242,.18);
  top: 55%; left: 5%;
  animation: cta-float 9s ease-in-out infinite;
}
.cta-deco--spark {
  width: 8px; height: 8px;
  background: rgba(124,92,252,.35);
  top: 30%; right: 6%;
  transform: rotate(45deg);
  border-radius: 2px;
  animation: cta-float 4s ease-in-out infinite reverse;
}
.cta-deco--ring {
  width: 60px; height: 60px;
  border: 3px solid rgba(124,92,252,.15);
  top: 60%; left: 30%;
  animation: cta-float 11s ease-in-out infinite;
}
@keyframes cta-float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes cta-spin {
  from { transform: rotate(-30deg); }
  to   { transform: rotate(330deg); }
}

/* ─── FOOTER ─────────────────────────────────────────────────────── */
.site-footer {
  background: linear-gradient(160deg, #0a1e42 0%, #0c2d6b 50%, #0c4b9e 100%);
  color: rgba(255,255,255,.75);
  padding-top: var(--sp-16);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(24,119,242,.18) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 100% 0%, rgba(12,75,158,.25) 0%, transparent 60%);
  pointer-events: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: var(--sp-10);
  padding-bottom: var(--sp-12);
  align-items: start;
}
.footer-brand { display: flex; flex-direction: column; gap: var(--sp-4); max-width: 240px; }

/* Footer logo — wrapper clips whitespace. Same image, larger scale for footer prominence */
/* Target content height 72px → scale = 72/615 = 0.1171 */
/* img rendered: 127×226px | content: starts at left=21px top=27px, ends at right=135px bottom=99px */
.footer-logo-wrap {
  display: block;
  width: 370px;   /* (135-21) + 8px padding */
  height: 110px;   /* (99-27) + 8px padding */
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.footer-logo {
  position: absolute;
  height: 110px;  /* 1080 × 0.1171 */
  width: 200px;    /* auto → 226px */
  top:  -25px;    /* 27px content-top − 4px padding */
  left: -25px;    /* 21px content-left − 4px padding */
  filter: brightness(0) invert(1);
  opacity: .9;
}
.footer-tagline {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.55);
  line-height: 1.6;
  max-width: 260px;
}
.footer-social { display: flex; gap: var(--sp-2); margin-top: var(--sp-2); }
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.65);
  border: 1px solid rgba(255,255,255,.08);
  transition: background var(--tr-base), color var(--tr-fast), border-color var(--tr-fast), transform var(--tr-fast);
}
.social-link:hover {
  background: var(--clr-primary);
  color: var(--clr-white);
  border-color: var(--clr-primary);
  transform: translateY(-2px);
}
.footer-heading {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.95);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-link {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.58);
  transition: color var(--tr-fast), padding-left var(--tr-fast);
  display: inline-block;
}
.footer-link:hover { color: #fff; padding-left: 4px; }

/* ═══════════════════════════════════════════════════════════════════
   NAV MEGA DROPDOWN
═══════════════════════════════════════════════════════════════════ */
.nav-mega {
  min-width: 680px;
  max-width: calc(100vw - 2rem);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  padding: var(--sp-4);
  display: flex;
  flex-direction: row;
  gap: var(--sp-2);
  flex-wrap: wrap;
}
.nav-dropdown__trigger:focus-within .nav-mega,
.nav-dropdown__trigger:hover .nav-mega {
  transform: translateX(-50%) translateY(0);
}

/* ── Responsive mega menu (tablets / smaller desktops) ── */
@media (max-width: 960px) {
  .nav-mega {
    min-width: unset;
    width: min(680px, calc(100vw - 2rem));
  }
  .nav-mega__col {
    flex: 1 1 130px;
  }
}
.nav-mega__col {
  flex: 1 1 120px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-mega__heading {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--clr-primary);
  padding: var(--sp-1) var(--sp-3);
  margin-bottom: var(--sp-1);
}
.nav-mega__heading--ai { color: #805ad5; }
.nav-dropdown__menu.nav-mega .nav-dropdown__item {
  font-size: var(--fs-sm);
  padding: 6px var(--sp-3);
}

/* Mobile search in menu */
.mobile-search { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-2) 0; }
.mobile-search__input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff; }
.mobile-search__input::placeholder { color: rgba(255,255,255,.45); }
.mobile-search__btn { margin-top: var(--sp-1); }

/* Contact page social links — override dark-bg footer style */
.contact-socials .social-link {
  background: var(--clr-bg);
  color: var(--clr-text-muted);
  border-color: #dde1e9;
}
.contact-socials .social-link:hover {
  background: var(--clr-primary);
  color: #fff;
  border-color: var(--clr-primary);
}
.mobile-nav-group-title {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.4);
  padding: var(--sp-1) var(--sp-4);
}
.mobile-nav-sub { display: flex; flex-direction: column; }
.mobile-nav-sublink {
  display: block;
  padding: 8px var(--sp-6);
  color: rgba(255,255,255,.7);
  font-size: var(--fs-sm);
  transition: color var(--tr-fast), background var(--tr-fast);
}
.mobile-nav-sublink:hover { color: #fff; background: rgba(255,255,255,.06); }

/* ═══════════════════════════════════════════════════════════════════
   SHARED PAGE ELEMENTS
═══════════════════════════════════════════════════════════════════ */

/* Page Hero (inner pages) */
.page-hero {
  padding: var(--sp-24) 0 var(--sp-20);
  text-align: center;
}
.page-hero--blue {
  background: linear-gradient(135deg, #0c3a8a 0%, #0c4b9e 40%, #1877F2 80%, #2e8bff 100%);
  position: relative;
  overflow: hidden;
}
/* Radial glows */
.page-hero--blue::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -5%, rgba(255,255,255,.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 95% 90%, rgba(46,139,255,.35)  0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 5%  85%, rgba(12,58,138,.5)   0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
/* Diagonal light streaks */
.page-hero--blue::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(122deg,
      transparent 20%,
      rgba(255,255,255,.07) 24%,
      rgba(255,255,255,.12) 25%,
      rgba(255,255,255,.07) 26%,
      transparent 30%
    ),
    linear-gradient(115deg,
      transparent 40%,
      rgba(255,255,255,.04) 43%,
      rgba(255,255,255,.08) 44%,
      rgba(255,255,255,.04) 45%,
      transparent 48%
    );
  pointer-events: none;
  z-index: 0;
}
.page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
}
/* frosted badge */
.page-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.3);
  color: rgba(255,255,255,.95);
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: 6px 20px;
  border-radius: 999px;
  letter-spacing: .04em;
}
.page-hero__title {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin: 0;
}
.page-hero__sub {
  font-size: var(--fs-lg);
  color: rgba(220,235,255,.8);
  line-height: 1.65;
  max-width: 580px;
  margin: 0;
}
.text-gradient {
  background: linear-gradient(135deg, #93c5fd, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Page hero floating deco shapes ── */
.ph-deco {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  z-index: 0;
}
.ph-deco--circle-lg {
  width: 260px; height: 260px;
  border: 2px solid rgba(255,255,255,.1);
  top: -80px; left: -70px;
  animation: ph-float 12s ease-in-out infinite;
}
.ph-deco--circle-sm {
  width: 120px; height: 120px;
  border: 2px solid rgba(255,255,255,.12);
  bottom: -30px; right: 8%;
  animation: ph-float 9s ease-in-out infinite reverse;
}
.ph-deco--dot {
  width: 14px; height: 14px;
  background: rgba(255,255,255,.3);
  top: 25%; left: 10%;
  animation: ph-float 6s ease-in-out infinite;
}
.ph-deco--dot2 {
  width: 10px; height: 10px;
  background: rgba(255,255,255,.2);
  bottom: 28%; right: 15%;
  animation: ph-float 7s ease-in-out infinite reverse;
}
.ph-deco--cross {
  width: 22px; height: 22px;
  border-radius: 0;
  top: 18%; right: 10%;
  background:
    linear-gradient(rgba(255,255,255,.4),rgba(255,255,255,.4)) 50% 0/3px 100% no-repeat,
    linear-gradient(rgba(255,255,255,.4),rgba(255,255,255,.4)) 0 50%/100% 3px no-repeat;
  animation: ph-float 8s ease-in-out infinite;
}
.ph-deco--arc {
  width: 100px; height: 100px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.15);
  border-bottom-color: transparent;
  border-left-color: transparent;
  bottom: -25px; left: 8%;
  animation: ph-spin 20s linear infinite;
}
.ph-deco--spark {
  width: 9px; height: 9px;
  background: rgba(255,255,255,.35);
  top: 60%; right: 7%;
  border-radius: 2px;
  transform: rotate(45deg);
  animation: ph-float 5s ease-in-out infinite reverse;
}
.ph-deco--ring {
  width: 70px; height: 70px;
  border: 3px solid rgba(255,255,255,.12);
  top: 55%; left: 25%;
  animation: ph-float 13s ease-in-out infinite;
}
@keyframes ph-float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
@keyframes ph-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Section eye-brow label */
.section-eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--clr-primary);
  margin-bottom: var(--sp-2);
}

/* ═══════════════════════════════════════════════════════════════════
   ABOUT PAGE
═══════════════════════════════════════════════════════════════════ */
.about-mission {
  padding: var(--sp-20) 0;
  background: var(--clr-bg);
}
.about-mission__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}
@media (max-width: 768px) {
  .about-mission__grid { grid-template-columns: 1fr; gap: var(--sp-10); }
}
.about-mission__text .section-title {
  margin-top: var(--sp-2);
  margin-bottom: var(--sp-6);
}
.about-body {
  color: var(--clr-text-muted);
  line-height: 1.75;
  margin-bottom: var(--sp-4);
}
.about-mission__stats-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.about-stat-card {
  background: var(--clr-white);
  border-radius: 20px;
  padding: var(--sp-8) var(--sp-6);
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  border: 1px solid #eef0f3;
  transition: transform var(--tr-base), box-shadow var(--tr-base);
}
.about-stat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.about-stat-card__value {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--clr-primary);
  line-height: 1;
  margin-bottom: var(--sp-2);
}
.about-stat-card__label {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  font-weight: 500;
}

.about-values {
  padding: var(--sp-20) 0;
  background: var(--clr-white);
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-6);
  margin-top: var(--sp-10);
}
.value-card {
  background: var(--clr-bg);
  border-radius: var(--r-xl);
  padding: var(--sp-8) var(--sp-6);
  border: 1px solid rgba(24,119,242,.07);
  transition: transform var(--tr-base), box-shadow var(--tr-base);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value-card__icon { font-size: 2rem; margin-bottom: var(--sp-4); display: block; }
.value-card__title {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: var(--sp-2);
}
.value-card__desc { font-size: var(--fs-sm); color: var(--clr-text-muted); line-height: 1.65; }

.about-team {
  padding: var(--sp-20) 0;
  background: var(--clr-bg);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sp-6);
  margin-top: var(--sp-10);
}
.team-card {
  background: var(--clr-white);
  border-radius: var(--r-xl);
  padding: var(--sp-8) var(--sp-6);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,.05);
  transition: transform var(--tr-base), box-shadow var(--tr-base);
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.team-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xl);
  font-weight: 700;
  color: #fff;
  margin: 0 auto var(--sp-4);
}
.team-card__name { font-size: var(--fs-lg); font-weight: 700; color: var(--clr-text); margin-bottom: 2px; }
.team-card__role {
  font-size: var(--fs-sm);
  color: var(--clr-primary);
  font-weight: 600;
  margin-bottom: var(--sp-3);
}
.team-card__bio { font-size: var(--fs-sm); color: var(--clr-text-muted); line-height: 1.6; }

/* ═══════════════════════════════════════════════════════════════════
   CONTACT PAGE
═══════════════════════════════════════════════════════════════════ */
.ct-section {
  padding: var(--sp-12) 0 var(--sp-20);
  background: #f0f2f5;
  margin-top: -2rem;
}
.ct-wrap {
  display: grid;
  grid-template-columns: 360px 1fr;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.08), 0 0 0 1px rgba(0,0,0,.04);
}
@media (max-width: 900px) {
  .ct-wrap { grid-template-columns: 1fr; }
}

/* Left info panel */
.ct-info {
  background: linear-gradient(160deg, #0c3a7a 0%, var(--clr-primary) 55%, #42a5f5 100%);
  padding: var(--sp-10) var(--sp-8);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ct-info__body { position: relative; z-index: 1; flex: 1; }
.ct-info__title {
  font-size: var(--fs-xl);
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--sp-3);
  letter-spacing: -.01em;
}
.ct-info__sub {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.8);
  line-height: 1.65;
  margin-bottom: var(--sp-8);
}
.ct-info__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: var(--sp-8);
}
.ct-info__item {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  color: rgba(255,255,255,.95);
  padding: 0.15rem 0;
}
.ct-info__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.ct-info__icon svg { display: block; flex-shrink: 0; }
.ct-info__text { display: flex; flex-direction: column; gap: 2px; }
.ct-info__label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: rgba(255,255,255,.65);
}
.ct-info__value {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
}
.ct-info__note {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  font-size: .78rem;
  color: rgba(255,255,255,.85);
  line-height: 1.55;
}
.ct-info__note svg { flex-shrink: 0; margin-top: 1px; opacity: .8; }

/* Decorative circles */
.ct-info__circle {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.12);
  pointer-events: none;
}
.ct-info__circle--sm {
  width: 140px; height: 140px;
  bottom: 80px; right: -50px;
}
.ct-info__circle--lg {
  width: 240px; height: 240px;
  bottom: -70px; right: -90px;
  background: rgba(255,255,255,.06);
  border: none;
}

/* Right form panel */
.ct-form-wrap {
  padding: var(--sp-10) var(--sp-10);
  display: flex;
  flex-direction: column;
}
@media (max-width: 900px) { .ct-form-wrap { padding: var(--sp-8) var(--sp-6); } }

.ct-form-header { margin-bottom: var(--sp-6); }
.ct-form-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--clr-text);
  margin-bottom: var(--sp-2);
  letter-spacing: -.01em;
}
.ct-form-desc {
  font-size: var(--fs-sm);
  color: #666;
  line-height: 1.6;
}

.ct-form { display: flex; flex-direction: column; gap: var(--sp-5); }
.ct-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 560px) { .ct-form__row { grid-template-columns: 1fr; gap: var(--sp-5); } }

.ct-field { display: flex; flex-direction: column; gap: 6px; }
.ct-label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-text);
}
.ct-required { color: var(--clr-primary); }

.ct-input {
  background: #f8f9fa;
  border: 1.5px solid #e2e6ea;
  border-radius: 10px;
  padding: 12px var(--sp-4);
  font-size: var(--fs-base);
  color: var(--clr-text);
  font-family: inherit;
  outline: none;
  transition: border-color var(--tr-fast), box-shadow var(--tr-fast), background var(--tr-fast);
  width: 100%;
  box-sizing: border-box;
}
.ct-input::placeholder { color: #aaa; }
.ct-input:focus {
  border-color: var(--clr-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(24,119,242,.12);
}
.ct-input--invalid {
  border-color: #e53e3e;
  background: #fff5f5;
}
.ct-input--invalid:focus {
  box-shadow: 0 0 0 3px rgba(229,62,62,.12);
}

.ct-select-wrap { position: relative; }
.ct-select {
  appearance: none;
  cursor: pointer;
  padding-right: 2.5rem;
}
.ct-select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  pointer-events: none;
}

.ct-textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

.ct-field-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-2);
  min-height: 1.2rem;
}
.ct-char-count { font-size: .75rem; color: #999; }
.ct-error { font-size: .75rem; color: #e53e3e; font-weight: 500; }

.ct-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  cursor: pointer;
  user-select: none;
}
.ct-checkbox input { position: absolute; opacity: 0; width: 0; height: 0; }
.ct-checkbox__box {
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  border-radius: 6px;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all var(--tr-fast);
  position: relative;
}
.ct-checkbox input:checked + .ct-checkbox__box {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
}
.ct-checkbox input:checked + .ct-checkbox__box::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}
.ct-checkbox input:focus-visible + .ct-checkbox__box {
  box-shadow: 0 0 0 3px rgba(24,119,242,.25);
}
.ct-checkbox__label {
  font-size: var(--fs-sm);
  color: #555;
  line-height: 1.5;
}

.ct-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  align-self: flex-start;
  margin-top: var(--sp-2);
  padding: 14px 32px;
  background: var(--clr-primary);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  letter-spacing: .01em;
  transition: background var(--tr-fast), box-shadow var(--tr-fast), transform var(--tr-fast);
}
.ct-submit:hover {
  background: var(--clr-primary-dark);
  box-shadow: 0 6px 20px rgba(24,119,242,.35);
  transform: translateY(-1px);
}
@media (max-width: 560px) {
  .ct-submit { align-self: stretch; }
}

.form-alert {
  padding: var(--sp-3) var(--sp-4);
  border-radius: 10px;
  font-size: var(--fs-sm);
  font-weight: 500;
  margin-bottom: var(--sp-4);
}
.form-alert--success { background: #f0fff4; color: #276749; border: 1px solid #9ae6b4; }
.form-alert--error   { background: #fff5f5; color: #9b2c2c; border: 1px solid #feb2b2; }

/* Shared form primitives (used in contact + newsletter) */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--sp-5); }
.form-label { font-size: var(--fs-sm); font-weight: 600; color: var(--clr-text); }
.form-required { color: var(--clr-primary); }
.form-input {
  width: 100%;
  padding: 12px var(--sp-4);
  border: 1.5px solid #dde1e9;
  border-radius: var(--r-lg);
  font-size: var(--fs-base);
  color: var(--clr-text);
  background: var(--clr-bg);
  transition: border-color var(--tr-fast), box-shadow var(--tr-fast), background var(--tr-fast);
  outline: none;
  font-family: inherit;
}
.form-input:focus {
  border-color: var(--clr-primary);
  background: var(--clr-white);
  box-shadow: 0 0 0 3px rgba(24,119,242,.12);
}
.form-input--valid   { border-color: #38a169; }
.form-input--invalid { border-color: #e53e3e; box-shadow: 0 0 0 3px rgba(229,62,62,.1); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-checkbox-group { margin-bottom: var(--sp-4); }
.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  cursor: pointer;
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: 1.5;
}
.form-checkbox {
  width: 18px; height: 18px;
  accent-color: var(--clr-primary);
  flex-shrink: 0; margin-top: 2px; cursor: pointer;
}
.btn--full { width: 100%; justify-content: center; }

/* ═══════════════════════════════════════════════════════════════════
   BLOG PAGE
═══════════════════════════════════════════════════════════════════ */
.blog-section {
  padding: var(--sp-16) 0 var(--sp-20);
  background: var(--clr-bg);
}

/* Category filter */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-10);
}
.blog-filter {
  padding: 8px 18px;
  border-radius: 100px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-text-muted);
  background: var(--clr-white);
  border: 1.5px solid #e2e6ea;
  transition: all var(--tr-fast);
}
.blog-filter:hover, .blog-filter--active {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: #fff;
}

/* Featured post */
.blog-featured {
  background: var(--clr-white);
  border-radius: var(--r-2xl);
  padding: 0;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(24,119,242,.08);
  margin-bottom: var(--sp-10);
  transition: box-shadow var(--tr-base);
  overflow: hidden;
}
.blog-featured:hover { box-shadow: var(--shadow-lg); }
.blog-featured__body { padding: var(--sp-8) var(--sp-10); }

/* Cover images */
.blog-featured__cover {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}
.blog-card__cover {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.blog-card__body {
  padding: var(--sp-5) var(--sp-6) var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  flex: 1;
}
.blog-featured__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
  flex-wrap: wrap;
}
.blog-featured__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--clr-text);
  line-height: 1.2;
  margin-bottom: var(--sp-4);
}
.blog-featured__title a { color: inherit; }
.blog-featured__title a:hover { color: var(--clr-primary); }
.blog-featured__excerpt { font-size: var(--fs-base); color: var(--clr-text-muted); line-height: 1.7; margin-bottom: var(--sp-6); max-width: 680px; }
.blog-featured__footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-4); }

/* ── Hero grid: featured left + sidebar right ── */
.blog-hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--sp-6);
  margin-bottom: var(--sp-10);
  align-items: start;
}
.blog-hero-grid .blog-featured {
  margin-bottom: 0;
  height: 100%;
}
.blog-coming-soon-stack {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

/* Placeholder card */
.blog-card--placeholder {
  border: 2px dashed var(--clr-border);
  background: var(--clr-bg);
  box-shadow: none;
  min-height: 160px;
}
.blog-card--placeholder:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--clr-primary-light);
}
.blog-card__placeholder-body {
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--sp-2);
  min-height: 150px;
}
.blog-card__placeholder-icon {
  font-size: 2rem;
  opacity: .5;
}
.blog-card__placeholder-label {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--clr-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.blog-card__placeholder-sub {
  font-size: var(--fs-xs);
  color: var(--clr-muted);
}

@media (max-width: 900px) {
  .blog-hero-grid {
    grid-template-columns: 1fr;
  }
  .blog-coming-soon-stack {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .blog-coming-soon-stack .blog-card {
    flex: 1 1 260px;
  }
}

/* Blog card grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--sp-6);
}
.blog-grid--3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.blog-card {
  background: var(--clr-white);
  border-radius: var(--r-xl);
  padding: 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform var(--tr-base), box-shadow var(--tr-base);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card__header { display: flex; align-items: center; justify-content: space-between; }
.blog-card__title {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--clr-text);
  line-height: 1.3;
  margin: 0;
}
.blog-card__title a { color: inherit; }
.blog-card__title a:hover { color: var(--clr-primary); }
.blog-card__excerpt { font-size: var(--fs-sm); color: var(--clr-text-muted); line-height: 1.65; flex: 1; }
.blog-card__footer { margin-top: auto; }

/* Blog meta */
.blog-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: var(--fs-xs);
  font-weight: 700;
  background: color-mix(in srgb, var(--tag-color, #1877F2) 12%, transparent);
  color: var(--tag-color, #1877F2);
}
.blog-date, .blog-read-time {
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
}
.blog-author {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.blog-author__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.blog-author__avatar--lg { width: 48px; height: 48px; font-size: var(--fs-base); }
.blog-author__name { font-size: var(--fs-sm); font-weight: 600; color: var(--clr-text); }
.blog-author__label { font-size: var(--fs-xs); color: rgba(255,255,255,.6); }

/* Blog empty state */
.blog-empty {
  text-align: center;
  padding: var(--sp-20) 0;
}
.blog-empty__icon { font-size: 4rem; margin-bottom: var(--sp-4); }
.blog-empty__title { font-size: var(--fs-2xl); font-weight: 700; color: var(--clr-text); margin-bottom: var(--sp-2); }
.blog-empty__sub { color: var(--clr-text-muted); }

/* ─── Newsletter section (lavender) ─────────────────────────── */
.newsletter-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #c8daf8 0%, #dce8ff 40%, #ede8ff 75%, #f0eeff 100%);
  padding: var(--sp-20) 0;
}
.newsletter-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.7) 0%, transparent 60%);
  pointer-events: none;
}
.newsletter-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-10);
  flex-wrap: wrap;
}
.newsletter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.9);
  color: #1a3a9c;
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  letter-spacing: .05em;
  margin-bottom: var(--sp-2);
}
.newsletter-title {
  font-size: clamp(var(--fs-xl), 3vw, var(--fs-3xl));
  font-weight: 800;
  color: #0d1f5c;
  letter-spacing: -.02em;
  margin-bottom: var(--sp-1);
}
.newsletter-sub   { color: #1e3a6e; font-size: var(--fs-base); line-height: 1.6; }
.newsletter-form  { display: flex; gap: var(--sp-2); flex-wrap: wrap; flex: 1; max-width: 480px; }
.newsletter-input {
  flex: 1;
  min-width: 200px;
  background: rgba(255,255,255,.85);
  border: 1.5px solid rgba(24,119,242,.25);
  color: #0d1f5c;
  border-radius: var(--r-lg);
}
.newsletter-input::placeholder { color: rgba(13,31,92,.4); }
.newsletter-input:focus {
  background: #fff;
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(24,119,242,.15);
}
.btn--nl-submit {
  background: linear-gradient(135deg, #1877F2 0%, #0c4b9e 100%);
  color: #fff;
  font-weight: 700;
  padding: 0 var(--sp-6);
  border-radius: var(--r-lg);
  border: none;
  cursor: pointer;
  font-size: var(--fs-base);
  height: 44px;
  white-space: nowrap;
  box-shadow: 0 4px 18px rgba(24,119,242,.35);
  transition: box-shadow var(--transition), transform var(--transition);
}
.btn--nl-submit:hover {
  box-shadow: 0 6px 24px rgba(24,119,242,.5);
  transform: translateY(-1px);
}

/* ── Newsletter deco shapes ── */
.nl-deco {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  z-index: 0;
}
.nl-deco--circle-lg {
  width: 240px; height: 240px;
  border: 2px solid rgba(24,119,242,.1);
  top: -80px; right: -60px;
  animation: nl-float 13s ease-in-out infinite;
}
.nl-deco--circle-sm {
  width: 110px; height: 110px;
  border: 2px solid rgba(124,92,252,.13);
  bottom: -30px; left: 6%;
  animation: nl-float 9s ease-in-out infinite reverse;
}
.nl-deco--dot {
  width: 13px; height: 13px;
  background: rgba(24,119,242,.22);
  top: 20%; left: 8%;
  animation: nl-float 6s ease-in-out infinite;
}
.nl-deco--dot2 {
  width: 9px; height: 9px;
  background: rgba(124,92,252,.25);
  bottom: 25%; right: 10%;
  animation: nl-float 7s ease-in-out infinite reverse;
}
.nl-deco--cross {
  width: 22px; height: 22px;
  border-radius: 0;
  top: 15%; right: 18%;
  background:
    linear-gradient(rgba(24,119,242,.3),rgba(24,119,242,.3)) 50% 0/3px 100% no-repeat,
    linear-gradient(rgba(24,119,242,.3),rgba(24,119,242,.3)) 0 50%/100% 3px no-repeat;
  animation: nl-float 8s ease-in-out infinite;
}
.nl-deco--cross2 {
  width: 16px; height: 16px;
  border-radius: 0;
  bottom: 20%; left: 22%;
  background:
    linear-gradient(rgba(124,92,252,.3),rgba(124,92,252,.3)) 50% 0/3px 100% no-repeat,
    linear-gradient(rgba(124,92,252,.3),rgba(124,92,252,.3)) 0 50%/100% 3px no-repeat;
  animation: nl-float 10s ease-in-out infinite reverse;
}
.nl-deco--arc {
  width: 90px; height: 90px;
  border-radius: 50%;
  border: 3px solid rgba(24,119,242,.15);
  border-bottom-color: transparent;
  border-left-color: transparent;
  top: -20px; left: 30%;
  animation: nl-spin 22s linear infinite;
}
.nl-deco--spark {
  width: 8px; height: 8px;
  background: rgba(124,92,252,.3);
  top: 55%; left: 5%;
  border-radius: 2px;
  transform: rotate(45deg);
  animation: nl-float 5s ease-in-out infinite;
}
.nl-deco--ring {
  width: 65px; height: 65px;
  border: 3px solid rgba(124,92,252,.12);
  top: 50%; right: 25%;
  animation: nl-float 14s ease-in-out infinite reverse;
}
@keyframes nl-float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes nl-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Blog detail */
.blog-detail-hero {
  padding: var(--sp-16) 0 var(--sp-10);
  text-align: left;
  position: relative;
  overflow: hidden;
}
/* Cover image as hero background */
.blog-detail-hero--has-cover {
  background: #111;
}
.blog-detail-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.blog-detail-hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: .55;
}
.blog-detail-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.25) 0%, rgba(0,0,0,.65) 100%);
}
.blog-detail-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
}
.blog-detail-hero__meta { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); flex-wrap: wrap; }
.blog-detail-hero__title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: var(--sp-6);
}
.blog-detail-body {
  padding: var(--sp-16) 0;
  max-width: 780px;
}
.blog-prose {
  font-size: var(--fs-base);
  line-height: 1.8;
  color: var(--clr-text);
}
.blog-prose h2, .blog-prose h3 { font-weight: 700; margin: var(--sp-8) 0 var(--sp-3); color: var(--clr-text); }
.blog-prose p { margin-bottom: var(--sp-4); }
.blog-prose a { color: var(--clr-primary); text-decoration: underline; }
.blog-prose ul, .blog-prose ol { padding-left: var(--sp-6); margin-bottom: var(--sp-4); }
.blog-prose li { margin-bottom: var(--sp-2); }
.blog-prose code { background: var(--clr-bg); padding: 2px 6px; border-radius: var(--r-sm); font-size: .9em; }
.blog-prose pre { background: #0a1628; color: #e2e8f0; padding: var(--sp-6); border-radius: var(--r-lg); overflow-x: auto; margin-bottom: var(--sp-6); }

.blog-tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: var(--sp-8) 0; }
.blog-tag-pill {
  padding: 5px 14px;
  background: var(--clr-bg);
  border: 1px solid #dde1e9;
  border-radius: 100px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--clr-text-muted);
}

.blog-share { display: flex; align-items: center; gap: var(--sp-3); margin: var(--sp-8) 0; flex-wrap: wrap; }
.blog-share__label { font-size: var(--fs-sm); font-weight: 600; color: var(--clr-text-muted); }
.blog-share-btn {
  padding: 8px 18px;
  border-radius: var(--r-lg);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: opacity var(--tr-fast);
}
.blog-share-btn:hover { opacity: .85; }
.blog-share-btn--twitter  { background: #000; color: #fff; }
.blog-share-btn--linkedin { background: #0077b5; color: #fff; }

.blog-back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-primary);
  margin-top: var(--sp-4);
  transition: gap var(--tr-fast);
}
.blog-back-link:hover { gap: var(--sp-3); }

.related-posts { padding: var(--sp-16) 0; background: var(--clr-bg); }

/* ═══════════════════════════════════════════════════════════════════
   TOOLS PAGE
═══════════════════════════════════════════════════════════════════ */
.tools-page-section {
  padding: var(--sp-16) 0 var(--sp-20);
  background: var(--clr-bg);
}
.tools-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-10);
}
.tools-filter {
  padding: 9px 18px;
  border-radius: 100px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-text-muted);
  background: var(--clr-white);
  border: 1.5px solid #e2e6ea;
  transition: all var(--tr-fast);
}
.tools-filter:hover, .tools-filter--active {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: #fff;
}

.tools-group { margin-bottom: 3.5rem; }
.tools-group__header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-4);
  border-bottom: 2px solid var(--clr-primary);
}
.tools-group__icon { font-size: 1.5rem; line-height: 1; }
.tools-group__title { font-size: var(--fs-xl); font-weight: 700; color: var(--clr-text); flex: 1; }
.tools-group__count {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-primary);
}

/* ── Card Grid ── */
.tools-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 600px) { .tools-page-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }

/* ── Card ── */
.tool-page-card {
  display: flex;
  flex-direction: column;
  background: var(--clr-white);
  border-radius: 16px;
  padding: 24px 20px 20px;
  border: 1.5px solid #eaedf0;
  transition: transform var(--tr-base), box-shadow var(--tr-base), border-color var(--tr-base);
  cursor: pointer;
  position: relative;
  min-height: 220px;
}
.tool-page-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.09);
  border-color: var(--tool-color, var(--clr-primary));
}

/* Badge — absolute top-right */
.tool-page-card__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #38a169;
  background: rgba(56,161,105,.1);
  border: 1px solid rgba(56,161,105,.3);
  padding: 2px 8px;
  border-radius: 100px;
}

/* Circular icon */
.tool-page-card__icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--tool-color, #1877F2) 12%, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
  flex-shrink: 0;
  transition: transform var(--tr-base);
}
.tool-page-card:hover .tool-page-card__icon-wrap { transform: scale(1.08); }

.tool-page-card__name {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--clr-text);
  line-height: 1.3;
  margin-bottom: 8px;
}
.tool-page-card__desc {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 16px;
}
.tool-page-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--tool-color, var(--clr-primary));
  transition: gap var(--tr-fast);
}
.tool-page-card:hover .tool-page-card__cta { gap: 9px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: var(--sp-6) 0;
  text-align: center;
  font-size: var(--fs-xs);
  color: rgba(255,255,255,.45);
  letter-spacing: .03em;
}

/* ─── SCROLL-TO-TOP BUTTON ───────────────────────────────────────── */
#scroll-top {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  width: 44px;
  height: 44px;
  border-radius: var(--r-full);
  background: var(--clr-primary);
  color: var(--clr-white);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity var(--tr-base), transform var(--tr-base);
  z-index: 900;
}
#scroll-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
#scroll-top:hover { background: var(--clr-primary-dark); }

/* ─── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
  .footer-brand { grid-column: 1 / -1; max-width: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--sp-6); }
  .footer-tagline { flex: 1 1 100%; }
}

@media (max-width: 768px) {
  .nav-primary, .header-search { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }

  .hero { padding: var(--sp-16) 0 var(--sp-12); }
  .hero__stats { gap: var(--sp-4); }

  .tools-section, .features-section { padding: var(--sp-16) 0; }
  .cta-banner { padding: var(--sp-16) 0; }

  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  .footer-brand { grid-column: auto; }
}

@media (max-width: 480px) {
  :root { --header-h: 66px; }
  .container { padding-inline: var(--sp-4); }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
  .cta-banner__actions { flex-direction: column; align-items: stretch; }
}
