/* ==========================================================================
   SEOLand — Master Stylesheet
   Design Language: Inspired by greytHR (Deep Purple / Violet / Multicolored Boxes)
   ========================================================================== */

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

:root {
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* greytHR-inspired Signature Colors */
  --brand-navy: #1C1B1F;
  --brand-dark: #230B38;
  --brand-primary: #310052;
  --brand-purple: #8900C4;
  --brand-purple-light: #A855F7;
  --brand-purple-tint: #F3E8FF;
  --brand-lavender: #FAF5FF;
  --brand-yellow: #FFBF52;
  
  --bg-page: #FAF9FC;
  --bg-card: #FFFFFF;
  --bg-subtle: #F1F5F9;
  
  --text-main: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  --text-light: #94A3B8;

  --border-light: #E2E8F0;
  --border-purple: #E9D5FF;
  --border-hover: #C084FC;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(35, 11, 56, 0.07), 0 2px 4px -2px rgba(35, 11, 56, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(35, 11, 56, 0.08), 0 4px 6px -4px rgba(35, 11, 56, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(35, 11, 56, 0.1), 0 8px 10px -6px rgba(35, 11, 56, 0.04);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background-color: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* ==========================================================================
   Announcement Bar & Header
   ========================================================================== */
.top-bar {
  background: linear-gradient(90deg, #230B38 0%, #310052 50%, #4B007D 100%);
  color: #FFFFFF;
  font-size: 0.8125rem;
  padding: 0.45rem 0;
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.top-bar a {
  color: var(--brand-yellow);
  font-weight: 600;
  text-decoration: underline;
  margin-left: 0.5rem;
}

.site-header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 4.5rem;
  max-width: 1240px;
  margin: 0 auto;
}

.header-left {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 1.5rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--brand-dark);
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-purple) 100%);
  color: #FFFFFF;
  border-radius: 0.625rem;
  font-size: 1.125rem;
  box-shadow: 0 4px 10px rgba(137, 0, 196, 0.25);
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  flex: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #334155;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  white-space: nowrap;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.nav-link:hover {
  color: var(--brand-purple);
  background: #FAF5FF;
}

.nav-link.active {
  color: var(--brand-purple);
  background: #F3E8FF;
  font-weight: 700;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 2.25rem;
  height: 2.25rem;
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  cursor: pointer;
  padding: 0.45rem;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #334155;
  border-radius: 2px;
  transition: all 0.25s ease;
}

.mobile-nav-drawer {
  display: none;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 1.25rem 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.mobile-nav-drawer.open {
  display: block;
}

.mobile-nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-link {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-weight: 600;
  color: #334155;
  background: #F8FAFC;
  text-decoration: none;
  font-size: 0.9375rem;
}

.mobile-nav-link:hover {
  background: #FAF5FF;
  color: #8900C4;
}
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  border-radius: 100px;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand-primary);
  color: #FFFFFF;
  box-shadow: 0 2px 4px rgba(49, 0, 82, 0.2);
}

.btn-primary:hover {
  background: #4A0078;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(49, 0, 82, 0.3);
  transform: translateY(-1px);
}

.btn-purple {
  background: linear-gradient(135deg, var(--brand-purple) 0%, #A855F7 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(137, 0, 196, 0.25);
}

.btn-purple:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 16px rgba(137, 0, 196, 0.35);
  transform: translateY(-1px);
}

.btn-outline {
  border-color: var(--border-light);
  background: #FFFFFF;
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--brand-purple);
  color: var(--brand-purple);
  background: var(--brand-lavender);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
}

.search-trigger {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: 100px;
  color: var(--text-muted);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.search-trigger:hover {
  background: #FFFFFF;
  border-color: var(--brand-purple);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.kbd {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* ==========================================================================
   Hero Section (greytHR Vibe)
   ========================================================================== */
.hero {
  padding: 4.5rem 0 3.5rem;
  background: radial-gradient(100% 100% at 50% 0%, #F5EEFA 0%, #FAF8FC 60%, #FFFFFF 100%);
  border-bottom: 1px solid var(--border-light);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: #FFFFFF;
  border: 1px solid var(--border-purple);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--brand-purple);
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 6px rgba(137, 0, 196, 0.08);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero h1 {
  font-size: 3.25rem;
  letter-spacing: -0.04em;
  color: var(--text-main);
  max-width: 860px;
  margin: 0 auto 1.25rem;
  font-weight: 800;
}

.hero h1 span.gradient-text {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-purple) 60%, #C026D3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.1875rem;
  color: var(--text-body);
  max-width: 720px;
  margin: 0 auto 2.25rem;
  line-height: 1.6;
}

.hero-search-wrapper {
  max-width: 640px;
  margin: 0 auto 2rem;
  position: relative;
}

.hero-search-input {
  width: 100%;
  padding: 1.15rem 1.5rem 1.15rem 3.25rem;
  font-size: 1.0625rem;
  border: 2px solid var(--border-purple);
  border-radius: 100px;
  background: #FFFFFF;
  box-shadow: 0 8px 24px rgba(49, 0, 82, 0.08);
  outline: none;
  font-family: var(--font-body);
  transition: all 0.2s ease;
}

.hero-search-input:focus {
  border-color: var(--brand-purple);
  box-shadow: 0 10px 30px rgba(137, 0, 196, 0.16);
}

.hero-search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: var(--brand-purple);
}

.hero-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

/* ==========================================================================
   Multicolored Category Cards (greytHR & AltFTool Style)
   ========================================================================== */
.categories-section {
  padding: 4.5rem 0 3rem;
}

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-head h2 {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.section-head p {
  font-size: 1.0625rem;
  color: var(--text-muted);
}

.category-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.75rem;
  margin-bottom: 4rem;
}

.category-card {
  border-radius: 1.5rem;
  padding: 2rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(35, 11, 56, 0.08);
}

.cat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.cat-icon-box {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.875rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.cat-count-badge {
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.cat-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
  letter-spacing: -0.02em;
}

.cat-desc {
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.cat-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.cat-tag-chip {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--text-body);
  transition: all 0.15s ease;
}

.cat-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.85rem 1.25rem;
  border-radius: 0.875rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9375rem;
  background: #FFFFFF;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.category-card:hover .cat-action-btn {
  background: var(--brand-primary);
  color: #FFFFFF !important;
}

/* Category Specific Multicolored Themes */
.cat-theme-seo {
  background: #FAF5FF;
  border: 1.5px solid #E9D5FF;
}
.cat-theme-seo .cat-icon-box { background: #310052; color: #FFFFFF; }
.cat-theme-seo .cat-count-badge { background: #F3E8FF; color: #8900C4; }
.cat-theme-seo .cat-title { color: #310052; }
.cat-theme-seo .cat-action-btn { color: #8900C4; border: 1px solid #E9D5FF; }

.cat-theme-pdf {
  background: #FFF7ED;
  border: 1.5px solid #FED7AA;
}
.cat-theme-pdf .cat-icon-box { background: #9A3412; color: #FFFFFF; }
.cat-theme-pdf .cat-count-badge { background: #FFEDD5; color: #C2410C; }
.cat-theme-pdf .cat-title { color: #9A3412; }
.cat-theme-pdf .cat-action-btn { color: #EA580C; border: 1px solid #FED7AA; }

.cat-theme-image {
  background: #F0FDF4;
  border: 1.5px solid #BBF7D0;
}
.cat-theme-image .cat-icon-box { background: #065F46; color: #FFFFFF; }
.cat-theme-image .cat-count-badge { background: #DCFCE7; color: #047857; }
.cat-theme-image .cat-title { color: #065F46; }
.cat-theme-image .cat-action-btn { color: #0D9488; border: 1px solid #BBF7D0; }

.cat-theme-dev {
  background: #EFF6FF;
  border: 1.5px solid #BFDBFE;
}
.cat-theme-dev .cat-icon-box { background: #1E3A8A; color: #FFFFFF; }
.cat-theme-dev .cat-count-badge { background: #DBEAFE; color: #1D4ED8; }
.cat-theme-dev .cat-title { color: #1E3A8A; }
.cat-theme-dev .cat-action-btn { color: #2563EB; border: 1px solid #BFDBFE; }

.cat-theme-text {
  background: #FDF4FF;
  border: 1.5px solid #F5D0FE;
}
.cat-theme-text .cat-icon-box { background: #701A75; color: #FFFFFF; }
.cat-theme-text .cat-count-badge { background: #FAE8FF; color: #A21CAF; }
.cat-theme-text .cat-title { color: #701A75; }
.cat-theme-text .cat-action-btn { color: #C026D3; border: 1px solid #F5D0FE; }

.cat-theme-calc {
  background: #FFFBEB;
  border: 1.5px solid #FDE68A;
}
.cat-theme-calc .cat-icon-box { background: #78350F; color: #FFFFFF; }
.cat-theme-calc .cat-count-badge { background: #FEF3C7; color: #B45309; }
.cat-theme-calc .cat-title { color: #78350F; }
.cat-theme-calc .cat-action-btn { color: #D97706; border: 1px solid #FDE68A; }

/* ==========================================================================
   Popular Curated Tools Spotlight (6-8 tools, clean row)
   ========================================================================== */
.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.spotlight-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.spotlight-card:hover {
  border-color: var(--brand-purple);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.spotlight-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: var(--brand-purple-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.spotlight-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.spotlight-cat {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Built for Every Workflow (greytHR Role Section)
   ========================================================================== */
.workflow-section {
  padding: 4.5rem 0;
  background: #FFFFFF;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.workflow-card {
  border-radius: 1.25rem;
  padding: 1.75rem;
  border: 1px solid var(--border-light);
  background: #FAF8FC;
  transition: all 0.2s ease;
}

.workflow-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.workflow-card h3 {
  font-size: 1.1875rem;
  margin-bottom: 0.65rem;
}

.workflow-card p {
  font-size: 0.875rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* ==========================================================================
   Comparison Box (greytHR Without vs With Section)
   ========================================================================== */
.comparison-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background: #FFFFFF;
  border: 1px solid var(--border-purple);
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(49, 0, 82, 0.05);
  margin: 3.5rem 0;
}

.comp-col h3 {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.comp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.comp-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-body);
}

/* Tool Detail & General */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

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

.breadcrumbs span.separator {
  color: var(--text-light);
}

.tool-hero {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 1.5rem;
  padding: 2.25rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.tool-hero-top {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.tool-hero-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1.25rem;
  background: var(--brand-purple-tint);
  color: var(--brand-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  flex-shrink: 0;
}

.tool-hero-content h1 {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.tool-hero-content p {
  font-size: 1.0625rem;
  color: var(--text-body);
  max-width: 780px;
}

.tool-workspace {
  background: #FFFFFF;
  border: 1px solid var(--border-purple);
  border-radius: 1.5rem;
  box-shadow: 0 10px 30px rgba(49, 0, 82, 0.06);
  padding: 2.25rem;
  margin-bottom: 3rem;
}

.workspace-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.75rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.form-control, .form-textarea, .form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  border: 1px solid var(--border-light);
  border-radius: 0.625rem;
  background: #FFFFFF;
  font-family: var(--font-body);
  transition: all 0.15s ease;
  color: var(--text-main);
}

.form-control:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--brand-purple);
  box-shadow: 0 0 0 3px rgba(137, 0, 196, 0.1);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-textarea.code-font {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.5;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.dropzone {
  border: 2px dashed var(--border-purple);
  border-radius: 1.25rem;
  padding: 3rem 1.5rem;
  text-align: center;
  background: #FAF8FC;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dropzone:hover {
  border-color: var(--brand-purple);
  background: var(--brand-purple-tint);
}

.dropzone-icon {
  font-size: 3rem;
  color: var(--brand-purple);
  margin-bottom: 1rem;
}

.dropzone-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.dropzone-text {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.code-preview {
  background: #1E1B24;
  color: #E2E8F0;
  border-radius: 1rem;
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  overflow-x: auto;
  position: relative;
  white-space: pre-wrap;
  word-break: break-all;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  color: #94A3B8;
  font-family: var(--font-body);
}

.serp-preview {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 0.875rem;
  padding: 1.25rem;
  font-family: Arial, sans-serif;
  margin-top: 1rem;
}

.serp-url {
  font-size: 0.875rem;
  color: #202124;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.serp-title {
  font-size: 1.25rem;
  color: #1a0dab;
  cursor: pointer;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.serp-snippet {
  font-size: 0.875rem;
  color: #4d5156;
  line-height: 1.4;
}

.content-section {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 1.25rem;
  padding: 2.25rem;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.625rem;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.steps-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.step-card {
  background: #FAF8FC;
  border: 1px solid var(--border-purple);
  border-radius: 1rem;
  padding: 1.5rem;
}

.step-number {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 100px;
  background: var(--brand-primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.step-title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step-text {
  font-size: 0.875rem;
  color: var(--text-body);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.feature-check {
  color: var(--brand-purple);
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-top: 1.5rem;
}

.faq-item {
  border: 1px solid var(--border-light);
  border-radius: 0.875rem;
  background: #FFFFFF;
  overflow: hidden;
  transition: all 0.15s ease;
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-question {
  padding: 1.15rem 1.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* Tool Cards Grid (for Directory and Category pages) */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.tool-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 1.25rem;
  padding: 1.75rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 24px -4px rgba(49, 0, 82, 0.1);
}

.card-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.tool-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.875rem;
  background: var(--brand-purple-tint);
  color: var(--brand-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.2s ease;
}

.tool-card:hover .tool-icon {
  background: var(--brand-primary);
  color: #FFFFFF;
}

.tool-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  background: #F1F5F9;
  color: var(--text-muted);
}

.tool-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.65rem;
}

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

.tool-desc {
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 1.55;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.tool-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-purple);
}

/* Footer */
.site-footer {
  background: var(--brand-navy);
  color: #94A3B8;
  padding: 4.5rem 0 2rem;
  margin-top: auto;
  border-top: 1px solid #2D2C31;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand h3 {
  font-size: 1.5rem;
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 340px;
}

.footer-col h4 {
  font-size: 1rem;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid #2D2C31;
  font-size: 0.8125rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  max-width: 440px;
  background: #FFFFFF;
  border: 1px solid var(--border-purple);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-xl);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cookie-banner p {
  font-size: 0.875rem;
  color: var(--text-body);
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Quick Search Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10000;
  align-items: flex-start;
  justify-content: center;
  padding: 6rem 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: #FFFFFF;
  width: 100%;
  max-width: 620px;
  border-radius: 1.25rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.modal-search-input {
  width: 100%;
  padding: 1.25rem 1.5rem;
  font-size: 1.125rem;
  border: none;
  border-bottom: 1px solid var(--border-light);
  outline: none;
  font-family: var(--font-body);
}

.modal-results {
  max-height: 380px;
  overflow-y: auto;
  padding: 0.75rem;
}

.modal-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  transition: all 0.15s ease;
  cursor: pointer;
}

.modal-item:hover {
  background: var(--brand-purple-tint);
}

/* Responsive & Mobile */
@media (max-width: 1024px) {
  .category-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .nav-actions .btn {
    display: none;
  }
  .hero h1 {
    font-size: 2.35rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .comparison-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 2.75rem 0 2rem;
  }
  .hero h1 {
    font-size: 1.85rem;
    padding: 0 0.5rem;
  }
  .hero-desc {
    font-size: 0.9375rem;
    padding: 0 0.5rem;
  }
  .hero-search-wrapper {
    padding: 0 0.5rem;
  }
  .hero-search-input {
    font-size: 0.9375rem;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
  }
  .hero-trust-bar {
    gap: 0.75rem;
    font-size: 0.75rem;
  }
  .category-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .tool-hero-top {
    flex-direction: column;
  }
  .comparison-container {
    padding: 1.5rem;
  }
  .cookie-banner {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: none;
  }
}
