/**
 * SANOCEA Free Tools Directory Stylesheet
 * Supports scalable directory architecture: 4 to 200+ tools
 * Design System: Warm Ivory Canvas, Editorial Serif, Tactile Pastel Cards
 */

:root {
  /* Base Foundation: Warm Ivory Canvas */
  --bg-canvas: #FAF7F2;
  --bg-card: #FFFFFF;
  --ink-primary: #191817;
  --ink-secondary: #4A463F;
  --ink-muted: #767066;

  /* Refined Soft Warm Graphite Borders & Outlines */
  --border-ink: #2E2A25;
  --border-subtle: rgba(46, 42, 37, 0.14);

  /* Rich Pastel Palette with Semantic Consistency */
  --mint-bg: #EAF7EE;
  --mint-surface: #D1F2D9;
  --mint-border: #86EFAC;
  --mint-ink: #14532D;
  --mint-accent: #16A34A;

  --coral-bg: #FFF0ED;
  --coral-surface: #FFE0D9;
  --coral-border: #FCA5A5;
  --coral-ink: #991B1B;
  --coral-accent: #FF5A43;

  --peach-bg: #FFF5EB;
  --peach-surface: #FED7AA;
  --peach-border: #FDBA74;
  --peach-ink: #9A3412;
  --peach-accent: #EA580C;

  --lavender-bg: #F6F0FD;
  --lavender-surface: #E9D5FF;
  --lavender-border: #D8B4FE;
  --lavender-ink: #581C87;
  --lavender-accent: #9333EA;

  --butter-bg: #FEFCE8;
  --butter-surface: #FEF08A;
  --butter-border: #FDE047;
  --butter-ink: #713F12;
  --butter-accent: #CA8A04;

  --sky-bg: #F0F9FF;
  --sky-surface: #BAE6FD;
  --sky-border: #7DD3FC;
  --sky-ink: #075985;
  --sky-accent: #0284C7;

  /* Tactile 3D Shadows */
  --shadow-sm: 2px 2px 0px rgba(46, 42, 37, 0.85);
  --shadow-md: 3.5px 3.5px 0px rgba(46, 42, 37, 0.85);
  --shadow-lg: 5px 5px 0px rgba(46, 42, 37, 0.85);
  --shadow-pop: 0 14px 32px -8px rgba(46, 42, 37, 0.08), 3.5px 3.5px 0px rgba(46, 42, 37, 0.85);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 9999px;

  /* Typography Stacks */
  --font-display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-body: 'Archivo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', Menlo, Monaco, Consolas, monospace;
}

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

body {
  background-color: var(--bg-canvas);
  background-image: 
    radial-gradient(#E5DFD3 1.5px, transparent 1.5px),
    linear-gradient(to right, rgba(46, 42, 37, 0.02) 1px, transparent 1px);
  background-size: 24px 24px, 120px 120px;
  color: var(--ink-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 16px;
  background: var(--border-ink);
  color: #fff;
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 9999;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 16px;
}

/* Top Announcement Ribbon */
.top-announcement {
  background: linear-gradient(90deg, #FED7AA 0%, #FEF08A 35%, #D1F2D9 70%, #BAE6FD 100%);
  border-bottom: 1.75px solid var(--border-ink);
  padding: 7px 16px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--ink-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.top-announcement span {
  background: rgba(255, 255, 255, 0.9);
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(46, 42, 37, 0.2);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
}

/* Universal Site Header */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.hd {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background .35s ease, backdrop-filter .35s ease, box-shadow .35s ease, border-color .35s ease;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  width: 100%;
}
.hd.hd-s {
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 10px 30px -22px rgba(26, 26, 26, 0.35);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}
.hd-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
  position: relative;
  gap: 24px;
  max-width: 1440px;
  margin: 0 auto;
  box-sizing: border-box;
}
.nav-brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  text-decoration: none;
  flex: none;
}
.wm {
  height: 22px;
  width: auto;
  display: block;
  object-fit: contain;
  object-position: left center;
}
.hd-links {
  display: flex;
  gap: 6px;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.hd-right {
  display: flex;
  gap: 14px;
  align-items: center;
}
.hd-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 16px;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: .06em;
  color: #1a1a1a;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  isolation: isolate;
  transition: color .2s ease;
}
.hd-link:hover,
.hd-link:focus-visible {
  color: #000;
}
.hd-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity .25s, transform .25s;
}
.hd-link:hover .hd-dot,
.hd-link:focus-visible .hd-dot {
  opacity: 1;
  transform: scale(1);
}
.hd-link[data-active="true"] {
  color: #0a1f5c;
}
.hd-link[data-active="true"]::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 8px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #0a1f5c, #13b7e0);
}
.roll {
  display: inline-flex;
  overflow: hidden;
  height: 1.25em;
  line-height: 1.25em;
}
.roll-c {
  display: inline-flex;
  flex-direction: column;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1);
  transition-delay: calc(var(--i) * 22ms);
}
.roll-c > span {
  display: block;
  height: 1.25em;
  white-space: pre;
}
.roll-c > span:empty::before {
  content: attr(data-c);
}
.hd-link:hover .roll-c,
.hd-link:focus-visible .roll-c {
  transform: translateY(-1.25em);
}
.hd-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px 0 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  color: #fff !important;
  text-decoration: none !important;
  overflow: hidden;
  isolation: isolate;
  will-change: transform;
  box-shadow: 0 10px 24px -12px rgba(10, 31, 92, .7);
  transition: transform .2s ease, box-shadow .2s ease;
}
.hd-cta:hover,
.hd-cta:focus-visible {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -12px rgba(10, 31, 92, .85);
}
.hd-cta-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, #0a1f5c, #0e5fb8 45%, #13b7e0 100%);
  background-size: 200% 100%;
  transition: background-position .6s cubic-bezier(.22, 1, .36, 1);
}
.hd-cta:hover .hd-cta-bg,
.hd-cta:focus-visible .hd-cta-bg {
  background-position: 100% 0;
}
.hd-cta-t {
  position: relative;
  z-index: 1;
}
.hd-cta-i {
  position: relative;
  z-index: 1;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}
.hd-cta:hover .hd-cta-i,
.hd-cta:focus-visible .hd-cta-i {
  transform: translate(3px, -3px) rotate(8deg);
}
.hd-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, .2);
  background: transparent;
  color: #1a1a1a;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.hd-sheet {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 68px;
  background: rgba(255, 255, 255, .98);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 14px 20px 20px;
  box-shadow: 0 30px 60px -30px rgba(26, 26, 26, .55), 0 0 0 1px rgba(0, 0, 0, .08);
  display: flex;
  flex-direction: column;
  animation: hdSheetFadeIn .25s cubic-bezier(.22, 1, .36, 1);
  z-index: 1001;
}
@keyframes hdSheetFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.hd-sheet-a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 4px;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  transition: color .15s ease;
}
.hd-sheet-a[data-active="true"] {
  color: #0a1f5c;
  font-weight: 700;
}
.hd-cta-sheet {
  margin-top: 16px;
  align-self: flex-start;
  width: 100%;
  justify-content: center;
}
@media (max-width: 900px) {
  .hd-links, .hd-plain { display: none; }
  .hd-burger { display: inline-flex; }
  .hd-in { padding: 10px 18px; }
}

/* Layout Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  flex: 1;
  width: 100%;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-muted);
  margin-bottom: 24px;
}
.breadcrumb-nav a {
  color: var(--ink-secondary);
  text-decoration: none;
  font-weight: 600;
}
.breadcrumb-nav a:hover {
  color: var(--coral-accent);
  text-decoration: underline;
}
.breadcrumb-separator {
  color: var(--border-subtle);
}

/* Hero Section */
.hero-section {
  text-align: center;
  max-width: 940px;
  margin: 0 auto 40px;
  position: relative;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--butter-surface);
  color: var(--butter-ink);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1.75px solid var(--border-ink);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  transform: rotate(-1deg);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.5vw, 68px);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
  margin-bottom: 20px;
}
.hero-title em {
  font-style: italic;
  color: var(--coral-accent);
  text-decoration: underline wavy var(--peach-border) 2px;
  text-underline-offset: 6px;
}
.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
  color: var(--ink-secondary);
  max-width: 800px;
  margin: 0 auto 28px;
}
.sticker-badges-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}
.sticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1.75px solid var(--border-ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sticker-badge:hover {
  transform: translateY(-2px) scale(1.03);
}
.sticker-mint { background: var(--mint-surface); color: var(--mint-ink); transform: rotate(-1deg); }
.sticker-butter { background: var(--butter-surface); color: var(--butter-ink); transform: rotate(1deg); }
.sticker-sky { background: var(--sky-surface); color: var(--sky-ink); transform: rotate(-0.5deg); }
.sticker-lavender { background: var(--lavender-surface); color: var(--lavender-ink); transform: rotate(1.5deg); }
.sticker-peach { background: var(--peach-surface); color: var(--peach-ink); transform: rotate(-1.5deg); }

/* Prominent Search & Filter Master Bar */
.search-filter-section {
  background: var(--bg-card);
  border: 2px solid var(--border-ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 24px 28px;
  margin-bottom: 48px;
  position: relative;
}
.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 18px;
}
.search-icon {
  position: absolute;
  left: 18px;
  color: var(--ink-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
}
.search-input {
  width: 100%;
  padding: 16px 52px 16px 50px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-primary);
  background: var(--bg-canvas);
  border: 2px solid var(--border-ink);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}
.search-input:focus {
  background: #FFFFFF;
  border-color: #0A1F5C;
  box-shadow: 0 0 0 3px rgba(10, 31, 92, 0.15), var(--shadow-sm);
}
.search-clear-btn {
  position: absolute;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--ink-muted);
  cursor: pointer;
  padding: 4px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.15s;
}
.search-clear-btn:hover {
  color: var(--ink-primary);
}
.search-clear-btn.visible {
  display: flex;
}

/* Quick Search Suggestions */
.quick-queries-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  font-size: 12.5px;
  color: var(--ink-secondary);
}
.quick-queries-label {
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}
.quick-chip {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}
.quick-chip:hover {
  border-color: var(--border-ink);
  background: var(--butter-surface);
  color: var(--butter-ink);
  transform: translateY(-1px);
}

/* Product Type Segmented Filter Bar */
.product-type-filter-group {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.product-type-tab-btn {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 18px;
  background: var(--bg-canvas);
  border: 2px solid var(--border-ink);
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}
.product-type-tab-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: #FFFFFF;
}
.product-type-tab-btn[data-active="true"] {
  background: #FFFFFF;
  border-color: var(--border-ink);
  box-shadow: 0 0 0 2px var(--border-ink), var(--shadow-md);
  position: relative;
}
.product-type-tab-btn[data-active="true"]::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 16px;
  right: 16px;
  height: 4px;
  background: var(--coral-accent);
  border-radius: var(--radius-pill);
}
.tab-header-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.tab-icon {
  font-size: 16px;
  line-height: 1;
}
.tab-label {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  color: var(--ink-primary);
  flex: 1;
}
.tab-count-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--border-ink);
  color: #FFFFFF;
}
.tab-subtext {
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.3;
}

/* Category Filter Navigation */
.category-filter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-subtle);
  margin-bottom: 16px;
}
.category-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-ink);
  background: var(--bg-canvas);
  color: var(--ink-primary);
  font-family: var(--font-heading);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}
.category-pill-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  background: #FFFFFF;
}
.category-pill-btn[data-active="true"] {
  background: var(--border-ink);
  color: #FFFFFF;
  box-shadow: none;
  transform: translateY(1px);
}
.category-pill-btn[data-active="true"] .category-count-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}
.category-count-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  background: rgba(46, 42, 37, 0.08);
  color: var(--ink-secondary);
}

/* Secondary Controls Row (Status, Platform, Results Counter) */
.secondary-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 13px;
}
.filter-subgroup {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.filter-select {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-primary);
  background: var(--bg-canvas);
  border: 1.5px solid var(--border-ink);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  outline: none;
  cursor: pointer;
}
.filter-select:focus {
  border-color: #0A1F5C;
}
.results-counter-box {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-secondary);
}
.reset-filter-link {
  color: var(--coral-accent);
  text-decoration: underline;
  cursor: pointer;
  font-size: 11.5px;
}

/* Section Divider Headers */
.section-headline-group {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin: 56px 0 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-ink);
}
.headline-left h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  font-weight: 400;
  color: var(--ink-primary);
}
.headline-left p {
  font-size: 14px;
  color: var(--ink-secondary);
  margin-top: 4px;
}
.headline-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-ink);
  background: var(--butter-surface);
  color: var(--butter-ink);
}

/* 4 Featured Rich Cards (Original Rich Aesthetic preserved) */
.featured-rich-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-bottom: 64px;
}
.featured-tool-card {
  background: var(--bg-card);
  border: 2px solid var(--border-ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 36px 40px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.featured-tool-card:hover {
  transform: translateY(-2px);
}
.card-banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
}
.tool-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.tool-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1.5px solid var(--border-ink);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot-green { background: #16A34A; box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.25); }
.dot-amber { background: #CA8A04; box-shadow: 0 0 0 3px rgba(202, 138, 4, 0.25); }
.dot-blue { background: #0284C7; box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.25); }
.dot-purple { background: #9333EA; box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.25); }

.badge-live { background: var(--mint-surface); color: var(--mint-ink); }
.badge-beta { background: var(--butter-surface); color: var(--butter-ink); }
.badge-staging { background: var(--sky-surface); color: var(--sky-ink); }
.badge-planned { background: var(--lavender-surface); color: var(--lavender-ink); }

.product-type-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-ink);
}
.badge-interactive {
  background: var(--butter-surface);
  color: var(--butter-ink);
}
.badge-selfhosted {
  background: var(--sky-surface);
  color: var(--sky-ink);
}
.setup-assisted-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #065F46;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-pill);
  padding: 2px 7px;
}

.preset-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.preset-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-canvas);
  border: 1.5px solid var(--border-ink);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  color: var(--ink-secondary);
}
.tool-main-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
  align-items: start;
}
@media (max-width: 960px) {
  .tool-main-grid { grid-template-columns: 1fr; }
  .featured-tool-card { padding: 24px; }
}
.tool-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.8vw, 42px);
  line-height: 1.15;
  font-weight: 400;
  color: var(--ink-primary);
  margin-bottom: 16px;
}
.tool-description {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-secondary);
  margin-bottom: 28px;
}
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
@media (max-width: 640px) {
  .capabilities-grid { grid-template-columns: 1fr; }
}
.cap-card {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1.75px solid var(--border-ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease;
}
.cap-card:hover { transform: translateY(-2px); }
.cap-card.butter { background: var(--butter-bg); }
.cap-card.mint { background: var(--mint-bg); }
.cap-card.sky { background: var(--sky-bg); }
.cap-card.lavender { background: var(--lavender-bg); }
.cap-card.coral { background: var(--coral-bg); }
.cap-title {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cap-card.butter .cap-title { color: var(--butter-ink); }
.cap-card.mint .cap-title { color: var(--mint-ink); }
.cap-card.sky .cap-title { color: var(--sky-ink); }
.cap-card.lavender .cap-title { color: var(--lavender-ink); }
.cap-card.coral .cap-title { color: var(--coral-ink); }
.cap-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-secondary);
}

.action-sidebar-card {
  background: var(--bg-canvas);
  border: 1.75px solid var(--border-ink);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.action-price-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--mint-ink);
  background: var(--mint-surface);
  border: 1.5px solid var(--border-ink);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-bottom: 14px;
}
.action-big-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--coral-accent);
  color: #FFFFFF;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 15.5px;
  padding: 16px 22px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--border-ink);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-bottom: 14px;
}
.action-big-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: #E0442E;
}
.action-guarantee-list {
  list-style: none;
  font-size: 12px;
  color: var(--ink-secondary);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-subtle);
}
.action-guarantee-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.action-guarantee-list li svg {
  color: var(--mint-accent);
  flex-shrink: 0;
}

/* ==========================================================
   SCALABLE DIRECTORY GRID: Compact Cards (10 to 200+ Tools)
   ========================================================== */
.directory-grid-container {
  margin-bottom: 40px;
}
.compact-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) {
  .compact-tools-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .compact-tools-grid { grid-template-columns: 1fr; }
}

.compact-tool-card {
  background: var(--bg-card);
  border: 2px solid var(--border-ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.15s ease;
}
.compact-tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-pop);
}
.compact-card-top {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.compact-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.compact-cat-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-secondary);
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}
.compact-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink-primary);
}
.compact-title a {
  color: inherit;
  text-decoration: none;
}
.compact-title a:hover {
  color: var(--coral-accent);
}
.compact-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-secondary);
}
.compact-platforms-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.platform-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  background: rgba(46, 42, 37, 0.05);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  color: var(--ink-secondary);
}
.compact-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
}
.compute-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-muted);
}
.compact-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-heading);
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink-primary);
  text-decoration: none;
  background: var(--bg-canvas);
  border: 1.5px solid var(--border-ink);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}
.compact-action-btn:hover {
  background: var(--coral-accent);
  color: #FFFFFF;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* Empty State */
.empty-directory-state {
  background: var(--bg-card);
  border: 2px dashed var(--border-ink);
  border-radius: var(--radius-md);
  padding: 48px 24px;
  text-align: center;
  margin: 20px 0;
  display: none;
}
.empty-directory-state.visible {
  display: block;
}
.empty-icon {
  font-size: 36px;
  margin-bottom: 12px;
}
.empty-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.empty-desc {
  font-size: 14px;
  color: var(--ink-secondary);
  max-width: 480px;
  margin: 0 auto 20px;
}

/* Load More & Pagination Controls */
.load-more-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  margin-bottom: 48px;
}
.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 2px solid var(--border-ink);
  border-radius: var(--radius-pill);
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  color: var(--ink-primary);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: all 0.15s ease;
}
.load-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--butter-surface);
}
.pagination-status-text {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
}

/* Engineering Philosophy Pillars */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 64px auto 36px;
}
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 38px);
  color: var(--ink-primary);
  margin-bottom: 12px;
}
.section-subtitle {
  font-size: 15px;
  color: var(--ink-secondary);
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}
@media (max-width: 860px) {
  .pillars-grid { grid-template-columns: 1fr; }
}
.pillar-card {
  background: var(--bg-card);
  border: 1.75px solid var(--border-ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 28px 24px;
  position: relative;
  transition: transform 0.15s ease;
}
.pillar-card:hover { transform: translateY(-3px); }
.pillar-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  border: 1.75px solid var(--border-ink);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}
.pillar-card:nth-child(1) .pillar-icon-box { background: var(--mint-surface); }
.pillar-card:nth-child(2) .pillar-icon-box { background: var(--butter-surface); }
.pillar-card:nth-child(3) .pillar-icon-box { background: var(--sky-surface); }
.pillar-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 10px;
}
.pillar-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

/* Roadmap Grid: Showing strictly genuinely upcoming tools */
.upcoming-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}
@media (max-width: 960px) {
  .upcoming-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .upcoming-grid { grid-template-columns: 1fr; }
}
.upcoming-card {
  background: var(--bg-card);
  border: 1.75px dashed rgba(46, 42, 37, 0.45);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: border-color 0.15s;
}
.upcoming-card:hover {
  border-color: var(--border-ink);
}
.upcoming-stage-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  display: inline-block;
  align-self: flex-start;
}
.stage-staging {
  background: var(--sky-surface);
  color: var(--sky-ink);
  border: 1px solid var(--sky-border);
}
.stage-planned {
  background: var(--lavender-bg);
  color: var(--lavender-ink);
  border: 1px solid var(--lavender-border);
}
.upcoming-title {
  font-family: var(--font-heading);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 6px;
}
.upcoming-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-muted);
}

/* Platform Guidance Notice */
.policy-box {
  background: var(--butter-bg);
  border: 1.75px solid var(--border-ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 20px 24px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--butter-ink);
  margin-bottom: 48px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.policy-box strong {
  color: var(--ink-primary);
}

/* Footer */
.site-footer {
  background: var(--bg-card);
  border-top: 1.75px solid var(--border-ink);
  padding: 48px 24px 36px;
  font-size: 13.5px;
  color: var(--ink-secondary);
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}
.footer-brand-side {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
}
.footer-links-row a {
  color: var(--ink-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}
.footer-links-row a:hover {
  color: var(--coral-accent);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 12.5px;
  color: var(--ink-muted);
}
