/* TaskOrbit — All-in-One Office Task & Dependency Management Platform */
:root {
  --taskorbit-orange: #EA580C;
  --taskorbit-orange-hover: #C2410C;
  --taskorbit-orange-light: #FFF7ED;
  --taskorbit-navy: #0B1120;
  --taskorbit-navy-surface: #0F172A;
  --taskorbit-indigo: #4F46E5;
  --taskorbit-emerald: #059669;
  --taskorbit-card-border: #E2E8F0;
}

* {
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1E293B;
  background-color: #FFFFFF;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Custom InField Badges */
.infield-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.infield-badge-orange {
  background: #FFF7ED;
  color: #C2410C;
  border: 1px solid #FFEDD5;
}

.infield-badge-navy {
  background: #0F172A;
  color: #F8FAFC;
  border: 1px solid #334155;
}

.infield-badge-indigo {
  background: #EEF2FF;
  color: #4338CA;
  border: 1px solid #C7D2FE;
}

.infield-badge-emerald {
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
}

/* Department Badges */
.dept-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.dept-marketing { background: #EFF6FF; color: #1D4ED8; border: 1px solid #BFDBFE; }
.dept-video { background: #FAF5FF; color: #7E22CE; border: 1px solid #E9D5FF; }
.dept-dev { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; }
.dept-testing { background: #FEF3C7; color: #B45309; border: 1px solid #FDE68A; }
.dept-content { background: #FFF1F2; color: #BE123C; border: 1px solid #FECDD3; }

/* Status Badges */
.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 700;
}

.status-completed { background: #ECFDF5; color: #059669; }
.status-progress { background: #EFF6FF; color: #2563EB; }
.status-waiting { background: #FFF7ED; color: #EA580C; }
.status-blocked { background: #FEF2F2; color: #DC2626; }

/* Dependency Arrow Flow Animation */
@keyframes flowPulse {
  0%, 100% { opacity: 0.4; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(4px); }
}

.flow-arrow-animated {
  animation: flowPulse 2s infinite ease-in-out;
}

/* Glow effects */
.glow-orange {
  box-shadow: 0 0 35px -5px rgba(234, 88, 12, 0.25);
}

.glow-navy {
  box-shadow: 0 20px 40px -15px rgba(11, 17, 32, 0.3);
}

/* Glassmorphism elements */
.glass-panel {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card-light {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

/* Toast Notification */
#toast-notification {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  transform: translate(-50%, 100%);
  opacity: 0;
  pointer-events: none;
}

#toast-notification.show {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

/* Simulator Custom Tabs */
.sim-tab-btn {
  transition: all 0.2s ease;
}

.sim-tab-btn.active {
  background: #EA580C;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.35);
}

/* Custom Scrollbar for simulator content */
.custom-scrollbar::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #EA580C;
}

/* Mobile Sticky Bottom CTA Bar */
.mobile-bottom-bar {
  display: none;
}

@media (max-width: 640px) {
  .mobile-bottom-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 0.75rem 1rem;
    background: rgba(11, 17, 32, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
}

/* FAQ Accordion Transitions */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, opacity 0.2s ease-out;
  opacity: 0;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  opacity: 1;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* Demo Modal Backdrop */
.demo-modal-backdrop {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.demo-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}
