/* =========================================================
   BHR TOOLS - GLOBAL DESIGN SYSTEM
   ========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #5b4df5;
  --primary-dark: #4438d8;
  --primary-light: #f0eeff;

  --dark: #11172a;
  --text: #20263a;
  --muted: #6b7280;

  --white: #ffffff;
  --background: #f7f8fc;
  --border: #e7e9f2;

  --shadow-sm: 0 6px 20px rgba(18, 24, 45, 0.06);
  --shadow-md: 0 16px 40px rgba(18, 24, 45, 0.10);

  --radius: 18px;
}

html {
  scroll-behavior: smooth;
}

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

  background: var(--background);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

button,
input {
  font: inherit;
}


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

header {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);

  border-bottom: 1px solid rgba(225, 228, 238, 0.8);
}

.nav {
  width: min(1200px, calc(100% - 40px));
  min-height: 74px;

  margin: auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;
}

.logo {
  display: inline-flex;
  align-items: center;

  color: var(--dark);

  font-size: 25px;
  font-weight: 850;
  letter-spacing: -1px;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;

  font-size: 14px;
  font-weight: 650;
}

.nav-links a {
  position: relative;
  padding: 25px 0;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a::after {
  content: "";

  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;

  height: 2px;

  background: var(--primary);

  transform: scaleX(0);
  transform-origin: center;

  transition: transform 0.2s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}


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

.hero {
  position: relative;
  overflow: hidden;

  padding: 76px 20px 70px;

  text-align: center;

  background:
    radial-gradient(
      circle at 12% 20%,
      rgba(91, 77, 245, 0.10),
      transparent 28%
    ),
    radial-gradient(
      circle at 88% 15%,
      rgba(56, 189, 248, 0.10),
      transparent 28%
    ),
    linear-gradient(
      180deg,
      #ffffff 0%,
      #f8f9ff 100%
    );
}

.hero-badge {
  display: inline-flex;
  align-items: center;

  margin-bottom: 22px;
  padding: 8px 15px;

  border: 1px solid #dedaff;
  border-radius: 999px;

  background: rgba(239, 237, 255, 0.9);

  color: var(--primary);

  font-size: 13px;
  font-weight: 750;
}

.hero h1 {
  max-width: 900px;

  margin: auto;

  color: var(--dark);

  font-size: clamp(42px, 5vw, 67px);
  line-height: 1.07;
  letter-spacing: -2.7px;

  font-weight: 820;
}

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

.hero p {
  max-width: 700px;

  margin: 23px auto 31px;

  color: var(--muted);

  font-size: 18px;
  line-height: 1.7;
}


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

.search-box {
  width: min(690px, 100%);

  margin: auto;
  padding: 7px;

  display: flex;
  align-items: center;

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

  background: var(--white);

  box-shadow:
    0 18px 45px rgba(33, 39, 75, 0.10);
}

.search-box:focus-within {
  border-color: #b8b1ff;

  box-shadow:
    0 18px 45px rgba(33, 39, 75, 0.10),
    0 0 0 4px rgba(91, 77, 245, 0.08);
}

.search-box input {
  flex: 1;
  min-width: 0;

  padding: 15px 17px;

  border: 0;
  outline: none;

  background: transparent;

  color: var(--dark);

  font-size: 16px;
}

.search-box input::placeholder {
  color: #969bad;
}

.search-box button {
  min-height: 50px;

  padding: 0 25px;

  border: 0;
  border-radius: 12px;

  background:
    linear-gradient(
      135deg,
      var(--primary),
      #6c55f6
    );

  color: white;

  font-size: 14px;
  font-weight: 750;

  cursor: pointer;

  box-shadow:
    0 8px 20px rgba(91, 77, 245, 0.23);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.search-box button:hover {
  transform: translateY(-1px);

  box-shadow:
    0 11px 25px rgba(91, 77, 245, 0.30);
}


/* =========================================================
   GENERAL SECTIONS
   ========================================================= */

.section {
  width: min(1200px, calc(100% - 40px));

  margin: auto;

  padding: 68px 0;
}

.section-title {
  max-width: 650px;

  margin: 0 auto 38px;

  text-align: center;
}

.section-title h2 {
  margin-bottom: 9px;

  color: var(--dark);

  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.2;

  letter-spacing: -1px;
}

.section-title p {
  color: var(--muted);
  font-size: 15px;
}


/* =========================================================
   CATEGORY CARDS
   ========================================================= */

.categories {
  display: grid;

  grid-template-columns:
    repeat(5, minmax(0, 1fr));

  gap: 15px;
}

.category {
  position: relative;

  min-height: 122px;

  padding: 21px 15px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

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

  background: var(--white);

  color: var(--dark);

  font-size: 14px;
  font-weight: 720;

  box-shadow: 0 4px 15px rgba(20, 25, 50, 0.025);

  cursor: pointer;

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

.category::before {
  content: "";

  position: absolute;

  top: 0;
  left: 20px;
  right: 20px;

  height: 3px;

  border-radius: 0 0 5px 5px;

  background:
    linear-gradient(
      90deg,
      var(--primary),
      #8b7cff
    );

  opacity: 0;

  transition: opacity 0.2s ease;
}

.category:hover {
  transform: translateY(-5px);

  border-color: #d4d0ff;

  box-shadow: var(--shadow-md);
}

.category:hover::before {
  opacity: 1;
}

.category .icon {
  width: 43px;
  height: 43px;

  margin-bottom: 11px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;

  background: var(--primary-light);

  font-size: 21px;
}


/* =========================================================
   TOOL GRID
   ========================================================= */

.tools-grid {
  display: grid;

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

  gap: 19px;
}

.tool-card {
  position: relative;

  min-height: 205px;

  padding: 24px;

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

  background: var(--white);

  box-shadow:
    0 5px 18px rgba(20, 25, 50, 0.035);

  cursor: pointer;

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

.tool-card:hover {
  transform: translateY(-5px);

  border-color: #d2ceff;

  box-shadow: var(--shadow-md);
}

.tool-icon {
  width: 48px;
  height: 48px;

  margin-bottom: 17px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #e1ddff;
  border-radius: 13px;

  background:
    linear-gradient(
      145deg,
      #f3f1ff,
      #ebe8ff
    );

  color: var(--primary);

  font-size: 21px;
  font-weight: 800;
}

.tool-card h3 {
  margin-bottom: 7px;

  color: var(--dark);

  font-size: 18px;
  line-height: 1.35;

  letter-spacing: -0.25px;
}

.tool-card p {
  min-height: 45px;

  color: var(--muted);

  font-size: 14px;
  line-height: 1.6;
}

.tool-link {
  display: inline-flex;
  align-items: center;

  margin-top: 15px;

  color: var(--primary);

  font-size: 13px;
  font-weight: 750;

  transition: transform 0.2s ease;
}

.tool-card:hover .tool-link {
  transform: translateX(3px);
}


/* =========================================================
   WHY BHR TOOLS
   ========================================================= */

.why-wrapper {
  position: relative;
  overflow: hidden;

  background:
    radial-gradient(
      circle at 10% 20%,
      rgba(91, 77, 245, 0.23),
      transparent 30%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(59, 130, 246, 0.16),
      transparent 30%
    ),
    #101628;

  color: white;
}

.why-wrapper .section-title h2 {
  color: white;
}

.why-wrapper .section-title p {
  color: #aeb6ca;
}

.why-grid {
  display: grid;

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

  gap: 20px;
}

.why-card {
  padding: 29px;

  border:
    1px solid rgba(255, 255, 255, 0.09);

  border-radius: 18px;

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

  backdrop-filter: blur(8px);
}

.why-card span {
  width: 48px;
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 13px;

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

  font-size: 23px;
}

.why-card h3 {
  margin: 15px 0 7px;

  font-size: 18px;
}

.why-card p {
  color: #aeb6ca;

  font-size: 14px;
  line-height: 1.65;
}


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

.cta {
  position: relative;
  overflow: hidden;

  padding: 58px 25px;

  border-radius: 24px;

  text-align: center;

  color: white;

  background:
    linear-gradient(
      135deg,
      #5142e8,
      #765cf6
    );

  box-shadow:
    0 20px 50px rgba(91, 77, 245, 0.20);
}

.cta::after {
  content: "";

  position: absolute;

  width: 260px;
  height: 260px;

  top: -150px;
  right: -80px;

  border-radius: 50%;

  background:
    rgba(255, 255, 255, 0.09);
}

.cta h2 {
  position: relative;
  z-index: 1;

  margin-bottom: 10px;

  font-size: clamp(28px, 3vw, 36px);

  letter-spacing: -1px;
}

.cta p {
  position: relative;
  z-index: 1;

  opacity: 0.9;
}


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

footer {
  padding: 50px 20px 25px;

  background: #0a0f1e;

  color: #aab2c6;
}

.footer-inner {
  width: min(1200px, 100%);

  margin: auto;

  display: flex;
  justify-content: space-between;

  gap: 35px;

  flex-wrap: wrap;
}

.footer-brand {
  max-width: 380px;
}

.footer-brand .logo {
  margin-bottom: 12px;

  color: white;
}

.footer-brand p {
  font-size: 14px;
}

.footer-links {
  display: flex;
  align-items: flex-start;

  gap: 23px;

  flex-wrap: wrap;

  font-size: 14px;
  font-weight: 550;
}

.footer-links a {
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: white;
}

.copyright {
  width: min(1200px, 100%);

  margin: 38px auto 0;

  padding-top: 21px;

  border-top:
    1px solid rgba(255, 255, 255, 0.08);

  text-align: center;

  font-size: 13px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 950px) {

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

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

}


@media (max-width: 760px) {

  .nav {
    width: calc(100% - 30px);
    min-height: 66px;
  }

  .logo {
    font-size: 23px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 58px 17px 57px;
  }

  .hero h1 {
    font-size: clamp(38px, 11vw, 53px);
    letter-spacing: -2px;
  }

  .hero p {
    font-size: 16px;
  }

  .section {
    width: calc(100% - 30px);
    padding: 55px 0;
  }

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

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

}


@media (max-width: 560px) {

  .search-box {
    padding: 5px;
  }

  .search-box input {
    padding: 13px 12px;
    font-size: 14px;
  }

  .search-box button {
    min-height: 46px;
    padding: 0 16px;
  }

  .categories,
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .category {
    min-height: 105px;
  }

  .tool-card {
    min-height: auto;
  }

  .tool-card p {
    min-height: auto;
  }

  .footer-inner {
    flex-direction: column;
  }

}