:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;
  --text: #172033;
  --text-secondary: #667085;
  --border: #e7ebf1;
  --background: #ffffff;
  --surface: #f8fafc;
  --success: #15803d;
  --radius: 16px;
  --container: 1160px;
  --shadow: 0 8px 30px rgba(20, 35, 65, 0.055);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 3px;
}

button {
  cursor: pointer;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

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

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--primary);
  color: white;
  font-size: 23px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.brand-name {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -1px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 27px;
}

.nav-link {
  color: #596579;
  font-size: 14px;
  font-weight: 550;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 9px;
  background: var(--primary);
  color: white;
  font-size: 14px;
  font-weight: 650;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-contact:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 43px;
  height: 43px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
}

/* HERO */

.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 78px;
  background:
    radial-gradient(ellipse at 15% 5%, #f0f6ff 0, transparent 43%),
    radial-gradient(ellipse at 90% 35%, #effcf7 0, transparent 35%),
    #ffffff;
  border-bottom: 1px solid #f0f2f6;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 850px;
}

.eyebrow {
  color: var(--primary);
  font-size: 11px;
  line-height: 1.5;
  font-weight: 800;
  letter-spacing: 1.7px;
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(39px, 6vw, 66px);
  line-height: 1.13;
  letter-spacing: -3px;
  font-weight: 800;
}

.hero h1 span {
  color: var(--primary);
}

.hero-description {
  max-width: 620px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.85;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 13px;
  width: min(100%, 650px);
  min-height: 64px;
  margin: 34px auto 0;
  padding: 7px 8px 7px 22px;
  border: 1px solid #e2e7ef;
  border-radius: 13px;
  background: white;
  box-shadow: 0 10px 35px rgba(29, 52, 91, 0.09);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-form:focus-within {
  border-color: #93b4fa;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.search-symbol {
  position: relative;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  border: 2px solid #8792a5;
  border-radius: 50%;
}

.search-symbol::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  right: -5px;
  bottom: -3px;
  background: #8792a5;
  transform: rotate(45deg);
  border-radius: 2px;
}

.search-form input {
  flex: 1;
  min-width: 0;
  height: 45px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}

.search-form input:focus-visible {
  outline: none;
}

.search-form input::placeholder {
  color: #98a1b1;
}

.search-form button {
  min-height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 9px;
  background: var(--primary);
  color: white;
  font-size: 14px;
  font-weight: 650;
  transition: background 0.2s;
}

.search-form button:hover {
  background: var(--primary-dark);
}

.hero-benefits {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 25px;
  margin-top: 25px;
  color: #647084;
  font-size: 12px;
}

.hero-benefits span {
  position: relative;
  padding-left: 15px;
}

.hero-benefits span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #20a46b;
}

/* TOOL DIRECTORY */

.tools-section {
  padding-top: 80px;
  padding-bottom: 90px;
}

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

.section-heading h2,
.trust-copy h2,
.about-content h2 {
  margin: 10px 0 7px;
  font-size: clamp(27px, 4vw, 36px);
  line-height: 1.25;
  letter-spacing: -1.1px;
  font-weight: 780;
}

.section-heading p,
.trust-copy > p,
.about-content > p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.8;
}

.results-count {
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #667085;
  font-size: 12px;
  white-space: nowrap;
}

.category-list {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.category-button {
  min-height: 40px;
  padding: 0 17px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: white;
  color: #5f6b7d;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.category-button:hover {
  border-color: #b7cbfa;
  color: var(--primary);
  background: #f8faff;
}

.category-button.active {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

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

.tool-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 240px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: #c9d8fb;
  box-shadow: var(--shadow);
}

.tool-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 21px;
  border: 1px solid #e5eaf2;
  border-radius: 12px;
  background: #f8fafc;
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
}

.card-category {
  margin-bottom: 7px;
  color: #788397;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.1px;
}

.tool-card h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.3px;
}

.tool-card p {
  margin: 0 0 22px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.8;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #edf0f5;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

.tool-link span {
  font-size: 17px;
  transition: transform 0.2s;
}

.tool-link:hover span {
  transform: translateX(4px);
}

.empty-state {
  padding: 55px 20px;
  border: 1px dashed #d7deea;
  border-radius: var(--radius);
  background: #fbfcfe;
  text-align: center;
}

.empty-state h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.empty-state p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

/* PRIVACY SECTION */

.trust-section {
  padding: 75px 0;
  border-top: 1px solid #eef1f6;
  border-bottom: 1px solid #eef1f6;
  background: #f8fafc;
}

.trust-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 65px;
}

.trust-copy h2 {
  max-width: 520px;
  margin-top: 13px;
  margin-bottom: 15px;
}

.trust-copy > p {
  max-width: 570px;
  font-size: 14px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 750;
}

.text-link span {
  transition: transform 0.2s;
}

.text-link:hover span {
  transform: translateX(4px);
}

.trust-card {
  padding: 30px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 6px 25px rgba(20, 35, 65, 0.035);
}

.trust-card-line {
  width: 42px;
  height: 4px;
  margin-bottom: 21px;
  border-radius: 4px;
  background: var(--primary);
}

.trust-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.5;
}

.trust-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.9;
}

/* ABOUT */

.about-section {
  padding: 85px 0;
}

.about-content {
  max-width: 760px;
  text-align: center;
}

.about-content h2 {
  margin-top: 13px;
  margin-bottom: 17px;
}

.about-content > p {
  font-size: 14px;
}

/* FOOTER */

.site-footer {
  border-top: 1px solid var(--border);
  background: #ffffff;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 35px;
  padding-top: 48px;
  padding-bottom: 43px;
}

.footer-brand-area > p {
  color: var(--text-secondary);
  font-size: 13px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}

.footer-column h3 {
  margin: 0 0 5px;
  font-size: 13px;
  font-weight: 800;
}

.footer-column a {
  color: var(--text-secondary);
  font-size: 13px;
  transition: color 0.2s;
}

.footer-column a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  padding-bottom: 18px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  margin: 0;
  color: #7b8494;
  font-size: 11px;
}

/* RESPONSIVE */

@media (min-width: 1400px) {
  .hero {
    padding-top: 115px;
    padding-bottom: 90px;
  }
}

@media (max-width: 900px) {
  .header-inner {
    min-height: 70px;
  }

  .main-nav {
    gap: 16px;
  }

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

  .trust-inner {
    gap: 35px;
  }

  .hero {
    padding-top: 80px;
  }
}

@media (max-width: 650px) {
  .container {
    width: calc(100% - 32px);
  }

  .header-inner {
    min-height: 66px;
  }

  .brand-mark {
    width: 35px;
    height: 35px;
    border-radius: 10px;
  }

  .brand-name {
    font-size: 21px;
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px 18px;
    border-bottom: 1px solid var(--border);
    background: white;
    box-shadow: 0 12px 22px rgba(20, 35, 65, 0.07);
  }

  .main-nav.open {
    display: flex;
  }

  .nav-link {
    padding: 12px 4px;
  }

  .nav-contact {
    margin-top: 8px;
  }

  .hero {
    padding: 66px 0 55px;
  }

  .hero h1 {
    margin-top: 19px;
    font-size: clamp(36px, 9vw, 48px);
    letter-spacing: -1.9px;
  }

  .hero-description {
    font-size: 14px;
    line-height: 1.85;
  }

  .search-form {
    min-height: 57px;
    gap: 10px;
    margin-top: 25px;
    padding-left: 15px;
  }

  .search-form input {
    font-size: 12px;
  }

  .search-form button {
    min-height: 42px;
    padding-inline: 15px;
    font-size: 12px;
  }

  .hero-benefits {
    gap: 10px 16px;
    font-size: 11px;
  }

  .tools-section {
    padding-top: 55px;
    padding-bottom: 60px;
  }

  .section-heading {
    align-items: flex-start;
    margin-bottom: 23px;
  }

  .section-heading h2,
  .trust-copy h2,
  .about-content h2 {
    font-size: 28px;
  }

  .section-heading p {
    font-size: 13px;
  }

  .category-list {
    gap: 8px;
    margin-bottom: 22px;
  }

  .category-button {
    min-height: 37px;
    padding-inline: 12px;
    font-size: 11px;
  }

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

  .tool-card {
    min-height: 225px;
    padding: 15px;
    border-radius: 13px;
  }

  .tool-icon {
    width: 39px;
    height: 39px;
    margin-bottom: 17px;
    font-size: 12px;
  }

  .card-category {
    font-size: 9px;
    letter-spacing: 0.6px;
  }

  .tool-card h3 {
    font-size: 15px;
    overflow-wrap: anywhere;
  }

  .tool-card p {
    margin-bottom: 17px;
    font-size: 11px;
    line-height: 1.75;
  }

  .tool-link {
    padding-top: 12px;
    font-size: 11px;
  }

  .results-count {
    padding: 6px 8px;
    font-size: 10px;
  }

  .trust-section {
    padding: 55px 0;
  }

  .trust-inner {
    grid-template-columns: 1fr;
    gap: 27px;
  }

  .trust-copy > p,
  .about-content > p {
    font-size: 13px;
  }

  .trust-card {
    padding: 23px;
  }

  .about-section {
    padding: 60px 0;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 30px 20px;
    padding-top: 35px;
    padding-bottom: 30px;
  }

  .footer-brand-area {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
}

@media (max-width: 360px) {
  .container {
    width: calc(100% - 24px);
  }

  .hero h1 {
    font-size: 33px;
  }

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

  .tool-card {
    min-height: 205px;
    padding: 20px;
  }

  .search-form {
    padding-left: 12px;
  }

  .search-form button {
    padding-inline: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}




/* TOOLHUB CLEAN ULTRA PREMIUM CARDS */

.tool-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.toolhub-premium-card.tool-card {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 285px;
    padding: 26px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e6ebf3;
    border-radius: 22px;
    box-shadow: 0 5px 18px rgba(25, 45, 85, 0.045);
    transition: transform .25s ease,
                box-shadow .25s ease,
                border-color .25s ease;
}

.toolhub-premium-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 22px;
    right: 22px;
    height: 3px;
    border-radius: 0 0 8px 8px;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.toolhub-premium-card::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 170px;
    height: 170px;
    top: -105px;
    right: -95px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37,99,235,.10), transparent 70%);
    pointer-events: none;
}

.toolhub-premium-card:hover {
    transform: translateY(-6px);
    border-color: #b9cdf7;
    box-shadow: 0 16px 38px rgba(30, 64, 130, .11);
}

.th-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
}

.th-pdf-icon {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    flex-shrink: 0;
    border: 1px solid #e0eaff;
    border-radius: 18px;
    background: linear-gradient(145deg, #f3f7ff, #e8f0ff);
    color: #2563eb;
    font-size: 23px;
    font-weight: 850;
    box-shadow: 0 5px 14px rgba(37,99,235,.07);
}

.th-pdf-icon span {
    line-height: 1;
}

.th-verified {
    padding: 7px 11px;
    border: 1px solid #d8f0e1;
    border-radius: 30px;
    background: #effaf3;
    color: #16804a;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.th-category {
    display: inline-block;
    margin-bottom: 5px;
    color: #3972d8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.toolhub-premium-card h3 {
    margin: 8px 0 9px;
    color: #17243a;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: -.4px;
}

.toolhub-premium-card p {
    min-height: 50px;
    margin: 0 0 20px;
    color: #68778e;
    font-size: 13px;
    line-height: 1.8;
}

.th-open-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    margin-top: auto;
    padding: 12px 16px;
    border: 1px solid #2563eb;
    border-radius: 12px;
    background: linear-gradient(110deg, #2563eb, #4384f5);
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
    box-shadow: 0 6px 15px rgba(37,99,235,.16);
    transition: transform .2s ease, box-shadow .2s ease;
}

a.th-open-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37,99,235,.24);
}

span.th-open-button {
    border-color: #e4e9f1;
    background: #f3f5f9;
    color: #8792a3 !important;
    box-shadow: none;
    cursor: default;
}

@media (max-width: 900px) {
    .tool-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (max-width: 600px) {
    .tool-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .toolhub-premium-card.tool-card {
        min-height: 260px;
        padding: 22px;
        border-radius: 19px;
    }

    .th-pdf-icon {
        width: 56px;
        height: 56px;
        border-radius: 16px;
    }

    .toolhub-premium-card h3 {
        font-size: 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .toolhub-premium-card,
    .th-open-button {
        transition: none !important;
    }

    .toolhub-premium-card:hover,
    a.th-open-button:hover {
        transform: none;
    }
}


/* TOOLHUB CATEGORY FILTER FIX */
#toolGrid > .tool-card[hidden] {
    display: none !important;
}
