/* ==========================================================================
   FREE USE TOOL — TOOLS DIRECTORY & CATEGORY EXPERIENCE
   Version: 6.0
   Purpose: Premium styling for:
   - /tools/
   - /tools/category/<category>
   - shared tool-card components
   - generic tool-page surfaces used by this stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DIRECTORY / CATEGORY PAGE FOUNDATION
   -------------------------------------------------------------------------- */

.fut-tools-directory,
.fut-tool-category-page,
.fut-tool-page {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background:
    radial-gradient(circle at 86% 4%, rgba(14, 165, 233, 0.09), transparent 27rem),
    radial-gradient(circle at 8% 38%, rgba(59, 130, 246, 0.045), transparent 25rem),
    var(--fut-bg);
}

.fut-tools-directory::before,
.fut-tool-category-page::before,
.fut-tool-page::before {
  position: absolute;
  z-index: -1;
  width: 760px;
  height: 760px;
  top: -430px;
  right: -300px;
  border-radius: 50%;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(
      circle,
      rgba(56, 189, 248, 0.14) 0%,
      rgba(14, 165, 233, 0.055) 32%,
      transparent 70%
    );
}

.fut-tools-directory::after,
.fut-tool-category-page::after {
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 520px;
  left: -310px;
  top: 36%;
  border-radius: 50%;
  content: "";
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.045),
    transparent 68%
  );
}

/* --------------------------------------------------------------------------
   2. PAGE HERO
   -------------------------------------------------------------------------- */

.fut-tools-directory .fut-page-hero,
.fut-tool-category-page .fut-page-hero {
  position: relative;
  padding: clamp(58px, 8vw, 96px) 0 clamp(34px, 5vw, 58px);
  border-bottom: 1px solid var(--fut-border);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.78),
      rgba(255, 255, 255, 0.36)
    );
}

.fut-tools-directory .fut-page-hero::after,
.fut-tool-category-page .fut-page-hero::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(
    90deg,
    transparent,
    rgba(14, 165, 233, 0.3),
    transparent
  );
}

.fut-tools-directory .fut-page-hero .fut-container,
.fut-tool-category-page .fut-page-hero .fut-container {
  position: relative;
}

.fut-tools-directory .fut-page-hero h1,
.fut-tool-category-page .fut-page-hero h1 {
  max-width: 900px;
  margin: 9px 0 17px;
  color: var(--fut-text);
  font-size: clamp(2.35rem, 5.2vw, 4.7rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.fut-tools-directory .fut-page-hero .fut-lead,
.fut-tool-category-page .fut-page-hero .fut-lead {
  max-width: 720px;
  margin: 0;
  color: var(--fut-text-muted, var(--fut-muted));
  font-size: clamp(1rem, 1.6vw, 1.14rem);
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   3. SEARCH PANEL
   -------------------------------------------------------------------------- */

.fut-search-panel {
  position: relative;
  z-index: 2;
  margin: clamp(24px, 4vw, 42px) 0 clamp(42px, 6vw, 66px);
  padding: clamp(17px, 2.5vw, 24px);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 24px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.96),
      rgba(248, 252, 255, 0.91)
    );
  box-shadow:
    0 24px 65px rgba(15, 23, 42, 0.075),
    0 5px 18px rgba(14, 165, 233, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px);
}

.fut-search-panel::before {
  position: absolute;
  top: 0;
  right: 18%;
  left: 18%;
  height: 1px;
  content: "";
  background: linear-gradient(
    90deg,
    transparent,
    rgba(14, 165, 233, 0.4),
    transparent
  );
}

.fut-search-panel form {
  margin: 0;
}

.fut-search-panel label {
  display: block;
  margin: 0 0 10px;
  color: var(--fut-text);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.fut-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 11px;
  align-items: stretch;
}

.fut-search-row input {
  width: 100%;
  min-height: 54px;
  padding: 0 17px;
  border: 1px solid var(--fut-border);
  border-radius: 15px;
  outline: none;
  background: var(--fut-surface-2, #f8fafc);
  color: var(--fut-text);
  font: inherit;
  box-shadow:
    inset 0 1px 2px rgba(15, 23, 42, 0.025),
    0 1px 0 rgba(255, 255, 255, 0.7);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.fut-search-row input::placeholder {
  color: var(--fut-text-muted, #94a3b8);
}

.fut-search-row input:hover {
  border-color: rgba(14, 165, 233, 0.32);
}

.fut-search-row input:focus {
  border-color: var(--fut-primary, #0ea5e9);
  background: var(--fut-surface, #fff);
  box-shadow:
    0 0 0 4px rgba(14, 165, 233, 0.10),
    0 10px 28px rgba(14, 165, 233, 0.07);
}

.fut-search-row .fut-button {
  min-height: 54px;
  padding-inline: 22px;
  border-radius: 15px;
  font-weight: 800;
  box-shadow:
    0 8px 20px rgba(14, 165, 233, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.fut-search-row .fut-button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 13px 28px rgba(14, 165, 233, 0.21),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.fut-search-row .fut-button:active {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   4. CATEGORY SECTIONS
   -------------------------------------------------------------------------- */

.fut-tool-category-section {
  position: relative;
  margin-top: clamp(42px, 6vw, 70px);
}

.fut-tool-category-section:first-of-type {
  margin-top: 0;
}

.fut-tool-category-section + .fut-tool-category-section {
  padding-top: clamp(30px, 4vw, 48px);
  border-top: 1px solid var(--fut-border);
}

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

.fut-section-heading > div {
  min-width: 0;
}

.fut-section-heading .fut-eyebrow {
  margin-bottom: 7px;
}

.fut-section-heading h2 {
  margin: 0 0 8px;
  color: var(--fut-text);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.fut-section-heading p:not(.fut-eyebrow) {
  max-width: 680px;
  margin: 0;
  color: var(--fut-text-muted, var(--fut-muted));
  font-size: 0.96rem;
  line-height: 1.65;
}

.fut-text-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--fut-primary-700, #0369a1);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.fut-text-link:hover {
  border-color: rgba(14, 165, 233, 0.16);
  background: rgba(14, 165, 233, 0.055);
  color: var(--fut-primary-800, #075985);
  transform: translateX(2px);
}

/* --------------------------------------------------------------------------
   5. TOOL GRID
   -------------------------------------------------------------------------- */

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

/* --------------------------------------------------------------------------
   6. TOOL CARDS
   -------------------------------------------------------------------------- */

.fut-tool-card {
  position: relative;
  display: flex;
  min-height: 245px;
  flex-direction: column;
  padding: 23px 22px 20px;
  overflow: hidden;
  border: 1px solid var(--fut-border);
  border-radius: 20px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.98),
      rgba(248, 251, 254, 0.94)
    );
  box-shadow:
    0 8px 28px rgba(15, 23, 42, 0.045),
    0 1px 2px rgba(15, 23, 42, 0.025),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: translateZ(0);
  transition:
    transform 220ms cubic-bezier(0.2, 0.75, 0.25, 1),
    border-color 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.fut-tool-card::before {
  position: absolute;
  top: 0;
  right: 18%;
  left: 18%;
  height: 1px;
  content: "";
  background: linear-gradient(
    90deg,
    transparent,
    rgba(14, 165, 233, 0.28),
    transparent
  );
  opacity: 0;
  transition: opacity 220ms ease;
}

.fut-tool-card::after {
  position: absolute;
  width: 150px;
  height: 150px;
  top: -92px;
  right: -75px;
  border-radius: 50%;
  content: "";
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(56, 189, 248, 0.10),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 220ms ease;
}

.fut-tool-card:hover {
  border-color: rgba(14, 165, 233, 0.25);
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 1),
      rgba(246, 252, 255, 0.98)
    );
  box-shadow:
    0 20px 45px rgba(15, 23, 42, 0.085),
    0 8px 24px rgba(14, 165, 233, 0.065),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  transform: translateY(-5px);
}

.fut-tool-card:hover::before,
.fut-tool-card:hover::after {
  opacity: 1;
}

.fut-tool-card:focus-within {
  border-color: rgba(14, 165, 233, 0.34);
  box-shadow:
    0 0 0 4px rgba(14, 165, 233, 0.08),
    0 16px 38px rgba(15, 23, 42, 0.075);
}

/* Icon */

.fut-tool-icon {
  position: relative;
  display: inline-grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid rgba(14, 165, 233, 0.14);
  border-radius: 15px;
  background:
    linear-gradient(
      145deg,
      rgba(224, 242, 254, 0.95),
      rgba(240, 249, 255, 0.9)
    );
  color: var(--fut-primary-700, #0369a1);
  font-size: 1.32rem;
  box-shadow:
    0 8px 20px rgba(14, 165, 233, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.fut-tool-card:hover .fut-tool-icon {
  transform: translateY(-2px) scale(1.035);
  box-shadow:
    0 12px 25px rgba(14, 165, 233, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.fut-tool-category {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 25px;
  margin-bottom: 8px;
  padding: 4px 9px;
  border: 1px solid rgba(14, 165, 233, 0.12);
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.055);
  color: var(--fut-primary-700, #0369a1);
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.015em;
  line-height: 1;
}

.fut-tool-card h3 {
  margin: 0 0 9px;
  color: var(--fut-text);
  font-size: 1.06rem;
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.fut-tool-card p {
  margin: 0;
  color: var(--fut-text-muted, var(--fut-muted));
  font-size: 0.88rem;
  line-height: 1.65;
}

.fut-tool-card > a:last-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-top: auto;
  padding-top: 18px;
  color: var(--fut-primary-700, #0369a1);
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: none;
  transition:
    color 180ms ease,
    gap 180ms ease;
}

.fut-tool-card > a:last-child:hover {
  gap: 9px;
  color: var(--fut-primary-800, #075985);
}

/* --------------------------------------------------------------------------
   7. FEATURE / BADGE SUPPORT
   -------------------------------------------------------------------------- */

.fut-tool-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 2;
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid rgba(16, 168, 107, 0.15);
  border-radius: 999px;
  background: rgba(16, 168, 107, 0.08);
  color: #07885a;
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   8. EMPTY STATES
   -------------------------------------------------------------------------- */

.fut-empty-state {
  position: relative;
  max-width: 720px;
  margin: 42px auto;
  padding: clamp(35px, 6vw, 58px) 25px;
  border: 1px dashed rgba(14, 165, 233, 0.24);
  border-radius: 24px;
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(56, 189, 248, 0.075),
      transparent 45%
    ),
    var(--fut-surface);
  text-align: center;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.045);
}

.fut-empty-state h2 {
  margin: 0 0 9px;
  color: var(--fut-text);
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  letter-spacing: -0.035em;
}

.fut-empty-state p {
  max-width: 540px;
  margin: 0 auto;
  color: var(--fut-text-muted, var(--fut-muted));
  line-height: 1.7;
}

.fut-muted {
  color: var(--fut-text-muted, var(--fut-muted));
}

/* --------------------------------------------------------------------------
   9. GENERIC TOOL PAGE HERO / WORKSPACE
   -------------------------------------------------------------------------- */

.fut-tool-page .fut-tool-hero {
  position: relative;
  padding: clamp(44px, 7vw, 78px) 0 36px;
}

.fut-tool-heading {
  max-width: 900px;
}

.fut-tool-heading h1 {
  margin: 9px 0 15px;
  color: var(--fut-text);
  font-size: clamp(2.4rem, 5.6vw, 4.7rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.fut-tool-heading .fut-lead {
  max-width: 760px;
  color: var(--fut-text-muted, var(--fut-muted));
  font-size: 1.04rem;
  line-height: 1.72;
}

.fut-tool-workspace-section {
  position: relative;
  padding: 20px 0 80px;
}

.fut-tool-workspace {
  position: relative;
  min-height: 360px;
  padding: clamp(20px, 4vw, 34px);
  overflow: hidden;
  border: 1px solid var(--fut-border);
  border-radius: 26px;
  background:
    radial-gradient(
      circle at 10% 0%,
      rgba(125, 211, 252, 0.13),
      transparent 32%
    ),
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.98),
      rgba(245, 250, 254, 0.96)
    );
  box-shadow:
    0 28px 70px rgba(15, 23, 42, 0.09),
    0 8px 25px rgba(14, 165, 233, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.fut-tool-workspace::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  content: "";
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(14, 165, 233, 0.45),
    transparent
  );
}

.fut-tool-workspace::after {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(186, 230, 253, 0.22);
  border-radius: 20px;
  content: "";
  pointer-events: none;
}

.fut-tool-placeholder {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 280px;
  place-items: center;
  padding: 35px;
  border: 1px dashed rgba(14, 165, 233, 0.28);
  border-radius: 18px;
  background: rgba(240, 249, 255, 0.42);
  color: var(--fut-text-muted, var(--fut-muted));
  text-align: center;
}

.fut-tool-placeholder h2 {
  margin: 0 0 8px;
  color: var(--fut-text);
}

.fut-tool-placeholder p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   10. LOGIN REQUIRED / FAQ
   -------------------------------------------------------------------------- */

.fut-login-required {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 30px auto;
  padding: 26px;
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: 18px;
  background: var(--fut-surface-2);
  text-align: center;
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.045);
}

.fut-login-required h2 {
  margin: 0 0 8px;
  color: var(--fut-text);
}

.fut-login-required p {
  color: var(--fut-text-muted, var(--fut-muted));
}

.fut-faq-list {
  display: grid;
  gap: 10px;
  margin-top: 25px;
}

.fut-faq-list details {
  border: 1px solid var(--fut-border);
  border-radius: 16px;
  background: var(--fut-surface);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.025);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.fut-faq-list details:hover,
.fut-faq-list details[open] {
  border-color: rgba(14, 165, 233, 0.26);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.fut-faq-list details[open] {
  transform: translateY(-1px);
}

.fut-faq-list summary {
  cursor: pointer;
  padding: 17px 19px;
  color: var(--fut-text);
  font-weight: 800;
  list-style: none;
}

.fut-faq-list summary::-webkit-details-marker {
  display: none;
}

.fut-faq-list summary::after {
  float: right;
  margin-left: 14px;
  color: var(--fut-primary-600, #0284c7);
  content: "+";
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 180ms ease;
}

.fut-faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.fut-faq-list details > div {
  padding: 0 19px 17px;
}

.fut-faq-list details p {
  margin: 0;
  color: var(--fut-text-muted, var(--fut-muted));
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   11. DARK MODE
   -------------------------------------------------------------------------- */

html.fut-dark .fut-tools-directory,
html.fut-dark .fut-tool-category-page,
html.fut-dark .fut-tool-page,
html[data-theme="dark"] .fut-tools-directory,
html[data-theme="dark"] .fut-tool-category-page,
html[data-theme="dark"] .fut-tool-page {
  background:
    radial-gradient(circle at 86% 4%, rgba(14, 165, 233, 0.11), transparent 27rem),
    radial-gradient(circle at 8% 38%, rgba(99, 102, 241, 0.07), transparent 25rem),
    var(--fut-bg);
}

html.fut-dark .fut-tools-directory .fut-page-hero,
html.fut-dark .fut-tool-category-page .fut-page-hero,
html[data-theme="dark"] .fut-tools-directory .fut-page-hero,
html[data-theme="dark"] .fut-tool-category-page .fut-page-hero {
  border-color: var(--fut-border);
  background:
    linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.82),
      rgba(15, 23, 42, 0.42)
    );
}

html.fut-dark .fut-search-panel,
html[data-theme="dark"] .fut-search-panel {
  border-color: rgba(71, 85, 105, 0.48);
  background:
    linear-gradient(
      145deg,
      rgba(15, 23, 42, 0.92),
      rgba(17, 31, 49, 0.88)
    );
  box-shadow:
    0 28px 65px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

html.fut-dark .fut-search-row input,
html[data-theme="dark"] .fut-search-row input {
  border-color: rgba(71, 85, 105, 0.6);
  background: rgba(15, 23, 42, 0.76);
}

html.fut-dark .fut-search-row input:focus,
html[data-theme="dark"] .fut-search-row input:focus {
  border-color: rgba(56, 189, 248, 0.65);
  background: rgba(15, 23, 42, 0.92);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}

html.fut-dark .fut-tool-category-section + .fut-tool-category-section,
html[data-theme="dark"] .fut-tool-category-section + .fut-tool-category-section {
  border-color: rgba(71, 85, 105, 0.42);
}

html.fut-dark .fut-tool-card,
html[data-theme="dark"] .fut-tool-card {
  border-color: rgba(71, 85, 105, 0.46);
  background:
    linear-gradient(
      145deg,
      rgba(15, 23, 42, 0.95),
      rgba(17, 31, 49, 0.91)
    );
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

html.fut-dark .fut-tool-card:hover,
html[data-theme="dark"] .fut-tool-card:hover {
  border-color: rgba(56, 189, 248, 0.32);
  background:
    linear-gradient(
      145deg,
      rgba(17, 31, 49, 0.98),
      rgba(20, 39, 61, 0.96)
    );
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.28),
    0 8px 28px rgba(14, 165, 233, 0.07);
}

html.fut-dark .fut-tool-icon,
html[data-theme="dark"] .fut-tool-icon {
  border-color: rgba(56, 189, 248, 0.16);
  background:
    linear-gradient(
      145deg,
      rgba(14, 116, 144, 0.22),
      rgba(15, 23, 42, 0.72)
    );
  color: #7dd3fc;
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html.fut-dark .fut-tool-category,
html[data-theme="dark"] .fut-tool-category {
  border-color: rgba(56, 189, 248, 0.15);
  background: rgba(14, 165, 233, 0.085);
  color: #7dd3fc;
}

html.fut-dark .fut-text-link,
html[data-theme="dark"] .fut-text-link {
  color: #7dd3fc;
}

html.fut-dark .fut-text-link:hover,
html[data-theme="dark"] .fut-text-link:hover {
  background: rgba(14, 165, 233, 0.08);
  border-color: rgba(56, 189, 248, 0.16);
  color: #bae6fd;
}

html.fut-dark .fut-empty-state,
html[data-theme="dark"] .fut-empty-state {
  border-color: rgba(56, 189, 248, 0.22);
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(14, 165, 233, 0.08),
      transparent 48%
    ),
    var(--fut-surface);
}

html.fut-dark .fut-tool-workspace,
html[data-theme="dark"] .fut-tool-workspace {
  border-color: rgba(71, 85, 105, 0.48);
  background:
    radial-gradient(
      circle at 10% 0%,
      rgba(14, 165, 233, 0.11),
      transparent 34%
    ),
    linear-gradient(
      145deg,
      rgba(15, 23, 42, 0.96),
      rgba(17, 31, 49, 0.93)
    );
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

html.fut-dark .fut-tool-placeholder,
html[data-theme="dark"] .fut-tool-placeholder {
  border-color: rgba(56, 189, 248, 0.23);
  background: rgba(14, 116, 144, 0.07);
}

html.fut-dark .fut-login-required,
html[data-theme="dark"] .fut-login-required {
  border-color: rgba(56, 189, 248, 0.2);
  background: rgba(15, 42, 65, 0.72);
}

html.fut-dark .fut-faq-list details,
html[data-theme="dark"] .fut-faq-list details {
  background: var(--fut-surface);
  border-color: rgba(71, 85, 105, 0.46);
}

/* --------------------------------------------------------------------------
   12. RESPONSIVE
   -------------------------------------------------------------------------- */

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

  .fut-tools-directory .fut-page-hero h1,
  .fut-tool-category-page .fut-page-hero h1 {
    max-width: 760px;
  }
}

@media (max-width: 720px) {
  .fut-tools-directory .fut-page-hero,
  .fut-tool-category-page .fut-page-hero {
    padding-top: 50px;
  }

  .fut-search-row {
    grid-template-columns: 1fr;
  }

  .fut-search-row .fut-button {
    width: 100%;
  }

  .fut-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .fut-tool-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .fut-tool-card {
    min-height: 220px;
    padding: 20px;
    border-radius: 18px;
  }

  .fut-tool-card:hover {
    transform: translateY(-3px);
  }

  .fut-tool-icon {
    width: 45px;
    height: 45px;
    flex-basis: 45px;
    border-radius: 14px;
  }

  .fut-tool-heading h1 {
    font-size: clamp(2.2rem, 12vw, 3.4rem);
  }

  .fut-tool-workspace {
    padding: 18px;
    border-radius: 21px;
  }
}

@media (max-width: 460px) {
  .fut-tools-directory .fut-page-hero,
  .fut-tool-category-page .fut-page-hero {
    padding-bottom: 30px;
  }

  .fut-search-panel {
    padding: 15px;
    border-radius: 19px;
  }

  .fut-section-heading h2 {
    font-size: 1.4rem;
  }

  .fut-tool-card {
    min-height: 0;
  }

  .fut-tool-card p {
    font-size: 0.86rem;
  }

  .fut-empty-state {
    margin-inline: 0;
    border-radius: 19px;
  }
}

/* --------------------------------------------------------------------------
   13. ACCESSIBILITY / MOTION
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .fut-tool-card,
  .fut-tool-card *,
  .fut-tool-icon,
  .fut-text-link,
  .fut-search-row input,
  .fut-search-row .fut-button,
  .fut-faq-list details,
  .fut-faq-list summary::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }

  .fut-tool-card:hover,
  .fut-text-link:hover,
  .fut-search-row .fut-button:hover {
    transform: none !important;
  }
}

@media (hover: none) {
  .fut-tool-card:hover {
    transform: none;
  }
}
