@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Premium Curated Color Palette */
  --primary-color: #6366f1; /* Indigo */
  --primary-hover: #4f46e5;
  --secondary-color: #0f172a; /* Slate 900 */
  --accent-color: #06b6d4; /* Cyan */
  --accent-secondary: #ec4899; /* Pink for extra pop */
  
  /* Backgrounds & Surfaces (Premium Light Mode) */
  --bg-color: #f8fafc;
  --surface-color: rgba(255, 255, 255, 0.7);
  --surface-hover: rgba(255, 255, 255, 0.9);
  
  /* Text Colors */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-light: #ffffff;
  
  /* Glassmorphism Borders & Shadows */
  --border-color: rgba(226, 232, 240, 0.8);
  --border-glow: rgba(99, 102, 241, 0.3);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.06), 0 4px 6px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 30px rgba(0, 0, 0, 0.08), 0 10px 15px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.4);
  
  /* Border Radius for smooth modern blocks */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Premium Dark Mode Styling */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #0b0f19;
    --surface-color: rgba(15, 23, 42, 0.6);
    --surface-hover: rgba(30, 41, 59, 0.8);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --border-color: rgba(51, 65, 85, 0.6);
    --border-glow: rgba(99, 102, 241, 0.5);
    --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.5);
  }
}

/* Background Animated Gradient Pattern */
body::before {
  content: '';
  position: fixed;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.08) 0%, rgba(6, 182, 212, 0.05) 30%, transparent 60%);
  animation: bgPulse 30s ease-in-out infinite alternate;
  z-index: -2;
  pointer-events: none;
}

@keyframes bgPulse {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.1) translate(2%, 2%); }
}

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

html {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

a:hover {
  color: var(--accent-color);
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
}

.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.02em; }
h3 { font-size: 1.5rem; font-weight: 700; }

.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 30%;
  width: 40%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary-color), var(--accent-color), transparent);
  border-radius: var(--radius-full);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 650px;
  margin: 0 auto;
  font-weight: 400;
}

/* Buttons w/ Micro-Animations */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: all 0.5s ease;
}

.btn:hover::after {
  left: 150%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: var(--text-light);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
  color: var(--text-light);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Header & Glassmorphism Navigation */
.header {
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  transition: all var(--transition-normal);
}

@media (prefers-color-scheme: dark) {
  .header {
    background-color: rgba(15, 23, 42, 0.65);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 5rem;
}

.logo {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: -0.03em;
}

.logo span {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 1.05rem;
  position: relative;
}

.nav-links a::before {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary-color);
  transition: width var(--transition-fast);
  border-radius: var(--radius-full);
}

.nav-links a:hover::before,
.nav-links a.active::before {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.mobile-menu-btn:hover {
  transform: scale(1.1);
}

/* Hero Section */
.hero {
  padding: 10rem 0 7rem;
  text-align: center;
  position: relative;
  overflow: visible;
}

.hero h1 span {
  background: linear-gradient(110deg, #6366f1, #06b6d4, #ec4899);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 5s linear infinite;
}

@keyframes shine {
  to { background-position: 200% center; }
}

.hero p {
  color: var(--text-secondary);
  font-size: 1.25rem;
  max-width: 650px;
  margin: 0 auto 2.5rem;
}

.search-bar {
  max-width: 650px;
  margin: 3rem auto 0;
  display: flex;
  position: relative;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  padding: 0.5rem;
}

@media (prefers-color-scheme: dark) {
  .search-bar {
    background-color: var(--surface-color);
  }
}

.search-bar input {
  flex: 1;
  padding: 1rem 1.75rem;
  border: none;
  background: transparent;
  font-size: 1.1rem;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
}

.search-bar input:focus {
  outline: none;
}

.search-bar button {
  padding: 1rem 2.5rem;
  border-radius: var(--radius-full);
  font-size: 1.1rem;
}

/* Categories Section */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.category-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-decoration: none;
  backdrop-filter: blur(10px);
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--primary-color);
  border-color: transparent;
}

.category-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(6, 182, 212, 0.1));
  color: var(--primary-color);
  border-radius: var(--radius-lg);
  font-size: 2rem;
  transition: all var(--transition-normal);
}

.category-card:hover .category-icon {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: var(--text-light);
  transform: scale(1.1) rotate(-5deg);
}

.category-card h3 {
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.category-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Tool Cards w/ Glassmorphism */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.tool-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}

.tool-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), 0 10px 40px rgba(99, 102, 241, 0.15);
  border-color: var(--primary-color);
}

.tool-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.tool-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
  color: var(--primary-color);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: transform var(--transition-normal);
}

.tool-card:hover .tool-icon {
  transform: rotate(10deg) scale(1.05);
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: var(--text-light);
}

.tool-title {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.2rem;
}

.tool-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.tool-action {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding: 0.5rem 0;
}

.tool-action i {
  transition: transform var(--transition-fast);
}

.tool-card:hover .tool-action {
  color: var(--accent-color);
}

.tool-card:hover .tool-action i {
  transform: translateX(6px);
}

/* FAQ Section */
.faq-container {
  max-width: 850px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: 1.25rem;
  background: var(--surface-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-glow);
}

.faq-question {
  padding: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
  user-select: none;
  font-size: 1.1rem;
}

.faq-question i {
  color: var(--primary-color);
  transition: transform var(--transition-normal);
  background: rgba(99, 102, 241, 0.1);
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
  background: var(--primary-color);
  color: #fff;
}

.faq-answer {
  padding: 0 1.75rem;
  max-height: 0;
  overflow: hidden;
  transition: all var(--transition-normal);
  color: var(--text-secondary);
}

.faq-item.active .faq-answer {
  padding-bottom: 1.75rem;
  max-height: 500px;
}

/* Tool Interface Specific Styles */
.tool-interface {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 3.5rem 3rem;
  box-shadow: var(--shadow-lg);
  margin: 3rem auto 5rem;
  max-width: 950px;
  backdrop-filter: blur(12px);
}

.tool-controls {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-group label {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1rem;
}

.form-control {
  padding: 1rem 1.25rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
  background-color: var(--surface-color);
}

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

.tool-result {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-color);
}

/* Footer Section */
.footer {
  background: var(--surface-color);
  border-top: 1px solid var(--border-color);
  padding: 5rem 0 2rem;
  margin-top: 5rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--accent-secondary));
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3.5rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -0.5rem; left: 0;
  width: 50%; height: 2px;
  background: var(--primary-color);
  border-radius: var(--radius-full);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 8px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

/* ============================================================
   COMPREHENSIVE MOBILE RESPONSIVE SYSTEM
   Breakpoints: 768px (tablet), 640px (large phone), 480px (small phone)
   ============================================================ */

/* ── 768px — Tablet & Mobile ── */
@media (max-width: 768px) {

  /* Navigation */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface-color);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 1rem 0;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border-color);
    z-index: 999;
    gap: 0;
  }

  .nav-links.active { display: flex; }

  .nav-links a {
    padding: 0.85rem 1.5rem;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
    font-size: 1rem;
  }

  .nav-links a:last-child { border-bottom: none; }

  /* Hide "Get Started" button in mobile nav — saves space */
  .nav-links a.btn {
    margin: 1rem 1.5rem 0.5rem;
    width: calc(100% - 3rem);
    text-align: center;
    border-radius: var(--radius-full) !important;
  }

  .mobile-menu-btn { display: block; }

  /* Header stays fixed & usable */
  .header { position: sticky; top: 0; z-index: 1000; }
  .nav-container { position: relative; }

  /* Hero Section */
  .hero { padding: 5rem 0 3.5rem; text-align: center; }
  .hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .hero p { font-size: 1rem; padding: 0 1rem; }

  /* Sections */
  .section { padding: 3.5rem 0; }
  .pb-0 { padding-bottom: 0 !important; }
  .pt-4 { padding-top: 2rem !important; }

  /* Search bar */
  .search-bar {
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: none;
    padding: 0;
    background: transparent;
    border: none;
    margin-top: 1.5rem;
  }
  .search-bar input {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    background: var(--surface-color);
    width: 100%;
    padding: 0.85rem 1.25rem;
  }
  .search-bar button {
    border-radius: var(--radius-full);
    width: 100%;
  }

  /* Tool Cards Grid */
  .tools-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* Category Cards Grid */
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .category-card {
    padding: 1.5rem 1rem;
    gap: 0.75rem;
  }

  .category-icon {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
  }

  .category-card h3 { font-size: 1rem; }
  .category-card p { font-size: 0.85rem; }

  /* Tool Interface (tool pages) */
  .tool-interface {
    padding: 1.75rem 1.25rem;
    margin: 1.5rem auto 2.5rem;
    border-radius: var(--radius-lg);
  }

  /* Form Controls */
  .form-control {
    font-size: 1rem;
    padding: 0.85rem 1rem;
  }

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

  /* Buttons */
  .btn {
    font-size: 0.975rem;
    padding: 0.8rem 1.5rem;
  }

  /* Footer */
  .footer { padding: 3rem 0 1.5rem; margin-top: 3rem; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  /* Footer brand takes full width */
  .footer-col[style*="grid-column"] {
    grid-column: 1 / -1 !important;
  }

  /* Section titles */
  h2 { font-size: clamp(1.6rem, 5vw, 2.5rem); }
  h3 { font-size: 1.25rem; }

  .section-subtitle { font-size: 1rem; padding: 0 0.5rem; }

  /* Blog stats bar — stack vertically */
  #blog-stats {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }

  /* Tool page header */
  .text-center h1 { font-size: clamp(1.8rem, 6vw, 3rem); }

  /* Ad space */
  div[style*="Ad Space"] {
    margin: 1rem auto !important;
    min-height: 60px !important;
  }
}

/* ── 640px — Large Phones ── */
@media (max-width: 640px) {

  /* Single column categories */
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }

  /* Tool interface tighter */
  .tool-interface {
    padding: 1.5rem 1rem;
  }

  /* Filter buttons — wrap & shrink */
  #blog-stats div[style*="gap:0.5rem"] {
    flex-wrap: wrap;
  }

  #blog-stats button {
    font-size: 0.75rem !important;
    padding: 0.35rem 0.75rem !important;
  }

  /* Language translator swap button row */
  div[style*="display:flex; gap:1rem"] {
    flex-wrap: wrap;
  }

  /* LLM tool 2-col input grid → 1 col */
  .input-row {
    grid-template-columns: 1fr !important;
  }

  /* Action button rows → stack */
  .action-btns {
    flex-direction: column;
  }

  .action-btns .btn { width: 100%; }

  /* Badge rows → wrap */
  .badge-row { gap: 0.5rem; }
  .badge { font-size: 0.75rem; padding: 0.3rem 0.7rem; }

  /* Blog card images */
  .tool-card div[style*="height: 160px"] {
    height: 130px !important;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Back link on tool pages */
  div[style*="margin-bottom: 2rem"] a { font-size: 0.9rem; }

  /* Tool hero icon box */
  div[style*="width: 64px"] {
    width: 56px !important;
    height: 56px !important;
    font-size: 1.6rem !important;
  }
}

/* ── 480px — Small Phones ── */
@media (max-width: 480px) {

  /* Nav logo */
  .logo { font-size: 1.4rem; }

  /* Hero */
  .hero { padding: 4rem 0 2.5rem; }
  .hero h1 { font-size: 1.9rem; }

  /* Sections */
  .section { padding: 2.5rem 0; }

  /* Single col categories */
  .categories-grid { grid-template-columns: 1fr; }

  /* Tool interface */
  .tool-interface { padding: 1.25rem 0.9rem; }

  /* Form label font size */
  .form-group label,
  .form-label { font-size: 0.85rem; }

  /* Textarea smaller min-height on tiny screens */
  textarea.form-control { min-height: 110px; }

  /* h2 section titles */
  h2 { font-size: 1.5rem !important; }
  h3 { font-size: 1.1rem; }

  /* Tool page subtitle */
  .section-subtitle { font-size: 0.95rem; }

  /* FAQ */
  .faq-question { font-size: 0.95rem; padding: 1.25rem; }
  .faq-answer { padding: 0 1.25rem; }
  .faq-item.active .faq-answer { padding-bottom: 1.25rem; }

  /* Footer bottom text */
  .footer-bottom { font-size: 0.85rem; }

  /* Blog next-post badge */
  #next-post-badge { font-size: 0.75rem !important; }

  /* Overflow guard — prevents horizontal scroll */
  .container { padding: 0 1rem; }
  .tool-interface { border-radius: var(--radius-md); }

  /* Section title underline centering on tiny screens */
  .section-title { font-size: 1.5rem !important; }
}

/* ── Global overflow guard ── */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* ── Touch-friendly tap targets ── */
@media (max-width: 768px) {
  a, button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* Keep block links as block */
  a.tool-card, a.category-card {
    display: flex;
  }

  /* Prevent double-tap zoom on inputs */
  input, select, textarea {
    font-size: 16px !important; /* 16px prevents iOS auto-zoom */
  }
}



/* SEO Fix: Prevent Ad Space CLS */
.ad-space { min-height: 100px; display: block; }
