/* ============================================================================
   ULTRA-PREMIUM UI/UX ENHANCEMENTS
   ============================================================================
   Final polish layer for enterprise-grade experience
   ============================================================================ */

/* ══════════════════════════════════════════════════════════════════════════
   PREMIUM CURSOR SYSTEM (No Offset, True Position)
   ══════════════════════════════════════════════════════════════════════════ */

* {
  cursor: none !important;
}

@media (pointer: coarse) {
  * {
    cursor: auto !important;
  }
}

#cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 20px rgba(212, 186, 137, 0.6);
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
}

#cursor-ring {
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(212, 186, 137, 0.5);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease;
}

#cursor-halo {
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(212, 186, 137, 0.06) 0%, transparent 60%);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  filter: blur(15px);
  opacity: 0.25;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

body.is-hovering #cursor-dot {
  width: 12px;
  height: 12px;
  background: rgba(212, 186, 137, 1);
  box-shadow: 0 0 30px rgba(212, 186, 137, 0.8);
}

body.is-hovering #cursor-ring {
  width: 60px;
  height: 60px;
  border-color: rgba(212, 186, 137, 0.8);
  border-width: 2px;
}

body.is-hovering #cursor-halo {
  opacity: 0.12;
  filter: blur(20px);
}

/* ══════════════════════════════════════════════════════════════════════════
   SOFTER CARD GLOW EFFECTS
   ══════════════════════════════════════════════════════════════════════════ */

.revolutionary-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(
    800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(212, 186, 137, 0.06),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: -1;
}

.revolutionary-card:hover::before {
  opacity: 1;
}

.revolutionary-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 
    0 0 60px rgba(212, 186, 137, 0.03),
    inset 0 1px 1px rgba(255, 255, 255, 0.03);
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.revolutionary-card:hover::after {
  opacity: 1;
}

/* ══════════════════════════════════════════════════════════════════════════
   PREMIUM CONTACT CARD
   ══════════════════════════════════════════════════════════════════════════ */

.contact-section {
  background: linear-gradient(
    135deg,
    rgba(18, 18, 20, 0.95) 0%,
    rgba(24, 24, 28, 0.98) 100%
  );
  border: 1px solid rgba(212, 186, 137, 0.15);
  box-shadow: 
    0 40px 100px rgba(0, 0, 0, 0.8),
    inset 0 1px 1px rgba(255, 255, 255, 0.05),
    0 0 80px rgba(212, 186, 137, 0.05);
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(212, 186, 137, 0.3) 50%,
    transparent
  );
}

.contact-form-wrap {
  position: relative;
}

.form-input,
.form-textarea {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 14px 18px;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 14px;
  width: 100%;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
}

.form-input:hover,
.form-textarea:hover {
  border-color: rgba(212, 186, 137, 0.2);
  background: rgba(255, 255, 255, 0.03);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: rgba(212, 186, 137, 0.5);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 
    0 0 0 4px rgba(212, 186, 137, 0.08),
    0 10px 30px rgba(212, 186, 137, 0.15);
  transform: translateY(-2px);
}

.submit-btn {
  background: linear-gradient(
    135deg,
    rgba(212, 186, 137, 1) 0%,
    rgba(235, 225, 203, 1) 100%
  );
  color: #050506;
  border: none;
  padding: 16px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 10px 30px rgba(212, 186, 137, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.submit-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2) 0%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.submit-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 
    0 20px 50px rgba(212, 186, 137, 0.4),
    0 0 60px rgba(212, 186, 137, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.submit-btn:hover::before {
  opacity: 1;
}

.submit-btn:active {
  transform: translateY(-2px) scale(1.01);
  transition-duration: 0.1s;
}

/* ══════════════════════════════════════════════════════════════════════════
   PREMIUM FOOTER
   ══════════════════════════════════════════════════════════════════════════ */

.footer {
  background: linear-gradient(
    180deg,
    rgba(5, 5, 6, 0) 0%,
    rgba(5, 5, 6, 0.8) 20%,
    rgba(5, 5, 6, 1) 100%
  );
  border-top: 1px solid rgba(212, 186, 137, 0.1);
  position: relative;
  padding: 100px 0 40px;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(212, 186, 137, 0.3) 50%,
    transparent
  );
}

.footer-nav li a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
  position: relative;
}

.footer-nav li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-primary);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-nav li a:hover {
  color: var(--accent-primary);
  transform: translateX(4px);
}

.footer-nav li a:hover::after {
  width: 100%;
}

.footer-watermark {
  font-size: clamp(60px, 15vw, 180px);
  font-weight: 900;
  letter-spacing: -0.05em;
  background: linear-gradient(
    135deg,
    rgba(212, 186, 137, 0.03) 0%,
    rgba(212, 186, 137, 0.08) 50%,
    rgba(212, 186, 137, 0.03) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
  background-size: 200% 200%;
  background-position: var(--wm-x, 50%) 50%;
}

.footer-watermark-link:hover .footer-watermark {
  background: linear-gradient(
    135deg,
    rgba(212, 186, 137, 0.08) 0%,
    rgba(212, 186, 137, 0.15) 50%,
    rgba(212, 186, 137, 0.08) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 80px rgba(212, 186, 137, 0.2));
}

.back-to-top {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-soft);
  padding: 12px 24px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.back-to-top:hover {
  background: rgba(212, 186, 137, 0.1);
  border-color: rgba(212, 186, 137, 0.3);
  color: var(--accent-primary);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(212, 186, 137, 0.2);
}

.back-to-top svg {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.back-to-top:hover svg {
  transform: translateY(-4px);
}

/* ══════════════════════════════════════════════════════════════════════════
   HERO PM VALUE PROPOSITION SECTION
   ══════════════════════════════════════════════════════════════════════════ */

.pm-value-hero {
  position: relative;
  padding: 80px 0;
  background: linear-gradient(
    180deg,
    rgba(5, 5, 6, 0) 0%,
    rgba(18, 18, 20, 0.4) 50%,
    rgba(5, 5, 6, 0) 100%
  );
  border-top: 1px solid rgba(212, 186, 137, 0.1);
  border-bottom: 1px solid rgba(212, 186, 137, 0.1);
  margin: 60px 0;
}

.pm-value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.pm-value-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 32px;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.pm-value-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(212, 186, 137, 0.08),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.pm-value-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 186, 137, 0.2);
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(212, 186, 137, 0.1);
}

.pm-value-card:hover::before {
  opacity: 1;
}

.pm-value-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(212, 186, 137, 0.1) 0%,
    rgba(212, 186, 137, 0.05) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pm-value-card:hover .pm-value-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(
    135deg,
    rgba(212, 186, 137, 0.2) 0%,
    rgba(212, 186, 137, 0.1) 100%
  );
  box-shadow: 0 10px 30px rgba(212, 186, 137, 0.2);
}

.pm-value-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.pm-value-desc {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.7;
}

.pm-value-stat {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent-primary);
  margin-top: 16px;
  letter-spacing: -0.02em;
}

/* ══════════════════════════════════════════════════════════════════════════
   UNIVERSAL HOVER EFFECTS
   ══════════════════════════════════════════════════════════════════════════ */

.action-card,
.dropdown-link,
.pill-label,
.quick-select-btn,
.sig-action,
.glossary-btn {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.action-card:hover,
.dropdown-link:hover,
.pill-label:hover,
.quick-select-btn:hover,
.sig-action:hover,
.glossary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(212, 186, 137, 0.15);
}

/* ══════════════════════════════════════════════════════════════════════════
   MOBILE OPTIMIZATIONS
   ══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 860px) {
  .pm-value-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pm-value-card {
    padding: 24px;
  }

  .contact-section {
    padding: 40px 24px;
  }

  .footer {
    padding: 60px 0 30px;
  }

  .footer-watermark {
    font-size: clamp(40px, 12vw, 100px);
  }

  /* Disable hover effects on touch devices */
  .revolutionary-card:hover,
  .pm-value-card:hover,
  .action-card:hover {
    transform: none;
    box-shadow: var(--shadow-bento);
  }

  .revolutionary-card:hover::before,
  .pm-value-card:hover::before {
    opacity: 0;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   PREMIUM LOADING ANIMATION
   ══════════════════════════════════════════════════════════════════════════ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   PM INTEL SECTION - Professional Intelligence Dashboard
   ══════════════════════════════════════════════════════════════════════════ */

.pm-intel-section {
  padding: 120px 0;
  position: relative;
}

.pm-intel-header {
  text-align: center;
  margin-bottom: 60px;
}

.pm-intel-eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-primary);
  margin-bottom: 16px;
  padding: 6px 16px;
  border: 1px solid rgba(212, 186, 137, 0.3);
  border-radius: 100px;
  background: rgba(212, 186, 137, 0.05);
}

.pm-intel-headline {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin: 0;
}

.pm-intel-headline em {
  color: var(--text-soft);
  font-weight: 400;
}

.pm-intel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pm-intel-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.pm-intel-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--border-accent);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(212, 186, 137, 0.1);
}

.pm-intel-visual {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: var(--bg-elevated);
  border-radius: 10px;
  border: 1px solid var(--border-light);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pm-intel-card:hover .pm-intel-visual {
  transform: scale(1.1) rotate(5deg);
  border-color: var(--border-accent);
}

.pm-intel-value {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1;
}

.pm-intel-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pm-intel-context {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .pm-intel-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .pm-intel-section {
    padding: 80px 0;
  }
  
  .pm-intel-grid {
    grid-template-columns: 1fr;
  }
  
  .pm-intel-card {
    padding: 20px;
  }
}

.reveal {
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.reveal.delay-1 {
  animation-delay: 0.1s;
}

.reveal.delay-2 {
  animation-delay: 0.2s;
}

/* ══════════════════════════════════════════════════════════════════════════
   ACCESSIBILITY & REDUCED MOTION
   ══════════════════════════════════════════════════════════════════════════ */

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

  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
