/* =========================================================
   TOOLSHEAVEN
   MAIN STYLESHEET
========================================================= */


/* =========================================================
   VARIABLES
========================================================= */

:root {

  --primary: #6657e8;
  --primary-dark: #5143ca;
  --primary-soft: #efedff;

  --accent: #09bfa6;
  --accent-soft: #e7faf7;

  --background: #f8f8fc;

  --surface: #ffffff;
  --surface-soft: #f2f3f8;

  --text: #18191f;
  --text-soft: #6f7280;

  --border: #e7e8ef;
  --border-hover: #d2d1ef;

  --black: #111218;

  --shadow:
    0 12px 40px rgba(40, 39, 70, 0.06);

  --shadow-hover:
    0 18px 45px rgba(40, 39, 70, 0.1);

  --radius: 18px;
  --radius-lg: 24px;

  --container: 1220px;

}


/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {

  margin: 0;

  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;

  background: var(--background);

  color: var(--text);

  line-height: 1.5;

  -webkit-font-smoothing: antialiased;

}

a {

  color: inherit;

  text-decoration: none;

}

button,
input {

  font: inherit;

}

button {

  cursor: pointer;

}

img,
svg {

  display: block;

}


/* =========================================================
   ACCESSIBILITY
========================================================= */

:focus-visible {

  outline: 3px solid rgba(102, 87, 232, 0.25);

  outline-offset: 3px;

}


/* =========================================================
   GLOBAL
========================================================= */

.container {

  width:
    min(
      calc(100% - 40px),
      var(--container)
    );

  margin-inline: auto;

}


.section {

  padding: 80px 0;

}


.section-header {

  display: flex;

  justify-content: space-between;

  align-items: flex-end;

  gap: 30px;

  margin-bottom: 32px;

}


.section-label {

  display: block;

  margin-bottom: 7px;

  color: var(--primary);

  font-size: 12px;

  font-weight: 800;

  text-transform: uppercase;

  letter-spacing: 0.08em;

}


.section-header h2 {

  margin: 0;

  font-size:
    clamp(
      29px,
      4vw,
      39px
    );

  line-height: 1.1;

  letter-spacing: -1.5px;

}


.section-header p {

  margin: 9px 0 0;

  color: var(--text-soft);

  font-size: 15px;

}


.view-all {

  display: flex;

  align-items: center;

  gap: 7px;

  color: var(--primary);

  font-size: 14px;

  font-weight: 700;

}


.view-all svg {

  width: 17px;

  height: 17px;

}


/* =========================================================
   HEADER
========================================================= */

.site-header {

  position: sticky;

  top: 0;

  z-index: 1000;

  background:
    rgba(248, 248, 252, 0.94);

  backdrop-filter: blur(16px);

  -webkit-backdrop-filter: blur(16px);

  border-bottom:
    1px solid rgba(226, 227, 235, 0.9);

}


.navbar {

  min-height: 74px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 28px;

}


/* LOGO */

.logo {

  display: inline-flex;

  align-items: center;

  gap: 10px;

}


.logo-mark {

  width: 38px;

  height: 38px;

  display: grid;

  place-items: center;

  background:
    linear-gradient(
      135deg,
      var(--primary),
      #897cff
    );

  color: white;

  border-radius: 11px;

  box-shadow:
    0 8px 18px rgba(102, 87, 232, 0.22);

}


.logo-mark svg {

  width: 20px;

  height: 20px;

}


.logo-text {

  font-size: 21px;

  font-weight: 850;

  letter-spacing: -0.8px;

}


.logo-text span {

  color: var(--primary);

}


/* DESKTOP NAV */

.desktop-nav {

  display: flex;

  align-items: center;

  gap: 27px;

}


.desktop-nav a {

  position: relative;

  padding: 26px 0 24px;

  color: #505260;

  font-size: 14px;

  font-weight: 600;

  transition: color 0.2s ease;

}


.desktop-nav a:hover,
.desktop-nav a.active {

  color: var(--primary);

}


.desktop-nav a.active::after {

  content: "";

  position: absolute;

  left: 0;

  right: 0;

  bottom: 17px;

  height: 2px;

  background: var(--primary);

  border-radius: 999px;

}


/* HEADER ACTIONS */

.header-actions {

  display: flex;

  align-items: center;

  gap: 10px;

}


.header-search-button,
.menu-toggle {

  width: 41px;

  height: 41px;

  display: grid;

  place-items: center;

  padding: 0;

  background: var(--surface);

  color: var(--text);

  border:
    1px solid var(--border);

  border-radius: 11px;

}


.header-search-button svg,
.menu-toggle svg {

  width: 18px;

  height: 18px;

}


.header-search-button:hover {

  color: var(--primary);

  border-color: var(--border-hover);

}


.header-cta {

  padding: 11px 17px;

  background: var(--black);

  color: white;

  border-radius: 11px;

  font-size: 14px;

  font-weight: 700;

  transition:
    transform 0.2s ease,
    background 0.2s ease;

}


.header-cta:hover {

  background: var(--primary);

  transform: translateY(-1px);

}


.menu-toggle {

  display: none;

}


/* =========================================================
   MOBILE NAV
========================================================= */

.mobile-nav {

  display: none;

  background: white;

  border-top:
    1px solid var(--border);

}


.mobile-nav.is-open {

  display: block;

}


.mobile-nav-inner {

  display: flex;

  flex-direction: column;

  padding-top: 10px;

  padding-bottom: 10px;

}


.mobile-nav a {

  padding: 12px 0;

  color: #4f5260;

  font-size: 14px;

  font-weight: 650;

  border-bottom:
    1px solid #f0f1f5;

}


.mobile-nav a:last-child {

  border-bottom: 0;

}


/* =========================================================
   HERO
========================================================= */

.hero {

  position: relative;

  overflow: hidden;

  padding:
    92px 0 38px;

}


.hero::before {

  content: "";

  position: absolute;

  width: 620px;

  height: 620px;

  top: -380px;

  left: 50%;

  transform:
    translateX(-50%);

  background:
    radial-gradient(
      circle,
      rgba(102, 87, 232, 0.14),
      transparent 65%
    );

  pointer-events: none;

}


.hero-inner {

  position: relative;

  z-index: 2;

  max-width: 850px;

  margin-inline: auto;

  text-align: center;

}


.hero-badge {

  display: inline-flex;

  align-items: center;

  gap: 7px;

  margin-bottom: 21px;

  padding: 8px 13px;

  background: var(--primary-soft);

  color: var(--primary-dark);

  border:
    1px solid #dfdcff;

  border-radius: 999px;

  font-size: 12px;

  font-weight: 750;

}


.hero-badge svg {

  width: 15px;

  height: 15px;

}


.hero h1 {

  max-width: 900px;

  margin: 0 auto;

  color: var(--black);

  font-size:
    clamp(
      45px,
      7vw,
      73px
    );

  line-height: 0.99;

  letter-spacing: -4px;

}


.hero h1 span {

  display: block;

  color: var(--primary);

}


.hero-description {

  max-width: 620px;

  margin:
    22px auto 0;

  color: var(--text-soft);

  font-size: 17px;

  line-height: 1.7;

}


/* =========================================================
   HERO SEARCH
========================================================= */

.hero-search-wrapper {

  max-width: 720px;

  margin:
    34px auto 0;

}


.hero-search {

  display: flex;

  align-items: center;

  min-height: 67px;

  padding:
    8px 8px 8px 19px;

  background: white;

  border:
    1px solid #dadce6;

  border-radius: 17px;

  box-shadow:
    0 13px 45px rgba(36, 34, 78, 0.08);

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;

}


.hero-search:focus-within {

  border-color: var(--primary);

  box-shadow:
    0 0 0 4px rgba(102, 87, 232, 0.09),
    0 13px 45px rgba(36, 34, 78, 0.08);

}


.search-icon {

  color: #9a9ca8;

}


.search-icon svg {

  width: 21px;

  height: 21px;

}


.hero-search input {

  min-width: 0;

  flex: 1;

  padding: 0 13px;

  border: 0;

  outline: 0;

  background: transparent;

  color: var(--text);

  font-size: 16px;

}


.hero-search input::placeholder {

  color: #a2a4ae;

}


.hero-search button {

  height: 50px;

  display: flex;

  align-items: center;

  gap: 8px;

  flex-shrink: 0;

  padding: 0 21px;

  border: 0;

  background:
    linear-gradient(
      135deg,
      var(--primary),
      #7668f0
    );

  color: white;

  border-radius: 12px;

  font-weight: 750;

}


.hero-search button:hover {

  background: var(--primary-dark);

}


.hero-search button svg {

  width: 17px;

  height: 17px;

}


/* POPULAR SEARCHES */

.popular-searches {

  display: flex;

  justify-content: center;

  align-items: center;

  flex-wrap: wrap;

  gap: 7px;

  margin-top: 15px;

}


.popular-label {

  color: var(--text-soft);

  font-size: 12px;

}


.popular-searches a {

  padding:
    6px 10px;

  background: white;

  color: #626572;

  border:
    1px solid var(--border);

  border-radius: 999px;

  font-size: 12px;

  transition:
    color 0.2s ease,
    border-color 0.2s ease;

}


.popular-searches a:hover {

  color: var(--primary);

  border-color: #cbc7fb;

}


/* =========================================================
   CATEGORY PILLS
========================================================= */

.category-pills {

  display: flex;

  justify-content: center;

  flex-wrap: wrap;

  gap: 10px;

  margin-top: 37px;

}


.category-pills > a {

  display: flex;

  align-items: center;

  gap: 8px;

  padding:
    8px 13px 8px 8px;

  background: white;

  border:
    1px solid var(--border);

  border-radius: 999px;

  color: #4d505d;

  font-size: 13px;

  font-weight: 650;

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;

}


.category-pills > a:hover {

  transform:
    translateY(-2px);

  border-color:
    #d0cdf5;

  box-shadow:
    0 8px 20px rgba(44, 43, 73, 0.05);

}


.pill-icon {

  width: 28px;

  height: 28px;

  display: grid;

  place-items: center;

  border-radius: 999px;

}


.pill-icon svg {

  width: 14px;

  height: 14px;

}


/* =========================================================
   ICON COLOURS
========================================================= */

.violet {

  background: #efedff;

  color: #6555e8;

}


.pink {

  background: #fff0f6;

  color: #e65192;

}


.red {

  background: #fff0f0;

  color: #e35353;

}


.blue {

  background: #edf5ff;

  color: #397bd6;

}


.orange {

  background: #fff5e8;

  color: #db8124;

}


.green {

  background: #eaf9ef;

  color: #2f9a55;

}


.cyan {

  background: #e8f9fb;

  color: #1698aa;

}


.dark {

  background: #eef0f3;

  color: #333844;

}


.yellow {

  background: #fff8df;

  color: #bd8a15;

}


/* =========================================================
   BENEFIT BAR
========================================================= */

.benefit-bar {

  margin-top: 16px;

  border-top:
    1px solid var(--border);

  border-bottom:
    1px solid var(--border);

  background:
    rgba(255,255,255,0.65);

}


.benefit-grid {

  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

}


.benefit-item {

  min-height: 62px;

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 8px;

  color: #5c5f6d;

  font-size: 13px;

  font-weight: 650;

  border-right:
    1px solid var(--border);

}


.benefit-item:last-child {

  border-right: 0;

}


.benefit-item svg {

  width: 17px;

  height: 17px;

  color: var(--primary);

}


/* =========================================================
   POPULAR TOOLS
========================================================= */

.tools-grid {

  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  gap: 16px;

}


.tool-card {

  min-height: 177px;

  padding: 21px;

  background: white;

  border:
    1px solid var(--border);

  border-radius: var(--radius);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;

}


.tool-card:hover {

  transform:
    translateY(-5px);

  border-color:
    var(--border-hover);

  box-shadow:
    var(--shadow-hover);

}


.tool-card-top {

  display: flex;

  justify-content: space-between;

  align-items: flex-start;

}


.tool-icon {

  width: 44px;

  height: 44px;

  display: grid;

  place-items: center;

  border-radius: 12px;

}


.tool-icon svg {

  width: 20px;

  height: 20px;

}


.tool-arrow {

  color: #b0b2bb;

  transition:
    color 0.2s ease,
    transform 0.2s ease;

}


.tool-arrow svg {

  width: 18px;

  height: 18px;

}


.tool-card:hover
.tool-arrow {

  color: var(--primary);

  transform:
    translate(2px, -2px);

}


.tool-card h3 {

  margin:
    19px 0 0;

  font-size: 16px;

  letter-spacing: -0.3px;

}


.tool-card p {

  margin:
    5px 0 0;

  color: var(--text-soft);

  font-size: 13px;

}


.tool-type {

  display: block;

  margin-top: 13px;

  color: var(--primary);

  font-size: 10px;

  font-weight: 800;

  text-transform: uppercase;

  letter-spacing: 0.07em;

}


/* =========================================================
   CATEGORY SECTION
========================================================= */

.categories-section {

  background: #f2f3f8;

  border-top:
    1px solid var(--border);

  border-bottom:
    1px solid var(--border);

}


.category-grid {

  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 16px;

}


.category-card {

  padding: 24px;

  background: white;

  border:
    1px solid var(--border);

  border-radius: var(--radius);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;

}


.category-card:hover {

  transform:
    translateY(-3px);

  border-color:
    #d9d6f4;

  box-shadow:
    var(--shadow);

}


.category-header {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 15px;

  padding-bottom: 19px;

  margin-bottom: 17px;

  border-bottom:
    1px solid #eff0f4;

}


.category-title-wrap {

  display: flex;

  align-items: center;

  gap: 12px;

}


.category-icon {

  width: 44px;

  height: 44px;

  display: grid;

  place-items: center;

  flex-shrink: 0;

  border-radius: 12px;

}


.category-icon svg {

  width: 20px;

  height: 20px;

}


.category-title-wrap h3 {

  margin: 0;

  font-size: 16px;

}


.category-title-wrap h3 a:hover {

  color: var(--primary);

}


.category-title-wrap span {

  display: block;

  margin-top: 2px;

  color: var(--text-soft);

  font-size: 11px;

}


.category-arrow {

  width: 34px;

  height: 34px;

  display: grid;

  place-items: center;

  flex-shrink: 0;

  background: #f5f5f8;

  color: #91939c;

  border-radius: 9px;

  transition:
    background 0.2s ease,
    color 0.2s ease;

}


.category-arrow:hover {

  background: var(--primary);

  color: white;

}


.category-arrow svg {

  width: 16px;

  height: 16px;

}


.category-links {

  display: flex;

  flex-direction: column;

  gap: 9px;

}


.category-links a {

  display: flex;

  align-items: center;

  justify-content: space-between;

  color: #686a75;

  font-size: 13px;

  transition:
    color 0.2s ease,
    padding-left 0.2s ease;

}


.category-links a:hover {

  padding-left: 3px;

  color: var(--primary);

}


/* =========================================================
   TRENDING
========================================================= */

.trending-grid {

  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 16px;

}


.trending-card {

  display: grid;

  grid-template-columns:
    auto auto 1fr auto;

  align-items: center;

  gap: 13px;

  padding: 17px;

  background: white;

  border:
    1px solid var(--border);

  border-radius: 15px;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;

}


.trending-card:hover {

  transform:
    translateY(-3px);

  border-color:
    var(--border-hover);

  box-shadow:
    var(--shadow);

}


.trend-rank {

  color: #b1b3bc;

  font-size: 11px;

  font-weight: 800;

}


.trend-icon {

  width: 40px;

  height: 40px;

  display: grid;

  place-items: center;

  border-radius: 11px;

}


.trend-icon svg {

  width: 18px;

  height: 18px;

}


.trending-card h3 {

  margin: 0;

  font-size: 14px;

}


.trending-card p {

  margin: 2px 0 0;

  color: var(--text-soft);

  font-size: 11px;

}


.trend-arrow {

  width: 17px;

  height: 17px;

  color: #aeb0ba;

}


/* =========================================================
   CTA
========================================================= */

.homepage-cta {

  padding:
    18px 0 82px;

}


.cta-card {

  position: relative;

  overflow: hidden;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 35px;

  padding: 46px;

  background:
    linear-gradient(
      135deg,
      #1b1932,
      #292354
    );

  color: white;

  border-radius: var(--radius-lg);

}


.cta-card::before {

  content: "";

  position: absolute;

  width: 320px;

  height: 320px;

  top: -170px;

  right: -60px;

  background:
    rgba(120, 104, 240, 0.28);

  border-radius: 50%;

}


.cta-label {

  display: block;

  margin-bottom: 9px;

  color: #b9b2ff;

  font-size: 11px;

  font-weight: 800;

  text-transform: uppercase;

  letter-spacing: 0.09em;

}


.cta-card h2 {

  max-width: 650px;

  margin: 0;

  font-size:
    clamp(
      28px,
      4vw,
      40px
    );

  line-height: 1.08;

  letter-spacing: -1.4px;

}


.cta-card p {

  max-width: 550px;

  margin:
    10px 0 0;

  color: #c6c3d8;

}


.cta-card > a {

  position: relative;

  z-index: 2;

  display: flex;

  align-items: center;

  gap: 8px;

  flex-shrink: 0;

  padding:
    13px 18px;

  background: white;

  color: #252139;

  border-radius: 11px;

  font-size: 13px;

  font-weight: 800;

}


.cta-card > a:hover {

  background: #eeecff;

}


.cta-card > a svg {

  width: 16px;

  height: 16px;

}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {

  background: white;

  border-top:
    1px solid var(--border);

}


.footer-grid {

  display: grid;

  grid-template-columns:
    1.6fr
    repeat(3, 1fr);

  gap: 45px;

  padding:
    53px 0 40px;

}


.footer-brand p {

  max-width: 300px;

  margin:
    15px 0 0;

  color: var(--text-soft);

  font-size: 13px;

  line-height: 1.7;

}


.footer-column {

  display: flex;

  flex-direction: column;

  align-items: flex-start;

  gap: 9px;

}


.footer-column h3 {

  margin:
    0 0 5px;

  color: #2a2b32;

  font-size: 13px;

}


.footer-column a {

  color: var(--text-soft);

  font-size: 13px;

}


.footer-column a:hover {

  color: var(--primary);

}


.footer-bottom {

  min-height: 57px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

  border-top:
    1px solid var(--border);

}


.footer-bottom p {

  margin: 0;

  color: #858791;

  font-size: 11px;

}


/* =========================================================
   TABLET
========================================================= */

@media
(max-width: 1000px) {

  .desktop-nav {

    display: none;

  }


  .menu-toggle {

    display: grid;

  }


  .tools-grid {

    grid-template-columns:
      repeat(3, 1fr);

  }


  .category-grid {

    grid-template-columns:
      repeat(2, 1fr);

  }


  .footer-grid {

    grid-template-columns:
      1.5fr
      repeat(2, 1fr);

  }


  .footer-column:last-child {

    grid-column:
      2 / 4;

  }

}


/* =========================================================
   MOBILE
========================================================= */

@media
(max-width: 760px) {

  .container {

    width:
      min(
        calc(100% - 28px),
        var(--container)
      );

  }


  .header-search-button,
  .header-cta {

    display: none;

  }


  .navbar {

    min-height: 66px;

  }


  .logo-mark {

    width: 35px;

    height: 35px;

  }


  .logo-text {

    font-size: 19px;

  }


  .hero {

    padding-top: 61px;

  }


  .hero h1 {

    font-size: 45px;

    letter-spacing: -2.7px;

  }


  .hero-description {

    font-size: 15px;

  }


  .hero-search {

    min-height: 60px;

  }


  .hero-search button {

    width: 48px;

    padding: 0;

    justify-content: center;

  }


  .hero-search button span {

    display: none;

  }


  .popular-label {

    width: 100%;

  }


  .category-pills {

    justify-content:
      flex-start;

    flex-wrap: nowrap;

    overflow-x: auto;

    padding-bottom: 7px;

    scrollbar-width: none;

  }


  .category-pills::-webkit-scrollbar {

    display: none;

  }


  .category-pills > a {

    flex-shrink: 0;

  }


  .benefit-grid {

    grid-template-columns:
      repeat(2, 1fr);

  }


  .benefit-item {

    border-bottom:
      1px solid var(--border);

  }


  .benefit-item:nth-child(2) {

    border-right: 0;

  }


  .benefit-item:nth-child(3),
  .benefit-item:nth-child(4) {

    border-bottom: 0;

  }


  .section {

    padding:
      58px 0;

  }


  .section-header {

    align-items: flex-start;

  }


  .view-all {

    display: none;

  }


  .tools-grid {

    grid-template-columns:
      repeat(2, 1fr);

  }


  .category-grid {

    grid-template-columns:
      1fr;

  }


  .trending-grid {

    grid-template-columns:
      1fr;

  }


  .cta-card {

    align-items: flex-start;

    flex-direction: column;

    padding:
      34px 27px;

  }


  .footer-grid {

    grid-template-columns:
      repeat(2, 1fr);

  }


  .footer-brand {

    grid-column:
      1 / -1;

  }


  .footer-column:last-child {

    grid-column: auto;

  }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media
(max-width: 500px) {

  .hero h1 {

    font-size: 39px;

    letter-spacing: -2.3px;

  }


  .tools-grid {

    grid-template-columns:
      1fr;

  }


  .tool-card {

    min-height: auto;

  }


  .footer-grid {

    grid-template-columns:
      1fr;

  }


  .footer-brand {

    grid-column: auto;

  }


  .footer-bottom {

    min-height: auto;

    padding:
      17px 0;

    flex-direction: column;

    align-items: flex-start;

    gap: 5px;

  }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media
(prefers-reduced-motion: reduce) {

  html {

    scroll-behavior: auto;

  }


  *,
  *::before,
  *::after {

    animation-duration:
      0.01ms !important;

    animation-iteration-count:
      1 !important;

    transition-duration:
      0.01ms !important;

  }

}
