/* ══════════════════════════════════════════════
   PDFMagic — Unified Design System
   Cartoon Brutalist + Modern Indian Flavor
   ══════════════════════════════════════════════ */

/* ─── FONTS ─── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&family=Fredoka+One&display=swap');

/* ─── CSS VARIABLES ─── */
:root {
  --red: #e8273c;
  --red-dark: #c41e32;
  --red-light: #ff6b7f;
  --orange: #f97316;
  --amber: #f59e0b;
  --green: #10b981;
  --emerald: #059669;
  --teal: #14b8a6;
  --cyan: #06b6d4;
  --blue: #3b82f6;
  --indigo: #6366f1;
  --purple: #8b5cf6;
  --pink: #ec4899;

  --bg: #faf9ff;
  --bg-alt: #f0edff;
  --white: #ffffff;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --border-dark: #1f2937;

  --shadow-sm: 3px 3px 0px rgba(0, 0, 0, 0.12);
  --shadow: 5px 5px 0px rgba(0, 0, 0, 0.15);
  --shadow-lg: 8px 8px 0px rgba(0, 0, 0, 0.18);
  --shadow-xl: 10px 10px 0px rgba(0, 0, 0, 0.2);
  --shadow-red: 6px 6px 0px rgba(232, 39, 60, 0.3);

  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --bw: 3px;

  --dm-transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* ─── DARK MODE VARIABLES ─── */
[data-theme="dark"] {
  --bg: #0d0d1a;
  --bg-alt: #161628;
  --white: #1a1a30;
  --text: #e8e8f5;
  --text-muted: #9ca3af;
  --border: #2d2d4a;
  --border-dark: #e8e8f5;
  --shadow-sm: 3px 3px 0px rgba(0, 0, 0, 0.4);
  --shadow: 5px 5px 0px rgba(0, 0, 0, 0.5);
  --shadow-lg: 8px 8px 0px rgba(0, 0, 0, 0.55);
  --shadow-xl: 10px 10px 0px rgba(0, 0, 0, 0.6);
  --shadow-red: 6px 6px 0px rgba(232, 39, 60, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  transition: var(--dm-transition);
}

img, svg { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-alt); border-radius: 5px; }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 5px; border: 2px solid var(--bg-alt); }
::-webkit-scrollbar-thumb:hover { background: var(--red-dark); }

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4, .display-font {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.25; }
h3 { font-size: 1.15rem; line-height: 1.35; }

.gradient-text {
  background: linear-gradient(135deg, var(--red) 0%, var(--orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border: var(--bw) solid var(--text);
  border-radius: var(--radius);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  background: var(--white);
  color: var(--text);
  box-shadow: var(--shadow);
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lg);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: var(--red);
  color: white;
  border-color: var(--red-dark);
  box-shadow: var(--shadow-red);
}

.btn-primary:hover {
  background: var(--red-dark);
  box-shadow: 8px 8px 0px rgba(232, 39, 60, 0.4);
}

.btn-white {
  background: white;
  color: var(--red);
  border-color: var(--text);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.82rem;
  border-radius: 8px;
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
}

/* ─── DARK MODE TOGGLE ─── */
.dark-toggle {
  width: 44px;
  height: 44px;
  border: var(--bw) solid var(--text);
  border-radius: var(--radius);
  background: var(--bg-alt);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.dark-toggle:hover {
  transform: rotate(20deg) scale(1.1);
  background: var(--red);
  color: white;
  border-color: var(--red-dark);
}

/* ─── NAVBAR ─── */
.nav {
  background: var(--white);
  border-bottom: var(--bw) solid var(--text);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 4px 0 rgba(0,0,0,0.08);
  transition: var(--dm-transition);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text);
  transition: transform 0.2s ease;
}

.nav-brand:hover { transform: scale(1.04); }

.nav-brand-icon {
  width: 40px;
  height: 40px;
  background: var(--red);
  border: var(--bw) solid var(--text);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-sm);
}

.nav-brand span { color: var(--red); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: 8px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.15s ease;
  border: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--red);
  background: #fff0f2;
  border-color: var(--red);
  box-shadow: var(--shadow-sm);
}

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--text);
  border-radius: 8px;
  font-size: 1.4rem;
  width: 40px;
  height: 40px;
  cursor: pointer;
  color: var(--text);
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

/* ─── HERO ─── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 24px 64px;
  text-align: center;
  background: linear-gradient(180deg, #fff0f2 0%, #ffffff 40%, var(--bg-alt) 100%);
  border-bottom: var(--bw) solid var(--text);
  transition: var(--dm-transition);
}

[data-theme="dark"] .hero {
  background: linear-gradient(180deg, #1a0a10 0%, #0d0d1a 40%, #161628 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -60px;
  width: 350px;
  height: 350px;
  background: var(--red);
  border-radius: 50%;
  opacity: 0.07;
  animation: heroFloat 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -40px;
  width: 250px;
  height: 250px;
  background: var(--purple);
  border-radius: 50%;
  opacity: 0.06;
  animation: heroFloat 6s ease-in-out infinite reverse;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(25px) rotate(3deg); }
}

/* ─── HERO FLOATING PDF DOCS ─── */
.hero-float-doc {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  padding: 10px;
  background: var(--white);
  border: var(--bw) solid var(--text);
  border-radius: 10px;
  box-shadow: var(--shadow);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.hero-float-doc::before {
  content: '';
  position: absolute;
  top: -1px;
  right: -1px;
  width: 14px;
  height: 14px;
  background: var(--white);
  border-left: var(--bw) solid var(--text);
  border-bottom: var(--bw) solid var(--text);
  border-radius: 0 0 0 6px;
}

.hero-float-doc .doc-icon { font-size: 1.6rem; }
.hero-float-doc .doc-line {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
}
.hero-float-doc .doc-line.accent { background: var(--red); width: 60%; }
.hero-float-doc .doc-line.accent2 { background: var(--purple); width: 80%; }
.hero-float-doc .doc-line.accent3 { background: var(--orange); width: 50%; }

.hero-float-doc-1 {
  width: 90px;
  top: 12%;
  left: 6%;
  animation: floatDoc1 7s ease-in-out infinite;
  transform: rotate(-8deg);
}

.hero-float-doc-2 {
  width: 80px;
  top: 20%;
  right: 7%;
  animation: floatDoc2 9s ease-in-out infinite;
  transform: rotate(6deg);
}

.hero-float-doc-3 {
  width: 75px;
  bottom: 14%;
  left: 12%;
  animation: floatDoc3 8s ease-in-out infinite;
  transform: rotate(4deg);
}

.hero-float-doc-4 {
  width: 85px;
  bottom: 18%;
  right: 9%;
  animation: floatDoc1 6s ease-in-out infinite reverse;
  transform: rotate(-5deg);
}

@keyframes floatDoc1 {
  0%, 100% { transform: rotate(-8deg) translateY(0px); }
  50% { transform: rotate(-6deg) translateY(-18px); }
}
@keyframes floatDoc2 {
  0%, 100% { transform: rotate(6deg) translateY(0px); }
  50% { transform: rotate(8deg) translateY(-14px); }
}
@keyframes floatDoc3 {
  0%, 100% { transform: rotate(4deg) translateY(0px); }
  50% { transform: rotate(2deg) translateY(-20px); }
}

@media (max-width: 900px) {
  .hero-float-doc-1, .hero-float-doc-3 { left: 1%; }
  .hero-float-doc-2, .hero-float-doc-4 { right: 1%; }
}
@media (max-width: 600px) {
  .hero-float-doc { display: none; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: var(--bw) solid var(--text);
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 28px;
  box-shadow: var(--shadow);
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

.hero-title {
  max-width: 720px;
  margin: 0 auto 20px;
  animation: slideUpIn 0.6s ease 0.1s both;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 36px;
  animation: slideUpIn 0.6s ease 0.2s both;
}

@keyframes slideUpIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── TRUST BADGES ─── */
.trust-bar {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  animation: slideUpIn 0.6s ease 0.3s both;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all 0.2s;
  padding: 6px 16px;
  border-radius: 8px;
  border: 2px solid transparent;
}

.trust-item:hover {
  color: var(--red);
  border-color: var(--red);
  background: #fff8f9;
  transform: translateY(-2px);
}

.trust-item-icon {
  font-size: 1.2rem;
}

/* ─── STATS ─── */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
  animation: slideUpIn 0.6s ease 0.4s both;
}

.stat-box {
  text-align: center;
  background: var(--white);
  border: var(--bw) solid var(--text);
  border-radius: var(--radius-lg);
  padding: 20px 28px;
  box-shadow: var(--shadow);
  transition: all 0.2s;
}

.stat-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--red) 0%, var(--orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
}

/* ─── SECTIONS ─── */
.section {
  padding: 72px 24px;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

.section-header h2 {
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

/* ─── CARDS ─── */
.card {
  background: var(--white);
  border: var(--bw) solid var(--text);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: all 0.15s ease;
}

.card:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 52px;
  height: 52px;
  border: var(--bw) solid var(--text);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.card-accent-top {
  position: relative;
  overflow: hidden;
}

.card-accent-top::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--card-accent, var(--red));
}

/* ─── TOOLS GRID ─── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}

.tool-card {
  background: var(--white);
  border: var(--bw) solid var(--text);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow);
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  position: relative;
}

.tool-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--tool-accent, var(--red));
}

.tool-card:active {
  transform: translate(1px, 1px);
  box-shadow: var(--shadow-sm);
}

.tool-card-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2px solid var(--text);
  background: var(--tool-badge-bg, #fff0f2);
  color: var(--tool-accent, var(--red));
}

.tool-card-icon {
  width: 46px;
  height: 46px;
  border: var(--bw) solid var(--text);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: var(--tool-bg, #fff0f2);
  box-shadow: var(--shadow-sm);
}

.tool-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
}

.tool-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}

.tool-card-arrow {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--tool-accent, var(--red));
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.15s ease;
}

.tool-card:hover .tool-card-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ─── FILTER TABS ─── */
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
}

.tab-btn {
  padding: 10px 22px;
  border-radius: 100px;
  border: var(--bw) solid var(--text);
  background: var(--white);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  box-shadow: var(--shadow-sm);
}

.tab-btn:hover {
  background: #fff0f2;
  color: var(--red);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.tab-btn.active {
  background: var(--red);
  color: white;
  border-color: var(--red-dark);
  box-shadow: var(--shadow-red);
}

/* ─── HOW IT WORKS ─── */
.steps-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  position: relative;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--red);
  color: white;
  border: var(--bw) solid var(--text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 20px;
  box-shadow: var(--shadow);
  position: relative;
}

.step-number::after {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border: 2px dashed var(--red);
  border-radius: 50%;
  opacity: 0.3;
}

.step-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ─── SEARCH ─── */
.search-box {
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 15px 50px 15px 20px;
  border: var(--bw) solid var(--text);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.search-input::placeholder { color: #adb5bd; }

.search-icon-pos {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--text-muted);
  pointer-events: none;
}

/* ─── FEATURES GRID ─── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border: var(--bw) solid var(--text);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: all 0.15s ease;
}

.feature-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-lg);
}

.feature-icon-big {
  width: 56px;
  height: 56px;
  border: var(--bw) solid var(--text);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* ─── CTA BANNER ─── */
.cta-banner {
  background: var(--red);
  border-top: var(--bw) solid var(--text);
  border-bottom: var(--bw) solid var(--text);
  padding: 64px 24px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255,255,255,0.03) 10px,
    rgba(255,255,255,0.03) 20px
  );
}

.cta-banner h2 {
  color: white;
  margin-bottom: 16px;
  position: relative;
}

.cta-banner p {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 480px;
  margin: 0 auto 32px;
  position: relative;
}

.cta-banner .btn {
  position: relative;
  background: white;
  color: var(--red);
  border-color: var(--text);
}

/* ─── BLOG CARDS ─── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.blog-card {
  background: var(--white);
  border: var(--bw) solid var(--text);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.15s ease;
}

.blog-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-lg);
}

.blog-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--red), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  border-bottom: var(--bw) solid var(--text);
}

.blog-card-body {
  padding: 24px;
}

.blog-tag {
  display: inline-block;
  background: #fff0f2;
  border: 2px solid var(--text);
  color: var(--red);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.blog-card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.blog-card-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ─── FAQ ─── */
.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
  background: var(--white);
  border: var(--bw) solid var(--text);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}

.faq-item:hover { border-color: var(--red); }

.faq-q {
  padding: 20px 24px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  user-select: none;
}

.faq-q:hover { color: var(--red); }

.faq-arrow {
  font-size: 1.3rem;
  color: var(--red);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-arrow { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: all 0.35s ease;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.faq-item.open .faq-a {
  max-height: 300px;
  padding: 0 24px 20px;
}

/* ─── TOOL PAGE LAYOUT ─── */
.tool-hero {
  text-align: center;
  padding: 48px 24px 32px;
}

.tool-container {
  max-width: 860px;
  margin: 0 auto;
  background: var(--white);
  border: var(--bw) solid var(--text);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.upload-zone {
  border: 3px dashed var(--border);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--bg-alt);
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--red);
  background: #fff0f2;
  box-shadow: var(--shadow-sm);
}

.upload-icon-large {
  font-size: 4rem;
  margin-bottom: 16px;
}

/* ─── BREADCRUMBS ─── */
.breadcrumbs {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px;
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--text-muted);
  transition: color 0.15s;
}

.breadcrumbs a:hover { color: var(--red); }

.breadcrumbs .sep {
  color: #ccc;
  user-select: none;
}

/* ─── TOOL PAGE RELATED ─── */
.related-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.related-tool {
  background: var(--white);
  border: var(--bw) solid var(--text);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
  text-align: center;
}

.related-tool:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow);
  border-color: var(--red);
}

.related-tool-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.related-tool h3 { font-size: 0.9rem; }
.related-tool p { font-size: 0.78rem; color: var(--text-muted); margin-top: 6px; }

/* ─── MODAL ─── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.modal-overlay.active { display: flex; }

.modal-box {
  background: var(--white);
  border: var(--bw) solid var(--text);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 540px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  animation: popIn 0.3s ease;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: var(--border);
  border: 2px solid var(--text);
  border-radius: 6px;
  overflow: hidden;
  margin: 24px 0;
}

.progress-fill {
  height: 100%;
  background: var(--red);
  width: 0%;
  transition: width 0.4s ease;
  border-radius: 4px;
}

/* ─── FOOTER ─── */
.footer {
  background: #0f0f1a;
  color: #8b8b9e;
  border-top: var(--bw) solid var(--text);
  padding: 56px 24px 28px;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand h3 {
  font-family: 'Space Grotesk', sans-serif;
  color: white;
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.footer-brand h3 span { color: var(--red); }

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.7;
  margin: 14px 0 20px;
  color: #8b8b9e;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  transition: all 0.15s;
}

.footer-social a:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-2px);
}

.footer-col h4 {
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}

.footer-col li { margin-bottom: 9px; }

.footer-col a {
  color: #8b8b9e;
  font-size: 0.82rem;
  transition: color 0.15s;
}

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

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.8rem;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: #8b8b9e;
  transition: color 0.15s;
}

.footer-bottom-links a:hover { color: white; }

/* ─── PRICING PAGE ─── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  justify-content: center;
}

.pricing-card {
  background: var(--white);
  border: var(--bw) solid var(--text);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.15s ease;
}

.pricing-card.featured {
  border-color: var(--red);
  box-shadow: var(--shadow-red);
  transform: scale(1.03);
}

.pricing-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured:hover {
  transform: scale(1.03) translate(-3px, -3px);
  box-shadow: 10px 10px 0px rgba(232,39,60,0.4);
}

.price-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--red);
  margin: 16px 0 8px;
}

.price-tag small { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }

.pricing-features {
  list-style: none;
  margin: 28px 0;
  text-align: left;
}

.pricing-features li {
  padding: 11px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li::before {
  content: '✓';
  color: var(--green);
  font-weight: 800;
  font-size: 1rem;
}

/* ─── CONTACT PAGE ─── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.contact-card {
  background: var(--white);
  border: var(--bw) solid var(--text);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all 0.15s ease;
}

.contact-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lg);
}

.contact-card-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.contact-card h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-card a { color: var(--red); font-weight: 600; }
.contact-card a:hover { text-decoration: underline; }

/* ─── ABOUT PAGE ─── */
.about-hero {
  text-align: center;
  padding: 60px 24px 40px;
  background: linear-gradient(180deg, #fff0f2, var(--bg));
  border-bottom: var(--bw) solid var(--text);
}

/* ─── PAGE TEMPLATE ─── */
.page-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.page-content h2 {
  margin: 40px 0 16px;
}

.page-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.8;
}

.page-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 24px;
}

.page-content ul li {
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.7;
}

/* ─── TESTIMONIALS ─── */
.testimonials-section {
  background: var(--bg-alt);
  border-top: var(--bw) solid var(--text);
  border-bottom: var(--bw) solid var(--text);
  overflow: hidden;
}

.rating-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.rating-stars {
  color: #f59e0b;
  font-size: 1.4rem;
  letter-spacing: 2px;
}

.rating-score {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
}

.rating-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.testimonials-track-wrap {
  overflow: hidden;
  position: relative;
  padding: 8px 0;
}

.testimonials-track-wrap::before,
.testimonials-track-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.testimonials-track-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-alt), transparent);
}

.testimonials-track-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-alt), transparent);
}

.testimonials-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marqueeLeft 35s linear infinite;
}

.testimonials-track-reverse {
  animation: marqueeRight 40s linear infinite;
}

.testimonials-track:hover,
.testimonials-track-reverse:hover {
  animation-play-state: paused;
}

@keyframes marqueeLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marqueeRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.testi-card {
  background: var(--white);
  border: var(--bw) solid var(--text);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 320px;
  flex-shrink: 0;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
}

.testi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testi-stars {
  color: #f59e0b;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.testi-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 18px;
  flex: 1;
  font-style: italic;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: var(--bw) solid var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
  color: white;
  flex-shrink: 0;
  font-family: 'Space Grotesk', sans-serif;
  box-shadow: var(--shadow-sm);
}

.testi-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text);
}

.testi-role {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

[data-theme="dark"] .testi-card {
  background: var(--white);
  border-color: #2d2d4a;
}

[data-theme="dark"] .testimonials-track-wrap::before {
  background: linear-gradient(to right, var(--bg-alt), transparent);
}

[data-theme="dark"] .testimonials-track-wrap::after {
  background: linear-gradient(to left, var(--bg-alt), transparent);
}

/* ─── FILE PREVIEW ─── */
.file-preview-panel {
  margin-top: 20px;
  background: var(--bg-alt);
  border: var(--bw) solid var(--text);
  border-radius: var(--radius-lg);
  overflow: hidden;
  animation: slideUpIn 0.3s ease;
}

.file-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--white);
  border-bottom: 2px solid var(--text);
}

.file-preview-header h4 {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.file-count-badge {
  background: var(--red);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 20px;
  font-family: 'Space Grotesk', sans-serif;
}

.file-preview-list {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
}

.file-preview-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  transition: all 0.15s ease;
}

.file-preview-item:hover {
  border-color: var(--red);
  transform: translateX(3px);
}

.file-preview-thumb {
  width: 42px;
  height: 48px;
  border-radius: 6px;
  border: 2px solid var(--border);
  object-fit: cover;
  flex-shrink: 0;
}

.file-preview-icon {
  width: 42px;
  height: 48px;
  border-radius: 6px;
  border: 2px solid var(--text);
  background: #fff0f2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.file-preview-icon::after {
  content: '';
  position: absolute;
  top: -1px;
  right: -1px;
  width: 10px;
  height: 10px;
  background: var(--white);
  border-left: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  border-radius: 0 0 0 4px;
}

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

.file-preview-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-preview-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 3px;
  display: flex;
  gap: 10px;
}

.file-preview-size {
  color: var(--red);
  font-weight: 600;
}

.file-remove-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.file-remove-btn:hover {
  border-color: var(--red);
  color: var(--red);
  background: #fff0f2;
  transform: rotate(90deg);
}

.file-preview-actions {
  padding: 12px 16px;
  background: var(--white);
  border-top: 2px solid var(--text);
  display: flex;
  gap: 10px;
  align-items: center;
}

.file-preview-total {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  flex: 1;
}

[data-theme="dark"] .file-preview-panel {
  background: #161628;
  border-color: #2d2d4a;
}

[data-theme="dark"] .file-preview-header {
  background: #1a1a30;
  border-color: #2d2d4a;
}

[data-theme="dark"] .file-preview-item {
  background: #1a1a30;
  border-color: #2d2d4a;
}

[data-theme="dark"] .file-preview-actions {
  background: #1a1a30;
  border-color: #2d2d4a;
}

[data-theme="dark"] .file-preview-icon {
  background: #2a0f1a;
  border-color: #3d3d5a;
}

/* ─── HIDDEN UTILITY ─── */

.hidden { display: none !important; }

/* ─── ANIMATIONS ─── */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.5s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.bounce-anim { animation: bounce 0.5s ease; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .nav-links { 
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: var(--bw) solid var(--text);
    padding: 0 24px;
    gap: 4px;
    z-index: 199;
    box-shadow: var(--shadow-lg);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.35s ease, opacity 0.3s ease, transform 0.3s ease, padding 0.3s ease;
  }
  .nav-links.mobile-open {
    max-height: 400px;
    opacity: 1;
    transform: translateY(0);
    padding: 16px 24px;
  }
  .nav-links a {
    width: 100%;
    padding: 12px 16px;
  }
  .nav-toggle { display: flex; }
  .tool-container { padding: 24px; }
  .hero { padding: 56px 24px 48px; }
  .stats-row { gap: 20px; }
  .stat-box { padding: 14px 20px; }
  .stat-num { font-size: 1.5rem; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .filter-tabs { justify-content: flex-start; overflow-x: auto; padding-bottom: 8px; flex-wrap: nowrap; }
  .tab-btn { white-space: nowrap; flex-shrink: 0; }
  .trust-bar { gap: 12px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translate(-3px, -3px); }
}

/* ─── DARK MODE OVERRIDES ─── */
[data-theme="dark"] .nav {
  background: #111124;
  border-color: #2d2d4a;
  box-shadow: 0 4px 0 rgba(0,0,0,0.4);
}

[data-theme="dark"] .tool-card,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .blog-card,
[data-theme="dark"] .faq-item,
[data-theme="dark"] .stat-box,
[data-theme="dark"] .step-card,
[data-theme="dark"] .tool-container,
[data-theme="dark"] .pricing-card,
[data-theme="dark"] .contact-card,
[data-theme="dark"] .modal-box,
[data-theme="dark"] .related-tool {
  background: var(--white);
  border-color: #2d2d4a;
  color: var(--text);
}

[data-theme="dark"] .upload-zone {
  background: #1a1a30;
  border-color: #3d3d5a;
}

[data-theme="dark"] .upload-zone:hover {
  background: #1f0f18;
  border-color: var(--red);
}

[data-theme="dark"] .search-input {
  background: #1a1a30;
  color: var(--text);
  border-color: #2d2d4a;
}

[data-theme="dark"] .search-input::placeholder { color: #6b7280; }

[data-theme="dark"] .tab-btn {
  background: #1a1a30;
  color: var(--text-muted);
  border-color: #2d2d4a;
}

[data-theme="dark"] .tab-btn:hover {
  background: #2a0f1a;
  color: var(--red);
}

[data-theme="dark"] .tab-btn.active {
  background: var(--red);
  color: white;
}

[data-theme="dark"] .hero-badge {
  background: #1a1a30;
  border-color: #3d3d5a;
}

[data-theme="dark"] .hero-float-doc {
  background: #1a1a30;
  border-color: #3d3d5a;
}

[data-theme="dark"] .doc-line { background: #2d2d4a; }

[data-theme="dark"] .section {
  background: var(--bg);
}

[data-theme="dark"] .nav-links {
  background: #111124;
  border-color: #2d2d4a;
}

[data-theme="dark"] .blog-tag {
  background: #2a0f1a;
  border-color: #3d3d5a;
}

[data-theme="dark"] .breadcrumbs .sep { color: #3d3d5a; }

[data-theme="dark"] ::-webkit-scrollbar-track { background: #1a1a30; }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: var(--red); }

/* Dark mode toggle animation */
[data-theme="dark"] .dark-toggle { background: #1a1a30; }
