/* ============================================
   PDFWhiz.com — Design System & Global Styles
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;0,9..144,800;1,9..144,400;1,9..144,600;1,9..144,700&family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Premium Palette */
  --ink: #070D17;
  --ink-2: #0F1B2D;
  --ink-3: #1A2C47;
  --paper: #FAFAF8;
  --paper-dim: #F0EFE9;
  --paper-line: #E5E3DB;
  --brass: #D49B4B;
  --brass-bright: #EAA952;
  --teal: #428C7A;
  --teal-bright: #54A894;
  --muted-on-dark: #A3AFCA;
  --muted-on-light: #7E786B;
  --danger: #D64541;
  --success: #2ECC71;
  --white: #FFFFFF;
  
  /* Gradients */
  --grad-brass: linear-gradient(135deg, #EAA952 0%, #D49B4B 100%);
  --grad-teal: linear-gradient(135deg, #54A894 0%, #428C7A 100%);
  --grad-mesh: radial-gradient(at 0% 0%, rgba(212,155,75,0.15) 0px, transparent 50%),
               radial-gradient(at 100% 100%, rgba(66,140,122,0.15) 0px, transparent 50%);

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', 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;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Premium Shadows */
  --shadow-card: 0 10px 40px -10px rgba(15,27,45,0.08), 0 0 1px rgba(15,27,45,0.15);
  --shadow-card-hover: 0 24px 60px -15px rgba(15,27,45,0.15), 0 0 1px rgba(15,27,45,0.2), 0 0 0 4px rgba(212,155,75,0.05);
  --shadow-sm: 0 4px 12px rgba(15,27,45,0.05);
  --shadow-md: 0 12px 32px rgba(15,27,45,0.08);
  --shadow-lg: 0 24px 64px rgba(15,27,45,0.12);
  --glow-brass: 0 0 24px rgba(212,155,75,0.4);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 150ms var(--ease-out);
  --transition-base: 250ms var(--ease-out);
  --transition-slow: 400ms var(--ease-out);

  /* Layout */
  --nav-height: 72px;
  --max-width: 1200px;
  --max-width-narrow: 800px;
  --max-width-wide: 1400px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

ul, ol {
  list-style: none;
}

/* --- Focus States (Keyboard Accessibility) --- */
:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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

/* ============================================
   NAVIGATION
   ============================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 13, 23, 0.7);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  height: var(--nav-height);
  transition: all var(--transition-base);
}

.nav-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.nav-logo:hover {
  opacity: 0.85;
}

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.nav-logo .logo-accent {
  color: var(--brass);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brass);
  transition: width var(--transition-base);
}

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

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.6rem 1.25rem;
  background: var(--grad-brass);
  color: var(--ink) !important;
  font-family: var(--font-mono) !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.15);
  transition: all var(--transition-base);
  box-shadow: 0 4px 12px rgba(212,155,75,0.2);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-brass);
}

.nav-cta::after {
  display: none !important;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-fast);
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 860px) {
  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    background: rgba(15, 27, 45, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--space-3xl) var(--space-xl);
    gap: var(--space-lg);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    overflow-y: auto;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1rem;
    padding: var(--space-sm) 0;
  }

  .nav-cta {
    margin-top: var(--space-md);
    justify-content: center;
    width: 100%;
    padding: 0.85rem 1.5rem;
  }
}

/* ============================================
   HERO SECTIONS
   ============================================ */
.hero {
  position: relative;
  background: var(--ink);
  background-image: var(--grad-mesh);
  padding: var(--space-4xl) var(--space-xl);
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% -20%, rgba(212,155,75,0.15), transparent 70%);
  pointer-events: none;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: var(--space-lg);
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--brass);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: var(--space-lg);
  max-width: 720px;
}

.hero h1 em {
  font-style: italic;
  color: transparent;
  background: var(--grad-brass);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(212,155,75,0.3));
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted-on-dark);
  max-width: 560px;
  margin-bottom: var(--space-2xl);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-on-dark);
  letter-spacing: 0.02em;
}

.hero-trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--teal);
  flex-shrink: 0;
}

/* Hero animation — document stack */
.hero-animation {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
  height: 340px;
  z-index: 1;
  pointer-events: none;
}

.doc-page {
  position: absolute;
  width: 180px;
  height: 230px;
  background: var(--paper);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  transition: transform 1s var(--ease-out);
}

.doc-page::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  height: 8px;
  background: var(--paper-line);
  border-radius: 4px;
}

.doc-page::after {
  content: '';
  position: absolute;
  top: 36px;
  left: 20px;
  right: 40px;
  height: 6px;
  background: var(--paper-dim);
  border-radius: 3px;
}

.doc-page-1 {
  animation: docSlide1 3s var(--ease-out) infinite alternate;
  z-index: 3;
}

.doc-page-2 {
  animation: docSlide2 3s var(--ease-out) infinite alternate;
  z-index: 2;
}

.doc-page-3 {
  animation: docSlide3 3s var(--ease-out) infinite alternate;
  z-index: 1;
}

@keyframes docSlide1 {
  0% { transform: translate(0, 0) rotate(-6deg); }
  100% { transform: translate(70px, 55px) rotate(0deg); }
}

@keyframes docSlide2 {
  0% { transform: translate(140px, 0) rotate(5deg); }
  100% { transform: translate(70px, 55px) rotate(0deg); }
}

@keyframes docSlide3 {
  0% { transform: translate(70px, 110px) rotate(3deg); }
  100% { transform: translate(70px, 55px) rotate(0deg); }
}

.hero-seal {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  z-index: 4;
  opacity: 0;
  animation: sealAppear 3s var(--ease-out) infinite alternate;
}

@keyframes sealAppear {
  0%, 60% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@media (max-width: 960px) {
  .hero-animation {
    display: none;
  }
}

/* Tool page hero (smaller) */
.hero--tool {
  min-height: auto;
  padding: var(--space-3xl) var(--space-xl) var(--space-2xl);
}

.hero--tool h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: var(--grad-brass);
  color: var(--ink);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.2);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: skewX(-20deg);
  transition: 0s;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--glow-brass);
}

.btn-primary:hover::after {
  left: 150%;
  transition: 0.6s ease-in-out;
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.25);
}

.btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.06);
}

.btn-teal {
  background: var(--teal);
  color: var(--white);
}

.btn-teal:hover {
  background: var(--teal-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(62,124,107,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--paper-line);
}

.btn-outline:hover {
  border-color: var(--brass);
  color: var(--brass);
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.95rem 2.25rem;
  font-size: 1.05rem;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ============================================
   SECTIONS & LAYOUT
   ============================================ */
.section {
  padding: var(--space-4xl) var(--space-xl);
}

.section--dark {
  background: var(--ink);
  color: var(--white);
}

.section--paper {
  background: var(--paper);
}

.section--dim {
  background: var(--paper-dim);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.container--narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
}

.container--wide {
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: var(--space-md);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.section-title em {
  font-style: italic;
  color: var(--brass);
}

.section-subtitle {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted-on-light);
  max-width: 600px;
}

.section--dark .section-subtitle {
  color: var(--muted-on-dark);
}

/* ============================================
   TOOL GRID (Homepage)
   ============================================ */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.tool-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 27, 45, 0.06);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, rgba(212,155,75,0.4), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.tool-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-card-hover);
  background: linear-gradient(to bottom, #ffffff, var(--paper));
}

.tool-card:hover::before {
  opacity: 1;
}

.tool-card-category {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  width: fit-content;
  margin-bottom: var(--space-md);
}

.tool-card-category--pdf {
  background: rgba(201,138,59,0.12);
  color: var(--brass);
}

.tool-card-category--image {
  background: rgba(62,124,107,0.12);
  color: var(--teal);
}

.tool-card-category--text {
  background: rgba(15,27,45,0.08);
  color: var(--ink-3);
}

.tool-card-category--utility {
  background: rgba(78,150,131,0.12);
  color: var(--teal-bright);
}

.tool-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  flex-shrink: 0;
}

.tool-card-icon--pdf { background: rgba(201,138,59,0.1); color: var(--brass); }
.tool-card-icon--image { background: rgba(62,124,107,0.1); color: var(--teal); }
.tool-card-icon--text { background: rgba(15,27,45,0.06); color: var(--ink-2); }
.tool-card-icon--utility { background: rgba(78,150,131,0.1); color: var(--teal-bright); }

.tool-card-icon svg {
  width: 24px;
  height: 24px;
}

.tool-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.tool-card p {
  font-size: 0.9rem;
  color: var(--muted-on-light);
  line-height: 1.6;
  flex: 1;
}

.tool-card-arrow {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brass);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: gap var(--transition-fast);
}

.tool-card:hover .tool-card-arrow {
  gap: var(--space-sm);
}

.tool-card-arrow svg {
  width: 16px;
  height: 16px;
}

/* Category filter tabs */
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.category-tab {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--paper-line);
  background: transparent;
  color: var(--muted-on-light);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.category-tab:hover {
  border-color: var(--brass);
  color: var(--brass);
}

.category-tab.active {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--ink);
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-2xl);
  margin-top: var(--space-2xl);
}

.step-card {
  text-align: center;
  padding: var(--space-xl);
}

.step-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--brass);
  opacity: 0.2;
  margin-bottom: var(--space-md);
  line-height: 1;
}

.step-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: rgba(201,138,59,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}

.step-icon svg {
  width: 28px;
  height: 28px;
  color: var(--brass);
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.step-card p {
  font-size: 0.9rem;
  color: var(--muted-on-light);
  line-height: 1.6;
}

/* ============================================
   FEATURES / TRUST SECTION
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-2xl);
  margin-top: var(--space-2xl);
}

.feature-card {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(201,138,59,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section--dark .feature-icon {
  background: rgba(201,138,59,0.15);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--brass);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--muted-on-light);
  line-height: 1.6;
}

.section--dark .feature-card p {
  color: var(--muted-on-dark);
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumb {
  padding: var(--space-md) var(--space-xl);
  background: var(--ink-2);
}

.breadcrumb-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}

.breadcrumb a {
  color: var(--muted-on-dark);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--brass);
}

.breadcrumb-sep {
  color: var(--muted-on-dark);
  opacity: 0.4;
}

.breadcrumb-current {
  color: var(--white);
}

/* ============================================
   TOOL PAGE — DROP ZONE & WORKSPACE
   ============================================ */
.tool-workspace {
  padding: var(--space-3xl) var(--space-xl);
  background: var(--paper);
}

.tool-workspace-inner {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
}

.drop-zone {
  border: 2px dashed var(--paper-line);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl) var(--space-xl);
  text-align: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--white);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 12px rgba(0,0,0,0.02);
}

.drop-zone:hover,
.drop-zone.drag-over {
  border-color: var(--brass);
  background: rgba(212,155,75,0.04);
  box-shadow: var(--glow-brass), inset 0 2px 12px rgba(212,155,75,0.05);
}

.drop-zone.drag-over {
  transform: scale(1.02);
  border-style: solid;
  border-width: 3px;
}

.drop-zone::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 150%; height: 150%;
  background: radial-gradient(circle, rgba(212,155,75,0.08) 0%, transparent 60%);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.drop-zone.drag-over::after {
  transform: translate(-50%, -50%) scale(1);
}

.drop-zone-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  border-radius: var(--radius-lg);
  background: rgba(201,138,59,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.drop-zone-icon svg {
  width: 28px;
  height: 28px;
  color: var(--brass);
}

.drop-zone h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.drop-zone p {
  font-size: 0.9rem;
  color: var(--muted-on-light);
}

.drop-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* File list */
.file-list {
  margin-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.file-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--white);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-md);
}

.file-item-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(201,138,59,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.file-item-icon svg {
  width: 18px;
  height: 18px;
  color: var(--brass);
}

.file-item-info {
  flex: 1;
  min-width: 0;
}

.file-item-name {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-item-size {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted-on-light);
}

.file-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted-on-light);
  padding: var(--space-xs);
  transition: color var(--transition-fast);
}

.file-item-remove:hover {
  color: var(--danger);
}

/* Options panel */
.tool-options {
  margin-top: var(--space-xl);
  padding: var(--space-xl);
  background: var(--white);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-md);
}

.tool-options h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

.option-group {
  margin-bottom: var(--space-lg);
}

.option-group:last-child {
  margin-bottom: 0;
}

.option-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-on-light);
  margin-bottom: var(--space-sm);
}

/* Form controls */
.input-field {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 1.5px solid var(--paper-line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-size: 0.9rem;
  transition: border-color var(--transition-fast);
}

.input-field:focus {
  outline: none;
  border-color: var(--brass);
}

.select-field {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 1.5px solid var(--paper-line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-size: 0.9rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236E6759' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  transition: border-color var(--transition-fast);
}

.select-field:focus {
  outline: none;
  border-color: var(--brass);
}

textarea.input-field {
  resize: vertical;
  min-height: 120px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
}

.range-field {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--paper-line);
  border-radius: 3px;
  outline: none;
}

.range-field::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brass);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(201,138,59,0.3);
}

.range-field::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brass);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(201,138,59,0.3);
}

.checkbox-group, .radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.checkbox-label, .radio-label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9rem;
  cursor: pointer;
}

.checkbox-label input, .radio-label input {
  accent-color: var(--brass);
  width: 18px;
  height: 18px;
}

/* Action button area */
.tool-actions {
  margin-top: var(--space-xl);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
}

/* Progress bar */
.progress-wrapper {
  margin-top: var(--space-lg);
  display: none;
}

.progress-wrapper.active {
  display: block;
}

.progress-bar-outer {
  width: 100%;
  height: 8px;
  background: var(--paper-dim);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, var(--brass), var(--brass-bright));
  border-radius: 4px;
  width: 0%;
  transition: width var(--transition-base);
}

.progress-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted-on-light);
  margin-top: var(--space-sm);
  text-align: center;
}

/* Output area */
.output-area {
  margin-top: var(--space-xl);
  padding: var(--space-xl);
  background: var(--white);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-md);
  display: none;
}

.output-area.active {
  display: block;
}

.output-area h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

/* Preview grid for pages/images */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.preview-item {
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: box-shadow var(--transition-fast);
}

.preview-item:hover {
  box-shadow: var(--shadow-md);
}

.preview-item img, .preview-item canvas {
  width: 100%;
  height: auto;
  display: block;
}

.preview-item-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-align: center;
  padding: var(--space-xs) var(--space-sm);
  background: var(--paper-dim);
  color: var(--muted-on-light);
}

.preview-item.selected {
  border-color: var(--brass);
  box-shadow: 0 0 0 2px var(--brass);
}

.preview-item .page-checkbox {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
}

/* ============================================
   TOOL CONTENT SECTION (supporting copy, FAQ)
   ============================================ */
.tool-content {
  padding: var(--space-3xl) var(--space-xl);
  background: var(--paper-dim);
}

.tool-content-inner {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
}

.tool-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  line-height: 1.3;
}

.tool-content h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.tool-content p {
  margin-bottom: var(--space-md);
  line-height: 1.75;
  color: var(--muted-on-light);
}

.tool-content ol, .tool-content ul {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-xl);
}

.tool-content ol {
  list-style: decimal;
}

.tool-content ul {
  list-style: disc;
}

.tool-content li {
  margin-bottom: var(--space-sm);
  line-height: 1.7;
  color: var(--muted-on-light);
}

/* FAQ accordion */
.faq-list {
  margin-top: var(--space-xl);
}

.faq-item {
  border-bottom: 1px solid var(--paper-line);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--brass);
}

.faq-question svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--muted-on-light);
  transition: transform var(--transition-base);
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq-answer-inner {
  padding-bottom: var(--space-lg);
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--muted-on-light);
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

/* Related tools */
.related-tools {
  padding: var(--space-3xl) var(--space-xl);
  background: var(--paper);
}

.related-tools-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.related-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--ink);
  color: var(--white);
  padding: var(--space-4xl) var(--space-xl) var(--space-xl);
}

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

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-md);
}

.footer-logo .logo-accent {
  color: var(--brass);
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--muted-on-dark);
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  margin-bottom: var(--space-lg);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-col a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--brass);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--space-xl);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.footer-copyright {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted-on-dark);
}

.footer-legal {
  display: flex;
  gap: var(--space-lg);
}

.footer-legal a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted-on-dark);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-legal a:hover {
  color: var(--white);
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer-brand {
    max-width: 100%;
  }

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

/* ============================================
   CONTENT PAGES (About, Privacy, etc.)
   ============================================ */
.page-content {
  padding: var(--space-3xl) var(--space-xl);
}

.page-content-inner {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
}

.page-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  color: var(--ink);
}

.page-content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  color: var(--ink);
}

.page-content p {
  margin-bottom: var(--space-md);
  line-height: 1.8;
  color: var(--muted-on-light);
}

.page-content ul, .page-content ol {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-xl);
}

.page-content ul {
  list-style: disc;
}

.page-content ol {
  list-style: decimal;
}

.page-content li {
  margin-bottom: var(--space-sm);
  line-height: 1.7;
  color: var(--muted-on-light);
}

.page-content a {
  color: var(--brass);
  text-decoration: underline;
  text-decoration-color: rgba(201,138,59,0.3);
  transition: text-decoration-color var(--transition-fast);
}

.page-content a:hover {
  text-decoration-color: var(--brass);
}

.page-content strong {
  color: var(--ink);
  font-weight: 600;
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-on-light);
}

/* ============================================
   SIGNATURE PAD (Sign PDF)
   ============================================ */
.signature-pad {
  border: 2px solid var(--paper-line);
  border-radius: var(--radius-md);
  background: var(--white);
  cursor: crosshair;
  touch-action: none;
}

/* ============================================
   COLOR SWATCHES (Color Palette Generator)
   ============================================ */
.color-swatch-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 200px;
}

.color-swatch {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: var(--space-md);
  cursor: pointer;
  transition: transform var(--transition-fast);
  position: relative;
}

.color-swatch:hover {
  transform: scaleY(1.05);
  transform-origin: bottom;
  z-index: 2;
}

.color-swatch-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.25);
  color: var(--white);
}

/* ============================================
   STAT DISPLAY (Word Counter etc.)
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-md);
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--brass);
  line-height: 1.2;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-on-light);
  margin-top: var(--space-xs);
}

/* ============================================
   JSON TREE VIEW
   ============================================ */
.json-tree {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.6;
  padding: var(--space-lg);
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-md);
  overflow-x: auto;
  max-height: 500px;
  overflow-y: auto;
}

.json-key { color: var(--brass); }
.json-string { color: var(--teal-bright); }
.json-number { color: #E0A254; }
.json-boolean { color: #C98A3B; }
.json-null { color: var(--muted-on-dark); }

/* ============================================
   UNIT CONVERTER
   ============================================ */
.converter-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-lg);
  align-items: end;
}

.converter-swap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--paper-line);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: 0.3rem;
}

.converter-swap:hover {
  border-color: var(--brass);
  color: var(--brass);
  transform: rotate(180deg);
}

@media (max-width: 600px) {
  .converter-grid {
    grid-template-columns: 1fr;
  }
  .converter-swap {
    justify-self: center;
    transform: rotate(90deg);
  }
  .converter-swap:hover {
    transform: rotate(270deg);
  }
}

/* ============================================
   NOTIFICATION / STATUS
   ============================================ */
.status-msg {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.status-msg.active {
  display: flex;
}

.status-msg--success {
  background: rgba(39,174,96,0.1);
  color: var(--success);
  border: 1px solid rgba(39,174,96,0.2);
}

.status-msg--error {
  background: rgba(192,57,43,0.1);
  color: var(--danger);
  border: 1px solid rgba(192,57,43,0.2);
}

.status-msg--info {
  background: rgba(62,124,107,0.1);
  color: var(--teal);
  border: 1px solid rgba(62,124,107,0.2);
}

/* ============================================
   SORTABLE ITEMS (reorder pages)
   ============================================ */
.sortable-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: var(--space-md);
}

.sortable-item {
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: grab;
  user-select: none;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
  background: var(--white);
}

.sortable-item:active {
  cursor: grabbing;
}

.sortable-item.dragging {
  opacity: 0.5;
  transform: scale(0.95);
}

.sortable-item.drag-over {
  box-shadow: 0 0 0 2px var(--brass);
}

/* ============================================
   TABS
   ============================================ */
.tab-container {
  margin-top: var(--space-lg);
}

.tab-buttons {
  display: flex;
  border-bottom: 2px solid var(--paper-line);
  gap: 0;
}

.tab-btn {
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--muted-on-light);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  color: var(--ink);
}

.tab-btn.active {
  color: var(--brass);
  border-bottom-color: var(--brass);
}

.tab-panel {
  display: none;
  padding: var(--space-xl) 0;
}

.tab-panel.active {
  display: block;
}

/* ============================================
   COPY BUTTON
   ============================================ */
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.3rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--paper-dim);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--muted-on-light);
  transition: all var(--transition-fast);
}

.copy-btn:hover {
  border-color: var(--brass);
  color: var(--brass);
}

.copy-btn.copied {
  background: rgba(39,174,96,0.1);
  border-color: var(--success);
  color: var(--success);
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
.hide-mobile {
  display: block;
}

.show-mobile {
  display: none;
}

@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
  .show-mobile {
    display: block !important;
  }

  .section {
    padding: var(--space-2xl) var(--space-md);
  }

  .hero {
    padding: var(--space-2xl) var(--space-md);
    min-height: auto;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 7vw, 2.6rem);
  }

  .tool-workspace {
    padding: var(--space-xl) var(--space-md);
  }

  .tool-content {
    padding: var(--space-2xl) var(--space-md);
  }

  .related-tools {
    padding: var(--space-2xl) var(--space-md);
  }

  .drop-zone {
    padding: var(--space-2xl) var(--space-md);
  }

  .preview-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }

  .color-swatch-grid {
    height: 150px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}
