/* ==========================================================================
   COLLABORATE PAGE STYLES
   ========================================================================== */

/* Sub-Navigation Sticky Bar - Modern Segmented Tab Style */
.collab-subnav {
  position: sticky;
  top: 1.5rem;
  z-index: 45;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 9999px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  padding: 0.375rem 0.5rem;
  margin: 0 auto;

  /* FIX: Allows the container to span max width on mobile and scroll internally */
  width: max-content;
  max-width: 100%;
  overflow-x: auto;

  gap: 0.375rem !important;
  transition: transform 0.3s ease;
}

/* Hide scrollbar for the subnav */
.collab-subnav::-webkit-scrollbar { display: none; }
.collab-subnav { -ms-overflow-style: none; scrollbar-width: none; }

.collab-subnav-link {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #64748b;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  position: relative;
  transition: background 0.2s ease-out, color 0.2s ease-out;
  white-space: nowrap;
  flex-shrink: 0; /* FIX: Prevents text from squishing on mobile */
}

.collab-subnav-link:hover {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.04);
}

.collab-subnav-link.active {
  color: #4f46e5;
  background: rgba(79, 70, 229, 0.1);
  box-shadow: inset 0 0 0 1px rgba(79, 70, 229, 0.15);
}

/* Anchor scroll padding to avoid hiding behind sticky navs */
.scroll-mt-nav { scroll-margin-top: 7rem; }

/* Reusable Feature Cards (Matched from corporate.css) */
.feature-card, .how-card {
  position: relative;
  backdrop-filter: blur(1.25rem) saturate(180%);
  -webkit-backdrop-filter: blur(1.25rem) saturate(180%);
  border: 0.0625rem solid rgba(255, 255, 255, 0.55) !important;
  box-shadow:
    inset 0 0.09375rem 0 rgba(255, 255, 255, 0.80),
    inset 0 -0.0625rem 0 rgba(0, 0, 0, 0.06),
    0 0.125rem 0.25rem rgba(0, 0, 0, 0.10),
    0 0.5rem 1.5rem rgba(0, 0, 0, 0.10);
  border-radius: 1.75rem;
  transform: translateZ(0);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.feature-card::before, .how-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(ellipse 110% 42% at 50% 0%, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0.18) 40%, transparent 68%);
  pointer-events: none; z-index: 0;
}
.feature-card > *, .how-card > * { position: relative; z-index: 1; }
.feature-card:hover, .how-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: inset 0 0.09375rem 0 rgba(255, 255, 255, 0.90), 0 0.5rem 2rem rgba(79, 70, 229, 0.12);
}

.how-card { padding: 1.5rem; scroll-snap-align: start; }
.how-num {
  font-family: 'Outfit', sans-serif; font-size: 2.5rem; font-weight: 900; line-height: 1;
  background: linear-gradient(135deg, #4f46e5, #a855f7);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 0.75rem;
}
.how-title { font-family: 'Outfit', sans-serif; font-size: 1rem; font-weight: 800; color: #0f172a; margin-bottom: 0.5rem; }
.how-desc { font-size: 0.8125rem; font-weight: 500; color: #64748b; line-height: 1.6; }

/* FAQ Styles (Matched from corporate.css) */
.faq-item { border-bottom: 0.0625rem solid rgba(226, 232, 240, 0.7); overflow: visible; }
.faq-item:last-child { border-bottom: none; }
.faq-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 0; background: none; border: none; cursor: pointer; outline: none;
  font-family: 'Outfit', sans-serif; font-size: 0.9375rem; font-weight: 700; color: #0f172a; text-align: left; gap: 1rem;
  transition: color 0.3s ease;
}
.faq-trigger:hover { color: #4f46e5; }
.faq-trigger .faq-icon {
  position: relative; width: 1.75rem; height: 1.75rem; border-radius: 0.5rem; flex-shrink: 0;
  background: rgba(255, 255, 255, 0.10); backdrop-filter: blur(1.25rem) saturate(180%);
  -webkit-backdrop-filter: blur(1.25rem) saturate(180%); border: 0.0625rem solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0.0625rem 0 rgba(255, 255, 255, 0.25), 0 0.125rem 0.25rem rgba(0, 0, 0, 0.18), 0 0.25rem 0.75rem rgba(0, 0, 0, 0.14);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  transition: background 0.3s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.faq-trigger .faq-icon::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(ellipse 100% 45% at 50% 0%, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.12) 45%, transparent 70%); pointer-events: none; z-index: 1;
}
.faq-trigger .faq-icon::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(ellipse 70% 30% at 50% 100%, rgba(255, 255, 255, 0.15) 0%, transparent 70%); pointer-events: none; z-index: 1;
}
.faq-trigger .faq-icon .material-symbols-outlined { font-size: 1rem; color: #4f46e5; position: relative; z-index: 2; }
.faq-trigger:hover .faq-icon {
  background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.30);
  box-shadow: inset 0 0.0625rem 0 rgba(255, 255, 255, 0.35), 0 0.25rem 0.5rem rgba(0, 0, 0, 0.20), 0 0.5rem 1.25rem rgba(79, 70, 229, 0.18);
}
.faq-item.open .faq-trigger .faq-icon {
  background: rgba(255, 255, 255, 0.16); border: 0.15625rem solid rgba(79, 70, 229, 0.70);
  box-shadow: inset 0 0.0625rem 0 rgba(255, 255, 255, 0.30), 0 0.125rem 0.375rem rgba(0, 0, 0, 0.16), 0 0.375rem 1rem rgba(79, 70, 229, 0.28);
  transform: rotate(45deg);
}
.faq-body { max-height: 0; overflow: hidden; transition: max-height 0.35s cubic-bezier(0.25, 1, 0.5, 1); }
.faq-item.open .faq-body { max-height: 18.75rem; }
.faq-body p { font-family: 'Outfit', sans-serif; font-size: 0.875rem; font-weight: 500; color: #64748b; line-height: 1.65; padding-bottom: 1.25rem; }

/* Marquee Belt (Matched from corporate.css) */
.marquee-section { overflow: hidden; border-top: 0.0625rem solid rgba(226, 232, 240, 0.6); border-bottom: 0.0625rem solid rgba(226, 232, 240, 0.6); background: #ffffff; }
.marquee-label { font-family: 'Outfit', sans-serif; font-weight: 700; color: #94a3b8; text-align: center; }
@media (min-width: 48rem) { .marquee-label { font-size: 0.625rem; letter-spacing: 0.18em; white-space: nowrap; } }
@media (max-width: 47.9375rem) { .marquee-label { font-size: 0.53125rem; letter-spacing: 0.1em; line-height: 1.4; } }
.marquee-track-wrapper { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%); mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%); }
.marquee-track { display: flex; align-items: center; gap: 0; width: max-content; animation: marqueeScroll 30s linear infinite; will-change: transform; }
.marquee-track:hover { animation-play-state: paused; }
@keyframes marqueeScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.marquee-item { display: flex; align-items: center; gap: 0.625rem; padding: 0 1.75rem; white-space: nowrap; flex-shrink: 0; cursor: default; transition: opacity 0.25s ease; }
.marquee-item:hover { opacity: 0.75; }

/* Dynamic Form Glass Field & Select (Matched from corporate.css) */
.form-field-glass {
  position: relative;
  background: rgba(255, 255, 255, 0.75) !important;
  border: 0.0625rem solid rgba(79, 70, 229, 0.2) !important;
  border-radius: 1.75rem !important;
  width: 100%;
  padding: 0.875rem 1.25rem !important;
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: #0f172a !important;
  outline: none !important;
  transition: box-shadow 0.35s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.35s ease, background 0.3s ease;
  backdrop-filter: blur(0.75rem);
  -webkit-backdrop-filter: blur(0.75rem);
  box-shadow: inset 0 0.0625rem 0 rgba(255, 255, 255, 0.9), 0 0.125rem 0.25rem rgba(79, 70, 229, 0.04), 0 0.5rem 1rem rgba(79, 70, 229, 0.03) !important;
}
.form-field-glass::placeholder { color: #64748b !important; font-weight: 400; opacity: 0.8; }
.form-field-glass:focus {
  border-color: rgba(79, 70, 229, 0.6) !important;
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: inset 0 0.0625rem 0 rgba(255, 255, 255, 0.9), 0 0 0 0.0625rem rgba(79, 70, 229, 0.15), 0 0 0.875rem 0.1875rem rgba(79, 70, 229, 0.15), 0 0.25rem 0.75rem rgba(79, 70, 229, 0.08) !important;
}
.form-field-glass:hover:not(:focus) {
  border-color: rgba(79, 70, 229, 0.4) !important;
  box-shadow: inset 0 0.0625rem 0 rgba(255, 255, 255, 0.9), 0 0.125rem 0.375rem rgba(79, 70, 229, 0.06), 0 0.5rem 1.25rem rgba(79, 70, 229, 0.05) !important;
}
textarea.form-field-glass { resize: none; line-height: 1.6; }

.custom-select-wrapper { position: relative; }
.custom-select-trigger {
  position: relative; width: 100%;
  background: rgba(255, 255, 255, 0.75) !important;
  border: 0.0625rem solid rgba(79, 70, 229, 0.2) !important;
  border-radius: 1.75rem !important;
  padding: 0.875rem 2.75rem 0.875rem 1.25rem !important;
  font-family: 'Outfit', sans-serif; font-size: 0.875rem; font-weight: 400;
  color: rgba(100, 116, 139, 0.8) !important;
  cursor: pointer; outline: none !important; text-align: left;
  transition: box-shadow 0.35s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.35s ease, background 0.3s ease;
  backdrop-filter: blur(0.75rem); -webkit-backdrop-filter: blur(0.75rem);
  box-shadow: inset 0 0.0625rem 0 rgba(255, 255, 255, 0.9), 0 0.125rem 0.25rem rgba(79, 70, 229, 0.04), 0 0.5rem 1rem rgba(79, 70, 229, 0.03) !important;
  display: flex; align-items: center; justify-content: space-between; user-select: none; height: 3.125rem;
}
.custom-select-trigger.has-value { color: #0f172a !important; font-weight: 500; }
.custom-select-trigger.open, .custom-select-trigger:focus {
  border-color: rgba(79, 70, 229, 0.6) !important; background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: inset 0 0.0625rem 0 rgba(255, 255, 255, 0.9), 0 0 0 0.0625rem rgba(79, 70, 229, 0.15), 0 0 0.875rem 0.1875rem rgba(79, 70, 229, 0.15), 0 0.25rem 0.75rem rgba(79, 70, 229, 0.08) !important;
}
.custom-select-trigger:hover:not(.open) {
  border-color: rgba(79, 70, 229, 0.4) !important;
  box-shadow: inset 0 0.0625rem 0 rgba(255, 255, 255, 0.9), 0 0.125rem 0.375rem rgba(79, 70, 229, 0.06), 0 0.5rem 1.25rem rgba(79, 70, 229, 0.05) !important;
}
.custom-select-icon { font-family: 'Material Symbols Outlined'; font-size: 1.25rem; font-weight: 300; color: #818cf8; flex-shrink: 0; transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), color 0.3s; }
.custom-select-trigger.open .custom-select-icon { transform: rotate(180deg); color: #4f46e5; }

.custom-select-dropdown {
  position: absolute; top: calc(100% + 0.5rem); left: 0; right: 0;
  background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(2rem) saturate(200%); -webkit-backdrop-filter: blur(2rem) saturate(200%);
  border: 0.0625rem solid rgba(255, 255, 255, 0.80);
  box-shadow: inset 0 0.0625rem 0 rgba(255, 255, 255, 0.90), 0 0.25rem 1rem rgba(0, 0, 0, 0.08), 0 1rem 2.5rem rgba(0, 0, 0, 0.10), 0 2rem 4rem rgba(0, 0, 0, 0.06);
  border-radius: 1.25rem; padding: 0.375rem; z-index: 100; opacity: 0; pointer-events: none;
  transform: translateY(0.375rem) scale(0.98); transform-origin: top center;
  transition: opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1), transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  max-height: 17.5rem; overflow-y: auto; overscroll-behavior: contain;
}
.custom-select-dropdown.open { opacity: 1; pointer-events: all; transform: translateY(0) scale(1); }
.custom-select-option {
  display: flex; align-items: center; gap: 0.625rem; padding: 0.625rem 0.875rem; border-radius: 0.875rem;
  font-family: 'Outfit', sans-serif; font-size: 0.8125rem; font-weight: 600; color: #334155; cursor: pointer; transition: background 0.3s ease, color 0.3s ease; position: relative;
}
.custom-select-option:hover { background: rgba(79, 70, 229, 0.07); color: #4f46e5; }
.custom-select-option.selected { background: rgba(79, 70, 229, 0.10); color: #4f46e5; }

/* Submit Button Glass (Matched from corporate.css) */
.submit-btn-glass {
  position: relative; background: #4f46e5; width: 100%;
  backdrop-filter: blur(1.25rem) saturate(180%); -webkit-backdrop-filter: blur(1.25rem) saturate(180%);
  border: 0.0625rem solid rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 0.0625rem 0 rgba(255, 255, 255, 0.10), inset 0 -0.0625rem 0 rgba(0, 0, 0, 0.15), 0 0.125rem 0.25rem rgba(0, 0, 0, 0.18), 0 0.375rem 0.875rem rgba(79, 70, 229, 0.35);
  color: #ffffff; overflow: hidden; height: 3.375rem; border-radius: 1.75rem;
  font-family: 'Outfit', sans-serif; font-size: 0.9375rem; font-weight: 800; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem; transition: transform 0.15s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.15s ease; outline: none; margin-top: 1rem;
}
.submit-btn-glass::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(ellipse 100% 45% at 50% 0%, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 45%, transparent 70%); pointer-events: none; z-index: 1; }
.submit-btn-glass::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(ellipse 70% 30% at 50% 100%, rgba(255, 255, 255, 0.18) 0%, transparent 70%); pointer-events: none; z-index: 1; }
.submit-btn-glass>* { position: relative; z-index: 2; }
.submit-btn-glass:hover { box-shadow: inset 0 0.0625rem 0 rgba(255, 255, 255, 0.15), inset 0 -0.0625rem 0 rgba(0, 0, 0, 0.18), 0 0.25rem 0.5rem rgba(0, 0, 0, 0.22), 0 0.75rem 1.75rem rgba(79, 70, 229, 0.50); transform: translateY(-0.125rem); }
.submit-btn-glass:active { transform: scale(0.98); }
.submit-btn-glass.success { background: #10b981; box-shadow: inset 0 0.0625rem 0 rgba(255, 255, 255, 0.15), 0 0.375rem 1.25rem rgba(16, 185, 129, 0.40); }

/* Other Base Helpers */
.dark-zone { position: relative; }
.crystal-glass {
  position: relative; background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(1.25rem) saturate(180%); -webkit-backdrop-filter: blur(1.25rem) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 1.25rem; overflow: hidden;
}
.nav-offset { padding-top: 5rem; }
@media (max-width: 47.9375rem) { .nav-offset { padding-top: 4.75rem; } }
@media (min-width: 64rem) { .nav-offset { padding-top: 5.25rem; } }
.section-container { max-width: 75rem; margin: 0 auto; padding: 0 1.5rem; }
.hero-container-wide { max-width: 90rem; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 48rem) { .hero-container-wide { padding: 0 2.5rem; } }
@media (min-width: 75rem) { .hero-container-wide { padding: 0 3rem; } }
[data-staggered-item] { opacity: 0; transform: translateY(1rem); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-staggered-item].is-visible { opacity: 1; transform: translateY(0); }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.dynamic-field { transition: opacity 0.3s ease, height 0.3s ease, margin 0.3s ease; }
.dynamic-field.hidden { opacity: 0; height: 0; margin: 0; pointer-events: none; overflow: hidden; }

@media (max-width: 47.9375rem) {
  .collab-hero { height: 20rem !important; }
  .how-card { padding: 1.25rem; }
  .how-num { font-size: 2rem; }
  .submit-btn-glass { font-size: 0.875rem; }
  .custom-select-trigger, .form-field-glass { font-size: 0.75rem !important; padding: 0.75rem 1rem !important; }
}

/* ══════════════════════════════════════════════════
   MOBILE MENU & SIDEBAR FIXES
   ═══════════════════════════════════════════════════ */
#mobile-menu { position: fixed; inset: 0; z-index: 200; pointer-events: none; visibility: hidden; transition: visibility 0s linear 0.40s; }
#mobile-menu.open { pointer-events: all; visibility: visible; transition-delay: 0s; }
#mobile-menu.closing { pointer-events: none; visibility: visible; transition-delay: 0s; }
#mobile-menu-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.35); backdrop-filter: blur(0.25rem); -webkit-backdrop-filter: blur(0.25rem); opacity: 0; transition: opacity 0.40s cubic-bezier(0.25, 1, 0.3, 1); }
#mobile-menu.open #mobile-menu-backdrop { opacity: 1; }
#mobile-menu.closing #mobile-menu-backdrop { opacity: 0; }
#mobile-menu-panel { position: absolute; top: 0; right: 0; bottom: 0; width: 80%; max-width: 20rem; transform: translateX(100%); transition: transform 0.40s cubic-bezier(0.25, 1, 0.3, 1); background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(1.25rem) saturate(180%); -webkit-backdrop-filter: blur(1.25rem) saturate(180%); border-left: 0.0625rem solid rgba(255, 255, 255, 0.1); box-shadow: inset 0.0625rem 0 0 rgba(255, 255, 255, 0.1), -0.25rem 0 2rem rgba(0, 0, 0, 0.25); overflow: hidden; }
#mobile-menu-panel::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 100% 45% at 50% 0%, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.12) 45%, transparent 70%); pointer-events: none; z-index: 1; }
#mobile-menu-panel::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 30% at 50% 100%, rgba(255, 255, 255, 0.15) 0%, transparent 70%); pointer-events: none; z-index: 1; }
#mobile-menu-panel>* { position: relative; z-index: 2; }
#mobile-menu.open #mobile-menu-panel { transform: translateX(0); }
#mobile-menu.closing #mobile-menu-panel { transform: translateX(100%); }
.glow-search-wrap, .mobile-glow-search-wrap { position: relative; border-radius: 6.1875rem; }
.glow-search-inner, .mobile-glow-inner { position: relative; z-index: 1; border-radius: inherit; }
.glow-search-wrap input { transition: box-shadow 0.35s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.35s ease; }
.glow-search-wrap:focus-within input { border-color: transparent !important; box-shadow: 0 0 0 0.0625rem rgba(255, 255, 255, 0.5), 0 0 0.625rem 0.125rem rgba(255, 255, 255, 0.4), 0 0 1.125rem 0.25rem rgba(70, 70, 175, 0.4); outline: none; }
#mobile-menu-search { background: rgba(255, 255, 255, 0.12); border: 0.0625rem solid rgba(255, 255, 255, 0.2); border-radius: 6.1875rem; padding: 0.625rem 1rem 0.625rem 2.5rem; color: #fff; font-size: 0.875rem; width: 100%; outline: none; transition: box-shadow 0.35s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.35s ease; }
#mobile-menu-search::placeholder { color: rgba(255, 255, 255, 0.5); }
#mobile-menu-search:focus { border-color: transparent !important; box-shadow: 0 0 0 0.0625rem rgba(255, 255, 255, 0.3), 0 0 0.625rem 0.1875rem rgba(255, 255, 255, 0.25), 0 0 1.375rem 0.375rem rgba(70, 70, 175, 0.5); }
.mobile-nav-link { display: flex; align-items: center; gap: 0.75rem; padding: 0.875rem 0; font-size: 1rem; font-weight: 600; color: rgba(255, 255, 255, 0.92); border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.08); transition: color 0.3s; text-decoration: none; }
.mobile-nav-link:last-child { border-bottom: none; }
.mobile-nav-link:active { color: #fff; }
.mobile-nav-link .mat-icon { font-size: 1.25rem; opacity: 0.7; font-family: 'Material Symbols Outlined'; font-weight: 300; letter-spacing: normal; text-transform: none; white-space: nowrap; word-wrap: normal; font-feature-settings: 'liga'; }

/* Prevent top hero text overflow on mobile */
@media (max-width: 47.9375rem) {
  .collab-hero { min-height: 24rem !important; height: auto !important; padding-top: 1rem; padding-bottom: 1rem; }
}