:root {
  --site-bg: #080a12;
  --surface: #111827;
  --surface-soft: #171f2e;
  --text: #f8fafc;
  --muted: #a7b0c0;
  --primary: #ef4444;
  --primary-dark: #dc2626;
  --navy: #fff1f2;
  --border: rgba(248, 113, 113, 0.22);
  --ring: rgba(239, 68, 68, 0.28);
  --shadow-sm: 0 18px 46px rgba(0, 0, 0, 0.34);
  --shadow-xs: 0 10px 32px rgba(0, 0, 0, 0.28);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --font-main: Inter, Manrope, "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --header-bg: rgba(8, 10, 18, 0.88);
  --input-bg: #111827;
  --card-bg: linear-gradient(180deg, #131b2b, #0f172a);
  --banner-bg: linear-gradient(135deg, #101827 0%, #611722 48%, #991b1b 100%);
  --footer-bg: #05070d;
  --hero-bg:
    linear-gradient(115deg, rgba(239, 68, 68, 0.18), transparent 32%),
    linear-gradient(245deg, rgba(153, 27, 27, 0.38), transparent 36%),
    linear-gradient(180deg, #16080b 0%, #080a12 84%);
  --hero-panel: rgba(17, 24, 39, 0.74);
  --hero-line: rgba(248, 113, 113, 0.2);
}

:root[data-theme="light"] {
  --site-bg: #fff7f7;
  --surface: #ffffff;
  --surface-soft: #fff1f2;
  --text: #170f17;
  --muted: #67565d;
  --primary: #dc2626;
  --primary-dark: #991b1b;
  --navy: #220f14;
  --border: rgba(153, 27, 27, 0.16);
  --ring: rgba(220, 38, 38, 0.2);
  --shadow-sm: 0 18px 46px rgba(127, 29, 29, 0.14);
  --shadow-xs: 0 10px 32px rgba(127, 29, 29, 0.12);
  --header-bg: rgba(255, 247, 247, 0.86);
  --input-bg: #ffffff;
  --card-bg: linear-gradient(180deg, #ffffff, #fff8f8);
  --banner-bg: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 46%, #fecaca 100%);
  --footer-bg: #fff1f2;
  --hero-bg:
    linear-gradient(115deg, rgba(220, 38, 38, 0.14), transparent 34%),
    linear-gradient(245deg, rgba(251, 113, 133, 0.24), transparent 38%),
    linear-gradient(180deg, #fff7f7 0%, #ffffff 86%);
  --hero-panel: rgba(255, 255, 255, 0.78);
  --hero-line: rgba(153, 27, 27, 0.14);
}

html[data-theme="dark"] body {
  --site-bg: #080a12;
  --surface: #111827;
  --surface-soft: #171f2e;
  --text: #f8fafc;
  --muted: #a7b0c0;
  --primary: #ef4444;
  --primary-dark: #dc2626;
  --navy: #fff1f2;
  --border: rgba(248, 113, 113, 0.22);
  --ring: rgba(239, 68, 68, 0.28);
  --shadow-sm: 0 18px 46px rgba(0, 0, 0, 0.34);
  --shadow-xs: 0 10px 32px rgba(0, 0, 0, 0.28);
  --header-bg: rgba(8, 10, 18, 0.88);
  --input-bg: #111827;
  --card-bg: linear-gradient(180deg, #131b2b, #0f172a);
  --banner-bg: linear-gradient(135deg, #101827 0%, #611722 48%, #991b1b 100%);
  --footer-bg: #05070d;
  --hero-bg:
    linear-gradient(115deg, rgba(239, 68, 68, 0.18), transparent 32%),
    linear-gradient(245deg, rgba(153, 27, 27, 0.38), transparent 36%),
    linear-gradient(180deg, #16080b 0%, #080a12 84%);
  --hero-panel: rgba(17, 24, 39, 0.74);
  --hero-line: rgba(248, 113, 113, 0.2);
}

html[data-theme="light"] body {
  --site-bg: #fff7f7;
  --surface: #ffffff;
  --surface-soft: #fff1f2;
  --text: #170f17;
  --muted: #67565d;
  --primary: #dc2626;
  --primary-dark: #991b1b;
  --navy: #220f14;
  --border: rgba(153, 27, 27, 0.16);
  --ring: rgba(220, 38, 38, 0.2);
  --shadow-sm: 0 18px 46px rgba(127, 29, 29, 0.14);
  --shadow-xs: 0 10px 32px rgba(127, 29, 29, 0.12);
  --header-bg: rgba(255, 247, 247, 0.86);
  --input-bg: #ffffff;
  --card-bg: linear-gradient(180deg, #ffffff, #fff8f8);
  --banner-bg: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 46%, #fecaca 100%);
  --footer-bg: #fff1f2;
  --hero-bg:
    linear-gradient(115deg, rgba(220, 38, 38, 0.14), transparent 34%),
    linear-gradient(245deg, rgba(251, 113, 133, 0.24), transparent 38%),
    linear-gradient(180deg, #fff7f7 0%, #ffffff 86%);
  --hero-panel: rgba(255, 255, 255, 0.78);
  --hero-line: rgba(153, 27, 27, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--site-bg);
  color: var(--text);
  font-family: var(--font-main);
  overflow-x: hidden;
}

body a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

img {
  max-width: 100%;
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.premium-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.premium-nav {
  position: relative;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.premium-nav::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: min(760px, 74vw);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(248, 113, 113, 0.72), transparent);
  pointer-events: none;
}

.premium-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #dc2626, #7f1d1d);
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.3);
}

.premium-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.premium-nav-links a,
.mobile-panel a {
  color: #d1d5db;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 14px;
}

.premium-nav-links a:hover,
.premium-nav-links a:focus,
.mobile-panel a:hover,
.mobile-panel a:focus {
  color: #fff;
  background: rgba(239, 68, 68, 0.14);
  outline: none;
}

:root[data-theme="light"] .premium-nav-links a,
:root[data-theme="light"] .mobile-panel a {
  color: #4b1d25;
}

:root[data-theme="light"] .premium-nav-links a:hover,
:root[data-theme="light"] .premium-nav-links a:focus,
:root[data-theme="light"] .mobile-panel a:hover,
:root[data-theme="light"] .mobile-panel a:focus {
  color: var(--primary-dark);
  background: rgba(220, 38, 38, 0.1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-search {
  position: relative;
  width: min(280px, 24vw);
}

.header-search input,
.hero-search input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box !important;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  height: 42px;
  padding: 0 44px 0 16px;
}

.search-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #fca5a5;
  pointer-events: none;
}

.header-search input:focus,
.hero-search input:focus,
.tool-search-panel input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--ring);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--input-bg);
  color: var(--text);
  cursor: pointer;
}

.theme-toggle {
  min-width: 104px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 0 8px 0 13px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.82));
  color: #e5e7eb;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 10px 24px rgba(0, 0, 0, 0.18);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover,
.theme-toggle:focus {
  transform: translateY(-1px);
  outline: none;
  box-shadow: 0 0 0 4px var(--ring), 0 10px 24px rgba(0, 0, 0, 0.18);
}

.theme-toggle-label {
  min-width: 36px;
  color: currentColor;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
}

.theme-toggle-track {
  position: relative;
  width: 42px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.94);
  color: #94a3b8;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
}

.theme-toggle-track::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #334155, #0f172a);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.34);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.theme-toggle i {
  position: relative;
  z-index: 1;
  font-size: 11px;
}

:root[data-theme="light"] .theme-toggle-track::before {
  transform: translateX(16px);
  background: linear-gradient(135deg, #34d399, #059669);
  box-shadow: 0 8px 18px rgba(5, 150, 105, 0.32);
}

:root[data-theme="light"] .theme-toggle {
  border-color: rgba(153, 27, 27, 0.16);
  background: rgba(255, 255, 255, 0.78);
  color: #4b1d25;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42), 0 10px 24px rgba(127, 29, 29, 0.1);
}

:root[data-theme="light"] .theme-toggle-track {
  background: rgba(255, 255, 255, 0.7);
  color: #991b1b;
  box-shadow: inset 0 0 0 1px rgba(153, 27, 27, 0.14);
}

.mobile-theme-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  font-weight: 800;
}

.mobile-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  padding: 0 0 18px;
}

.mobile-panel.is-open {
  display: grid;
  gap: 8px;
}

.home .premium-header {
  position: sticky;
  padding: 22px 0 0;
  background: transparent;
  border-bottom: 0;
}

.home .premium-nav {
  min-height: 68px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 24px 70px rgba(180, 89, 110, 0.18);
}

.home .premium-nav::before {
  display: none;
}

html[data-theme="dark"] body.home .premium-nav {
  border-color: rgba(248, 113, 113, 0.18);
  background: rgba(17, 24, 39, 0.78);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.hero-premium {
  position: relative;
  margin-top: -90px;
  padding: 124px 0 72px;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 14%, rgba(255, 255, 255, 0.88), transparent 28%),
    radial-gradient(circle at 76% 12%, rgba(196, 150, 255, 0.2), transparent 30%),
    linear-gradient(135deg, #ffe1e4 0%, #fff7f8 46%, #f6eaff 100%);
}

html[data-theme="dark"] body .hero-premium {
  background:
    radial-gradient(circle at 16% 14%, rgba(127, 29, 29, 0.35), transparent 28%),
    radial-gradient(circle at 76% 12%, rgba(124, 58, 237, 0.18), transparent 30%),
    linear-gradient(135deg, #16080d 0%, #0b1020 54%, #1f1232 100%);
}

.hero-premium::before,
.hero-premium::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-premium::before {
  background:
    linear-gradient(62deg, transparent 8%, rgba(124, 58, 237, 0.55) 8.4%, transparent 9.1%),
    linear-gradient(62deg, transparent 31%, rgba(239, 68, 68, 0.18) 31.4%, transparent 32%),
    linear-gradient(62deg, transparent 70%, rgba(124, 58, 237, 0.38) 70.4%, transparent 71%);
}

.hero-premium::after {
  background:
    linear-gradient(120deg, transparent 15%, rgba(236, 72, 153, 0.24) 15.4%, transparent 16%),
    linear-gradient(120deg, transparent 83%, rgba(124, 58, 237, 0.28) 83.4%, transparent 84%);
}

.hero-decor,
.hero-decor span {
  position: absolute;
  pointer-events: none;
}

.hero-decor {
  inset: 0;
  z-index: 0;
}

.hero-line {
  width: 6px;
  height: 140px;
  border-radius: 999px;
  transform: rotate(-32deg);
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.68), rgba(124, 58, 237, 0));
}

.line-one {
  left: 9%;
  top: -22px;
}

.line-two {
  left: 34%;
  bottom: 34px;
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.36), rgba(239, 68, 68, 0));
}

.line-three {
  right: 20%;
  top: 24px;
}

.line-four {
  right: 8%;
  bottom: 18px;
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.36), rgba(239, 68, 68, 0));
}

.hero-showcase {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  gap: 30px;
  align-items: center;
  min-height: 570px;
  padding: 74px 56px 38px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 28px 90px rgba(176, 87, 107, 0.2);
  backdrop-filter: blur(14px);
}

html[data-theme="dark"] body .hero-showcase {
  border-color: rgba(248, 113, 113, 0.18);
  background: rgba(17, 24, 39, 0.72);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 520px;
  text-align: left;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--text);
  background: transparent;
  font-size: 13px;
  font-weight: 900;
}

.eyebrow i {
  color: #a855f7;
}

.hero-content h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(40px, 5vw, 58px);
  line-height: 1.14;
  letter-spacing: 0;
}

.hero-content h1 .soft-accent {
  color: #7c3aed;
}

.hero-content p {
  max-width: 500px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.78;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.btn-premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-premium.primary {
  background: linear-gradient(135deg, #ef4444, #991b1b);
  color: #fff;
  box-shadow: 0 16px 36px rgba(153, 27, 27, 0.3);
}

.btn-premium.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.38);
}

:root[data-theme="light"] .btn-premium.secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--primary-dark);
  border-color: rgba(153, 27, 27, 0.22);
}

.btn-premium:hover,
.btn-premium:focus,
.tool-card:hover,
.tool-card:focus {
  transform: translateY(-2px);
}

.btn-premium:focus,
.tool-card:focus,
.accordion-trigger:focus,
.mobile-toggle:focus {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

.hero-search {
  position: relative;
  max-width: 510px;
  margin: 28px 0 0;
  padding: 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 34px rgba(74, 47, 58, 0.14);
}

.hero-search input {
  height: 50px;
  border: 0;
  padding: 0 154px 0 18px;
  background: transparent;
  color: #24151c;
  font-size: 14px;
  box-shadow: none;
}

.hero-search button {
  position: absolute;
  right: 7px;
  top: 7px;
  width: auto;
  min-width: 132px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #d86cf0, #7c3aed);
  color: #fff;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(124, 58, 237, 0.32);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.trust-row li,
.feature-chip,
.category-sample {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, 0.28);
  background: rgba(17, 24, 39, 0.86);
  color: #e5e7eb;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 12px;
}

:root[data-theme="light"] .trust-row li,
:root[data-theme="light"] .feature-chip,
:root[data-theme="light"] .category-sample {
  background: rgba(255, 255, 255, 0.72);
  color: #4b1d25;
}

.hero-visual {
  position: relative;
  min-height: 390px;
  overflow: hidden;
}

.hero-desk {
  position: absolute;
  z-index: 2;
  right: 22px;
  top: 92px;
  width: min(430px, 100%);
  height: 230px;
}

.hero-desk::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 68px;
  height: 11px;
  border-radius: 999px;
  background: #2e3cff;
  box-shadow: 0 20px 36px rgba(46, 60, 255, 0.18);
}

.hero-desk::after {
  content: "";
  position: absolute;
  left: 42px;
  right: 42px;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: rgba(46, 60, 255, 0.34);
}

.hero-monitor {
  position: absolute;
  left: 34px;
  top: 18px;
  width: 104px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(180deg, #64748b, #334155);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.hero-monitor span {
  position: absolute;
  left: 12px;
  top: 10px;
  font-size: 12px;
  font-weight: 900;
}

.hero-monitor i {
  color: #f8fafc;
  font-size: 28px;
}

.hero-laptop {
  position: absolute;
  right: 58px;
  top: 52px;
  width: 96px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 9px 9px 3px 3px;
  color: #fca5a5;
  background: linear-gradient(135deg, #24124a, #5b21b6);
}

.hero-character {
  position: absolute;
  left: 172px;
  top: 12px;
  width: 128px;
  height: 210px;
}

.character-head {
  position: absolute;
  left: 40px;
  top: 0;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffd5c2, #f6a68d);
}

.character-head::before {
  content: "";
  position: absolute;
  left: -24px;
  top: -14px;
  width: 106px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5b21b6, #f0a5ba);
  transform: rotate(6deg);
}

.character-body {
  position: absolute;
  left: 30px;
  top: 55px;
  width: 78px;
  height: 94px;
  border-radius: 38px 38px 24px 24px;
  background: linear-gradient(180deg, #f8fafc, #e9ddff);
}

.character-body::before,
.character-body::after {
  content: "";
  position: absolute;
  bottom: -48px;
  width: 24px;
  height: 66px;
  border-radius: 16px;
  background: #2e3cff;
}

.character-body::before {
  left: 10px;
  transform: rotate(30deg);
}

.character-body::after {
  right: 10px;
  transform: rotate(-30deg);
}

.character-arm {
  position: absolute;
  width: 18px;
  height: 74px;
  border-radius: 999px;
  background: #f6a68d;
}

.character-arm.left {
  left: 10px;
  top: 70px;
  transform: rotate(28deg);
}

.character-arm.right {
  right: 2px;
  top: 42px;
  transform: rotate(-32deg);
}

.hero-workflow-cards {
  position: absolute;
  z-index: 3;
  left: 0;
  bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-workflow-cards span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  box-shadow: 0 14px 26px rgba(79, 70, 229, 0.24);
  font-size: 13px;
  font-weight: 900;
}

.hero-scroll-cue {
  position: absolute;
  z-index: 3;
  right: -8px;
  bottom: 20px;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-scroll-cue span {
  writing-mode: vertical-rl;
}

.section-block {
  padding: 64px 0;
}

.search-page-main {
  padding: 72px 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(239, 68, 68, 0.11), transparent 30%),
    var(--site-bg);
}

.search-page-hero {
  display: grid;
  gap: 26px;
  padding: clamp(26px, 5vw, 48px);
  border: 1px solid var(--border);
  border-radius: 30px;
  background:
    radial-gradient(circle at 88% 10%, rgba(124, 58, 237, 0.14), transparent 34%),
    var(--card-bg);
  box-shadow: var(--shadow-xs);
}

.search-page-copy {
  max-width: 780px;
}

.search-page-copy h1 {
  margin: 8px 0 12px;
  color: var(--text);
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
}

.search-page-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.search-page-form {
  position: relative;
  display: flex;
  gap: 12px;
  max-width: 860px;
}

.search-page-form input {
  min-height: 62px;
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--input-bg);
  color: var(--text);
  padding: 0 22px;
  font: inherit;
  outline: none;
}

.search-page-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--ring);
}

.search-page-form button {
  min-height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef4444, #991b1b);
  color: #fff;
  padding: 0 24px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(127, 29, 29, 0.22);
}

.search-results-section,
.search-suggestions {
  margin-top: 42px;
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.search-result-card {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 16px;
  align-items: center;
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--card-bg);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.search-result-card:hover,
.search-result-card:focus {
  transform: translateY(-2px);
  border-color: rgba(248, 113, 113, 0.42);
  box-shadow: var(--shadow-sm);
  outline: none;
}

.search-result-card:focus {
  box-shadow: 0 0 0 4px var(--ring), var(--shadow-sm);
}

.search-result-icon,
.search-empty-icon {
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #7f1d1d);
  font-weight: 900;
}

.search-result-icon {
  width: 56px;
  height: 56px;
}

.search-result-copy {
  display: grid;
  gap: 7px;
}

.search-result-copy strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1.2;
}

.search-result-copy small {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.search-result-copy em {
  color: #fca5a5;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

:root[data-theme="light"] .search-result-copy em {
  color: var(--primary-dark);
}

.search-result-action {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
}

.search-empty-state {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 48px 24px;
  border: 1px dashed rgba(248, 113, 113, 0.38);
  border-radius: 28px;
  background: var(--card-bg);
  text-align: center;
}

.search-empty-icon {
  width: 62px;
  height: 62px;
  font-size: 22px;
}

.search-empty-state h2 {
  margin: 0;
  color: var(--text);
  font-size: 28px;
}

.search-empty-state p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.search-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.search-chip-row a {
  border: 1px solid rgba(248, 113, 113, 0.34);
  border-radius: 999px;
  padding: 10px 14px;
  color: #fecaca;
  background: rgba(239, 68, 68, 0.14);
  font-weight: 900;
  text-decoration: none;
}

:root[data-theme="light"] .search-chip-row a {
  color: var(--primary-dark);
  background: rgba(239, 68, 68, 0.08);
}

.pt {
  width: min(1120px, calc(100% - 32px));
  margin: 54px auto 0 !important;
  padding: clamp(28px, 5vw, 54px) !important;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: var(--card-bg);
  color: var(--text);
  box-shadow: var(--shadow-xs);
  text-align: center;
}

.pt h1 {
  margin: 0;
  color: var(--text) !important;
  font-family: var(--font-main) !important;
  font-size: clamp(34px, 5vw, 58px) !important;
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
}

.tool-section,
.pagec,
.terms-container,
.contact-section {
  width: min(1120px, calc(100% - 32px)) !important;
  margin: 36px auto !important;
  padding: clamp(24px, 4vw, 40px) !important;
  border: 1px solid var(--border) !important;
  border-radius: 28px !important;
  background: var(--card-bg) !important;
  color: var(--text) !important;
  box-shadow: var(--shadow-xs) !important;
  font-family: var(--font-main) !important;
}

.tool-section .pagec,
.pagec .terms-container {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.pagec h1,
.terms-container h1,
.contact-heading {
  color: var(--text) !important;
  font-family: var(--font-main) !important;
  line-height: 1.12 !important;
  letter-spacing: 0 !important;
}

.pagec h2,
.terms-container h2,
.contact-section h2 {
  color: var(--text) !important;
  font-family: var(--font-main) !important;
  line-height: 1.22 !important;
}

.pagec p,
.pagec li,
.terms-container p,
.terms-container li,
.contact-text {
  color: var(--muted) !important;
  font-family: var(--font-main) !important;
  line-height: 1.75 !important;
}

.pagec a,
.terms-container a,
.contact-text a {
  color: var(--primary) !important;
  font-weight: 900;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.section-kicker {
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-heading h2 {
  margin: 8px 0 0;
  color: var(--text);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
}

.section-heading p {
  max-width: 570px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card-bg);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tool-card:hover,
.tool-card:focus {
  border-color: rgba(248, 113, 113, 0.42);
  box-shadow: var(--shadow-sm);
}

.tool-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  font-weight: 900;
}

.tone-blue,
.tone-green,
.tone-violet,
.tone-cyan,
.tone-amber,
.tone-coral,
.tone-pink,
.tone-mint {
  background: linear-gradient(135deg, #ef4444, #7f1d1d);
}

.tool-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
}

.tool-card p {
  flex: 1;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.tool-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #fca5a5;
  font-size: 13px;
  font-weight: 900;
}

.tool-search-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.tool-search-panel input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box !important;
  min-height: 54px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--input-bg);
  padding: 0 18px;
  color: var(--text);
  font: inherit;
  outline: none;
}

.result-count {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.accordion-list {
  display: grid;
  gap: 14px;
}

.tool-accordion {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
  overflow: hidden;
}

.accordion-trigger {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.accordion-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 19px;
  font-weight: 900;
}

.category-count {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.14);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
}

.accordion-summary {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.sample-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.accordion-chevron {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
  transition: transform 0.2s ease;
}

.tool-accordion[open] .accordion-chevron {
  transform: rotate(180deg);
}

.accordion-body {
  border-top: 1px solid var(--border);
  padding: 18px;
}

.empty-state {
  display: none;
  padding: 28px;
  border: 1px dashed rgba(248, 113, 113, 0.38);
  border-radius: var(--radius-md);
  color: var(--muted);
  background: rgba(127, 29, 29, 0.2);
  text-align: center;
  font-weight: 800;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.step-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
}

.step-number {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(239, 68, 68, 0.14);
  color: #fecaca;
  font-weight: 900;
}

.step-card h3 {
  margin: 18px 0 8px;
  font-size: 19px;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.security-banner {
  position: relative;
  margin: 36px auto 72px;
  padding: 34px;
  border: 1px solid rgba(248, 113, 113, 0.24);
  border-radius: 34px;
  color: var(--text);
  background: var(--banner-bg);
  box-shadow: 0 24px 60px rgba(127, 29, 29, 0.34);
  overflow: hidden;
  isolation: isolate;
}

.security-banner::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  pointer-events: none;
  z-index: -1;
}

.security-banner::after {
  content: "";
  position: absolute;
  right: -12%;
  top: 18%;
  width: 46%;
  height: 72%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px 0 0 999px;
  transform: rotate(-10deg);
  pointer-events: none;
  z-index: -1;
}

.banner-glow {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent),
    repeating-linear-gradient(90deg, transparent 0 42px, rgba(255, 255, 255, 0.06) 43px, transparent 44px);
  opacity: 0.8;
  pointer-events: none;
  z-index: -2;
}

.security-banner .banner-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 24px;
  align-items: center;
}

.security-banner .label {
  color: #fecaca;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.security-banner h2 {
  max-width: 760px;
  margin: 8px 0 14px;
  color: var(--text);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.12 !important;
  letter-spacing: 0;
}

.security-banner p {
  max-width: 660px;
  margin: 0;
  color: #fee2e2;
  line-height: 1.7;
}

:root[data-theme="light"] .security-banner {
  color: #220f14;
  box-shadow: 0 24px 60px rgba(153, 27, 27, 0.15);
}

:root[data-theme="light"] .security-banner .label,
:root[data-theme="light"] .security-banner p {
  color: #6f2630;
}

.banner-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.feature-chip {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}

.banner-visual {
  position: relative;
  display: grid;
  gap: 10px;
  min-width: 170px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: rgba(8, 10, 18, 0.28);
  backdrop-filter: blur(10px);
}

.banner-mini-card {
  display: block;
  min-width: 126px;
  padding: 11px 14px;
  border-radius: 16px;
  color: #fee2e2;
  background: rgba(255, 255, 255, 0.1);
  font-size: 13px;
  font-weight: 900;
}

.banner-mini-card.is-active {
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #991b1b);
  box-shadow: 0 14px 30px rgba(127, 29, 29, 0.28);
}

:root[data-theme="light"] .banner-visual {
  background: rgba(255, 255, 255, 0.52);
}

:root[data-theme="light"] .banner-mini-card {
  color: #651b24;
  background: rgba(255, 255, 255, 0.68);
}

:root[data-theme="light"] .banner-mini-card.is-active {
  color: #fff;
}

.footer-premium {
  background: var(--footer-bg);
  color: #cbd5e1;
  padding: 56px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 28px;
}

.footer-premium h3,
.footer-premium h4 {
  margin: 0 0 14px;
  color: var(--text);
}

.footer-premium p {
  margin: 0;
  line-height: 1.7;
}

.footer-premium a {
  display: block;
  margin: 10px 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.footer-premium a:hover,
.footer-premium a:focus {
  color: #fca5a5;
  outline: none;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  color: #94a3b8;
  font-size: 14px;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 14px 32px rgba(127, 29, 29, 0.35);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

#scrollProgress {
  position: fixed;
  left: 0;
  top: 0;
  width: 0%;
  height: 3px;
  z-index: 1200;
  background: linear-gradient(90deg, #ef4444, #991b1b);
}

body > #progressBar {
  position: fixed;
  left: 0;
  top: 0;
  width: 0%;
  height: 3px;
  z-index: 1200;
  background: linear-gradient(90deg, #ef4444, #991b1b);
}

body:not(.home) main,
body:not(.home) .tool-container,
body:not(.home) .container:not(.site-shell) {
  font-family: var(--font-main);
}

body.tool-page,
body.tool-page .containert,
body.tool-page .main-content,
body.tool-page .header-t,
body.tool-page .tool-container,
body.tool-page .container:not(.site-shell) {
  background: var(--site-bg) !important;
  color: var(--text) !important;
}

body.tool-page .header-t h1,
body.tool-page h1 {
  color: var(--text) !important;
}

body.tool-page .header-t p,
body.tool-page p,
body.tool-page label,
body.tool-page .upload-hint,
body.tool-page .upload-subtext {
  color: var(--muted);
}

.upload-section,
.upload-area,
#uploadContainer,
#drop-zone {
  border-radius: var(--radius-lg) !important;
  border-color: rgba(248, 113, 113, 0.38) !important;
  background: var(--card-bg) !important;
  box-shadow: var(--shadow-xs);
}

.upload-icon,
.upload-text,
.upload-area .upload-text {
  color: #fecaca !important;
}

.btn,
.btn-upload,
.custom-upload,
button[id*="download"],
a[id*="download"] {
  border-radius: 999px !important;
}

.btn,
.btn-upload,
.custom-upload,
.btn-success,
.btn-primary,
button[id*="download"],
a[id*="download"],
button[id*="merge"],
button[id*="convert"],
button[id*="split"],
button[id*="compress"] {
  border-color: rgba(248, 113, 113, 0.42) !important;
  background: linear-gradient(135deg, #ef4444, #991b1b) !important;
  color: #fff !important;
  box-shadow: 0 14px 30px rgba(127, 29, 29, 0.28) !important;
}

.btn:hover,
.btn-upload:hover,
.custom-upload:hover,
.btn-success:hover,
.btn-primary:hover,
button[id*="download"]:hover,
a[id*="download"]:hover,
button[id*="merge"]:hover,
button[id*="convert"]:hover,
button[id*="split"]:hover,
button[id*="compress"]:hover {
  filter: brightness(1.08);
}

.results,
.file-info,
.output-section,
.action-buttons,
.options-section,
.settings-section {
  border-radius: var(--radius-md) !important;
  border-color: rgba(248, 113, 113, 0.24) !important;
  background: var(--surface) !important;
  color: var(--text) !important;
}

input,
select,
textarea {
  border-color: rgba(248, 113, 113, 0.28) !important;
}

body.tool-page input:not([type="file"]),
body.tool-page select,
body.tool-page textarea {
  background: var(--input-bg) !important;
  color: var(--text) !important;
}

.tool-info-section {
  width: min(1120px, calc(100% - 32px));
  margin: 36px auto;
  color: var(--text);
  font-family: var(--font-main);
}

.tool-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tool-info-section article,
.related-tools,
.tool-faq {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card-bg);
  padding: 22px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.styled-section2 {
  width: min(1120px, calc(100% - 32px)) !important;
  margin: 42px auto !important;
  padding: 0 !important;
  background: transparent !important;
  color: var(--text) !important;
  font-family: var(--font-main) !important;
}

.tool-content-card {
  position: relative;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 10%, rgba(239, 68, 68, 0.18), transparent 32%),
    var(--card-bg);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

.tool-content-card::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -140px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(248, 113, 113, 0.22);
  border-radius: 50%;
  pointer-events: none;
}

.styled-section2 .tool-content-card h2 {
  max-width: 760px;
  margin: 8px 0 14px !important;
  color: var(--text) !important;
  font-family: var(--font-main) !important;
  font-size: clamp(28px, 4vw, 44px) !important;
  line-height: 1.12 !important;
  letter-spacing: 0 !important;
}

.styled-section2 .tool-content-card p {
  max-width: 820px;
  margin: 0 !important;
  color: var(--muted) !important;
  font-family: var(--font-main) !important;
  font-size: 16px !important;
  line-height: 1.75 !important;
  font-weight: 600 !important;
}

.tool-content-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.tool-content-steps article {
  padding: 18px;
  border: 1px solid rgba(248, 113, 113, 0.22);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
}

.tool-content-steps strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
}

.tool-content-steps span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 600;
}

.styled-section2 .tool-content-note {
  display: inline-flex;
  width: auto;
  margin-top: 4px !important;
  padding: 10px 14px;
  border: 1px solid rgba(248, 113, 113, 0.24);
  border-radius: 999px;
  color: #fecaca !important;
  background: rgba(239, 68, 68, 0.12);
  font-size: 14px !important;
}

:root[data-theme="light"] .tool-content-steps article {
  background: rgba(255, 255, 255, 0.66);
}

:root[data-theme="light"] .styled-section2 .tool-content-note {
  color: var(--primary-dark) !important;
  background: rgba(220, 38, 38, 0.08);
}

.tool-info-section h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 22px;
}

.tool-info-section p,
.tool-info-section li {
  color: var(--muted);
  line-height: 1.7;
}

.related-tools,
.tool-faq {
  margin-top: 16px;
}

.related-tools div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.related-tools a {
  border: 1px solid rgba(248, 113, 113, 0.34);
  border-radius: 999px;
  padding: 9px 13px;
  color: #fecaca;
  background: rgba(239, 68, 68, 0.14);
  font-weight: 800;
  text-decoration: none;
}

.tool-popular-section,
.tool-seo-section {
  background: var(--site-bg);
  padding: 54px 0;
}

.tool-popular-section {
  border-top: 1px solid rgba(248, 113, 113, 0.16);
}

.tool-section-heading {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.tool-section-heading h2 {
  margin: 8px 0 10px;
  color: var(--text);
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.1;
}

.tool-section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.tool-popular-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.popular-tool-card {
  position: relative;
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 16px;
  min-height: 168px;
  padding: 20px;
  border: 1px solid rgba(248, 113, 113, 0.22);
  border-radius: 24px;
  color: var(--text);
  background: var(--card-bg);
  text-decoration: none;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.popular-tool-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 12% 18%, rgba(239, 68, 68, 0.22), transparent 34%);
  pointer-events: none;
}

.popular-tool-card:hover,
.popular-tool-card:focus {
  transform: translateY(-3px);
  border-color: rgba(248, 113, 113, 0.52);
  box-shadow: 0 24px 60px rgba(127, 29, 29, 0.34);
  outline: none;
}

.popular-tool-card:focus {
  box-shadow: 0 0 0 4px var(--ring), 0 24px 60px rgba(127, 29, 29, 0.34);
}

.popular-tool-icon {
  position: relative;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #ef4444, #7f1d1d);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.popular-tool-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.popular-tool-copy strong {
  color: var(--text);
  font-size: 21px;
  line-height: 1.2;
}

.popular-tool-copy small {
  color: #a7b0c0;
  font-size: 14px;
  line-height: 1.55;
}

.popular-tool-copy em {
  margin-top: auto;
  color: #fca5a5;
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
}

.tool-seo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tool-seo-card {
  border: 1px solid rgba(248, 113, 113, 0.22);
  border-radius: 24px;
  background: var(--card-bg);
  padding: 24px;
  color: var(--text);
}

.tool-seo-card h2 {
  margin: 8px 0 12px;
  color: var(--text);
  font-size: 24px;
}

.tool-seo-card p,
.tool-seo-card li {
  color: var(--muted);
  line-height: 1.7;
}

.tool-seo-card ol {
  margin: 0;
  padding-left: 20px;
}

.related-seo-tools div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.related-seo-tools a {
  border: 1px solid rgba(248, 113, 113, 0.34);
  border-radius: 999px;
  padding: 9px 13px;
  color: #fecaca;
  background: rgba(239, 68, 68, 0.14);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 1024px) {
  .hero-showcase {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 70px 34px 34px;
  }

  .hero-content {
    max-width: 720px;
  }

  .hero-visual {
    min-height: 320px;
  }

  .hero-desk {
    left: 50%;
    right: auto;
    top: 42px;
    transform: translateX(-50%);
  }

  .hero-workflow-cards {
    left: 50%;
    transform: translateX(-50%);
    justify-content: center;
    width: min(100%, 420px);
  }

  .hero-scroll-cue {
    display: none;
  }

  .tool-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tool-popular-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-search {
    display: none;
  }

  .security-banner .banner-inner {
    grid-template-columns: 1fr;
  }

  .banner-visual {
    width: min(100%, 360px);
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 24px, 1180px);
  }

  .premium-nav {
    min-height: 68px;
  }

  .home .premium-header {
    padding-top: 12px;
  }

  .home .premium-nav {
    border-radius: 18px;
  }

  .premium-nav-links {
    display: none;
  }

  .mobile-toggle {
    display: inline-block;
  }

  .hero-premium {
    margin-top: -82px;
    padding: 108px 0 42px;
  }

  .hero-showcase {
    padding: 50px 20px 26px;
    border-radius: 22px;
  }

  .hero-content {
    text-align: left;
  }

  .hero-content h1 {
    font-size: clamp(34px, 10vw, 48px);
    line-height: 1.14;
  }

  .hero-search input {
    height: 54px;
    padding-right: 62px;
  }

  .hero-search {
    border-radius: 999px;
  }

  .hero-search button {
    top: 10px;
    right: 10px;
    min-width: 42px;
    width: 42px;
    height: 42px;
    padding: 0;
    font-size: 0;
  }

  .hero-search button i {
    font-size: 15px;
  }

  .hero-visual {
    min-height: 285px;
  }

  .hero-desk {
    width: min(360px, 100%);
    transform: translateX(-50%) scale(0.86);
    transform-origin: center top;
  }

  .hero-workflow-cards {
    bottom: 0;
  }

  .hero-workflow-cards span {
    min-height: 36px;
    padding: 0 12px;
  }

  .section-heading {
    display: block;
  }

  .tool-grid,
  .tool-popular-grid,
  .steps-grid,
  .tool-info-grid,
  .tool-seo-grid,
  .search-results-grid {
    grid-template-columns: 1fr;
  }

  .search-page-form {
    display: grid;
  }

  .search-page-form button {
    width: 100%;
  }

  .search-result-card {
    grid-template-columns: 48px 1fr;
  }

  .search-result-action {
    display: none;
  }

  .accordion-trigger {
    grid-template-columns: 1fr;
  }

  .accordion-chevron {
    display: none;
  }

  .security-banner {
    padding: 28px 18px;
    border-radius: 26px;
  }

  .security-banner::before {
    inset: 10px;
    border-radius: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 520px) and (max-width: 760px) {
  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
