/* Purple Banana Labs section — standalone copy of #pbl from the Digital Island homepage.
   Every rule is scoped to #pbl so it can't leak into the host app.
   Values are copied 1:1 from: css/style.css (Tailwind build), css/site.css,
   and the inline <style> blocks in index.html (pbl-introduction-styles,
   pbl-promotional-insert-styles, pbl-goal-line-styles, section-navigation-polish). */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/inter-400.ttf) format('truetype'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/inter-600.ttf) format('truetype'); }

/* ---------- theme tokens + base (from :root, body, preflight) ---------- */
#pbl {
  --background: 220 15% 8%;
  --foreground: 0 0% 98%;
  --card-foreground: 0 0% 98%;
  --border: 220 15% 20%;
  --radius: 0.875rem;
  font-family: Inter, sans-serif;
  color: hsl(var(--foreground));
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
#pbl *, #pbl *::before, #pbl *::after { box-sizing: border-box; border-width: 0; border-style: solid; border-color: hsl(var(--border)); }
#pbl h3, #pbl p { margin: 0; font-size: inherit; font-weight: inherit; }
#pbl a { color: inherit; text-decoration: inherit; }
#pbl img, #pbl svg, #pbl canvas { display: block; vertical-align: middle; }
#pbl img { max-width: 100%; height: auto; }

/* ---------- Tailwind utilities used by the markup ---------- */
#pbl .container { width: 100%; margin-right: auto; margin-left: auto; padding-right: 2rem; padding-left: 2rem; }
@media (min-width: 1400px) { #pbl .container { max-width: 1400px; } }
@media (max-width: 767px) { #pbl .container { max-width: 100%; } }
#pbl .mx-auto { margin-left: auto; margin-right: auto; }
#pbl .px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
#pbl .hidden { display: none; }
#pbl .border { border-width: 1px; }
#pbl .text-card-foreground { color: hsl(var(--card-foreground)); }
#pbl .shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
#pbl .w-full { width: 100%; }
#pbl .h-\[500px\] { height: 500px; }
#pbl .bg-black\/\[0\.96\] { background-color: rgb(0 0 0 / 0.96); }
#pbl .relative { position: relative; }
#pbl .overflow-hidden { overflow: hidden; }
#pbl .rounded-2xl { border-radius: 1rem; }
#pbl .animate-slide-up { animation: pbl-slide-up 0.6s ease-out; }
#pbl .animate-spotlight { animation: pbl-spotlight 2s ease .75s 1 forwards; }
#pbl .pointer-events-none { pointer-events: none; }
#pbl .absolute { position: absolute; }
#pbl .z-\[1\] { z-index: 1; }
#pbl .h-\[169\%\] { height: 169%; }
#pbl .w-\[138\%\] { width: 138%; }
#pbl .opacity-0 { opacity: 0; }
#pbl .-top-40 { top: -10rem; }
#pbl .left-0 { left: 0px; }
#pbl .flex { display: flex; }
#pbl .h-full { height: 100%; }
#pbl .flex-1 { flex: 1 1 0%; }
#pbl .p-12 { padding: 3rem; }
#pbl .z-10 { z-index: 10; }
#pbl .flex-col { flex-direction: column; }
#pbl .justify-center { justify-content: center; }
#pbl .items-center { align-items: center; }
#pbl .text-center { text-align: center; }
#pbl .inset-0 { inset: 0px; }
#pbl .bg-gradient-to-b { background-image: linear-gradient(to bottom, rgb(0 0 0 / 0.55), rgb(0 0 0 / 0.35)); }
#pbl .min-h-\[500px\] { min-height: 500px; }
#pbl .p-8 { padding: 2rem; }
#pbl .rounded-lg { border-radius: var(--radius); }
#pbl .max-w-2xl { max-width: 42rem; }
#pbl .bg-black\/30 { background-color: rgb(0 0 0 / 0.3); }
#pbl .backdrop-blur-sm { -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
#pbl .border-white\/20 { border-color: rgb(255 255 255 / 0.2); }
@media (min-width: 768px) {
  #pbl .md\:left-60 { left: 15rem; }
  #pbl .md\:-top-20 { top: -5rem; }
}
@media (min-width: 1024px) {
  #pbl .lg\:block { display: block; }
  #pbl .lg\:hidden { display: none; }
  #pbl .lg\:w-\[84\%\] { width: 84%; }
}
@keyframes pbl-slide-up { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes pbl-spotlight { 0% { opacity: 0; transform: translate(-72%, -62%) scale(0.5); } 100% { opacity: 1; transform: translate(-50%, -40%) scale(1); } }

/* ---------- robot canvas (site.css) ---------- */
#pbl .robot-scene { position: relative; overflow: hidden; min-height: 300px; }
#pbl .robot-scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; }
#pbl .robot-scene.ready canvas { opacity: 1; }
#pbl .robot-scene, #pbl .robot-scene canvas { cursor: pointer !important; }

/* ---------- section wrapper (section-navigation-polish) ---------- */
#pbl { padding: 56px 0; background: hsl(var(--background)); border: 0; }
#pbl > .container { max-width: 1424px; padding-left: clamp(24px, 3vw, 72px); padding-right: clamp(24px, 3vw, 72px); }
#pbl .pbl-intro { max-width: 1280px; margin: 0 auto; }
@media (max-width: 639px) { #pbl { padding: 36px 0; } }

/* ---------- PBL panel (pbl-introduction-styles + pbl-promotional-insert-styles) ---------- */
#pbl .pbl-intro .pbl-label { position: relative; z-index: 2; font-size: 24px; line-height: 1.4; font-weight: 600; letter-spacing: .04em; color: #963de8; -webkit-text-fill-color: #963de8; opacity: 1; text-shadow: none; mix-blend-mode: normal; margin: 0 0 18px; }
#pbl .pbl-intro .pbl-logo { display: block; width: 190px; max-width: 80%; height: auto; margin: 0 auto 22px; object-fit: contain; }
#pbl .pbl-intro .pbl-description { font-size: 16px; line-height: 1.65; color: #d4d4d8; max-width: 530px; margin: 0 auto 24px; }
#pbl .pbl-intro .pbl-description p { margin: 0; }
#pbl .pbl-intro .pbl-description p + p { margin-top: 14px; }
#pbl .pbl-intro .pbl-explore { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 12px 22px; border-radius: 6px; background: #8434d6; color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; transition: background .2s, box-shadow .2s; }
#pbl .pbl-intro .pbl-explore:hover { background: #7330bd; box-shadow: 0 0 22px rgba(132, 52, 214, .32); }
#pbl .pbl-intro .pbl-explore:focus-visible { outline: 2px solid #d8b4fe; outline-offset: 4px; }
/* Order matters: this block must stay BEFORE the panel rules below (same as the original page). */
@media (max-width: 639px) {
  #pbl .pbl-intro .pbl-logo { width: 180px; max-width: 100%; }
  #pbl .pbl-intro .p-8 { padding: 24px; }
  #pbl .pbl-intro .pbl-description { font-size: 15px; }
  #pbl .pbl-intro .pbl-explore { white-space: normal; height: auto; min-height: 44px; padding: 12px 16px; }
}

#pbl .pbl-intro { position: relative; isolation: isolate; }
#pbl .pbl-intro .pbl-insert-panel { height: auto; min-height: 560px; background: radial-gradient(ellipse at 15% 15%, rgba(150, 61, 232, .045), transparent 65%), #110d17 !important; border: 1px solid rgba(177, 118, 239, .18); box-shadow: 0 8px 28px rgba(0, 0, 0, .24); }
#pbl .pbl-insert-panel > .flex { min-height: 560px; height: auto; align-items: stretch; }
#pbl .pbl-insert-panel > .flex > .p-12 { padding: 36px; flex: 1.1; min-width: 0; }
#pbl .pbl-insert-panel > .flex > .flex-1.relative { min-width: 0; }
#pbl .pbl-intro .animate-spotlight { opacity: .16; visibility: hidden; }
#pbl .pbl-intro .robot-scene { height: 100%; min-height: 560px; background: radial-gradient(ellipse at 55% 55%, rgba(150, 61, 232, .04), transparent 70%); }
@media (min-width: 1024px) { #pbl .pbl-intro .pbl-goal-line { display: block; white-space: nowrap; } }
@media (max-width: 1023px) {
  #pbl .pbl-intro .pbl-insert-panel { min-height: 0; }
  #pbl .pbl-insert-panel > .absolute { display: none; }
  #pbl .pbl-insert-panel > .relative { min-height: 0; padding: 30px 24px; }
  #pbl .pbl-insert-panel .backdrop-blur-sm { background: none; border: 0; box-shadow: none; padding: 0; }
}
@media (max-width: 639px) {
  #pbl .pbl-intro .pbl-label { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  #pbl *, #pbl *::before, #pbl *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
