:root {
  --bg: #05060b;
  --bg-soft: #090b13;
  --panel: rgba(14, 16, 28, 0.78);
  --panel-solid: #0d0f19;
  --panel-hover: #121526;
  --ink: #f7f7fb;
  --muted: #969bad;
  --muted-light: #c1c5d1;
  --line: rgba(255, 255, 255, 0.09);

  --purple: #8b5cf6;
  --purple-bright: #a855f7;
  --blue: #3b82f6;
  --cyan: #22d3ee;
  --pink: #d946ef;

  --gradient: linear-gradient(135deg, #a855f7 0%, #6366f1 48%, #22d3ee 100%);
  --gradient-soft: linear-gradient(
    135deg,
    rgba(168, 85, 247, 0.16),
    rgba(34, 211, 238, 0.08)
  );

  --shadow:
    0 20px 70px rgba(0, 0, 0, 0.35);

  --glow:
    0 0 35px rgba(139, 92, 246, 0.18);
}


/* -------------------------
   RESET
------------------------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(
      circle at 50% -10%,
      rgba(111, 76, 255, 0.12),
      transparent 30%
    ),
    var(--bg);

  color: var(--ink);

  font:
    15px/1.6
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

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

::selection {
  background: rgba(139, 92, 246, 0.4);
  color: white;
}


/* -------------------------
   BACKGROUND GLOW
------------------------- */

.ambient {
  position: fixed;
  pointer-events: none;
  z-index: -1;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.13;
}

.ambient-one {
  width: 500px;
  height: 500px;
  top: 140px;
  left: -250px;
  background: var(--purple);
}

.ambient-two {
  width: 550px;
  height: 550px;
  top: 550px;
  right: -300px;
  background: var(--blue);
}


/* -------------------------
   HEADER
------------------------- */

.site-header {
  width: min(1180px, calc(100% - 40px));
  height: 82px;

  margin: auto;

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

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

.brand {
  display: flex;
  align-items: center;
  gap: 11px;

  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-mark {
  position: relative;

  width: 36px;
  height: 36px;

  display: grid;
  place-items: center;

  border-radius: 11px;

  background: var(--gradient);

  color: white;

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

  box-shadow:
    0 0 25px rgba(139, 92, 246, 0.28);
}

.brand-mark::after {
  content: "";

  position: absolute;
  inset: 1px;

  border-radius: 10px;

  border: 1px solid rgba(255, 255, 255, 0.2);
}

.site-header nav {
  display: flex;
  gap: 31px;

  color: #a7aabd;

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

.site-header nav a {
  transition: 0.2s ease;
}

.site-header nav a:hover {
  color: white;
}


/* -------------------------
   BUTTONS
------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  padding: 12px 20px;

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

  font-weight: 800;

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

.button:hover {
  transform: translateY(-2px);
}

.button.small {
  padding: 9px 15px;

  background: white;
  color: #090a0f;

  border-color: white;

  font-size: 12px;
}

.button.primary {
  color: white;

  border-color: rgba(139, 92, 246, 0.45);

  background: var(--gradient);

  box-shadow:
    0 8px 30px rgba(103, 76, 255, 0.24);
}

.button.primary:hover {
  box-shadow:
    0 12px 38px rgba(103, 76, 255, 0.38);
}

.button.ghost {
  color: #d7d9e2;

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

  border-color: rgba(255, 255, 255, 0.12);
}

.button.ghost:hover {
  border-color: rgba(139, 92, 246, 0.5);
}


/* -------------------------
   HERO
------------------------- */

.hero {
  position: relative;

  max-width: 1000px;

  margin: 0 auto;

  padding:
    110px
    24px
    100px;

  text-align: center;
}

.hero::before {
  content: "";

  position: absolute;

  width: 520px;
  height: 330px;

  left: 50%;
  top: 120px;

  transform: translateX(-50%);

  background:
    radial-gradient(
      circle,
      rgba(122, 78, 255, 0.15),
      transparent 68%
    );

  pointer-events: none;
  z-index: -1;
}

.hero-badge {
  width: max-content;

  max-width: 100%;

  margin: 0 auto 25px;

  padding: 7px 12px;

  display: flex;
  align-items: center;
  gap: 8px;

  border:
    1px solid
    rgba(139, 92, 246, 0.28);

  border-radius: 999px;

  background:
    rgba(139, 92, 246, 0.07);

  color: #b8a7ff;

  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.15em;
}

.pulse {
  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: #a855f7;

  box-shadow:
    0 0 10px #a855f7;
}

.hero h1 {
  margin: 0;

  font-size:
    clamp(56px, 9vw, 96px);

  line-height: 0.94;

  letter-spacing: -0.065em;

  font-weight: 900;
}

.gradient-text {
  color: transparent;

  background: var(--gradient);

  background-clip: text;
  -webkit-background-clip: text;
}

.hero-subtitle {
  margin: 17px 0 0;

  color: #858a9b;

  font-size:
    clamp(25px, 4vw, 42px);

  line-height: 1;

  letter-spacing: -0.045em;
}

.hero > p {
  max-width: 670px;

  margin: 29px auto 0;

  color: var(--muted);

  font-size: 17px;
}

.hero-actions {
  margin-top: 32px;

  display: flex;
  justify-content: center;
  gap: 10px;
}


/* -------------------------
   SEARCH
------------------------- */

.search-wrap {
  max-width: 700px;

  margin: 52px auto 0;

  padding: 5px 8px 5px 17px;

  display: flex;
  align-items: center;

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

  border-radius: 14px;

  background:
    rgba(12, 14, 23, 0.88);

  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.32),
    0 0 30px rgba(104, 76, 255, 0.08);

  backdrop-filter: blur(15px);

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

.search-wrap:focus-within {
  border-color:
    rgba(139, 92, 246, 0.75);

  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.32),
    0 0 35px rgba(139, 92, 246, 0.16);
}

.search-icon {
  color: #767b8d;

  font-size: 25px;
}

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

  padding: 14px 13px;

  border: 0;
  outline: 0;

  background: transparent;
  color: white;

  font-size: 14px;
}

.search-wrap input::placeholder {
  color: #686d7d;
}

.search-hint {
  padding: 6px 9px;

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

  border-radius: 7px;

  color: #666b7b;

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

  font-size: 10px;
}


/* -------------------------
   STATS
------------------------- */

.stats {
  max-width: 1000px;

  margin: 0 auto;

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

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

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

.stats div {
  padding: 25px;

  text-align: center;

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

.stats div:last-child {
  border-right: 0;
}

.stats strong,
.stats span {
  display: block;
}

.stats strong {
  color: white;

  font-size: 23px;
  font-weight: 850;
}

.stats span {
  margin-top: 2px;

  color: #74798a;

  font-size: 11px;
}


/* -------------------------
   GLOBAL SECTIONS
------------------------- */

.section {
  max-width: 1120px;

  margin: 110px auto;

  padding: 0 24px;
}

.eyebrow {
  color: #9b7cff;

  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.section-heading {
  margin-bottom: 30px;

  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
}

.section h2,
.cta h2 {
  margin: 8px 0 0;

  font-size:
    clamp(32px, 5vw, 46px);

  line-height: 1.05;

  letter-spacing: -0.045em;
}

.section-description {
  max-width: 550px;

  margin: 13px 0 0;

  color: var(--muted);

  font-size: 14px;
}

.section-link {
  color: #aaa0dc;

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

.section-link:hover {
  color: white;
}


/* -------------------------
   CATEGORIES
------------------------- */

.category-grid {
  display: grid;

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

  gap: 12px;
}

.category {
  position: relative;

  min-height: 180px;

  padding: 22px;

  overflow: hidden;

  text-align: left;

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

  border-radius: 18px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.045),
      rgba(255, 255, 255, 0.015)
    );

  cursor: pointer;

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

.category::before {
  content: "";

  position: absolute;

  width: 150px;
  height: 150px;

  top: -80px;
  left: -70px;

  border-radius: 50%;

  filter: blur(45px);

  opacity: 0.12;
}

.category-ai::before {
  background: var(--purple);
}

.category-productivity::before {
  background: var(--blue);
}

.category-design::before {
  background: var(--pink);
}

.category-business::before {
  background: var(--cyan);
}

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

  border-color:
    rgba(139, 92, 246, 0.38);

  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.28);
}

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

  margin-bottom: 30px;

  display: grid;
  place-items: center;

  border:
    1px solid
    rgba(139, 92, 246, 0.2);

  border-radius: 12px;

  background:
    rgba(139, 92, 246, 0.08);

  color: #ad91ff;

  font-size: 18px;
}

.category-productivity .category-icon {
  color: #70a5ff;
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.2);
}

.category-design .category-icon {
  color: #e277ef;
  background: rgba(217, 70, 239, 0.08);
  border-color: rgba(217, 70, 239, 0.2);
}

.category-business .category-icon {
  color: #52d9ee;
  background: rgba(34, 211, 238, 0.08);
  border-color: rgba(34, 211, 238, 0.2);
}

.category b,
.category small {
  display: block;
}

.category b {
  font-size: 15px;
}

.category small {
  margin-top: 5px;

  color: #777c8e;

  font-size: 11px;
}

.category-arrow {
  position: absolute;

  right: 18px;
  top: 19px;

  color: #5c6170;

  font-size: 14px;

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

.category:hover .category-arrow {
  color: white;
  transform: translate(2px, -2px);
}


/* -------------------------
   TOOL DIRECTORY
------------------------- */

.tools-section {
  padding-top: 5px;
}

.section-heading select {
  padding: 10px 34px 10px 12px;

  outline: none;

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

  border-radius: 9px;

  color: #c7cad4;

  background: #0d0f18;

  cursor: pointer;
}

.tool-grid {
  display: grid;

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

  gap: 14px;
}

.tool-card {
  position: relative;

  min-height: 235px;

  padding: 21px;

  display: flex;
  flex-direction: column;

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

  border-radius: 18px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.045),
      rgba(255, 255, 255, 0.015)
    );

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

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

  border-color:
    rgba(139, 92, 246, 0.34);

  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.3),
    0 0 25px rgba(139, 92, 246, 0.06);
}

.tool-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

  display: grid;
  place-items: center;

  border:
    1px solid
    rgba(139, 92, 246, 0.23);

  border-radius: 12px;

  color: #c5b4ff;

  background:
    linear-gradient(
      145deg,
      rgba(139, 92, 246, 0.18),
      rgba(59, 130, 246, 0.08)
    );

  font-weight: 900;
}

.tag {
  padding: 5px 8px;

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

  border-radius: 999px;

  color: #878c9e;

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

  font-size: 9px;
  font-weight: 700;
}

.tool-card h3 {
  margin: 24px 0 6px;

  font-size: 19px;
}

.tool-card p {
  margin: 0;

  color: #858a9b;

  font-size: 12px;
}

.tool-bottom {
  margin-top: auto;

  padding-top: 19px;

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

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

  color: #74798a;

  font-size: 11px;
}

.tool-bottom a {
  color: #a68aff;

  font-weight: 850;
}

.tool-bottom a:hover {
  color: white;
}

.empty {
  padding: 55px;

  text-align: center;

  color: var(--muted);
}


/* -------------------------
   HOW IT WORKS
------------------------- */

.how {
  position: relative;

  padding: 48px;

  overflow: hidden;

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

  border-radius: 25px;

  background:
    linear-gradient(
      135deg,
      rgba(139, 92, 246, 0.055),
      rgba(34, 211, 238, 0.015)
    );
}

.how::after {
  content: "";

  position: absolute;

  width: 400px;
  height: 400px;

  right: -250px;
  top: -230px;

  border-radius: 50%;

  background:
    rgba(139, 92, 246, 0.12);

  filter: blur(80px);
}

.how-heading {
  max-width: 650px;
}

.how-heading > p {
  max-width: 520px;

  color: var(--muted);
}

.steps {
  margin-top: 45px;

  display: grid;

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

  gap: 12px;
}

.steps article {
  position: relative;

  padding: 25px;

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

  border-radius: 17px;

  background:
    rgba(4, 5, 10, 0.42);
}

.step-number {
  position: absolute;

  right: 18px;
  top: 16px;

  color: #4f5361;

  font-size: 10px;
  font-weight: 900;
}

.step-icon {
  width: 38px;
  height: 38px;

  display: grid;
  place-items: center;

  border-radius: 10px;

  color: #b49dff;

  background:
    rgba(139, 92, 246, 0.09);
}

.steps h3 {
  margin: 22px 0 6px;

  font-size: 16px;
}

.steps p {
  margin: 0;

  color: #7d8292;

  font-size: 12px;
}


/* -------------------------
   CTA
------------------------- */

.cta {
  position: relative;

  max-width: 850px;

  margin: 140px auto;

  padding: 80px 24px;

  overflow: hidden;

  text-align: center;
}

.cta-glow {
  position: absolute;

  width: 450px;
  height: 260px;

  left: 50%;
  top: 50%;

  transform:
    translate(-50%, -50%);

  border-radius: 50%;

  background:
    rgba(115, 74, 255, 0.13);

  filter: blur(80px);

  z-index: -1;
}

.cta p {
  max-width: 500px;

  margin: 16px auto 27px;

  color: var(--muted);
}


/* -------------------------
   FOOTER
------------------------- */

footer {
  width:
    min(1120px, calc(100% - 48px));

  margin: auto;

  padding: 30px 0 38px;

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

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

  color: #737888;

  font-size: 11px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand .brand-mark {
  width: 30px;
  height: 30px;

  border-radius: 9px;

  font-size: 11px;
}

.footer-brand strong,
.footer-brand small {
  display: block;
}

.footer-brand strong {
  color: #cfd2dc;

  font-size: 11px;
}

.footer-brand small {
  color: #626777;

  font-size: 9px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

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


/* -------------------------
   OTHER PAGES
------------------------- */

.page {
  max-width: 800px;

  margin: 90px auto;

  padding: 0 24px;
}

.page h1 {
  margin-bottom: 35px;

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

  line-height: 1;

  letter-spacing: -0.055em;
}

.page h2 {
  margin-top: 40px;

  font-size: 24px;
}

.page p,
.page li {
  color: #999eae;
}

.page a {
  color: #a68aff;
}

.notice {
  padding: 18px;

  border:
    1px solid
    rgba(139, 92, 246, 0.2);

  border-radius: 12px;

  background:
    rgba(139, 92, 246, 0.05);
}


/* -------------------------
   RESPONSIVE
------------------------- */

@media (max-width: 850px) {

  .site-header nav {
    display: none;
  }

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

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

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

  .how {
    padding: 35px;
  }

}


@media (max-width: 600px) {

  .site-header {
    width:
      calc(100% - 28px);

    height: 70px;
  }

  .brand {
    font-size: 16px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .site-header .button.small {
    padding: 8px 11px;

    font-size: 10px;
  }

  .hero {
    padding:
      75px
      18px
      75px;
  }

  .hero h1 {
    font-size:
      clamp(52px, 16vw, 72px);
  }

  .hero-subtitle {
    margin-top: 14px;
  }

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

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .search-wrap {
    margin-top: 38px;
  }

  .search-hint {
    display: none;
  }

  .stats {
    margin: 0 15px;
  }

  .stats div {
    padding: 17px 5px;
  }

  .stats strong {
    font-size: 18px;
  }

  .stats span {
    font-size: 9px;
  }

  .section {
    margin: 80px auto;

    padding: 0 17px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .section h2,
  .cta h2 {
    font-size: 34px;
  }

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

  .category {
    min-height: 160px;
  }

  .how {
    margin-left: 15px;
    margin-right: 15px;

    padding: 27px 20px;
  }

  .cta {
    margin: 90px auto;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;

    width:
      calc(100% - 34px);
  }

  .footer-links {
    flex-wrap: wrap;
  }

}
