﻿/* Tools Hub â€” /tools/ â€” theme via --th-accent from site button color */

.tools-hub {
  --th-accent: #4356a3;
  --th-accent-rgb: 67 86 163;
  --th-accent-soft: #eef2ff;
  --th-hero-ink: #14213d;
  --th-hero-stroke: #1e2a44;
  --th-hero-muted: #64748b;
  --th-hero-divider: #d8dee8;
}

.tools-hub-page {
  background: #f4f5fb;
  min-height: 100vh;
  padding-bottom: 72px;
}

/* â”€â”€â”€ Hero shell â”€â”€â”€ */
.th-hero {
  background: #fff;
  border-bottom: 1px solid #edf0f7;
  overflow: hidden;
}

.th-hero__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: clamp(48px, 5vw, 72px) 24px clamp(44px, 4vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}

.th-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--th-accent);
  padding: 7px 14px;
  border-radius: 999px;
  background: rgb(var(--th-accent-rgb) / 0.08);
  border: 1px solid rgb(var(--th-accent-rgb) / 0.16);
  margin-bottom: 18px;
}

.th-hero__eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--th-accent);
  box-shadow: 0 0 0 4px rgb(var(--th-accent-rgb) / 0.18);
  animation: th-pulse-dot 2s ease-in-out infinite;
}

@keyframes th-pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.75; }
}

.th-hero__title {
  margin: 0 0 16px;
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 900;
  line-height: 1.32;
  color: var(--th-hero-ink);
  letter-spacing: -0.01em;
}

.th-hero__title em {
  font-style: normal;
  color: var(--th-accent);
}

.th-hero__lead {
  margin: 0 0 28px;
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 2;
  color: var(--th-hero-muted);
  max-width: 520px;
}

.th-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.th-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 22px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  font-family: inherit;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s, border-color 0.18s, color 0.18s;
}

.th-hero__btn--primary {
  background: var(--th-accent);
  color: #fff;
  box-shadow: 0 12px 28px -10px rgb(var(--th-accent-rgb) / 0.55);
}

.th-hero__btn--primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 16px 36px -10px rgb(var(--th-accent-rgb) / 0.65);
}

.th-hero__btn--ghost {
  background: #fff;
  color: var(--th-hero-ink);
  border: 1.5px solid var(--th-hero-divider);
}

.th-hero__btn--ghost:hover {
  border-color: var(--th-accent);
  color: var(--th-accent);
}

.th-hero__rule {
  height: 2px;
  background: var(--th-accent);
  opacity: 0.85;
}

/* ─── Hero animation — premium abstract network ─── */
.th-hero__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.th-hero__scene {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: clamp(280px, 28vw, 340px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.th-net-field {
  position: relative;
  width: 100%;
  aspect-ratio: 3/2;
  background: transparent;
  border-radius: 16px;
  overflow: visible;
}

.th-net-canvas {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

/* Edges */
.th-edge {
  fill: none;
  stroke: #E2E8F0;
  stroke-width: 1;
  stroke-linecap: round;
  transition: stroke 0.5s ease, opacity 0.5s ease;
}

.th-edge--hub {
  stroke: #CBD5E1;
  stroke-width: 1.2;
}

.th-edge--faint {
  stroke: #F1F5F9;
  stroke-width: 0.75;
}

/* Nodes */
.th-node {
  fill: #94A3B8;
  transition: fill 0.3s ease, r 0.3s ease;
}

.th-node--primary {
  fill: #64748B;
}

.th-node--secondary {
  fill: #CBD5E1;
}

/* Hub logo group */
.th-hub-group {
  transform-origin: 300px 200px;
}

.th-hub {
  stroke: #ffffff;
  stroke-width: 2;
}

.th-hub--glow {
  stroke: none;
  fill: #2563EB;
}

.th-hub--blue {
  fill: #2563EB;
  filter: drop-shadow(0 2px 10px rgba(37, 99, 235, 0.28));
}

.th-hub--cyan {
  fill: #06B6D4;
  filter: drop-shadow(0 2px 8px rgba(6, 182, 212, 0.24));
}

.th-hub--orange {
  fill: #F97316;
  filter: drop-shadow(0 2px 6px rgba(249, 115, 22, 0.22));
}

/* Packets */
.th-packet {
  filter: drop-shadow(0 0 4px rgba(37, 99, 235, 0.4));
}
/* Cards + trust â€” theme-aware */
.tools-card__icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  background: var(--th-accent-soft);
  border: 1px solid rgb(var(--th-accent-rgb) / 0.12);
  transition: transform 0.2s, background 0.2s;
}

.ai-card--link:hover .tools-card__icon-wrap { transform: scale(1.06); }

.tools-card__svg {
  width: 36px;
  height: 36px;
  color: var(--th-accent);
}

.tools-card__img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.tools-card__name {
  margin: 0 0 6px;
  font-size: 14.5px;
  font-weight: 800;
  color: #1e293b;
  text-align: center;
  line-height: 1.35;
}

.ai-card--link:hover .tools-card__name { color: var(--th-accent); }

.tools-card .ai-card__title { font-size: 12px; line-height: 1.5; }

.tools-hub .ai-section-title::before {
  background: linear-gradient(180deg, var(--th-accent), rgb(var(--th-accent-rgb) / 0.65));
}

.ai-card--link:hover {
  border-color: rgb(var(--th-accent-rgb) / 0.25);
  box-shadow: 0 12px 32px rgb(var(--th-accent-rgb) / 0.12), 0 2px 8px rgba(15, 23, 42, 0.06);
}

.tools-hub-trust {
  max-width: 1140px;
  margin: 0 auto;
  padding: 28px 24px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.tools-hub-trust__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #edf0f7;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  line-height: 1.5;
}

.tools-hub-trust__ic {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--th-accent-soft);
  color: var(--th-accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.tools-hub-trust__ic svg { width: 18px; height: 18px; }

.th-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.th-reveal.th-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .th-net-float,
  .th-net-hub,
  .th-net-dust i,
  .th-net-ripple,
  .th-hero__eyebrow-dot,
  .th-reveal {
    animation: none !important;
    transition: none !important;
  }
  .th-reveal { opacity: 1; transform: none; }
  .th-net-packet { display: none; }
}

@media (max-width: 900px) {
  .th-hero__inner { grid-template-columns: 1fr; }
  .th-hero__visual { order: -1; max-width: 400px; margin: 0 auto; }
  .th-hero__lead { max-width: none; }
  .tools-hub-trust { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .th-hero__scene { min-height: 320px; }
  .th-hero__actions { flex-direction: column; align-items: stretch; }
  .th-hero__btn { width: 100%; }
}
