/* ==========================================================================
   KHEE KHEE - SECTION 14: SCALE YOUR CREATOR MARKETING WITH KHEE KHEE
   Ultra-Compact Hub Architecture: Tight Vertical Rhythm,
   Centered Section Header, Centralized Glassmorphic Hub Card,
   Capsule UI for Scaling Realities, Infrastructure Highlight Callout Box.
   ========================================================================== */

.scale-section {
  position: relative;
  padding: 165px 0;
  background: linear-gradient(180deg, #07090E 0%, #08101E 50%, #07090E 100%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

/* Ambient Radial Glow */
.scale-section::before {
  content: "";
  position: absolute;
  top: 30%;
  left: 30%;
  transform: translate(-50%, -50%);
  width: 740px;
  height: 380px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.14) 0%, rgba(26, 47, 160, 0.04) 50%, transparent 75%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.scale-section::after {
  content: "";
  position: absolute;
  bottom: 25%;
  right: 25%;
  transform: translate(50%, 50%);
  width: 640px;
  height: 340px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.1) 0%, rgba(56, 189, 248, 0.04) 50%, transparent 75%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.scale-container {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   CENTERED SECTION HEADER
   ========================================================================== */
.scale-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 60px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scale-tag {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.scale-title {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.2;
  margin-bottom: 12px;
}

.scale-desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
  max-width: 740px;
}

/* Floating Tagline Pill */
.scale-tagline-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 8px 20px;
  background: rgba(14, 21, 38, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--border-radius-pill);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 14px -3px rgba(0, 0, 0, 0.4), 0 0 12px rgba(56, 189, 248, 0.1);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.scale-tagline-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.5), 0 0 16px rgba(56, 189, 248, 0.18);
}

.scale-tagline-pill .tagline-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38BDF8;
  box-shadow: 0 0 8px #38BDF8;
  flex-shrink: 0;
  animation: scalePulseDot 2.2s infinite ease-in-out;
}

@keyframes scalePulseDot {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.85;
  }

  50% {
    transform: scale(1.4);
    opacity: 1;
    box-shadow: 0 0 14px #38BDF8;
  }
}

.scale-tagline-pill .tagline-text {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: #E2E8F0;
  letter-spacing: -0.01em;
}

.scale-tagline-pill .tagline-text strong {
  color: #38BDF8;
  font-weight: 700;
}

/* ==========================================================================
   UNIFIED SCALE HUB CARD
   ========================================================================== */
.scale-hub-wrapper {
  max-width: 980px;
  margin: 0 auto;
}

.scale-hub-card {
  position: relative;
  background: rgba(14, 21, 38, 0.72);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 36px 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 14px 36px -10px rgba(0, 0, 0, 0.5), 0 0 24px rgba(56, 189, 248, 0.08);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease,
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.3s ease;
  overflow: hidden;
}

/* Luminous Top Accent Border */
.scale-hub-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1A2FA0, #38BDF8, #818CF8, #C084FC);
  opacity: 0.55;
  transition: opacity 0.3s ease;
}

.scale-hub-card:hover {
  transform: translateY(-4px);
  background: rgba(17, 26, 48, 0.88);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 24px 52px -12px rgba(0, 0, 0, 0.65), 0 0 32px rgba(56, 189, 248, 0.12);
}

.scale-hub-card:hover::before {
  opacity: 1;
}

/* Top Meta Row */
.scale-hub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.scale-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: var(--border-radius-pill);
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
}

.scale-pill .pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38BDF8;
  box-shadow: 0 0 6px #38BDF8;
}

.scale-role-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  color: #94A3B8;
  transition: transform 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.scale-hub-card:hover .scale-role-icon {
  transform: rotate(5deg) scale(1.08);
  color: #38BDF8;
  border-color: rgba(56, 189, 248, 0.4);
}

/* Hub Titles & Narrative */
.scale-content-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scale-main-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.25;
}

.scale-desc-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   CAPSULE UI: "AS YOUR PROGRAM GROWS:"
   ========================================================================== */
.scale-hub-card .capsule-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 0 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.scale-hub-card .capsule-section-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #38BDF8;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.scale-hub-card .capsule-flow-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.scale-capsule {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: rgba(14, 21, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-pill);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: #E2E8F0;
  line-height: 1.35;
  cursor: default;
  user-select: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.scale-capsule .capsule-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38BDF8;
  box-shadow: 0 0 6px #38BDF8;
  flex-shrink: 0;
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.scale-capsule:hover {
  transform: translateY(-2px) scale(1.02);
  background: rgba(26, 47, 160, 0.25);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 6px 16px -3px rgba(0, 0, 0, 0.5), 0 0 14px rgba(56, 189, 248, 0.2);
  color: #FFFFFF;
}

.scale-capsule:hover .capsule-dot {
  transform: scale(1.4);
  background: #7DD3FC;
  box-shadow: 0 0 10px #7DD3FC;
}

/* ==========================================================================
   SCALE HIGHLIGHT CALLOUT BOX
   ========================================================================== */
.scale-highlight-box {
  position: relative;
  background: linear-gradient(135deg, rgba(26, 47, 160, 0.16) 0%, rgba(56, 189, 248, 0.08) 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--border-radius-md);
  padding: 16px 22px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 8px 0 0 0;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.scale-highlight-box:hover {
  border-color: rgba(56, 189, 248, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -5px rgba(0, 0, 0, 0.45), 0 0 16px rgba(56, 189, 248, 0.14);
}

.scale-highlight-box .highlight-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.2);
  color: #38BDF8;
  flex-shrink: 0;
  margin-top: 1px;
}

.scale-highlight-box .highlight-text {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  color: #F1F5F9;
  line-height: 1.55;
}

/* ==========================================================================
   SCROLL REVEAL & INTERACTIVE MOTION
   ========================================================================== */
.scale-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.scale-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.12s;
}

.delay-2 {
  transition-delay: 0.22s;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Mobile Stacking & Sizing Parity)
   ========================================================================== */
@media (max-width: 1024px) {
  .scale-section {
    padding: 120px 0;
  }

  .scale-header {
    margin-bottom: 48px;
  }
}

@media (max-width: 768px) {
  .scale-section {
    padding: 95px 0;
  }

  .scale-header {
    margin-bottom: 38px;
    gap: 6px;
  }

  .scale-hub-header {
    margin-bottom: 15px;
  }

  .scale-title {
    font-size: 1.85rem;
  }

  .scale-desc {
    font-size: 0.92rem;
  }

  .scale-tagline-pill {
    padding: 8px 16px;
  }

  .scale-tagline-pill .tagline-text {
    font-size: 0.82rem;
  }

  .scale-hub-card {
    padding: 26px 22px 24px;
    gap: 20px;
  }

  .scale-main-title {
    font-size: 1.25rem;
  }

  .scale-desc-text {
    font-size: 0.9rem;
  }

  .scale-hub-card .capsule-flow-container {
    gap: 8px;
  }

  .scale-capsule {
    padding: 7px 14px;
    font-size: 0.82rem;
  }

  .scale-highlight-box {
    padding: 14px 16px;
  }

  .scale-highlight-box .highlight-text {
    font-size: 0.88rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scale-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .scale-tagline-pill .tagline-pulse-dot {
    animation: none !important;
  }

  .scale-hub-card,
  .scale-capsule,
  .scale-highlight-box {
    transition: none !important;
    transform: none !important;
  }
}