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

:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #dbeafe;
  --accent-color: #06b6d4;
  --accent-light: #cffafe;
  --background: #ffffff;
  --surface: #f8fafc;
  --surface-hover: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 40px -5px rgba(0, 0, 0, 0.15);
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: var(--font-display), 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

[data-theme="dark"] {
  --primary-color: #38bdf8;
  --primary-hover: #7dd3fc;
  --primary-light: #0c4a6e;
  --accent-color: #22d3ee;
  --accent-light: #164e63;
  --background: #0a0a0a;
  --surface: #141414;
  --surface-hover: #1f1f1f;
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --border-color: #262626;
  --border-light: #1a1a1a;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 40px -5px rgba(0, 0, 0, 0.6);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
  color: var(--primary-hover);
}

.header {
  background: var(--background);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  transition: background-color var(--transition), border-color var(--transition);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: color var(--transition-fast);
}

.logo:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 0.5rem;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 0.625rem 1rem;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--surface);
  text-decoration: none;
}

.nav-link.active {
  color: var(--primary-color);
  background: var(--primary-light);
}

.nav-item.has-dropdown {
  position: relative;
}

.nav-item.has-dropdown .nav-link {
  gap: 0.25rem;
}

.dropdown-arrow {
  transition: transform var(--transition-fast);
}

.nav-item.has-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 600px;
  max-width: 800px;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  z-index: 100;
  padding: 1rem;
}

.nav-item.has-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

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

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.dropdown-item:hover {
  background: var(--background);
}

.dropdown-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--background);
  border-radius: var(--radius);
  color: var(--primary-color);
  flex-shrink: 0;
}

.dropdown-item:hover .dropdown-icon {
  background: var(--primary-light);
}

.dropdown-content {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}

.dropdown-name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.dropdown-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-dropdown.dropdown-mega {
  min-width: 700px;
  max-width: 800px;
  padding: 0.5rem;
}

.dropdown-mega-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0.5rem;
}

.dropdown-categories {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.dropdown-item-wrapper {
  position: relative;
}

.dropdown-item-wrapper.has-tools {
  padding-bottom: 0;
}

.dropdown-item-wrapper.has-tools .dropdown-item {
  border-radius: var(--radius);
}

.dropdown-mega .dropdown-item {
  padding: 0.5rem 0.625rem;
  border-radius: var(--radius);
  border: none;
  background: transparent;
}

.dropdown-mega .dropdown-item:hover {
  background: var(--primary-light);
}

.dropdown-mega .dropdown-icon {
  width: 28px;
  height: 28px;
  background: transparent;
  border-radius: var(--radius-sm);
}

.dropdown-mega .dropdown-item:hover .dropdown-icon {
  background: var(--primary-color);
  color: white;
}

.dropdown-mega .dropdown-icon svg {
  width: 14px;
  height: 14px;
}

.dropdown-mega .dropdown-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

.dropdown-mega .dropdown-item:hover .dropdown-name {
  color: var(--primary-color);
}

.dropdown-mega .dropdown-desc {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.dropdown-item-wrapper:first-child .dropdown-item {
  background: var(--primary-color);
}

.dropdown-item-wrapper:first-child .dropdown-item:hover {
  background: var(--primary-dark, #1d4ed8);
}

.dropdown-item-wrapper:first-child .dropdown-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.dropdown-item-wrapper:first-child .dropdown-name {
  color: white;
  font-weight: 600;
}

.dropdown-item-wrapper:first-child .dropdown-desc {
  color: rgba(255, 255, 255, 0.8);
}

.dropdown-tools-panel {
  background: var(--background);
  border-radius: var(--radius);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.dropdown-tools-panel-header {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.375rem 0.5rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 0.25rem;
}

.dropdown-tools {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0.375rem 0.5rem 0.5rem 0.5rem;
  background: var(--background);
  border-radius: 0 0 var(--radius) var(--radius);
}

.dropdown-tool-link {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.25rem 0.375rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  display: block;
}

.dropdown-tool-link:hover {
  background: var(--primary-light);
  color: var(--primary-color);
}

.dropdown-tool-link::before {
  content: '→';
  margin-right: 0.375rem;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.dropdown-tool-link:hover::before {
  opacity: 1;
}

.nav-dropdown.dropdown-tools {
  min-width: 400px;
  max-width: 440px;
  padding: 0.5rem;
}

.dropdown-tools-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 0.25rem;
}

.dropdown-tools .dropdown-item-wrapper {
  border-radius: var(--radius);
}

.dropdown-tools .dropdown-item {
  padding: 0.5rem 0.625rem;
  border-radius: var(--radius);
  border: none;
  background: transparent;
}

.dropdown-tools .dropdown-item:hover {
  background: var(--primary-light);
}

.dropdown-tools .dropdown-icon {
  width: 28px;
  height: 28px;
  background: transparent;
  border-radius: var(--radius-sm);
}

.dropdown-tools .dropdown-item:hover .dropdown-icon {
  background: var(--primary-color);
  color: white;
}

.dropdown-tools .dropdown-icon svg {
  width: 14px;
  height: 14px;
}

.dropdown-tools .dropdown-name {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
}

.dropdown-tools .dropdown-item:hover .dropdown-name {
  color: var(--primary-color);
}

.dropdown-tools .dropdown-desc {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.dropdown-tools .dropdown-item-wrapper:first-child .dropdown-item {
  grid-column: 1 / -1;
  background: var(--primary-color);
  border-radius: var(--radius);
  margin-bottom: 0.25rem;
  padding: 0.625rem 0.75rem;
}

.dropdown-tools .dropdown-item-wrapper:first-child .dropdown-item:hover {
  background: var(--primary-dark, #1d4ed8);
}

.dropdown-tools .dropdown-item-wrapper:first-child .dropdown-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.dropdown-tools .dropdown-item-wrapper:first-child .dropdown-name {
  color: white;
  font-weight: 600;
}

.dropdown-tools .dropdown-item-wrapper:first-child .dropdown-desc {
  color: rgba(255, 255, 255, 0.8);
}

.dropdown-item.active {
  background: var(--primary-light);
  border-color: var(--primary-color);
}

.dropdown-item.active .dropdown-icon {
  background: var(--primary-color);
  color: white;
}

.dropdown-item.active .dropdown-name {
  color: var(--primary-color);
  font-weight: 600;
}

.dropdown-tool-link.active {
  background: var(--primary-light);
  color: var(--primary-color);
  font-weight: 500;
}

.dropdown-tool-link.active::before {
  opacity: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
  border-color: var(--primary-color);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-toggle .sun-icon {
  display: block;
}

.theme-toggle .moon-icon {
  display: none;
}

[data-theme="dark"] .theme-toggle .sun-icon {
  display: none;
}

[data-theme="dark"] .theme-toggle .moon-icon {
  display: block;
}

.search-toggle,
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  border-radius: var(--radius);
  transition: all var(--transition-fast);
}

.search-toggle:hover,
.mobile-menu-toggle:hover {
  background: var(--surface);
  color: var(--text-primary);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(-5px, -5px);
}

.mobile-close-btn {
  display: none;
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: var(--background);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--text-secondary);
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 10;
}

.mobile-close-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 98;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.mobile-menu-overlay.open {
  display: block;
  opacity: 1;
}

.mobile-menu-panel {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--surface);
  z-index: 99;
  padding: 1rem;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform var(--transition);
}

.mobile-menu-panel.open {
  transform: translateX(0);
}

.main-content {
  min-height: calc(100vh - 200px);
}

.hero {
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  background: linear-gradient(180deg, var(--primary-light) 0%, transparent 100%);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .hero {
  background: linear-gradient(180deg, var(--primary-light) 0%, transparent 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse at center, var(--primary-color) 0%, transparent 70%);
  opacity: 0.08;
  pointer-events: none;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
  position: relative;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.featured-tools,
.categories-section {
  padding: 3rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.tool-card {
  position: relative;
  background: var(--background);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.tool-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  text-decoration: none;
}

.tool-card:hover::before {
  opacity: 1;
}

.tool-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.tool-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
  flex-grow: 1;
}

.tool-category {
  display: inline-flex;
  align-items: center;
  margin-top: 1rem;
  padding: 0.375rem 0.875rem;
  background: var(--surface);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition-fast);
}

.tool-card:hover .tool-category {
  background: var(--primary-light);
  color: var(--primary-color);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.category-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-decoration: none;
  transition: all var(--transition);
  overflow: hidden;
}

.category-card::after {
  content: '→';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%) translateX(-8px);
  font-size: 1.25rem;
  color: var(--primary-color);
  opacity: 0;
  transition: all var(--transition-fast);
}

.category-card:hover {
  background: var(--surface-hover);
  border-color: var(--primary-color);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.category-card:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.category-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
  transition: color var(--transition-fast);
}

.category-card:hover h3 {
  color: var(--primary-color);
}

.category-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
  padding-right: 1rem;
}

.tool-count {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--primary-color);
}

.tool-count::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--primary-color);
  border-radius: 50%;
}

.footer {
  background: var(--text-primary);
  color: var(--background);
  padding: 4rem 1.5rem 2rem;
  margin-top: 4rem;
}

[data-theme="dark"] .footer {
  background: var(--surface);
  border-top: 1px solid var(--border-color);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

[data-theme="dark"] .footer-title {
  color: var(--text-primary);
}

.footer-description {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 280px;
}

[data-theme="dark"] .footer-description {
  color: var(--text-secondary);
}

.footer-subtitle {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

[data-theme="dark"] .footer-subtitle {
  color: var(--text-secondary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.625rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

[data-theme="dark"] .footer-links a {
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--background);
}

[data-theme="dark"] .footer-links a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

[data-theme="dark"] .footer-bottom {
  border-color: var(--border-color);
}

[data-theme="dark"] .footer-bottom p {
  color: var(--text-secondary);
}

.search-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 200;
  padding: 2rem;
  animation: fadeIn var(--transition-fast);
}

[data-theme="dark"] .search-modal {
  background: rgba(0, 0, 0, 0.8);
}

.search-modal.active {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6rem;
}

.search-modal-content {
  background: var(--background);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 640px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  animation: slideUp var(--transition);
}

.search-input {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: var(--text-primary);
  outline: none;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-results {
  max-height: 400px;
  overflow-y: auto;
  border-top: 1px solid var(--border-color);
}

.search-result-item {
  display: block;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
  transition: background var(--transition-fast);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: var(--surface);
}

.search-result-item h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.search-result-item p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.blog-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.blog-page h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
}

.blog-description {
  color: var(--text-secondary);
  margin-bottom: 3rem;
  font-size: 1.125rem;
}

.blog-posts {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.blog-card {
  background: var(--background);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
}

.blog-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow);
}

.blog-card h2 {
  font-family: var(--font-display);
  margin-bottom: 0.5rem;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.blog-card h2 a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.blog-card h2 a:hover {
  color: var(--primary-color);
}

.blog-card .post-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
}

.blog-card .post-excerpt {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.blog-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: gap var(--transition-fast);
}

.blog-card .read-more:hover {
  gap: 0.75rem;
  text-decoration: none;
}

.blog-card .read-more::after {
  content: '→';
}

.blog-post {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.post-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.post-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.post-meta {
  color: var(--text-muted);
  font-size: 0.9375rem;
  display: flex;
  gap: 1.5rem;
}

.post-content {
  line-height: 1.8;
  font-size: 1.0625rem;
}

.post-content h2 {
  font-family: var(--font-display);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.post-content p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

.post-content ul,
.post-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.no-posts,
.no-tools {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem;
  font-size: 1.125rem;
}

.tools-page,
.categories-page,
.category-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.tools-page h1,
.categories-page h1,
.category-page h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
}

.category-page .category-description {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.category-page .tool-grid {
  margin-top: 1.5rem;
}

.page-description {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }
  
  .nav.open {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--surface);
    padding: 1rem;
    overflow-y: auto;
    z-index: 99;
    height: 100vh;
    padding-top: 3rem;
  }
  
  .nav-list {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .nav-item.has-dropdown .nav-link {
    justify-content: space-between;
  }
  
  .nav-dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    background: var(--background);
    padding: 0.5rem 0 0.5rem 1rem;
    margin-top: 0.25rem;
    display: none;
    min-width: auto !important;
    max-width: none !important;
    transform: none !important;
  }
  
  .nav-item.has-dropdown.open .nav-dropdown {
    display: block;
  }
  
  .nav-item.has-dropdown .dropdown-arrow {
    transition: transform var(--transition-fast);
  }
  
  .nav-item.has-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
  }
  
  .dropdown-mega-grid {
    grid-template-columns: 1fr;
  }
  
  .dropdown-tools-grid {
    grid-template-columns: 1fr;
  }
  
  .dropdown-tools .dropdown-item-wrapper:first-child .dropdown-item {
    grid-column: 1;
  }
  
  .dropdown-item-wrapper:first-child .dropdown-item {
    grid-column: 1;
  }
  
  .mobile-menu-toggle {
    display: flex !important;
  }
  
  .mobile-close-btn {
    display: flex;
  }
  
  body.menu-open {
    overflow: hidden;
  }
  
  .hero {
    padding: 3rem 1rem 2rem;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .tool-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .blog-page h1 {
    font-size: 1.75rem;
  }
}

/* ========================================
   Homepage SEO-Optimized Styles
   ======================================== */

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  display: block;
}

.section-description {
  color: var(--text-secondary);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.featured-tools {
  padding: 4rem 0;
  max-width: 1200px;
  margin: 0 auto;
}

.featured-tools .tool-card.featured {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.featured-tools .tool-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.featured-tools .tool-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.featured-tools .tool-card p {
  flex: 1;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.tool-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--background);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary-color);
}

.why-choose-us {
  padding: 4rem 0;
  background: var(--surface);
}

.why-choose-us > *:not(.features-grid) {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.feature-card {
  padding: 2rem;
  background: var(--background);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  border-radius: var(--radius-full);
  margin: 0 auto 1.5rem;
  color: var(--primary-color);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

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

.categories-section {
  max-width: 1200px;
  margin: 0 auto;
}

.how-to-section {
  padding: 4rem 0;
  max-width: 1200px;
  margin: 0 auto;
}

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

.step-card {
  text-align: center;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin: 0 auto 1.5rem;
}

.step-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.faq-section {
  padding: 4rem 0;
  background: var(--surface);
}

.faq-section > *:not(.faq-grid) {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.faq-section .faq-item,
.category-faq .faq-item {
  background: var(--background);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all var(--transition-fast);
}

.category-faq {
  padding: 4rem 0;
  max-width: 1200px;
  margin: 0 auto;
}

.category-faq h2 {
  text-align: center;
  margin-bottom: 2rem;
}

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

.category-faq .faq-item h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.category-faq .faq-item p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
}

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

.faq-section .faq-item h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.faq-section .faq-item p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
}

.cta-section {
  padding: 4rem 0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.tool-button.large {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

.tool-count {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--primary-light);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary-color);
  margin-top: 0.75rem;
}

@media (max-width: 768px) {
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .features-grid,
  .steps-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-section h2 {
    font-size: 1.5rem;
  }
}
