html, body { margin: 0; height: 100%; background: #000; color: #fff;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif; }
.reveal-root { --brand-blue: #2f8cff; --warm-orange: #ff8a2b; --black: #000000; --gray: #d3d3d3; --light-gray: #ececec; --bg: #ffffff; background: var(--bg); }
.wrap { 
  position: relative; 
  width: 100%; 
  height: 100vh; 
  overflow: visible; 
  --brand-gap: 12px; 
  z-index: 1;
  cursor: pointer;
}
.wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #000000 0%, #888888 40%, #ffffff 80%);
  z-index: -1;
  pointer-events: none;
}
.wrap::after {
  content: '';
  position: absolute;
  bottom: -5vh;
  left: 0;
  right: 0;
  height: 5vh;
  background: linear-gradient(to bottom, #ffffff 0%, #ffffff 100%);
  z-index: -1;
  pointer-events: none;
}
.layer {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: opacity 260ms ease;
  opacity: 0;
  z-index: 2;
}
.layer.show { opacity: 1; }
.video-morph {
  transform-origin: center center;
  will-change: transform, border-radius;
  position: fixed !important;
  z-index: 1;
  pointer-events: none; /* ensure it never blocks text interactions */
}
.nav { position: absolute; top: 16px; right: 24px; display: flex; gap: 24px; font-size: 16px; z-index: 5; user-select: none; align-items: center; }
.nav a { color: #fff; text-decoration: none; opacity: 0.92; }
.nav a:hover { opacity: 1; }
/* Liquid Glass Button */
.nav a:last-child { 
  border: 1px solid rgba(255, 255, 255, 0.3); 
  padding: 10px 20px; 
  border-radius: 14px; 
  opacity: 1; 
  transition: all 0.3s ease; 
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 
    0 4px 24px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.nav a:last-child:hover { 
  background: rgba(255, 255, 255, 0.15); 
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}
.center-text { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 0 6vw; z-index: 5;
               opacity: 0; transition: opacity 500ms ease; will-change: opacity; }
.center-text.show { opacity: 1; }
.headline { 
  font-size: clamp(28px, 6vw, 64px); 
  line-height: 1.08; 
  font-weight: 800; 
  letter-spacing: 0.2px;
  background: linear-gradient(90deg, 
    #4169E1 0%,    /* blue */
    #9370DB 15%,   /* purple */
    #FFD700 30%,   /* yellow */
    #FF8C00 45%,   /* orange */
    #32CD32 60%,   /* green */
    #A9A9A9 75%,   /* gray */
    #4169E1 100%   /* back to blue */
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  animation: gradientFlow 8s linear infinite;
  text-shadow: none;
}
.headline span { white-space: nowrap; }
@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@media (max-width: 768px) {
  html {
    overflow-x: clip;
  }
  body {
    overflow-x: clip;
    width: 100vw;
  }
  .headline { font-size: clamp(36px, 8vw, 72px); }
}
.grad { position: absolute; inset: 0;
        background: linear-gradient(to bottom, rgba(0,0,0,0.45), rgba(0,0,0,0) 25%),
                    linear-gradient(to top, rgba(0,0,0,0.45), rgba(0,0,0,0) 30%);
        z-index: 3; pointer-events: none; }
/* removed old section rule */
.brand-group { position: absolute; right: 20px; bottom: -8px; display: flex; flex-direction: row; align-items: flex-end; gap: 0; z-index: 5; pointer-events: auto; --orb-trim: 10%; cursor: pointer; }
.brand-group img { display: block; clip-path: inset(0 var(--orb-trim) 0 var(--orb-trim)); -webkit-clip-path: inset(0 var(--orb-trim) 0 var(--orb-trim)); }
.brand-main { width: clamp(64px, 12vw, 120px); height: auto; image-rendering: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5)); }
/* removed rolling mini orb */

/* ===== Second page (reveal) ===== */
.reveal-root { background: var(--bg); }
.reveal-stage { position: sticky; top: 0; height: 100vh; background: var(--bg); color: var(--black); display: grid; place-items: center; }
.video-anchor { 
  position: absolute; 
  top: 20vh; 
  left: 50%; 
  transform: translateX(-50%); 
  width: 100px; 
  height: 100px; 
  pointer-events: none; 
  z-index: 10;
  /* Hidden anchor - just for positioning */
}
.orb-indicator {
  position: absolute;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  left: 0;
  transform: translate(-50%, -50%);
  will-change: opacity;
  width: 200px;
  height: 200px;
  border: none;
  background: none;
  border-radius: 0;
  overflow: visible;
}
.orb-indicator canvas {
  display: block;
  width: 200px !important;
  height: 200px !important;
}
.orb-logo-img {
  width: 180px;
  height: auto;
  animation: logoSpin 12s linear infinite;
}
@keyframes logoSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.reveal-pin { height: 100%; display: grid; place-items: center; padding: 2vh 6vw; }
@supports (height: 100svh) {
  .reveal-stage { height: 100svh; }
}
.reveal-title { margin: 0; font-size: clamp(32px, 5vw, 44px); line-height: 1.35; text-align: center; font-weight: 800; letter-spacing: 0.2px; color: var(--black); text-transform: uppercase; max-width: 95vw; }
.reveal-line { display: flex; justify-content: center; align-items: baseline; gap: clamp(0.25em, 1.2vw, 0.6em); flex-wrap: wrap; }
.reveal-title .word { transition: color 120ms linear; will-change: color, opacity; display: inline-block; white-space: nowrap; }
.reveal-title #w-orb { text-transform: none; font-size: clamp(42px, 7vw, 58px); font-weight: 900; letter-spacing: 0.5px; 
  color: #ff8a2b; /* Fallback color for browsers that don't support gradient */
  background: linear-gradient(90deg, var(--warm-orange) 0%, #a855f7 50%, var(--brand-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.reveal-title #w-bloo { font-size: clamp(42px, 7vw, 58px); }
.reveal-title #w-bloo { text-transform: uppercase; }
.reveal-title .bloo-wrap { position: relative; display: inline-block; vertical-align: baseline; }
.reveal-title .bloo-img { display: none; }
.reveal-title #w-bloo { font-family: 'Dancing Script', cursive; font-style: normal; font-weight: 700; text-transform: none; }
.reveal-title .letter { display: inline-block; transition: color 80ms linear; will-change: color; }
.reveal-sub { height: 80vh; display: grid; place-items: center; padding: 10vh 8vw; background: #f7f7f7; color: #111; font-size: clamp(18px, 2.2vw, 22px); }
.reveal-track { height: 80vh; background: var(--bg); }
.scroll-indicator {
  position: absolute;
  bottom: 6vh;
  left: 50%;
  transform: translateX(-50%);
  color: var(--black);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  animation: bounce 2s ease-in-out infinite;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 100;
}
.scroll-indicator.show {
  opacity: 0.8 !important;
  display: flex !important;
}
.scroll-text {
  font-size: 16px;
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: 0.5px;
  color: var(--black);
}
.scroll-indicator svg {
  display: block;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(12px); }
}
@media (max-width: 768px) {
  .scroll-indicator { bottom: 15vh !important; z-index: 10000 !important; }
  .scroll-text { font-size: 15px; }
}

/* Scroll indicator for page 3 (black text, shows during rewind) */
.scroll-indicator-page3 {
  position: fixed;
  color: #000000;
  bottom: 10vh;
  left: 50%;
  transform: translateX(-50%) scale(0.6);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 100;
}
.scroll-indicator-page3 .scroll-text {
  font-size: 11px;
}

/* Scroll indicator for page 4 (black text on white) */
.scroll-indicator-page4 {
  color: #000000;
  bottom: 10vh;
  transform: translateX(-50%) scale(0.8);
}
.scroll-indicator-page4 .scroll-text {
  font-size: 13px;
}

/* Scroll indicator for page 5 (white text on blue) */
.scroll-indicator-page5 {
  color: #ffffff;
  bottom: 3vh;
  transform: translateX(-50%) scale(0.8);
}
.scroll-indicator-page5 .scroll-text {
  font-size: 13px;
}

/* Mobile fixes for reveal section */
@media (max-width: 768px) {
  .reveal-stage { top: 7vh; }
  .reveal-pin { padding: 0 4vw; padding-top: 14vh; }
  .reveal-title { max-width: 90vw; display: block; text-align: center; font-size: clamp(26px, 5vw, 36px); }
  .reveal-line { display: inline; }
  .reveal-title .word { display: inline; }
  .reveal-title #w-orb { 
    font-size: clamp(36px, 7vw, 48px) !important;
    text-transform: none;
    font-weight: 900;
    color: #ff8a2b !important; /* Solid orange color on mobile - no gradient */
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    background-clip: initial !important;
  }
  .scroll-indicator { display: none !important; }
  .reveal-title #w-bloo { font-size: clamp(36px, 7vw, 48px); }
  .video-anchor { top: 10vh; }
}

/* ===== Third page (Bloo awareness) ===== */
.third-root { --bg:#fbf8f2; --ink:#0a0a0a; --muted:#b7b8bb; --accent:#4aa3ff; background: var(--bg); position: relative; }
.third-stage { position:sticky; top:0; height:100vh; display:grid; grid-template-columns:50% 50%; align-items:center; justify-items:stretch; padding:0 clamp(16px,4vw,72px); z-index:0; overflow:hidden; }
.third-left { display:flex; align-items:center; justify-content:flex-end; padding-right:clamp(24px,6vw,80px); padding-left:clamp(24px,4vw,60px); position:relative; z-index:2; }
.third-tagline { font-size:clamp(37px,6.33vw,125px); line-height:1.05; font-weight:500; max-width:18ch; letter-spacing:-0.01em; color: var(--ink); }
.third-bloo { font-family:"Dancing Script",cursive; color:var(--accent); font-weight:700; font-size:1.05em; }
.third-you { color:var(--accent); font-weight:700; }
.third-right { display:flex; align-items:center; justify-content:flex-start; padding-left:0; position:relative; margin-left:-30%; width:160%; height:100%; }
.third-video-container { position:relative; width:100%; max-width:none; height:80vh; display:flex; align-items:center; justify-content:center; }
.third-video { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; transform: scale(1.35); }
.video-text-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; display: flex; align-items: flex-start; justify-content: flex-start; padding-top: 10%; padding-left: 15%; z-index: 10; }
.video-text { font-size: clamp(14px, 1.6vw, 20px); font-weight: 600; color: #000000; text-align: left; opacity: 0; transition: opacity 0.2s ease-out; text-shadow: 0 0 15px rgba(255,255,255,0.7); line-height: 1.2; max-width: 80%; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; will-change: opacity; transform: translateZ(0); -webkit-font-smoothing: antialiased; }
.video-text-small { display: block; font-size: clamp(11px, 1.2vw, 15px); font-weight: 400; margin-top: 2px; }
.multi-text-overlay .video-text-small { display: block; font-size: clamp(11px, 1.2vw, 15px); font-weight: 400; margin-top: 2px; }
/* Proactive accent flash */
/* Proactive flash composed with the text block so it shares z-index and timing */
/* Desktop-only image replacement for Proactive text+flash */
.proactive-img { display: none; }
@media (min-width: 769px) {
  .proactive-img {
    display: block;
    max-width: clamp(140px, 14.7vw, 273px);
    height: auto;
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.7));
    opacity: 1;
    transition: opacity 0.3s ease;
  }
  /* Larger size for Presence and Learning images */
  .multi-text-overlay img[src*="second_text.png"] {
    max-width: clamp(210px, 22vw, 410px);
  }
  /* Even larger for Learning image */
  .multi-text-overlay img[src*="third_text.png"] {
    max-width: clamp(280px, 29vw, 540px);
  }
}
@media (max-width: 768px) {
  .video-text { 
    font-size: clamp(12px, 3vw, 18px) !important; 
    line-height: 1.3 !important;
    max-width: 90% !important;
  }
  .video-text-small { 
    font-size: clamp(10px, 2.5vw, 14px) !important; 
    margin-top: 3px !important;
  }
  .video-text-overlay { 
    padding-top: 8% !important; 
    padding-bottom: 0 !important; 
    padding-left: 6% !important; 
    padding-right: 6% !important;
    align-items: flex-start !important; 
    justify-content: flex-start !important; 
  }
  .multi-text-overlay {
    max-width: 85% !important;
    margin-bottom: 8px !important;
  }
}
.third-track { height:70vh; }
@media (max-width:1440px) and (min-width:1001px){
  .third-right { margin-left:-30%; width:160%; height:100%; }
  .third-video-container { max-width:none; height:80vh; }
}
@media (max-width:1000px){
  .third-stage { grid-template-columns:1fr; padding:16px 24px; gap:8px; }
  .third-left { justify-content:center; padding:0; z-index:auto; }
  .third-tagline { text-align:center; max-width:20ch; }
  .third-right { padding-left:0; margin-left:0; width:100%; }
  .third-video-container { margin-inline:auto; max-width:468px; }
  .third-track { height: 140vh; }
}
@media (max-width:768px){
  .third-stage { 
    top: 0; 
    padding: 16px 24px !important;
    gap: 24px !important; 
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }
  .third-left {
    padding: 0 !important;
    justify-content: center !important;
    order: 1;
    padding-top: 8vh !important;
  }
  .third-tagline { 
    font-size: clamp(34px, 10.14vw, 53px) !important; 
    margin-bottom: 16px !important;
    text-align: center !important;
  }
  .third-right { 
    margin-top: 0 !important; 
    margin-left: 0 !important; 
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    order: 2;
  }
  .third-video-container { 
    max-width: 100% !important; 
    width: 100% !important;
    min-height: auto !important;
    height: 60vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    overflow: hidden !important;
  }
  .third-video {
    transform: scale(1.6) !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    display: block !important;
  }
}
@media (max-width:600px){
  .third-tagline { 
    font-size:clamp(28px,8vw,44px) !important; 
    max-width:100%; 
  }
  .third-video-container { 
    height: 55vh !important;
  }
  .third-video {
    transform: scale(1.8) !important;
  }
}

/* ===== Page 4-5 container for overlay transition ===== */
.page-45-container {
  position: relative;
  margin-top: -10vh;
}
.page-45-track {
  height: 200vh;
}

/* ===== Fourth page (Safety & Privacy) ===== */
.fourth-root { 
  background: #000000; 
  min-height: 100vh; 
  height: 100vh;
  display: grid; 
  place-items: center; 
  padding: 4vh 4vw; 
  position: sticky;
  top: 0;
  z-index: 4;
}
.fourth-stage { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(40px, 6vw, 120px); max-width: 1400px; width: 100%; }
.fourth-left { display: flex; align-items: center; justify-content: center; }
.fourth-image-placeholder { 
  width: 100%; 
  max-width: 550px; 
  aspect-ratio: 1; 
  background: transparent; 
  border-radius: 24px; 
  overflow: hidden; 
  display: flex; 
  align-items: flex-start; 
  justify-content: center; 
  position: relative;
  box-shadow: none;
  margin-top: -80px;
}
.fourth-image-placeholder img { width: 100%; height: 100%; object-fit: cover; }
.fourth-video { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  display: block;
  border-radius: 24px;
}
.fourth-right { padding: 0 clamp(20px, 4vw, 60px); }
.fourth-title { font-size: clamp(32px, 4vw, 56px); font-weight: 900; letter-spacing: 0.5px; margin: 0 0 clamp(24px, 3vh, 40px) 0; color: #ffffff; }
.fourth-text { font-size: clamp(20px, 2.5vw, 36px); line-height: 1.4; font-weight: 600; margin: 0 0 16px 0; color: #ffffff; }
.fourth-fanatics { color: #4aa3ff; font-weight: 800; }
.fourth-learn-more { font-size: clamp(16px, 1.8vw, 24px); color: #4aa3ff; font-weight: 600; margin: 0; cursor: pointer; transition: opacity 0.3s ease; }
.fourth-learn-more:hover { opacity: 0.7; }

/* Flip Card Styles */
.fourth-flip-container {
  perspective: 1000px;
  width: 100%;
  min-height: 400px;
}
.fourth-flip-inner {
  position: relative;
  width: 100%;
  min-height: 400px;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}
.fourth-flip-container.flipped .fourth-flip-inner {
  transform: rotateY(180deg);
}
.fourth-flip-front,
.fourth-flip-back {
  position: absolute;
  width: 100%;
  min-height: 400px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.fourth-flip-back {
  transform: rotateY(180deg);
  background: rgba(20, 20, 20, 0.95);
  border-radius: 20px;
  padding: clamp(28px, 3.5vw, 40px);
  overflow-y: auto;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.fourth-back-text {
  font-size: clamp(13px, 1.3vw, 15px);
  line-height: 1.55;
  color: #ffffff;
  margin: 0 0 16px 0;
  text-align: left;
}

/* Responsive for page 4 */
@media (max-width: 1000px) {
  .fourth-stage { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .fourth-image-placeholder { max-width: 350px; margin: 0 auto; }
  .fourth-right { padding: 0 20px; }
}
@media (max-width: 768px) {
  .fourth-image-placeholder { max-width: 280px; }
  .fourth-title { font-size: clamp(34px, 8.4vw, 58px); }
  .fourth-text { font-size: clamp(22px, 6vw, 38px); }
  .fourth-flip-back { max-height: 500px; padding: 20px; }
  .fourth-back-text { font-size: 13px; }
}

/* ===== Capabilities Page (What Bloo Can Do) - White with Orb Colors ===== */
.capabilities-container {
  position: relative;
}
.capabilities-track {
  height: 150vh;
}
.capabilities-root {
  background: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 40px 6vw 50px;
  position: sticky;
  top: 0;
  z-index: 5;
  overflow: hidden;
}

/* Orb Logo Colors on White - matching step 1 dashboard/profile */
.cap-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.7;
  pointer-events: none;
  animation: capFloat 20s ease-in-out infinite;
}
.cap-orb-1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(255, 138, 43, 0.4) 0%, rgba(255, 107, 107, 0.2) 50%, transparent 70%);
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}
.cap-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.35) 0%, rgba(155, 89, 182, 0.15) 50%, transparent 70%);
  top: 20%;
  right: -80px;
  animation-delay: -7s;
  animation-duration: 25s;
}
.cap-orb-3 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(47, 140, 255, 0.35) 0%, rgba(1, 160, 226, 0.15) 50%, transparent 70%);
  bottom: -50px;
  left: 30%;
  animation-delay: -12s;
  animation-duration: 22s;
}
.cap-orb-4 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 138, 43, 0.3) 0%, rgba(168, 85, 247, 0.1) 50%, transparent 70%);
  bottom: 40%;
  right: 25%;
  animation-delay: -18s;
  animation-duration: 28s;
}
@keyframes capFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(40px, -50px) scale(1.05); }
  50% { transform: translate(-30px, 30px) scale(0.95); }
  75% { transform: translate(50px, 40px) scale(1.02); }
}

.capabilities-wrap {
  max-width: 1100px;
  width: 100%;
  z-index: 1;
}

.capabilities-header {
  text-align: center;
  margin-bottom: 36px;
}
.capabilities-title {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 12px 0;
  line-height: 1.1;
}
.cap-bloo {
  font-family: 'Dancing Script', cursive;
  font-weight: 700;
  color: #4aa3ff;
  font-size: 1.1em;
}
.capabilities-subtitle {
  font-size: clamp(14px, 1.6vw, 17px);
  color: rgba(26, 26, 46, 0.65);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* Liquid Glass Cards - True Frosted Glass like Dashboard */
.cap-card {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  padding: 24px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.cap-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.8) 50%, transparent 100%);
  pointer-events: none;
}
.cap-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}
.cap-card:hover {
  transform: translateY(-6px) scale(1.02);
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.1),
    0 0 60px rgba(168, 85, 247, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.cap-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 138, 43, 0.15) 0%, rgba(168, 85, 247, 0.15) 50%, rgba(47, 140, 255, 0.15) 100%);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  position: relative;
  z-index: 1;
}
.cap-icon svg {
  width: 24px;
  height: 24px;
}
.cap-card-title {
  font-size: 17px;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0 0 8px 0;
  position: relative;
  z-index: 1;
}
.cap-card-desc {
  font-size: 13px;
  color: rgba(26, 26, 46, 0.7);
  line-height: 1.5;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* Scroll indicator - dark for white background */
.scroll-indicator-cap {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(26, 26, 46, 0.4);
  z-index: 10;
}
.scroll-indicator-cap .scroll-text {
  color: rgba(26, 26, 46, 0.4);
}
.scroll-indicator-cap svg {
  stroke: rgba(26, 26, 46, 0.4);
}

/* Responsive */
@media (max-width: 900px) {
  .capabilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .capabilities-root {
    padding: 36px 5vw 45px;
  }
}
@media (max-width: 600px) {
  .capabilities-root {
    padding: 30px 5vw 40px;
  }
  .capabilities-header {
    margin-bottom: 24px;
  }
  .capabilities-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .cap-card {
    padding: 20px;
    border-radius: 20px;
  }
  .cap-icon {
    width: 40px;
    height: 40px;
  }
  .cap-card-title {
    font-size: 15px;
  }
  .cap-card-desc {
    font-size: 12px;
  }
  .cap-orb {
    filter: blur(70px);
    opacity: 0.6;
  }
  .cap-orb-1 { width: 280px; height: 280px; }
  .cap-orb-2 { width: 240px; height: 240px; }
  .cap-orb-3 { width: 220px; height: 220px; }
  .cap-orb-4 { width: 180px; height: 180px; }
  .capabilities-track { height: 100vh; }
}

/* ===== Page 5-6 container for overlay transition ===== */
.page-56-container {
  position: relative;
}
.page-56-track {
  height: 200vh;
}

/* ===== Fifth page (Discover Apps) - Liquid Glass ===== */
.fifth-root { 
  --sq: clamp(12px, 1.8vw, 22px);
  --white: #ffffff;
  --light: rgba(255,255,255,0.04);
  --heavy: rgba(255,255,255,0.86);
  /* Liquid glass colorful dark background - matching dashboard */
  background: linear-gradient(135deg, #0d0d1a 0%, #1a1a2e 50%, #0f0f1f 100%);
  min-height: 100vh;
  height: 100vh;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: sticky;
  top: 0;
  z-index: 5;
  margin-top: -100vh;
}

/* Liquid glass orb container */
.fifth-orb-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

/* Multiple colorful orbs like dashboard */
.fifth-root .orb-1 {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(1, 160, 226, 0.5) 0%, rgba(0, 102, 170, 0.3) 40%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  top: -15%;
  left: -10%;
  animation: fifthOrb1 25s ease-in-out infinite;
}

.fifth-root .orb-2 {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.45) 0%, rgba(124, 58, 237, 0.25) 40%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  top: 50%;
  right: -8%;
  animation: fifthOrb2 30s ease-in-out infinite;
}

.fifth-root .orb-3 {
  position: absolute;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.4) 0%, rgba(190, 24, 93, 0.2) 40%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  bottom: -10%;
  left: 25%;
  animation: fifthOrb3 22s ease-in-out infinite;
}

.fifth-root .orb-4 {
  position: absolute;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.4) 0%, rgba(8, 145, 178, 0.2) 40%, transparent 70%);
  border-radius: 50%;
  filter: blur(70px);
  top: 30%;
  left: 15%;
  animation: fifthOrb4 28s ease-in-out infinite;
}

@keyframes fifthOrb1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(80px, 40px) scale(1.1); }
  50% { transform: translate(40px, 80px) scale(0.95); }
  75% { transform: translate(-30px, 40px) scale(1.05); }
}
@keyframes fifthOrb2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-60px, -40px) scale(1.15); }
  66% { transform: translate(-30px, 60px) scale(0.9); }
}
@keyframes fifthOrb3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(100px, -60px) scale(1.2); }
}
@keyframes fifthOrb4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(50px, -30px) scale(0.9); }
  75% { transform: translate(-50px, 50px) scale(1.1); }
}

/* Subtle grid overlay */
.fifth-root::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(var(--light) 1px, transparent 1px),
    linear-gradient(90deg, var(--light) 1px, transparent 1px);
  background-size: var(--sq) var(--sq);
  pointer-events: none;
  z-index: 1;
}
.fifth-wrap {
  max-width: 100%;
  width: 100%;
  padding: 2vh 2vw;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.fifth-header {
  text-align: center;
  padding: 0 0 2vh 0;
  flex-shrink: 0;
}
.fifth-title {
  margin: 0 0 1vh 0;
  font-weight: 800;
  line-height: 1;
  font-size: clamp(24px, 4.5vw, 48px);
  text-shadow: 0 2px 0 rgba(0,0,0,0.1);
}
.fifth-subtitle {
  margin: 0 auto;
  max-width: 700px;
  font-size: clamp(12px, 1.5vw, 16px);
  line-height: 1.4;
  opacity: 0.9;
  font-weight: 400;
}
/* Scrolling Apps Container */
.fifth-apps-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 20px 0;
}
.fifth-apps-wrapper::before,
.fifth-apps-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 10;
  pointer-events: none;
}
.fifth-apps-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #0d0d1a 0%, transparent 100%);
}
.fifth-apps-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #0d0d1a 0%, transparent 100%);
}

.fifth-apps-grid {
  display: flex;
  gap: 24px;
  animation: scrollApps 40s linear infinite;
  width: max-content;
}
.fifth-apps-grid:hover {
  animation-play-state: paused;
}

@keyframes scrollApps {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.fifth-app-item {
  perspective: 1000px;
  width: 160px;
  flex-shrink: 0;
}
.fifth-app-flip {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
  cursor: pointer;
}
.fifth-app-item:hover .fifth-app-flip {
  transform: rotateY(180deg);
}
.fifth-app-front,
.fifth-app-back {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  width: 100%;
}
.fifth-app-front {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.fifth-app-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotateY(180deg);
  /* Liquid Glass Effect */
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.fifth-app-back-title {
  margin: 0 0 6px 0;
  font-size: clamp(13px, 1.3vw, 16px);
  font-weight: 700;
  color: #01A0E2;
}
.fifth-app-back-desc {
  margin: 0;
  font-size: clamp(10px, 1vw, 12px);
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
}
.fifth-app-card {
  width: 100%;
  aspect-ratio: 1;
  flex-shrink: 0;
  display: block;
}
.fifth-app-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.fifth-app-name {
  margin: 0;
  color: #ffffff;
  font-size: clamp(11px, 1.2vw, 14px);
  font-weight: 500;
  opacity: 0.95;
  text-align: center;
}
.fifth-footer {
  text-align: center;
  padding: 2vh 0 0 0;
  font-size: clamp(11px, 1.5vw, 14px);
  opacity: 0.9;
  flex-shrink: 0;
}
.fifth-footer a {
  color: #fff;
  text-underline-offset: 3px;
}
@media (max-width: 1000px) {
  .fifth-apps-grid { gap: 20px; }
  .fifth-app-item { width: 140px; }
  .fifth-app-card { max-width: 140px; }
  .fifth-app-name { font-size: 12px; }
}
@media (max-width: 760px) {
  .fifth-root { 
    --sq: clamp(8px, 2.1vw, 18px); 
    height: 100vh; 
    min-height: 100vh; 
    padding-top: 8vh !important;
  }
  .fifth-wrap {
    padding: 2vh 4vw !important;
  }
  .fifth-header {
    padding: 0 0 1.5vh 0 !important;
  }
  .fifth-title { 
    font-size: clamp(36px, 9vw, 64px) !important; 
    line-height: 1.1 !important;
    margin-bottom: 1.5vh !important;
  }
  .fifth-subtitle { 
    font-size: clamp(13px, 3.5vw, 17px) !important; 
    line-height: 1.4 !important;
    padding: 0 2vw !important;
  }
  .fifth-apps-grid { gap: 16px; animation-duration: 30s; }
  .fifth-app-item { width: 120px; }
  .fifth-app-card { max-width: 120px; }
  .fifth-app-name { font-size: 11px; }
  .fifth-app-hide-mobile { display: flex; } /* Show all on mobile too */
  .fifth-apps-wrapper::before,
  .fifth-apps-wrapper::after { width: 50px; }
  .fifth-app-back { padding: 12px; }
  .fifth-app-back-title { font-size: 13px; margin-bottom: 6px; }
  .fifth-app-back-desc { font-size: 10px; line-height: 1.3; }
}
@media (max-width: 480px) {
  .fifth-app-item { width: 100px; }
  .fifth-app-card { max-width: 100px; }
  .fifth-apps-grid { gap: 12px; animation-duration: 25s; }
  .fifth-app-name { font-size: 10px; }
}

/* ===== Sixth page (Bloo Product Hero) - Liquid Glass with Image Cycling ===== */
.sixth-root {
  background: #ffffff;
  min-height: 100vh;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6vh 6vw;
  position: sticky;
  top: 0;
  z-index: 6;
  margin-top: -100vh;
  overflow: hidden;
  position: relative;
}
/* Remove the old sketch background */
.sixth-root::before {
  display: none;
}

.sixth-wrap {
  max-width: 1400px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Left side - Image cycling container */
.sixth-image-cycle {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  margin: 0 auto;
}

.cycle-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  gap: 4px;
}

.cycle-cell {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.cycle-cell .thumb-part,
.cycle-cell .founder-part {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 800% 800%;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.cycle-cell .thumb-part {
  opacity: 1;
  transform: scale(1);
}

.cycle-cell .founder-part {
  opacity: 0;
  transform: scale(0.8);
}

.cycle-cell.show-founder .thumb-part {
  opacity: 0;
  transform: scale(0.8);
}

.cycle-cell.show-founder .founder-part {
  opacity: 1;
  transform: scale(1);
}

/* Right side - Content */
.sixth-content {
  text-align: left;
  position: relative;
  z-index: 1;
}

.sixth-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 600;
  margin: 0 0 clamp(16px, 2vh, 24px) 0;
  color: #000000;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.sixth-orb {
  background: linear-gradient(90deg, #ff8a2b 0%, #a855f7 50%, #2f8cff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.sixth-bloo {
  font-family: "Dancing Script", cursive;
  color: #4aa3ff;
  font-weight: 700;
}

.sixth-subtitle {
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.5;
  color: #333333;
  margin: 0 0 clamp(24px, 4vh, 40px) 0;
  font-weight: 400;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sixth-invite-container {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  min-height: 56px;
}

/* Liquid Glass Button */
.sixth-btn {
  font-size: clamp(14px, 1.6vw, 18px);
  padding: 14px 32px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.sixth-btn-invite {
  /* Vibrant Liquid Glass Effect - Readable on white */
  background: linear-gradient(135deg, rgba(1, 160, 226, 0.95) 0%, rgba(74, 163, 255, 0.9) 50%, rgba(168, 85, 247, 0.85) 100%);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  color: #ffffff;
  cursor: pointer;
  font-family: inherit;
  position: absolute;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  box-shadow: 
    0 8px 32px rgba(1, 160, 226, 0.4),
    0 0 60px rgba(74, 163, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  padding: 18px 44px;
  font-size: clamp(15px, 1.8vw, 18px);
  letter-spacing: 0.3px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  border-radius: 20px;
}

.sixth-btn-invite:hover {
  background: linear-gradient(135deg, rgba(1, 160, 226, 1) 0%, rgba(74, 163, 255, 0.95) 50%, rgba(168, 85, 247, 0.9) 100%);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 
    0 12px 44px rgba(1, 160, 226, 0.5),
    0 0 80px rgba(74, 163, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: translateY(-3px) scale(1.02);
}

.sixth-btn-invite.hide {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
}

.sixth-code-form {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  align-items: center;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.27s ease 0.13s, transform 0.27s ease 0.13s;
  pointer-events: none;
}

.sixth-code-form.show {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.code-boxes {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
}

/* Liquid Glass Code Boxes */
.code-box {
  width: 54px;
  height: 54px;
  padding: 0;
  font-size: 22px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  outline: none;
  text-align: center;
  font-family: inherit;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #1d1d1f;
  transition: all 0.3s ease;
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.code-box:focus {
  border-color: #0071e3;
  background: rgba(0, 113, 227, 0.05);
  box-shadow: 
    0 4px 16px rgba(0, 113, 227, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.code-box.error {
  border-color: #ff3b30;
}

.sixth-btn-submit {
  background: rgba(0, 113, 227, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #0071e3;
  border: 1px solid rgba(0, 113, 227, 0.3);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s ease;
  height: 54px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 600;
  box-shadow: 
    0 4px 24px rgba(0, 113, 227, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.sixth-btn-submit:hover {
  background: rgba(0, 113, 227, 0.15);
  transform: translateY(-1px);
}

.sixth-btn-submit.active {
  background: linear-gradient(135deg, #0071e3 0%, #0077ed 100%);
  color: #ffffff;
  border-color: transparent;
}

.sixth-btn-submit.active:hover {
  background: linear-gradient(135deg, #0077ed 0%, #0088ff 100%);
}

/* Mobile adjustments for code entry */
@media (max-width: 768px) {
  .code-boxes { gap: 8px; }
  .code-box { width: 48px; height: 48px; font-size: 20px; }
  .sixth-btn-submit { height: 48px; padding: 0 20px; font-size: 14px; }
}

/* Responsive for page 6 */
@media (max-width: 900px) {
  .sixth-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .sixth-image-cycle {
    max-width: 350px;
    order: 1;
  }
  
  .sixth-content {
    text-align: center;
    order: 2;
  }
  
  .sixth-invite-container {
  justify-content: center;
}
  
  .sixth-code-form {
    justify-content: center;
}
}

@media (max-width: 768px) {
  .page-56-track { height: 100vh; }
  .sixth-root { 
    padding: 4vh 5vw; 
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    margin-top: -100vh;
  }
  .sixth-image-cycle {
    max-width: 280px;
  }
  .sixth-title { font-size: clamp(28px, 7vw, 48px); margin-bottom: 12px; line-height: 1.15; }
  .sixth-subtitle { font-size: clamp(14px, 3.5vw, 18px); margin-bottom: 24px; line-height: 1.4; }
  .sixth-btn { padding: 12px 24px; font-size: clamp(13px, 3.5vw, 16px); }
}
