/*
Theme Name: TechSEO Scan
Theme URI: https://techseoscan.com
Author: TechSEO Scan
Author URI: https://techseoscan.com
Description: TechSEO Scan – Technical SEO Auditor. Bold, modern design with animated hero, preloader, scroll effects and 22 free SEO tools for Technical, Local, On-Page and Off-Page SEO.
Version: 2.2.0
Requires at least: 5.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: seo-toolkit-pro
Tags: seo, tools, custom-menu, responsive, one-column, animated
*/

/* =====================================================
   TechSEO Scan 2.1
   Brand colours are taken from the logo gradient:
   blue -> violet -> orange -> red
   ===================================================== */

:root {
  --blue: #2f5bea;
  --violet: #8b2fe0;
  --orange: #ff7a1a;
  --red: #f43f5e;
  --teal: #0fb5a6;
  --amber: #f5a524;

  --ink: #0a0e1c;
  --navy: #070b1f;
  --navy-2: #10183f;
  --text: #1a2038;
  --muted: #5a6388;
  --line: #e2e7f6;
  --bg: #f4f6fd;
  --card: #ffffff;
  --success: #0f9f6e;
  --danger: #e11d48;

  --grad: linear-gradient(115deg, #2f5bea 0%, #6b3df0 35%, #8b2fe0 60%, #f43f5e 100%);
  --grad-warm: linear-gradient(115deg, #ff8a1a, #f43f5e);
  --grad-soft: linear-gradient(135deg, rgba(47,91,234,.08), rgba(139,47,224,.06));
  --grad-glass: linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,255,255,.78));
  --radius: 20px;
  --radius-sm: 14px;
  --shadow-sm: 0 2px 12px rgba(20, 30, 90, .05);
  --shadow: 0 16px 48px rgba(30, 40, 120, .12);
  --shadow-lg: 0 28px 72px rgba(60, 40, 180, .22);
  --shadow-glow: 0 12px 40px rgba(139, 47, 224, .28);
  --ease: cubic-bezier(.22, .9, .28, 1);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Poppins', 'Inter', system-ui, sans-serif;

  /* legacy variable names used by older templates */
  --primary: var(--blue);
  --primary-light: var(--violet);
  --text-muted: var(--muted);
  --bg-card: var(--card);
  --border: var(--line);
  --accent: var(--orange);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(47,91,234,.07), transparent 50%),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(139,47,224,.06), transparent 45%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(255,122,26,.04), transparent 40%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--ink); letter-spacing: -.01em; }
a { color: var(--blue); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--violet); }
img { max-width: 100%; height: auto; }
::selection { background: var(--violet); color: #fff; }
:focus-visible { outline: 3px solid rgba(139, 47, 224, .55); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff;
  padding: .6rem 1rem; border-radius: 8px; z-index: 100000;
}
.skip-link:focus { left: 8px; color: #fff; }

/* ========== PRELOADER (starter effect) ========== */
.preloader {
  position: fixed; inset: 0; z-index: 99999;
  background: radial-gradient(circle at 50% 40%, #1a2160 0%, var(--navy) 70%);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  transition: opacity .6s var(--ease), visibility .6s, transform .8s var(--ease);
}
.preloader.done { opacity: 0; visibility: hidden; transform: scale(1.06); pointer-events: none; }
.preloader-card {
  background: #fff; border-radius: 26px; padding: 1.6rem 2.2rem; position: relative; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 30px 90px rgba(139, 47, 224, .55);
  animation: popIn .9s var(--ease) both;
}
.preloader-card img { width: min(380px, 70vw); display: block; }
.preloader-card::after { /* scanning beam */
  content: ''; position: absolute; left: 0; right: 0; height: 70px; top: -70px;
  background: linear-gradient(180deg, transparent, rgba(139, 47, 224, .28), transparent);
  border-bottom: 2px solid rgba(139, 47, 224, .7);
  animation: scanY 1.6s ease-in-out infinite;
}
.preloader-bar {
  width: min(380px, 70vw); height: 6px; background: rgba(255,255,255,.14);
  border-radius: 99px; margin-top: 1.8rem; overflow: hidden;
}
.preloader-bar span {
  display: block; height: 100%; width: 0; background: var(--grad); border-radius: 99px;
  animation: loadBar 1.5s var(--ease) forwards;
}
.preloader-text { margin-top: .9rem; color: #aab3e6; font-size: .85rem; letter-spacing: .28em; text-transform: uppercase; font-weight: 600; }
@keyframes popIn { from { opacity: 0; transform: translateY(24px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes scanY { 0% { top: -70px; } 100% { top: 100%; } }
@keyframes loadBar { to { width: 100%; } }

/* ========== SCROLL PROGRESS / CURSOR GLOW / BACK-TO-TOP ========== */
.scroll-progress { position: fixed; top: 0; left: 0; height: 4px; width: 0; z-index: 10001; background: var(--grad); }
.cursor-glow {
  position: fixed; width: 420px; height: 420px; left: 0; top: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(139, 47, 224, .13), transparent 65%);
  transform: translate(-50%, -50%); opacity: 0; transition: opacity .4s;
}
.back-top {
  position: fixed; right: 22px; bottom: 22px; width: 52px; height: 52px; border-radius: 50%; border: 0;
  background: var(--grad); color: #fff; font-size: 1.3rem; cursor: pointer; z-index: 900;
  box-shadow: 0 10px 30px rgba(139, 47, 224, .5); opacity: 0; transform: translateY(20px); visibility: hidden;
  transition: all .35s var(--ease);
}
.back-top.show { opacity: 1; transform: none; visibility: visible; }
.back-top:hover { transform: translateY(-5px) scale(1.08); }

/* ========== TOP BAR ========== */
.topbar { background: var(--navy); color: #cfd6ff; font-size: .85rem; text-align: center; padding: .5rem 1rem; position: relative; z-index: 1001; }
.topbar b { color: #fff; }
.topbar a { color: #ffb36b; font-weight: 700; margin-left: .4rem; }
.topbar a:hover { color: #fff; }

/* ========== HEADER ========== */
.header {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 1000; padding: .85rem 0;
  /* Use transform + opacity only where possible; keep layout stable to avoid sticky-scroll jitter */
  transition: padding .28s var(--ease), box-shadow .28s var(--ease), background-color .28s var(--ease);
  /* Promote to own layer for smoother sticky compositing */
  will-change: padding;
  transform: translateZ(0);
}
.header.scrolled {
  padding: .55rem 0;
  box-shadow: 0 10px 40px rgba(30, 40, 120, .12);
}
.header-inner {
  max-width: 1320px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
  /* Keep a consistent min height so sticky box doesn't collapse abruptly */
  min-height: 72px;
}

.logo { display: flex; align-items: center; flex-shrink: 0; }
/* Shrink with transform (no layout reflow) instead of height change — eliminates header shake */
.logo-img {
  height: 82px; width: auto; max-width: 300px; display: block; object-fit: contain;
  transition: transform .28s var(--ease);
  transform-origin: left center;
}
.header.scrolled .logo-img {
  transform: scale(0.78); /* ~64px visual size, no height reflow */
}
.logo:hover .logo-img { transform: scale(1.04) rotate(-.6deg); }
.header.scrolled .logo:hover .logo-img { transform: scale(0.82) rotate(-.6deg); }

.nav { display: flex; align-items: center; gap: .15rem; }
.nav a {
  position: relative; color: var(--text); padding: .6rem 1rem; border-radius: 10px;
  font-family: var(--font-head); font-size: .95rem; font-weight: 600;
}
.nav a::after {
  content: ''; position: absolute; left: 1rem; right: 1rem; bottom: .3rem; height: 3px; border-radius: 3px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a:hover, .nav a.active { color: var(--violet); background: rgba(139, 47, 224, .07); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

.search-box { position: relative; flex: 1; max-width: 300px; }
.search-box input {
  width: 100%; background: #fff; border: 2px solid var(--line); border-radius: 999px;
  padding: .65rem 1rem .65rem 2.7rem; color: var(--ink); font-size: .92rem; outline: none; transition: all .3s var(--ease);
}
.search-box input::placeholder { color: #8a93b8; }
.search-box input:focus { border-color: var(--violet); box-shadow: 0 0 0 5px rgba(139, 47, 224, .13); }
.search-box svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--violet); pointer-events: none; }

.search-dropdown {
  position: absolute; top: 115%; left: 0; right: 0; min-width: 300px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; max-height: 340px; overflow-y: auto; display: none; z-index: 1001; box-shadow: var(--shadow);
}
.search-dropdown a { display: block; padding: .75rem 1rem; color: var(--ink); border-bottom: 1px solid var(--line); }
.search-dropdown a:last-child { border-bottom: 0; }
.search-dropdown a:hover,
.search-dropdown a.active { background: linear-gradient(90deg, rgba(47,91,234,.08), rgba(139,47,224,.08)); padding-left: 1.3rem; }
.search-dropdown small { color: var(--muted); }
.search-empty { padding: 1rem; color: var(--muted); }

.header-cta { display: inline-flex; padding: .65rem 1.3rem; font-size: .92rem; white-space: nowrap; }
.mobile-toggle { display: none; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font-size: 1.4rem; cursor: pointer; padding: .35rem .7rem; }

/* ========== BUTTONS ========== */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.8rem; border-radius: 14px; font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  border: 0; cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-position .5s; text-decoration: none; isolation: isolate;
}
.btn-primary { background: var(--grad); background-size: 160% 100%; color: #fff; box-shadow: 0 10px 28px rgba(110, 50, 220, .38); }
.btn-primary:hover { transform: translateY(-3px); background-position: 100% 0; box-shadow: 0 18px 40px rgba(110, 50, 220, .5); color: #fff; }
.btn-primary::before { /* shine sweep */
  content: ''; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); transition: left .7s var(--ease);
}
.btn-primary:hover::before { left: 130%; }
.btn-primary:active { transform: translateY(-1px) scale(.98); }
.btn-primary:disabled { opacity: .7; cursor: wait; }
.btn-secondary { background: rgba(255,255,255,.1); color: #fff; border: 2px solid rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn-secondary:hover { background: #fff; color: var(--violet); transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,.25); }
.btn-lg { padding: 1rem 2.2rem; font-size: 1.05rem; }
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ========== HERO ========== */
.hero {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  background: radial-gradient(120% 90% at 50% 0%, #1b2370 0%, var(--navy) 62%);
  padding: 6.5rem 1.5rem 7rem;
}
.hero::before { /* grid */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; animation: floaty 12s ease-in-out infinite; }
.orb.o1 { width: 440px; height: 440px; background: var(--blue); left: -120px; top: -80px; }
.orb.o2 { width: 400px; height: 400px; background: var(--violet); right: -100px; top: 20%; animation-delay: -4s; }
.orb.o3 { width: 340px; height: 340px; background: var(--orange); left: 35%; bottom: -200px; opacity: .35; animation-delay: -8s; }
@keyframes floaty { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,-30px) scale(1.1); } }

.hero-content { position: relative; max-width: 960px; margin: 0 auto; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .6rem; padding: .45rem 1.1rem; border-radius: 99px; font-size: .88rem; font-weight: 600;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(8px); margin-bottom: 1.6rem; color: #e6e9ff;
}
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: #2bd98b; box-shadow: 0 0 0 0 rgba(43, 217, 139, .7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(43,217,139,0); } 100% { box-shadow: 0 0 0 0 rgba(43,217,139,0); } }

.hero h1 { color: #fff; font-size: clamp(2.5rem, 6.4vw, 4.8rem); font-weight: 800; line-height: 1.08; margin-bottom: 1.4rem; letter-spacing: -.03em; }
.hero h1 .grad {
  background: linear-gradient(100deg, #6d8dff, #c06bff 45%, #ff8a4c 90%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.typed::after { content: '|'; margin-left: 3px; color: #ff8a4c; -webkit-text-fill-color: #ff8a4c; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.3rem); color: #c3caf5; max-width: 720px; margin: 0 auto 2.2rem; }
.hero .btn-group { justify-content: center; }

.hero-search {
  max-width: 640px; margin: 2.4rem auto 0; position: relative; text-align: left;
}
.hero-search input {
  width: 100%; padding: 1.15rem 9.5rem 1.15rem 3.4rem; border-radius: 18px; border: 2px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.96); color: var(--ink); font-size: 1.05rem; outline: none; box-shadow: 0 20px 60px rgba(0,0,0,.35); transition: all .3s var(--ease);
}
.hero-search input:focus { border-color: #b57bff; box-shadow: 0 0 0 6px rgba(181, 123, 255, .3), 0 20px 60px rgba(0,0,0,.35); }
.hero-search .hs-icon { position: absolute; left: 1.2rem; top: 1.1rem; font-size: 1.3rem; }
.hero-search button { position: absolute; right: .5rem; top: .5rem; bottom: .5rem; padding: 0 1.4rem; border-radius: 13px; }
.hero-search .search-dropdown { top: 108%; }
.hero-tags { margin-top: 1rem; font-size: .9rem; color: #aab3e6; }
.hero-tags a { display: inline-block; margin: .25rem .2rem; padding: .25rem .8rem; border-radius: 99px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: #e6e9ff; }
.hero-tags a:hover { background: #fff; color: var(--violet); transform: translateY(-2px); }

.float-card {
  position: absolute; z-index: 1; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(14px);
  border-radius: 18px; padding: 1rem 1.3rem; color: #fff; text-align: left; font-size: .85rem; box-shadow: 0 20px 50px rgba(0,0,0,.3);
  animation: floaty 9s ease-in-out infinite;
}
.float-card b { display: block; font-family: var(--font-head); font-size: 1.7rem; line-height: 1.1; }
.float-card.f1 { left: 4%; top: 22%; }
.float-card.f2 { right: 4%; top: 30%; animation-delay: -3s; }
.float-card.f3 { left: 9%; bottom: 12%; animation-delay: -6s; }
.float-card.f4 { right: 8%; bottom: 14%; animation-delay: -2s; }
.bar-mini { display: flex; gap: 4px; align-items: flex-end; height: 34px; margin-top: .4rem; }
.bar-mini i { width: 8px; border-radius: 3px; background: linear-gradient(#ff8a4c, #f43f5e); animation: barUp 2s ease-in-out infinite alternate; }
.bar-mini i:nth-child(1){height:40%} .bar-mini i:nth-child(2){height:65%;animation-delay:.2s} .bar-mini i:nth-child(3){height:50%;animation-delay:.4s} .bar-mini i:nth-child(4){height:90%;animation-delay:.6s} .bar-mini i:nth-child(5){height:75%;animation-delay:.8s}
@keyframes barUp { to { transform: scaleY(.55); } }

.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; z-index: 3; }
.hero-wave svg { width: 100%; height: 70px; display: block; }

/* ========== MARQUEE ========== */
.marquee { background: var(--bg); padding: 1.4rem 0 .6rem; overflow: hidden; }
.marquee-track { display: flex; gap: 1rem; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track a { flex-shrink: 0; padding: .55rem 1.2rem; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-sm); }
.marquee-track a:hover { background: var(--grad); color: #fff; border-color: transparent; transform: translateY(-3px); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ========== STATS ========== */
.stats { max-width: 1100px; margin: 2.2rem auto 0; padding: 0 1.5rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1rem; text-align: center; box-shadow: var(--shadow-sm); transition: all .35s var(--ease); }
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.stat b { display: block; font-family: var(--font-head); font-size: 2.6rem; font-weight: 800; line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat span { color: var(--muted); font-weight: 600; font-size: .92rem; }

/* ========== SECTIONS ========== */
.section { padding: 5rem 1.5rem 3rem; max-width: 1320px; margin: 0 auto; width: 100%; position: relative; z-index: 1; }
.section-title { text-align: center; margin: 0 auto 3rem; max-width: 720px; }
.eyebrow { display: inline-block; padding: .3rem 1rem; border-radius: 99px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--violet); background: rgba(139,47,224,.1); margin-bottom: 1rem; }
.section-title h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; margin-bottom: .8rem; }
.section-title h2 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.section-title p { color: var(--muted); font-size: 1.1rem; }

.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.6rem; }
.category-card {
  --c1: var(--blue); --c2: var(--violet);
  position: relative; overflow: hidden; display: block; color: var(--text); background: #fff; border: 1px solid var(--line);
  border-radius: 22px; padding: 2rem 1.8rem; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s; z-index: 0;
}
.category-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(150deg, var(--c1), var(--c2)); opacity: 0; transition: opacity .45s var(--ease); z-index: -1; }
.category-card::after { content: attr(data-num); position: absolute; right: 1.2rem; top: .4rem; font-family: var(--font-head); font-weight: 800; font-size: 5rem; color: var(--c1); opacity: .09; transition: all .45s var(--ease); }
.category-card:hover { transform: translateY(-12px) rotate(-.4deg); box-shadow: var(--shadow-lg); border-color: transparent; color: #fff; }
.category-card:hover::before { opacity: 1; }
.category-card:hover::after { color: #fff; opacity: .2; transform: scale(1.2); }
.category-card:hover h3, .category-card:hover p, .category-card:hover .tools-count { color: #fff; }
.category-card .icon { width: 64px; height: 64px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 1.9rem; margin-bottom: 1.3rem; background: linear-gradient(150deg, var(--c1), var(--c2)); box-shadow: 0 12px 26px rgba(0,0,0,.18); transition: transform .45s var(--ease); }
.category-card:hover .icon { transform: rotate(-8deg) scale(1.12); background: rgba(255,255,255,.25); }
.category-card.tech { --c1: #2f5bea; --c2: #6a3de8; }
.category-card.local { --c1: #0fb5a6; --c2: #1d7fe0; }
.category-card.onpage { --c1: #ff7a1a; --c2: #f5a524; }
.category-card.offpage { --c1: #f43f5e; --c2: #8b2fe0; }
.category-card h3 { font-size: 1.4rem; margin-bottom: .6rem; transition: color .3s; }
.category-card p { color: var(--muted); font-size: .98rem; margin-bottom: 1.4rem; transition: color .3s; }
.category-card .tools-count { font-weight: 700; font-family: var(--font-head); color: var(--c1); transition: all .3s; display: inline-flex; gap: .4rem; }
.category-card:hover .tools-count { gap: .9rem; }

.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.4rem; counter-reset: tool; }
.tool-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem 1.6rem 1.5rem;
  display: flex; flex-direction: column; overflow: hidden; counter-increment: tool; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.tool-card::before { content: counter(tool, decimal-leading-zero); display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 14px; margin-bottom: 1rem; color: #fff; font-family: var(--font-head); font-weight: 700; background: var(--grad); box-shadow: 0 8px 20px rgba(110, 50, 220, .35); transition: transform .4s var(--ease); }
.tool-card::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.tool-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: rgba(139, 47, 224, .35); }
.tool-card:hover::after { transform: scaleX(1); }
.tool-card:hover::before { transform: rotate(-10deg) scale(1.1); }
.tool-card h3 { font-size: 1.15rem; margin-bottom: .45rem; }
.tool-card p { color: var(--muted); font-size: .94rem; flex: 1; margin-bottom: 1.2rem; }
.tool-card .btn { align-self: flex-start; padding: .6rem 1.25rem; font-size: .9rem; border-radius: 11px; }
.tool-card .btn::after { content: '→'; transition: transform .3s var(--ease); }
.tool-card .btn:hover::after { transform: translateX(5px); }
/* inside tool pages the card is the form wrapper */
.tool-page .tool-card::before, .tool-page .tool-card::after { display: none; }

/* ========== HOW IT WORKS ========== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; position: relative; }
.steps::before { content: ''; position: absolute; top: 46px; left: 16%; right: 16%; border-top: 3px dashed #c9cff0; z-index: 0; }
.step { position: relative; z-index: 1; text-align: center; padding: 0 1rem; }
.step-num { width: 92px; height: 92px; margin: 0 auto 1.3rem; border-radius: 50%; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-family: var(--font-head); font-weight: 800; box-shadow: 0 0 0 10px var(--bg), 0 16px 36px rgba(110, 50, 220, .4); transition: transform .4s var(--ease); }
.step:hover .step-num { transform: scale(1.12) rotate(8deg); }
.step h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.step p { color: var(--muted); }

/* ========== FEATURES (dark band) ========== */
.band { background: radial-gradient(120% 120% at 0% 0%, #1b2370, var(--navy) 60%); color: #fff; position: relative; overflow: hidden; margin-top: 3rem; padding: 1px 0 5rem; z-index: 1; }
.band .orb { opacity: .3; }
.band .section-title h2 { color: #fff; }
.band .section-title p { color: #b5bdee; }
.band .eyebrow { background: rgba(255,255,255,.12); color: #d6b8ff; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; position: relative; z-index: 2; }
.feature { padding: 2rem 1.6rem; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(10px); transition: all .4s var(--ease); }
.feature:hover { transform: translateY(-8px); background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.feature .icon { width: 58px; height: 58px; border-radius: 16px; font-size: 1.7rem; display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem; background: var(--grad); }
.feature h4 { color: #fff; font-size: 1.2rem; margin-bottom: .5rem; }
.feature p { color: #b5bdee; font-size: .96rem; }

/* ========== FAQ ========== */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; margin-bottom: .9rem; overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.faq details:hover { box-shadow: var(--shadow-sm); border-color: rgba(139,47,224,.35); }
.faq details[open] { border-color: var(--violet); box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 1.2rem 1.5rem; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(139,47,224,.1); color: var(--violet); font-size: 1.4rem; transition: all .35s var(--ease); }
.faq details[open] summary::after { content: '–'; background: var(--grad); color: #fff; transform: rotate(180deg); }
.faq details p { padding: 0 1.5rem 1.3rem; color: var(--muted); animation: fadeIn .4s var(--ease); }

/* ========== CTA ========== */
.cta { max-width: 1320px; margin: 3rem auto 5rem; padding: 0 1.5rem; position: relative; z-index: 1; }
.cta-inner { position: relative; overflow: hidden; border-radius: 30px; padding: 4.2rem 2rem; text-align: center; color: #fff; background: var(--grad); background-size: 200% 200%; animation: gradMove 8s ease infinite; box-shadow: var(--shadow-lg); }
.cta-inner::before, .cta-inner::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255,255,255,.14); }
.cta-inner::before { width: 340px; height: 340px; left: -90px; top: -120px; }
.cta-inner::after { width: 260px; height: 260px; right: -60px; bottom: -110px; }
.cta h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; margin-bottom: .8rem; position: relative; }
.cta p { color: #f0eaff; font-size: 1.15rem; margin-bottom: 2rem; position: relative; }
.cta .btn { position: relative; background: #fff; color: var(--violet); box-shadow: 0 16px 40px rgba(0,0,0,.25); }
.cta .btn:hover { transform: translateY(-4px) scale(1.04); color: var(--red); }
@keyframes gradMove { 50% { background-position: 100% 50%; } }

/* ========== INNER PAGES ========== */
.breadcrumb { background: #fff; border-bottom: 1px solid var(--line); padding: .9rem max(1.5rem, calc((100% - 1320px) / 2 + 1.5rem)); font-size: .92rem; color: var(--muted); max-width: none; margin: 0; }
.breadcrumb a { color: var(--blue); font-weight: 600; }
.breadcrumb span { margin: 0 .5rem; color: #b3bbdf; }

/* gradient banner for category pages */
.section:not(.home-block) > .section-title:first-child { position: relative; max-width: 960px; padding: 3rem 2rem; border-radius: 26px; color: #fff; overflow: hidden; background: radial-gradient(120% 140% at 0% 0%, #2a3aa8, var(--navy) 65%); box-shadow: var(--shadow-lg); }
.section:not(.home-block) > .section-title:first-child::after { content: ''; position: absolute; width: 300px; height: 300px; right: -80px; top: -120px; border-radius: 50%; background: var(--grad); filter: blur(60px); opacity: .6; }
.section:not(.home-block) > .section-title:first-child h2, .section:not(.home-block) > .section-title:first-child p { position: relative; z-index: 1; }
.section:not(.home-block) > .section-title:first-child h2 { color: #fff; }
.section:not(.home-block) > .section-title:first-child p { color: #c3caf5; }

.tool-page { max-width: 960px; margin: 0 auto; padding: 3rem 1.5rem 5rem; width: 100%; position: relative; z-index: 1; }
.tool-header { margin-bottom: 2rem; padding-left: 1.2rem; border-left: 6px solid; border-image: var(--grad) 1; }
.tool-header h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; margin-bottom: .5rem; }
.tool-header p { color: var(--muted); font-size: 1.1rem; }
.tool-card-main { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 2.2rem; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.tool-card-main::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--grad); }

.form-group { margin-bottom: 1.3rem; }
.form-group label { display: block; font-weight: 700; margin-bottom: .45rem; font-size: .95rem; color: var(--ink); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; background: #f8f9ff; border: 2px solid var(--line); border-radius: 12px; padding: .8rem 1rem; color: var(--ink);
  font-size: 1rem; font-family: inherit; outline: none; transition: all .3s var(--ease);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #98a0c4; }
.form-group input:hover, .form-group textarea:hover, .form-group select:hover { border-color: #c5ccf0; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--violet); background: #fff; box-shadow: 0 0 0 5px rgba(139, 47, 224, .13); }
.form-group textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.results-box { margin-top: 1.8rem; padding: 1.5rem; background: linear-gradient(135deg, rgba(18,166,114,.08), rgba(47,91,234,.06)); border: 1px solid rgba(18,166,114,.35); border-radius: 16px; display: none; }
.results-box.show { display: block; animation: fadeIn .5s var(--ease); }
.results-box h3 { color: var(--success); margin-bottom: .8rem; }
.results-box pre, .results-box .result-content { background: var(--navy); color: #e6e9ff; padding: 1.1rem; border-radius: 12px; font-size: .9rem; overflow-x: auto; white-space: pre-wrap; word-break: break-word; }
.results-box .result-content:not(pre) { background: #fff; color: var(--text); border: 1px solid var(--line); }
.results-box table { color: var(--text); }
.results-box td, .results-box th { border-color: var(--line) !important; }

/* Guidance / Suggestions box shown with every tool result */
.guidance-box {
  margin-top: 1.25rem;
  padding: 1.15rem 1.25rem;
  background: linear-gradient(135deg, rgba(139,47,224,.07), rgba(47,91,234,.06));
  border: 1px solid rgba(139,47,224,.28);
  border-radius: 14px;
}
.guidance-box h4 {
  margin: 0 0 .65rem;
  font-size: 1rem;
  color: var(--violet);
  display: flex;
  align-items: center;
  gap: .45rem;
}
.guidance-box ul {
  margin: 0;
  padding-left: 1.15rem;
  list-style: none;
}
.guidance-box ul li {
  position: relative;
  padding: .35rem 0 .35rem 0;
  color: var(--ink);
  font-size: .92rem;
  line-height: 1.45;
}
.guidance-box ul li::before {
  content: "→";
  position: absolute;
  left: -1.15rem;
  color: var(--violet);
  font-weight: 700;
}
.guidance-box .sev-good { color: #0d9488; }
.guidance-box .sev-warn { color: #d97706; }
.guidance-box .sev-bad { color: #dc2626; }
.guidance-box .tip-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .12rem .45rem;
  border-radius: 6px;
  margin-right: .4rem;
  vertical-align: middle;
}
.guidance-box .tip-label.fix { background: rgba(13,148,136,.15); color: #0d9488; }
.guidance-box .tip-label.warning { background: rgba(217,119,6,.15); color: #d97706; }
.guidance-box .tip-label.critical { background: rgba(220,38,38,.12); color: #dc2626; }
.guidance-box .tip-label.info { background: rgba(47,91,234,.12); color: #2f5bea; }

.loading { display: none; text-align: center; padding: 2rem; color: var(--muted); }
.loading.show { display: block; }
.spinner { width: 46px; height: 46px; border: 4px solid var(--line); border-top-color: var(--violet); border-right-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 1rem; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.score-meter { display: flex; align-items: center; gap: 1rem; margin: 1rem 0; }
.score-circle { width: 74px; height: 74px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.3rem; border: 5px solid; }
.score-circle.good { border-color: var(--success); color: var(--success); }
.score-circle.avg { border-color: var(--amber); color: var(--amber); }
.score-circle.poor { border-color: var(--danger); color: var(--danger); }

.page-content { max-width: 860px; margin: 0 auto; padding: 3rem 1.5rem 5rem; position: relative; z-index: 1; }
.page-content h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; margin-bottom: 1.2rem; }
.page-content p { color: var(--muted); margin-bottom: 1rem; font-size: 1.08rem; }
.page-content ul { color: var(--muted) !important; }
.page-content strong { color: var(--ink); }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 2.2rem; margin-top: 2rem; box-shadow: var(--shadow); }

/* ========== FOOTER ========== */
.footer { position: relative; margin-top: auto; color: #b5bdee; background: radial-gradient(100% 120% at 100% 0%, #1b2370, var(--navy) 60%); padding: 0 1.5rem 1.5rem; overflow: hidden; z-index: 1; }
.footer::before { content: ''; display: block; height: 5px; margin: 0 -1.5rem 4rem; background: var(--grad); background-size: 200% 100%; animation: gradMove 6s linear infinite; }
.footer-inner { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 2.1fr 1fr 1fr 1.2fr; gap: 2.8rem; }
.footer-logo { display: inline-block; background: #fff; padding: .8rem 1.3rem; border-radius: 18px; box-shadow: 0 14px 40px rgba(0,0,0,.35); transition: transform .35s var(--ease); }
.footer-logo:hover { transform: translateY(-4px) rotate(-1deg); }
.footer-logo img { height: 56px; width: auto; display: block; }
.footer-brand .tagline { margin-top: 1.2rem; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: #fff; }
.footer-brand p { color: #b5bdee; font-size: .98rem; max-width: 340px; margin-top: .5rem; }
.footer-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.footer-badges span { font-size: .78rem; font-weight: 600; padding: .3rem .8rem; border-radius: 99px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #e6e9ff; }
.footer h4 { color: #fff; font-size: 1.1rem; margin-bottom: 1.2rem; position: relative; padding-bottom: .7rem; }
.footer h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 38px; height: 3px; border-radius: 3px; background: var(--grad-warm); transition: width .35s var(--ease); }
.footer div:hover > h4::after { width: 70px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: .65rem; }
.footer ul a { color: #b5bdee; font-size: .95rem; display: inline-block; position: relative; transition: all .3s var(--ease); }
.footer ul a::before { content: '›'; position: absolute; left: -14px; opacity: 0; color: var(--orange); transition: all .3s var(--ease); }
.footer ul a:hover { color: #fff; transform: translateX(14px); }
.footer ul a:hover::before { opacity: 1; left: -14px; }
.footer-bottom { max-width: 1320px; margin: 3rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: .92rem; color: #98a2d8; }
.footer-bottom b { color: #fff; }

/* ========== SCROLL REVEAL ========== */
.js .reveal { opacity: 0; transform: translateY(40px) scale(.98); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-left { opacity: 0; transform: translateX(-50px); transition: all .8s var(--ease); }
.js .reveal-left.in { opacity: 1; transform: none; }

/* hero entrance */
.hero-anim { opacity: 0; transform: translateY(30px); animation: heroIn .9s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* WP admin bar */
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }

/* ========== RESPONSIVE ========== */
@media (max-width: 1180px) { .float-card { display: none; } .header-cta { display: none; } }
@media (max-width: 960px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 1rem; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(30,40,120,.15); gap: .25rem; }
  .nav.open { display: flex; animation: fadeIn .3s var(--ease); }
  .mobile-toggle { display: block; }
  .search-box { max-width: none; order: 3; width: 100%; flex-basis: 100%; }
  .header-inner { flex-wrap: wrap; min-height: 60px; }
  .logo-img { height: 64px; }
  .header.scrolled .logo-img { transform: scale(0.9); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 2.2rem; }
  .steps::before { display: none; }
}
@media (max-width: 600px) {
  .hero { padding: 4rem 1rem 5.5rem; }
  .hero-search input { padding-right: 1rem; padding-bottom: 4.2rem; }
  .hero-search button { left: .5rem; top: auto; height: 46px; }
  .section { padding: 3.5rem 1rem 2rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .tool-card-main, .contact-form { padding: 1.4rem; }
  .btn-group .btn { width: 100%; }
  .topbar { font-size: .78rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal, .js .reveal-left, .hero-anim { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mb-2 { margin-bottom: 1rem; }
.text-muted { color: var(--muted); } .text-center { text-align: center; }
.site-content, #content, .entry-content { max-width: none; padding: 0; margin: 0; }

/* ========== TOOL PAGE ENHANCEMENTS ========== */
.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1rem;
  margin-bottom: .5rem;
}
.tool-actions .btn {
  font-size: .875rem;
  padding: .55rem 1.1rem;
}
.btn-outline {
  background: transparent;
  color: var(--violet);
  border: 2px solid var(--violet);
}
.btn-outline:hover {
  background: var(--violet);
  color: #fff;
}
.btn-success {
  background: var(--success);
  color: #fff;
  border: 2px solid var(--success);
}
.btn-success:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}
.form-hint {
  display: block;
  font-size: .82rem;
  color: var(--muted);
  margin-top: .35rem;
  font-weight: 400;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9aa3c2;
}

/* Tool info / blog section */
.tool-info {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.tool-info h2 {
  font-size: 1.55rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--ink);
}
.tool-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1.6rem 0 .6rem;
  color: var(--ink);
}
.tool-info p {
  color: var(--text);
  line-height: 1.7;
  margin-bottom: .9rem;
}
.tool-info ul, .tool-info ol {
  margin: .6rem 0 1.2rem 1.3rem;
  color: var(--text);
  line-height: 1.75;
}
.tool-info li {
  margin-bottom: .4rem;
}
.tool-info .info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.tool-info .info-card {
  background: #f8f9ff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
}
.tool-info .info-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .45rem;
  color: var(--violet);
}
.tool-info .info-card p {
  font-size: .92rem;
  margin: 0;
  color: var(--muted);
}

/* FAQ */
.tool-faq {
  margin-top: 2.5rem;
}
.tool-faq h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1.1rem;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: .7rem;
  overflow: hidden;
  background: #fff;
}
.faq-item summary {
  padding: 1rem 1.2rem;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--violet);
  font-weight: 700;
  transition: transform .2s;
}
.faq-item[open] summary::after {
  content: '−';
}
.faq-item .faq-body {
  padding: 0 1.2rem 1.1rem;
  color: var(--text);
  line-height: 1.65;
  font-size: .95rem;
}

/* Related tools */
.related-tools {
  margin-top: 2.8rem;
}
.related-tools h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.related-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.related-card:hover {
  border-color: var(--violet);
  box-shadow: 0 8px 24px rgba(47,91,234,.12);
  transform: translateY(-3px);
}
.related-card strong {
  display: block;
  color: var(--ink);
  font-size: .98rem;
  margin-bottom: .25rem;
}
.related-card span {
  font-size: .85rem;
  color: var(--muted);
}

/* Result action bar inside results */
.results-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(18,166,114,.35);
}
.results-actions .btn {
  font-size: .82rem;
  padding: .45rem .95rem;
}
.copy-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy);
  color: #fff;
  padding: .7rem 1.4rem;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 9999;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 600px) {
  .tool-actions { flex-direction: column; }
  .tool-actions .btn { width: 100%; }
  .results-actions { flex-direction: column; }
  .results-actions .btn { width: 100%; }
}

/* ========== DOWNLOAD DROPDOWN ========== */
.dl-dropdown {
  position: relative;
  display: inline-block;
}
.dl-dropdown > .btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.dl-menu {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  min-width: 160px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.14);
  z-index: 50;
  overflow: hidden;
  padding: .35rem 0;
}
.dl-dropdown.open .dl-menu {
  display: block;
  animation: fadeIn .2s var(--ease);
}
.dl-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: .55rem 1rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
}
.dl-menu button:hover {
  background: #f0f3ff;
  color: var(--violet);
}

/* ========== UPLOAD ZONE ========== */
.upload-zone {
  border: 2px dashed var(--line);
  border-radius: 14px;
  background: #f8f9ff;
  transition: border-color .2s, background .2s;
}
.upload-zone.dragover {
  border-color: var(--violet);
  background: rgba(47,91,234,.06);
}
.upload-zone-inner {
  padding: 1.4rem 1rem;
  text-align: center;
  cursor: pointer;
  color: var(--muted);
}
.upload-zone-inner strong {
  display: block;
  color: var(--ink);
  margin: .35rem 0 .15rem;
}
.upload-icon {
  font-size: 1.6rem;
  display: block;
  margin-bottom: .2rem;
}
.upload-file-name {
  padding: 0 .9rem .7rem;
  font-size: .85rem;
  color: var(--success);
  font-weight: 600;
  display: none;
}
.upload-file-name.show { display: block; }

/* ========== ALL-IN-ONE PAGE ========== */
.aio-checks {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.4rem;
  margin: 1rem 0 1.4rem;
}
.aio-check {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  color: var(--ink);
}
.aio-check input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--violet);
}
.aio-score-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.aio-score-card {
  flex: 1 1 120px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  text-align: center;
}
.aio-score-card .num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--violet);
  line-height: 1.1;
}
.aio-score-card .lbl {
  font-size: .8rem;
  color: var(--muted);
  margin-top: .25rem;
  font-weight: 600;
}
.aio-score-card.good .num { color: var(--success); }
.aio-score-card.avg .num { color: #f59e0b; }
.aio-score-card.poor .num { color: #ef4444; }
.aio-section {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
}
.aio-section h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--ink);
}
.aio-section ul {
  margin: .3rem 0 0 1.1rem;
  line-height: 1.65;
}
.aio-section li { margin-bottom: .25rem; }

@media (max-width: 600px) {
  .dl-menu { left: auto; right: 0; }
  .aio-checks { flex-direction: column; gap: .55rem; }
}

/* =====================================================
   UI POLISH v2.1 — more attractive surfaces & depth
   ===================================================== */

/* Soft page glow under main content */
#main {
  position: relative;
  flex: 1;
}

/* ---------- Header glass upgrade ---------- */
.header {
  background: rgba(255, 255, 255, .88) !important;
  border-bottom: 1px solid rgba(226, 231, 246, .85);
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
}
.header.scrolled {
  background: rgba(255, 255, 255, .95) !important;
  box-shadow: 0 12px 40px rgba(30, 40, 120, .1), 0 1px 0 rgba(255,255,255,.9) inset;
}
.nav a {
  position: relative;
  padding: .45rem .85rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: .92rem;
  color: var(--text);
  transition: color .25s var(--ease), background .25s var(--ease);
}
.nav a:hover {
  color: var(--violet);
  background: rgba(139, 47, 224, .07);
}
.nav a.active {
  color: var(--violet);
  background: linear-gradient(135deg, rgba(47,91,234,.1), rgba(139,47,224,.1));
}
.nav a.active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  width: 18px;
  height: 3px;
  border-radius: 3px;
  background: var(--grad);
}

/* Search box polish */
.search-box input {
  background: #fff !important;
  border: 1.5px solid var(--line) !important;
  box-shadow: 0 2px 8px rgba(30,40,120,.04);
  transition: border-color .25s, box-shadow .25s, transform .2s !important;
}
.search-box input:focus {
  border-color: var(--violet) !important;
  box-shadow: 0 0 0 4px rgba(139, 47, 224, .12), 0 4px 16px rgba(139,47,224,.1) !important;
  transform: translateY(-1px);
}
.search-dropdown {
  border: none !important;
  box-shadow: 0 20px 50px rgba(30,40,120,.18), 0 0 0 1px rgba(226,231,246,.9) !important;
  border-radius: 16px !important;
  overflow: hidden;
  animation: dropIn .22s var(--ease);
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-8px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.search-dropdown a {
  transition: background .2s, padding-left .2s !important;
}
.search-dropdown a:hover,
.search-dropdown a.active {
  background: linear-gradient(90deg, rgba(47,91,234,.1), rgba(139,47,224,.08)) !important;
}

/* ---------- Buttons — richer glow & press ---------- */
.btn {
  letter-spacing: -.01em;
  box-shadow: 0 4px 14px rgba(47,91,234,.15);
}
.btn-primary {
  background: var(--grad) !important;
  background-size: 180% 100% !important;
  box-shadow: 0 10px 28px rgba(110, 50, 220, .35), 0 1px 0 rgba(255,255,255,.2) inset !important;
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 18px 40px rgba(110, 50, 220, .45), 0 1px 0 rgba(255,255,255,.25) inset !important;
}
.btn-primary:active {
  transform: translateY(-1px) scale(.99) !important;
}
.btn-outline {
  border-width: 2px !important;
  background: rgba(255,255,255,.7) !important;
  backdrop-filter: blur(6px);
  transition: all .25s var(--ease) !important;
}
.btn-outline:hover {
  background: var(--violet) !important;
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(139,47,224,.3);
  transform: translateY(-2px);
}
.btn-success {
  background: linear-gradient(135deg, #12a672, #0d9488) !important;
  border: none !important;
  box-shadow: 0 8px 22px rgba(18,166,114,.35) !important;
}
.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(18,166,114,.45) !important;
}

/* ---------- Tool page cards ---------- */
.tool-header h1 {
  font-size: clamp(1.85rem, 4vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -.025em;
  background: linear-gradient(115deg, var(--ink) 40%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: .6rem;
}
.tool-header p {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 640px;
  line-height: 1.6;
}

.tool-card-main {
  background: #fff;
  border: 1px solid rgba(226,231,246,.9);
  border-radius: 24px;
  padding: 2rem 2.1rem;
  box-shadow:
    0 4px 6px rgba(30,40,120,.03),
    0 20px 50px rgba(30,40,120,.08),
    0 0 0 1px rgba(255,255,255,.8) inset;
  position: relative;
  overflow: hidden;
}
.tool-card-main::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad);
  background-size: 200% 100%;
  animation: gradMove 6s ease infinite;
  border-radius: 24px 24px 0 0;
}

/* Forms */
.form-group {
  margin-bottom: 1.35rem;
}
.form-group label {
  display: block;
  font-weight: 650;
  font-size: .9rem;
  color: var(--ink);
  margin-bottom: .45rem;
  letter-spacing: -.01em;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .85rem 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  font-size: .95rem;
  font-family: var(--font);
  color: var(--ink);
  background: #fafbff;
  transition: border-color .25s, box-shadow .25s, background .25s;
  outline: none;
}
.form-group input:hover,
.form-group textarea:hover {
  border-color: #c8d0ef;
  background: #fff;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--violet);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(139, 47, 224, .12);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.55;
}

/* Upload zone */
.upload-zone {
  border: 2px dashed #c8d0ef;
  border-radius: 16px;
  background: linear-gradient(160deg, #f8f9ff, #f0f3ff);
  transition: border-color .25s, background .25s, box-shadow .25s;
  cursor: pointer;
}
.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--violet);
  background: linear-gradient(160deg, rgba(139,47,224,.06), rgba(47,91,234,.05));
  box-shadow: 0 0 0 4px rgba(139,47,224,.08);
}
.upload-zone-inner {
  padding: 1.6rem 1.2rem;
  text-align: center;
}
.upload-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: .4rem;
}
.upload-file-name {
  font-size: .85rem;
  color: var(--success);
  font-weight: 600;
  padding: 0 .8rem .8rem;
}

/* ---------- Results box — premium ---------- */
.results-box {
  margin-top: 1.8rem;
  padding: 1.6rem 1.7rem !important;
  background: linear-gradient(145deg, rgba(15,159,110,.06), rgba(47,91,234,.04)) !important;
  border: 1px solid rgba(15,159,110,.28) !important;
  border-radius: 20px !important;
  box-shadow: 0 8px 32px rgba(15,159,110,.08);
  position: relative;
}
.results-box::before {
  content: '';
  position: absolute;
  top: 0; left: 1.5rem; right: 1.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(15,159,110,.35), transparent);
}
.results-box h3 {
  color: var(--success) !important;
  font-size: 1.15rem !important;
  font-weight: 750 !important;
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem !important;
}
.results-box h3::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(15,159,110,.15);
  font-size: .85rem;
  font-weight: 800;
}
.results-box pre,
.results-box .result-content {
  border-radius: 14px !important;
  font-size: .9rem !important;
  line-height: 1.55;
}
.results-box pre {
  background: linear-gradient(160deg, #0c1228, #121a3a) !important;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.results-box .result-content:not(pre) {
  background: #fff !important;
  border: 1px solid var(--line) !important;
  padding: 1.15rem 1.25rem !important;
}

/* Guidance box — standout */
.guidance-box {
  margin-top: 1.35rem !important;
  padding: 1.3rem 1.4rem !important;
  background: linear-gradient(145deg, rgba(139,47,224,.07), rgba(47,91,234,.05)) !important;
  border: 1px solid rgba(139,47,224,.22) !important;
  border-radius: 16px !important;
  box-shadow: 0 6px 24px rgba(139,47,224,.08);
  position: relative;
  overflow: hidden;
}
.guidance-box::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--grad);
  border-radius: 4px 0 0 4px;
}
.guidance-box h4 {
  font-size: 1.02rem !important;
  font-weight: 750 !important;
  color: var(--violet) !important;
  margin-bottom: .75rem !important;
}
.guidance-box ul li {
  padding: .45rem 0 .45rem .1rem !important;
  font-size: .93rem !important;
  line-height: 1.5 !important;
  border-bottom: 1px solid rgba(139,47,224,.06);
}
.guidance-box ul li:last-child {
  border-bottom: 0;
}
.guidance-box ul li::before {
  content: "→" !important;
  color: var(--violet) !important;
  font-weight: 800;
}
.guidance-box .tip-label {
  font-size: .7rem !important;
  padding: .18rem .5rem !important;
  border-radius: 7px !important;
  font-weight: 750 !important;
  letter-spacing: .03em;
}
.guidance-box .tip-label.fix {
  background: rgba(15,159,110,.14) !important;
  color: #0a7a55 !important;
}
.guidance-box .tip-label.warning {
  background: rgba(245,165,36,.16) !important;
  color: #b45309 !important;
}
.guidance-box .tip-label.critical {
  background: rgba(225,29,72,.12) !important;
  color: #be123c !important;
}
.guidance-box .tip-label.info {
  background: rgba(47,91,234,.12) !important;
  color: #1d4ed8 !important;
}

/* Results actions */
.results-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(15,159,110,.15);
}
.results-actions .btn {
  font-size: .85rem !important;
  padding: .55rem 1.15rem !important;
  border-radius: 12px !important;
}

/* Loading spinner polish */
.loading.show {
  animation: fadeIn .35s var(--ease);
}
.spinner {
  width: 48px !important;
  height: 48px !important;
  border-width: 3.5px !important;
  border-color: rgba(139,47,224,.15) !important;
  border-top-color: var(--violet) !important;
  border-right-color: var(--blue) !important;
  box-shadow: 0 0 20px rgba(139,47,224,.15);
}

/* Score circles — richer */
.score-circle {
  width: 80px !important;
  height: 80px !important;
  font-size: 1.4rem !important;
  font-weight: 800 !important;
  border-width: 5px !important;
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
  position: relative;
}
.score-circle.good {
  border-color: var(--success) !important;
  color: var(--success) !important;
  background: radial-gradient(circle at 40% 35%, rgba(15,159,110,.12), transparent 70%);
}
.score-circle.avg {
  border-color: var(--amber) !important;
  color: #c47d0a !important;
  background: radial-gradient(circle at 40% 35%, rgba(245,165,36,.12), transparent 70%);
}
.score-circle.poor {
  border-color: var(--danger) !important;
  color: var(--danger) !important;
  background: radial-gradient(circle at 40% 35%, rgba(225,29,72,.1), transparent 70%);
}

/* ---------- Category / tool grid cards ---------- */
.tool-grid,
.cards-grid,
.tools-grid {
  display: grid;
  gap: 1.35rem;
}
.tool-card,
.card-tool,
.feature-card {
  background: #fff;
  border: 1px solid rgba(226,231,246,.95);
  border-radius: 20px;
  padding: 1.5rem 1.55rem;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  position: relative;
  overflow: hidden;
}
.tool-card::after,
.card-tool::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(47,91,234,.04), rgba(139,47,224,.03));
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.tool-card:hover,
.card-tool:hover,
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(30,40,120,.14);
  border-color: rgba(139,47,224,.25);
}
.tool-card:hover::after,
.card-tool:hover::after {
  opacity: 1;
}

/* Home category cards (common class patterns) */
.cat-card,
.category-card,
.section .card {
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.cat-card:hover,
.category-card:hover,
.section .card:hover {
  transform: translateY(-5px);
}

/* Info cards on tool pages */
.tool-info .info-card {
  background: linear-gradient(160deg, #fafbff, #f3f5ff) !important;
  border: 1px solid rgba(226,231,246,.95) !important;
  border-radius: 16px !important;
  padding: 1.35rem 1.4rem !important;
  transition: transform .25s, box-shadow .25s;
  box-shadow: 0 2px 10px rgba(30,40,120,.04);
}
.tool-info .info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(30,40,120,.1);
}
.tool-info .info-card h4 {
  color: var(--violet) !important;
  font-weight: 750 !important;
}

/* FAQ polish */
.faq-item,
.tool-faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: .7rem;
  overflow: hidden;
  transition: box-shadow .25s, border-color .25s;
}
.faq-item:hover,
.tool-faq details:hover {
  border-color: rgba(139,47,224,.25);
  box-shadow: 0 6px 20px rgba(139,47,224,.08);
}
.faq-item summary,
.tool-faq details summary {
  padding: 1rem 1.2rem;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  transition: background .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary,
.tool-faq details[open] summary {
  background: linear-gradient(90deg, rgba(139,47,224,.05), transparent);
  color: var(--violet);
}
.faq-body,
.tool-faq .faq-body {
  padding: 0 1.2rem 1.1rem;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.65;
}

/* Breadcrumb soft */
.breadcrumb {
  background: rgba(255,255,255,.75) !important;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(226,231,246,.8) !important;
}

/* Topbar subtle gradient edge */
.topbar {
  background: linear-gradient(90deg, #070b1f, #10183f 50%, #070b1f) !important;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

/* AIO score cards */
.aio-score-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.1rem 1.3rem;
  text-align: center;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  min-width: 100px;
  transition: transform .25s;
}
.aio-score-card:hover {
  transform: translateY(-3px);
}
.aio-score-card .num {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.1;
}
.aio-score-card .lbl {
  font-size: .78rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-top: .25rem;
}
.aio-score-card.good .num { color: var(--success); }
.aio-score-card.avg .num { color: #c47d0a; }
.aio-score-card.poor .num { color: var(--danger); }

/* Tables inside results */
.results-box table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.results-box th {
  background: linear-gradient(180deg, #f4f6fd, #eef1fa);
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--muted);
  padding: .65rem .85rem !important;
}
.results-box td {
  padding: .6rem .85rem !important;
  font-size: .92rem;
}
.results-box tr:nth-child(even) td {
  background: rgba(246,248,255,.7);
}

/* Mobile tweaks for polish */
@media (max-width: 600px) {
  .tool-card-main {
    padding: 1.4rem 1.25rem;
    border-radius: 18px;
  }
  .results-box,
  .guidance-box {
    padding: 1.15rem !important;
  }
  .tool-header h1 {
    font-size: 1.65rem;
  }
}

/* Smooth reveal for results */
.results-box.show {
  animation: resultPop .45s var(--ease) both !important;
}
@keyframes resultPop {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to { opacity: 1; transform: none; }
}

/* Contact form polish */
.contact-form {
  border-radius: 22px !important;
  box-shadow: var(--shadow) !important;
  border: 1px solid rgba(226,231,246,.9) !important;
  background: linear-gradient(180deg, #fff, #fafbff) !important;
}

/* Selection & scrollbar soft */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #eef1fa; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--blue), var(--violet));
  border-radius: 99px;
  border: 2px solid #eef1fa;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--violet), var(--red));
}

/* =====================================================
   ABOUT & CONTACT — founder profile pages
   ===================================================== */

/* Circular avatar */
.about-avatar-wrap,
.contact-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.about-avatar,
.contact-avatar {
  display: block;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 4px solid #fff;
  box-shadow:
    0 0 0 3px rgba(139, 47, 224, .35),
    0 16px 40px rgba(30, 40, 120, .2);
}
.about-avatar {
  width: 200px;
  height: 200px;
}
.about-avatar-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px dashed rgba(139, 47, 224, .25);
  animation: spinSlow 18s linear infinite;
  pointer-events: none;
}
@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

/* About hero */
.about-hero {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  flex-wrap: wrap;
  margin-bottom: 2.8rem;
  padding: 2rem 2rem 2.2rem;
  background: linear-gradient(145deg, #fff, #f4f6fd);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.about-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--grad);
  background-size: 200% 100%;
  animation: gradMove 7s ease infinite;
}
.about-eyebrow {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--violet);
  margin-bottom: .4rem;
}
.about-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: .55rem;
  background: linear-gradient(115deg, var(--ink) 30%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.about-roles {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
}
.about-roles span {
  font-size: .78rem;
  font-weight: 700;
  padding: .35rem .85rem;
  border-radius: 99px;
  background: linear-gradient(135deg, rgba(47,91,234,.1), rgba(139,47,224,.1));
  color: var(--violet);
  border: 1px solid rgba(139,47,224,.18);
}
.about-lead {
  font-size: 1.08rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 520px;
  margin: 0;
}

/* About sections */
.about-section {
  margin-bottom: 2.6rem;
}
.about-section h2 {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: .9rem;
  color: var(--ink);
  letter-spacing: -.015em;
}
.about-section h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin: 1.3rem 0 .45rem;
  color: var(--violet);
}
.about-section p {
  color: var(--text);
  margin-bottom: .9rem;
  font-size: 1.05rem;
  line-height: 1.7;
}
.about-checklist {
  list-style: none;
  margin: 1rem 0 1.4rem;
  padding: 0;
}
.about-checklist li {
  position: relative;
  padding: .55rem 0 .55rem 1.8rem;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.55;
  border-bottom: 1px solid rgba(226,231,246,.8);
}
.about-checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: .55rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(15,159,110,.12);
  color: var(--success);
  font-size: .75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-quote {
  margin: 1.6rem 0;
  padding: 1.4rem 1.6rem;
  border-left: 4px solid var(--violet);
  background: linear-gradient(90deg, rgba(139,47,224,.06), transparent);
  border-radius: 0 16px 16px 0;
  font-size: 1.08rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.55;
}
.about-quote cite {
  display: block;
  margin-top: .7rem;
  font-size: .88rem;
  font-style: normal;
  font-weight: 650;
  color: var(--violet);
}

.about-cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem;
  margin: 1.3rem 0 1.5rem;
}
.about-cat-card {
  background: linear-gradient(160deg, #fff, #f6f8ff);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem 1.3rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.about-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(30,40,120,.12);
}
.about-cat-card h3 {
  margin: 0 0 .45rem;
  font-size: 1.02rem;
  color: var(--violet);
}
.about-cat-card p {
  margin: 0;
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.55;
}

.about-principles {
  margin: 1rem 0 1.3rem 1.2rem;
  color: var(--text);
  line-height: 1.7;
}
.about-principles li {
  margin-bottom: .65rem;
  font-size: 1.02rem;
}

.about-inspire {
  padding: 1.6rem 1.7rem;
  background: linear-gradient(145deg, rgba(47,91,234,.05), rgba(139,47,224,.04));
  border: 1px solid rgba(139,47,224,.15);
  border-radius: 20px;
}

.about-blog-style {
  padding-top: .5rem;
}

.about-cta-block {
  text-align: center;
  padding: 2.2rem 1.8rem;
  background: linear-gradient(145deg, #0c1228, #161f4a);
  border-radius: 24px;
  color: #e6e9ff;
  box-shadow: var(--shadow-lg);
}
.about-cta-block h2 {
  color: #fff !important;
  margin-bottom: .7rem;
}
.about-cta-block p {
  color: #b8c0ef !important;
  max-width: 560px;
  margin: 0 auto 1.5rem;
}
.about-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  justify-content: center;
}
.about-cta-block .btn-outline {
  border-color: rgba(255,255,255,.45) !important;
  color: #fff !important;
  background: transparent !important;
}
.about-cta-block .btn-outline:hover {
  background: #fff !important;
  color: var(--violet) !important;
}

.about-seo-note {
  margin-top: 2.5rem;
  padding: 1rem 1.2rem;
  font-size: .88rem;
  color: var(--muted);
  background: #f8f9ff;
  border-radius: 12px;
  border: 1px solid var(--line);
}

/* Contact page */
.contact-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.2rem;
}
.contact-avatar {
  width: 120px;
  height: 120px;
}
.contact-header h1 {
  margin-bottom: .4rem;
}
.contact-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0;
  line-height: 1.6;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1.8rem;
  align-items: start;
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .about-hero { flex-direction: column; text-align: center; }
  .about-roles { justify-content: center; }
  .about-lead { margin-left: auto; margin-right: auto; }
  .about-avatar { width: 160px; height: 160px; }
}

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow-sm);
}
.contact-card h2 {
  font-size: 1.05rem;
  font-weight: 750;
  margin-bottom: .85rem;
  color: var(--ink);
}
.contact-details {
  list-style: none;
  margin: 0;
  padding: 0;
}
.contact-details li {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: .55rem 0;
  border-bottom: 1px solid rgba(226,231,246,.85);
}
.contact-details li:last-child { border-bottom: 0; }
.cd-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}
.cd-value {
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink);
}
.cd-value a { color: var(--violet); }
.contact-help ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.65;
}
.contact-help li { margin-bottom: .4rem; }
.contact-motivate p {
  font-size: .95rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: .6rem;
}
.contact-sign {
  font-weight: 700;
  color: var(--violet) !important;
  margin: 0 !important;
}

.contact-seo-block {
  margin-top: 2.8rem;
  padding: 1.5rem 1.6rem;
  background: linear-gradient(145deg, rgba(47,91,234,.05), rgba(139,47,224,.04));
  border: 1px solid rgba(139,47,224,.12);
  border-radius: 18px;
}
.contact-seo-block h2 {
  font-size: 1.15rem;
  margin-bottom: .6rem;
}
.contact-seo-block p {
  color: var(--muted);
  margin-bottom: .8rem;
  font-size: .98rem;
}
.contact-seo-block ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text);
  line-height: 1.7;
}
.contact-seo-block a {
  font-weight: 600;
}

/* Widen page-content slightly for about/contact */
.about-page,
.contact-page {
  max-width: 920px !important;
}


/* Separate About / Contact nav items */
.nav a[href*="about"],
.nav a[href*="contact"] {
  white-space: nowrap;
}
.contact-form-title {
  font-size: 1.15rem;
  font-weight: 750;
  margin-bottom: 1rem;
  color: var(--ink);
}
@media (max-width: 1180px) {
  .nav a { font-size: .85rem; padding: .4rem .55rem; }
}
