:root {
  color-scheme: dark;
  --pdf2all-bg: #080d1a;
  --pdf2all-surface: #111a2d;
  --pdf2all-surface-raised: #17233b;
  --pdf2all-border: rgba(148, 163, 184, 0.2);
  --pdf2all-text: #e8edf7;
  --pdf2all-muted: #a5b2c7;
  --pdf2all-accent: #8b7bff;
  --pdf2all-accent-bright: #b4a8ff;
}

.pdf2all-brand-mark {
  position: relative;
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(211, 204, 255, 0.58);
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, #a89aff 0%, #7260ec 48%, #493bb5 100%);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.4) inset,
    0 5px 0 #352a91,
    0 10px 24px rgba(101, 82, 220, 0.34);
  transform: perspective(100px) rotateY(-8deg) rotateX(5deg);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.pdf2all-brand-mark::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.25), transparent 45%);
  content: "";
  pointer-events: none;
}

.pdf2all-brand-mark .material-symbols-outlined {
  position: relative;
  z-index: 1;
  font-size: 25px;
  filter: drop-shadow(0 2px 2px rgba(20, 15, 70, 0.38));
}

.pdf2all-brand-name {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 0;
  color: #f8f9ff;
  font: 900 21px/1 Inter, "Public Sans", system-ui, sans-serif;
  letter-spacing: -0.07em;
  text-shadow: 0 2px 12px rgba(130, 113, 255, 0.18);
}

.pdf2all-brand-name > span {
  color: #ad9fff;
}

.pdf2all-brand-name small {
  flex-basis: 100%;
  margin-top: 5px;
  color: #9da9c0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.pdf2all-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

body footer .pdf2all-brand-mark {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
  border-radius: 11px;
  font-size: 22px;
}

body footer .pdf2all-brand-mark .material-symbols-outlined {
  font-size: 22px;
}

body footer .pdf2all-brand-name {
  font-size: 18px;
}

body footer .pdf2all-brand-name small {
  font-size: 8px;
}

body header .pdf2all-brand-mark,
body footer .pdf2all-brand-mark {
  color: #fff !important;
}

body a:hover .pdf2all-brand-mark {
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.45) inset,
    0 3px 0 #352a91,
    0 15px 32px rgba(101, 82, 220, 0.48);
  transform: perspective(100px) translateY(-2px) rotateY(-8deg) rotateX(5deg);
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--pdf2all-bg);
}

body {
  min-height: 100vh;
  color: var(--pdf2all-text);
  background:
    radial-gradient(ellipse at 12% 0%, rgba(91, 76, 209, 0.2), transparent 35rem),
    radial-gradient(ellipse at 92% 12%, rgba(18, 153, 190, 0.12), transparent 32rem),
    var(--pdf2all-bg);
  font-family: Inter, "Public Sans", system-ui, sans-serif;
}

body[class] {
  color: var(--pdf2all-text);
  background-color: var(--pdf2all-bg);
  background-image:
    radial-gradient(ellipse at 12% 0%, rgba(91, 76, 209, 0.2), transparent 35rem),
    radial-gradient(ellipse at 92% 12%, rgba(18, 153, 190, 0.12), transparent 32rem);
}

body,
body * {
  scrollbar-color: #46516a #0b1220;
}

body :is(.text-slate-900, .text-slate-800, .text-gray-900, .text-gray-800, .text-black) {
  color: #f3f6fc !important;
}

body :is(.text-slate-700, .text-gray-700) {
  color: #d1daea !important;
}

body :is(.text-slate-600, .text-gray-600) {
  color: #bac6d9 !important;
}

body :is(.text-slate-500, .text-gray-500, .text-slate-400, .text-gray-400) {
  color: var(--pdf2all-muted) !important;
}

body :is(.text-primary, .hover\:text-primary:hover) {
  color: var(--pdf2all-accent-bright) !important;
}

body :is(.bg-primary, .hover\:bg-primary:hover) {
  color: #fff !important;
  background-color: var(--pdf2all-accent) !important;
  box-shadow: 0 8px 0 #5143b1, 0 14px 30px rgba(110, 94, 240, 0.28);
}

body :is(.border-primary\/10, .border-primary\/20, .border-primary\/30) {
  border-color: rgba(139, 123, 255, 0.35) !important;
}

body :is(.bg-white, .bg-slate-50, .bg-slate-100, .bg-gray-50, .bg-gray-100) {
  color: var(--pdf2all-text) !important;
  background-color: var(--pdf2all-surface) !important;
}

body [class*="bg-white/"],
body [class*="bg-slate-50/"],
body [class*="bg-slate-100/"],
body [class*="bg-gray-50/"],
body [class*="bg-gray-100/"] {
  color: var(--pdf2all-text) !important;
  background-color: rgba(23, 35, 59, 0.88) !important;
}

body :is(.container, .blog-section, .upload-box) {
  color: var(--pdf2all-text) !important;
  border-color: var(--pdf2all-border) !important;
  background-color: var(--pdf2all-surface) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

body .pdf2all-info-card {
  color: #e8edf7 !important;
  border: 1px solid rgba(139, 123, 255, 0.24) !important;
  background: linear-gradient(145deg, #1a2741, #111a2d) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 8px 0 rgba(5, 9, 18, 0.34),
    0 16px 30px rgba(0, 0, 0, 0.22) !important;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

body .pdf2all-info-card:hover {
  border-color: rgba(180, 168, 255, 0.6) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 5px 0 rgba(5, 9, 18, 0.34),
    0 20px 38px rgba(0, 0, 0, 0.28),
    0 0 26px rgba(110, 94, 240, 0.14) !important;
  transform: translateY(-3px);
}

body .pdf2all-info-card p {
  color: #e8edf7 !important;
}

body .pdf2all-info-card p.text-xs {
  color: #a5b2c7 !important;
}

body .pdf-popular-visual {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 15px;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.35) inset,
    0 4px 0 rgba(3, 7, 18, 0.42),
    0 10px 18px rgba(0, 0, 0, 0.24);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

body .pdf-popular-visual-word {
  background: linear-gradient(145deg, #9ec5ff, #3478f6);
}

body .pdf-popular-visual-jpg {
  background: linear-gradient(145deg, #ffd2a8, #f97316);
}

body .pdf-popular-visual-excel {
  background: linear-gradient(145deg, #a7f3c6, #15965b);
}

body .pdf-popular-visual-image {
  background: linear-gradient(145deg, #fecdd3, #e11d48);
}

body .pdf-popular-visual svg {
  width: 42px;
  height: 42px;
  overflow: visible;
  filter: drop-shadow(0 2px 2px rgba(10, 20, 40, 0.22));
}

body a:hover .pdf-popular-visual {
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.45) inset,
    0 2px 0 rgba(3, 7, 18, 0.42),
    0 14px 24px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px) rotate(-2deg);
}

body .upload-box {
  border-style: dashed !important;
}

body :is(.bg-blue-50, .bg-sky-50, .bg-indigo-50, .bg-purple-50, .bg-green-50, .bg-emerald-50, .bg-orange-50, .bg-rose-50, .bg-yellow-50) {
  color: #dbe4f5 !important;
  background-color: rgba(99, 112, 153, 0.2) !important;
}

body :is(.border-slate-200, .border-gray-200, .border-gray-100, .border-slate-100) {
  border-color: var(--pdf2all-border) !important;
}

body :is(input, select, textarea) {
  color: var(--pdf2all-text);
  border-color: var(--pdf2all-border);
  background-color: #0b1324;
}

body input::placeholder,
body textarea::placeholder {
  color: #8190a8;
}

body select option {
  color: var(--pdf2all-text);
  background: #111a2d;
}

body button,
body [role="button"] {
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

body button:hover:not(:disabled),
body [role="button"]:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

body button:active:not(:disabled),
body [role="button"]:active {
  transform: translateY(1px);
}

body :is(main .bg-white, main .bg-slate-50, main .bg-slate-100, main .bg-gray-50, main .tool-card, main .card, main .glass) {
  border: 1px solid var(--pdf2all-border) !important;
  background:
    linear-gradient(145deg, rgba(24, 36, 60, 0.96), rgba(13, 21, 37, 0.98)) !important;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.04) inset,
    0 24px 55px rgba(0, 0, 0, 0.34),
    0 8px 0 rgba(5, 9, 18, 0.7) !important;
}

body main .tool-card {
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

body main .tool-card:hover {
  border-color: rgba(139, 123, 255, 0.55) !important;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.06) inset,
    0 28px 60px rgba(0, 0, 0, 0.42),
    0 8px 0 rgba(5, 9, 18, 0.75),
    0 0 30px rgba(110, 94, 240, 0.16) !important;
  transform: translateY(-5px);
}

body .tool-card {
  transform-style: preserve-3d;
  will-change: transform;
}

body .tool-card-thumb {
  box-shadow: 0 5px 0 rgba(3, 7, 18, 0.34), 0 12px 26px rgba(0, 0, 0, 0.22);
}

@keyframes pdf2all-enter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body main > section,
body main > .max-w-4xl,
body main > .tool-card,
body main > .tools-grid-wrap {
  animation: pdf2all-enter 520ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

body main > section:nth-of-type(2),
body main > .tool-card:nth-child(2) {
  animation-delay: 70ms;
}

body main > section:nth-of-type(3),
body main > .tool-card:nth-child(3) {
  animation-delay: 140ms;
}

body :is(header, .p2a-header) {
  color: var(--pdf2all-text);
  border-color: var(--pdf2all-border) !important;
  background: rgba(8, 13, 26, 0.84) !important;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body header a,
body .p2a-header a {
  color: #dbe4f5 !important;
}

body header a:hover,
body .p2a-header a:hover {
  color: var(--pdf2all-accent-bright) !important;
}

body .p2a-mobile-menu {
  color: var(--pdf2all-text) !important;
  border-color: var(--pdf2all-border) !important;
  background: #0d1525 !important;
}

body .p2a-header .p2a-logo .pdf2all-brand-name {
  color: #f8f9ff;
}

body .p2a-header .p2a-links a {
  color: #dbe4f5 !important;
}

body .p2a-header .p2a-links a:hover,
body .p2a-header .p2a-links a.active {
  color: var(--pdf2all-accent-bright) !important;
}

body .p2a-header .p2a-cta {
  color: #fff !important;
  border: 1px solid rgba(196, 181, 253, 0.35);
  background: linear-gradient(145deg, #8b7bff, #5a4bc2) !important;
  box-shadow: 0 4px 0 #352a91, 0 10px 22px rgba(101, 82, 220, 0.28);
}

body .p2a-header .p2a-hamburger svg {
  stroke: #dbe4f5;
}

body .p2a-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

body :is(.pdf2all-about-copy, .pdf2all-contact-copy) {
  color: #cbd5e1;
  border-color: var(--pdf2all-border) !important;
}

body :is(.pdf2all-about-copy, .pdf2all-contact-copy) h2 {
  color: #f3f6fc;
  text-shadow: 0 2px 18px rgba(139, 123, 255, 0.2);
}

body :is(.pdf2all-about-copy, .pdf2all-contact-copy) h3 {
  color: var(--pdf2all-accent-bright);
}

body .p2a-footer,
body footer {
  color: #aebbd0;
  border-color: var(--pdf2all-border) !important;
  background: #070b14 !important;
}

body footer h2,
body footer h3,
body footer h4 {
  color: #f3f6fc !important;
}

body :is(#dropzone, #heroDropZone, .upload-zone) {
  border-color: rgba(139, 123, 255, 0.5) !important;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(116, 99, 242, 0.16), transparent 70%),
    rgba(9, 16, 30, 0.8) !important;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.04) inset,
    0 14px 34px rgba(0, 0, 0, 0.24);
}

body :is(#dropzone, #heroDropZone, .upload-zone):hover {
  border-color: var(--pdf2all-accent-bright) !important;
  box-shadow: 0 0 30px rgba(139, 123, 255, 0.16);
}

body :is(#toolPickerModal > div, .p2a-mobile-menu) {
  color: var(--pdf2all-text);
  border: 1px solid var(--pdf2all-border);
  background-color: var(--pdf2all-surface) !important;
}

body table {
  color: var(--pdf2all-text);
}

body :is(th, td) {
  border-color: var(--pdf2all-border);
}

body a {
  text-underline-offset: 0.2em;
}

body :focus-visible {
  outline: 2px solid var(--pdf2all-accent-bright);
  outline-offset: 3px;
}

::selection {
  color: #fff;
  background: #6354d9;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
