/* ==========================================================================
   PDFongo Home — modern landing page
   Scoped entirely under .pdg-home so it never leaks into other tool pages,
   which still share .hero/.tool-grid/.why-choose from stylesheetv3.css.
   ========================================================================== */

.pdg-home {
  --g-900: #0b3d2e;
  --g-700: #12805a;
  --g-600: #1a9c63;
  --g-500: #27ae60;
  --g-400: #3ddc84;
  --g-100: #e4f6ec;
  --paper: #f6faf8;
  --white: #ffffff;
  --ink: #0f1a15;
  --ink-soft: #4b5d55;
  --ink-faint: #7c8f87;
  --line: #dfece5;
  --shadow-sm: 0 2px 10px rgba(11, 61, 46, 0.06);
  --shadow-md: 0 10px 30px rgba(11, 61, 46, 0.10);
  --shadow-lg: 0 24px 60px rgba(11, 61, 46, 0.16);

  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
.pdg-home * { box-sizing: border-box; }
.pdg-home h1, .pdg-home h2, .pdg-home h3 { font-family: "Sora", "Segoe UI", sans-serif; }

.pdg-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------------------------------- HERO --------------------------------- */
.pdg-home-hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 90px;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(61, 220, 132, 0.16), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}
.pdg-home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.pdg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--g-700);
  background: var(--g-100);
  border: 1px solid #c9ecd9;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  margin-bottom: 20px;
}
.pdg-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--g-500); box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.25); }

.pdg-home-hero h1 {
  font-size: clamp(2.3rem, 4vw, 3.2rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--g-900);
  margin-bottom: 18px;
}
.pdg-home-hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--g-600), var(--g-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pdg-home-hero-sub { font-size: 1.1rem; line-height: 1.65; color: var(--ink-soft); max-width: 48ch; margin-bottom: 30px; }

.pdg-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.pdg-btn-primary { background: var(--g-500); color: #fff; box-shadow: 0 10px 24px rgba(39,174,96,0.28); }
.pdg-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(39,174,96,0.34); }
.pdg-btn-dark { background: var(--g-900); color: #fff; box-shadow: 0 10px 24px rgba(11,61,46,0.28); }
.pdg-btn-dark:hover { transform: translateY(-2px); }
.pdg-btn-ghost { background: #fff; color: var(--g-900); border-color: var(--line); }
.pdg-btn-ghost:hover { border-color: var(--g-500); color: var(--g-700); transform: translateY(-2px); }

.pdg-home-hero-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }

.pdg-home-hero-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 0.86rem; color: var(--ink-faint); }
.pdg-home-hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.pdg-home-hero-meta i { color: var(--g-500); }

.pdg-home-hero-visual { display: flex; align-items: center; justify-content: center; }
.pdg-home-hero-visual img { max-width: 100%; height: auto; }

/* --------------------------- ANIMATED TOOL CAROUSEL ------------------------- */
.pdg-tool-carousel {
  position: relative;
  width: 340px;
  height: 340px;
  max-width: 100%;
}

.pdg-carousel-orbit {
  position: absolute;
  inset: 0;
}

.pdg-orbit-icon {
  --angle: calc(var(--i) * 60deg);
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 13px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  cursor: pointer;
  transform: rotate(var(--angle)) translate(148px) rotate(calc(-1 * var(--angle)));
  animation: pdg-orbit-bounce 2.8s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.18s);
  transition: color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.pdg-orbit-icon:hover { color: var(--g-600); border-color: #c9ecd9; }
.pdg-orbit-icon.is-active {
  color: #fff;
  background: var(--g-500);
  border-color: var(--g-500);
  box-shadow: 0 8px 20px rgba(39,174,96,0.35);
}

@keyframes pdg-orbit-bounce {
  0%, 100% { margin-top: -23px; }
  50% { margin-top: -33px; }
}

.pdg-carousel-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  padding: 26px 22px;
  text-align: center;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.pdg-carousel-card.is-swapping {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.94);
}

.pdg-carousel-icon {
  width: 48px; height: 48px;
  border-radius: 13px;
  background: var(--g-100);
  color: var(--g-700);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  margin: 0 auto 14px;
}
.pdg-carousel-card h3 { font-size: 1.02rem; color: var(--g-900); margin-bottom: 6px; }
.pdg-carousel-card p { font-size: 0.82rem; color: var(--ink-soft); line-height: 1.5; margin-bottom: 12px; min-height: 38px; }
.pdg-carousel-card .pdg-tool-link { color: var(--g-600); font-weight: 600; font-size: 0.85rem; text-decoration: none; }
.pdg-carousel-card .pdg-tool-link:hover { text-decoration: underline; }

@media (max-width: 980px) {
  .pdg-tool-carousel { width: 280px; height: 280px; margin: 0 auto; }
  .pdg-orbit-icon { transform: rotate(var(--angle)) translate(118px) rotate(calc(-1 * var(--angle))); }
  .pdg-carousel-card { width: 190px; padding: 20px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .pdg-orbit-icon { animation: none; }
  .pdg-carousel-card { transition: none; }
}

/* --------------------------------- TOOLS --------------------------------- */
.pdg-section { padding: 88px 0; }
.pdg-section.is-tight { padding: 64px 0; }
.pdg-section.is-white { background: #fff; }

.pdg-section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.pdg-section-head h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); color: var(--g-900); font-weight: 700; letter-spacing: -0.01em; margin: 14px 0 12px; }
.pdg-section-head p { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.6; }

.pdg-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.pdg-tool-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 24px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.pdg-tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #c9ecd9; }
.pdg-tool-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--g-100);
  color: var(--g-700);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.pdg-tool-card h3 { font-size: 1.08rem; color: var(--g-900); margin-bottom: 8px; font-weight: 600; }
.pdg-tool-card p { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.6; margin-bottom: 14px; }
.pdg-tool-card .pdg-tool-link { color: var(--g-600); font-weight: 600; font-size: 0.88rem; }

@media (max-width: 900px) { .pdg-tool-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pdg-tool-grid { grid-template-columns: 1fr; } }

/* ----------------------------- DESKTOP SPOTLIGHT -------------------------- */
.pdg-desktop-spotlight {
  background: linear-gradient(135deg, var(--g-900), #0e5a3f);
  border-radius: 24px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.pdg-desktop-spotlight-copy .pdg-eyebrow { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.2); color: #fff; }
.pdg-desktop-spotlight-copy .pdg-eyebrow .dot { background: var(--g-400); }
.pdg-desktop-spotlight-copy h2 { color: #fff; font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin: 16px 0 14px; }
.pdg-desktop-spotlight-copy p { color: rgba(255,255,255,0.78); font-size: 1rem; line-height: 1.65; margin-bottom: 24px; }

.pdg-desktop-spotlight-list { list-style: none; padding: 0; margin: 0 0 28px; }
.pdg-desktop-spotlight-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.92rem; color: rgba(255,255,255,0.92);
  margin-bottom: 12px; line-height: 1.5;
}
.pdg-desktop-spotlight-list li i { color: var(--g-400); margin-top: 3px; width: 16px; flex-shrink: 0; }

.pdg-desktop-spotlight-row { display: flex; gap: 12px; flex-wrap: wrap; }
.pdg-desktop-spotlight .pdg-btn-primary { background: #fff; color: var(--g-900); box-shadow: 0 10px 24px rgba(0,0,0,0.25); }
.pdg-desktop-spotlight .pdg-btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.3); }
.pdg-desktop-spotlight .pdg-btn-ghost:hover { border-color: #fff; color: #fff; }

.pdg-desktop-spotlight-media { position: relative; }
.pdg-window {
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-4deg) rotateX(1deg);
}
.pdg-titlebar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: #f2f8f5; border-bottom: 1px solid var(--line); }
.pdg-dots { display: flex; gap: 6px; }
.pdg-dots span { width: 10px; height: 10px; border-radius: 50%; display: block; }
.pdg-dots span:nth-child(1) { background: #ff5f57; }
.pdg-dots span:nth-child(2) { background: #febc2e; }
.pdg-dots span:nth-child(3) { background: #28c840; }
.pdg-titlebar-title { font-family: "JetBrains Mono", monospace; font-size: 0.72rem; color: var(--ink-faint); margin: 0 auto; }
.pdg-window img { display: block; width: 100%; height: auto; }

.pdg-badge-float {
  position: absolute;
  z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-md);
  padding: 9px 13px; border-radius: 12px;
  font-size: 0.8rem; font-weight: 600; color: var(--g-900);
}
.pdg-badge-float i { color: var(--g-500); }
.pdg-badge-1 { top: -14px; left: -12px; }
.pdg-badge-2 { bottom: -12px; right: -14px; }

@media (max-width: 980px) {
  .pdg-home-hero-grid { grid-template-columns: 1fr; }
  .pdg-home-hero-visual { order: -1; }
  .pdg-desktop-spotlight { grid-template-columns: 1fr; padding: 36px 24px; border-radius: 18px; }
  .pdg-window { transform: none; }
  .pdg-badge-float { display: none; }
}

/* ------------------------------ WHY CHOOSE -------------------------------- */
.pdg-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.pdg-why-item { display: flex; gap: 14px; }
.pdg-why-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 11px;
  background: var(--g-100); color: var(--g-700);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
}
.pdg-why-item h3 { font-size: 1rem; color: var(--g-900); margin-bottom: 6px; font-weight: 600; }
.pdg-why-item p { color: var(--ink-soft); font-size: 0.9rem; line-height: 1.6; }

@media (max-width: 900px) { .pdg-why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pdg-why-grid { grid-template-columns: 1fr; } }

/* --------------------------------- AD SLOT -------------------------------- */
.pdg-ad-slot { max-width: 860px; margin: 0 auto; text-align: center; }
.pdg-ad-label { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 10px; font-family: "JetBrains Mono", monospace; }

/* ---------------------------------- CTA ----------------------------------- */
.pdg-final-cta {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 56px 40px;
}
.pdg-final-cta h2 { color: var(--g-900); font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 10px; }
.pdg-final-cta p { color: var(--ink-soft); margin-bottom: 26px; font-size: 1.02rem; }
.pdg-final-cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 600px) { .pdg-final-cta { padding: 40px 22px; border-radius: 18px; } }