/* ==========================================================================
   I WANT PDF — CORE DESIGN SYSTEM & STYLESHEET
   Brand: I Want PDF | Modern, Fast & Secure Document Toolkit
   ========================================================================== */

:root {
  --brand-navy: #102653;
  --brand-navy-deep: #08172f;
  --brand-blue: #2678ff;
  --brand-purple: #7654f8;
  --brand-cyan: #2cc8d8;
  --brand-green: #21bf83;
  --brand-orange: #f28a16;
  --brand-red: #f14965;
  --brand-yellow: #f5a623;
  
  --brand-gradient: linear-gradient(110deg, #2678ff 0%, #7654f8 100%);
  --brand-gradient-hover: linear-gradient(110deg, #1b68ed 0%, #6845ea 100%);
  --hero-gradient: radial-gradient(ellipse at 80% 30%, rgba(44, 200, 216, 0.12), transparent 40%),
                   linear-gradient(120deg, #f0f6ff 0%, #f6f8ff 50%, #eff2ff 100%);
  
  --surface-primary: #ffffff;
  --surface-subtle: #f8faff;
  --surface-card: #ffffff;
  --surface-muted: #eef4fc;
  --border-light: #e2ecf9;
  --border-focus: #2678ff;
  
  --text-main: #102653;
  --text-muted: #5e7292;
  --text-light: #899bb5;
  --text-white: #ffffff;
  
  --shadow-sm: 0 2px 8px rgba(16, 38, 83, 0.04);
  --shadow-md: 0 8px 24px rgba(38, 120, 255, 0.08);
  --shadow-lg: 0 18px 45px rgba(16, 38, 83, 0.11);
  --shadow-glow: 0 0 25px rgba(38, 120, 255, 0.25);
  
  /* Consolidated Corner Radii System (4 standard tokens) */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  /* Standardized Modular Type Scale (7 cohesive steps) */
  --text-xs: 0.8125rem;  /* 13px - Captions, tags, window titles (>= 12px floor) */
  --text-sm: 0.875rem;   /* 14px - Tool card copy, navigation, buttons */
  --text-base: 1rem;     /* 16px - Base body text & inputs */
  --text-lg: 1.125rem;   /* 18px - Dropzone title & card headers */
  --text-xl: 1.25rem;    /* 20px - Section subheadings */
  --text-2xl: 1.5rem;    /* 24px - Section titles (H2) */
  --text-3xl: 2rem;      /* 32px - Page title / H1 base */

  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --header-height: 74px;
  --container-max: 1200px;
  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Theme Variables (Toggleable) */
[data-theme="dark"] {
  --brand-navy: #f0f5ff;
  --brand-navy-deep: #0a1120;
  --surface-primary: #0d172b;
  --surface-subtle: #080f1e;
  --surface-card: #132039;
  --surface-muted: #1c2c4d;
  --border-light: #203358;
  --text-main: #f0f5ff;
  --text-muted: #9bb0cf;
  --text-light: #6a82a7;
  --hero-gradient: radial-gradient(ellipse at 80% 30%, rgba(44, 200, 216, 0.08), transparent 50%),
                   linear-gradient(120deg, #091224 0%, #0d172b 100%);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 18px 45px rgba(0, 0, 0, 0.45);
}

/* ==========================================================================
   RESET & BASE TYPOGRAPHY
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-family);
  font-size: var(--text-base);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--surface-subtle);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

.wrap {
  width: min(var(--container-max), calc(100% - 40px));
  margin-inline: auto;
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: var(--text-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
  white-space: nowrap;
  user-select: none;
}

.btn-primary {
  background: var(--brand-gradient);
  color: var(--text-white) !important;
  box-shadow: 0 4px 14px rgba(38, 120, 255, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(38, 120, 255, 0.38);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: var(--surface-primary);
  border-color: var(--border-light);
  color: var(--brand-blue);
}

.btn-outline:hover {
  border-color: var(--brand-blue);
  background: var(--surface-muted);
  transform: translateY(-2px);
}

.btn-white {
  background: #ffffff;
  color: var(--brand-navy);
  font-weight: 700;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-ghost-white {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--text-white);
}

.btn-ghost-white:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
}

.btn-lg {
  padding: 14px 28px;
  font-size: var(--text-base);
  border-radius: var(--radius-full);
}

.btn-sm {
  padding: 7px 14px;
  font-size: var(--text-xs);
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(38, 120, 255, 0.08);
  border: 1px solid rgba(38, 120, 255, 0.22);
  color: var(--brand-blue);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

[data-theme="dark"] .site-header {
  background: rgba(13, 23, 43, 0.92);
}

.nav-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--brand-gradient);
  display: grid;
  place-items: center;
  color: var(--text-white);
  font-size: var(--text-xl);
  box-shadow: 0 4px 12px rgba(38, 120, 255, 0.25);
}

.brand-text b {
  display: block;
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
  color: var(--brand-navy);
}

.brand-text b span {
  color: var(--brand-blue);
}

.brand-text small {
  display: block;
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 4px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-blue);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--brand-gradient);
  border-radius: var(--radius-full);
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--surface-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 14px;
  min-width: 260px;
  display: none;
  flex-direction: column;
  gap: 6px;
  z-index: 1010;
  transform: translateY(10px);
  opacity: 0;
  transition: all var(--transition-fast);
}

.nav-dropdown:hover .dropdown-menu {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-main);
  transition: background var(--transition-fast);
}

.dropdown-item:hover {
  background: var(--surface-muted);
  color: var(--brand-blue);
}

.dropdown-item i {
  font-style: normal;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-size: var(--text-xs);
  font-weight: 700;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle-btn {
  background: none;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--text-main);
  transition: background var(--transition-fast);
}

.theme-toggle-btn:hover {
  background: var(--surface-muted);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  cursor: pointer;
  color: var(--text-main);
  font-size: var(--text-xl);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  overflow: hidden;
  background: var(--hero-gradient);
  padding: 60px 0 54px;
  border-bottom: 1px solid var(--border-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -1.8px;
  color: var(--brand-navy);
  margin: 18px 0 16px;
}

.hero-content h1 em {
  font-style: normal;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 24px;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-primary);
  border: 1px solid var(--border-light);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.trust-item-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(33, 191, 131, 0.15);
  color: var(--brand-green);
  display: grid;
  place-items: center;
  font-size: var(--text-xs);
  font-weight: 800;
}

.trust-item-text b {
  display: block;
  font-size: var(--text-xs);
  color: var(--text-main);
  line-height: 1.2;
}

.trust-item-text small {
  display: block;
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* Hero Search Bar */
.hero-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-primary);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 6px 6px 6px 20px;
  box-shadow: var(--shadow-md);
  max-width: 520px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.hero-search-form:focus-within {
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-glow);
}

.hero-search-form svg {
  color: var(--brand-blue);
  flex-shrink: 0;
}

.hero-search-input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: var(--text-sm);
  color: var(--text-main);
}

.hero-search-input::placeholder {
  color: var(--text-light);
}

.popular-tags {
  margin-top: 12px;
  font-size: var(--text-xs);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-btn {
  background: rgba(38, 120, 255, 0.08);
  border: none;
  color: var(--brand-blue);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tag-btn:hover {
  background: var(--brand-blue);
  color: var(--text-white);
}

/* Hero Interactive Dropzone Box */
.hero-visual-card {
  position: relative;
  display: grid;
  place-items: center;
}

.floating-pill {
  position: absolute;
  z-index: 4;
  width: 52px;
  height: 56px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  color: var(--text-white);
  font-weight: 800;
  font-size: var(--text-lg);
  box-shadow: var(--shadow-lg);
  animation: float 4s ease-in-out infinite;
}

.float-pdf {
  top: 10px;
  right: -5px;
  background: linear-gradient(135deg, #ff7a85, #f13e5c);
  transform: rotate(10deg);
  animation-delay: 0s;
}

.float-word {
  top: 60px;
  left: -15px;
  background: linear-gradient(135deg, #8dc6ff, #2679f6);
  transform: rotate(-10deg);
  animation-delay: 1.2s;
}

.float-excel {
  bottom: 25px;
  right: -10px;
  background: linear-gradient(135deg, #74e5b3, #0da66b);
  transform: rotate(8deg);
  animation-delay: 2.4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(6deg); }
  50% { transform: translateY(-8px) rotate(9deg); }
}

.upload-window-mockup {
  width: 100%;
  max-width: 440px;
  background: var(--surface-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 2;
}

.window-dots-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-light);
  background: var(--surface-subtle);
}

.dots-group {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.window-title {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
}

.interactive-dropzone {
  margin: 16px;
  padding: 32px 20px 24px;
  border: 2px dashed rgba(38, 120, 255, 0.35);
  border-radius: var(--radius-md);
  text-align: center;
  background: var(--surface-subtle);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.interactive-dropzone:hover, .interactive-dropzone.drag-active {
  background: rgba(38, 120, 255, 0.05);
  border-color: var(--brand-blue);
}

.dropzone-cloud-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: rgba(38, 120, 255, 0.12);
  color: var(--brand-blue);
  display: grid;
  place-items: center;
  font-size: var(--text-2xl);
  margin: 0 auto 12px;
}

.interactive-dropzone h2,
.interactive-dropzone h3,
.dropzone-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
  line-height: 1.3;
}

.interactive-dropzone p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: 16px;
}

.interactive-dropzone small {
  display: block;
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 14px;
}

.privacy-badge {
  color: var(--brand-green) !important;
  font-weight: 600;
  margin-top: 6px !important;
}

.selected-files-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.file-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--surface-muted);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
}

.file-chip-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--brand-red);
  font-size: var(--text-sm);
}

/* ==========================================================================
   POPULAR TOOLS GRID
   ========================================================================== */
.section-block {
  padding: 64px 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.section-header-title label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: 4px;
}

.section-header-title h2 {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--brand-navy);
}

.section-header-title p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: 4px;
}

.popular-tools-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.tool-card {
  position: relative;
  background: var(--surface-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  min-height: 180px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: rgba(38, 120, 255, 0.4);
  box-shadow: var(--shadow-md);
}

.tool-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  font-size: var(--text-xl);
  font-weight: 800;
  margin-bottom: 14px;
}

.tool-card b {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.tool-card p {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}

.tool-card-arrow {
  align-self: flex-end;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--brand-blue);
  display: grid;
  place-items: center;
  font-size: var(--text-xs);
  margin-top: 10px;
  transition: all var(--transition-fast);
}

.tool-card:hover .tool-card-arrow {
  background: var(--brand-blue);
  color: var(--text-white);
}

/* Category Accent Classes */
.icon-red { background: #ffe4e9; color: #f14965; }
.icon-orange { background: #fff0dc; color: #f28a16; }
.icon-green { background: #dcf9e9; color: var(--brand-green); }
.icon-blue { background: #e0edff; color: var(--brand-blue); }
.icon-purple { background: #eee5ff; color: var(--brand-purple); }
.icon-teal { background: #d8faf5; color: var(--brand-green); }
.icon-indigo { background: #e7eaff; color: var(--brand-purple); }
.icon-yellow { background: #fff4c9; color: var(--brand-yellow); }

/* ==========================================================================
   ALL TOOLS CATEGORIES EXPLORER
   ========================================================================== */
.categories-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  margin-top: 24px;
}

.category-filter-sidebar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px;
  height: fit-content;
  position: sticky;
  top: calc(var(--header-height) + 20px);
}

.category-nav-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.category-nav-btn:hover {
  background: var(--surface-muted);
  color: var(--brand-blue);
}

.category-nav-btn.active {
  background: rgba(38, 120, 255, 0.1);
  color: var(--brand-blue);
  font-weight: 700;
}

.category-nav-btn span.count-badge {
  background: var(--surface-muted);
  font-size: var(--text-xs);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  color: var(--text-light);
}

.category-nav-btn.active span.count-badge {
  background: var(--brand-blue);
  color: var(--text-white);
}

.tools-cards-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.category-overview-card {
  display: flex;
  gap: 14px;
  background: var(--surface-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.category-overview-card:hover {
  transform: translateY(-3px);
  border-color: rgba(38, 120, 255, 0.4);
  box-shadow: var(--shadow-md);
}

.category-overview-card i {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  font-size: var(--text-xl);
  font-weight: 800;
  flex-shrink: 0;
  font-style: normal;
}

.category-overview-details b {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.category-overview-details small {
  display: block;
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 10px;
}

.category-overview-details strong {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--brand-blue);
}

.premium-banner-card {
  grid-column: span 3;
  background: linear-gradient(110deg, #eff0ff 0%, #eaf8ff 100%);
  border: 1px solid #dce4ff;
  border-radius: var(--radius-md);
  padding: 26px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .premium-banner-card {
  background: linear-gradient(110deg, #161e38 0%, #1a2a4f 100%);
  border-color: #2b3d68;
}

.premium-banner-content span {
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--brand-purple);
  text-transform: uppercase;
}

.premium-banner-content h3 {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--text-main);
  margin: 4px 0 6px;
}

.premium-banner-content p {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ==========================================================================
   4-STEP WORKFLOW & BENEFITS
   ========================================================================== */
.workflow-section {
  background: var(--surface-primary);
  border-block: 1px solid var(--border-light);
  padding: 68px 0;
}

.workflow-steps-row {
  display: grid;
  grid-template-columns: 1fr 30px 1fr 30px 1fr 30px 1fr;
  align-items: center;
  gap: 12px;
  text-align: center;
  margin-top: 36px;
}

.step-card {
  padding: 20px 10px;
}

.step-number-bubble {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-blue);
  color: var(--text-white);
  display: grid;
  place-items: center;
  font-size: var(--text-xs);
  font-weight: 800;
  margin: 0 auto 12px;
}

.step-card:nth-child(3) .step-number-bubble { background: var(--brand-purple); }
.step-card:nth-child(5) .step-number-bubble { background: var(--brand-green); }
.step-card:nth-child(7) .step-number-bubble { background: var(--brand-orange); }

.step-icon-box {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: var(--surface-muted);
  color: var(--brand-blue);
  display: grid;
  place-items: center;
  font-size: var(--text-2xl);
  margin: 0 auto 14px;
}

.step-card h3 {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.step-card p {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.step-arrow-divider {
  font-size: var(--text-2xl);
  color: var(--text-light);
  font-style: normal;
  text-align: center;
}

/* Trust Stats Banner */
.stats-banner {
  background: linear-gradient(115deg, #0b1e40 0%, #123a78 100%);
  color: var(--text-white);
  padding: 48px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 0.8fr);
  gap: 32px;
  align-items: center;
}

.stats-intro label {
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--brand-cyan);
  text-transform: uppercase;
}

.stats-intro h2 {
  font-size: var(--text-3xl);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.8px;
  margin: 6px 0 8px;
}

.stats-intro p {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.stat-item {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 24px;
}

.stat-item b {
  display: block;
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--brand-cyan);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-item small {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ==========================================================================
   ADSENSE AD CONTAINERS (POLICY COMPLIANT)
   ========================================================================== */
.adsense-slot-wrapper {
  margin: 32px auto;
  text-align: center;
  max-width: 100%;
  clear: both;
}

.adsense-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  text-transform: none;
  margin-bottom: 6px;
}

.adsense-box {
  background: var(--surface-primary);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.adsense-leaderboard {
  width: min(728px, 100%);
  min-height: 90px;
  padding: 8px;
}

.adsense-rectangle {
  width: min(300px, 100%);
  min-height: 250px;
  padding: 8px;
}

.adsense-inarticle {
  width: min(100%, 800px);
  min-height: 120px;
  padding: 12px;
}

.ad-placeholder-text {
  font-size: var(--text-xs);
  color: var(--text-light);
  font-weight: 600;
}

/* ==========================================================================
   AESTHETIC EDITS PROMOTIONAL AD STYLES
   Website: https://aestheticedits.site/
   ========================================================================== */
.aesthetic-ad-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: radial-gradient(circle at 10% 20%, rgba(118, 84, 248, 0.22) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(44, 200, 216, 0.18) 0%, transparent 40%),
              linear-gradient(135deg, #090c15 0%, #130f28 50%, #0a1626 100%);
  border: 1.5px solid rgba(168, 85, 247, 0.45);
  border-radius: var(--radius-md);
  padding: 14px 22px;
  color: var(--text-white) !important;
  text-decoration: none !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 22px rgba(118, 84, 248, 0.16);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.aesthetic-ad-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.75s ease;
}

.aesthetic-ad-card:hover {
  transform: translateY(-3px);
  border-color: rgba(44, 200, 216, 0.85);
  box-shadow: 0 14px 38px rgba(118, 84, 248, 0.32), 0 0 25px rgba(44, 200, 216, 0.25);
}

.aesthetic-ad-card:hover::before {
  left: 100%;
}

.aesthetic-ad-leaderboard {
  width: min(880px, 100%);
  min-height: 84px;
  margin: 0 auto;
}

.aesthetic-ad-inarticle {
  width: min(880px, 100%);
  min-height: 110px;
  margin: 0 auto;
  padding: 20px 24px;
}

.aesthetic-ad-rectangle {
  width: min(320px, 100%);
  min-height: 270px;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 24px 20px;
  gap: 14px;
}

.aesthetic-ad-badge-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.aesthetic-ad-rectangle .aesthetic-ad-badge-group {
  flex-direction: column;
  gap: 10px;
}

.aesthetic-ad-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #7654f8, #f14965);
  display: grid;
  place-items: center;
  font-size: var(--text-2xl);
  box-shadow: 0 4px 16px rgba(241, 73, 101, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.aesthetic-ad-card:hover .aesthetic-ad-icon {
  transform: scale(1.08) rotate(-4deg);
}

.aesthetic-ad-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #2cc8d8;
  margin-bottom: 2px;
}

.aesthetic-ad-tag::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2cc8d8;
  box-shadow: 0 0 8px #2cc8d8;
  animation: adPulseDot 1.6s ease-in-out infinite;
}

@keyframes adPulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.7); opacity: 0.4; }
}

.aesthetic-ad-title {
  font-size: var(--text-base);
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.3px;
  display: block;
}

.aesthetic-ad-content {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.aesthetic-ad-rectangle .aesthetic-ad-content {
  text-align: center;
}

.aesthetic-ad-desc {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.aesthetic-ad-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.aesthetic-ad-features span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-full);
  padding: 4px 11px;
  font-size: var(--text-xs);
  line-height: 1.4;
  color: var(--text-white);
  font-weight: 600;
  backdrop-filter: blur(4px);
  transition: all var(--transition-fast);
}

.aesthetic-ad-card:hover .aesthetic-ad-features span {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(44, 200, 216, 0.45);
  color: var(--text-white);
}

.aesthetic-ad-cta {
  flex-shrink: 0;
}

.btn-aesthetic-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  background: linear-gradient(115deg, #2cc8d8 0%, #7654f8 50%, #f14965 100%);
  background-size: 200% 200%;
  color: var(--text-white);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 18px rgba(44, 200, 216, 0.35);
  transition: all var(--transition-fast);
  white-space: nowrap;
  animation: adGradientShift 4s ease infinite;
}

@keyframes adGradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.aesthetic-ad-card:hover .btn-aesthetic-cta {
  transform: scale(1.06);
  box-shadow: 0 6px 24px rgba(241, 73, 101, 0.5);
}

@media (max-width: 768px) {
  .aesthetic-ad-leaderboard, .aesthetic-ad-inarticle {
    flex-direction: column;
    text-align: center;
    padding: 18px 16px;
    gap: 14px;
  }
  .aesthetic-ad-content {
    text-align: center;
  }
  .aesthetic-ad-features {
    justify-content: center;
  }
}

/* ==========================================================================
   PRICING SECTION
   ========================================================================== */
.pricing-section {
  padding: 68px 0;
}

.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 36px auto 0;
}

.pricing-card {
  position: relative;
  background: var(--surface-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.pricing-card.featured {
  border: 2px solid var(--brand-purple);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}

.featured-pill {
  position: absolute;
  top: 14px;
  right: 18px;
  background: rgba(118, 84, 248, 0.12);
  color: var(--brand-purple);
  font-size: var(--text-xs);
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.pricing-card h3 {
  font-size: var(--text-lg);
  font-weight: 800;
  margin-bottom: 6px;
}

.pricing-card p {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.pricing-price {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--brand-navy);
  margin: 20px 0;
}

.pricing-price small {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
}

.pricing-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  flex: 1;
}

.pricing-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.pricing-features-list li span {
  color: var(--brand-green);
  font-weight: 800;
}

/* ==========================================================================
   SEO CONTENT & FAQ SECTION (MANDATORY FOR ADSENSE APPROVAL)
   ========================================================================== */
.seo-content-section {
  background: var(--surface-primary);
  border-block: 1px solid var(--border-light);
  padding: 68px 0;
}

.seo-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.seo-text-col h3 {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--brand-navy);
  margin-bottom: 12px;
}

.seo-text-col p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.faq-accordion {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-main);
  user-select: none;
}

.faq-icon {
  font-size: var(--text-lg);
  transition: transform var(--transition-fast);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 22px 18px;
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--brand-navy-deep);
  color: var(--text-muted);
  padding: 54px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 42px;
}

.footer-brand b {
  font-size: var(--text-xl);
  color: var(--text-white);
}

.footer-brand b span {
  color: var(--brand-blue);
}

.footer-about {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.7;
  margin: 14px 0 18px;
}

.footer-social-links {
  display: flex;
  gap: 10px;
}

.footer-social-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: grid;
  place-items: center;
  font-size: var(--text-xs);
  color: var(--text-white);
  transition: all var(--transition-fast);
}

.footer-social-btn:hover {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
}

.footer-col-title {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-list a {
  font-size: var(--text-xs);
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-links-list a:hover {
  color: var(--text-white);
  padding-left: 2px;
}

.newsletter-form {
  display: flex;
  background: #0f2443;
  border: 1px solid #283e60;
  border-radius: var(--radius-full);
  padding: 4px;
  margin-top: 12px;
}

.newsletter-input {
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-white);
  padding: 8px 14px;
  font-size: var(--text-xs);
  flex: 1;
  min-width: 0;
}

.newsletter-btn {
  border: none;
  background: var(--brand-gradient);
  color: var(--text-white);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.newsletter-btn:hover {
  transform: scale(1.05);
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.footer-legal-links {
  display: flex;
  gap: 18px;
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast-notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--brand-navy-deep);
  color: var(--text-white);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: var(--text-sm);
  font-weight: 600;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-normal);
}

.toast-notice.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1080px) {
  .popular-tools-grid { grid-template-columns: repeat(3, 1fr); }
  .categories-layout { grid-template-columns: 1fr; }
  .category-filter-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .tools-cards-matrix { grid-template-columns: repeat(2, 1fr); }
  .premium-banner-card { grid-column: span 2; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .mobile-menu-btn { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--surface-primary);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .popular-tools-grid { grid-template-columns: repeat(2, 1fr); }
  .tools-cards-matrix { grid-template-columns: 1fr; }
  .premium-banner-card { grid-column: span 1; flex-direction: column; align-items: flex-start; }
  .workflow-steps-row { grid-template-columns: 1fr; }
  .step-arrow-divider { display: none; }
  .stats-grid { grid-template-columns: 1fr; gap: 20px; }
  .stat-item { border-left: none; border-top: 1px solid rgba(255, 255, 255, 0.2); padding-left: 0; padding-top: 16px; }
  .pricing-cards-grid { grid-template-columns: 1fr; }
  .seo-content-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-bar { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .popular-tools-grid { grid-template-columns: 1fr; }
  .brand-text small { display: none; }
}

/* ==========================================================================
   HOMEPAGE TOP TOOLS SHOWCASE (iLovePDF Style)
   ========================================================================== */
.home-tools-hero {
  padding: 36px 0 16px;
  text-align: center;
}

.home-tools-hero h1 {
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand-navy);
  line-height: 1.22;
  margin-bottom: 12px;
}

.home-tools-hero .hero-subtitle {
  font-size: clamp(14px, 1.6vw, 16.5px);
  color: var(--text-muted);
  max-width: 820px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.tools-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 auto 24px;
  max-width: 1050px;
}

.tool-filter-pill {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-light);
  background: var(--surface-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.tool-filter-pill:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  transform: translateY(-1px);
}

.tool-filter-pill.active {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: var(--text-white);
  box-shadow: 0 4px 14px rgba(38, 120, 255, 0.28);
}

.tools-search-box {
  width: min(100%, 520px);
  margin: 0 auto 28px;
  position: relative;
}

.tools-search-box input {
  width: 100%;
  padding: 13px 20px 13px 44px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-light);
  background: var(--surface-primary);
  font-size: var(--text-sm);
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.tools-search-box input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(38, 120, 255, 0.15);
}

.tools-search-box .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.all-tools-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.tool-badge-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(38, 120, 255, 0.1);
  color: var(--brand-blue);
}

.tool-badge-pill.badge-popular {
  background: rgba(241, 73, 101, 0.1);
  color: #f14965;
}

.tool-badge-pill.badge-ai {
  background: rgba(118, 84, 248, 0.12);
  color: #7654f8;
}

