 :root {
      --sf: 'Space Grotesk', sans-serif;
      --bf: 'Inter', sans-serif;
      --deep-sea: #0a1628;
      --purple: #8b5cf6;
      --blue: #00adff;
      --mint: #00d9c0;
      --white: #ffffff;
      --gray-300: #d1d5db;
      --gray-400: #9ca3af;
      --gray-500: #6b7280;
      --purple-tint: #a78bfa;
      --glass-bg: rgba(255, 255, 255, 0.05);
      --glass-bg-hover: rgba(255, 255, 255, 0.07);
      --glass-border: rgba(255, 255, 255, 0.1);
      --glass-border-hover: rgba(139, 92, 246, 0.2);
      --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
      --glass-shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 20px rgba(139, 92, 246, 0.08);
      --glass-radius: 1rem;
      --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* ═══════════════════════════════════════════════════
       1. RESET & BASE (Cross-Page Spec §0.4)
       ═══════════════════════════════════════════════════ */
    *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
    body {
      font-family: var(--bf);
      font-size: 1rem;
      line-height: 1.5;
      color: var(--gray-300);
      background: linear-gradient(135deg, #0a1628 0%, #0d1a2d 50%, #0a1628 100%);
      min-height: 100vh;
      overflow-x: hidden;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }
#neuralCanvas {
  position: fixed !important;
  inset: 0;
  width: 100vw !important;
  max-width: none !important;
  max-height: none !important;
  pointer-events: none;
  z-index: 0;
}
main {
  position: relative;
  z-index: 2;
}
.ambient-glow-tr,
.ambient-glow-bl {
  mix-blend-mode: screen;
}
    /* ═══════════════════════════════════════════════════
       2. TAILWIND UTILITY CLASSES (Cross-Page Spec §0.1–0.3)
       ═══════════════════════════════════════════════════ */
    .text-5xl { font-size: 3rem; line-height: 1; }
    .text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
    .text-2xl { font-size: 1.5rem; line-height: 2rem; }
    .text-xl  { font-size: 1.25rem; line-height: 1.75rem; }
    .text-lg  { font-size: 1.125rem; line-height: 1.75rem; }
    .text-base{ font-size: 1rem; line-height: 1.5rem; }
    .text-sm  { font-size: 0.875rem; line-height: 1.25rem; }
    .text-xs  { font-size: 0.75rem; line-height: 1rem; }
    .font-bold    { font-weight: 700; }
    .font-semibold{ font-weight: 600; }
    .font-medium  { font-weight: 500; }
    .text-white   { color: var(--white); }
    .text-gray-300{ color: var(--gray-300); }
    .text-gray-400{ color: var(--gray-400); }
    .text-center  { text-align: center; }
    .mb-2  { margin-bottom: 0.5rem; }
    .mb-3  { margin-bottom: 0.75rem; }
    .mb-4  { margin-bottom: 1rem; }
    .mb-6  { margin-bottom: 1.5rem; }
    .mb-8  { margin-bottom: 2rem; }
    .mb-12 { margin-bottom: 3rem; }
    .mb-16 { margin-bottom: 4rem; }
    .mt-3  { margin-top: 0.75rem; }
    .py-20 { padding-top: 5rem; padding-bottom: 5rem; }
    .px-6  { padding-left: 1.5rem; padding-right: 1.5rem; }
    .relative { position: relative; }
    .z-10     { z-index: 10; }
    .max-w-7xl{ max-width: 80rem; margin-left: auto; margin-right: auto; }
    .max-w-4xl{ max-width: 64rem; margin-left: auto; margin-right: auto; }

    /* ═══════════════════════════════════════════════════
       3. GRADIENT TEXT (Cross-Page Spec §2)
       ═══════════════════════════════════════════════════ */
    .grad-text {
      color: #a78bfa; /* accessible fallback — WCAG AA ~6.4:1 on #0a1628 */
      background: linear-gradient(90deg, #8b5cf6 0%, #00adff 50%, #00d9c0 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    /* ═══════════════════════════════════════════════════
       4. ACCESSIBILITY (Cross-Page Spec §9)
       ═══════════════════════════════════════════════════ */
    .skip-link {
      position: absolute; left: -9999px; top: 0; z-index: 100;
      padding: 0.75rem 1.5rem; background: var(--purple); color: white;
      font-size: 0.875rem; font-weight: 600; border-radius: 0 0 0.5rem 0;
      text-decoration: none;
    }
    .skip-link:focus { left: 0; }
    a:focus-visible, button:focus-visible {
      outline: 2px solid var(--purple);
      outline-offset: 2px;
      border-radius: 4px;
    }
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
      }
    }

    /* ═══════════════════════════════════════════════════
       5. BUTTONS (Cross-Page Spec §0.10, System of Record §5.1)
       ═══════════════════════════════════════════════════ */

    /* --- Primary Button --- */
    .btn-primary {
      position: relative; overflow: hidden;
      display: inline-flex; align-items: center; gap: 0.5rem;
      min-height: 44px;
      padding: 0.75rem 1.5rem; border-radius: 0.5rem;
      font-family: var(--bf); font-weight: 500; font-size: 0.875rem;
      background: rgba(139,92,246,0.8); color: white;
      border: 1px solid rgba(139,92,246,0.5);
      backdrop-filter: blur(10px);
      box-shadow: 0 4px 16px rgba(0,0,0,0.2);
      text-decoration: none; cursor: pointer;
      transition: all 0.3s;
    }
    .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 32px rgba(139,92,246,0.3);
    }
    .btn-primary .btn-fill {
      position: absolute; inset: 0;
      background: linear-gradient(90deg, #8b5cf6, #00adff);
      transform: translateX(-100%);
      transition: transform 0.5s;
    }
    .btn-primary:hover .btn-fill { transform: translateX(0); }
    .btn-primary .btn-text,
    .btn-primary .btn-arrow {
      position: relative; z-index: 1;
    }
    .btn-primary .btn-arrow { transition: transform 0.3s; }
    .btn-primary:hover .btn-arrow { transform: translateX(4px); }

    /* --- Secondary Button (Cross-Page Spec §0.10) --- */
    .btn-secondary {
      position: relative;
      display: inline-flex; align-items: center; gap: 0.5rem;
      min-height: 44px;
      padding: 0.75rem 1.5rem; border-radius: 0.5rem;
      font-family: var(--bf); font-weight: 500; font-size: 0.875rem;
      background: rgba(255,255,255,0.05); color: white;
      backdrop-filter: blur(10px);
      border: none;
      overflow: visible; /* Critical: §0.10 */
      text-decoration: none; cursor: pointer;
      transition: all 0.3s;
    }
    .btn-secondary:hover {
      background: rgba(255,255,255,0.1);
      transform: translateY(-2px);
    }
    .btn-secondary .btn-border-static {
      position: absolute; inset: 0; border-radius: 0.5rem;
      border: 1px solid rgba(255,255,255,0.2);
      transition: opacity 0.3s; pointer-events: none;
    }
    .btn-secondary:hover .btn-border-static { opacity: 0; }
    .btn-secondary .border-svg {
      position: absolute; inset: 0; width: 100%; height: 100%;
      overflow: visible; /* Critical: §0.10 */
      pointer-events: none;
    }
    .btn-secondary .border-svg rect {
      stroke-dasharray: 1000; /* Critical: §0.10 — never 500 */
      stroke-dashoffset: 1000;
      transition: stroke-dashoffset 0.6s ease-out;
    }
    .btn-secondary:hover .border-svg rect { stroke-dashoffset: 0; }
    .btn-secondary .btn-glow {
      position: absolute; inset: 0; border-radius: 0.5rem;
      box-shadow: 0 0 20px rgba(139,92,246,0.3);
      opacity: 0; transition: opacity 0.3s; pointer-events: none;
    }
    .btn-secondary:hover .btn-glow { opacity: 1; }
    .btn-secondary .btn-text,
    .btn-secondary .btn-arrow {
      position: relative; z-index: 1;
    }
    .btn-secondary .btn-arrow { transition: transform 0.3s; }
    .btn-secondary:hover .btn-arrow { transform: translateX(4px); }

    /* ═══════════════════════════════════════════════════
       6. GLASS CARD (System of Record §5.2)
       ═══════════════════════════════════════════════════ */
    .glass {
      background: var(--glass-bg);
      backdrop-filter: blur(20px);
      border: 1px solid var(--glass-border);
      border-radius: var(--glass-radius);
      box-shadow: var(--glass-shadow);
      transition: var(--transition);
      overflow: hidden;
      position: relative;
    }
    .glass:hover {
      background: var(--glass-bg-hover);
      backdrop-filter: blur(24px) saturate(1.1);
      border-color: var(--glass-border-hover);
      box-shadow: var(--glass-shadow-hover);
      transform: translateY(-4px);
    }
    .glass .glass-glow {
      position: absolute; inset: 0;
      background: radial-gradient(ellipse at 50% 0%, rgba(139,92,246,0.08) 0%, transparent 60%);
      opacity: 0; transition: opacity 0.5s; pointer-events: none;
    }
    .glass:hover .glass-glow { opacity: 1; }

    /* ═══════════════════════════════════════════════════
       6b. LIGHT GLASS CARD (Feature Card spec)
       No backdrop-filter at rest — lets neural canvas
       show through. Materialises on hover.
       ═══════════════════════════════════════════════════ */
    .glass-light {
      background: rgba(255,255,255,0.03);
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 0.75rem;
      box-shadow: none;
      backdrop-filter: none;
      overflow: hidden;
      position: relative;
      transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .glass-light:hover {
      background: rgba(255,255,255,0.07);
      border-color: rgba(139,92,246,0.2);
      box-shadow: 0 8px 32px rgba(0,0,0,0.35), 0 0 20px rgba(139,92,246,0.08);
      transform: translateY(-2px);
    }
    .glass-light .card-glow {
      position: absolute; inset: 0;
      background: radial-gradient(ellipse at 50% 0%, rgba(139,92,246,0.08) 0%, transparent 60%);
      opacity: 0; transition: opacity 0.5s; pointer-events: none;
    }
    .glass-light:hover .card-glow { opacity: 1; }

    /* ═══════════════════════════════════════════════════
       7. PAGE LAYOUTS
       ═══════════════════════════════════════════════════ */

    /* Hero grid */
    .hero-grid {
      display: grid;
      grid-template-columns: auto 1fr;
      gap: 2.5rem;
      align-items: center;
    }
    .hero-h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }

    /* Recommended resources grid */
    .rec-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.5rem;
    }

    /* CTA grid */
    .cta-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 2rem;
      align-items: center;
    }
    .cta-inner { padding: 3rem; }

    /* Gradient divider */
    .gradient-divider {
      height: 1px;
      background: linear-gradient(90deg, transparent 0%, rgba(139,92,246,0.4) 20%, rgba(0,173,255,0.4) 50%, rgba(0,217,192,0.4) 80%, transparent 100%);
    }

    /* ═══════════════════════════════════════════════════
       8. RESOURCE CARD
       ═══════════════════════════════════════════════════ */
    .resource-card {
      display: flex; flex-direction: column; height: 100%;
    }
    .resource-card .card-image {
      position: relative;
      display: flex; align-items: center; justify-content: center;
      padding: 1.25rem 1rem;
      height: 12rem; /* Fixed height — keeps text aligned across cards */
      border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .resource-card .card-image .image-glow {
      position: absolute; inset: 15%;
      border-radius: 50%;
      background: radial-gradient(ellipse at center, rgba(139,92,246,0.3) 0%, rgba(0,173,255,0.12) 50%, transparent 70%);
      filter: blur(20px); pointer-events: none; z-index: 0;
    }
    .resource-card .card-image img {
      position: relative; z-index: 1;
      max-width: 80%; max-height: 100%; object-fit: contain;
      filter: drop-shadow(0 8px 24px rgba(0,0,0,0.4));
    }
    /* Fallback: no mockup available — use feature image with cover-crop */
    .resource-card .card-image--cover {
      padding: 0;
      min-height: auto;
    }
    .resource-card .card-image--cover .image-glow { display: none; }
    .resource-card .card-image--cover img {
      width: 100%; max-height: none; height: 10rem;
      object-fit: cover; filter: none;
      border-radius: calc(0.75rem - 1px) calc(0.75rem - 1px) 0 0;
    }
    .resource-card .card-body {
      padding: 1.25rem 1.5rem 1.5rem;
      display: flex; flex-direction: column; flex-grow: 1;
    }
    .resource-card .cat-label {
      display: flex; align-items: center; gap: 0.375rem;
      margin-bottom: 0.625rem;
    }
    .resource-card .cat-label span {
      font-size: 0.6875rem; font-weight: 600;
      text-transform: uppercase; letter-spacing: 0.1em;
      color: var(--purple-tint); font-family: var(--bf);
    }
    .resource-card h3 {
      font-family: var(--sf); color: white; font-weight: 700;
      font-size: 1rem; line-height: 1.35;
      margin-bottom: 1rem; flex-grow: 1;
    }

    /* ═══════════════════════════════════════════════════
       9. CATEGORY ICONS (SVG inline)
       ═══════════════════════════════════════════════════ */
    .cat-icon svg {
      width: 20px; height: 20px;
      stroke: var(--purple-tint); fill: none; stroke-width: 2;
    }

    /* ═══════════════════════════════════════════════════
       10. DEMO CTA — gradient border wrapper
       ═══════════════════════════════════════════════════ */
    .cta-wrap {
      position: relative; border-radius: 1.5rem; padding: 1px;
      background: linear-gradient(135deg, #8b5cf6 0%, #00adff 50%, #00d9c0 100%);
    }
    .cta-wrap .cta-inner-card {
      position: relative; z-index: 1;
      background: linear-gradient(rgba(255,255,255,.05), rgba(255,255,255,.05)), #0a1628;
      backdrop-filter: blur(20px);
      border-radius: calc(1.5rem - 1px);
      border: none;
    }

    /* ═══════════════════════════════════════════════════
       11. HERO RESOURCE IMAGE — gradient border frame
       ═══════════════════════════════════════════════════ */
    .hero-image-wrap {
      position: relative; display: inline-block;
      max-width: 18rem; width: 100%;
    }
    .hero-image-glow {
      position: absolute; inset: -1rem; border-radius: 1.5rem;
      background: radial-gradient(ellipse at 50% 50%, rgba(139,92,246,0.18) 0%, rgba(0,173,255,0.1) 40%, transparent 70%);
      filter: blur(16px); pointer-events: none;
    }
    .hero-image-border {
      position: relative; border-radius: 1rem; padding: 1px;
      background: linear-gradient(135deg, rgba(139,92,246,0.6) 0%, rgba(0,173,255,0.4) 50%, rgba(0,217,192,0.5) 100%);
    }
    .hero-image-border img {
      display: block; width: 100%;
      border-radius: calc(1rem - 1px);
      box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(139,92,246,0.15);
    }

    /* ═══════════════════════════════════════════════════
       12. PLACEHOLDER (for images not yet available)
       ═══════════════════════════════════════════════════ */
    .placeholder {
      width: 100%; height: 100%; min-height: 12.5rem;
      background: linear-gradient(135deg, rgba(139,92,246,0.2) 0%, rgba(0,173,255,0.2) 100%);
      border: 2px dashed rgba(139,92,246,0.4); border-radius: 0.75rem;
      display: flex; align-items: center; justify-content: center;
      flex-direction: column; gap: 0.5rem; aspect-ratio: 4/3;
    }
    .placeholder svg { stroke: rgba(139,92,246,0.6); }
    .placeholder span {
      color: rgba(139,92,246,0.8); font-size: 0.8125rem;
      font-family: var(--sf); text-align: center;
      padding: 0 0.75rem; line-height: 1.4;
    }

    /* ═══════════════════════════════════════════════════
       13. AMBIENT BACKGROUND GLOWS
       ═══════════════════════════════════════════════════ */
    .ambient-glow-tr {
      position: fixed; inset: 0; pointer-events: none; z-index: 0;
      background: radial-gradient(ellipse 80% 50% at 70% 20%, rgba(139,92,246,0.06) 0%, transparent 50%);
    }
    .ambient-glow-bl {
      position: fixed; inset: 0; pointer-events: none; z-index: 0;
      background: radial-gradient(ellipse 60% 40% at 30% 70%, rgba(139,92,246,0.04) 0%, transparent 50%);
    }

    /* ═══════════════════════════════════════════════════
       14. RECOMMENDATIONS ZONE
       Subtle background shift behind the card grid area
       to visually separate from the heading above.
       ═══════════════════════════════════════════════════ */
    .rec-zone {
      position: relative;
      padding: 2.5rem 0 0;
    }
    .rec-zone::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(139,92,246,0.03) 15%,
        rgba(139,92,246,0.03) 85%,
        transparent 100%
      );
      pointer-events: none;
    }

    /* ═══════════════════════════════════════════════════
       16. BACK LINK
       ═══════════════════════════════════════════════════ */
    .back-link {
      display: inline-flex; align-items: center; gap: 0.5rem;
      font-family: var(--bf); font-size: 0.875rem; font-weight: 500;
      color: #d1d5db; text-decoration: none;
      padding: 0.5rem 1rem; border-radius: 8px;
      min-height: 44px;
      background: transparent;
      transition: color 0.3s, background 0.3s;
    }
    .back-link:hover {
      color: #ffffff;
      background: rgba(255,255,255,0.05);
    }
    .back-link .back-arrow {
      display: inline-block;
      transform: rotate(180deg);
      transition: transform 0.3s;
    }
    .back-link:hover .back-arrow {
      transform: rotate(180deg) translateX(4px);
    }

    /* ═══════════════════════════════════════════════════
       16. RESPONSIVE (Cross-Page Spec §10)
       ═══════════════════════════════════════════════════ */
    @media (min-width: 1200px) {
      .px-6 { padding-left: 2.5rem; padding-right: 2.5rem; }
    }
    @media (max-width: 900px) {
      .rec-grid { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 768px) {
      .hero-grid { grid-template-columns: 1fr; text-align: center; }
      .hero-grid .btn-primary { margin: 0 auto; }
      .hero-image-wrap { max-width: 14rem; }
      .cta-grid { grid-template-columns: 1fr; }
      .cta-inner { padding: 1.5rem; }
    }
    @media (max-width: 600px) {
      .rec-grid { grid-template-columns: 1fr; }
    }