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

    :root {
      --bg: oklch(0.14 0.005 260);
      --fg: oklch(0.96 0.012 85);
      --fg-65: oklch(0.96 0.012 85 / 0.65);
      --font-sans: "Inter Tight", "Inter", system-ui, sans-serif;
    }

    html,
    body {
      width: 100%;
      background: radial-gradient(ellipse at center, hsl(0 0% 8%) 0%, hsl(0 0% 4%) 100%);
      color: var(--fg);
      font-family: var(--font-sans);
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
      overflow-y: auto;
      /* Allow natural scrolling */
    }

    /* Fixed Header Bar matching landing page design */
    header {
      width: 100%;
      padding: 1.5rem 3.5rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: rgba(10, 10, 11, 0.95);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border-bottom: 1px solid oklch(0.96 0.012 85 / 0.08);
      z-index: 100;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
    }

    .nav-link-pill {
      display: inline-flex;
      flex-direction: row;
      align-items: center;
      gap: 6px;
      padding: 0;
      font-family: ui-monospace, "SF Mono", Menlo, monospace;
      font-size: 10.5px;
      font-weight: 400;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--fg-65);
      text-decoration: none;
      transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-link-pill .nav-text {
      position: relative;
    }

    .nav-link-pill .nav-text::after {
      content: "";
      position: absolute;
      bottom: -3px;
      left: 0;
      width: 0;
      height: 1px;
      background: linear-gradient(90deg, var(--fg), oklch(0.96 0.012 85 / 0.85));
      transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-link-pill:hover {
      color: var(--fg);
    }

    .nav-link-pill:hover .nav-text::after {
      width: 100%;
    }

    /* Main Content Container */
    main {
      width: 100%;
      padding-top: 5.5rem;
      /* Space for fixed header (1.5rem top/bottom padding + 2rem content) */
      padding-bottom: 2rem;
      display: flex;
      justify-content: center;
      align-items: center;
      position: relative;
      min-height: 100vh;
      box-sizing: border-box;
    }

    .viewer-container {
      width: auto;
      max-width: 900px;
      height: calc(100vh - 7.5rem);
      /* Full viewport minus header and padding */
      position: relative;
      background: #ffffff;
      /* White paper background */
      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    }

    #pdf-canvas {
      width: 100%;
      height: auto;
      display: block;
    }

    /* Custom styles for selectable text layer and clickable hyperlink annotation layer */
    .textLayer {
      position: absolute;
      left: 0;
      top: 0;
      transform-origin: 0 0;
      pointer-events: auto;
    }

    .annotationLayer {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      transform-origin: 0 0;
      pointer-events: none;
      /* Let clicks pass through empty space to the text layer */
    }

    .annotationLayer section {
      pointer-events: auto;
      /* Only actual annotations should catch clicks */
    }

    .annotationLayer .linkAnnotation>a:hover {
      background: rgba(0, 0, 0, 0.05);
      /* Slight dark overlay for links on white background */
      border-radius: 2px;
    }

    /* Loading state styling */
    .loading-indicator {
      position: absolute;
      top: 150px;
      left: 50%;
      transform: translateX(-50%);
      font-family: ui-monospace, "SF Mono", Menlo, monospace;
      font-size: 10px;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: rgba(0, 0, 0, 0.5);
      animation: pulse 1.5s infinite ease-in-out;
    }

    @keyframes pulse {

      0%,
      100% {
        opacity: 0.4;
      }

      50% {
        opacity: 1;
      }
    }

    @media (max-width: 768px) {
      header {
        padding: 1rem 1.5rem;
      }

      main {
        padding-top: 4.5rem;
        padding-bottom: 2rem;
        align-items: flex-start;
      }

      .viewer-container {
        width: 100%;
        height: auto;
        max-width: 100%;
      }

      .nav-link-pill {
        font-size: 9.5px;
      }

      .nav-link-pill svg {
        width: 10px;
        height: 10px;
      }
    }

    .nav-text-icon {
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }
    .nav-icon { transform: translateY(-0.5px); }
