:root {
  --bg-0: #070a12;
  --bg-1: #0d1220;
  --glass: rgba(255, 255, 255, 0.055);
  --glass-strong: rgba(255, 255, 255, 0.09);
  --glass-border: rgba(255, 255, 255, 0.14);
  --red: #ff4444;
  --red-soft: #ff6b6b;
  --blue: #2fb0f0;
  --gold: #ffc233;
  --text: #eef1f8;
  --muted: #9aa7bd;
  --radius: 18px;
}

* { box-sizing: border-box; }
/* Inline Lucide SVG icons (replaces emoji used as functional icons site-wide).
   currentColor lets each icon inherit its container's text color instead of
   needing per-icon overrides; vertical-align nudges it to sit on the text
   baseline the way a glyph would, since SVGs render slightly low by default. */
.icon-svg { vertical-align: -3px; flex-shrink: 0; display: inline-block; }
html, body { margin: 0; padding: 0; }
html { color-scheme: dark; }

html {
  background: linear-gradient(160deg, var(--bg-0), var(--bg-1));
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
  position: relative;
}

/* Pulsing background lives on a pseudo-element (not body itself) so that
   animating `filter` here doesn't create a containing block that breaks
   `position: fixed` for real children like the drawer/overlay. */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 12% 0%, rgba(21, 176, 165, 0.22), transparent 45%),
    radial-gradient(circle at 90% 0%, rgba(47, 176, 240, 0.18), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(232, 39, 39, 0.10), transparent 45%),
    linear-gradient(160deg, var(--bg-0), var(--bg-1));
  animation: bgPulse 18s ease-in-out infinite alternate;
}

@keyframes bgPulse {
  0% { filter: brightness(1); }
  100% { filter: brightness(1.06); }
}

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

.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ---------- Glass utility ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

/* ---------- Header ---------- */
/* NOTE: backdrop-filter lives on ::before, not the header itself — a
   filter/backdrop-filter on an ancestor creates a CSS containing block for
   position:fixed descendants, which would break the fixed-position mobile
   nav panel (it would size against the header's small box instead of the
   viewport). Keeping it off the header avoids that trap. */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--glass-border);
}
header.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(26, 26, 26, 0.72);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
}

.nav-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; gap: 24px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; transition: transform .25s ease; margin-right: 28px; flex-shrink: 0; white-space: nowrap; }
.brand:hover { transform: translateY(-1px); }
.brand img { height: 38px; width: auto; border-radius: 8px; filter: drop-shadow(0 0 12px rgba(255, 68, 68, 0.35)); }
.brand span { background: linear-gradient(90deg, var(--red), var(--gold), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }

nav.main-nav { display: flex; gap: 4px; flex: 1; justify-content: center; }
nav.main-nav > .nav-item { position: relative; }
nav.main-nav > .nav-item > a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 12px; font-weight: 500; font-size: .92rem;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
nav.main-nav > .nav-item > a:hover { background: var(--glass-strong); color: var(--red-soft); transform: translateY(-1px); }
nav.main-nav > .nav-item > a .chev { font-size: .65rem; opacity: .6; transition: transform .2s ease; }
nav.main-nav > .nav-item:hover > a .chev { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 260px;
  background: rgba(13, 18, 32, 0.92);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  padding: 10px;
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  display: grid; gap: 2px;
}
nav.main-nav > .nav-item:hover .dropdown, nav.main-nav > .nav-item.force-open .dropdown { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.dropdown a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: .88rem; color: var(--muted); transition: background .18s ease, color .18s ease, padding-left .18s ease; }
.dropdown a:hover { background: linear-gradient(90deg, rgba(255,68,68,.16), rgba(47,176,240,.10)); color: var(--text); padding-left: 14px; }
.dropdown a .ic { font-size: 1rem; }
.nav-item a.no-link { cursor: default; }

/* ---------- Mega menu (PDF / Images) ----------
   A short, hand-picked, evenly-sized list (10 tools, 2 even columns) plus a
   "Show All" link to the full category page — no sub-group headers, so
   there's nothing for short/tall groups to mismatch. Full browsing still
   lives in the All-Tools drawer. */
.mega-dropdown {
  left: 50%; transform: translateX(-50%) translateY(-8px) scale(.98);
  width: 480px; max-width: 92vw; padding: 18px;
}
nav.main-nav > .nav-item:hover .mega-dropdown, nav.main-nav > .nav-item.force-open .mega-dropdown { transform: translateX(-50%) translateY(0) scale(1); }
.mega-flat-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 12px; }
.mega-flat-list a { padding: 9px 10px; font-size: .87rem; }
.mega-show-all {
  display: block; margin-top: 10px; padding: 11px 12px; text-align: center; border-radius: 10px;
  font-size: .85rem; font-weight: 600; color: var(--blue); background: var(--glass-strong);
  border-top: 1px solid var(--glass-border); transition: background .2s ease, color .2s ease;
}
.mega-show-all:hover { background: rgba(47,176,240,.16); color: var(--text); }

@media (max-width: 600px) {
  .mega-flat-list { grid-template-columns: 1fr; }
}

.mobile-cta { display: none; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 11px 20px; border-radius: 12px; font-weight: 600; font-size: .9rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--red), #ff7a59, var(--gold));
  background-size: 180% 180%; background-position: 0% 50%;
  color: #fff; box-shadow: 0 6px 20px rgba(255, 68, 68, 0.35);
  transition: transform .25s ease, box-shadow .25s ease, background-position .45s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255, 68, 68, 0.45); background-position: 100% 50%; }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: var(--glass); border-color: var(--glass-border); color: var(--text);
  transition: transform .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
}
.btn-ghost:hover { background: rgba(47,176,240,.12); border-color: var(--blue); color: var(--text); transform: translateY(-2px); }

/* ---------- Color variants — used to vary primary-button color across the
   site instead of every CTA being the same red/gold gradient. ---------- */
.btn-primary.btn-blue {
  background: linear-gradient(135deg, #2DB0F9, #6dcbfa, #2DB0F9); background-size: 180% 180%;
  box-shadow: 0 6px 20px rgba(45, 176, 249, 0.4);
}
.btn-primary.btn-blue:hover { box-shadow: 0 12px 30px rgba(45, 176, 249, 0.5); }
.btn-primary.btn-red {
  background: linear-gradient(135deg, #E42626, #ff6a6a, #E42626); background-size: 180% 180%;
  box-shadow: 0 6px 20px rgba(228, 38, 38, 0.4);
}
.btn-primary.btn-red:hover { box-shadow: 0 12px 30px rgba(228, 38, 38, 0.5); }
.btn-primary.btn-teal {
  background: linear-gradient(135deg, #15B0A5, #4fd9cd, #15B0A5); background-size: 180% 180%;
  box-shadow: 0 6px 20px rgba(21, 176, 165, 0.4);
}
.btn-primary.btn-teal:hover { box-shadow: 0 12px 30px rgba(21, 176, 165, 0.5); }

.mobile-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--glass-border);
  background: var(--glass); cursor: pointer; padding: 0 9px; flex-shrink: 0;
}
.mobile-toggle span { display: block; height: 2px; width: 100%; background: var(--text); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.mobile-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-search-toggle {
  display: none; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--glass-border);
  background: var(--glass); cursor: pointer; flex-shrink: 0; font-size: 1rem; color: var(--text);
}

/* ---------- Top nav search ---------- */
.nav-search { position: relative; flex: 1; max-width: 320px; }
.nav-search .search-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); opacity: .6; font-size: .85rem; pointer-events: none; }
.nav-search input {
  width: 100%; background: rgba(255,255,255,.045); border: 1px solid var(--glass-border); border-radius: 12px;
  padding: 10px 14px 10px 36px; color: var(--text); font-size: .88rem;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.nav-search input::placeholder { color: var(--muted); }
.nav-search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,176,240,.16); background: rgba(255,255,255,.06); }

.search-results {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0; max-height: 360px; overflow-y: auto;
  background: rgba(13, 18, 32, 0.96); border: 1px solid var(--glass-border); border-radius: 14px;
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 16px 40px rgba(0,0,0,.45); padding: 8px; display: none; z-index: 200;
}
.search-results.show { display: block; }
.search-results a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: .88rem; color: var(--text); transition: background .15s ease; }
.search-results a:hover, .search-results a.active { background: linear-gradient(90deg, rgba(255,68,68,.18), rgba(47,176,240,.10)); }
.search-results a .cat-pill { margin-left: auto; font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.search-results .no-results { padding: 14px 12px; color: var(--muted); font-size: .85rem; text-align: center; }

/* ---------- All-tools left drawer ---------- */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(4, 6, 12, 0.6); backdrop-filter: blur(0px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .45s cubic-bezier(.22,1,.36,1), backdrop-filter .45s ease, visibility .45s; z-index: 199;
}
.drawer-overlay.show { opacity: 1; visibility: visible; backdrop-filter: blur(3px); pointer-events: auto; }

.tools-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: 340px; max-width: 86vw;
  background: linear-gradient(165deg, rgba(9, 14, 26, 0.98) 0%, rgba(14, 35, 56, 0.97) 55%, rgba(20, 58, 84, 0.96) 100%);
  backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-right: 1px solid var(--glass-border);
  box-shadow: 0 0 0 rgba(0,0,0,0);
  z-index: 200; display: flex; flex-direction: column;
  transform: translateX(-100%);
  transition: transform .5s cubic-bezier(.22,1,.36,1), box-shadow .5s ease;
  will-change: transform;
}
.tools-drawer.open { transform: translateX(0); box-shadow: 16px 0 50px rgba(0,0,0,.5); }
.tools-drawer.peek { transition: transform .5s cubic-bezier(.22,1,.36,1); transform: translateX(calc(-100% + 8vw)); box-shadow: 10px 0 30px rgba(0,0,0,.35); }

.tools-drawer .drawer-head,
.tools-drawer .drawer-search,
.tools-drawer .drawer-body,
.tools-drawer .drawer-foot {
  opacity: 0; transform: translateX(-12px);
  transition: opacity .35s ease, transform .35s ease;
}
.tools-drawer.open .drawer-head { opacity: 1; transform: translateX(0); transition-delay: .08s; }
.tools-drawer.open .drawer-search { opacity: 1; transform: translateX(0); transition-delay: .13s; }
.tools-drawer.open .drawer-body { opacity: 1; transform: translateX(0); transition-delay: .18s; }
.tools-drawer.open .drawer-foot { opacity: 1; transform: translateX(0); transition-delay: .22s; }

/* ---------- Persistent drawer-peek button ---------- */
.drawer-peek-btn {
  position: fixed; left: 0; top: 50%; transform: translateY(-50%);
  width: 30px; height: 64px; border-radius: 0 14px 14px 0;
  background: linear-gradient(135deg, var(--blue), #1e7fb8);
  border: 1px solid var(--glass-border); border-left: none;
  box-shadow: 4px 0 16px rgba(0,0,0,.35);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 198; padding: 0;
  transition: transform .5s cubic-bezier(.2,.9,.25,1), box-shadow .3s ease;
}
.drawer-peek-btn .drawer-peek-arrow {
  color: #fff; font-size: 1.2rem; line-height: 1;
  animation: drawer-peek-arrow-nudge 2.4s ease-in-out infinite;
}
/* Moves the exact same 8vw distance as .tools-drawer.peek so the arrow
   stays visually attached to the drawer's leading edge as it slides out,
   instead of the drawer peeking out from underneath a stationary arrow. */
.drawer-peek-btn.nudge { transform: translateY(-50%) translateX(8vw); box-shadow: 6px 0 22px rgba(47,176,240,.5); }
.drawer-peek-btn:hover { transform: translateY(-50%) translateX(4px); }

/* The mobile hamburger button already opens this same drawer, and the
   peek tab's fixed vertical-center position tends to land on top of
   page content (dropzones, FAQ items) on short mobile viewports. */
@media (max-width: 768px) {
  .drawer-peek-btn { display: none; }
}

@keyframes drawer-peek-arrow-nudge {
  0%, 100% { transform: translateX(0); opacity: .85; }
  50% { transform: translateX(3px); opacity: 1; }
}

.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 14px; border-bottom: 1px solid var(--glass-border); flex-shrink: 0; }
.drawer-head .brand img { height: 34px; width: auto; }
.drawer-close {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--glass-border);
  background: var(--glass); color: var(--text); cursor: pointer; font-size: 1rem;
  transition: background .2s ease, transform .2s ease;
}
.drawer-close:hover { background: var(--red); transform: rotate(90deg); }

.drawer-search { position: relative; margin: 14px 18px 0; flex-shrink: 0; }
.drawer-search .search-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); opacity: .6; font-size: .85rem; }
.drawer-search input {
  width: 100%; background: rgba(255,255,255,.05); border: 1px solid var(--glass-border); border-radius: 12px;
  padding: 11px 14px 11px 36px; color: var(--text); font-size: .9rem;
}
.drawer-search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,176,240,.16); }
#drawer-search-results { position: static; margin: 8px 18px 0; max-height: calc(100vh - 200px); overflow-y: auto; }
#drawer-search-results.show ~ #drawer-body { display: none; }

.drawer-body { flex: 1; overflow-y: auto; padding: 16px 10px 20px; }
.drawer-section { padding: 0 8px 18px; border-bottom: 1px solid var(--glass-border); margin-bottom: 10px; }
.drawer-section:last-child { border-bottom: none; }
.drawer-section p.drawer-top-label {
  margin: 6px 0 8px; padding: 0 6px; font-size: .95rem; font-weight: 700; color: var(--text);
}
.drawer-section p.drawer-top-label .count { color: var(--muted); font-weight: 400; }
.drawer-subgroup { margin-bottom: 6px; }
.drawer-subgroup-label {
  display: flex; align-items: center; gap: 8px; margin: 10px 0 4px; padding: 0 6px;
  font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--blue);
}
.drawer-link { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: .87rem; color: var(--text); transition: background .15s ease, padding-left .15s ease; }
.drawer-link:hover { background: linear-gradient(90deg, rgba(255,68,68,.16), rgba(47,176,240,.10)); padding-left: 14px; }

.drawer-foot { padding: 14px 18px; border-top: 1px solid var(--glass-border); flex-shrink: 0; display: flex; flex-direction: column; gap: 10px; }
.drawer-blog-btn { display: none; }
@media (max-width: 900px) {
  .drawer-blog-btn { display: block; }
  .drawer-alifbey-btn { display: none; }
}

.nav-cta .grid-ic { font-size: .95rem; }

@media (max-width: 600px) {
  .tools-drawer { width: 88vw; }
}

/* ---------- Hero / Banner ---------- */
.hero { padding: 70px 0 50px; text-align: center; position: relative; overflow: hidden; }
.hero > .container { position: relative; z-index: 1; }

/* ---------- Full-page grid shader + pointer-reactive smoke (homepage only) ----------
   body::before (existing bgPulse) stays the deepest layer; the grid sits just
   above it; the smoke layer (a real element, not a pseudo-element) sits above
   the grid so JS can drive its transform directly on pointer movement. All
   three are position:fixed so they cover the full viewport as you scroll,
   giving the effect of a full-page background rather than a hero-only one. */
body.homepage::before { z-index: -3; }
body.homepage::after {
  content: ''; position: fixed; inset: -30% -20%; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(47,176,240,.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,176,240,.14) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, black 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, black 0%, transparent 75%);
  animation: gridShaderDrift 16s linear infinite, gridShaderPulse 6s ease-in-out infinite;
  transform-origin: top center;
  will-change: transform;
}
/* The parent only ever receives a JS-set `transform` (pointer parallax in
   main.js) — the ambient drift animation lives on ::before instead, since a
   running CSS animation on `transform` would otherwise fight with and
   override that inline JS value on every frame. Both layers translate
   rather than animate background-position so they stay GPU-composited
   instead of forcing a repaint every frame. */
.smoke-layer {
  position: fixed; inset: -15%; z-index: -1; pointer-events: none; overflow: hidden;
  transition: transform 1.1s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}
.smoke-layer::before {
  content: ''; position: absolute; inset: -20%;
  background:
    radial-gradient(ellipse 50% 40% at 20% 25%, rgba(21,176,165,.22), transparent 60%),
    radial-gradient(ellipse 45% 35% at 80% 15%, rgba(47,176,240,.20), transparent 60%),
    radial-gradient(ellipse 55% 45% at 50% 85%, rgba(232,39,39,.14), transparent 60%),
    radial-gradient(ellipse 40% 35% at 65% 55%, rgba(47,176,240,.14), transparent 60%);
  filter: blur(18px);
  animation: smokeDrift 24s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes gridShaderDrift {
  0% { transform: perspective(600px) rotateX(55deg) translate(0, 0); }
  100% { transform: perspective(600px) rotateX(55deg) translate(42px, 42px); }
}
@keyframes gridShaderPulse {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}
@keyframes smokeDrift {
  0% { transform: translate(0%, 0%); }
  100% { transform: translate(6%, 8%); }
}
.hero h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(2rem, 4.5vw, 3.4rem); margin: 0 0 16px; }
.hero h1 .accent { background: linear-gradient(90deg, var(--red), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: var(--muted); font-size: 1.1rem; max-width: 680px; margin: 0 auto 28px; }
.hero .badge-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 6px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--glass); border: 1px solid var(--glass-border); color: var(--muted); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 8px var(--blue); animation: blink 2s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- Reasons carousel (hero) ----------
   Horizontal icon+text layout (not a tall centered stack), with the track
   height set once in JS to the tallest slide — avoids both clipped overflow
   and the empty oversized box you get from a guessed fixed height. */
.reasons-carousel { margin: 40px 0 0; }
/* All slides stack in the same single grid cell (grid-area: 1/1 below),
   so the track auto-sizes to whichever slide is tallest with zero JS
   measurement — the old approach (position:absolute + reading
   offsetHeight per slide in JS) forced a synchronous layout recalc on
   every load and every resize. */
.carousel-track { display: grid; }
.carousel-slide {
  grid-area: 1 / 1; width: 100%; padding: 36px 48px; text-align: left;
  display: flex; align-items: center; justify-content: center; gap: 22px;
  opacity: 0; visibility: hidden; transform: translateX(16px);
  transition: opacity .45s ease, transform .45s ease, visibility .45s;
}
.carousel-slide.active { opacity: 1; visibility: visible; transform: translateX(0); }
.carousel-slide.intro-slide {
  flex-direction: column; text-align: center; padding: 10px 16px; gap: 0;
}
.carousel-slide.intro-slide .badge-row { margin-bottom: 6px; }
.carousel-slide.intro-slide .slide-heading { font-family: 'Space Grotesk', sans-serif; font-size: clamp(2rem, 4.5vw, 3.4rem); margin: 0 0 16px; font-weight: 700; }
.carousel-slide.intro-slide .slide-heading .accent { background: linear-gradient(90deg, var(--red), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.carousel-slide.intro-slide p.lead { color: var(--muted); font-size: 1.1rem; max-width: 680px; margin: 0 auto; }
.carousel-icon-inline { font-size: 1.3rem; }
.carousel-icon {
  flex-shrink: 0; width: 60px; height: 60px; border-radius: 16px; font-size: 1.7rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--glass-strong); border: 1px solid var(--glass-border);
}
.carousel-text { min-width: 0; max-width: 580px; }
.carousel-slide h3 { margin: 0 0 4px; font-size: 1.02rem; }
.carousel-slide h3 .accent { background: linear-gradient(90deg, var(--red), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.carousel-slide p { margin: 0; color: var(--muted); font-size: .87rem; line-height: 1.5; }
.carousel-dots { display: flex; justify-content: center; gap: 2px; margin-top: 22px; }
/* The tappable button is a full 24x24 hit area (accessibility minimum
   touch target); the small visible dot is just a centered ::after so the
   carousel keeps its original compact look. */
.dot-btn {
  width: 24px; height: 24px; border-radius: 50%; border: none; background: transparent;
  cursor: pointer; padding: 0; position: relative; display: inline-flex; align-items: center; justify-content: center;
}
.dot-btn::after {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--glass-strong); transition: all .25s ease;
}
.dot-btn:hover::after { background: var(--glass-border); }
.dot-btn.active::after { background: linear-gradient(90deg, var(--red), var(--gold)); width: 22px; border-radius: 6px; }

/* ---------- Stats strip ---------- */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 28px; }
.stat-item { text-align: center; }
.stat-item .num { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; background: linear-gradient(90deg, var(--red), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-item .label { color: var(--muted); font-size: .82rem; margin-top: 4px; }

/* ---------- Icon-circle step flow (neumorphic soft-UI) ----------
   Circles are the same dark tone as the page, "extruded" with a paired
   light/dark offset shadow instead of a border or glass blur — the classic
   neumorphism look, adapted to a dark theme. Hover presses it in (shadows
   flip to inset) rather than lifting, which reads as a tactile push. */
.steps-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; margin-top: 30px; }
.steps-flow::before {
  content: ''; position: absolute; top: 38px; left: 12%; right: 12%; height: 2px;
  background: linear-gradient(90deg, var(--red), var(--blue), var(--gold)); opacity: .18; z-index: 0;
}
.step-item { position: relative; z-index: 1; text-align: center; }
.step-circle {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 16px; font-size: 1.7rem;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #11162580, #0a0d16);
  box-shadow:
    -7px -7px 14px rgba(255,255,255,.045),
    7px 7px 16px rgba(0,0,0,.55),
    inset 0 0 0 1px rgba(255,255,255,.03);
  transition: box-shadow .3s ease, transform .3s ease;
}
.step-item:hover .step-circle {
  transform: scale(.97);
  box-shadow:
    inset -5px -5px 10px rgba(255,255,255,.04),
    inset 5px 5px 12px rgba(0,0,0,.6),
    0 0 18px rgba(255,68,68,.25);
}
.step-num {
  position: absolute; top: -4px; right: calc(50% - 50px); width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(145deg, #1a2030, #0c0f18); color: var(--text); font-size: .72rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: -2px -2px 5px rgba(255,255,255,.05), 2px 3px 6px rgba(0,0,0,.5);
}
.step-item h3 { margin: 0 0 8px; font-size: 1.05rem; }
.step-item p { margin: 0; color: var(--muted); font-size: .87rem; }

/* ---------- Feature grid (icon boxes) ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 24px 0 36px; }
.feature-box {
  padding: 24px; border-radius: 16px; background: var(--glass); border: 1px solid var(--glass-border);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.feature-box:hover { transform: translateY(-6px); border-color: var(--blue); box-shadow: 0 16px 32px rgba(0,0,0,.35); }
.feature-box .f-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--glass-strong); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 14px; }
.feature-box h3 { margin: 0 0 8px; font-size: 1rem; }
.feature-box p { margin: 0; color: var(--muted); font-size: .87rem; }

/* ---------- Pull quote ---------- */
.pull-quote { padding: 36px 40px; margin: 8px 0 40px; text-align: center; position: relative; }
.pull-quote .quote-mark { font-family: 'Space Grotesk', sans-serif; font-size: 3rem; line-height: 1; color: var(--red); opacity: .5; }
.pull-quote p.quote-text { font-size: 1.2rem; font-style: italic; max-width: 680px; margin: 0 auto 14px; }
.pull-quote .quote-by { color: var(--muted); font-size: .85rem; font-weight: 600; }

/* ---------- CTA banner ---------- */
.cta-banner {
  padding: 44px; text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(255,68,68,.14), rgba(47,176,240,.10));
}
.cta-banner h2 { font-family: 'Space Grotesk', sans-serif; margin: 0 0 10px; font-size: 1.8rem; }
.cta-banner p { color: var(--muted); margin: 0 auto 22px; max-width: 520px; }

@media (max-width: 760px) {
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .steps-flow { grid-template-columns: 1fr; gap: 36px; }
  .steps-flow::before { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .pull-quote { padding: 26px 20px; }
  .pull-quote p.quote-text { font-size: 1.05rem; }
  .cta-banner { padding: 30px 20px; }
}

/* ---------- Sections ---------- */
.section { padding: 50px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 26px; }
.section-head h2 { font-family: 'Space Grotesk', sans-serif; font-size: 1.6rem; margin: 0; position: relative; padding-left: 16px; }
.section-head h2::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 4px; background: linear-gradient(180deg, var(--red), var(--blue)); }
.section-head a.view-all { color: var(--blue); font-size: .85rem; font-weight: 600; }
.section-head a.view-all:hover { color: var(--red-soft); }

.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-4, .grid-3 { grid-template-columns: 1fr; } }

/* ---------- Tool cards ---------- */
.tool-card {
  position: relative; padding: 22px; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px) saturate(160%);
  overflow: hidden; transition: transform .35s cubic-bezier(.2,.9,.25,1), box-shadow .35s ease, border-color .35s ease;
}
.tool-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(circle at 30% 0%, var(--card-color, var(--red)) 0%, transparent 60%);
  transition: opacity .35s ease;
}
.tool-card:hover { transform: translateY(-8px) scale(1.015); border-color: var(--card-color, var(--red)); box-shadow: 0 20px 45px rgba(0,0,0,.45), 0 0 0 1px var(--card-color, var(--red)) inset; }
.tool-card:hover::before { opacity: .16; }
.tool-card .icon { font-size: 2rem; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 16px; background: var(--glass-strong); margin-bottom: 14px; transition: transform .35s ease; }
.tool-card:hover .icon { transform: rotate(-6deg) scale(1.08); }
.tool-card .cat-tag { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--card-color, var(--red-soft)); font-weight: 700; }
.tool-card h3 { margin: 6px 0 8px; font-size: 1.05rem; }
.tool-card p { margin: 0; color: var(--muted); font-size: .85rem; }

/* ---------- Blog tiles ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 980px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-tile {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--glass); border: 1px solid var(--glass-border); backdrop-filter: blur(16px) saturate(160%);
  transition: transform .35s cubic-bezier(.2,.9,.25,1), box-shadow .35s ease, border-color .35s ease;
}
.blog-tile:hover { transform: translateY(-8px); border-color: var(--blue); box-shadow: 0 20px 45px rgba(0,0,0,.45); }
.blog-tile-img { width: 100%; aspect-ratio: 16/9; overflow: hidden; background: var(--glass-strong); flex-shrink: 0; }
.blog-tile-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-tile-img-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; opacity: .4; }
.blog-tile-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.blog-tile-body h2 { margin: 0 0 8px; font-size: 1.08rem; line-height: 1.35; }
.blog-tile-body p {
  margin: 0; color: var(--muted); font-size: .87rem; line-height: 1.5; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-tile-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; font-size: .76rem; color: var(--muted); }
.blog-tile-tag { background: rgba(47,176,240,.14); color: var(--blue); border-radius: 6px; padding: 3px 8px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; font-size: .68rem; }

/* ---------- "More From the Blog" slider — reuses .blog-tile, sized to fill the container at exactly 4 cards wide ---------- */
.blog-slider-section { padding: 10px 0 50px; }
.blog-slider-section h2 { margin: 0 0 18px; font-size: 1.5rem; }
.blog-slider-viewport { overflow: hidden; }
.blog-slider-track.blog-slider-grid { display: flex; flex-wrap: nowrap; transition: transform .6s cubic-bezier(.2,.9,.25,1); }
.blog-slider-card { flex-shrink: 0; }
.blog-slider-grid .blog-tile-body h3 { margin: 0 0 8px; font-size: 1.08rem; line-height: 1.35; }

/* ---------- Blog single article ---------- */
.blog-article { padding: 20px 0 50px; }
.blog-article-head { margin: 0 0 24px; text-align: left; }
.blog-article-head h1 { margin: 10px 0 14px; font-size: 2rem; line-height: 1.25; }
.blog-article-meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .88rem; }
.blog-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.blog-tags-footer { margin-top: 28px; align-items: center; }
.blog-tags-label { color: var(--muted); font-size: .85rem; margin-right: 4px; }
.blog-tag { background: var(--glass-strong); border: 1px solid var(--glass-border); border-radius: 999px; padding: 4px 12px; font-size: .76rem; color: var(--text); }
.blog-feature-img { margin: 0 0 30px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--glass-border); }
.blog-feature-img img { width: 100%; display: block; }
.blog-content { padding: 36px; font-size: 1.02rem; line-height: 1.75; }
.blog-content h2 { font-size: 1.4rem; margin: 32px 0 14px; }
.blog-content h3 { font-size: 1.15rem; margin: 26px 0 12px; }
.blog-content p { margin: 0 0 16px; color: var(--text); }
.blog-content img { max-width: 100%; border-radius: 12px; margin: 16px 0; }
.blog-content ul, .blog-content ol { margin: 0 0 16px; padding-left: 22px; color: var(--text); }
.blog-content li { margin-bottom: 6px; }
.blog-content blockquote { border-left: 3px solid var(--blue); margin: 20px 0; padding: 8px 20px; color: var(--muted); font-style: italic; }
.blog-content a { color: var(--blue); text-decoration: underline; }
.admin-preview-banner {
  margin: 16px 0; padding: 14px 18px; border-radius: 12px; font-size: .9rem;
  background: rgba(255, 194, 51, .12); border: 1px solid rgba(255, 194, 51, .35); color: var(--text);
}
.blog-faqs { margin-top: 26px; padding: 36px; }
.blog-faqs h2 { margin: 0 0 6px; font-size: 1.4rem; }

/* ---------- Tool page ---------- */
.breadcrumb { padding: 16px 0 0; font-size: .82rem; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); transition: color .2s ease; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb .bc-sep { opacity: .5; }
.breadcrumb .bc-current { color: var(--text); font-weight: 500; }

.tool-banner { padding: 56px 0 30px; text-align: center; }
.tool-banner .icon-big { font-size: 3.2rem; display: inline-flex; width: 90px; height: 90px; align-items: center; justify-content: center; border-radius: 22px; background: var(--glass); border: 1px solid var(--glass-border); margin-bottom: 18px; box-shadow: 0 0 40px var(--card-color, var(--red)); animation: float 4s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.tool-banner h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 0 0 12px; }
.tool-banner p { color: var(--muted); max-width: 620px; margin: 0 auto; }

.tool-app { padding: 10px 0 50px; }
.tool-panel { padding: 32px; }

.dropzone {
  border: 2px dashed var(--glass-border); border-radius: 16px; padding: 46px 20px; text-align: center;
  cursor: pointer; transition: border-color .25s ease, background .25s ease, transform .25s ease;
  background: rgba(255,255,255,.02);
}
.dropzone:hover, .dropzone.dragover { border-color: var(--card-color, var(--red)); background: rgba(255,68,68,.06); transform: scale(1.005); }
.dropzone .dz-icon { font-size: 2.4rem; margin-bottom: 10px; display: block; animation: bob 2.6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.dropzone p { margin: 4px 0; color: var(--muted); }
.dropzone input[type=file] { display: none; }

.field-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 22px; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 160px; }
.field label { font-size: .78rem; color: var(--muted); font-weight: 600; }
.field input, .field select {
  background: rgba(255,255,255,.04); border: 1px solid var(--glass-border); border-radius: 10px;
  padding: 10px 12px; color: var(--text); font-size: .9rem; transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,176,240,.18); }
.field input[type=range] { padding: 0; accent-color: var(--red); }

.field select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239aa7bd' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 34px; cursor: pointer;
}
.field select:hover { border-color: var(--glass-border); background-color: rgba(255,255,255,.07); }
/* The native <option> popup can't be backdrop-blurred, but giving it the same
   dark surface + accent colors as the rest of the UI keeps it from flashing
   white (and white-on-white text) when opened — color-scheme:dark above
   handles the rest of the browser chrome (scrollbars, checkboxes, etc). */
.field select option {
  background-color: #11162a; color: var(--text); padding: 8px;
}
.field select option:checked, .field select option:hover, .field select option:focus {
  background-color: var(--blue); color: #fff;
}
.field input[type=color] {
  padding: 4px; height: 42px; cursor: pointer; background: rgba(255,255,255,.04);
}
.field input[type=color]::-webkit-color-swatch { border-radius: 6px; border: 1px solid var(--glass-border); }
.field input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }

.file-list { margin-top: 18px; display: grid; gap: 8px; }
.file-chip { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 14px; border-radius: 10px; background: var(--glass-strong); font-size: .85rem; }
.file-chip .remove { cursor: pointer; color: var(--red-soft); font-weight: 700; }

.actions-row { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }

.result-box { margin-top: 26px; padding: 20px; border-radius: 14px; background: var(--glass-strong); border: 1px solid var(--glass-border); display: none; animation: fadeIn .4s ease; }
.result-box.show { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.result-box img { max-width: 100%; border-radius: 10px; margin-top: 12px; }

/* ---------- Developer & IT Utilities — interactive, no-upload tool UI ---------- */
.devtool-panel { padding: 32px; }
.devtool-row { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 18px; }
.devtool-col { flex: 1; min-width: 280px; display: flex; flex-direction: column; gap: 8px; }
.devtool-col-label { display: flex; align-items: center; justify-content: space-between; font-size: .78rem; color: var(--muted); font-weight: 600; }
.devtool-textarea, .devtool-output {
  width: 100%; min-height: 260px; resize: vertical; font-family: 'JetBrains Mono', Menlo, Consolas, monospace;
  font-size: .85rem; line-height: 1.55; background: rgba(255,255,255,.04); border: 1px solid var(--glass-border);
  border-radius: 12px; padding: 14px; color: var(--text); white-space: pre; overflow: auto;
}
.devtool-textarea:focus { outline: none; border-color: var(--card-color, var(--blue)); box-shadow: 0 0 0 3px rgba(47,176,240,.15); }
.devtool-output { margin: 0; }
.devtool-output.error { color: var(--red-soft); border-color: var(--red-soft); }
.devtool-toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; align-items: center; }
.devtool-btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 6px 0 18px; }
.devtool-copy-btn {
  font-size: .76rem; padding: 6px 12px; border-radius: 8px; background: rgba(255,255,255,.06);
  border: 1px solid var(--glass-border); color: var(--text); cursor: pointer; transition: background .2s ease;
  display: inline-flex; align-items: center; gap: 6px;
}
.devtool-copy-btn:hover { background: rgba(255,255,255,.12); }
.devtool-status { font-size: .82rem; margin-top: 4px; }
.devtool-status.ok { color: #10B981; }
.devtool-status.bad { color: var(--red-soft); }
.devtool-meta { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.devtool-checkbox-row { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 18px; }
.devtool-checkbox-row label { display: flex; align-items: center; gap: 7px; font-size: .85rem; color: var(--text); cursor: pointer; }
.devtool-result-value {
  font-family: 'JetBrains Mono', Menlo, Consolas, monospace; font-size: 1rem; word-break: break-all;
  background: rgba(255,255,255,.05); border: 1px solid var(--glass-border); border-radius: 10px; padding: 14px 16px;
}
.devtool-output.prose { white-space: normal; font-family: inherit; line-height: 1.6; }
.devtool-output.prose h1, .devtool-output.prose h2, .devtool-output.prose h3 { margin: .6em 0 .3em; line-height: 1.3; }
.devtool-output.prose p { margin: .5em 0; }
.devtool-output.prose ul, .devtool-output.prose ol { margin: .5em 0; padding-left: 1.4em; }
.devtool-output.prose code { background: rgba(255,255,255,.08); padding: 2px 5px; border-radius: 4px; font-family: 'JetBrains Mono', Menlo, Consolas, monospace; font-size: .85em; }
.devtool-output.prose pre { background: rgba(255,255,255,.06); padding: 10px 12px; border-radius: 8px; overflow: auto; }
.devtool-output.prose pre code { background: none; padding: 0; }
.devtool-output.prose blockquote { border-left: 3px solid var(--card-color, var(--blue)); margin: .5em 0; padding: 2px 0 2px 12px; color: var(--muted); }
.devtool-output.prose img { max-width: 100%; border-radius: 8px; }
.devtool-output.prose a { color: var(--blue); }
.devtool-output.prose table { border-collapse: collapse; width: 100%; margin: .5em 0; }
.devtool-output.prose th, .devtool-output.prose td { border: 1px solid var(--glass-border); padding: 6px 10px; text-align: left; }
.devtool-output mark { background: var(--card-color, var(--red)); color: #fff; border-radius: 3px; padding: 0 2px; }

@media (max-width: 768px) {
  .devtool-panel { padding: 18px; border-radius: 14px; }
  .devtool-textarea, .devtool-output { min-height: 180px; }
}
.result-box .swatch { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; background: rgba(0,0,0,.25); margin: 4px; font-family: monospace; font-size: .85rem; }
.result-box .swatch .dot { width: 18px; height: 18px; border-radius: 6px; border: 1px solid rgba(255,255,255,.3); }
/* ---------- Progressive flux loader (upload/processing) ---------- */
.flux-loader { display: none; margin-top: 18px; }
.flux-loader.show { display: block; }
.flux-label-wrap { position: relative; height: 30px; margin-bottom: 10px; overflow: hidden; }
.flux-label {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: .92rem; font-weight: 600; color: var(--text);
  opacity: 0; transform: translateY(10px) scale(.96); filter: blur(4px);
  transition: opacity .4s cubic-bezier(.2,.9,.25,1), transform .4s cubic-bezier(.2,.9,.25,1), filter .4s ease;
}
.flux-label.active { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
.flux-label.leaving { opacity: 0; transform: translateY(-10px) scale(1.04); filter: blur(4px); }

.progress-bar {
  height: 10px; border-radius: 8px; background: rgba(255,255,255,.08);
  overflow: hidden; position: relative; display: none;
  box-shadow: inset 0 2px 3px rgba(0,0,0,.35);
}
.progress-bar.show { display: block; }
.progress-bar .fill {
  position: relative; height: 100%; width: 0%; border-radius: 8px;
  background: linear-gradient(90deg, var(--red) 0%, var(--gold) 35%, var(--blue) 55%, var(--gold) 78%, var(--red) 100%);
  background-size: 220% 100%;
  box-shadow: 0 0 14px rgba(255,68,68,.45), 0 0 22px rgba(47,176,240,.35), inset 0 1px 0 rgba(255,255,255,.4);
  transition: width .35s cubic-bezier(.2,.9,.25,1);
  animation: fluxShift 2.4s linear infinite;
  overflow: hidden;
}
@keyframes fluxShift { 0% { background-position: 0% 0; } 100% { background-position: -220% 0; } }
.progress-bar .fill::after {
  content: ''; position: absolute; inset: 0; width: 50%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent);
  mix-blend-mode: screen; animation: fluxSheen 1.6s linear infinite;
}
@keyframes fluxSheen { 0% { transform: translateX(-120%); } 100% { transform: translateX(220%); } }

/* ---------- SEO content ---------- */
.content-block { padding: 10px 0 50px; }
.content-block .glass { padding: 36px; }
.content-block h2 { font-family: 'Space Grotesk', sans-serif; margin-top: 28px; }
.content-block h2:first-child { margin-top: 0; }
.content-block ol, .content-block ul { color: var(--muted); }
.content-block p { color: var(--muted); }
.faq-item { border-top: 1px solid var(--glass-border); padding: 16px 0; }
.faq-item summary {
  cursor: pointer; font-weight: 700; font-size: 1.08rem; color: var(--text);
  list-style: none; position: relative; padding-right: 28px; transition: color .2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 0; top: 0; font-size: 1.2rem; font-weight: 400;
  color: var(--blue); transition: transform .25s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--blue); }
.faq-item[open] summary { color: var(--blue); }
.faq-item p { color: var(--muted); margin: 10px 0 0; line-height: 1.6; }
.related-tools { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.related-tools a { padding: 8px 14px; border-radius: 10px; background: var(--glass); border: 1px solid var(--glass-border); font-size: .82rem; transition: all .2s ease; }
.related-tools a:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

/* ---------- Footer ---------- */
footer.site-footer { margin-top: 40px; border-top: 1px solid var(--glass-border); background: rgba(7, 10, 18, 0.8); padding: 50px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 36px; width: auto; margin-bottom: 12px; }
.footer-brand p { color: var(--muted); font-size: .88rem; max-width: 280px; }
.footer-col h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--muted); font-size: .87rem; padding: 5px 0; transition: color .2s ease, padding-left .2s ease; }
.footer-col a:hover { color: var(--red-soft); padding-left: 4px; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--glass-border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: .82rem; }
.footer-legal-links a { color: var(--muted); transition: color .2s ease; }
.footer-legal-links a:hover { color: var(--blue); }
.footer-legal-links .bc-sep { opacity: .5; margin: 0 2px; }
.social-row { display: flex; gap: 10px; }
.social-row a { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--glass); border: 1px solid var(--glass-border); transition: all .25s ease; }
.social-row a:hover { background: var(--red); transform: translateY(-3px) rotate(6deg); box-shadow: 0 8px 20px rgba(255,68,68,.4); }

/* ---------- Cursor-tracked glass spotlight (cards + buttons) ----------
   A soft radial highlight that follows the pointer, like light catching the
   surface of glass, plus a thin top inner-edge highlight for depth. Mouse
   position is written to --mx/--my (in px, relative to the element) by
   main.js; falls back to a centered glow if JS hasn't set it yet. */
.tool-card, .feature-box, .stat-item, .btn-primary, .btn-ghost {
  position: relative; isolation: isolate; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
}
.tool-card::before, .feature-box::before, .stat-item::before, .btn-primary::before, .btn-ghost::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.22), rgba(255,255,255,.06) 38%, transparent 65%);
  opacity: 0; transition: opacity .35s ease;
}
.tool-card:hover::before, .feature-box:hover::before, .stat-item:hover::before, .btn-primary:hover::before, .btn-ghost:hover::before {
  opacity: 1;
}
.btn-primary::before, .btn-ghost::before { background: radial-gradient(140px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.35), rgba(255,255,255,.08) 45%, transparent 70%); }

/* A faint secondary sheen drifting slowly across, purely decorative — subtle
   enough to read as "premium glass" rather than a flashy bar sweep. */
.tool-card::after, .feature-box::after, .stat-item::after {
  content: ''; position: absolute; top: -50%; left: -20%; width: 60%; height: 200%;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.06) 48%, rgba(255,255,255,.1) 50%, rgba(255,255,255,.06) 52%, transparent 70%);
  pointer-events: none; opacity: 0; transition: opacity .3s ease; z-index: 1;
}
.tool-card:hover::after, .feature-box:hover::after, .stat-item:hover::after {
  opacity: 1; animation: glassDrift 1.6s ease forwards;
}
@keyframes glassDrift { from { transform: translateX(-30%); } to { transform: translateX(140%); } }

/* misc */
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; animation: spin .7s linear infinite; display: none; }
.spinner.show { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Toast notifications ---------- */
.toast-stack {
  position: fixed; top: 18px; right: 18px; z-index: 999;
  display: flex; flex-direction: column; gap: 10px; max-width: 360px;
}
.toast {
  display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px;
  border-radius: 14px; background: rgba(13, 18, 32, 0.96); border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
  transform: translateX(120%); opacity: 0; transition: transform .35s cubic-bezier(.2,.9,.25,1), opacity .35s ease;
  border-left: 3px solid var(--red);
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast.toast-success { border-left-color: #10B981; }
.toast.toast-error { border-left-color: var(--red); }
.toast .toast-icon { font-size: 1.1rem; flex-shrink: 0; line-height: 1.3; }
.toast .toast-msg { font-size: .87rem; color: var(--text); line-height: 1.4; flex: 1; }
.toast .toast-close { cursor: pointer; color: var(--muted); font-size: .85rem; flex-shrink: 0; }
.toast .toast-close:hover { color: var(--text); }

@media (max-width: 600px) {
  .toast-stack { top: 12px; right: 12px; left: 12px; max-width: none; }
}

/* ---------- Compression result stats ---------- */
.size-stats { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 12px 0; padding: 14px 16px; border-radius: 12px; background: rgba(0,0,0,.2); }
.size-stats .stat { display: flex; flex-direction: column; }
.size-stats .stat .v { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.1rem; }
.size-stats .stat .l { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.size-stats .arrow { color: var(--muted); font-size: 1.2rem; }
.size-stats .pct { margin-left: auto; padding: 6px 14px; border-radius: 999px; background: linear-gradient(135deg, #10B981, #06b6a4); color: #fff; font-weight: 700; font-size: .9rem; }
.size-stats .pct.worse { background: linear-gradient(135deg, var(--red), #ff7a59); }

/* ====================================================================
   RESPONSIVE — tablet & mobile
   ==================================================================== */

/* ---- Tablet (≤ 980px) ---- */
@media (max-width: 980px) {
  .container { padding: 0 18px; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 56px 0 40px; }
  .section { padding: 40px 0; }
  .tool-panel { padding: 26px; }
  .content-block .glass { padding: 28px; }
}

/* ---- Mobile nav (≤ 860px) ---- */
@media (max-width: 860px) {
  .nav-cta, .nav-search { display: none; }
  .mobile-toggle, .mobile-search-toggle { display: flex; }
  nav.main-nav { display: none; }
}

/* ---- Tablet/small-desktop card grids (≤ 760px) ---- */
@media (max-width: 760px) {
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---- Mobile (≤ 600px) ---- */
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }

  .nav-bar { padding: 10px 0; gap: 12px; }
  .brand img { height: 32px; }
  .brand { margin-right: 0; }

  .hero { padding: 38px 0 30px; }
  .hero .badge-row { gap: 6px; }
  .pill { font-size: .7rem; padding: 5px 11px; }

  .section { padding: 30px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 6px; }

  .tool-card { padding: 18px; }
  .tool-card .icon { width: 46px; height: 46px; font-size: 1.6rem; }

  .tool-banner { padding: 38px 0 22px; }
  .tool-banner .icon-big { width: 70px; height: 70px; font-size: 2.4rem; border-radius: 18px; }

  .tool-panel { padding: 18px; border-radius: 14px; }
  .dropzone { padding: 30px 14px; }
  .dropzone .dz-icon { font-size: 2rem; }

  .field-row { gap: 12px; }
  .field { min-width: 100%; flex: 1 1 100%; }

  .actions-row { flex-direction: column; }
  .actions-row .btn { width: 100%; }

  .result-box { padding: 16px; }
  .result-box .swatch { display: flex; width: 100%; margin: 4px 0; }

  .content-block .glass { padding: 20px; }
  .content-block h2 { font-size: 1.25rem; }

  .related-tools a { font-size: .78rem; padding: 7px 12px; }

  footer.site-footer { padding: 36px 0 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-brand p { max-width: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }

  .btn { padding: 10px 16px; font-size: .85rem; }
}

/* ---- Very small phones (≤ 380px) ---- */
@media (max-width: 380px) {
  .hero h1 { font-size: 1.7rem; }
  .tool-card .icon { width: 40px; height: 40px; font-size: 1.4rem; }
  .pill { display: none; }
  .pill:first-child { display: inline-flex; }
}
