/* ==========================================================================
   PDFVC Design System & Layout Stylesheet
   Modern, responsive, light/dark theme, high contrast, brand amber/orange
   ========================================================================== */

:root {
  --font-sans: "Segoe UI", "Aptos", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Cascadia Code", "Consolas", "Courier New", monospace;

  /* Brand Palette - Amber / Orange */
  --accent: #eb7e16;
  --accent-hover: #d46c0d;
  --accent-strong: #c55e0d;
  --accent-soft: #fff4e8;
  --accent-soft-border: #ffd7b0;
  --accent-gradient: linear-gradient(135deg, #f28a2e 0%, #c55e0d 100%);
  --accent-glow: rgba(235, 126, 22, 0.22);

  /* Light Theme */
  --bg-page: #f8f7f5;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-surface-subtle: #f3f1ed;
  --bg-header: rgba(255, 255, 255, 0.92);

  --text-main: #1f1e1c;
  --text-muted: #5e5b56;
  --text-dim: #88847d;
  --text-on-accent: #ffffff;

  --border-main: #e4e0d9;
  --border-subtle: #eeece7;
  --border-focus: #eb7e16;

  --card-bg: #ffffff;
  --card-border: #e6e2db;
  --card-hover-border: #d2cbbd;

  --note-bg: #f0f7fc;
  --note-border: #bcd7f0;
  --note-text: #14466f;

  --warning-bg: #fff9eb;
  --warning-border: #f8d592;
  --warning-text: #824f00;

  --danger-bg: #fdf3f3;
  --danger-border: #f7baba;
  --danger-text: #961c1c;

  --success-bg: #edf8f3;
  --success-border: #aee0ca;
  --success-text: #125e40;

  --kbd-bg: #edeae5;
  --kbd-border: #cfcac0;
  --kbd-text: #2c2926;

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.11);
  --shadow-xl: 0 20px 48px rgba(0, 0, 0, 0.16);

  --max-w-content: 1200px;
  --max-w-narrow: 920px;
  --header-height: 68px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #f28a2e;
    --accent-hover: #ff9b45;
    --accent-strong: #ffad61;
    --accent-soft: rgba(242, 138, 46, 0.14);
    --accent-soft-border: rgba(242, 138, 46, 0.32);
    --accent-gradient: linear-gradient(135deg, #ff9b45 0%, #eb7e16 100%);
    --accent-glow: rgba(242, 138, 46, 0.3);

    --bg-page: #141312;
    --bg-surface: #1e1d1b;
    --bg-surface-elevated: #262422;
    --bg-surface-subtle: #2b2926;
    --bg-header: rgba(30, 29, 27, 0.92);

    --text-main: #f5f2ec;
    --text-muted: #b8b3aa;
    --text-dim: #827e76;

    --border-main: #3a3733;
    --border-subtle: #2d2b28;
    --border-focus: #f28a2e;

    --card-bg: #1e1d1b;
    --card-border: #383531;
    --card-hover-border: #524e47;

    --note-bg: rgba(25, 70, 115, 0.25);
    --note-border: #235787;
    --note-text: #bfe0fb;

    --warning-bg: rgba(140, 85, 0, 0.22);
    --warning-border: #805410;
    --warning-text: #ffd58c;

    --danger-bg: rgba(150, 30, 30, 0.25);
    --danger-border: #872e2e;
    --danger-text: #ffb7b7;

    --success-bg: rgba(20, 100, 60, 0.22);
    --success-border: #1f6b49;
    --success-text: #a0ebd0;

    --kbd-bg: #33302c;
    --kbd-border: #4d4943;
    --kbd-text: #f0ebe2;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 20px 48px rgba(0, 0, 0, 0.7);
  }
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-page);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-page);
  color: var(--text-main);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-strong);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover {
  color: var(--accent);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
  margin-top: 0;
  letter-spacing: -0.02em;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

code, kbd {
  font-family: var(--font-mono);
  font-size: 0.88em;
}

code {
  background: var(--bg-surface-subtle);
  color: var(--accent-strong);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
}

kbd {
  display: inline-block;
  padding: 0.15em 0.45em;
  background: var(--kbd-bg);
  color: var(--kbd-text);
  border: 1px solid var(--kbd-border);
  border-radius: var(--radius-xs);
  box-shadow: 0 1px 0 var(--kbd-border);
  font-size: 0.82em;
  line-height: 1.2;
}

/* ==========================================================================
   Language Visibility Control
   ========================================================================== */

body:not(.lang-en) [lang="en"],
body:not(.lang-en) .lang-content-en {
  display: none !important;
}

body.lang-en [lang="it"],
body.lang-en .lang-content-it {
  display: none !important;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-main);
  height: var(--header-height);
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-xs);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.header-container {
  max-width: var(--max-w-content);
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-main);
  flex-shrink: 0;
}

.brand-logo-img {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.brand-version-badge {
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border: 1px solid var(--accent-soft-border);
  padding: 0.08rem 0.4rem;
  border-radius: var(--radius-full);
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .brand-subtitle {
    display: none;
  }
}

/* Nav Links */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.15rem;
  flex-wrap: nowrap;
}

.nav-link {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.32rem 0.52rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.nav-link:hover {
  color: var(--text-main);
  background: var(--bg-surface-subtle);
}

.nav-link.active {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Language Toggle Switcher */
.lang-switcher {
  display: inline-flex;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-full);
  padding: 2px;
  gap: 2px;
  flex-shrink: 0;
}

.lang-btn {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.lang-btn:hover {
  color: var(--text-main);
}

.lang-btn.active {
  background: var(--bg-surface);
  color: var(--accent-strong);
  box-shadow: var(--shadow-xs);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-main);
  border-radius: var(--radius-sm);
  padding: 0.45rem;
  color: var(--text-main);
  cursor: pointer;
  flex-shrink: 0;
}

@media (max-width: 990px) {
  .nav-menu {
    display: none;
  }
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-main);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-md);
  }
  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* ==========================================================================
   Buttons & CTAs
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1.3;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff !important;
  box-shadow: 0 3px 12px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
  color: #ffffff !important;
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border-main);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: var(--bg-surface-subtle);
  border-color: var(--card-hover-border);
  transform: translateY(-2px);
  color: var(--text-main);
}

.btn-accent-subtle {
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-color: var(--accent-soft-border);
}

.btn-accent-subtle:hover {
  background: var(--accent-strong);
  color: #ffffff !important;
  transform: translateY(-2px);
}

.btn-lg {
  font-size: 1.05rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-md);
}

.btn-sm {
  font-size: 0.84rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
}

.btn svg, .btn i {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: currentColor;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  padding: 3.5rem 1.25rem 2.5rem 1.25rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 10%, var(--accent-soft) 0%, transparent 65%);
}

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

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border: 1px solid var(--accent-soft-border);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.4rem;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-title-highlight {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 2.2rem auto;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-meta-note {
  font-size: 0.84rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* App Showcase Frame in Hero */
.app-showcase-frame {
  background: var(--bg-surface);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
}

.window-titlebar {
  background: var(--bg-surface-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.window-dot.red { background: #ff5f56; }
.window-dot.yellow { background: #ffbd2e; }
.window-dot.green { background: #27c93f; }

.window-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.showcase-image-wrap {
  position: relative;
  cursor: pointer;
  background: #000;
}

.showcase-image-wrap img {
  width: 100%;
  height: auto;
  transition: transform 0.25s ease;
}

.showcase-image-wrap:hover img {
  transform: scale(1.008);
}

.showcase-overlay-hint {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

/* ==========================================================================
   Pillars & Key Advantages Grid
   ========================================================================== */

.section {
  padding: 4.5rem 1.25rem;
}

.section-alt {
  background: var(--bg-surface-subtle);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

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

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

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3rem auto;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-strong);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
}

.section-subtitle {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Pillars Cards Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.pillar-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.85rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-hover-border);
  box-shadow: var(--shadow-md);
}

.pillar-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent-strong);
  border: 1px solid var(--accent-soft-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.pillar-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.pillar-desc {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   Features Deep-Dive (Split Rows with Screenshots)
   ========================================================================== */

.feature-showcase-list {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.feature-row.reverse {
  direction: rtl;
}
.feature-row.reverse > * {
  direction: ltr;
}

.feature-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-border);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  width: fit-content;
}

.feature-title {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.feature-text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.feature-checklist {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.94rem;
  line-height: 1.45;
  color: var(--text-main);
}

.check-icon {
  color: var(--accent-strong);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
  flex-shrink: 0;
}

.feature-media-box {
  background: var(--card-bg);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-media-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.feature-media-box img {
  width: 100%;
  height: auto;
  display: block;
}

.feature-media-caption {
  background: var(--bg-surface-subtle);
  border-top: 1px solid var(--border-subtle);
  padding: 0.55rem 0.9rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 860px) {
  .feature-row, .feature-row.reverse {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    direction: ltr;
  }
}

/* ==========================================================================
   Advanced Capabilities Grid (3 columns)
   ========================================================================== */

.advanced-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.advanced-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.advanced-card:hover {
  transform: translateY(-3px);
  border-color: var(--card-hover-border);
  box-shadow: var(--shadow-md);
}

.advanced-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.advanced-card-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.advanced-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}

.advanced-card-body {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.advanced-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 1rem;
}

.advanced-tag {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-xs);
  background: var(--bg-surface-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Download & License Section
   ========================================================================== */

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
  align-items: stretch;
}

.download-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 2.2rem 1.8rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

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

.download-card.highlight {
  border-color: var(--accent);
  box-shadow: 0 8px 28px var(--accent-glow);
}

.download-card.highlight::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--accent-gradient);
}

.download-card-badge {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border: 1px solid var(--accent-soft-border);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

.download-card-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.download-card-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.download-card-sub {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
}

.download-specs-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.download-specs-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.download-specs-list li svg,
.download-specs-list li span.spec-check {
  color: var(--accent-strong);
  font-weight: bold;
}

.download-card-footer {
  margin-top: auto;
}

/* ==========================================================================
   License & Legal Box
   ========================================================================== */

.license-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  margin-top: 2rem;
  box-shadow: var(--shadow-sm);
}

.license-icon-box {
  font-size: 2.5rem;
  color: var(--accent-strong);
}

.license-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.license-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .license-box {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .license-icon-box {
    margin: 0 auto;
  }
}

/* ==========================================================================
   Callout Alert Boxes (Shared with Bugs & Privacy)
   ========================================================================== */

.callout {
  padding: 1.15rem 1.4rem;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  font-size: 0.94rem;
  line-height: 1.55;
  border-left: 4px solid;
}

.callout.note {
  background: var(--note-bg);
  border-color: var(--note-border);
  color: var(--note-text);
}

.callout.warning {
  background: var(--warning-bg);
  border-color: var(--warning-border);
  color: var(--warning-text);
}

.callout.danger {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger-text);
}

.callout.success {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: var(--success-text);
}

.callout-title {
  font-weight: 700;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-main);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  text-align: left;
}

th, td {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--border-subtle);
}

th {
  background: var(--bg-surface-subtle);
  font-weight: 700;
  color: var(--text-main);
}

tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background: var(--bg-surface-subtle);
}

/* Numbered Steps */
.step-list {
  counter-reset: custom-step;
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.step-list li {
  counter-increment: custom-step;
  position: relative;
  padding-left: 2.6rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.step-list li::before {
  content: counter(custom-step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.7rem;
  height: 1.7rem;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border: 1px solid var(--accent-soft-border);
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Image Lightbox Modal
   ========================================================================== */

.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.88);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: zoom-out;
  backdrop-filter: blur(8px);
}

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

.lightbox-img-wrap {
  max-width: 94vw;
  max-height: 90vh;
  position: relative;
  cursor: default;
}

.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  display: block;
}

.lightbox-caption {
  color: #ffffff;
  font-size: 0.9rem;
  text-align: center;
  margin-top: 0.75rem;
}

.lightbox-close-btn {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.15s ease;
}

.lightbox-close-btn:hover {
  opacity: 1;
}

/* ==========================================================================
   Back-To-Top Button
   ========================================================================== */

.back-to-top-btn {
  display: none;
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 44px;
  height: 44px;
  background: var(--bg-surface);
  color: var(--accent-strong);
  border: 1px solid var(--border-main);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  z-index: 90;
  transition: all 0.2s ease;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.back-to-top-btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border-main);
  background: var(--bg-surface);
  padding: 3.5rem 1.25rem 2rem 1.25rem;
  margin-top: auto;
}

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

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.5;
}

.footer-col-title {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav-list a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.footer-nav-list a:hover {
  color: var(--accent-strong);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-credits {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hit-counter-img {
  display: inline-block;
  vertical-align: middle;
}

@media (max-width: 820px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 540px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   What is PDF-VC Block
   ========================================================================== */

.whatis-block {
  background: var(--bg-surface);
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.5rem;
  margin: 2.5rem 0 3rem 0;
  box-shadow: var(--shadow-sm);
}

.whatis-title {
  font-size: 1.45rem;
  font-weight: 750;
  color: var(--text-main);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.whatis-text {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.whatis-text:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   FAQ Section & Accordions
   ========================================================================== */

.faq-section {
  padding: 5rem 1.25rem;
}

.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: var(--max-w-narrow);
  margin: 0 auto;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.faq-item:hover {
  border-color: var(--accent-soft-border);
  box-shadow: var(--shadow-sm);
}

.faq-item details {
  width: 100%;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  font-size: 1.08rem;
  font-weight: 650;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  color: var(--accent-strong);
  font-weight: 400;
  transition: transform 0.2s ease;
  margin-left: 1rem;
  flex-shrink: 0;
}

details[open] .faq-question::after {
  content: "−";
  transform: rotate(180deg);
}

details[open] .faq-question {
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface-subtle);
}

.faq-answer {
  padding: 1.25rem 1.5rem;
  font-size: 0.98rem;
  line-height: 1.68;
  color: var(--text-muted);
}

.faq-answer p {
  margin-bottom: 0.75rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Guides Grid & Showcase Cards
   ========================================================================== */

.guides-section {
  padding: 5rem 1.25rem;
  background: var(--bg-surface-subtle);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
  max-width: var(--max-w-content);
  margin: 2.5rem auto 0 auto;
}

.guide-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-xs);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.guide-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.guide-card-icon {
  font-size: 1.8rem;
  margin-bottom: 0.85rem;
}

.guide-card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-strong);
  background: var(--accent-soft);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
  width: fit-content;
}

.guide-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.65rem;
  line-height: 1.35;
}

.guide-card-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.guide-card-footer {
  display: flex;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--accent-strong);
  gap: 0.35rem;
}

/* ==========================================================================
   Breadcrumbs & Guide Page Layout
   ========================================================================== */

.breadcrumb-nav {
  padding: 1rem 0;
  font-size: 0.88rem;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 2rem;
}

.breadcrumb-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.breadcrumb-item a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb-item a:hover {
  color: var(--accent-strong);
}

.breadcrumb-separator {
  color: var(--text-dim);
  user-select: none;
}

.breadcrumb-current {
  color: var(--text-main);
  font-weight: 600;
}

.guide-article-container {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  padding: 2rem 1.25rem 5rem 1.25rem;
  flex: 1;
}

.guide-article-header {
  margin-bottom: 2.5rem;
}

.guide-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border: 1px solid var(--accent-soft-border);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 650;
  margin-bottom: 1rem;
}

.guide-article-title {
  font-size: 2.35rem;
  line-height: 1.2;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1.1rem;
  letter-spacing: -0.025em;
}

.guide-article-lead {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.guide-article-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.guide-body h2 {
  font-size: 1.55rem;
  font-weight: 750;
  color: var(--text-main);
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.guide-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.guide-body p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.guide-body ul, .guide-body ol {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.guide-body li {
  margin-bottom: 0.5rem;
}

.guide-callout {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-main);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  font-size: 0.96rem;
  line-height: 1.6;
}

.guide-callout.tip {
  border-left-color: var(--success-border);
  background: var(--success-bg);
  color: var(--success-text);
}

.guide-callout.note {
  border-left-color: var(--note-border);
  background: var(--note-bg);
  color: var(--note-text);
}

.guide-cta-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  margin: 3.5rem 0 2rem 0;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.guide-cta-box h3 {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
  color: var(--text-main);
}

.guide-cta-box p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 1.5rem auto;
}

.guide-related-box {
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  margin-top: 3rem;
}

.guide-related-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--text-main);
}

.guide-related-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 650px) {
  .guide-related-list {
    grid-template-columns: 1fr;
  }
  .guide-article-title {
    font-size: 1.85rem;
  }
}

