/* ========================================================================
   AI Tool Hub - Design System v2
   Modern, sophisticated, content-rich design language
   ======================================================================== */

/* ========== Design Tokens ========== */
:root {
  --primary: #4f46e5;
  --primary-light: #818cf8;
  --primary-dark: #3730a3;
  --primary-bg: rgba(79, 70, 229, 0.08);
  --secondary: #0891b2;
  --secondary-light: #22d3ee;
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --rose: #f43f5e;
  --pink: #ec4899;
  --green: #10b981;
  --emerald: #059669;
  --purple: #8b5cf6;
  --orange: #f97316;
  --cyan: #06b6d4;
  --indigo: #6366f1;

  --bg-page: #f5f3ff;
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-glass: rgba(255, 255, 255, 0.7);
  --bg-soft: #eef2ff;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --text-light: #ffffff;
  --text-link: #4f46e5;

  --border-light: rgba(79, 70, 229, 0.1);
  --border-medium: rgba(79, 70, 229, 0.2);
  --border-strong: rgba(79, 70, 229, 0.35);

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(79,70,229,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 30px rgba(79,70,229,0.1), 0 4px 8px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 50px rgba(79,70,229,0.12), 0 8px 16px rgba(0,0,0,0.06);
  --shadow-glow: 0 0 30px rgba(79,70,229,0.2);

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-3xl: 36px;
  --radius-full: 9999px;

  --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;

  --gradient-primary: linear-gradient(135deg, #4f46e5, #0891b2);
  --gradient-warm: linear-gradient(135deg, #f59e0b, #ec4899);
  --gradient-cool: linear-gradient(135deg, #4f46e5, #8b5cf6);
  --gradient-rose: linear-gradient(135deg, #f43f5e, #ec4899);
  --gradient-mint: linear-gradient(135deg, #10b981, #06b6d4);
  --gradient-sunset: linear-gradient(135deg, #f97316, #f59e0b);
  --gradient-bg: linear-gradient(160deg, #eef2ff 0%, #fdf2f8 30%, #fff7ed 60%, #ecfeff 100%);
  --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(255,255,255,0.7));
  --gradient-card-hover: linear-gradient(145deg, rgba(255,255,255,1), rgba(255,255,255,0.85));
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--gradient-bg);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.7;
  letter-spacing: -0.01em;
}

/* ========== Scrollbar ========== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ========================================================================
   HEADER
   ======================================================================== */
#header-placeholder {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border-light);
  height: 72px;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header-nav {
  display: flex;
  gap: 2px;
  align-items: center;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  white-space: nowrap;
}

.nav-link:hover {
  background: var(--primary-bg);
  color: var(--primary);
}

.nav-link.active {
  background: var(--primary);
  color: var(--text-light);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(79,70,229,0.3);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.header-logo-img {
  height: 36px;
  width: auto;
  display: block;
}

/* ========================================================================
   MOBILE HAMBURGER MENU
   ======================================================================== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 4px;
  padding: 6px;
  z-index: 1001;
  flex-shrink: 0;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ========================================================================
   MOBILE SIDEBAR
   ======================================================================== */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.sidebar-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.sidebar {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  max-width: 85vw;
  background: var(--bg-primary);
  z-index: 2001;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 30px rgba(0,0,0,0.1);
}
.sidebar.open {
  transform: translateX(0);
}

.sidebar-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border-light);
}
.sidebar-logo {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sidebar-close {
  width: 32px;
  height: 32px;
  background: var(--bg-soft);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.sidebar-close:hover {
  background: var(--primary-bg);
  color: var(--primary);
}

.sidebar-nav {
  flex: 1;
  padding: 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s ease;
}
.sidebar-link:hover {
  background: var(--primary-bg);
  color: var(--primary);
}
.sidebar-link.active {
  background: var(--primary);
  color: var(--text-light);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(79,70,229,0.25);
}
.sl-icon {
  font-size: 18px;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-nav a:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .header-nav { display: none; }
}

/* ========================================================================
   FOOTER
   ======================================================================== */
#footer-placeholder {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-light);
  padding: 48px 32px 32px;
  margin-top: 80px;
  width: 100%;
}

#footer-placeholder .footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.25s ease;
  position: relative;
  padding-bottom: 2px;
}
.footer-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
  border-radius: 1px;
}
.footer-link:hover { color: var(--primary); }
.footer-link:hover::after { width: 100%; }

.footer-bottom {
  text-align: center;
  color: var(--text-tertiary);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-tagline {
  font-style: italic;
  color: var(--primary-light);
}

/* ========================================================================
   COMMON COMPONENTS
   ======================================================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius-full);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-light);
  box-shadow: 0 4px 14px rgba(79,70,229,0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79,70,229,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--border-medium);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--text-light);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 14px 34px; font-size: 16px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* Input Fields */
.input-field {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 14.5px;
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: all 0.25s ease;
  outline: none;
}
.input-field:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.08);
}
.input-field::placeholder { color: var(--text-tertiary); }

textarea.input-field {
  resize: vertical;
  min-height: 120px;
  line-height: 1.7;
}

.select-field {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234f46e5' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

/* Spinner */
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 24px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Result Box */
.result-box {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  white-space: pre-wrap;
  word-wrap: break-word;
  line-height: 1.8;
  max-height: 520px;
  overflow-y: auto;
  font-size: 14.5px;
  color: var(--text-primary);
}
.result-box code {
  font-family: var(--font-mono);
  font-size: 13.5px;
  background: rgba(79,70,229,0.05);
  padding: 1px 4px;
  border-radius: 3px;
}

/* Error Message */
.error-msg {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 14px;
  margin-top: 12px;
}

/* Result Placeholder */
.result-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  gap: 12px;
  min-height: 160px;
}
.placeholder-icon { font-size: 48px; opacity: 0.4; }
.result-placeholder p { font-size: 14px; }

/* Copy Button */
.copy-btn {
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 5px 14px;
  font-size: 12px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.25s ease;
  font-family: var(--font-sans);
}
.copy-btn:hover {
  background: var(--primary);
  color: var(--text-light);
  border-color: var(--primary);
}

/* ========================================================================
   PAGE COMMON
   ======================================================================== */
.main-content {
  flex: 1;
  padding-top: 72px;
  width: 100%;
}

body:not([data-page="blog"]) .page-header {
  text-align: center;
  padding: 48px 24px 36px;
}
body:not([data-page="blog"]) .page-header h1 {
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  line-height: 1.2;
}
body:not([data-page="blog"]) .page-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

body:not([data-page="blog"]) .page-section {
  padding: 32px 24px 60px;
  max-width: 960px;
  margin: 0 auto;
}

/* ========================================================================
   CONTENT COMPONENTS (Tutorials, Guides, FAQ)
   ======================================================================== */

/* Section Container */
.content-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.content-section-header {
  text-align: center;
  margin-bottom: 36px;
}
.content-section-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.content-section-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ---- Section Divider ---- */
.section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 48px 0;
  max-width: 1200px;
  padding: 0 24px;
  margin-left: auto;
  margin-right: auto;
}
.section-divider-line {
  flex: 1;
  height: 1px;
  background: var(--border-light);
}
.section-divider-icon {
  width: 36px;
  height: 36px;
  background: var(--primary-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--primary);
}

/* ---- Step Guide ---- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.step-card {
  background: var(--gradient-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-medium);
}

.step-number {
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
}

.step-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.step-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---- Use Cases ---- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.case-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all 0.3s ease;
}
.case-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--border-medium);
}

.case-card-icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
}
.case-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.case-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.case-card .case-example {
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-tertiary);
  font-style: italic;
  border-left: 3px solid var(--primary-light);
}

/* ---- FAQ ---- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--gradient-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
}
.faq-item:hover {
  border-color: var(--border-medium);
}

.faq-question {
  width: 100%;
  padding: 18px 22px;
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  font-family: var(--font-sans);
  transition: color 0.2s ease;
}
.faq-question:hover { color: var(--primary); }

.faq-toggle {
  font-size: 18px;
  color: var(--text-tertiary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.faq-item.open .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 22px;
}
.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 22px 18px;
}
.faq-answer p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ---- Tool Intro Banner ---- */
.tool-intro-banner {
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 0 24px;
}

.tool-intro-banner-inner {
  background: var(--gradient-primary);
  border-radius: var(--radius-2xl);
  padding: 48px 40px;
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.tool-intro-banner-inner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}
.tool-intro-banner-inner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.tool-intro-banner h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.tool-intro-banner p {
  font-size: 1rem;
  opacity: 0.9;
  line-height: 1.7;
  max-width: 640px;
  position: relative;
  z-index: 1;
}

/* ---- Tool Tags ---- */
.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  position: relative;
  z-index: 1;
}
.tool-tag {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-light);
  backdrop-filter: blur(4px);
}

/* ========================================================================
   TOOL PAGE - Tool Area
   ======================================================================== */
.tool-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.tool-controls {
  background: var(--gradient-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.tool-editor {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
}

.tool-editor-pane {
  background: var(--gradient-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.tool-editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.tool-editor-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.tool-editor-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
}
.tool-editor-divider .divider-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(79,70,229,0.25);
}

/* ========================================================================
   RESPONSIVE - Mobile First
   ======================================================================== */

/* Tablet */
@media (max-width: 900px) {
  .page-header h1 { font-size: 2.2rem; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile Large */
@media (max-width: 768px) {
  /* Header - compact + scrollable */
  #header-placeholder { height: 60px; }
  .header-inner { padding: 0 12px; gap: 8px; }
  .header-nav { gap: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .header-nav::-webkit-scrollbar { display: none; }
  .nav-link {
    padding: 6px 10px;
    font-size: 11px;
    flex-shrink: 0;
    gap: 4px;
  }
  .header-logo-img { height: 28px; }
  .main-content { padding-top: 60px; }

  /* Typography */
  body:not([data-page="blog"]) .page-header { padding: 32px 16px 24px; }
  .page-header h1 { font-size: 1.6rem; }
  .page-header p { font-size: 0.95rem; }

  /* Sections */
  body:not([data-page="blog"]) .page-section { padding: 16px 16px 36px; }
  .content-section-header { margin-bottom: 24px; }
  .content-section-header h2 { font-size: 1.3rem; }
  .content-section-header p { font-size: 0.9rem; }

  /* Buttons - better touch targets */
  .btn { padding: 11px 22px; font-size: 14px; min-height: 44px; }
  .btn-sm { padding: 7px 16px; font-size: 12px; min-height: 36px; }
  .btn-lg { padding: 12px 26px; font-size: 15px; }

  /* Inputs - bigger touch targets */
  .input-field { padding: 12px 14px; font-size: 16px; /* prevent iOS zoom */ }

  /* Footer */
  #footer-placeholder { padding: 32px 16px 24px; margin-top: 48px; }
  .footer-links { gap: 16px; }
  .footer-link { font-size: 13px; }

  /* Content Components */
  .steps-grid { grid-template-columns: 1fr; gap: 14px; padding: 0 16px; }
  .step-card { padding: 22px 18px; }
  .step-card:hover { transform: none; }
  .step-number { width: 32px; height: 32px; font-size: 12px; margin-bottom: 10px; }

  .cases-grid { grid-template-columns: 1fr; gap: 14px; padding: 0 16px; }
  .case-card { padding: 22px 18px; }
  .case-card:hover { transform: none; }

  .faq-list { padding: 0 16px; }
  .faq-question { padding: 14px 16px; font-size: 14px; min-height: 48px; }
  .faq-item.open .faq-answer { padding: 0 16px 14px; }
  .faq-answer p { font-size: 13px; }

  .section-divider { margin: 32px 0; padding: 0 16px; }
  .section-divider-icon { width: 28px; height: 28px; font-size: 13px; }

  /* Tool Intro Banner */
  .tool-intro-banner { padding: 0 16px; margin-bottom: 24px; }
  .tool-intro-banner-inner { padding: 28px 20px; border-radius: var(--radius-xl); }
  .tool-intro-banner-inner::before,
  .tool-intro-banner-inner::after { display: none; }
  .tool-intro-banner h2 { font-size: 1.3rem; }
  .tool-intro-banner p { font-size: 0.9rem; }
  .tool-tag { padding: 4px 10px; font-size: 11px; }

  /* Tool Container */
  .tool-container { padding: 0 16px; }
  .tool-controls { padding: 18px; margin-bottom: 16px; }
  .tool-editor-pane { padding: 16px; }

  /* Tool Editor - mobile single column */
  .tool-editor { grid-template-columns: 1fr; gap: 12px; }
  .tool-editor-divider { padding: 6px 0; transform: rotate(90deg); }

  /* Disable hover effects on mobile */
  .step-card:hover,
  .case-card:hover,
  .tool-card-bento:hover,
  .about-card:hover,
  .why-card:hover,
  .usecase-card:hover,
  .mode-card:hover,
  .faq-item:hover { transform: none !important; box-shadow: var(--shadow-sm) !important; }
}

/* Mobile Small */
@media (max-width: 480px) {
  .header-inner { padding: 0 8px; }
  .nav-link { padding: 5px 8px; font-size: 10px; }

  .page-header h1 { font-size: 1.4rem; }
  .page-header p { font-size: 0.88rem; }

  .btn { padding: 10px 18px; font-size: 13px; }
  .btn-lg { padding: 11px 22px; font-size: 14px; }

  .hero-title { font-size: 1.8rem !important; }
  .hero-stats-mini { gap: 14px; font-size: 12px; }
  .hero-stats-mini strong { font-size: 15px; }

  .strip-inner { border-radius: var(--radius-md) !important; }

  .tool-intro-banner-inner { padding: 24px 16px; }

  .mode-grid { gap: 8px; }
  .mode-card { padding: 14px 12px; }
  .mode-card-label { font-size: 13px; }
  .mode-card-desc { font-size: 11px; }

  .footer-links { gap: 12px; flex-direction: column; align-items: center; }
}