/* =====================================================================
   ToolKit Hub — Global Styles
   Modern glassmorphism UI, responsive, dark/light themes
   ===================================================================== */

:root {
  /* Brand palette */
  --brand-1: #6366f1;       /* indigo  */
  --brand-2: #ec4899;       /* pink    */
  --brand-3: #14b8a6;       /* teal    */
  --brand-grad: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);

  /* Light theme tokens */
  --bg: #f5f7ff;
  --bg-elev: rgba(255, 255, 255, 0.65);
  --bg-elev-solid: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: rgba(99, 102, 241, 0.18);
  --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.12);
  --glass-blur: 18px;

  /* Sizing */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1180px;
  --header-h: 70px;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --transition: 220ms cubic-bezier(.4, 0, .2, 1);
}

[data-theme="dark"] {
  --bg: #0b1020;
  --bg-elev: rgba(22, 27, 50, 0.55);
  --bg-elev-solid: #161b32;
  --text: #e6e9f5;
  --text-muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand-1);
  color: #fff;
  padding: .6rem 1rem;
  z-index: 9999;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ---------- Animated background blobs ---------- */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  width: 50vmax;
  height: 50vmax;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
  animation: blobFloat 22s ease-in-out infinite;
}
.blob-1 { background: var(--brand-1); top: -10vmax; left: -10vmax; }
.blob-2 { background: var(--brand-2); bottom: -10vmax; right: -10vmax; animation-delay: -8s; }
.blob-3 { background: var(--brand-3); top: 40%; left: 40%; animation-delay: -14s; }
[data-theme="dark"] .blob { opacity: .22; }

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(6vmax, -4vmax) scale(1.1); }
  66% { transform: translate(-5vmax, 5vmax) scale(.95); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--glass-shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -.02em;
}
.brand-mark { font-size: 1.5rem; }
.main-nav {
  display: flex;
  gap: 1.4rem;
  margin-left: auto;
  margin-right: 1rem;
}
.main-nav a {
  position: relative;
  padding: .35rem 0;
  color: var(--text-muted);
  font-weight: 500;
  transition: color var(--transition);
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--brand-grad);
  transition: width var(--transition);
}
.main-nav a:hover,
.main-nav a.active { color: var(--text); }
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }

.header-actions { display: flex; gap: .5rem; align-items: center; }
.icon-btn {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--text);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  transition: transform var(--transition), background var(--transition);
}
.icon-btn:hover { transform: translateY(-2px); background: var(--brand-1); color: #fff; }
.icon-btn svg { width: 20px; height: 20px; }

[data-theme="light"] .theme-icon-dark { display: none; }
[data-theme="dark"] .theme-icon-light { display: none; }

.menu-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--brand-grad);
  color: #fff;
  box-shadow: 0 6px 18px rgba(99, 102, 241, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(99, 102, 241, .45); }
.btn-ghost {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Glass card ---------- */
.glass-card {
  background: var(--bg-elev);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  padding: 1.6rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 4.5rem 0 3rem;
  text-align: center;
}
.hero-eyebrow {
  display: inline-block;
  padding: .35rem .9rem;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  font-weight: 500;
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -.03em;
  margin: 0 0 1rem;
  font-weight: 800;
}
.hero h1 .grad {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 2rem;
}
.hero-search {
  max-width: 580px;
  margin: 0 auto;
  position: relative;
}
.hero-search input {
  width: 100%;
  padding: 1.05rem 1.2rem 1.05rem 3rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elev);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  color: var(--text);
  font-size: 1rem;
  box-shadow: var(--glass-shadow);
  outline: none;
  transition: border var(--transition), box-shadow var(--transition);
}
.hero-search input:focus {
  border-color: var(--brand-1);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, .18);
}
.hero-search .search-icon {
  position: absolute;
  left: 1rem; top: 50%;
  transform: translateY(-50%);
  width: 22px; height: 22px;
  color: var(--text-muted);
}

.hero-stats {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.4rem;
}
.hero-stat strong {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stat span { color: var(--text-muted); font-size: .9rem; }

/* ---------- Section title ---------- */
.section { padding: 3rem 0; }
.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 1.8rem;
  gap: 1rem;
}
.section-title h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0;
  font-weight: 700;
  letter-spacing: -.02em;
}
.section-title p { margin: .25rem 0 0; color: var(--text-muted); }
.section-title .view-all {
  color: var(--brand-1);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  white-space: nowrap;
}
.section-title .view-all svg { width: 16px; height: 16px; }

/* ---------- Tool grid ---------- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.1rem;
}
.tool-card {
  position: relative;
  display: block;
  padding: 1.5rem;
  background: var(--bg-elev);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  transition: transform var(--transition), box-shadow var(--transition), border var(--transition);
  overflow: hidden;
}
.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--brand-grad);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: -1;
}
.tool-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 16px 36px rgba(99, 102, 241, .25);
}
.tool-card:hover::before { opacity: .06; }

.tool-card .tool-icon {
  width: 54px; height: 54px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  background: var(--brand-grad);
  color: #fff;
  margin-bottom: 1rem;
  transition: transform var(--transition);
}
.tool-card:hover .tool-icon { transform: scale(1.08) rotate(-4deg); }
.tool-card .tool-icon svg { width: 26px; height: 26px; }
.tool-card h3 {
  margin: 0 0 .4rem;
  font-size: 1.05rem;
  font-weight: 700;
}
.tool-card p {
  margin: 0;
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.tool-card .badge-new {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--brand-2);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  padding: .2rem .5rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ---------- Tool page ---------- */
.tool-page { padding: 1.5rem 0 4rem; }
.breadcrumbs {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 1.4rem;
}
.breadcrumbs a:hover { color: var(--brand-1); }

.tool-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.8rem;
}
.tool-icon-lg {
  width: 64px; height: 64px;
  border-radius: var(--radius);
  background: var(--brand-grad);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 10px 24px rgba(99, 102, 241, .35);
}
.tool-icon-lg svg { width: 32px; height: 32px; }
.tool-header h1 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: -.02em;
  font-weight: 800;
}
.tool-subtitle { margin: .35rem 0 0; color: var(--text-muted); }

.tool-shell {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.8rem;
  align-items: start;
}

.tool-main { min-width: 0; }
.tool-main .glass-card { padding: 1.8rem; }

.tool-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* ---------- Form controls ---------- */
.field { margin-bottom: 1.2rem; }
.field label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: .45rem;
  color: var(--text);
}
.input, .textarea, .select {
  width: 100%;
  padding: .8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elev-solid);
  color: var(--text);
  outline: none;
  transition: border var(--transition), box-shadow var(--transition);
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--brand-1);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, .15);
}
.textarea { min-height: 140px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: .5rem 0 1rem;
}
.checkbox-row label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 500;
  cursor: pointer;
  font-size: .9rem;
  padding: .5rem .8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elev-solid);
}
.checkbox-row input { accent-color: var(--brand-1); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.2rem;
}

.output-box {
  margin-top: 1.4rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--bg-elev-solid);
  border: 1px solid var(--border);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  word-break: break-all;
  white-space: pre-wrap;
  min-height: 60px;
}
.output-box:empty::before {
  content: 'Output will appear here…';
  color: var(--text-muted);
  font-style: italic;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .9rem;
  margin-top: 1.4rem;
}
.result-tile {
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: var(--bg-elev-solid);
  border: 1px solid var(--border);
  text-align: center;
}
.result-tile strong {
  display: block;
  font-size: 1.5rem;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: .2rem;
}
.result-tile span { color: var(--text-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }

/* Toggle / switch */
.switch { position: relative; display: inline-block; width: 46px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; inset: 0;
  background: var(--border);
  border-radius: 999px;
  transition: var(--transition);
}
.slider::before {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: var(--transition);
}
.switch input:checked + .slider { background: var(--brand-1); }
.switch input:checked + .slider::before { transform: translateX(20px); }

/* ---------- Ad slots ---------- */
.ad-slot {
  margin: 1.4rem 0;
  min-height: 90px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: .85rem;
  text-align: center;
  position: relative;
}
.ad-slot .ad-label {
  position: absolute;
  top: 4px; left: 8px;
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  opacity: .5;
}
.ad-side { min-height: 250px; margin: 0; }
.ad-footer { min-height: 100px; }

/* ---------- Share / related ---------- */
.share-card h3, .related-card h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
}
.share-buttons { display: flex; gap: .5rem; flex-wrap: wrap; }
.share-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  background: var(--bg-elev-solid);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: .9rem;
  transition: transform var(--transition), background var(--transition), color var(--transition);
}
.share-btn:hover { transform: translateY(-2px); }
.share-tw:hover  { background: #1da1f2; color: #fff; }
.share-fb:hover  { background: #1877f2; color: #fff; }
.share-li:hover  { background: #0a66c2; color: #fff; }
.share-wa:hover  { background: #25d366; color: #fff; }
.share-copy:hover{ background: var(--brand-1); color: #fff; }

.related-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.related-list a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem .7rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.related-list a:hover { background: var(--bg-elev-solid); }
.related-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--brand-grad);
  color: #fff;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.related-icon svg { width: 18px; height: 18px; }
.related-list strong { display: block; font-size: .88rem; }
.related-list small { color: var(--text-muted); font-size: .78rem; line-height: 1.3; display: block; }

/* ---------- SEO content ---------- */
.tool-seo-content { margin-top: 2.4rem; }
.tool-seo-content h2 { margin-top: 0; font-size: 1.4rem; }
.tool-seo-content h3 { font-size: 1.1rem; margin-top: 1.4rem; }
.tool-seo-content p { color: var(--text-muted); margin: .8rem 0; }
.tool-seo-content ul { padding-left: 1.4rem; color: var(--text-muted); }
.tool-seo-content li { margin: .4rem 0; }
.tool-seo-content strong { color: var(--text); }

/* ---------- Info pages ---------- */
.page-section { padding: 2.5rem 0 4rem; }
.page-section h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -.02em;
  margin: 0 0 1.2rem;
}
.page-section h2 { font-size: 1.4rem; margin-top: 2rem; }
.page-section p, .page-section li { color: var(--text-muted); }
.page-section ul, .page-section ol { padding-left: 1.4rem; }
.page-section li { margin: .4rem 0; }

/* FAQ accordion */
.faq-list { display: flex; flex-direction: column; gap: .9rem; }
.faq-item {
  background: var(--bg-elev);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item summary {
  padding: 1.1rem 1.3rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--brand-1);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { background: var(--bg-elev-solid); }
.faq-item .faq-body {
  padding: 0 1.3rem 1.2rem;
  color: var(--text-muted);
}

/* Contact form */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; }
.contact-form .field { margin-bottom: 1rem; }
.contact-info ul { list-style: none; padding: 0; margin: 1rem 0 0; }
.contact-info li { margin: .8rem 0; display: flex; gap: .6rem; align-items: center; }

/* ---------- CTA ---------- */
.cta {
  margin: 3rem 0;
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  background: var(--brand-grad);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle, rgba(255,255,255,.15) 0%, transparent 60%);
  animation: blobFloat 14s ease-in-out infinite;
}
.cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 .6rem; position: relative; }
.cta p { margin: 0 0 1.4rem; opacity: .92; position: relative; }
.cta .btn-ghost {
  background: rgba(255, 255, 255, .15);
  color: #fff;
  border-color: rgba(255, 255, 255, .3);
  position: relative;
}
.cta .btn-ghost:hover { background: rgba(255, 255, 255, .25); }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 4rem;
  padding-top: 3rem;
  background: var(--bg-elev);
  backdrop-filter: blur(var(--glass-blur));
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 2.5rem;
}
.footer-tagline { color: var(--text-muted); margin: .8rem 0 1.2rem; font-size: .92rem; max-width: 280px; }
.footer-col h4 { margin: 0 0 1rem; font-size: .95rem; font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: .5rem 0; }
.footer-col a { color: var(--text-muted); font-size: .9rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--brand-1); }

.social-links { display: flex; gap: .5rem; }
.social-links a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-elev-solid);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  font-weight: 700; font-size: .85rem;
  transition: var(--transition);
}
.social-links a:hover { transform: translateY(-2px); background: var(--brand-grad); color: #fff; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.4rem 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem;
  font-size: .85rem;
  color: var(--text-muted);
}

/* ---------- Scroll to top ---------- */
.scroll-top {
  position: fixed;
  right: 1.4rem; bottom: 1.4rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--brand-grad);
  color: #fff;
  font-size: 1.2rem;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(99, 102, 241, .4);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: var(--transition);
  z-index: 90;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 1.4rem; left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-elev-solid);
  color: var(--text);
  padding: .9rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: var(--glass-shadow);
  font-weight: 500;
  font-size: .9rem;
  z-index: 200;
  transition: transform var(--transition);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- Animations on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .tool-shell { grid-template-columns: 1fr; }
  .tool-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    background: var(--bg-elev-solid);
    padding: 1.4rem;
    gap: .8rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform var(--transition);
    box-shadow: var(--glass-shadow);
  }
  .main-nav.open { transform: translateY(0); }
  .menu-toggle { display: grid; }
  .footer-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .tool-header { flex-direction: column; text-align: center; align-items: center; }
  .section-title { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .container { padding-inline: 1rem; }
  .hero { padding: 3rem 0 2rem; }
  .hero-stats { gap: 1.4rem; }
  .tool-card { padding: 1.2rem; }
}

/* Print */
@media print {
  .site-header, .site-footer, .ad-slot, .scroll-top, .tool-sidebar { display: none; }
  body { background: #fff; }
}
