/* ==========================================================================
   TECHERICS TOOLS — MODERN AIRY LIGHT DESIGN SYSTEM (2026)
   Aesthetic: Stripe & Apple inspired clean white, soft slate, and vibrant badges
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

/* --- Modern Airy Light Color Tokens --- */
:root {
  /* Surfaces */
  --bg-deep: #f8fafc;
  --bg-canvas: #ffffff;
  --bg-surface: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --bg-segmented: #f1f5f9;
  --bg-segmented-active: #ffffff;

  /* Typography */
  --text-white: #0f172a;
  --text-heading: #0f172a;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-dim: #94a3b8;

  /* Borders & Dividers */
  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-card: #e2e8f0;
  --border-hover: #94a3b8;
  --border-focus: #2563eb;

  /* Brand Primary & Accents */
  --brand-primary: #2563eb;
  --brand-primary-hover: #1d4ed8;
  --brand-light: #eff6ff;

  /* Stripe-Style Pastel Category Badges */
  --cat-dev: #0284c7;
  --cat-dev-bg: #f0f9ff;
  --cat-dev-border: #bae6fd;

  --cat-media: #059669;
  --cat-media-bg: #ecfdf5;
  --cat-media-border: #a7f3d0;

  --cat-pdf: #e11d48;
  --cat-pdf-bg: #fff1f2;
  --cat-pdf-border: #fecdd3;

  --cat-calc: #d97706;
  --cat-calc-bg: #fffbeb;
  --cat-calc-border: #fde68a;

  --cat-text: #4f46e5;
  --cat-text-bg: #eef2ff;
  --cat-text-border: #c7d2fe;

  --cat-seo: #7c3aed;
  --cat-seo-bg: #faf5ff;
  --cat-seo-border: #e9d5ff;

  --cat-security: #0891b2;
  --cat-security-bg: #ecfeff;
  --cat-security-border: #a5f3fc;

  --cat-utility: #475569;
  --cat-utility-bg: #f8fafc;
  --cat-utility-border: #e2e8f0;

  /* Elevation & Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 2px 8px -2px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-card-hover: 0 12px 28px -6px rgba(15, 23, 42, 0.1), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
  --shadow-search: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-search-focus: 0 12px 32px -4px rgba(37, 99, 235, 0.12), 0 0 0 3px rgba(37, 99, 235, 0.15);

  /* Typography Stacks */
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
  background-color: var(--bg-deep);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Modern Airy Ambient Light Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    radial-gradient(circle at 50% -10%, rgba(37, 99, 235, 0.05) 0%, transparent 60%),
    radial-gradient(circle at 10% 25%, rgba(14, 165, 233, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 90% 45%, rgba(168, 85, 247, 0.03) 0%, transparent 50%);
  background-size: 100% 100%;
  pointer-events: none;
  z-index: 0;
}

.wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  color: var(--text-heading);
}

/* ==========================================================================
   MINIMALIST FROSTED GLASS HEADER (AIRY LIGHT)
   ========================================================================== */
header {
  position: sticky;
  top: 0;
  z-index: 9999;
  width: 100%;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: block;
}

.brand-text {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-heading);
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: #f1f5f9;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 28px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Quick Search Trigger in Header */
.nav-search-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.nav-search-trigger:hover {
  background: #e2e8f0;
  border-color: var(--border-medium);
  color: var(--text-heading);
}

.nav-kbd {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 2px 6px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-secondary);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.nav-status-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #059669;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.nav-toggle {
  display: none;
  color: var(--text-heading);
  padding: 8px;
}

/* ==========================================================================
   HERO SECTION — OPEN, AIRY & BREATHABLE
   ========================================================================== */
.hero-tools {
  padding: 75px 0 50px;
  text-align: center;
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: #1d4ed8;
  margin-bottom: 24px;
}

.hero-pill-icon {
  color: #2563eb;
}

.hero-title {
  font-size: 3.4rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.035em;
  max-width: 880px;
  margin: 0 auto 18px;
  color: #0f172a;
}

.hero-title span.dim {
  color: #64748b;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.65;
  color: #475569;
  max-width: 650px;
  margin: 0 auto 38px;
  font-weight: 400;
}

/* Spotlight Command Search Bar (Airy Light) */
.spotlight-search-container {
  max-width: 720px;
  margin: 0 auto 22px;
  position: relative;
}

.spotlight-search-box {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 7px 10px 7px 18px;
  box-shadow: var(--shadow-search);
  transition: all var(--transition-fast);
}

.spotlight-search-box:focus-within {
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-search-focus);
}

.search-icon-wrap {
  display: flex;
  align-items: center;
  color: #64748b;
  margin-right: 12px;
}

.spotlight-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text-heading);
}

.spotlight-input::placeholder {
  color: #94a3b8;
}

.search-clear-btn {
  display: none;
  background: #f1f5f9;
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
  padding: 4px 8px;
  font-size: 0.75rem;
  margin-right: 8px;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
}

.search-clear-btn:hover {
  background: #e2e8f0;
  color: var(--text-heading);
}

.search-shortcut-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 4px 8px;
}

/* Quick Jump Trending Queries */
.trending-queries-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.trending-label {
  font-weight: 600;
  color: #64748b;
}

.query-chip {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: all var(--transition-fast);
}

.query-chip:hover {
  background: #eff6ff;
  color: var(--brand-primary);
  border-color: #bfdbfe;
  transform: translateY(-1px);
}

/* ==========================================================================
   SECTION 1: CURATED ESSENTIALS / TRENDING POWERHOUSE (BENTO GRID)
   ========================================================================== */
.section-curated {
  padding: 45px 0 65px;
  border-top: 1px solid var(--border-subtle);
}

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

.section-title-wrap h2 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 6px;
  color: var(--text-heading);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.bento-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
}

.bento-card:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.bento-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.bento-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.bento-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
}

.bento-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 8px;
  letter-spacing: -0.015em;
  transition: color var(--transition-fast);
}

.bento-card:hover .bento-title {
  color: var(--brand-primary);
}

.bento-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 20px;
}

.bento-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
}

.bento-bottom .launch-arrow {
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  transition: transform var(--transition-fast);
}

.bento-card:hover .bento-bottom .launch-arrow {
  transform: translate(3px, -3px);
}

/* ==========================================================================
   SECTION 2: COMPLETE TOOLS DIRECTORY & SEGMENTED TABS
   ========================================================================== */
.section-directory {
  padding: 45px 0 75px;
  border-top: 1px solid var(--border-subtle);
}

/* Segmented Category Controls (Airy Light Pill Bar) */
.category-segmented-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 5px;
  margin-bottom: 26px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-segmented-bar::-webkit-scrollbar {
  display: none;
}

.segment-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.segment-btn:hover {
  color: var(--text-heading);
  background: rgba(255, 255, 255, 0.6);
}

.segment-btn.active {
  background: #ffffff;
  color: var(--brand-primary);
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.segment-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  background: #e2e8f0;
  color: #475569;
}

.segment-btn.active .segment-count {
  background: #eff6ff;
  color: #1d4ed8;
}

/* Filter Summary Bar */
.directory-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.directory-status-bar strong {
  color: var(--text-heading);
}

.directory-quick-sort {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-select {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.84rem;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

/* Clean, Spacious Tool Cards Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tool-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-fast);
}

.tool-card:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.tool-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.tool-category-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 4px;
}

/* Category Badge Specifics (Stripe Colors) */
.tag-dev { color: var(--cat-dev); background: var(--cat-dev-bg); border: 1px solid var(--cat-dev-border); }
.tag-media { color: var(--cat-media); background: var(--cat-media-bg); border: 1px solid var(--cat-media-border); }
.tag-pdf { color: var(--cat-pdf); background: var(--cat-pdf-bg); border: 1px solid var(--cat-pdf-border); }
.tag-calc { color: var(--cat-calc); background: var(--cat-calc-bg); border: 1px solid var(--cat-calc-border); }
.tag-text { color: var(--cat-text); background: var(--cat-text-bg); border: 1px solid var(--cat-text-border); }
.tag-seo { color: var(--cat-seo); background: var(--cat-seo-bg); border: 1px solid var(--cat-seo-border); }
.tag-security { color: var(--cat-security); background: var(--cat-security-bg); border: 1px solid var(--cat-security-border); }
.tag-utility { color: var(--cat-utility); background: var(--cat-utility-bg); border: 1px solid var(--cat-utility-border); }

.tool-card-icon {
  font-size: 1.2rem;
}

.tool-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 6px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  transition: color var(--transition-fast);
}

.tool-card:hover .tool-card-title {
  color: var(--brand-primary);
}

.tool-card-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tool-card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
}

.tool-card-action .action-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--brand-primary);
  font-weight: 600;
}

.tool-card:hover .tool-card-action .action-link {
  color: var(--brand-primary-hover);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-md);
}

.empty-state h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.btn-reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--brand-primary);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.btn-reset:hover {
  background: var(--brand-primary-hover);
}

/* ==========================================================================
   SECTION 3: ARCHITECTURE & PRIVACY BENCHMARKS
   ========================================================================= */
.section-features {
  padding: 80px 0;
  border-top: 1px solid var(--border-subtle);
  background: #f1f5f9;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-box {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 30px;
  position: relative;
  box-shadow: var(--shadow-card);
}

.feature-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.feature-box h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-heading);
}

.feature-box p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   MINIMALIST AIRY FOOTER
   ========================================================================== */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 65px 0 35px;
  background: #ffffff;
  position: relative;
  z-index: 2;
}

.foot-grid-4col {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 45px;
}

.foot-brand h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.foot-bio {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
  margin-bottom: 18px;
}

.foot-heading {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-bottom: 18px;
}

.foot-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.foot-links a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  transition: color var(--transition-fast);
}

.foot-links a:hover {
  color: var(--brand-primary);
}

.foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 25px;
  color: var(--text-muted);
  font-size: 0.84rem;
}

/* ==========================================================================
   RESPONSIVE LAYOUT
   ========================================================================== */
@media (max-width: 1100px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 860px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

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

  .foot-grid-4col {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .wrap {
    padding: 0 18px;
  }

  .hero-tools {
    padding: 50px 0 35px;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .bento-grid, .tools-grid {
    grid-template-columns: 1fr;
  }

  .search-shortcut-pill {
    display: none;
  }

  .foot-grid-4col {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .foot-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ==========================================================================
   SPECIALIZED TOOL WORKSPACE DESIGN SYSTEM (NON-GENERIC TAILORED LAYOUTS)
   ========================================================================== */
.tool-page-container {
  max-width: 1240px;
  margin: 30px auto 80px;
  padding: 0 24px;
}

.tool-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.tool-breadcrumbs a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.tool-breadcrumbs a:hover {
  color: var(--brand-primary);
}

.tool-intro-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.tool-title-group h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

.tool-title-group p {
  color: var(--text-secondary);
  font-size: 1.02rem;
  max-width: 680px;
  line-height: 1.6;
}

.tool-header-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* 1. CALCULATOR & CONVERTER WORKSPACE (e.g. GST, Loan, Age) */
.calc-workbench-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: start;
}

.calc-input-panel {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.calc-group {
  margin-bottom: 24px;
}

.calc-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 10px;
}

.calc-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.calc-input-icon {
  position: absolute;
  left: 16px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.calc-text-input {
  width: 100%;
  padding: 14px 16px 14px 40px;
  background: #f8fafc;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-heading);
  outline: none;
  transition: all var(--transition-fast);
}

.calc-text-input:focus {
  background: #ffffff;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Rate & Mode Chips */
.calc-chips-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.calc-chip-btn {
  flex: 1;
  min-width: 70px;
  padding: 12px 14px;
  background: #f1f5f9;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.calc-chip-btn:hover {
  background: #e2e8f0;
  color: var(--text-heading);
}

.calc-chip-btn.active {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1d4ed8;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.12);
}

/* Calculator Receipt Breakdown Card (Right Column) */
.calc-receipt-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-card-hover);
  position: sticky;
  top: 90px;
}

.receipt-head {
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--border-medium);
  margin-bottom: 22px;
}

.receipt-total-label {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.receipt-total-amount {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--brand-primary);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.receipt-breakdown-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.92rem;
}

.receipt-row-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.receipt-row-val {
  font-weight: 700;
  color: var(--text-heading);
  font-family: var(--font-mono);
}

.receipt-actions {
  display: flex;
  gap: 10px;
}

.btn-receipt-action {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  background: #f1f5f9;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-receipt-action:hover {
  background: #e2e8f0;
  color: var(--text-heading);
}

.btn-receipt-primary {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #ffffff;
}

.btn-receipt-primary:hover {
  background: var(--brand-primary-hover);
  color: #ffffff;
}

/* 2. DEVELOPER CODE / JSON WORKSPACE */
.editor-workbench-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.toolbar-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tool-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #f1f5f9;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tool-action-btn:hover {
  background: #e2e8f0;
  color: var(--text-heading);
}

.tool-action-btn.primary {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #ffffff;
}

.tool-action-btn.primary:hover {
  background: var(--brand-primary-hover);
}

.editor-pane-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.editor-pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.editor-textarea {
  width: 100%;
  height: 480px;
  padding: 18px;
  border: none;
  background: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-heading);
  outline: none;
  resize: vertical;
}

/* 3. MEDIA / IMAGE DUAL CANVAS WORKSPACE */
.media-workbench-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 35px;
}

.media-canvas-panel {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.media-canvas-header {
  padding: 14px 18px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-heading);
}

.media-canvas-body {
  padding: 24px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #f8fafc;
  background-image: 
    linear-gradient(45deg, #f1f5f9 25%, transparent 25%),
    linear-gradient(-45deg, #f1f5f9 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f1f5f9 75%),
    linear-gradient(-45deg, transparent 75%, #f1f5f9 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  position: relative;
}

.dropzone-box {
  width: 100%;
  max-width: 420px;
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 40px 20px;
  text-align: center;
  background: #ffffff;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dropzone-box:hover, .dropzone-box.dragover {
  border-color: var(--brand-primary);
  background: #eff6ff;
}

@media (max-width: 900px) {
  .calc-workbench-grid,
  .editor-workbench-grid,
  .media-workbench-container,
  .writer-workbench-grid,
  .vault-workbench-grid,
  .chrono-workbench-grid,
  .qr-workbench-grid,
  .diag-workbench-grid {
    grid-template-columns: 1fr !important;
  }
}

/* 4. WRITER & SEO TELEMETRY WORKSPACE (Word Counter, Text Tools) */
.telemetry-hud-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.telemetry-stat-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.telemetry-stat-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-card);
}

.telemetry-val {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--brand-primary);
  line-height: 1.1;
  margin-bottom: 4px;
}

.telemetry-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.writer-workbench-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 35px;
}

.writer-canvas-panel {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.writer-toolbar {
  padding: 12px 18px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.writer-textarea {
  width: 100%;
  min-height: 440px;
  padding: 24px;
  border: none;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-heading);
  outline: none;
  resize: vertical;
}

.writer-intel-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.intel-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.intel-title {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-heading);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.density-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.density-table th, .density-table td {
  padding: 8px 6px;
  border-bottom: 1px solid #f1f5f9;
  text-align: left;
}

.density-table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.76rem;
  text-transform: uppercase;
}

.density-badge {
  background: #eff6ff;
  color: var(--brand-primary);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
}

/* 5. SECURITY & KEY VAULT WORKBENCH (Password Generator, Hash) */
.vault-workbench-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  margin-bottom: 35px;
}

.vault-config-panel {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-card);
}

.vault-hero-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-card-hover);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.vault-key-box {
  background: #f8fafc;
  border: 2px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 20px 22px;
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-heading);
  word-break: break-all;
  line-height: 1.45;
  margin-bottom: 16px;
  position: relative;
  transition: all var(--transition-fast);
}

.vault-key-box:hover {
  border-color: var(--brand-primary);
  background: #ffffff;
}

.entropy-meter-wrap {
  margin: 18px 0;
}

.entropy-track {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  margin-bottom: 8px;
}

.entropy-bar {
  height: 100%;
  transition: width 0.3s ease, background 0.3s ease;
}

.security-check-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.86rem;
}

.security-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.security-check-item.valid {
  color: #16a34a;
  font-weight: 600;
}

/* 6. CHRONO & LIFE ANALYTICS WORKBENCH (Age Calculator) */
.chrono-workbench-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 24px;
  margin-bottom: 35px;
}

.chrono-hero-banner {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 20px;
  text-align: center;
}

.chrono-hero-age {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-heading);
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.chrono-hero-sub {
  color: var(--brand-primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.chrono-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.chrono-stat-item {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.chrono-stat-val {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-heading);
  display: block;
}

.chrono-stat-lbl {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-top: 4px;
  display: block;
}

/* 7. BRAND QR & STUDIO WORKBENCH (QR Code Generator) */
.qr-workbench-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 24px;
  margin-bottom: 35px;
}

.qr-type-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 20px;
  gap: 8px;
  overflow-x: auto;
}

.qr-type-tab {
  padding: 10px 16px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.qr-type-tab.active {
  color: var(--brand-primary);
  border-bottom-color: var(--brand-primary);
}

.qr-preview-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-card-hover);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 460px;
}

.qr-stage-box {
  background: #ffffff;
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

/* 8. HEALTH & DIAGNOSTIC WORKBENCH (BMI Calculator) */
.diag-workbench-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 35px;
}

.diag-score-hero {
  text-align: center;
  padding: 24px;
  background: #f8fafc;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.diag-score-number {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1;
  margin-bottom: 8px;
}

.diag-category-pill {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
}

.diag-spectrum-bar {
  height: 12px;
  background: linear-gradient(to right, #38bdf8 0%, #22c55e 25%, #eab308 65%, #ef4444 100%);
  border-radius: 6px;
  position: relative;
  margin: 24px 0 16px;
}

.diag-spectrum-marker {
  width: 4px;
  height: 22px;
  background: #0f172a;
  border: 2px solid #ffffff;
  border-radius: 2px;
  position: absolute;
  top: -5px;
  transform: translateX(-50%);
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  transition: left 0.4s ease;
}
