/* ═══════════════════════════════════════════════════════════
   MEGDESK — Premium refinement layer
   Depth · typography · cards · interactions
   ═══════════════════════════════════════════════════════════ */

::selection {
  background: rgba(245, 200, 66, 0.35);
  color: #1a0a2e;
}

body {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(245, 200, 66, 0.06) 0%, transparent 55%),
    linear-gradient(180deg, #fffdf9 0%, #ffffff 40%, #fffbf7 100%) !important;
}

.code-wallpaper {
  opacity: 0.45 !important;
}

/* ── Scroll progress — gold beam ── */
.scroll-progress {
  height: 3px !important;
  background: linear-gradient(90deg, #e8751a, #f5c842, #e8751a) !important;
  background-size: 200% 100% !important;
  box-shadow: 0 0 12px rgba(245, 200, 66, 0.55) !important;
}

/* ── Section typography — editorial luxury ── */
.overline {
  position: relative;
  display: inline-block !important;
  padding-left: 2.75rem !important;
  margin-bottom: 1.75rem !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.22em !important;
  font-weight: 700 !important;
}

.overline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 2rem;
  height: 2px;
  background: linear-gradient(90deg, #e8751a, #f5c842);
  transform: translateY(-50%);
}

/* Plain overline everywhere — no glass pill on orange/dark sections */
.methodology .overline,
.methodology .section-head--light .overline,
.section--dark .overline,
.section--dark .section-head--light .overline,
.global-band .overline,
.global-band .global-copy .overline {
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  padding: 0 0 0 2.75rem !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.global-band .overline::before,
.methodology .overline::before,
.section--dark .overline::before {
  background: linear-gradient(90deg, #ffffff, #f5c842) !important;
}

.section-head .overline::after {
  display: none !important;
}

.section-head {
  max-width: 640px !important;
  margin-bottom: 4rem !important;
}

.section-head h2 {
  font-size: clamp(2.85rem, 5.8vw, 4.35rem) !important;
  font-weight: 600 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.025em !important;
}

.section-head p {
  font-size: 1.08rem !important;
  line-height: 1.75 !important;
  max-width: 52ch;
}

.accent-italic {
  background: linear-gradient(120deg, #e8751a 0%, #f5c842 55%, #e8751a 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  font-style: italic !important;
}

/* ── Buttons — rich gold-orange (fix green hero buttons) ── */
.btn-primary {
  background: linear-gradient(135deg, #f5c842 0%, #e8751a 50%, #c45f0a 100%) !important;
  color: #1a0a2e !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  border-radius: 100px !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 10px 32px rgba(232, 117, 26, 0.32) !important;
  transition: transform 0.35s ease, box-shadow 0.35s ease !important;
}

.btn-primary:hover {
  transform: translateY(-3px) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 16px 44px rgba(232, 117, 26, 0.42) !important;
}

.btn-secondary {
  border-radius: 100px !important;
  border: 1.5px solid rgba(245, 200, 66, 0.55) !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  transition: all 0.35s ease !important;
}

.btn-secondary:hover {
  background: rgba(245, 200, 66, 0.12) !important;
  border-color: #e8751a !important;
  color: #1a0a2e !important;
  transform: translateY(-2px) !important;
}

.hero-actions .btn-primary {
  background: linear-gradient(135deg, #f5c842 0%, #e8751a 55%, #c45f0a 100%) !important;
  color: #1a0a2e !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 10px 36px rgba(26, 10, 46, 0.22) !important;
}

.hero-actions .btn-primary:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 14px 44px rgba(26, 10, 46, 0.28) !important;
}

.hero-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1.5px solid rgba(42, 22, 84, 0.15) !important;
  color: #1a0a2e !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

.hero-actions .btn-secondary:hover {
  background: #ffffff !important;
  border-color: #e8751a !important;
  color: #1a0a2e !important;
}

.nav-cta {
  border-radius: 100px !important;
  box-shadow: 0 6px 24px rgba(232, 117, 26, 0.3) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.nav-cta:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 32px rgba(232, 117, 26, 0.4) !important;
}

/* ── Hero polish ── */
.hero-seal {
  letter-spacing: 0.22em !important;
  font-weight: 600 !important;
  border: 1px solid rgba(245, 200, 66, 0.35) !important;
  background: rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  padding: 0.45rem 1rem !important;
  border-radius: 100px !important;
}

.hero-badge {
  font-weight: 600 !important;
  letter-spacing: 0.14em !important;
}

.hero-title {
  text-shadow: 0 2px 40px rgba(26, 10, 46, 0.12) !important;
}

.float-badge {
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  box-shadow: 0 6px 20px rgba(26, 10, 46, 0.1) !important;
  transition: transform 0.35s ease, box-shadow 0.35s ease !important;
}

.float-badge:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 28px rgba(26, 10, 46, 0.14) !important;
}

.software-stage,
.float-card {
  box-shadow:
    0 32px 80px rgba(26, 10, 46, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}

/* ── Cards — unified premium elevation ── */
.bento-cell,
.lux-card,
.value-card,
.pillar,
.service-card,
.team-card,
.quote-card,
.cred-card,
.global-stat,
.highlight-item,
.faq-item,
.form-panel {
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease !important;
}

.bento-cell:hover,
.lux-card:hover,
.value-card:hover,
.pillar:hover,
.service-card:hover,
.team-card:hover,
.quote-card:hover,
.cred-card:hover {
  transform: translateY(-6px) !important;
}

.bento-cell {
  box-shadow:
    0 16px 48px rgba(26, 10, 46, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(245, 200, 66, 0.14) !important;
}

.bento-cell:hover {
  box-shadow:
    0 28px 64px rgba(26, 10, 46, 0.12),
    0 0 0 1px rgba(245, 200, 66, 0.22) !important;
}

.lux-card {
  border: 1px solid rgba(245, 200, 66, 0.12) !important;
  box-shadow: 0 12px 40px rgba(26, 10, 46, 0.06) !important;
}

.lux-card:hover {
  box-shadow: 0 22px 56px rgba(232, 117, 26, 0.12) !important;
  border-color: rgba(245, 200, 66, 0.28) !important;
}

.pillar,
.value-card {
  box-shadow: 0 10px 36px rgba(26, 10, 46, 0.06) !important;
  border: 1px solid rgba(245, 200, 66, 0.1) !important;
}

.pillar:hover,
.value-card:hover {
  box-shadow: 0 20px 52px rgba(232, 117, 26, 0.1) !important;
}

.team-card {
  box-shadow: 0 14px 44px rgba(26, 10, 46, 0.08) !important;
}

.team-card:hover {
  box-shadow: 0 24px 60px rgba(26, 10, 46, 0.14) !important;
}

/* ── Light section depth — subtle alternation ── */
.bento-showcase,
.services-section,
.leadership,
.about,
#expertise {
  background:
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(245, 200, 66, 0.04) 0%, transparent 55%),
    #ffffff !important;
}

.values-band,
.testimonials,
.tech-band,
.credentials,
.faq-section {
  background:
    radial-gradient(ellipse 55% 45% at 0% 100%, rgba(232, 117, 26, 0.03) 0%, transparent 55%),
    #fffbf7 !important;
}

/* ── Contact form — private consultation feel ── */
.form-panel {
  border-radius: 24px !important;
  padding: 0 !important;
  overflow: hidden !important;
  box-shadow:
    0 24px 64px rgba(26, 10, 46, 0.1),
    0 0 0 1px rgba(245, 200, 66, 0.15) !important;
}

.form-panel__head {
  padding: 1.35rem 2rem;
  background: linear-gradient(135deg, #fff9f0 0%, #ffffff 100%);
  border-bottom: 1px solid rgba(245, 200, 66, 0.2);
}

.form-panel__head span {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #e8751a;
}

.form-panel__body {
  padding: 2rem 2rem 2.25rem;
}

.form-field input,
.form-field textarea {
  border-radius: 12px !important;
  transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: #e8751a !important;
  box-shadow: 0 0 0 3px rgba(245, 200, 66, 0.2) !important;
  outline: none !important;
}

/* ── Stats strip — subtle glow ── */
.stats-strip {
  position: relative;
}

.stats-strip::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 200, 66, 0.35), transparent);
}

/* ── Trust & partners ── */
.trust-strip {
  border-top: 1px solid rgba(245, 200, 66, 0.08) !important;
  border-bottom: 1px solid rgba(245, 200, 66, 0.08) !important;
}

.partner-logo {
  transition: all 0.35s ease !important;
}

.industry-tag {
  transition: all 0.3s ease !important;
}

.industry-tag:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(232, 117, 26, 0.15) !important;
}

/* ── CTA banner ── */
.cta-banner {
  position: relative;
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #e8751a, #f5c842, #e8751a);
  opacity: 0.6;
}

.cta-content h2 {
  text-shadow: 0 2px 24px rgba(26, 10, 46, 0.15) !important;
}

/* ── Footer — refined top edge ── */
.footer {
  border-top: 2px solid transparent !important;
  border-image: linear-gradient(90deg, transparent, #e8751a, #f5c842, #e8751a, transparent) 1 !important;
}

.footer-col a:hover,
.footer-links a:hover {
  color: #f5c842 !important;
  transform: translateX(2px);
  transition: color 0.3s ease, transform 0.3s ease;
}

/* ── FAQ accordion polish ── */
.faq-item {
  border: 1px solid rgba(245, 200, 66, 0.12) !important;
  border-radius: 16px !important;
  overflow: hidden;
}

.faq-item.open {
  border-color: rgba(245, 200, 66, 0.3) !important;
  box-shadow: 0 8px 28px rgba(26, 10, 46, 0.06) !important;
}

/* ── Reveal animation — smoother entrance ── */
.reveal {
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.85s ease !important;
}

.reveal.visible {
  filter: blur(0) !important;
}

/* ── Megbot — premium pill ── */
.megbot-toggle {
  box-shadow:
    0 14px 44px rgba(26, 10, 46, 0.35),
    inset 0 1px 0 rgba(245, 200, 66, 0.3) !important;
}

@media (max-width: 768px) {
  .form-panel__head {
    padding: 1.15rem 1.25rem;
  }

  .form-panel__body {
    padding: 1.5rem 1.25rem 1.75rem;
  }

  .overline {
    padding-left: 2.25rem !important;
  }

  .overline::before {
    width: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bento-cell:hover,
  .lux-card:hover,
  .value-card:hover,
  .pillar:hover,
  .service-card:hover,
  .team-card:hover,
  .btn-primary:hover,
  .btn-secondary:hover,
  .nav-cta:hover {
    transform: none !important;
  }
}

/* Hero — vertically centered block, aligned columns, fits ~90% zoom */
.hero {
  min-height: 100vh !important;
  min-height: 100svh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding-top: calc(var(--chrome) + 0.75rem) !important;
  padding-bottom: calc(3.25rem + 52px) !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
  box-sizing: border-box !important;
}

.hero > .wrap.hero-grid {
  flex: 0 0 auto !important;
  margin-block: auto !important;
}

.hero-grid {
  align-items: center !important;
  padding-bottom: 0 !important;
  gap: clamp(2rem, 3.5vw, 3rem) !important;
}

.hero-copy,
.hero-showcase {
  align-self: center !important;
}

@media (min-width: 769px) {
  .hero-seal {
    margin-bottom: 0.75rem !important;
  }

  .hero-badge {
    margin-bottom: 1rem !important;
  }

  .hero-title {
    margin-bottom: 1.1rem !important;
    font-size: clamp(2.7rem, 5.2vw, 4.6rem) !important;
    line-height: 1.08 !important;
  }

  .hero-text {
    margin-bottom: 1.4rem !important;
    font-size: 1.08rem !important;
    line-height: 1.72 !important;
  }

  .hero-features {
    margin-top: 1.65rem !important;
    padding-top: 1.25rem !important;
    gap: 0.85rem !important;
  }

  .hero-feat {
    padding: 0.9rem 0.95rem !important;
  }

  .hero-feat strong {
    font-size: 0.74rem !important;
  }

  .hero-feat span {
    font-size: 0.82rem !important;
  }

  .hero-actions .btn {
    padding: 1rem 2rem !important;
    font-size: 0.92rem !important;
  }

  .hero-showcase {
    margin-top: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .software-stage {
    max-width: 420px !important;
    width: 100% !important;
    margin-inline: auto !important;
  }

  /* Keep decorative pills balanced around centered content */
  .float-badge:nth-child(1) { top: 20% !important; left: 5% !important; }
  .float-badge:nth-child(2) { top: 56% !important; left: 3% !important; }
  .float-badge:nth-child(3) { top: 22% !important; right: 4% !important; }
  .float-badge:nth-child(4) { bottom: 26% !important; right: 3% !important; }

  .kpi-card--1 { top: 17% !important; right: 5% !important; }
  .kpi-card--2 { top: 48% !important; right: 3% !important; left: auto !important; }
  .kpi-card--3 { bottom: 24% !important; right: 7% !important; }
}

@media (min-width: 769px) and (max-height: 880px) {
  .hero {
    padding-top: calc(var(--chrome) + 0.5rem) !important;
    padding-bottom: calc(2.75rem + 52px) !important;
  }

  .hero-grid {
    gap: 1.75rem !important;
    transform: scale(0.97) !important;
    transform-origin: center center !important;
  }

  .hero-title {
    font-size: clamp(2.3rem, 4.3vw, 3.7rem) !important;
    margin-bottom: 0.8rem !important;
  }

  .hero-text {
    margin-bottom: 1.1rem !important;
    font-size: 0.98rem !important;
  }

  .hero-features {
    margin-top: 1.1rem !important;
    padding-top: 0.9rem !important;
  }

  .hero-feat {
    padding: 0.65rem 0.75rem !important;
  }

  .hero-feat strong {
    font-size: 0.66rem !important;
  }

  .hero-feat span {
    font-size: 0.74rem !important;
  }
}
