/* =========================================================
   VELKAR AI — Design System
   Primary #2563EB · Secondary #0F172A · Accent #3B82F6
   Background #FFFFFF · Alt BG #F8FAFC · Text #111827 · Border #E5E7EB
   Font: Inter (headings + body)
   ========================================================= */

:root{
  --primary:#2563EB;
  --primary-dark:#1D4ED8;
  --secondary:#0F172A;
  --accent:#3B82F6;
  --violet:#7C3AED;
  --cyan:#06B6D4;
  --bg:#FFFFFF;
  --bg-alt:#F8FAFC;
  --text:#111827;
  --text-muted:#5B6472;
  --border:#E5E7EB;
  --radius-sm:10px;
  --radius-md:18px;
  --radius-lg:28px;
  --radius-xl:36px;
  --shadow-sm:0 1px 2px rgba(15,23,42,.05);
  --shadow-md:0 12px 28px -6px rgba(15,23,42,.10), 0 2px 6px rgba(15,23,42,.04);
  --shadow-lg:0 30px 60px -12px rgba(15,23,42,.16), 0 8px 16px rgba(15,23,42,.06);
  --shadow-glow:0 0 0 1px rgba(37,99,235,.06), 0 20px 40px -10px rgba(37,99,235,.18);
  --container:1200px;
  --transition:220ms cubic-bezier(.4,0,.2,1);
  --grad-primary:linear-gradient(135deg,#2563EB 0%,#3B82F6 50%,#60A5FA 100%);
  --grad-mesh:radial-gradient(circle at 15% 20%, rgba(124,58,237,.14), transparent 45%),
              radial-gradient(circle at 85% 15%, rgba(59,130,246,.18), transparent 45%),
              radial-gradient(circle at 50% 90%, rgba(6,182,212,.10), transparent 50%);
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth; overflow-x:hidden; overflow-y:scroll; scrollbar-gutter:stable; width:100%;}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *{animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important;}
}

body{
  margin:0;
  font-family:'Inter',system-ui,-apple-system,sans-serif;
  color:var(--text);
  background:var(--bg);
  font-weight:400;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
  width:100%;
}

h1,h2,h3,h4,h5,h6{
  font-family:'Inter',sans-serif;
  font-weight:700;
  line-height:1.12;
  margin:0 0 .5em;
  color:var(--secondary);
  letter-spacing:-0.025em;
}
h1{font-size:clamp(2.4rem,5.4vw,4.1rem); font-weight:750; letter-spacing:-0.03em;}
h2{font-size:clamp(1.8rem,3.6vw,2.7rem);}
h3{font-size:1.4rem; font-weight:600;}
p{margin:0 0 1em; color:var(--text-muted);}
a{color:var(--primary); text-decoration:none; transition:color var(--transition);}
a:hover{color:var(--primary-dark);}
img{max-width:100%; display:block;}
ul{padding-left:1.2em;}
svg{display:block;}

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

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

.container{max-width:var(--container); margin:0 auto; padding:0 24px;}
.section{padding:96px 0;}
.section-alt{background:var(--bg-alt);}
.eyebrow{
  display:inline-flex; align-items:center; gap:6px;
  font-size:.78rem; font-weight:600; letter-spacing:.06em; text-transform:uppercase;
  color:var(--primary); background:rgba(37,99,235,.08);
  padding:7px 16px; border-radius:99px; margin-bottom:20px;
  border:1px solid rgba(37,99,235,.12);
}
.section-head{max-width:680px; margin:0 auto 56px; text-align:center;}
.section-head p{font-size:1.08rem;}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:14px 28px; border-radius:99px; font-weight:600; font-size:.95rem;
  border:1px solid transparent; cursor:pointer; transition:all var(--transition);
  white-space:nowrap; position:relative;
}
.btn-primary{
  background:var(--grad-primary); color:#fff;
  box-shadow:0 1px 2px rgba(37,99,235,.25), 0 8px 20px -6px rgba(37,99,235,.45);
}
.btn-primary:hover{transform:translateY(-2px); box-shadow:0 4px 8px rgba(37,99,235,.3), 0 16px 32px -8px rgba(37,99,235,.55); color:#fff;}
.btn-secondary{background:#fff; color:var(--secondary); border-color:var(--border);}
.btn-secondary:hover{border-color:var(--primary); color:var(--primary); transform:translateY(-2px); box-shadow:var(--shadow-sm);}
.btn-ghost{background:transparent; color:var(--secondary); padding:13px 18px;}
.btn-ghost:hover{color:var(--primary);}
.btn-sm{padding:10px 20px; font-size:.85rem;}
.btn-block{width:100%;}

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(255,255,255,.96);
  border-bottom:1px solid var(--border);
}
.nav{display:grid; grid-template-columns:auto 1fr auto; align-items:center; height:80px; column-gap:24px;}
.nav > nav{display:flex; justify-content:center; min-width:0;}
.brand{display:flex; align-items:center; gap:10px; font-weight:700; font-size:1.3rem; color:var(--secondary); letter-spacing:-0.02em;}
.brand-mark{
  width:36px; height:36px; border-radius:11px;
  background:var(--grad-primary);
  display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700; font-size:1rem;
  box-shadow:0 6px 14px -4px rgba(37,99,235,.5); flex-shrink:0;
}
.brand-mark svg{display:block;}
.nav-links{display:flex; align-items:center; gap:34px; list-style:none; margin:0; padding:0;}
.nav-links a{color:var(--secondary); font-weight:500; font-size:.95rem; position:relative;}
.nav-links a::after{content:"";position:absolute;left:0;bottom:-6px;width:0;height:2px;background:var(--grad-primary);border-radius:2px;transition:width var(--transition);}
.nav-links a:hover::after,.nav-links a.active::after{width:100%;}
.nav-links a.active{color:var(--primary);}
.nav-actions{display:flex; align-items:center; gap:12px;}
.nav-toggle{display:none; background:none; border:none; cursor:pointer; padding:8px;}
.nav-toggle span{display:block; width:22px; height:2px; background:var(--secondary); margin:5px 0; border-radius:2px;}

@media (max-width:900px){
  .nav-links{
    position:fixed; top:80px; left:0; right:0; bottom:0; background:#fff; flex-direction:column;
    align-items:stretch; justify-content:flex-start;
    padding:28px 24px; gap:4px; transform:translateY(-12px); opacity:0; pointer-events:none;
    transition:all var(--transition); overflow-y:auto; z-index:99;
  }
  .nav-links.open{transform:translateY(0); opacity:1; pointer-events:auto;}
  .nav-links li{width:100%;}
  .nav-links a{display:block; padding:14px 4px; font-size:1.05rem; border-bottom:1px solid var(--border);}
  .nav-links a::after{display:none;}
  .nav-toggle{display:block;}
  .nav-actions{gap:8px;}
  .nav-actions .btn{display:none;}
}
@media (max-width:480px){
  .nav-actions{gap:6px;}
  .brand{font-size:1.1rem; gap:8px;}
  .brand-mark{width:32px; height:32px;}
}

/* ---------- Hero ---------- */
.hero{padding:38px 0 48px; overflow:hidden; position:relative; background:var(--grad-mesh);}
.hero::before{
  content:""; position:absolute; top:-220px; right:-160px; width:620px; height:620px; border-radius:50%;
  background:radial-gradient(circle at 30% 30%, rgba(59,130,246,.22), transparent 70%); z-index:0;
}
.hero::after{
  content:""; position:absolute; bottom:-260px; left:-160px; width:520px; height:520px; border-radius:50%;
  background:radial-gradient(circle at 50% 50%, rgba(124,58,237,.14), transparent 70%); z-index:0;
}
.hero-grid{display:grid; grid-template-columns:1.05fr .95fr; gap:56px; align-items:center; position:relative; z-index:1;}
.hero-copy h1{margin-bottom:16px; font-size:clamp(2.1rem,3.6vw,3.15rem);}
.hero-copy p.lead{font-size:1.08rem; max-width:520px;}
.hero-copy .eyebrow{margin-bottom:14px;}
.hero-ctas{display:flex; gap:14px; margin:24px 0 0; flex-wrap:wrap;}
.hero-logos{display:flex; align-items:center; gap:28px; flex-wrap:wrap; margin-top:38px; opacity:.6;}
.hero-logos span{font-weight:600; color:var(--text-muted); font-size:.85rem; letter-spacing:.03em;}

.hero-art{
  position:relative;
  background:linear-gradient(160deg, rgba(255,255,255,.9), rgba(248,250,255,.7));
  border-radius:var(--radius-xl); border:1px solid rgba(255,255,255,.8); padding:20px;
  box-shadow:var(--shadow-glow);
  backdrop-filter:blur(8px);
}
.hero-art .card-float{
  background:#fff; border-radius:var(--radius-md); border:1px solid var(--border);
  padding:20px; box-shadow:var(--shadow-md); margin-bottom:16px; transition:transform var(--transition);
}
.hero-art .card-float:hover{transform:translateY(-3px) scale(1.01);}
.hero-art .card-float:last-child{margin-bottom:0;}
.hero-art .mini-stat{display:flex; align-items:center; gap:14px;}
.hero-art .mini-stat .dot{width:42px;height:42px;border-radius:12px;background:var(--grad-primary);display:flex;align-items:center;justify-content:center;color:#fff;flex-shrink:0;box-shadow:0 6px 14px -4px rgba(37,99,235,.4);}
.hero-art .bar{height:8px; border-radius:6px; background:var(--bg-alt); overflow:hidden; margin-top:12px;}
.hero-art .bar i{display:block; height:100%; background:var(--grad-primary); border-radius:6px;}

@media (max-width:960px){
  .hero-grid{grid-template-columns:1fr; gap:40px;}
  .hero-copy p.lead{max-width:none;}
}

/* ---------- Stats ---------- */
.stats-bar{display:grid; grid-template-columns:repeat(4,1fr); gap:1px; padding:0; background:var(--border); border-radius:var(--radius-md); overflow:hidden; border:1px solid var(--border);}
.stats-bar .stat{text-align:center; background:#fff; padding:36px 16px; transition:background var(--transition);}
.stats-bar .stat .num{
  font-size:2.3rem; font-weight:750; background:var(--grad-primary); -webkit-background-clip:text; background-clip:text;
  color:transparent; letter-spacing:-0.02em; font-variant-numeric:tabular-nums; display:inline-block;
  transition:transform .35s cubic-bezier(.34,1.56,.64,1);
}
.stats-bar .stat.counted .num{transform:scale(1.12);}
.stats-bar .stat.counted{background:var(--bg-alt);}
.stats-bar .stat .label{color:var(--text-muted); font-size:.88rem; margin-top:4px;}
@media (max-width:760px){.stats-bar{grid-template-columns:repeat(2,1fr);}}
html.dark-mode .stats-bar .stat{background:#10172A;}
html.dark-mode .stats-bar .stat.counted{background:#0F1420;}

/* ---------- Grids / Cards ---------- */
.grid{display:grid; gap:28px;}
.grid-3{grid-template-columns:repeat(3,1fr);}
.grid-4{grid-template-columns:repeat(4,1fr);}
.grid-2{grid-template-columns:repeat(2,1fr);}
@media (max-width:960px){.grid-3,.grid-4{grid-template-columns:repeat(2,1fr);}}
@media (max-width:640px){.grid-3,.grid-4,.grid-2{grid-template-columns:1fr;}}

.card{
  background:#fff; border:1px solid var(--border); border-radius:var(--radius-md);
  padding:30px; transition:all var(--transition); position:relative; overflow:hidden;
}
.card::before{
  content:""; position:absolute; inset:0; opacity:0; transition:opacity var(--transition);
  background:linear-gradient(160deg, rgba(37,99,235,.04), transparent 60%); pointer-events:none;
}
.card:hover{box-shadow:var(--shadow-lg); transform:translateY(-6px); border-color:rgba(37,99,235,.18);}
.card:hover::before{opacity:1;}
.card .icon-box{
  width:50px; height:50px; border-radius:14px; background:var(--grad-primary);
  display:flex; align-items:center; justify-content:center; color:#fff; margin-bottom:20px;
  box-shadow:0 8px 16px -6px rgba(37,99,235,.45);
}
.card h3{margin-bottom:8px;}
.card p{margin-bottom:0; font-size:.95rem;}

.category-card{
  display:flex; flex-direction:column; gap:10px; background:#fff; border:1px solid var(--border);
  border-radius:var(--radius-md); padding:26px; text-align:left; transition:all var(--transition);
}
.category-card:hover{transform:translateY(-5px); box-shadow:var(--shadow-md); border-color:rgba(37,99,235,.18);}
.category-card .cat-icon{
  width:44px; height:44px; border-radius:12px; background:rgba(37,99,235,.08);
  display:flex; align-items:center; justify-content:center; font-size:1.4rem;
}
.category-card span.count{color:var(--text-muted); font-size:.85rem;}

/* ---------- Article / blog cards ---------- */
.article-card{
  background:#fff; border:1px solid var(--border); border-radius:var(--radius-md); overflow:hidden;
  transition:all var(--transition); display:flex; flex-direction:column;
}
.article-card:hover{box-shadow:var(--shadow-lg); transform:translateY(-6px); border-color:rgba(37,99,235,.15);}
.article-thumb{
  height:184px; background:var(--grad-mesh), linear-gradient(135deg,#E9EFFF,#F5F8FF);
  display:flex; align-items:center; justify-content:center; color:var(--primary); font-size:2.1rem;
  position:relative; overflow:hidden;
}
.article-thumb img{
  width:100%; height:100%; object-fit:cover; display:block;
}
.article-thumb::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(135deg, rgba(37,99,235,.55), rgba(124,58,237,.38));
  mix-blend-mode:multiply; pointer-events:none;
}
.article-thumb .thumb-icon{
  position:absolute; right:14px; bottom:12px; font-size:1.6rem; line-height:1; z-index:1;
  filter:drop-shadow(0 2px 4px rgba(15,23,42,.35));
}
html.dark-mode .article-thumb::after{
  background:linear-gradient(135deg, rgba(37,99,235,.62), rgba(15,23,42,.55));
}
.article-body{padding:24px;}
.article-tag{
  display:inline-block; font-size:.72rem; font-weight:600; text-transform:uppercase; letter-spacing:.04em;
  color:var(--primary); background:rgba(37,99,235,.08); padding:5px 12px; border-radius:99px; margin-bottom:14px;
}
.article-meta{display:flex; gap:14px; font-size:.82rem; color:var(--text-muted); margin-top:16px; align-items:center;}
.article-body h3{font-size:1.18rem; margin-bottom:8px;}
.article-body p{font-size:.92rem;}

/* ---------- Comparison table ---------- */
.compare-table{width:100%; border-collapse:collapse; background:#fff; border-radius:var(--radius-md); overflow:hidden; border:1px solid var(--border);}
.compare-table th,.compare-table td{padding:16px 18px; text-align:left; border-bottom:1px solid var(--border); font-size:.92rem;}
.compare-table th{background:var(--bg-alt); font-weight:600; color:var(--secondary);}
.compare-table tr:last-child td{border-bottom:none;}
.badge-yes{color:#16A34A; font-weight:600;}
.badge-no{color:#9CA3AF;}

/* ---------- Testimonials ---------- */
.testimonial-card{background:#fff; border:1px solid var(--border); border-radius:var(--radius-md); padding:30px; transition:all var(--transition);}
.testimonial-card:hover{box-shadow:var(--shadow-md); transform:translateY(-4px);}
.testimonial-card .stars{color:#F59E0B; margin-bottom:14px; font-size:.95rem; letter-spacing:2px;}
.testimonial-author{display:flex; align-items:center; gap:12px; margin-top:20px;}
.avatar{width:42px;height:42px;flex-shrink:0;border-radius:50%;background:var(--grad-primary);display:flex;align-items:center;justify-content:center;color:#fff;font-weight:600;font-size:.85rem;box-shadow:0 6px 14px -4px rgba(37,99,235,.4);}
.testimonial-author .name{font-weight:600; color:var(--secondary); font-size:.92rem;}
.testimonial-author .role{font-size:.8rem; color:var(--text-muted);}

/* ---------- FAQ ---------- */
.faq-item{border-bottom:1px solid var(--border); padding:20px 0;}
.faq-q{display:flex; justify-content:space-between; align-items:center; cursor:pointer; font-weight:600; color:var(--secondary); gap:16px;}
.faq-q .icon{flex-shrink:0; transition:transform var(--transition); color:var(--primary);}
.faq-item.open .faq-q .icon{transform:rotate(45deg);}
.faq-a{max-height:0; overflow:hidden; transition:max-height var(--transition);}
.faq-item.open .faq-a{max-height:300px;}
.faq-a p{padding-top:12px; margin-bottom:0;}

/* ---------- Newsletter ---------- */
.newsletter-box{
  background:linear-gradient(135deg,var(--secondary) 0%,#1E293B 60%,#0F172A 100%);
  border-radius:var(--radius-xl); padding:60px; text-align:center; color:#fff;
  position:relative; overflow:hidden;
}
.newsletter-box::before{
  content:""; position:absolute; top:-120px; right:-80px; width:340px; height:340px; border-radius:50%;
  background:radial-gradient(circle, rgba(59,130,246,.35), transparent 70%);
}
.newsletter-box h2{color:#fff; position:relative;}
.newsletter-box p{color:#CBD5E1; position:relative;}
.newsletter-form{display:flex; gap:10px; max-width:460px; margin:24px auto 0; flex-wrap:wrap; justify-content:center; position:relative;}
.newsletter-form input[type=email]{
  flex:1; min-width:220px; padding:14px 20px; border-radius:99px; border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.08); color:#fff; font-size:.95rem;
}
.newsletter-form input::placeholder{color:#94A3B8;}

/* ---------- Final CTA ---------- */
.cta-final{
  background:var(--grad-primary);
  border-radius:var(--radius-xl); padding:68px; text-align:center; color:#fff;
  position:relative; overflow:hidden; box-shadow:var(--shadow-glow);
}
.cta-final::before{
  content:""; position:absolute; inset:0;
  background:radial-gradient(circle at 80% 0%, rgba(255,255,255,.18), transparent 50%);
}
.cta-final h2{color:#fff; position:relative;}
.cta-final p{color:rgba(255,255,255,.88); position:relative;}
.cta-final .hero-ctas{position:relative;}
.cta-final .btn-secondary{background:#fff; color:var(--primary); border-color:#fff;}

/* ---------- Ad slots ---------- */
/* Ad placeholders hidden site-wide until real AdSense units go live.
   To re-enable: delete the display:none rule below. */
.ad-slot{display:none !important;}
.ad-slot{
  border:1px dashed var(--border); border-radius:var(--radius-sm); background:var(--bg-alt);
  display:flex; align-items:center; justify-content:center; color:var(--text-muted);
  font-size:.78rem; letter-spacing:.03em; text-transform:uppercase; padding:18px; margin:48px 0; min-height:90px;
  overflow:hidden; position:relative;
}
.ad-slot.ad-sidebar{min-height:280px;}
.ad-slot.ad-banner{min-height:90px;}

/* Test-ad creative injected by main.js to preview layout before real AdSense is approved */
.test-ad{
  width:100%; height:100%; min-height:inherit; border-radius:inherit;
  display:flex; align-items:center; gap:16px; padding:16px 20px;
  text-decoration:none; position:relative; border:1px solid var(--border);
  background:var(--test-ad-bg, linear-gradient(135deg,#EFF4FF,#F5F8FF));
  transition:opacity var(--transition);
}
.test-ad:hover{opacity:.92;}
.test-ad-badge{
  position:absolute; top:8px; left:8px; font-size:.62rem; font-weight:700; letter-spacing:.05em;
  text-transform:uppercase; color:#fff; background:rgba(15,23,42,.55); padding:2px 7px; border-radius:4px;
  text-decoration:none;
}
.test-ad-icon{
  width:48px; height:48px; border-radius:12px; flex-shrink:0; display:flex; align-items:center; justify-content:center;
  font-size:1.5rem; background:var(--test-ad-icon-bg, var(--grad-primary)); box-shadow:0 6px 14px -4px rgba(37,99,235,.4);
}
.test-ad-copy{flex:1; min-width:0; text-align:left;}
.test-ad-copy .headline{font-weight:700; font-size:.92rem; color:var(--secondary); text-transform:none; letter-spacing:normal; margin-bottom:2px;}
.test-ad-copy .desc{font-weight:400; font-size:.8rem; color:var(--text-muted); text-transform:none; letter-spacing:normal;}
.test-ad-cta{
  flex-shrink:0; font-size:.78rem; font-weight:600; color:#fff; background:var(--grad-primary);
  padding:8px 16px; border-radius:99px; text-transform:none; letter-spacing:normal; white-space:nowrap;
}
.ad-slot.ad-sidebar .test-ad{flex-direction:column; text-align:center; justify-content:center; padding:28px 20px;}
.ad-slot.ad-sidebar .test-ad-copy{text-align:center;}
.ad-slot.ad-sidebar .test-ad-icon{width:56px; height:56px; font-size:1.8rem;}
html.dark-mode .test-ad{border-color:var(--border); background:var(--test-ad-bg-dark, #10172A);}

/* ---------- Footer ---------- */
.site-footer{
  background:linear-gradient(180deg,#0F172A 0%, #0B1222 100%);
  color:#CBD5E1; padding-top:80px; position:relative; overflow:hidden;
}
.site-footer::before{
  content:""; position:absolute; top:0; left:50%; width:800px; height:300px; transform:translateX(-50%);
  background:radial-gradient(circle, rgba(59,130,246,.12), transparent 70%); pointer-events:none;
}
.footer-grid{display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr 1fr; gap:32px; padding-bottom:48px; border-bottom:1px solid rgba(255,255,255,.08); position:relative;}
.footer-grid h4{color:#fff; font-size:.92rem; margin-bottom:18px; letter-spacing:.02em;}
.footer-grid ul{list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:10px;}
.footer-grid a{color:#94A3B8; font-size:.9rem;}
.footer-grid a:hover{color:#fff;}
.footer-brand p{color:#94A3B8; font-size:.9rem; max-width:280px;}
.footer-social{display:none; gap:10px; margin-top:18px;} /* hidden until real social accounts are linked */
.footer-social a{
  width:38px; height:38px; border-radius:50%; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.08);
  display:flex; align-items:center; justify-content:center; color:#fff; transition:all var(--transition);
}
.footer-social a:hover{background:var(--grad-primary); transform:translateY(-2px);}
.footer-bottom{display:flex; justify-content:space-between; align-items:center; padding:26px 0; font-size:.82rem; color:#64748B; flex-wrap:wrap; gap:12px; position:relative;}
.footer-bottom a{color:#94A3B8;}
@media (max-width:900px){.footer-grid{grid-template-columns:1fr 1fr;}}
@media (max-width:560px){.footer-grid{grid-template-columns:1fr;}}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs{font-size:.85rem; color:var(--text-muted); margin-bottom:24px;}
.breadcrumbs a{color:var(--text-muted);}
.breadcrumbs a:hover{color:var(--primary);}

/* ---------- Page header (inner pages) ---------- */
.page-hero{padding:72px 0 56px; background:var(--grad-mesh), var(--bg-alt); border-bottom:1px solid var(--border); position:relative;}
.page-hero h1{margin-bottom:12px;}
.page-hero p{font-size:1.08rem; max-width:640px;}

/* ---------- Generic content / legal pages ---------- */
.prose{max-width:760px; margin:0 auto;}
.prose h2{margin-top:2em;}
.prose h3{margin-top:1.6em;}
.prose ul{color:var(--text-muted);}
.prose li{margin-bottom:.4em;}

/* ---------- Forms ---------- */
.form-field{margin-bottom:20px;}
.form-field label{display:block; font-weight:600; font-size:.88rem; margin-bottom:8px; color:var(--secondary);}
.form-field input,.form-field textarea,.form-field select{
  width:100%; padding:13px 16px; border:1px solid var(--border); border-radius:var(--radius-sm);
  font-family:inherit; font-size:.95rem; color:var(--text); background:#fff; transition:border-color var(--transition);
}
.form-field input:focus,.form-field textarea:focus{border-color:var(--primary); outline:none;}
.form-grid{display:grid; grid-template-columns:1fr 1fr; gap:20px;}
@media (max-width:640px){.form-grid{grid-template-columns:1fr;}}

/* ---------- Tool directory ---------- */
.filter-bar{display:flex; gap:10px; flex-wrap:wrap; margin-bottom:36px;}
.filter-pill{
  padding:9px 18px; border-radius:99px; border:1px solid var(--border); background:#fff;
  font-size:.85rem; font-weight:500; cursor:pointer; color:var(--secondary); transition:all var(--transition);
}
.filter-pill.active{background:var(--primary); border-color:var(--primary); color:#fff;}
.tool-card{background:#fff; border:1px solid var(--border); border-radius:var(--radius-md); padding:24px; display:flex; gap:16px;}
.tool-card .tool-logo{width:52px;height:52px;border-radius:12px;background:var(--bg-alt);display:flex;align-items:center;justify-content:center;font-weight:700;color:var(--primary); flex-shrink:0;}
.tool-card .rating{color:#F59E0B; font-size:.85rem; margin-bottom:6px;}

/* ---------- Blog article layout ---------- */
.article-layout{display:grid; grid-template-columns:2.2fr 1fr; gap:48px;}
@media (max-width:900px){.article-layout{grid-template-columns:1fr;}}
.toc{background:var(--bg-alt); border:1px solid var(--border); border-radius:var(--radius-md); padding:20px; margin:32px 0;}
.toc h4{margin-bottom:10px;}
.toc ul{margin:0; padding-left:18px;}
.toc a{font-size:.9rem;}
.reading-progress{position:fixed; top:0; left:0; height:3px; background:var(--primary); width:0%; z-index:200; transition:width 80ms linear;}
.author-box{display:flex; gap:16px; align-items:flex-start; background:var(--bg-alt); border-radius:var(--radius-md); padding:24px; margin:40px 0;}
.share-bar{display:flex; gap:10px; margin:32px 0;}
.share-bar a{width:38px;height:38px;border-radius:50%;border:1px solid var(--border);display:flex;align-items:center;justify-content:center;color:var(--secondary);}
.sidebar-widget{background:#fff; border:1px solid var(--border); border-radius:var(--radius-md); padding:22px; margin-bottom:28px;}
.sidebar-widget h4{margin-bottom:16px; font-size:1rem;}
.popular-post{display:flex; gap:12px; margin-bottom:14px; align-items:flex-start;}
.popular-post .num{font-weight:700; color:var(--primary); font-size:1.1rem; width:24px;}
.popular-post a{font-size:.88rem; font-weight:500; color:var(--secondary); line-height:1.4;}
.back-to-top{
  position:fixed; bottom:28px; right:28px; width:44px; height:44px; border-radius:50%;
  background:var(--primary); color:#fff; display:flex; align-items:center; justify-content:center;
  box-shadow:var(--shadow-md); opacity:0; pointer-events:none; transition:all var(--transition); z-index:90; cursor:pointer; border:none;
}
.back-to-top.show{opacity:1; pointer-events:auto;}

/* ---------- 404 ---------- */
.error-page{text-align:center; padding:120px 0;}
.error-page .code{font-size:7rem; font-weight:700; color:var(--primary); line-height:1;}

/* ---------- Pagination ---------- */
.pagination{display:flex; gap:8px; justify-content:center; margin-top:48px;}
.pagination a,.pagination span{
  width:40px; height:40px; border-radius:10px; display:flex; align-items:center; justify-content:center;
  border:1px solid var(--border); color:var(--secondary); font-size:.9rem; font-weight:500;
}
.pagination .current{background:var(--primary); color:#fff; border-color:var(--primary);}

/* ---------- Animations ---------- */
.fade-up{opacity:0; transform:translateY(16px); transition:all .6s cubic-bezier(.4,0,.2,1);}
.fade-up.in{opacity:1; transform:translateY(0);}

/* ---------- Cookie consent ---------- */
.cookie-banner{
  position:fixed; bottom:0; left:0; right:0; background:var(--secondary); color:#fff;
  padding:20px 24px; display:flex; align-items:center; justify-content:space-between; gap:20px;
  z-index:300; flex-wrap:wrap; transform:translateY(100%); transition:transform .4s ease;
}
.cookie-banner.show{transform:translateY(0);}
.cookie-banner p{color:#CBD5E1; margin:0; font-size:.88rem; max-width:640px;}
.cookie-actions{display:flex; gap:10px; flex-shrink:0;}

/* =========================================================
   DARK MODE — Hedra-inspired near-black theme
   Toggle via .dark-mode class on <html> (see main.js)
   ========================================================= */
html.dark-mode{
  --bg:#05080F;
  --bg-alt:#0B101A;
  --text:#F1F5F9;
  --text-muted:#94A3B8;
  --border:#1C2534;
  --secondary:#F8FAFC;
  --shadow-sm:0 1px 2px rgba(0,0,0,.4);
  --shadow-md:0 12px 28px -6px rgba(0,0,0,.55), 0 2px 6px rgba(0,0,0,.3);
  --shadow-lg:0 30px 60px -12px rgba(0,0,0,.65), 0 8px 16px rgba(0,0,0,.4);
  --shadow-glow:0 0 0 1px rgba(59,130,246,.15), 0 20px 50px -10px rgba(59,130,246,.35);
  --grad-mesh:radial-gradient(circle at 15% 20%, rgba(124,58,237,.20), transparent 45%),
              radial-gradient(circle at 85% 15%, rgba(59,130,246,.25), transparent 45%),
              radial-gradient(circle at 50% 90%, rgba(6,182,212,.14), transparent 50%);
}
html.dark-mode body{background:var(--bg); color:var(--text);}
html.dark-mode h1, html.dark-mode h2, html.dark-mode h3, html.dark-mode h4, html.dark-mode h5, html.dark-mode h6{color:var(--secondary);}
html.dark-mode .text-gradient{-webkit-background-clip:text; background-clip:text;}

html.dark-mode .site-header{background:rgba(5,8,15,.96); border-bottom:1px solid var(--border);}
html.dark-mode .brand, html.dark-mode .nav-links a{color:#F1F5F9;}
html.dark-mode .nav-toggle span{background:#F1F5F9;}
@media (max-width:900px){
  html.dark-mode .nav-links{background:var(--bg); border-left:1px solid var(--border);}
  html.dark-mode .nav-links a{border-bottom:1px solid var(--border);}
}

html.dark-mode .hero{background:var(--grad-mesh), var(--bg);}
html.dark-mode .hero-art{
  background:linear-gradient(160deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  border:1px solid rgba(255,255,255,.08);
}
html.dark-mode .hero-art .card-float{background:#10172A; border:1px solid var(--border);}
html.dark-mode .hero-art .bar{background:#1B2333;}
html.dark-mode .hero-logos{opacity:.5;}

html.dark-mode .section-alt{background:var(--bg-alt);}
html.dark-mode .eyebrow{background:rgba(59,130,246,.12); border:1px solid rgba(59,130,246,.22); color:#93C5FD;}

html.dark-mode .card,
html.dark-mode .category-card,
html.dark-mode .article-card,
html.dark-mode .testimonial-card,
html.dark-mode .tool-card,
html.dark-mode .sidebar-widget,
html.dark-mode .toc,
html.dark-mode .compare-table,
html.dark-mode .author-box{
  background:#10172A; border-color:var(--border);
}
html.dark-mode .compare-table th{background:#0F1420;}
html.dark-mode .compare-table th, html.dark-mode .compare-table td{border-color:var(--border); color:var(--text);}
html.dark-mode .category-card .cat-icon{background:rgba(59,130,246,.14);}
html.dark-mode .article-thumb{background:var(--grad-mesh), #0F1420;}
html.dark-mode .article-tag{background:rgba(59,130,246,.14); color:#93C5FD;}

html.dark-mode .btn-secondary{background:#10172A; color:#F1F5F9; border-color:var(--border);}
html.dark-mode .btn-secondary:hover{border-color:var(--primary); color:#93C5FD;}
html.dark-mode .btn-ghost{color:#F1F5F9;}

html.dark-mode .filter-pill{background:#10172A; border-color:var(--border); color:#F1F5F9;}
html.dark-mode .filter-pill.active{background:var(--grad-primary); border-color:transparent; color:#fff;}

html.dark-mode .faq-item{border-color:var(--border);}
html.dark-mode .faq-q{color:#F1F5F9;}

html.dark-mode .newsletter-box{background:linear-gradient(135deg,#0B1222 0%,#121A2E 60%,#0A0E16 100%); border:1px solid var(--border);}
html.dark-mode .newsletter-form input[type=email]{background:rgba(255,255,255,.05); border-color:rgba(255,255,255,.12); color:#fff;}

html.dark-mode .page-hero{background:var(--grad-mesh), var(--bg-alt); border-color:var(--border);}
html.dark-mode .breadcrumbs, html.dark-mode .breadcrumbs a{color:var(--text-muted);}

html.dark-mode .form-field input,
html.dark-mode .form-field textarea,
html.dark-mode .form-field select{
  background:#10172A; border-color:var(--border); color:#F1F5F9;
}
html.dark-mode .form-field label{color:#F1F5F9;}

html.dark-mode .ad-slot{background:#0F1420; border-color:var(--border); color:var(--text-muted);}

html.dark-mode .pagination a, html.dark-mode .pagination span{border-color:var(--border); color:#F1F5F9; background:#10172A;}
html.dark-mode .pagination .current{background:var(--grad-primary); border-color:transparent; color:#fff;}

html.dark-mode .site-footer{background:linear-gradient(180deg,#070A10 0%, #050709 100%);}

html.dark-mode .badge-no{color:#64748B;}

/* Dark mode toggle button */
.theme-toggle{
  width:40px; height:40px; border-radius:50%; border:1px solid var(--border); background:#fff;
  display:flex; align-items:center; justify-content:center; cursor:pointer; transition:all var(--transition);
  flex-shrink:0; color:var(--secondary); padding:0;
}
.theme-toggle:hover{border-color:var(--primary); transform:translateY(-2px) rotate(8deg); color:var(--primary); box-shadow:var(--shadow-sm);}
html.dark-mode .theme-toggle{background:#10172A; color:#F1F5F9; border-color:var(--border);}
html.dark-mode .theme-toggle:hover{color:#93C5FD;}
.theme-toggle .icon-sun, .theme-toggle .icon-moon{
  display:flex; align-items:center; justify-content:center; width:18px; height:18px;
}
.theme-toggle .icon-sun svg, .theme-toggle .icon-moon svg{width:18px; height:18px; display:block;}
.theme-toggle .icon-moon{display:none;}
html.dark-mode .theme-toggle .icon-sun{display:none;}
html.dark-mode .theme-toggle .icon-moon{display:flex;}

/* ---------- Extra mobile responsiveness fixes ---------- */
@media (max-width:640px){
  .newsletter-box, .cta-final{padding:36px 22px;}
  .section{padding:64px 0;}
  .hero{padding:64px 0 40px;}
  .hero-art{padding:20px;}
  .page-hero{padding:48px 0 36px;}
  .error-page{padding:72px 0;}
  .error-page .code{font-size:5rem;}
  .container{padding:0 18px;}
  .tool-card{flex-direction:column; text-align:center; align-items:center;}
  .tool-card .tool-logo{margin:0 auto;}
  .testimonial-author{flex-wrap:wrap;}
  .footer-bottom{text-align:center; justify-content:center;}
  .cookie-banner{flex-direction:column; align-items:stretch; text-align:center;}
  .cookie-actions{justify-content:center;}
  .article-meta{flex-wrap:wrap; gap:8px;}
  .compare-table th, .compare-table td{padding:10px 10px; font-size:.82rem;}
}

/* =========================================================
   HOMEPAGE HERO v2 — search, trending chips, live panel
   ========================================================= */
.hero-search{position:relative; display:flex; align-items:center; gap:8px; background:#fff; border:1px solid var(--border); border-radius:16px; padding:8px 8px 8px 18px; box-shadow:var(--shadow-md); margin:22px 0 14px; max-width:560px; transition:border-color var(--transition), box-shadow var(--transition);}
.hero-search:focus-within{border-color:var(--primary); box-shadow:var(--shadow-glow);}
.hero-search .search-ico{width:20px; height:20px; color:var(--text-muted); flex-shrink:0;}
.hero-search input{flex:1; border:0; outline:0; font:inherit; font-size:1rem; color:var(--text); background:transparent; min-width:0; padding:10px 0;}
.hero-search input::placeholder{color:var(--text-muted);}
.hero-search .btn{border-radius:12px; padding:12px 22px; flex-shrink:0;}

.hero-suggest{position:absolute; top:calc(100% + 8px); left:0; right:0; background:#fff; border:1px solid var(--border); border-radius:14px; box-shadow:var(--shadow-lg); overflow:hidden; z-index:40;}
.hero-suggest a{display:flex; align-items:center; gap:10px; padding:11px 16px; color:var(--text); font-size:.93rem; border-bottom:1px solid var(--bg-alt);}
.hero-suggest a:last-child{border-bottom:0;}
.hero-suggest a:hover, .hero-suggest a.sel{background:var(--bg-alt);}
.hero-suggest .s-type{margin-left:auto; font-size:.72rem; font-weight:600; letter-spacing:.04em; color:var(--primary); background:rgba(37,99,235,.08); padding:3px 9px; border-radius:20px; flex-shrink:0;}

.hero-chips{display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:24px;}
.hero-chips .chips-label{font-size:.82rem; font-weight:600; color:var(--text-muted); letter-spacing:.02em;}
.chip{display:inline-flex; align-items:center; gap:6px; padding:7px 14px; background:#fff; border:1px solid var(--border); border-radius:30px; font-size:.85rem; font-weight:500; color:var(--text); transition:all var(--transition);}
.chip:hover{border-color:var(--primary); color:var(--primary); transform:translateY(-1px); box-shadow:var(--shadow-sm);}
.chip-hot{border-color:rgba(37,99,235,.35); background:linear-gradient(135deg,#EFF4FF,#F5F8FF);}

.trend-panel{background:#fff; border:1px solid var(--border); border-radius:var(--radius-md); box-shadow:var(--shadow-md); overflow:hidden;}
.trend-head{display:flex; align-items:center; justify-content:space-between; gap:10px; padding:12px 16px 8px; flex-wrap:wrap;}
.trend-title{display:flex; align-items:center; gap:8px; font-size:.95rem;}
.live-dot{width:8px; height:8px; border-radius:50%; background:#10B981; animation:pulse-dot 2s infinite;}
@keyframes pulse-dot{0%{box-shadow:0 0 0 0 rgba(16,185,129,.45)} 70%{box-shadow:0 0 0 8px rgba(16,185,129,0)} 100%{box-shadow:0 0 0 0 rgba(16,185,129,0)}}
.trend-tabs{display:flex; gap:4px; background:var(--bg-alt); padding:4px; border-radius:10px;}
.trend-tab{border:0; background:transparent; font:inherit; font-size:.8rem; font-weight:600; color:var(--text-muted); padding:6px 12px; border-radius:8px; cursor:pointer; transition:all var(--transition);}
.trend-tab.active{background:#fff; color:var(--primary); box-shadow:var(--shadow-sm);}

.trend-list{padding:4px 8px 8px;}
.trend-row{display:flex; align-items:center; gap:11px; padding:8px 12px; border-radius:12px; color:var(--text); transition:background var(--transition);}
.trend-row:hover{background:var(--bg-alt);}
.trend-row .rank{font-size:.8rem; font-weight:700; color:var(--text-muted); width:16px; text-align:center; flex-shrink:0;}
.trend-row .tlogo{width:34px; height:34px; border-radius:10px; background:var(--grad-primary); color:#fff; display:flex; align-items:center; justify-content:center; font-size:.8rem; font-weight:700; flex-shrink:0; box-shadow:0 5px 12px -4px rgba(37,99,235,.4);}
.trend-row .tinfo{display:flex; flex-direction:column; min-width:0;}
.trend-row .tinfo strong{font-size:.95rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.trend-row .tinfo small{font-size:.78rem; color:var(--text-muted);}
.trend-row .go{margin-left:auto; color:var(--text-muted); transition:transform var(--transition), color var(--transition);}
.trend-row:hover .go{transform:translateX(3px); color:var(--primary);}
.badge-new{font-size:.66rem; font-weight:700; letter-spacing:.05em; color:#fff; background:linear-gradient(135deg,#F59E0B,#F97316); padding:2px 7px; border-radius:20px; margin-left:6px; vertical-align:2px;}
.trend-foot{display:block; text-align:center; padding:10px; border-top:1px solid var(--border); font-size:.84rem; font-weight:600; color:var(--primary); transition:background var(--transition);}
.trend-foot:hover{background:var(--bg-alt);}

@media (max-width:640px){
  .hero-search{flex-wrap:nowrap; padding-left:14px;}
  .hero-search .btn{padding:11px 16px;}
  .trend-head{justify-content:center;}
}

/* Dark mode — hero v2 */
html.dark-mode .hero-search{background:#10172A;}
html.dark-mode .hero-suggest{background:#10172A;}
html.dark-mode .hero-suggest a{border-bottom-color:#1B2333;}
html.dark-mode .hero-suggest a:hover, html.dark-mode .hero-suggest a.sel{background:#1B2333;}
html.dark-mode .chip{background:#10172A; color:#E2E8F0;}
html.dark-mode .chip:hover{color:#60A5FA; border-color:#60A5FA;}
html.dark-mode .chip-hot{background:#101C33;}
html.dark-mode .trend-panel{background:#10172A;}
html.dark-mode .trend-tabs{background:#0B101C;}
html.dark-mode .trend-tab.active{background:#1B2333; color:#60A5FA;}
html.dark-mode .trend-row:hover{background:#1B2333;}
html.dark-mode .trend-foot:hover{background:#1B2333;}

/* Hero trust strip (under trending panel) */
.hero-trust{display:flex; justify-content:center; flex-wrap:wrap; gap:6px 20px; margin-top:12px; font-size:.8rem; font-weight:600; color:var(--text-muted);}
html.dark-mode .hero-trust{color:#94A3B8;}

/* =========================================================
   HOMEPAGE HERO v3 — centered, search-first (directory style)
   ========================================================= */
.hero-v3{padding:40px 0 44px;}
.hero-v3 .hero-copy{max-width:780px; margin:0 auto; text-align:center;}
.hero-v3 .hero-copy h1{font-size:clamp(2rem,3.4vw,2.75rem); margin-bottom:12px;}
.hero-v3 .hero-copy p.lead{font-size:1.05rem; max-width:600px; margin:0 auto;}
.hero-v3 .hero-search{margin:20px auto 14px; max-width:640px; text-align:left;}
.hero-v3 .hero-chips{justify-content:center; margin-bottom:0;}
.hero-panel-wrap{max-width:720px; margin:26px auto 0; position:relative;}
.hero-panel-wrap::before{content:""; position:absolute; inset:-30px -70px; background:radial-gradient(closest-side, rgba(37,99,235,.13), transparent 72%); z-index:0; pointer-events:none;}
.hero-panel-wrap .trend-panel{position:relative; z-index:1;}
.hero-panel-wrap .hero-trust{position:relative; z-index:1;}
html.dark-mode .hero-panel-wrap::before{background:radial-gradient(closest-side, rgba(96,165,250,.10), transparent 72%);}

/* Live-feel: staggered row entrance whenever a tab is shown */
.trend-list .trend-row{animation:trendIn .32s ease both;}
.trend-list .trend-row:nth-child(2){animation-delay:.06s;}
.trend-list .trend-row:nth-child(3){animation-delay:.12s;}
.trend-list .trend-row:nth-child(4){animation-delay:.18s;}
.trend-list .trend-row:nth-child(5){animation-delay:.24s;}
@keyframes trendIn{from{opacity:0; transform:translateY(7px);} to{opacity:1; transform:none;}}
@media (prefers-reduced-motion: reduce){ .trend-list .trend-row{animation:none;} }

@media (max-width:640px){
  .hero-v3{padding:26px 0 36px;}
  .hero-v3 .hero-copy h1{font-size:1.7rem;}
  .hero-panel-wrap::before{inset:-20px -20px;}
}

/* =========================================================
   HOMEPAGE HERO v4 — display headline, badge chip, floating
   UI cards, glow CTA, stat tiles (modern AI landing style)
   ========================================================= */
.hero-v4{padding:56px 0 60px;}
.hero-v4 .hero-copy{position:relative; z-index:2;}

/* badge chip (— NEW | pill) */
.hero-badge{display:inline-flex; align-items:center; gap:10px; margin-bottom:20px; font-size:.72rem; font-weight:800; letter-spacing:.16em; color:var(--text-muted);}
.hero-badge .hb-line{width:28px; height:2px; background:var(--primary); border-radius:2px;}
.hero-badge .hb-pill{font-size:.76rem; letter-spacing:0; font-weight:600; color:var(--primary); background:rgba(37,99,235,.07); border:1px solid rgba(37,99,235,.25); padding:6px 14px; border-radius:999px; transition:all var(--transition);}
.hero-badge:hover .hb-pill{background:rgba(37,99,235,.13); box-shadow:0 4px 14px -6px rgba(37,99,235,.5);}

/* display headline + lead */
.hero-v4 .hero-copy h1{font-size:clamp(2.5rem,4.8vw,3.85rem); font-weight:800; letter-spacing:-.025em; line-height:1.06; margin-bottom:18px;}
.hero-v4 .hero-copy p.lead{font-size:1.12rem; max-width:640px;}

/* glow search CTA */
.hero-v4 .hero-search{max-width:680px; margin-top:26px; margin-bottom:0; padding:10px 10px 10px 20px; border-radius:20px; box-shadow:0 24px 60px -20px rgba(37,99,235,.38), var(--shadow-md);}
.hero-v4 .hero-search input{font-size:1.05rem; padding:12px 0;}
.hero-v4 .hero-search .btn{background:var(--grad-primary); border-radius:15px; padding:15px 30px; font-size:1rem; box-shadow:0 12px 26px -10px rgba(37,99,235,.6);}
.hero-note{font-size:.67rem; font-weight:700; letter-spacing:.2em; color:var(--text-muted); margin:12px 0 14px;}
.hero-v4 .hero-chips{margin-bottom:0;}

/* floating UI cards */
.hero-float{position:absolute; z-index:1; display:flex; align-items:center; gap:10px; background:rgba(255,255,255,.88); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); border:1px solid var(--border); border-radius:16px; padding:12px 16px; box-shadow:var(--shadow-lg); pointer-events:none; animation:heroBob 7s ease-in-out infinite;}
.hero-float strong{display:block; font-size:.88rem; line-height:1.2;}
.hero-float small{display:block; font-size:.72rem; color:var(--text-muted);}
.hero-float .tlogo{width:36px; height:36px; border-radius:11px; background:var(--grad-primary); color:#fff; display:flex; align-items:center; justify-content:center; font-size:.8rem; font-weight:700; flex-shrink:0; box-shadow:0 6px 14px -5px rgba(37,99,235,.5);}
.hero-float .hf-emoji{font-size:1.5rem;}
.hero-float.hf-widget{display:block; min-width:172px;}
.hero-float .hf-label{font-size:.62rem; font-weight:800; letter-spacing:.14em; color:var(--primary); margin-bottom:8px;}
.hero-float .hf-bar{height:7px; background:var(--bg-alt); border-radius:6px; overflow:hidden; margin-bottom:8px;}
.hero-float .hf-bar i{display:block; height:100%; width:78%; background:var(--grad-primary); border-radius:6px;}
.hero-float .hf-bars{display:flex; align-items:flex-end; gap:4px; height:36px; margin-bottom:6px;}
.hero-float .hf-bars i{width:9px; border-radius:3px 3px 0 0; background:var(--grad-primary); opacity:.85;}
.hf-1{top:120px; left:3.5%; animation-delay:0s;}
.hf-2{top:150px; right:3.5%; animation-delay:1.6s;}
.hf-3{bottom:150px; left:5%; animation-delay:.9s;}
.hf-4{bottom:170px; right:5%; animation-delay:2.4s;}
@keyframes heroBob{0%,100%{transform:translateY(0);}50%{transform:translateY(-12px);}}
@media (max-width:1250px){.hero-float{display:none;}}
@media (prefers-reduced-motion: reduce){.hero-float{animation:none;}}
html.dark-mode .hero-float{background:rgba(16,23,42,.86);}
html.dark-mode .hero-float .hf-bar{background:#1B2333;}

/* trust pills under panel */
.hero-trust{gap:8px; margin-top:16px;}
.hero-trust span{display:inline-flex; align-items:center; gap:8px; background:#fff; border:1px solid var(--border); border-radius:999px; padding:8px 15px; font-size:.78rem; font-weight:600; color:var(--text); box-shadow:var(--shadow-sm);}
.hero-trust span::before{content:""; width:7px; height:7px; border-radius:50%; flex-shrink:0;}
.hero-trust span:nth-child(1)::before{background:#10B981;}
.hero-trust span:nth-child(2)::before{background:#8B5CF6;}
.hero-trust span:nth-child(3)::before{background:#2563EB;}
.hero-trust span:nth-child(4)::before{background:#F59E0B;}
html.dark-mode .hero-trust span{background:#10172A; color:#E2E8F0; border-color:#1B2333;}

/* stat tiles (separated rounded cards) */
.stats-bar{gap:16px; background:transparent; border:0; overflow:visible; border-radius:0;}
.stats-bar .stat{background:#fff; border:1px solid var(--border); border-radius:18px; box-shadow:var(--shadow-md); padding:30px 16px;}
.stats-bar .stat .num{background:var(--grad-primary); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; font-weight:800;}
@media (max-width:760px){.stats-bar{gap:10px;}}
html.dark-mode .stats-bar .stat{background:#10172A; border-color:#1B2333;}

@media (max-width:640px){
  .hero-v4 .hero-copy h1{font-size:2rem;}
  .hero-v4 .hero-search .btn{padding:13px 20px;}
}
html.dark-mode .hero-badge .hb-pill{color:#60A5FA; background:rgba(96,165,250,.10); border-color:rgba(96,165,250,.35);}
html.dark-mode .hero-float .hf-label{color:#60A5FA;}

/* =========================================================
   HOMEPAGE HERO v5 — Kling-style: dark cinematic two-column,
   gradient display headline left, framed live panel right
   ========================================================= */
.hero-v5{position:relative; overflow:hidden; padding:72px 0 80px; background:#05080F;}
.hero-v5::before{content:""; position:absolute; inset:0; pointer-events:none; background:
  radial-gradient(720px 420px at 12% 8%, rgba(37,99,235,.16), transparent 65%),
  radial-gradient(820px 520px at 88% 92%, rgba(124,58,237,.14), transparent 65%),
  radial-gradient(520px 320px at 78% 18%, rgba(96,165,250,.10), transparent 65%);}
.hero-grid5{display:grid; grid-template-columns:1.04fr .96fr; gap:56px; align-items:center; position:relative; z-index:1;}

/* left copy — Kling-style all-accent headline + bold subline */
.hero-v5 .hero-copy{max-width:none; margin:0; text-align:left;}
.hero-v5 .hero-copy h1{font-size:clamp(2.3rem,3.7vw,3.35rem); font-weight:800; letter-spacing:-.02em; line-height:1.08; margin-bottom:14px;
  background:linear-gradient(100deg,#93C5FD 0%,#60A5FA 45%,#3B82F6 100%); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;}
.hero-v5 .hero-copy h1 .text-gradient{background:inherit; -webkit-background-clip:text; background-clip:text;}
.hero-subline{font-weight:700; font-size:clamp(1.02rem,1.5vw,1.3rem); color:#60A5FA; margin:0 0 16px; letter-spacing:-.01em;}
.hero-v5 .hero-copy p.lead{color:#94A3B8; font-size:1.04rem; max-width:560px; margin:0;}

/* dark search */
.hero-v5 .hero-search{background:#0B1220; border:1.5px solid #1E293B; max-width:560px; margin:26px 0 14px; padding:8px 8px 8px 18px; border-radius:16px; box-shadow:0 24px 60px -22px rgba(37,99,235,.5);}
.hero-v5 .hero-search:focus-within{border-color:#3B82F6;}
.hero-v5 .hero-search input{color:#F1F5F9;}
.hero-v5 .hero-search input::placeholder{color:#64748B;}
.hero-v5 .hero-search .btn{background:var(--grad-primary); border-radius:12px; box-shadow:0 10px 24px -10px rgba(37,99,235,.7);}
.hero-v5 .hero-suggest{background:#0B1220; border-color:#1E293B;}
.hero-v5 .hero-suggest a{color:#E2E8F0; border-bottom-color:#131B2E;}
.hero-v5 .hero-suggest a:hover, .hero-v5 .hero-suggest a.sel{background:#131B2E;}

/* dark chips */
.hero-v5 .hero-chips{justify-content:flex-start; margin-bottom:0;}
.hero-v5 .chips-label{color:#64748B;}
.hero-v5 .chip{background:#0B1220; border:1px solid #1E293B; color:#CBD5E1;}
.hero-v5 .chip:hover{border-color:#3B82F6; color:#F1F5F9;}
.hero-v5 .chip-hot{border-color:rgba(96,165,250,.55); color:#93C5FD;}

/* pill CTAs (Kling-style) */
.hero-v5 .hero-ctas{display:flex; gap:14px; flex-wrap:wrap; margin-top:24px;}
.btn-pill{border-radius:999px !important; padding:13px 28px !important; font-weight:600;}
.hero-v5 .btn-primary.btn-pill{background:var(--grad-primary); box-shadow:0 14px 30px -12px rgba(37,99,235,.7);}
.hero-v5 .btn-ghost{background:rgba(148,163,184,.06); color:#E2E8F0; border:1.5px solid #334155;}
.hero-v5 .btn-ghost:hover{border-color:#60A5FA; color:#fff; background:rgba(96,165,250,.10);}

/* right: framed panel with fanned card stack behind */
.hero-v5 .hero-panel-wrap{max-width:none; margin:0; position:relative;}
.hero-v5 .hero-panel-wrap::before{content:""; position:absolute; inset:18px -26px 6px 26px; background:#0B1220; border:1px solid #1E293B; border-radius:22px; transform:rotate(3.2deg); opacity:.75; z-index:0;}
.hero-v5 .hero-panel-wrap::after{content:""; position:absolute; inset:34px -50px 14px 50px; background:#0A101C; border:1px solid #17203183; border-radius:22px; transform:rotate(6.4deg); opacity:.45; z-index:0;}
.hero-v5 .trend-panel{position:relative; z-index:2; background:#0B1220; border:1.5px solid rgba(96,165,250,.55); border-radius:22px; box-shadow:0 34px 90px -34px rgba(37,99,235,.55);}
.hero-v5 .trend-title strong{color:#F1F5F9;}
.hero-v5 .trend-tabs{background:#05080F;}
.hero-v5 .trend-tab{color:#94A3B8;}
.hero-v5 .trend-tab.active{background:#1B2333; color:#60A5FA; box-shadow:none;}
.hero-v5 .trend-row:hover{background:#131B2E;}
.hero-v5 .trend-row .tinfo strong{color:#F1F5F9;}
.hero-v5 .trend-row .tinfo small{color:#94A3B8;}
.hero-v5 .trend-row .rank{color:#64748B;}
.hero-v5 .trend-row .go{color:#64748B;}
.hero-v5 .trend-foot{border-top-color:#1E293B; color:#60A5FA;}
.hero-v5 .trend-foot:hover{background:#131B2E;}

/* dark trust pills */
.hero-v5 .hero-trust{justify-content:center; margin-top:18px; position:relative; z-index:2;}
.hero-v5 .hero-trust span{background:#0B1220; border-color:#1E293B; color:#CBD5E1; box-shadow:none;}

@media (max-width:1024px){
  .hero-grid5{grid-template-columns:1fr; gap:44px;}
  .hero-v5 .hero-copy{text-align:center;}
  .hero-v5 .hero-copy p.lead{margin:0 auto;}
  .hero-v5 .hero-search{margin:24px auto 14px;}
  .hero-v5 .hero-chips{justify-content:center;}
  .hero-v5 .hero-ctas{justify-content:center;}
  .hero-v5 .hero-panel-wrap{max-width:640px; margin:0 auto;}
  .hero-v5 .hero-panel-wrap::before, .hero-v5 .hero-panel-wrap::after{display:none;}
}
@media (max-width:640px){
  .hero-v5{padding:44px 0 56px;}
  .hero-v5 .hero-copy h1{font-size:1.9rem;}
}

/* =========================================================
   HERO v5 — LIGHT-THEME VARIANT (hero follows site theme so
   the page background is consistent top to bottom)
   ========================================================= */
html:not(.dark-mode) .hero-v5{background:var(--grad-mesh), #F8FAFF;}
html:not(.dark-mode) .hero-v5::before{background:
  radial-gradient(720px 420px at 12% 8%, rgba(37,99,235,.10), transparent 65%),
  radial-gradient(820px 520px at 88% 92%, rgba(124,58,237,.08), transparent 65%);}
html:not(.dark-mode) .hero-v5 .hero-copy h1{background:linear-gradient(100deg,#1D4ED8 0%,#2563EB 45%,#3B82F6 100%); -webkit-background-clip:text; background-clip:text;}
html:not(.dark-mode) .hero-subline{color:#2563EB;}
html:not(.dark-mode) .hero-v5 .hero-copy p.lead{color:var(--text-muted);}
html:not(.dark-mode) .hero-v5 .hero-search{background:#fff; border-color:var(--border); box-shadow:0 24px 60px -22px rgba(37,99,235,.28), var(--shadow-md);}
html:not(.dark-mode) .hero-v5 .hero-search:focus-within{border-color:var(--primary);}
html:not(.dark-mode) .hero-v5 .hero-search input{color:var(--text);}
html:not(.dark-mode) .hero-v5 .hero-search input::placeholder{color:var(--text-muted);}
html:not(.dark-mode) .hero-v5 .hero-suggest{background:#fff; border-color:var(--border);}
html:not(.dark-mode) .hero-v5 .hero-suggest a{color:var(--text); border-bottom-color:var(--bg-alt);}
html:not(.dark-mode) .hero-v5 .hero-suggest a:hover, html:not(.dark-mode) .hero-v5 .hero-suggest a.sel{background:var(--bg-alt);}
html:not(.dark-mode) .hero-v5 .chips-label{color:var(--text-muted);}
html:not(.dark-mode) .hero-v5 .chip{background:#fff; border-color:var(--border); color:var(--text);}
html:not(.dark-mode) .hero-v5 .chip:hover{border-color:var(--primary); color:var(--primary);}
html:not(.dark-mode) .hero-v5 .chip-hot{border-color:rgba(37,99,235,.45); color:var(--primary);}
html:not(.dark-mode) .hero-v5 .btn-ghost{background:#fff; color:var(--text); border:1.5px solid #CBD5E1;}
html:not(.dark-mode) .hero-v5 .btn-ghost:hover{border-color:var(--primary); color:var(--primary); background:rgba(37,99,235,.05);}
html:not(.dark-mode) .hero-v5 .hero-panel-wrap::before{background:#fff; border-color:var(--border);}
html:not(.dark-mode) .hero-v5 .hero-panel-wrap::after{background:#F1F5F9; border-color:var(--border);}
html:not(.dark-mode) .hero-v5 .trend-panel{background:#fff; border-color:rgba(37,99,235,.35); box-shadow:0 34px 90px -34px rgba(37,99,235,.35);}
html:not(.dark-mode) .hero-v5 .trend-title strong{color:var(--text);}
html:not(.dark-mode) .hero-v5 .trend-tabs{background:var(--bg-alt);}
html:not(.dark-mode) .hero-v5 .trend-tab{color:var(--text-muted);}
html:not(.dark-mode) .hero-v5 .trend-tab.active{background:#fff; color:var(--primary); box-shadow:var(--shadow-sm);}
html:not(.dark-mode) .hero-v5 .trend-row:hover{background:var(--bg-alt);}
html:not(.dark-mode) .hero-v5 .trend-row .tinfo strong{color:var(--text);}
html:not(.dark-mode) .hero-v5 .trend-row .tinfo small{color:var(--text-muted);}
html:not(.dark-mode) .hero-v5 .trend-row .rank, html:not(.dark-mode) .hero-v5 .trend-row .go{color:var(--text-muted);}
html:not(.dark-mode) .hero-v5 .trend-foot{border-top-color:var(--border); color:var(--primary);}
html:not(.dark-mode) .hero-v5 .trend-foot:hover{background:var(--bg-alt);}
html:not(.dark-mode) .hero-v5 .hero-trust span{background:#fff; border-color:var(--border); color:var(--text); box-shadow:var(--shadow-sm);}

/* ============ ARTICLE SCREENSHOTS (July 2026) ============ */
.post-shot{margin:28px 0;border:1px solid var(--border);border-radius:12px;overflow:hidden;background:var(--bg-alt)}
.post-shot img{display:block;width:100%;height:auto}
.post-shot figcaption{padding:10px 16px;font-size:.85rem;color:var(--text-muted,#6B7280);border-top:1px solid var(--border);line-height:1.5}
html.dark-mode .post-shot{background:#0B101A}

/* ============ COOKIE BANNER THEME FIX (July 2026) ============
   Banner used background:var(--secondary), which dark mode redefines
   to near-white — leaving the fixed light-gray text unreadable.
   Explicit colors per theme, decoupled from --secondary. */
.cookie-banner{background:#0F172A;}
.cookie-banner p{color:#CBD5E1;}
.cookie-banner p a{color:#93C5FD;text-decoration:underline;}
html.dark-mode .cookie-banner{background:#0B101A;border-top:1px solid #1C2534;box-shadow:0 -8px 24px rgba(0,0,0,.45);}
html.dark-mode .cookie-banner p{color:#CBD5E1;}
html.dark-mode .cookie-banner .btn-secondary{background:#F1F5F9;color:#0F172A;border-color:transparent;}
