/* ============================================
   PDF AIOPEN — Premium Design System
   Powered by AIOPEN.CLOUD
   ============================================ */

/* === CSS Custom Properties === */
:root {
  /* Brand Colors */
  --brand-primary: #7C3AED;
  --brand-secondary: #EC4899;
  --brand-accent: #06B6D4;
  --brand-success: #10B981;
  --brand-warning: #F59E0B;
  --brand-danger: #EF4444;

  /* Gradient */
  --grad-primary: linear-gradient(135deg, #7C3AED 0%, #EC4899 50%, #F59E0B 100%);
  --grad-purple: linear-gradient(135deg, #7C3AED, #A855F7);
  --grad-pink: linear-gradient(135deg, #EC4899, #F43F5E);
  --grad-blue: linear-gradient(135deg, #06B6D4, #3B82F6);
  --grad-hero: linear-gradient(135deg, #0F0720 0%, #1a0535 30%, #0d1b4b 60%, #0a2744 100%);
  --grad-card: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(236,72,153,0.08));

  /* Light Mode Colors */
  --bg-primary: #FAFAFA;
  --bg-secondary: #F4F4F8;
  --bg-card: #FFFFFF;
  --bg-glass: rgba(255,255,255,0.7);
  --bg-glass-dark: rgba(255,255,255,0.1);
  --text-primary: #0F0A1E;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --border-color: rgba(124,58,237,0.12);
  --border-light: rgba(0,0,0,0.06);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(124,58,237,0.12), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 40px rgba(124,58,237,0.15), 0 4px 12px rgba(0,0,0,0.08);
  --shadow-xl: 0 20px 60px rgba(124,58,237,0.2), 0 8px 24px rgba(0,0,0,0.1);
  --shadow-glow: 0 0 30px rgba(124,58,237,0.25);
  --shadow-pink: 0 0 30px rgba(236,72,153,0.25);

  /* Typography */
  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;
  --transition-spring: 0.35s cubic-bezier(0.34,1.56,0.64,1);

  /* Z-index */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 300;
  --z-toast: 400;

  /* Header */
  --header-height: 72px;
}

/* Dark Mode */
[data-theme="dark"] {
  --bg-primary: #0A0412;
  --bg-secondary: #10071E;
  --bg-card: #150A26;
  --bg-glass: rgba(21,10,38,0.8);
  --bg-glass-dark: rgba(255,255,255,0.05);
  --text-primary: #F0EBFF;
  --text-secondary: #A78BCA;
  --text-muted: #6B5C8A;
  --border-color: rgba(124,58,237,0.2);
  --border-light: rgba(255,255,255,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4), 0 2px 4px rgba(124,58,237,0.2);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.5), 0 4px 12px rgba(124,58,237,0.25);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.6), 0 8px 24px rgba(124,58,237,0.3);
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  transition: background var(--transition-slow), color var(--transition-slow);
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--brand-secondary); }
button { cursor: pointer; font-family: inherit; border: none; outline: none; }
input, textarea, select { font-family: inherit; }

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
p { color: var(--text-secondary); line-height: 1.7; }

.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === Container === */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--space-lg); }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 var(--space-lg); }

/* === Header === */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  height: var(--header-height);
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-base);
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
  background: var(--bg-glass);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: var(--space-lg);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--grad-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-glow);
  transition: transform var(--transition-spring), box-shadow var(--transition-base);
}
.logo:hover .logo-icon { transform: rotate(-5deg) scale(1.05); box-shadow: var(--shadow-pink); }
.logo-text { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; }
.logo-text .pdf { color: var(--brand-primary); }
.logo-text .ai { background: var(--grad-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Navigation */
.main-nav { display: flex; align-items: center; gap: 0; }
.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.nav-link:hover { color: var(--brand-primary); background: rgba(124,58,237,0.08); }
.nav-link.active { color: var(--brand-primary); }
.nav-link svg { width: 14px; height: 14px; transition: transform var(--transition-base); }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }

/* Mega Menu */
.mega-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: var(--space-xl);
  min-width: 700px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--transition-base);
  z-index: var(--z-dropdown);
}
.nav-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.mega-menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.mega-menu-section h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-light);
}
.mega-menu-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  margin-bottom: 2px;
}
.mega-menu-link:hover { color: var(--brand-primary); background: rgba(124,58,237,0.06); transform: translateX(3px); }
.mega-menu-link .icon { width: 28px; height: 28px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; flex-shrink: 0; }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: var(--space-sm); flex-shrink: 0; }
.btn-theme {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  font-size: 1rem;
}
.btn-theme:hover { background: rgba(124,58,237,0.1); color: var(--brand-primary); border-color: var(--brand-primary); }
.lang-selector {
  position: relative;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.lang-btn:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-sm);
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: var(--z-dropdown);
  max-height: 300px;
  overflow-y: auto;
}
.lang-selector:hover .lang-dropdown { opacity: 1; visibility: visible; }
.lang-option {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  cursor: pointer;
}
.lang-option:hover { background: rgba(124,58,237,0.08); color: var(--brand-primary); }
.lang-option.active { color: var(--brand-primary); font-weight: 600; }

/* Mobile Nav Toggle */
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: var(--radius-md); background: var(--bg-secondary); border: 1px solid var(--border-light); }
.nav-toggle span { width: 20px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: all var(--transition-base); display: block; }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-xl);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-spring);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.btn:hover::after { opacity: 0.1; }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--grad-primary);
  color: white;
  box-shadow: var(--shadow-glow);
  border: none;
}
.btn-primary:hover { box-shadow: var(--shadow-pink); transform: translateY(-2px); }

.btn-secondary {
  background: transparent;
  color: var(--brand-primary);
  border: 2px solid var(--brand-primary);
}
.btn-secondary:hover { background: var(--brand-primary); color: white; transform: translateY(-2px); }

.btn-ghost {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.btn-ghost:hover { background: rgba(124,58,237,0.1); border-color: var(--brand-primary); }

.btn-lg { padding: var(--space-md) var(--space-2xl); font-size: 1rem; }
.btn-sm { padding: var(--space-xs) var(--space-lg); font-size: 0.8rem; }
.btn-icon { padding: var(--space-sm); border-radius: var(--radius-md); }

/* === Cards === */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: all var(--transition-base);
}
.card:hover { box-shadow: var(--shadow-lg); border-color: rgba(124,58,237,0.25); transform: translateY(-2px); }

.card-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.15);
}

/* === Tool Card === */
.tool-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}
.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-primary);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}
.tool-card:hover { box-shadow: var(--shadow-lg); border-color: rgba(124,58,237,0.25); transform: translateY(-3px); color: inherit; }
.tool-card:hover::before { transform: scaleX(1); }

.tool-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: var(--grad-card);
  border: 1px solid var(--border-color);
  transition: all var(--transition-spring);
}
.tool-card:hover .tool-icon { transform: scale(1.1) rotate(-5deg); box-shadow: var(--shadow-glow); }
.tool-card h3 { font-size: 1rem; font-weight: 700; margin: 0; }
.tool-card p { font-size: 0.85rem; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* === Hero Section === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--grad-hero);
  padding: var(--space-4xl) 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 8s ease-in-out infinite;
}
.hero-orb-1 { width: 600px; height: 600px; background: radial-gradient(circle, #7C3AED, transparent); top: -200px; right: -100px; }
.hero-orb-2 { width: 400px; height: 400px; background: radial-gradient(circle, #EC4899, transparent); bottom: -100px; left: -100px; animation-delay: -3s; }
.hero-orb-3 { width: 300px; height: 300px; background: radial-gradient(circle, #06B6D4, transparent); top: 30%; left: 20%; animation-delay: -6s; opacity: 0.2; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.05); }
  66% { transform: translate(-15px, 15px) scale(0.97); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}
.hero-content { color: white; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: rgba(124,58,237,0.25);
  border: 1px solid rgba(124,58,237,0.4);
  border-radius: var(--radius-full);
  padding: var(--space-xs) var(--space-md);
  font-size: 0.8rem;
  font-weight: 600;
  color: #C4B5FD;
  margin-bottom: var(--space-lg);
  backdrop-filter: blur(12px);
}
.hero-badge .dot { width: 6px; height: 6px; background: #A855F7; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.3); } }

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: white;
  margin-bottom: var(--space-lg);
}
.hero h1 .highlight {
  background: linear-gradient(135deg, #A78BFA, #F9A8D4, #FCD34D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
  max-width: 480px;
}
.hero-actions { display: flex; gap: var(--space-md); flex-wrap: wrap; margin-bottom: var(--space-2xl); }
.hero-stats { display: flex; gap: var(--space-2xl); }
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 1.75rem; font-weight: 800; background: var(--grad-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-stat .label { font-size: 0.8rem; color: rgba(255,255,255,0.6); }

/* Upload Zone */
.hero-upload { position: relative; }
.upload-zone {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(20px);
  border: 2px dashed rgba(124,58,237,0.5);
  border-radius: var(--radius-2xl);
  padding: var(--space-3xl);
  text-align: center;
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.upload-zone::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-card);
  opacity: 0;
  transition: opacity var(--transition-base);
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--brand-primary);
  background: rgba(124,58,237,0.12);
}
.upload-zone:hover::before, .upload-zone.drag-over::before { opacity: 1; }
.upload-icon {
  width: 72px;
  height: 72px;
  background: var(--grad-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  font-size: 2rem;
  box-shadow: var(--shadow-xl);
  animation: float 4s ease-in-out infinite;
}
.upload-zone h3 { color: white; font-size: 1.25rem; margin-bottom: var(--space-sm); }
.upload-zone p { color: rgba(255,255,255,0.6); font-size: 0.9rem; margin-bottom: var(--space-lg); }
.upload-formats { display: flex; gap: var(--space-sm); flex-wrap: wrap; justify-content: center; }
.format-tag {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  padding: 2px 12px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

/* === Search Bar === */
.search-bar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-xl);
  backdrop-filter: blur(12px);
  transition: all var(--transition-base);
}
.search-bar:focus-within { border-color: var(--brand-primary); background: rgba(255,255,255,0.12); }
.search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  color: white;
  font-size: 0.95rem;
  outline: none;
}
.search-bar input::placeholder { color: rgba(255,255,255,0.4); }
.search-bar-icon { color: rgba(255,255,255,0.5); font-size: 1rem; }
.search-btn {
  background: var(--brand-primary);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  padding: var(--space-xs) var(--space-lg);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.search-btn:hover { background: var(--brand-secondary); }

/* === Sections === */
.section { padding: var(--space-4xl) 0; }
.section-sm { padding: var(--space-2xl) 0; }
.section-header { text-align: center; margin-bottom: var(--space-3xl); }
.section-badge {
  display: inline-block;
  background: rgba(124,58,237,0.1);
  color: var(--brand-primary);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: var(--radius-full);
  padding: var(--space-xs) var(--space-md);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}
.section-title { margin-bottom: var(--space-md); }
.section-desc { font-size: 1.1rem; color: var(--text-secondary); max-width: 560px; margin: 0 auto; }

/* Tools Grid */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-lg); }
.tools-grid-lg { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* Category Tabs */
.category-tabs { display: flex; gap: var(--space-sm); flex-wrap: wrap; justify-content: center; margin-bottom: var(--space-2xl); }
.cat-tab {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-base);
}
.cat-tab:hover, .cat-tab.active {
  background: var(--brand-primary);
  color: white;
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

/* === Features === */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-xl); }
.feature-card {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  background: var(--grad-card);
  border: 1px solid var(--border-color);
}
.feature-body h3 { font-size: 1rem; margin-bottom: var(--space-xs); }
.feature-body p { font-size: 0.875rem; color: var(--text-muted); }

/* === Stats === */
.stats-section { background: var(--grad-hero); padding: var(--space-3xl) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-xl); text-align: center; }
.stat-card { padding: var(--space-xl); }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: var(--space-xs);
}
.stat-label { color: rgba(255,255,255,0.7); font-size: 0.9rem; }

/* === Testimonials === */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-xl); }
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: all var(--transition-base);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stars { color: #F59E0B; font-size: 1rem; margin-bottom: var(--space-md); letter-spacing: 2px; }
.testimonial-text { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; margin-bottom: var(--space-lg); font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: var(--space-sm); }
.author-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--grad-primary); display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 0.9rem; }
.author-name { font-weight: 600; font-size: 0.9rem; }
.author-role { font-size: 0.75rem; color: var(--text-muted); }

/* === FAQ === */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-sm);
  overflow: hidden;
  transition: all var(--transition-base);
}
.faq-item.open { border-color: var(--brand-primary); box-shadow: var(--shadow-md); }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) var(--space-xl);
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: left;
  transition: all var(--transition-fast);
  cursor: pointer;
}
.faq-question:hover { color: var(--brand-primary); background: rgba(124,58,237,0.04); }
.faq-item.open .faq-question { color: var(--brand-primary); }
.faq-chevron { width: 20px; height: 20px; flex-shrink: 0; color: var(--text-muted); transition: transform var(--transition-base); }
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--brand-primary); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
  padding: 0 var(--space-xl);
}
.faq-item.open .faq-answer { max-height: 500px; padding: 0 var(--space-xl) var(--space-lg); }
.faq-answer p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }

/* === CTA Section === */
.cta-section {
  background: var(--grad-primary);
  padding: var(--space-4xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(255,255,255,0.1)'/%3E%3C/svg%3E"); }
.cta-content { position: relative; z-index: 1; }
.cta-section h2 { color: white; margin-bottom: var(--space-md); }
.cta-section p { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: var(--space-2xl); }

/* === Newsletter === */
.newsletter-form { display: flex; gap: var(--space-sm); max-width: 480px; margin: 0 auto; }
.newsletter-input {
  flex: 1;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-full);
  border: 2px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 0.9rem;
  outline: none;
  backdrop-filter: blur(12px);
  transition: border-color var(--transition-fast);
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-input:focus { border-color: rgba(255,255,255,0.7); }

/* === Footer === */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  padding: var(--space-4xl) 0 var(--space-xl);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: var(--space-2xl); margin-bottom: var(--space-3xl); }
.footer-brand .logo { margin-bottom: var(--space-lg); }
.footer-desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; margin-bottom: var(--space-lg); }
.footer-social { display: flex; gap: var(--space-sm); }
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
  transition: all var(--transition-fast);
}
.social-btn:hover { background: var(--brand-primary); color: white; border-color: var(--brand-primary); transform: translateY(-2px); }
.footer-col h4 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-primary); margin-bottom: var(--space-md); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: var(--space-xs); }
.footer-links a { font-size: 0.875rem; color: var(--text-muted); transition: color var(--transition-fast); }
.footer-links a:hover { color: var(--brand-primary); }
.footer-bottom { border-top: 1px solid var(--border-light); padding-top: var(--space-xl); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-md); }
.footer-copy { font-size: 0.8rem; color: var(--text-muted); }
.footer-copy a { color: var(--brand-primary); }
.powered-by { font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; gap: var(--space-xs); }
.powered-by a { color: var(--brand-primary); font-weight: 600; }

/* === Upload Tool Page === */
.tool-page-hero {
  background: var(--grad-hero);
  padding: var(--space-4xl) 0 var(--space-3xl);
}
.tool-page-hero .breadcrumb { display: flex; align-items: center; gap: var(--space-xs); font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-bottom: var(--space-lg); }
.tool-page-hero .breadcrumb a { color: rgba(255,255,255,0.6); }
.tool-page-hero .breadcrumb .sep { color: rgba(255,255,255,0.3); }
.tool-page-hero h1 { color: white; margin-bottom: var(--space-md); }
.tool-page-hero p { color: rgba(255,255,255,0.7); max-width: 560px; }

.tool-workspace {
  max-width: 860px;
  margin: -var(--space-2xl) auto var(--space-4xl);
  position: relative;
  z-index: 2;
  padding: 0 var(--space-lg);
}
.tool-upload-area {
  background: var(--bg-card);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-2xl);
  padding: var(--space-4xl);
  text-align: center;
  transition: all var(--transition-base);
  cursor: pointer;
  box-shadow: var(--shadow-lg);
}
.tool-upload-area:hover, .tool-upload-area.drag-over {
  border-color: var(--brand-primary);
  background: rgba(124,58,237,0.04);
}
.tool-upload-icon { font-size: 4rem; margin-bottom: var(--space-lg); }
.tool-upload-area h3 { font-size: 1.5rem; margin-bottom: var(--space-sm); }
.tool-upload-area p { color: var(--text-muted); margin-bottom: var(--space-lg); }

/* Progress */
.upload-progress { display: none; margin-top: var(--space-lg); }
.progress-bar { height: 8px; background: var(--border-color); border-radius: var(--radius-full); overflow: hidden; margin-bottom: var(--space-sm); }
.progress-fill { height: 100%; background: var(--grad-primary); border-radius: var(--radius-full); width: 0%; transition: width 0.3s ease; }
.progress-text { font-size: 0.85rem; color: var(--text-muted); text-align: center; }

/* === Toast === */
#toast-container { position: fixed; bottom: var(--space-xl); right: var(--space-xl); z-index: var(--z-toast); display: flex; flex-direction: column; gap: var(--space-sm); }
.toast {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  font-size: 0.875rem;
  color: var(--text-primary);
  transform: translateX(120%);
  transition: transform var(--transition-spring);
  max-width: 320px;
  backdrop-filter: blur(12px);
}
.toast.show { transform: translateX(0); }
.toast.success { border-color: var(--brand-success); }
.toast.error { border-color: var(--brand-danger); }
.toast-icon { font-size: 1.1rem; flex-shrink: 0; }
.toast.success .toast-icon { color: var(--brand-success); }
.toast.error .toast-icon { color: var(--brand-danger); }

/* === Pricing === */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
  position: relative;
  transition: all var(--transition-base);
}
.pricing-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.pricing-card.featured {
  background: var(--grad-primary);
  border-color: transparent;
  box-shadow: var(--shadow-xl);
}
.pricing-card.featured * { color: white !important; }
.pricing-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--brand-warning); color: #1a0535; font-size: 0.75rem; font-weight: 700; padding: 4px 16px; border-radius: var(--radius-full); white-space: nowrap; }
.pricing-name { font-size: 1.1rem; font-weight: 700; margin-bottom: var(--space-sm); }
.pricing-price { font-size: 3rem; font-weight: 900; line-height: 1; margin-bottom: var(--space-xs); }
.pricing-price span { font-size: 1rem; font-weight: 400; }
.pricing-period { font-size: 0.85rem; color: var(--text-muted); margin-bottom: var(--space-xl); }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: var(--space-sm); margin-bottom: var(--space-xl); }
.pricing-features li { display: flex; align-items: center; gap: var(--space-sm); font-size: 0.875rem; }
.pricing-features .check { color: var(--brand-success); font-weight: 700; }

/* === Blog === */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--space-xl); }
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); color: inherit; }
.blog-thumb { height: 200px; background: var(--grad-primary); position: relative; overflow: hidden; }
.blog-thumb-icon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 4rem; opacity: 0.4; }
.blog-cat { position: absolute; top: var(--space-md); left: var(--space-md); background: var(--brand-primary); color: white; font-size: 0.7rem; font-weight: 700; padding: 3px 10px; border-radius: var(--radius-full); text-transform: uppercase; letter-spacing: 0.06em; }
.blog-content { padding: var(--space-xl); flex: 1; display: flex; flex-direction: column; gap: var(--space-sm); }
.blog-date { font-size: 0.75rem; color: var(--text-muted); }
.blog-title { font-size: 1.1rem; font-weight: 700; line-height: 1.4; }
.blog-excerpt { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; flex: 1; }
.blog-read-more { font-size: 0.85rem; color: var(--brand-primary); font-weight: 600; margin-top: auto; }

/* === Utility Classes === */
.text-center { text-align: center; }
.text-left { text-align: left; }
.hidden { display: none !important; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

/* Lazy load animation */
.lazy-hidden { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.lazy-visible { opacity: 1; transform: translateY(0); }

/* RTL Support */
[dir="rtl"] .mega-menu { left: auto; right: 50%; transform: translateX(50%); }
[dir="rtl"] .nav-item:hover .mega-menu { transform: translateX(50%) translateY(0); }
[dir="rtl"] .mega-menu-link:hover { transform: translateX(-3px); }
[dir="rtl"] .toast { transform: translateX(-120%); }
[dir="rtl"] .toast.show { transform: translateX(0); }
[dir="rtl"] #toast-container { left: var(--space-xl); right: auto; }

/* === Responsive === */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .mega-menu { min-width: 560px; }
  .mega-menu-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-2xl); }
  .hero-upload { order: -1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .main-nav { display: none; position: fixed; top: var(--header-height); left: 0; right: 0; bottom: 0; background: var(--bg-card); padding: var(--space-xl); flex-direction: column; gap: var(--space-sm); overflow-y: auto; z-index: var(--z-dropdown); }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .mega-menu { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: none; padding: var(--space-sm); background: var(--bg-secondary); border-radius: var(--radius-md); display: none; min-width: auto; }
  .nav-item.open .mega-menu { display: block; }
  .mega-menu-grid { grid-template-columns: 1fr; gap: var(--space-sm); }
}

@media (max-width: 640px) {
  :root { --header-height: 60px; }
  .hero { min-height: auto; padding: var(--space-2xl) 0; }
  .hero-stats { gap: var(--space-lg); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .newsletter-form { flex-direction: column; }
  .pricing-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .logo-text { display: none; }
}

@media (max-width: 420px) {
  .tools-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: var(--space-md); }
  .stats-grid { grid-template-columns: 1fr; }
}

/* === Print === */
@media print { .site-header, .site-footer, .hero, .cta-section { display: none; } }

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
