/* ==========================================================================
   Gariaband.com — Global Stylesheet
   Smart Tools for Documents, Forms & Online Services
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  --brand: #00BCD4;
  --brand-dark: #0097A7;
  --brand-light: #B2EBF2;
  --brand-glow: rgba(0, 188, 212, 0.35);

  --bg: #f4f7fa;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --surface-2: #f0f4f8;
  --border: #e2e8f0;
  --text: #1a2531;
  --text-soft: #4a5a6a;
  --text-muted: #7a8a9a;
  --heading: #0f1b28;

  --shadow-sm: 0 1px 3px rgba(16, 27, 40, 0.06);
  --shadow: 0 6px 20px rgba(16, 27, 40, 0.08);
  --shadow-lg: 0 18px 45px rgba(16, 27, 40, 0.12);

  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;

  --font-head: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --maxw: 1200px;
  --nav-h: 68px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg: #0b131c;
  --bg-alt: #0f1a26;
  --surface: #12202f;
  --surface-2: #17293b;
  --border: #223547;
  --text: #d7e2ec;
  --text-soft: #a6b5c4;
  --text-muted: #7889989;
  --text-muted: #78899a;
  --heading: #f1f6fb;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 18px 45px rgba(0, 0, 0, 0.55);
  --brand-glow: rgba(0, 188, 212, 0.45);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand-dark); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--brand); }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--heading); line-height: 1.2; font-weight: 700; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 46px; }
.section-head .eyebrow {
  display: inline-block; font-weight: 600; font-size: 0.8rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--brand-dark); background: var(--brand-light);
  padding: 6px 14px; border-radius: 100px; margin-bottom: 14px;
}
[data-theme="dark"] .section-head .eyebrow { background: rgba(0,188,212,0.15); color: var(--brand); }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 12px; }
.section-head p { color: var(--text-soft); font-size: 1.05rem; }
.text-brand { color: var(--brand-dark); }
[data-theme="dark"] .text-brand { color: var(--brand); }
.bg-alt { background: var(--bg-alt); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 0.98rem; padding: 13px 26px; border-radius: 100px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  white-space: nowrap; cursor: pointer;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff;
  box-shadow: 0 8px 22px var(--brand-glow);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 30px var(--brand-glow); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border: 2px solid var(--border); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-dark); transform: translateY(-3px); }
[data-theme="dark"] .btn-ghost:hover { color: var(--brand); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 0.9rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---------- Navigation ---------- */
.navbar {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: color-mix(in srgb, var(--bg-alt) 85%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-container { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.brand-logo { display: flex; align-items: center; gap: 10px; }
.logo-icon {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 6px 16px var(--brand-glow);
}
.logo-text { font-family: var(--font-head); font-weight: 800; font-size: 1.28rem; color: var(--heading); letter-spacing: -0.02em; }
.logo-text span { color: var(--brand-dark); }
[data-theme="dark"] .logo-text span { color: var(--brand); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  color: var(--text-soft); font-weight: 500; font-size: 0.95rem; padding: 9px 14px; border-radius: 9px;
  position: relative; transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--brand-dark); background: var(--surface-2); }
[data-theme="dark"] .nav-link:hover, [data-theme="dark"] .nav-link.active { color: var(--brand); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  color: var(--text-soft); border: 1px solid var(--border); background: var(--surface);
  transition: all 0.25s var(--ease);
}
.theme-toggle:hover { color: var(--brand-dark); border-color: var(--brand); transform: rotate(-15deg); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }

.hamburger { display: none; width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.hamburger svg { width: 22px; height: 22px; margin: 0 auto; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 80px 0 90px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(0,188,212,0.20), transparent 42%),
    radial-gradient(circle at 85% 75%, rgba(0,151,167,0.18), transparent 45%);
}
.hero-grid-lines {
  position: absolute; inset: 0; z-index: 0; opacity: 0.5;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 46px 46px; -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 10%, transparent 70%);
  mask-image: radial-gradient(circle at 50% 40%, #000 10%, transparent 70%);
}
.shape { position: absolute; border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; z-index: 0; filter: blur(2px); opacity: 0.5; }
.shape.s1 { width: 130px; height: 130px; background: linear-gradient(135deg, var(--brand), transparent); top: 14%; left: 8%; animation: float 8s var(--ease) infinite; }
.shape.s2 { width: 90px; height: 90px; background: linear-gradient(135deg, var(--brand-dark), transparent); top: 62%; left: 14%; animation: float 10s var(--ease) infinite reverse; }
.shape.s3 { width: 160px; height: 160px; background: linear-gradient(135deg, var(--brand), transparent); top: 20%; right: 9%; animation: float 12s var(--ease) infinite; }
.shape.s4 { width: 70px; height: 70px; background: linear-gradient(135deg, var(--brand-light), transparent); bottom: 12%; right: 18%; animation: float 9s var(--ease) infinite reverse; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-26px) rotate(18deg); } }

.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600;
  color: var(--brand-dark); background: var(--surface); border: 1px solid var(--border);
  padding: 7px 15px; border-radius: 100px; box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
[data-theme="dark"] .hero-badge { color: var(--brand); }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,0.2); }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 18px; }
.hero h1 .grad { background: linear-gradient(120deg, var(--brand), var(--brand-dark)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.sub { font-size: 1.14rem; color: var(--text-soft); max-width: 540px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.hero-trust div { }
.hero-trust b { font-family: var(--font-head); font-size: 1.5rem; color: var(--heading); display: block; }
.hero-trust span { font-size: 0.85rem; color: var(--text-muted); }

.hero-visual { position: relative; }
.hero-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 22px; transform: rotate(-2deg);
}
.hero-card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.hero-card-top .dots { display: flex; gap: 6px; }
.hero-card-top .dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.hero-card-top .dots i:nth-child(1){ background:#ff5f57;} .hero-card-top .dots i:nth-child(2){ background:#febc2e;} .hero-card-top .dots i:nth-child(3){ background:#28c840;}
.mini-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mini-tool { background: var(--surface-2); border-radius: var(--radius-sm); padding: 16px 10px; text-align: center; transition: transform 0.25s var(--ease); }
.mini-tool:hover { transform: translateY(-5px); }
.mini-tool .ic { width: 40px; height: 40px; margin: 0 auto 8px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); }
.mini-tool .ic svg { width: 20px; height: 20px; }
.mini-tool small { font-size: 0.72rem; color: var(--text-soft); font-weight: 500; }

/* ---------- Search ---------- */
.tool-search-wrap { position: relative; max-width: 620px; margin: 0 auto 8px; }
.tool-search {
  display: flex; align-items: center; gap: 10px; background: var(--surface); border: 2px solid var(--border);
  border-radius: 100px; padding: 6px 6px 6px 20px; box-shadow: var(--shadow); transition: border-color 0.2s var(--ease);
}
.tool-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-glow); }
.tool-search svg { width: 20px; height: 20px; color: var(--text-muted); flex-shrink: 0; }
.tool-search input { flex: 1; border: none; background: transparent; color: var(--text); padding: 10px 0; }
.tool-search input:focus { outline: none; }
.search-suggestions {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 8px; z-index: 30; display: none; max-height: 320px; overflow-y: auto;
}
.search-suggestions.show { display: block; }
.search-suggestions a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 9px; color: var(--text); }
.search-suggestions a:hover, .search-suggestions a.active { background: var(--surface-2); }
.search-suggestions .s-ic { width: 34px; height: 34px; border-radius: 9px; background: var(--brand-light); color: var(--brand-dark); display: grid; place-items: center; flex-shrink: 0; }
[data-theme="dark"] .search-suggestions .s-ic { background: rgba(0,188,212,0.15); color: var(--brand); }
.search-suggestions .s-ic svg { width: 18px; height: 18px; }
.search-suggestions b { font-size: 0.92rem; font-weight: 600; } .search-suggestions small { font-size: 0.78rem; color: var(--text-muted); display: block; }
.search-empty { padding: 18px; text-align: center; color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Tool cards grid ---------- */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.tool-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; position: relative; overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.tool-card::before {
  content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, var(--brand-glow), transparent 60%);
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.tool-card:hover { transform: translateY(-8px); box-shadow: 0 20px 44px var(--brand-glow); border-color: var(--brand); }
.tool-card:hover::before { opacity: 0.5; }
.tool-card > * { position: relative; z-index: 1; }
.tool-ic {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; color: #fff; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark)); box-shadow: 0 8px 18px var(--brand-glow);
  transition: transform 0.3s var(--ease);
}
.tool-card:hover .tool-ic { transform: scale(1.08) rotate(-6deg); }
.tool-ic svg { width: 27px; height: 27px; }
.tool-card h3 { font-size: 1.12rem; margin-bottom: 7px; }
.tool-card p { font-size: 0.9rem; color: var(--text-soft); margin-bottom: 18px; min-height: 40px; }
.tool-card .open-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand-dark); font-size: 0.92rem; }
[data-theme="dark"] .tool-card .open-link { color: var(--brand); }
.tool-card .open-link svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.tool-card:hover .open-link svg { transform: translateX(4px); }
.tool-card.hide { display: none; }
.tool-tag { position: absolute; top: 16px; right: 16px; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--brand-dark); background: var(--brand-light); padding: 4px 9px; border-radius: 100px; z-index: 2; }
[data-theme="dark"] .tool-tag { background: rgba(0,188,212,0.15); color: var(--brand); }

.tools-filter { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.filter-btn { padding: 8px 18px; border-radius: 100px; font-weight: 600; font-size: 0.88rem; color: var(--text-soft); background: var(--surface); border: 1px solid var(--border); transition: all 0.2s var(--ease); }
.filter-btn:hover, .filter-btn.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- Ad slots ---------- */
.ad-slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 10px, var(--surface) 10px, var(--surface) 20px);
  border: 1px dashed var(--border); border-radius: var(--radius); color: var(--text-muted);
  text-align: center; margin: 0 auto; padding: 14px; overflow: hidden;
}
.ad-slot small { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.ad-slot .ad-label { font-size: 0.85rem; color: var(--text-soft); font-weight: 600; margin-top: 2px; }
.ad-header { width: 100%; max-width: 728px; min-height: 90px; margin: 22px auto; }
.ad-inline { width: 100%; min-height: 100px; margin: 34px auto; }
.ad-footer { width: 100%; min-height: 90px; margin: 22px auto 0; }
.ad-sidebar { width: 300px; min-height: 250px; }

/* ---------- Why choose / feature cards ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-card .f-ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; background: var(--brand-light); color: var(--brand-dark); }
[data-theme="dark"] .feature-card .f-ic { background: rgba(0,188,212,0.14); color: var(--brand); }
.feature-card .f-ic svg { width: 25px; height: 25px; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.92rem; color: var(--text-soft); }

/* ---------- Stats ---------- */
.stats { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat b { font-family: var(--font-head); font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; display: block; line-height: 1; }
.stat span { font-size: 0.95rem; opacity: 0.9; margin-top: 8px; display: block; }

/* ---------- Testimonials ---------- */
.tst-viewport { overflow: hidden; max-width: 760px; margin: 0 auto; }
.tst-track { display: flex; transition: transform 0.55s var(--ease); }
.tst-slide { min-width: 100%; padding: 6px; }
.tst-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px; text-align: center; box-shadow: var(--shadow); }
.tst-stars { color: #f5a623; margin-bottom: 14px; font-size: 1.1rem; letter-spacing: 2px; }
.tst-card p { font-size: 1.1rem; color: var(--text); font-style: italic; margin-bottom: 22px; }
.tst-user { display: flex; align-items: center; justify-content: center; gap: 13px; }
.tst-avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 1.15rem; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); }
.tst-user b { font-size: 0.98rem; } .tst-user small { color: var(--text-muted); font-size: 0.82rem; display: block; }
.tst-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 26px; }
.tst-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); display: grid; place-items: center; transition: all 0.2s var(--ease); }
.tst-arrow:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.tst-arrow svg { width: 20px; height: 20px; }
.tst-dots { display: flex; gap: 8px; }
.tst-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); transition: all 0.25s var(--ease); }
.tst-dot.active { background: var(--brand); width: 26px; border-radius: 100px; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }
.blog-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.blog-thumb { height: 190px; position: relative; display: grid; place-items: center; color: #fff; overflow: hidden; }
.blog-thumb svg { width: 64px; height: 64px; opacity: 0.85; }
.blog-thumb.g1 { background: linear-gradient(135deg,#00BCD4,#0097A7);} .blog-thumb.g2 { background: linear-gradient(135deg,#5C6BC0,#3949AB);} .blog-thumb.g3 { background: linear-gradient(135deg,#26A69A,#00796B);} .blog-thumb.g4 { background: linear-gradient(135deg,#7E57C2,#512DA8);} .blog-thumb.g5 { background: linear-gradient(135deg,#EC407A,#C2185B);}
.blog-cat { position: absolute; top: 14px; left: 14px; font-size: 0.72rem; font-weight: 700; background: rgba(255,255,255,0.9); color: #0f1b28; padding: 4px 11px; border-radius: 100px; text-transform: uppercase; letter-spacing: 0.04em; }
.blog-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.blog-meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 10px; display: flex; gap: 10px; align-items: center; }
.blog-card h3 { font-size: 1.15rem; margin-bottom: 10px; line-height: 1.35; }
.blog-card h3 a { color: var(--heading); } .blog-card h3 a:hover { color: var(--brand-dark); }
.blog-card p { font-size: 0.9rem; color: var(--text-soft); margin-bottom: 16px; flex: 1; }
.read-more { font-weight: 600; color: var(--brand-dark); font-size: 0.9rem; display: inline-flex; align-items: center; gap: 6px; }
[data-theme="dark"] .read-more, [data-theme="dark"] .blog-card h3 a:hover { color: var(--brand); }
.read-more svg { width: 15px; height: 15px; transition: transform 0.2s var(--ease); }
.read-more:hover svg { transform: translateX(4px); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--heading); }
.faq-q .chev { width: 22px; height: 22px; flex-shrink: 0; color: var(--brand-dark); transition: transform 0.3s var(--ease); }
[data-theme="dark"] .faq-q .chev { color: var(--brand); }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.faq-a-inner { padding: 0 22px 20px; color: var(--text-soft); font-size: 0.95rem; }

/* ---------- Newsletter ---------- */
.newsletter { position: relative; }
.newsletter-card {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark)); border-radius: var(--radius-lg);
  padding: 50px 40px; text-align: center; position: relative; overflow: hidden; color: #fff;
  box-shadow: 0 24px 60px var(--brand-glow);
}
.newsletter-card::before { content:""; position:absolute; inset:0; background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.18), transparent 45%), radial-gradient(circle at 85% 80%, rgba(255,255,255,0.12), transparent 40%); }
.newsletter-card > * { position: relative; z-index: 1; }
.newsletter-card h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }
.newsletter-card p { opacity: 0.92; max-width: 480px; margin: 0 auto 26px; }
.newsletter-form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; background: rgba(255,255,255,0.15); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.3); border-radius: 100px; padding: 6px; }
.newsletter-form input { flex: 1; background: transparent; border: none; color: #fff; padding: 12px 18px; }
.newsletter-form input::placeholder { color: rgba(255,255,255,0.75); }
.newsletter-form input:focus { outline: none; }
.newsletter-form button { background: #fff; color: var(--brand-dark); font-weight: 700; padding: 12px 26px; border-radius: 100px; transition: transform 0.2s var(--ease); }
.newsletter-form button:hover { transform: scale(1.05); }
.newsletter-note { font-size: 0.82rem; opacity: 0.8; margin-top: 14px; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 60px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 44px; }
.footer-col h4 { font-size: 1rem; margin-bottom: 18px; color: var(--heading); }
.footer-about p { font-size: 0.92rem; color: var(--text-soft); margin: 16px 0; max-width: 320px; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col ul a { color: var(--text-soft); font-size: 0.92rem; transition: color 0.2s var(--ease), padding 0.2s var(--ease); }
.footer-col ul a:hover { color: var(--brand-dark); padding-left: 5px; }
[data-theme="dark"] .footer-col ul a:hover { color: var(--brand); }
.social-row { display: flex; gap: 11px; flex-wrap: wrap; }
.social-row a {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--text-soft);
  background: var(--surface); border: 1px solid var(--border); transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.social-row a:hover { transform: translateY(-4px) scale(1.08); background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 10px 22px var(--brand-glow); }
.social-row a svg { width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { font-size: 0.88rem; color: var(--text-muted); }
.footer-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom nav a { font-size: 0.85rem; color: var(--text-muted); }
.footer-bottom nav a:hover { color: var(--brand-dark); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; }
.breadcrumb a { color: var(--text-soft); } .breadcrumb a:hover { color: var(--brand-dark); }
.breadcrumb .sep { opacity: 0.5; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 46px 0 30px; position: relative; overflow: hidden; }
.page-hero::before { content:""; position:absolute; inset:0; background: radial-gradient(circle at 85% 0%, rgba(0,188,212,0.12), transparent 45%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 12px; }
.page-hero p { color: var(--text-soft); max-width: 640px; font-size: 1.05rem; }

/* ---------- Tool workspace ---------- */
.tool-layout { display: grid; grid-template-columns: 1fr 300px; gap: 30px; align-items: start; }
.tool-main { min-width: 0; }
.tool-side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 24px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.panel + .panel { margin-top: 22px; }
.panel h2, .panel h3 { font-size: 1.15rem; margin-bottom: 6px; }
.panel .hint { color: var(--text-soft); font-size: 0.9rem; margin-bottom: 18px; }

.dropzone {
  border: 2px dashed var(--border); border-radius: var(--radius); padding: 40px 20px; text-align: center;
  cursor: pointer; transition: all 0.25s var(--ease); background: var(--surface-2);
}
.dropzone:hover, .dropzone.drag { border-color: var(--brand); background: var(--brand-light); }
[data-theme="dark"] .dropzone:hover, [data-theme="dark"] .dropzone.drag { background: rgba(0,188,212,0.1); }
.dropzone .dz-ic { width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-light); color: var(--brand-dark); }
[data-theme="dark"] .dropzone .dz-ic { background: rgba(0,188,212,0.15); color: var(--brand); }
.dropzone .dz-ic svg { width: 28px; height: 28px; }
.dropzone b { display: block; font-family: var(--font-head); color: var(--heading); margin-bottom: 4px; }
.dropzone small { color: var(--text-muted); font-size: 0.85rem; }

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; color: var(--heading); }
.field input[type="text"], .field input[type="number"], .field input[type="date"], .field input[type="email"], .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); transition: border-color 0.2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-glow); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check-row { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.check-row input { width: 18px; height: 18px; accent-color: var(--brand); }
.check-row label { margin: 0; font-weight: 500; font-size: 0.92rem; }
input[type="range"] { width: 100%; accent-color: var(--brand); height: 6px; }
.range-val { font-family: var(--font-head); font-weight: 700; color: var(--brand-dark); }
[data-theme="dark"] .range-val { color: var(--brand); }

.preview-box { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; text-align: center; min-height: 120px; display: grid; place-items: center; }
.preview-box img { max-height: 320px; border-radius: 8px; box-shadow: var(--shadow); }
.preview-box canvas { max-width: 100%; }
.preview-empty { color: var(--text-muted); font-size: 0.9rem; }

.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0; }
.result-stat { background: var(--surface-2); border-radius: var(--radius-sm); padding: 16px; text-align: center; }
.result-stat b { font-family: var(--font-head); font-size: 1.35rem; color: var(--brand-dark); display: block; }
[data-theme="dark"] .result-stat b { color: var(--brand); }
.result-stat span { font-size: 0.8rem; color: var(--text-muted); }

.summary-card { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; border-radius: var(--radius); padding: 26px; box-shadow: 0 14px 34px var(--brand-glow); }
.summary-card .big { font-family: var(--font-head); font-size: 2.4rem; font-weight: 800; line-height: 1; margin: 6px 0 4px; }
.summary-card .lbl { opacity: 0.9; font-size: 0.9rem; }
.summary-card hr { border: none; border-top: 1px solid rgba(255,255,255,0.25); margin: 18px 0; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 0.95rem; }
.summary-row span { opacity: 0.9; } .summary-row b { font-weight: 700; }

.file-list { margin: 16px 0; display: flex; flex-direction: column; gap: 10px; }
.file-item { display: flex; align-items: center; gap: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; cursor: grab; }
.file-item.dragging { opacity: 0.5; }
.file-item .fi-ic { width: 36px; height: 36px; border-radius: 9px; background: var(--brand-light); color: var(--brand-dark); display: grid; place-items: center; flex-shrink: 0; }
[data-theme="dark"] .file-item .fi-ic { background: rgba(0,188,212,0.15); color: var(--brand); }
.file-item .fi-ic svg { width: 18px; height: 18px; }
.file-item .fi-name { flex: 1; min-width: 0; font-size: 0.9rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-item .fi-size { font-size: 0.8rem; color: var(--text-muted); }
.file-item .fi-remove { color: var(--text-muted); width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; }
.file-item .fi-remove:hover { background: rgba(239,68,68,0.12); color: #ef4444; }
.file-item .fi-remove svg { width: 16px; height: 16px; }
.drag-handle { color: var(--text-muted); cursor: grab; } .drag-handle svg { width: 16px; height: 16px; }
.file-item > svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--text-muted); }
.file-item:hover > svg { color: var(--brand); }

.tool-note { background: var(--surface-2); border-left: 3px solid var(--brand); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 14px 18px; font-size: 0.88rem; color: var(--text-soft); margin-top: 20px; }
.status-msg { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 500; margin: 14px 0; display: none; }
.status-msg.show { display: block; }
.status-msg.ok { background: rgba(34,197,94,0.12); color: #16a34a; }
.status-msg.err { background: rgba(239,68,68,0.12); color: #dc2626; }
.status-msg.info { background: var(--brand-light); color: var(--brand-dark); }
[data-theme="dark"] .status-msg.info { background: rgba(0,188,212,0.12); color: var(--brand); }

.img-thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin-top: 16px; }
.img-thumb { position: relative; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.img-thumb img { width: 100%; height: 120px; object-fit: cover; }
.img-thumb .th-x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; background: rgba(0,0,0,0.6); color: #fff; display: grid; place-items: center; }
.img-thumb .th-x svg { width: 14px; height: 14px; }
.img-thumb .th-dl { position: absolute; bottom: 6px; right: 6px; width: 30px; height: 30px; border-radius: 8px; background: var(--brand); color: #fff; display: grid; place-items: center; }
.img-thumb .th-dl svg { width: 16px; height: 16px; }
.img-thumb .th-num { position: absolute; top: 6px; left: 6px; background: var(--brand); color:#fff; font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 100px; }

/* ---------- Prose (legal/blog content) ---------- */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.5rem; margin: 34px 0 14px; }
.prose h3 { font-size: 1.2rem; margin: 26px 0 10px; }
.prose p { margin-bottom: 16px; color: var(--text-soft); }
.prose ul, .prose ol { margin: 0 0 18px 22px; color: var(--text-soft); }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--brand-dark); text-decoration: underline; }
[data-theme="dark"] .prose a { color: var(--brand); }
.prose strong { color: var(--heading); }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 30px; }
.toc h4 { margin-bottom: 12px; } .toc ul { list-style: none; margin: 0; } .toc li { margin-bottom: 8px; }
.last-updated { display: inline-block; font-size: 0.85rem; color: var(--text-muted); background: var(--surface-2); padding: 6px 14px; border-radius: 100px; margin-bottom: 8px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.contact-info-card { display: flex; gap: 14px; align-items: flex-start; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 16px; }
.contact-info-card .ci-ic { width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; background: var(--brand-light); color: var(--brand-dark); }
[data-theme="dark"] .contact-info-card .ci-ic { background: rgba(0,188,212,0.14); color: var(--brand); }
.contact-info-card .ci-ic svg { width: 22px; height: 22px; }
.contact-info-card b { display: block; margin-bottom: 3px; } .contact-info-card span { color: var(--text-soft); font-size: 0.92rem; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; } .reveal.d3 { transition-delay: 0.24s; } .reveal.d4 { transition-delay: 0.32s; }

/* ---------- 404 ---------- */
.err-wrap { text-align: center; padding: 80px 0; }
.err-code { font-family: var(--font-head); font-size: clamp(6rem, 20vw, 12rem); font-weight: 800; line-height: 1; background: linear-gradient(120deg, var(--brand), var(--brand-dark)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------- Back to top ---------- */
.to-top { position: fixed; bottom: 24px; right: 24px; width: 48px; height: 48px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px var(--brand-glow); opacity: 0; visibility: hidden; transform: translateY(12px); transition: all 0.3s var(--ease); z-index: 90; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); } .to-top svg { width: 22px; height: 22px; }

/* ---------- Skip link ---------- */
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--brand); color: #fff; padding: 10px 18px; border-radius: 8px; z-index: 200; font-weight: 600; }
.skip-link:focus { left: 8px; color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 460px; }
  .tool-layout { grid-template-columns: 1fr; }
  .tool-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .tool-side .panel, .tool-side .ad-slot { flex: 1; min-width: 260px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}
@media (max-width: 760px) {
  .nav-links { position: fixed; top: var(--nav-h); left: 0; right: 0; background: var(--bg-alt); border-bottom: 1px solid var(--border); flex-direction: column; align-items: stretch; padding: 12px; gap: 2px; box-shadow: var(--shadow-lg); transform: translateY(-140%); transition: transform 0.35s var(--ease); max-height: calc(100vh - var(--nav-h)); overflow-y: auto; }
  .nav-links.open { transform: none; }
  .nav-link { padding: 13px 16px; }
  .hamburger { display: grid; place-items: center; }
  .section { padding: 54px 0; }
  .field-row { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; background: transparent; border: none; padding: 0; }
  .newsletter-form input { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); border-radius: 100px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-trust { gap: 18px; }
  .mini-tools { grid-template-columns: repeat(2, 1fr); }
  .newsletter-card { padding: 36px 22px; }
}
