:root {
  --navy-dark: var(--slate-900);
  --navy: var(--brand);
  --navy-light: var(--brand-mid);
  --orange: var(--accent);
  --orange-hover: var(--accent);
  --orange-light: var(--accent-light);







  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px color-mix(in srgb, var(--brand) 6%, transparent);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--slate-50);
  color: var(--slate-900);
  line-height: 1.6;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* HERO */
.hub-hero {
  background: linear-gradient(135deg, var(--slate-900) 0%, var(--brand) 60%, var(--brand-mid) 100%);
  color: var(--surface);
  padding: 64px 0 48px;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--cta);
}
.hub-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(color-mix(in srgb, var(--surface) 3%, transparent) 1px, transparent 1px),
                    linear-gradient(90deg, color-mix(in srgb, var(--surface) 3%, transparent) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--accent-soft);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.hub-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
}
.hub-hero h1 span { color: var(--cta); }
.hub-hero p {
  color: var(--slate-300);
  font-size: 1.1rem;
  max-width: 780px;
  margin-bottom: 24px;
}

/* SEARCH & FILTER BAR */
.hub-wrapper { padding: 40px 0 60px; }
.search-card {
  background: var(--surface);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 36px;
}
.search-input-box {
  position: relative;
  margin-bottom: 18px;
}
.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--slate-600);
}
.hub-search-input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-md);
  font-size: 1rem;
  color: var(--slate-900);
  transition: all 0.2s;
}
.hub-search-input:focus {
  outline: none;
  border-color: var(--cta);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cat-btn {
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--slate-700);
  cursor: pointer;
  transition: all 0.2s;
}
.cat-btn:hover, .cat-btn.active {
  background: var(--text);
  border-color: var(--text);
  color: var(--surface);
}

/* TOOLS GRID */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 26px;
  margin-bottom: 48px;
}
@media (max-width: 600px) {
  .tools-grid { grid-template-columns: 1fr; }
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  position: relative;
}
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--brand) 10%, transparent);
  border-color: var(--cta);
}
.tool-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.tool-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--cta-soft);
  color: var(--cta);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tool-badge {
  background: var(--success-soft);
  color: var(--success-dark);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.tool-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.35;
}
.tool-card:hover .tool-title { color: var(--cta); }
.tool-desc {
  font-size: 0.88rem;
  color: var(--slate-600);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}
.tool-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--slate-100);
  padding-top: 14px;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tool-tag {
  background: var(--slate-100);
  color: var(--slate-600);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}
.tool-arrow {
  color: var(--cta);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* EDITORIAL ARTICLE */
.editorial-box {
  background: var(--surface);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 32px;
}
.editorial-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  border-left: 4px solid var(--cta);
  padding-left: 14px;
}
.editorial-p {
  color: var(--slate-700);
  font-size: 0.96rem;
  line-height: 1.7;
  margin-bottom: 16px;
}
