/* ═══════════════════════════════════════════════════════════
   ULTIMATE — Premium site-wide polish (desktop + mobile)
   ═══════════════════════════════════════════════════════════ */

:root {
  --glow-teal: rgba(61, 184, 191, 0.45);
  --glow-gold: rgba(201, 169, 98, 0.35);
  --mesh-teal: rgba(61, 184, 191, 0.07);
  --mesh-gold: rgba(201, 169, 98, 0.05);
}

/* ─── Ambient background ─── */
.site-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: orb-float 22s ease-in-out infinite;
}

.ambient-orb--teal {
  width: min(55vw, 520px);
  height: min(55vw, 520px);
  top: -8%;
  right: -12%;
  background: radial-gradient(circle, rgba(61, 184, 191, 0.22), transparent 70%);
}

.ambient-orb--gold {
  width: min(45vw, 420px);
  height: min(45vw, 420px);
  bottom: 15%;
  left: -10%;
  background: radial-gradient(circle, rgba(201, 169, 98, 0.18), transparent 70%);
  animation-delay: -8s;
}

.ambient-orb--violet {
  width: min(35vw, 320px);
  height: min(35vw, 320px);
  top: 42%;
  left: 38%;
  background: radial-gradient(circle, rgba(120, 140, 200, 0.12), transparent 70%);
  animation-delay: -14s;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(2%, -3%) scale(1.04); }
  66% { transform: translate(-2%, 2%) scale(0.97); }
}

body {
  position: relative;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, var(--mesh-teal), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 50%, var(--mesh-gold), transparent 50%),
    var(--bg-deep) !important;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  z-index: 1000;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
}

/* ─── Section shine decor (injected by decore.js) ─── */
main > section {
  position: relative;
  overflow: hidden;
}

.section-shine {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(600px, 80%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(61, 184, 191, 0.35), rgba(201, 169, 98, 0.25), transparent);
  pointer-events: none;
  z-index: 0;
}

.section-tint-teal {
  background:
    linear-gradient(180deg, rgba(61, 184, 191, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 50% 30% at 10% 20%, rgba(61, 184, 191, 0.04), transparent) !important;
}

.section-tint-warm {
  background:
    linear-gradient(180deg, rgba(201, 169, 98, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 50% 30% at 90% 30%, rgba(201, 169, 98, 0.04), transparent) !important;
}

.section-tint-purple {
  background:
    linear-gradient(180deg, rgba(140, 120, 200, 0.05) 0%, transparent 55%),
    radial-gradient(ellipse 40% 25% at 50% 0%, rgba(140, 120, 200, 0.04), transparent) !important;
}

/* ─── Section headers ─── */
.section-header--center h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  margin: 1.25rem auto 0;
  background: linear-gradient(90deg, var(--teal-bright, var(--teal)), var(--gold-light, var(--gold)));
  border-radius: 2px;
  opacity: 0.85;
}

.eyebrow {
  padding: 0.35rem 0.85rem 0.35rem 0;
  border-radius: 100px;
}

.section-header--center .eyebrow {
  padding: 0.4rem 1rem;
  background: rgba(201, 169, 98, 0.08);
  border: 1px solid rgba(201, 169, 98, 0.15);
}

.section-header--center .eyebrow--teal {
  background: rgba(61, 184, 191, 0.08);
  border-color: rgba(61, 184, 191, 0.18);
}

/* ─── Header ─── */
.site-header.scrolled {
  background: rgba(6, 11, 20, 0.92) !important;
  backdrop-filter: blur(20px) saturate(1.5) !important;
  border-color: rgba(61, 184, 191, 0.12) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25) !important;
}

/* ─── Buttons — premium unified ─── */
.btn {
  border-radius: 8px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s, background 0.3s, border-color 0.3s !important;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal-bright, #3db8bf) 0%, #2a8a90 100%) !important;
  border: 1px solid rgba(61, 184, 191, 0.5) !important;
  color: #fff !important;
  box-shadow: 0 4px 20px rgba(61, 184, 191, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.btn-primary:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 36px rgba(61, 184, 191, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.18) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  backdrop-filter: blur(12px) !important;
}

.btn-ghost:hover {
  border-color: var(--teal-bright, var(--teal)) !important;
  background: rgba(61, 184, 191, 0.1) !important;
  color: var(--teal-bright, var(--teal)) !important;
  transform: translateY(-2px) !important;
}

.nav-cta {
  border-radius: 8px !important;
  box-shadow: 0 2px 12px rgba(61, 184, 191, 0.25) !important;
}

/* ─── Hero ─── */
.hero-overlay {
  background:
    linear-gradient(180deg, rgba(6, 11, 20, 0.55) 0%, rgba(6, 11, 20, 0.82) 55%, rgba(6, 11, 20, 0.95) 100%),
    radial-gradient(ellipse 70% 50% at 75% 25%, rgba(61, 184, 191, 0.12), transparent 60%) !important;
}

.hero-trust {
  border-top: none !important;
  gap: 0.65rem !important;
}

.hero-trust-item {
  padding: 0.55rem 0.9rem !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 100px !important;
  backdrop-filter: blur(8px);
  font-size: 0.78rem !important;
  color: var(--text-body, var(--text-secondary)) !important;
  transition: border-color 0.3s, background 0.3s;
}

.hero-trust-item:hover {
  border-color: rgba(61, 184, 191, 0.35) !important;
  background: rgba(61, 184, 191, 0.08) !important;
}

.hero-scroll-line {
  background: linear-gradient(180deg, var(--teal-bright, var(--teal)), transparent) !important;
}

.hero-orbit-ring {
  border-color: rgba(61, 184, 191, 0.2) !important;
}

/* ─── Marquee ─── */
.marquee-wrap {
  position: relative;
  background: linear-gradient(90deg, var(--bg-surface), rgba(15, 26, 44, 0.95), var(--bg-surface)) !important;
  padding: 1.5rem 0 !important;
}

.marquee-wrap::before,
.marquee-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(40px, 8vw, 120px);
  z-index: 2;
  pointer-events: none;
}

.marquee-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-surface), transparent);
}

.marquee-wrap::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg-surface), transparent);
}

/* ─── Cards global shine ─── */
.stat-card,
.pain-card,
.how-step,
.outcome-card,
.testimonial-card,
.service-detail,
.work-item,
.value-card,
.bento-item,
.faq-preview-item,
.faq-item,
.contact-form-wrap {
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

/* ─── Page heroes ─── */
.page-hero-overlay {
  background:
    linear-gradient(180deg, rgba(6, 11, 20, 0.35) 0%, rgba(6, 11, 20, 0.88) 70%, var(--bg-deep) 100%),
    radial-gradient(ellipse 60% 40% at 70% 20%, rgba(61, 184, 191, 0.1), transparent) !important;
}

.page-hero-content::after {
  width: 80px !important;
  height: 3px !important;
  border-radius: 3px !important;
  box-shadow: 0 0 12px var(--glow-teal);
}

/* ─── CTA banner ─── */
.cta-banner-inner {
  background: linear-gradient(145deg, rgba(21, 34, 56, 0.95), rgba(15, 26, 44, 0.98)) !important;
  border: 1px solid rgba(61, 184, 191, 0.2) !important;
  position: relative;
}

.cta-banner-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(61, 184, 191, 0.4), transparent 40%, rgba(201, 169, 98, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.cta-banner-glow {
  opacity: 0.55 !important;
  background: radial-gradient(ellipse at center, var(--glow-teal), transparent 65%) !important;
}

.guarantee-item {
  padding: 0.5rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  font-size: 0.78rem !important;
}

/* ─── Footer ─── */
.site-footer {
  background:
    linear-gradient(180deg, transparent, rgba(61, 184, 191, 0.03)),
    var(--bg-primary) !important;
  border-top: 1px solid rgba(61, 184, 191, 0.12) !important;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(61, 184, 191, 0.4), rgba(201, 169, 98, 0.3), transparent);
}

.footer-social a:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 16px rgba(61, 184, 191, 0.2);
}

/* ─── Mobile menu premium ─── */
.mobile-menu {
  background: rgba(6, 11, 20, 0.97) !important;
  backdrop-filter: blur(24px) saturate(1.4) !important;
  border-left: 1px solid rgba(61, 184, 191, 0.12) !important;
}

.mobile-menu a {
  font-size: 1.1rem !important;
  padding: 0.85rem 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu-cta {
  border-radius: 8px !important;
  box-shadow: 0 4px 20px rgba(61, 184, 191, 0.3) !important;
}

/* ─── Sticky CTA ─── */
.sticky-cta {
  background: rgba(10, 18, 32, 0.95) !important;
  backdrop-filter: blur(16px) !important;
  border-top: 1px solid rgba(61, 184, 191, 0.2) !important;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3) !important;
}

/* ─── AI Lab ─── */
.ai-lab {
  position: relative;
}

.ai-demo {
  border: 1px solid rgba(61, 184, 191, 0.2) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 0 0 40px rgba(61, 184, 191, 0.06) !important;
}

.ai-demo-chip {
  transition: transform 0.25s, border-color 0.25s, background 0.25s !important;
}

.ai-demo-chip:hover {
  transform: translateY(-2px);
}

/* ─── Intro image ─── */
.intro-image img {
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35) !important;
}

.intro-image-badge {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
  border: 1px solid rgba(61, 184, 191, 0.25) !important;
}

/* ═══ MOBILE ═══ */
@media (max-width: 1023px) {
  body.page-home .hero-content {
    text-align: center;
    padding-bottom: 0 !important;
  }

  .hero-content h1 {
    margin-inline: auto;
  }

  .hero-content .lead {
    margin-inline: auto;
    max-width: 28rem;
  }

  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-trust {
    justify-content: center;
  }

  .hero-3d-wrap {
    opacity: 0.35 !important;
  }

  .section-header--center h2 {
    max-width: none !important;
  }

  .cta-strip-inner {
    flex-direction: column !important;
    text-align: center !important;
    gap: 1.5rem !important;
  }

  .cta-strip-actions {
    justify-content: center !important;
    width: 100%;
  }

  .cta-strip-actions .btn {
    flex: 1;
    min-width: 140px;
  }

  .compare-table {
    font-size: 0.8rem;
  }

  .compare-row {
    padding: 0.75rem 0.85rem !important;
    gap: 0.35rem !important;
  }

  .guarantee-row {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem !important;
  }

  .intro-grid {
    gap: 2.5rem !important;
  }

  .bento-grid {
    gap: 1rem !important;
  }

  .page-hero {
    min-height: 0 !important;
    text-align: center;
  }

  .page-hero h1 {
    margin-inline: auto;
  }

  .page-hero-content .lead {
    margin-inline: auto;
  }

  .page-hero-content::after {
    left: 50% !important;
    transform: translateX(-50%) !important;
  }

  .hero-actions,
  .page-hero-content:has(.hero-actions) .hero-actions {
    justify-content: center !important;
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: clamp(32px, 7vw, 48px);
  }

  body.page-home {
    --section-pad: clamp(28px, 6vw, 44px);
  }

  .container {
    width: min(1280px, 94vw);
  }

  .btn {
    padding: 0.9rem 1.5rem !important;
    font-size: 0.78rem !important;
  }

  .hero-trust-item {
    font-size: 0.72rem !important;
    padding: 0.45rem 0.75rem !important;
  }

  .stat-card {
    padding: 1.5rem 1.25rem !important;
  }

  .pain-grid,
  .how-steps,
  .outcomes-grid {
    gap: 1rem !important;
  }

  .testimonial-card {
    padding: 2rem 1.5rem !important;
  }

  .tech-matcher {
    padding: 1.25rem !important;
  }

  .matcher-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .footer-grid {
    text-align: center;
  }

  .footer-brand img {
    margin-inline: auto;
  }

  .footer-brand p {
    margin-inline: auto;
  }

  .footer-col h4 {
    margin-top: 0.5rem;
  }

  .ambient-orb {
    opacity: 0.35;
    filter: blur(60px);
  }
}

@media (min-width: 1024px) {
  .hero-content h1 .text-gradient {
    background-size: 200% auto;
    animation: gradient-shift 8s ease infinite;
  }

  @keyframes gradient-shift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
  }

  .services-grid {
    gap: 1.5rem !important;
  }

  .bento-grid {
    gap: 1.25rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-orb,
  .hero-content h1 .text-gradient {
    animation: none !important;
  }

  .btn-primary:hover,
  .btn-ghost:hover {
    transform: none !important;
  }
}
