/* ═══════════════════════════════════════
   MEGDESK — LIQUID GLASS (iOS-style)
   Frosted blur · saturation · depth
   ═══════════════════════════════════════ */

:root {
  --glass-blur: blur(28px) saturate(195%);
  --glass-bg: rgba(255, 255, 255, 0.42);
  --glass-bg-strong: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.65);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  --glass-shadow: 0 8px 40px rgba(26, 10, 46, 0.08), 0 2px 8px rgba(26, 10, 46, 0.04);
  --glass-radius: 22px;
}

/* ── HEADER: single unified glass pill ── */
.header,
.header.scrolled,
.header:not(.scrolled) {
  background: transparent !important;
  backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
}

.header .nav {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.75rem !important;
  padding: 0 1.15rem 0 1rem !important;
  border-radius: 18px !important;
  overflow: visible !important;
  background: rgba(255, 255, 255, 0.88) !important;
  -webkit-backdrop-filter: var(--glass-blur) !important;
  backdrop-filter: var(--glass-blur) !important;
  border: 1px solid rgba(255, 255, 255, 0.92) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 10px 40px rgba(26, 10, 46, 0.12),
    0 2px 6px rgba(26, 10, 46, 0.06) !important;
  transition: background 0.3s ease, box-shadow 0.3s ease !important;
}

.header.scrolled .nav {
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow:
    inset 0 1px 0 #fff,
    0 14px 48px rgba(26, 10, 46, 0.14),
    0 2px 6px rgba(26, 10, 46, 0.08) !important;
}

.header .logo {
  flex-shrink: 0 !important;
  min-width: 0 !important;
}

.header .logo span {
  font-size: 1.65rem !important;
  white-space: nowrap !important;
}

.header .nav-menu {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: clamp(0.65rem, 1.2vw, 1.35rem) !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.header .nav-menu li {
  flex-shrink: 0 !important;
}

.header .nav-menu a:not(.nav-cta) {
  white-space: nowrap !important;
  font-size: clamp(0.58rem, 0.9vw, 0.68rem) !important;
  letter-spacing: 0.1em !important;
  padding: 0.25rem 0 !important;
}

.header .nav-cta {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  font-size: clamp(0.58rem, 0.85vw, 0.66rem) !important;
  padding: 0.55rem 1.1rem !important;
}

/* Logo — meg purple, no orange bleed */
.header:not(.scrolled) .logo span,
.header.scrolled .logo span {
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: #2a1654 !important;
  color: #2a1654 !important;
  font-weight: 600 !important;
}

/* Nav links — meg purple, crisp on glass */
.header .nav-menu a:not(.nav-cta) {
  color: #2a1654 !important;
  -webkit-text-fill-color: #2a1654 !important;
  font-weight: 600 !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.13em !important;
  text-shadow: none !important;
}

.header .nav-menu a:not(.nav-cta):hover {
  color: #e8751a !important;
  -webkit-text-fill-color: #e8751a !important;
}

.header:not(.scrolled) .menu-btn span,
.header.scrolled .menu-btn span {
  background: #2a1654 !important;
}

/* Contact — book consultation gradient */
.header .nav-cta {
  background: linear-gradient(135deg, #e8751a 0%, #f5c842 50%, #e8751a 100%) !important;
  background-size: 200% 200% !important;
  color: #1a0a2e !important;
  -webkit-text-fill-color: #1a0a2e !important;
  font-weight: 700 !important;
  border-radius: 100px !important;
  padding: 0.6rem 1.45rem !important;
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 6px 22px rgba(232, 117, 26, 0.35) !important;
}

.header .nav-cta:hover {
  background-position: 100% 50% !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 8px 28px rgba(232, 117, 26, 0.45) !important;
  opacity: 1 !important;
}

/* ── HERO: vivid + depth (not flat/dull) ── */
.hero {
  background:
    radial-gradient(ellipse 90% 70% at 10% 20%, rgba(255, 255, 255, 0.45) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(253, 230, 138, 0.5) 0%, transparent 45%),
    radial-gradient(ellipse 50% 40% at 70% 10%, rgba(232, 117, 26, 0.25) 0%, transparent 40%),
    linear-gradient(125deg, #d96a0f 0%, #e8751a 18%, #f5c842 42%, #fde68a 58%, #f5c842 78%, #e8751a 100%) !important;
  background-size: 100% 100%, 100% 100%, 100% 100%, 300% 100% !important;
  animation: heroGradient 12s ease-in-out infinite !important;
}

.hero-bg::before,
.hero-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
}

.hero-bg::before {
  width: 420px;
  height: 420px;
  top: -8%;
  right: 5%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55), transparent 68%);
  animation: glassOrb1 14s ease-in-out infinite;
}

.hero-bg::after {
  width: 320px;
  height: 320px;
  bottom: 5%;
  left: 8%;
  background: radial-gradient(circle, rgba(253, 230, 138, 0.6), transparent 70%);
  animation: glassOrb2 11s ease-in-out infinite;
}

@keyframes glassOrb1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 20px) scale(1.08); }
}

@keyframes glassOrb2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(25px, -15px) scale(1.05); }
}

@keyframes heroGradient {
  0%, 100% { background-position: 0% 50%, 0% 0%, 0% 0%, 0% 50%; }
  50% { background-position: 0% 50%, 0% 0%, 0% 0%, 100% 50%; }
}

/* ── Hero glass elements ── */
.hero-badge,
.hero-seal {
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  background: rgba(255, 255, 255, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
  box-shadow: var(--glass-highlight), 0 4px 20px rgba(26, 10, 46, 0.06) !important;
  border-radius: 100px !important;
}

.kpi-card,
.float-badge {
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  backdrop-filter: blur(24px) saturate(190%);
  background: rgba(255, 255, 255, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.75) !important;
  box-shadow: var(--glass-highlight), 0 8px 32px rgba(26, 10, 46, 0.08) !important;
  border-radius: 16px !important;
}

.hero-feat-icon {
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  background: rgba(255, 255, 255, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
  box-shadow: var(--glass-highlight), 0 4px 16px rgba(0, 255, 0, 0.15) !important;
}

.hero-features {
  border-top-color: rgba(255, 255, 255, 0.45) !important;
  margin-bottom: 0.5rem !important;
  position: relative !important;
  z-index: 4 !important;
}

.hero-feat span {
  line-height: 1.45 !important;
  display: block !important;
}

/* Dashboard showcase — liquid glass frame */
.software-stage,
.float-card {
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  backdrop-filter: blur(32px) saturate(200%);
  background: rgba(255, 255, 255, 0.35) !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  border-radius: 24px !important;
  box-shadow:
    var(--glass-highlight),
    0 20px 60px rgba(26, 10, 46, 0.14),
    0 4px 12px rgba(26, 10, 46, 0.06) !important;
  padding: 12px !important;
}

.app-window {
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(26, 10, 46, 0.2) !important;
}

.code-terminal {
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  background: rgba(26, 10, 46, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25) !important;
}

/* Hero buttons — neon green */
.hero-actions .btn-primary {
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  background: #00FF00 !important;
  color: #1a0a2e !important;
  border: 1px solid rgba(0, 220, 0, 0.5) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 8px 32px rgba(0, 255, 0, 0.35) !important;
  border-radius: 14px !important;
}

.hero-actions .btn-secondary {
  -webkit-backdrop-filter: blur(20px) saturate(190%);
  backdrop-filter: blur(20px) saturate(190%);
  background: rgba(255, 255, 255, 0.45) !important;
  border: 1.5px solid #00FF00 !important;
  color: #1a0a2e !important;
  box-shadow: var(--glass-highlight), 0 4px 20px rgba(0, 255, 0, 0.18) !important;
  border-radius: 14px !important;
}

/* Site cards — liquid glass on light sections */
.value-card,
.service-card,
.team-card,
.bento-cell,
.stat-item,
.quote-card,
.cred-card {
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  background: rgba(255, 255, 255, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  box-shadow: var(--glass-highlight), var(--glass-shadow) !important;
}

.pillar,
.lux-card {
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
}

/* Floating CTA — glass pill */
.floating-cta {
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 10px 36px rgba(232, 117, 26, 0.35) !important;
  border-radius: 100px !important;
}

/* Form panels */
.form-panel,
.contact-copy {
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
  box-shadow: var(--glass-highlight), var(--glass-shadow) !important;
}

/* Hero layout — prevent feature cards clipping under ticker */
.hero {
  align-items: flex-start !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
  padding-bottom: calc(6rem + 52px) !important;
}

.hero-grid {
  padding-bottom: calc(2.5rem + 48px) !important;
  align-items: center !important;
}

.hero-ticker {
  height: 44px !important;
  z-index: 5 !important;
}

/* Hero typography */
.hero-title,
.hero-title .word,
.hero-title em.word--accent {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: none !important;
  text-shadow: 0 2px 24px rgba(26, 10, 46, 0.18) !important;
}

.hero-text {
  color: #2a1654 !important;
  font-weight: 500 !important;
}

/* Scroll progress glass */
.scroll-progress {
  box-shadow: 0 0 20px rgba(245, 200, 66, 0.5) !important;
}

/* Mobile header/nav — see responsive.css */

@media (prefers-reduced-motion: reduce) {
  .hero-bg::before,
  .hero-bg::after {
    animation: none;
  }
}
