/* ============================================================================
   MyPDFTools — Global Design System (mpt-global.css)
   Premium Glassmorphism + Depth-Layered UI
   ============================================================================ */

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

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* ── Primary Palette ── */
  --mpt-primary: #7C3AED;
  --mpt-primary-hover: #6D28D9;
  --mpt-primary-light: rgba(124, 58, 237, 0.12);
  --mpt-primary-glow: rgba(124, 58, 237, 0.35);
  --mpt-secondary: #06B6D4;
  --mpt-secondary-hover: #0891B2;
  --mpt-accent: #F59E0B;
  --mpt-success: #10B981;
  --mpt-danger: #EF4444;
  --mpt-warning: #F59E0B;

  /* ── Gradient Presets ── */
  --mpt-gradient: linear-gradient(135deg, #7C3AED, #06B6D4);
  --mpt-gradient-warm: linear-gradient(135deg, #7C3AED, #EC4899);
  --mpt-gradient-subtle: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(6,182,212,0.08));

  /* ── Light Mode ── */
  --mpt-bg: #F8FAFC;
  --mpt-bg-alt: #F1F5F9;
  --mpt-surface: #FFFFFF;
  --mpt-surface-hover: #F8FAFC;
  --mpt-card: rgba(255, 255, 255, 0.75);
  --mpt-card-solid: #FFFFFF;
  --mpt-text: #0F172A;
  --mpt-text-secondary: #334155;
  --mpt-text-muted: #64748B;
  --mpt-border: rgba(226, 232, 240, 0.8);
  --mpt-border-strong: rgba(203, 213, 225, 0.9);
  --mpt-divider: #E2E8F0;

  /* ── Shadows ── */
  --mpt-shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --mpt-shadow: 0 4px 20px -2px rgba(0,0,0,0.06);
  --mpt-shadow-md: 0 8px 30px -4px rgba(0,0,0,0.08);
  --mpt-shadow-lg: 0 12px 40px -6px rgba(0,0,0,0.1);
  --mpt-shadow-glow: 0 8px 32px rgba(124, 58, 237, 0.18);
  --mpt-shadow-hover: 0 12px 40px -4px rgba(124, 58, 237, 0.2);

  /* ── Layout ── */
  --mpt-radius-sm: 8px;
  --mpt-radius: 14px;
  --mpt-radius-lg: 20px;
  --mpt-radius-xl: 28px;
  --mpt-radius-full: 9999px;
  --mpt-header-height: 68px;
  --mpt-max-width: 1240px;
  --mpt-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --mpt-transition-fast: 0.15s ease;
  --mpt-transition-spring: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --mpt-glass-blur: blur(20px);
  --mpt-glass-blur-strong: blur(32px);
}

/* ── Dark Mode Tokens ── */
body.dark-mode {
  --mpt-bg: #09090B;
  --mpt-bg-alt: #111113;
  --mpt-surface: #18181B;
  --mpt-surface-hover: #1F1F23;
  --mpt-card: rgba(24, 24, 27, 0.7);
  --mpt-card-solid: #18181B;
  --mpt-text: #F1F5F9;
  --mpt-text-secondary: #CBD5E1;
  --mpt-text-muted: #94A3B8;
  --mpt-border: rgba(63, 63, 70, 0.5);
  --mpt-border-strong: rgba(82, 82, 91, 0.6);
  --mpt-divider: #27272A;
  --mpt-shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
  --mpt-shadow: 0 4px 20px rgba(0,0,0,0.3);
  --mpt-shadow-md: 0 8px 30px rgba(0,0,0,0.35);
  --mpt-shadow-lg: 0 12px 40px rgba(0,0,0,0.4);
  --mpt-shadow-glow: 0 8px 32px rgba(124, 58, 237, 0.25);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  line-height: 1.6;
  background: var(--mpt-bg);
  color: var(--mpt-text);
  transition: background var(--mpt-transition), color var(--mpt-transition);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Ambient background glow */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(124, 58, 237, 0.04), transparent),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(6, 182, 212, 0.03), transparent);
  pointer-events: none;
  z-index: -1;
}
body.dark-mode::before {
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(124, 58, 237, 0.07), transparent),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(6, 182, 212, 0.05), transparent);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--mpt-text);
  margin: 0 0 0.6em;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  background: var(--mpt-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p {
  margin: 0 0 1em;
  font-family: 'Inter', sans-serif;
  color: var(--mpt-text-secondary);
  line-height: 1.7;
}

a {
  color: var(--mpt-primary);
  text-decoration: none;
  transition: color var(--mpt-transition);
}
a:hover { color: var(--mpt-secondary); }

small { font-size: 0.875rem; color: var(--mpt-text-muted); }

/* ============================================================
   CONTAINER
   ============================================================ */
.mpt-container, .container, main, .main-content, .wrap {
  width: 100%;
  max-width: var(--mpt-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  margin-bottom: 48px;
}

/* ============================================================
   PREMIUM CARDS
   ============================================================ */
.mpt-card, .feature-card, .tool-card, .blog-card {
  background: var(--mpt-card);
  backdrop-filter: var(--mpt-glass-blur);
  -webkit-backdrop-filter: var(--mpt-glass-blur);
  border: 1px solid var(--mpt-border);
  border-radius: var(--mpt-radius);
  padding: 28px;
  box-shadow: var(--mpt-shadow-sm);
  transition: transform var(--mpt-transition), box-shadow var(--mpt-transition), border-color var(--mpt-transition);
  position: relative;
  overflow: hidden;
}

.mpt-card:hover, .feature-card:hover, .tool-card:hover, .blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--mpt-shadow-hover);
  border-color: rgba(124, 58, 237, 0.25);
}

/* Card shimmer effect on hover */
.mpt-card::after, .tool-card::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.04), transparent);
  transition: left 0.6s ease;
  pointer-events: none;
}
.mpt-card:hover::after, .tool-card:hover::after {
  left: 100%;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.mpt-btn, .btn, .cta-button, .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--mpt-gradient);
  color: #fff !important;
  border: none;
  border-radius: var(--mpt-radius-full);
  font-weight: 600;
  font-size: 15px;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: all var(--mpt-transition);
  box-shadow: 0 4px 16px var(--mpt-primary-glow);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.mpt-btn:hover, .btn:hover, .cta-button:hover, .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--mpt-primary-glow);
  color: #fff !important;
}

.mpt-btn:active, .btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px var(--mpt-primary-glow);
}

/* Button shimmer */
.mpt-btn::before, .btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
  pointer-events: none;
}
.mpt-btn:hover::before, .btn:hover::before {
  left: 100%;
}

/* Secondary button */
.mpt-btn-secondary, .btn-secondary {
  background: transparent;
  color: var(--mpt-text) !important;
  border: 2px solid var(--mpt-border-strong);
  box-shadow: none;
}
.mpt-btn-secondary:hover, .btn-secondary:hover {
  background: var(--mpt-primary-light);
  border-color: var(--mpt-primary);
  color: var(--mpt-primary) !important;
  box-shadow: none;
  transform: translateY(-2px);
}

/* Small button */
.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--mpt-radius-full);
  background: var(--mpt-gradient);
  color: #fff;
  margin-left: 8px;
}

/* ============================================================
   AD BOX — Premium Container
   ============================================================ */
.ad-box {
  max-width: 100%;
  margin: 28px auto;
  padding: 16px;
  background: var(--mpt-card);
  border: 1px solid var(--mpt-border);
  border-radius: var(--mpt-radius);
  text-align: center;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  backdrop-filter: var(--mpt-glass-blur);
  -webkit-backdrop-filter: var(--mpt-glass-blur);
  box-shadow: var(--mpt-shadow-sm);
  position: relative;
  overflow: hidden;
}

.ad-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--mpt-gradient-subtle);
}

.ad-box ins.adsbygoogle { max-width: 100%; width: 100%; }
.ad-box .ad-label,
.ad-box > span {
  display: inline-block;
  font-size: 10px;
  color: var(--mpt-text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 6px;
  font-weight: 600;
  background: rgba(0,0,0,0.04);
  padding: 3px 10px;
  border-radius: var(--mpt-radius-full);
}
body.dark-mode .ad-box .ad-label,
body.dark-mode .ad-box > span {
  background: rgba(255,255,255,0.05);
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  background: var(--mpt-card);
  backdrop-filter: var(--mpt-glass-blur-strong);
  -webkit-backdrop-filter: var(--mpt-glass-blur-strong);
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--mpt-header-height);
  border-bottom: 1px solid var(--mpt-border);
  transition: background var(--mpt-transition), border-color var(--mpt-transition);
}

.header-left, .header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Logo */
.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--mpt-text);
  text-decoration: none;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color var(--mpt-transition);
}
.logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--mpt-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  transition: transform var(--mpt-transition);
}
.logo:hover .logo-icon {
  transform: rotate(-8deg) scale(1.05);
}
.logo:hover { color: var(--mpt-primary); }

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-category {
  position: relative;
  padding: 22px 14px;
  color: var(--mpt-text-muted);
  font-weight: 600;
  cursor: pointer;
  transition: color var(--mpt-transition);
  font-size: 14.5px;
  font-family: 'Outfit', sans-serif;
}
.nav-category:hover { color: var(--mpt-primary); }

/* Nav Dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--mpt-card-solid);
  border: 1px solid var(--mpt-border);
  border-radius: var(--mpt-radius);
  box-shadow: var(--mpt-shadow-lg);
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--mpt-transition), transform var(--mpt-transition);
  z-index: 210;
  padding: 8px;
  list-style: none;
}

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

/* Invisible bridge to prevent hover gap */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  width: 100%;
  height: 16px;
}

.nav-dropdown li { list-style: none; }

.nav-dropdown a {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  color: var(--mpt-text-secondary);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--mpt-radius-sm);
  transition: background var(--mpt-transition), color var(--mpt-transition);
  gap: 12px;
}
.nav-dropdown a:hover {
  background: var(--mpt-primary-light);
  color: var(--mpt-primary);
}
.nav-dropdown i {
  width: 20px;
  text-align: center;
  font-size: 15px;
  color: var(--mpt-primary);
  flex-shrink: 0;
}

/* Theme & Menu Buttons */
.theme-icon-button, .menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: 18px;
  color: var(--mpt-text-muted);
  transition: color var(--mpt-transition), background var(--mpt-transition), transform var(--mpt-transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--mpt-radius-sm);
}
.theme-icon-button:hover, .menu-toggle:hover {
  background: var(--mpt-primary-light);
  color: var(--mpt-primary);
}
.menu-toggle { display: none; }

/* ============================================================
   MOBILE MENU (Slide-in Drawer)
   ============================================================ */
.overlay-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 500;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--mpt-transition);
}
.overlay-menu.show { opacity: 1; visibility: visible; }

.menu-content {
  position: absolute;
  top: 0; left: 0;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  background: var(--mpt-card-solid);
  padding: 0;
  transform: translateX(-100%);
  transition: transform var(--mpt-transition-spring);
  box-shadow: var(--mpt-shadow-lg);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.overlay-menu.show .menu-content {
  transform: translateX(0);
}

.menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--mpt-border);
}

.menu-close {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--mpt-text-muted);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--mpt-radius-sm);
  transition: all var(--mpt-transition);
}
.menu-close:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--mpt-danger);
}

.menu-list {
  list-style: none;
  padding: 12px;
  flex: 1;
}

.menu-category {
  margin-bottom: 6px;
}

.category-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: transparent;
  border-radius: var(--mpt-radius-sm);
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  color: var(--mpt-text);
  transition: all var(--mpt-transition);
  font-family: 'Outfit', sans-serif;
}
.category-toggle:hover {
  background: var(--mpt-primary-light);
}
.category-toggle.active {
  background: var(--mpt-primary);
  color: #fff;
}
.category-toggle i {
  font-size: 12px;
  transition: transform var(--mpt-transition);
}
.category-toggle.active i {
  transform: rotate(180deg);
}

.category-items {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--mpt-transition);
  padding: 0 8px;
  list-style: none;
}
.category-items.show {
  max-height: 500px;
  padding: 4px 8px 8px;
}
.category-items a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: var(--mpt-text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  border-radius: var(--mpt-radius-sm);
  transition: all var(--mpt-transition);
}
.category-items a:hover {
  color: var(--mpt-primary);
  background: var(--mpt-primary-light);
  padding-left: 22px;
}
.category-items a i {
  width: 18px;
  text-align: center;
  font-size: 13px;
  color: var(--mpt-primary);
}

/* ============================================================
   FOOTER
   ============================================================ */
.mpt-footer, footer {
  margin-top: 80px;
  padding: 48px 24px 32px;
  border-top: 1px solid var(--mpt-border);
  background: var(--mpt-card);
  backdrop-filter: var(--mpt-glass-blur);
  -webkit-backdrop-filter: var(--mpt-glass-blur);
}

.footer-inner {
  max-width: var(--mpt-max-width);
  margin: 0 auto;
}

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

.footer-brand .logo {
  margin-bottom: 12px;
  font-size: 1.3rem;
}
.footer-brand p {
  font-size: 14px;
  color: var(--mpt-text-muted);
  max-width: 280px;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mpt-text);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  padding: 5px 0;
  color: var(--mpt-text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--mpt-transition), padding-left var(--mpt-transition);
}
.footer-col a:hover {
  color: var(--mpt-primary);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--mpt-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  color: var(--mpt-text-muted);
  font-size: 13px;
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--mpt-radius-sm);
  background: var(--mpt-primary-light);
  color: var(--mpt-primary);
  font-size: 15px;
  transition: all var(--mpt-transition);
}
.footer-social a:hover {
  background: var(--mpt-primary);
  color: #fff;
  transform: translateY(-2px);
}

/* Legacy footer link support */
.mpt-footer-links, .footer-links, footer nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.mpt-footer-links a, .footer-links a, footer nav a, footer a {
  color: var(--mpt-text-muted);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
}
.mpt-footer-links a:hover, .footer-links a:hover, footer nav a:hover, footer a:hover {
  color: var(--mpt-primary);
}
.mpt-footer-copy, .footer-copy, footer > p {
  color: var(--mpt-text-muted);
  font-size: 13px;
  text-align: center;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: var(--mpt-card-solid);
  border-radius: var(--mpt-radius-lg);
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  overflow: hidden;
  box-shadow: var(--mpt-shadow-lg);
  position: relative;
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.close-btn {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--mpt-primary-light);
  border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 20px;
  color: var(--mpt-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all var(--mpt-transition);
}
.close-btn:hover {
  background: rgba(239,68,68,0.12);
  color: var(--mpt-danger);
}
.modal-iframe {
  width: 100%;
  height: 80vh;
  border: none;
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.35s; }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(9) { transition-delay: 0.45s; }
.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-gradient {
  background: var(--mpt-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-title {
  text-align: center;
  margin-bottom: 12px;
}
.section-subtitle {
  text-align: center;
  color: var(--mpt-text-muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 600px;
  margin: 0 auto 48px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

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

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

  .header { padding: 0 16px; height: 60px; }
  --mpt-header-height: 60px;

  .mpt-container, .container, main, .main-content, .wrap {
    padding: 0 16px;
  }

  section { margin-bottom: 32px; }

  .ad-box { margin: 16px auto; padding: 12px; min-height: 70px; }

  .mpt-footer, footer { padding: 32px 16px 24px; margin-top: 48px; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .modal-content { width: 95%; border-radius: var(--mpt-radius); }
}

/* Small mobile */
@media (max-width: 480px) {
  .header { padding: 0 12px; }
  .logo { font-size: 1.2rem; }
  .logo-icon { width: 30px; height: 30px; font-size: 14px; }

  .mpt-btn, .btn { padding: 11px 22px; font-size: 14px; }

  .mpt-container, .container, main, .main-content, .wrap {
    padding: 0 12px;
  }

  .mpt-card, .feature-card, .tool-card, .blog-card {
    padding: 20px;
  }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--mpt-primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .stagger-children > * { opacity: 1; transform: none; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .header, .mpt-footer, footer, .overlay-menu, .ad-box, .modal { display: none !important; }
  body { background: #fff; color: #000; }
  body::before { display: none; }
}
