/* ═══════════════════════════════════════════
   DESIGN TOKENS — single source of truth
   ═══════════════════════════════════════════ */
:root {
  /* Backgrounds */
  --co-white:   #FFFFFF;
  --co-surface: #F8FAFC;
  /* Primary accent */
  --co-brand:   #2563EB;
  --co-brand-hover: #1D4ED8;
  --co-brand-bg: rgba(37, 99, 235, 0.08);
  /* Text */
  --co-heading: #0F172A;
  --co-body:    #475569;
  --co-muted:   #94A3B8;
  /* Border / shadow */
  --co-border:  #E2E8F0;
  --co-shadow-sm: 0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
  --co-shadow-card: 0 4px 16px -4px rgba(15,23,42,0.08);
  /* Radius */
  --co-radius-card: 1rem;
  --co-radius-xl:   1.25rem;
}

/* ── Unified nav (all pages) ── */
#site-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
#site-nav.nav-scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}
#site-nav.nav-scrolled .nav-light { color: #0F172A !important; }
.nav-light { color: #1E293B; }

/* ── Footer (light theme) ── */
.site-footer {
  position: relative;
  background: #FFFFFF;
  border-top: 1px solid #E2E8F0;
}

.footer-brand-logo {
  display: block;
  transition: opacity 0.25s ease;
}
.footer-brand:hover .footer-brand-logo {
  opacity: 0.85;
}

.footer-col-title {
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}
.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: #2563EB;
  border-radius: 1px;
  transition: width 0.35s ease;
}
.footer-col:hover .footer-col-title::after { width: 100%; }

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: #1E293B;
  font-size: 0.875rem;
  line-height: 1.625;
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease, gap 0.25s ease;
}
.footer-link::before {
  content: '';
  width: 0;
  height: 1px;
  background: #2563EB;
  transition: width 0.25s ease;
  order: -1;
}
.footer-link:hover,
.footer-link-active {
  color: #2563EB;
}
.footer-link:hover {
  transform: translateX(4px);
  gap: 0.5rem;
}
.footer-link:hover::before { width: 12px; }

button.footer-link {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font: inherit;
  text-align: left;
  width: 100%;
}

.footer-reveal-delay-4 { transition-delay: 0.4s; }

/* ── Legal modals ── */
#legal-modal {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
#legal-modal.is-open {
  opacity: 1;
  visibility: visible;
}
#legal-modal .legal-modal-card {
  transform: scale(0.96) translateY(10px);
  transition: transform 0.25s ease;
}
#legal-modal.is-open .legal-modal-card {
  transform: scale(1) translateY(0);
}
.legal-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  color: #64748B;
  transition: color 0.2s ease, background 0.2s ease;
}
.legal-modal-close:hover {
  color: #0F172A;
  background: #F8FAFC;
}
.legal-modal-close-icon {
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1.25rem;
  line-height: 1;
}
.legal-modal-close-btn {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0F172A;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
}
.legal-modal-close-btn:hover {
  border-color: #CBD5E1;
  background: #F8FAFC;
}
.legal-modal-body h3 {
  color: #0F172A;
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
  line-height: 1.5;
}
.legal-modal-body h3:first-child {
  margin-top: 0;
}
.legal-modal-body p,
.legal-modal-body li {
  color: #1E293B;
  font-size: 0.875rem;
  line-height: 1.625;
}
.legal-modal-body ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  list-style: disc;
}
.legal-modal-body .legal-updated {
  color: #64748B;
  font-size: 0.8125rem;
  margin-bottom: 1rem;
}

.footer-bottom {
  border-top: 1px solid #E2E8F0;
  margin-top: 3rem;
  padding-top: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-bottom-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
}
@media (min-width: 640px) {
  .footer-bottom-left {
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
  }
}

.footer-legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.footer-legal-sep {
  color: #CBD5E1;
  font-size: 0.75rem;
  line-height: 1;
}

button.footer-legal-link {
  font-size: 0.75rem;
  color: #64748B;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s ease;
  font-family: inherit;
  line-height: normal;
}
button.footer-legal-link:hover {
  color: #2563EB;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  color: #64748B;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: #2563EB;
  border-color: #2563EB;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px -4px rgba(37, 99, 235, 0.4);
}

.footer-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.footer-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.footer-reveal-delay-1 { transition-delay: 0.1s; }
.footer-reveal-delay-2 { transition-delay: 0.2s; }
.footer-reveal-delay-3 { transition-delay: 0.3s; }

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #64748B;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.footer-social-link:hover {
  color: #2563EB;
  background: #FFFFFF;
  border-color: rgba(37, 99, 235, 0.25);
  transform: translateY(-2px);
}
.footer-social-icon {
  width: 1.125rem;
  height: 1.125rem;
}

/* ── Clients / partners marquee ── */
.clients-section {
  background: #FFFFFF;
}
.clients-mask {
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.clients-track {
  display: flex;
  width: max-content;
  animation: clientsScroll 42s linear infinite;
}
.clients-track-reverse {
  animation-direction: reverse;
  animation-duration: 38s;
}
.clients-wrap:hover .clients-track { animation-play-state: paused; }
@keyframes clientsScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.client-tile {
  flex-shrink: 0;
  width: 200px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.client-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.25);
  background: #FFFFFF;
  box-shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.08);
}
.client-tile img {
  max-height: 52px;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}
.client-tile:hover img { transform: scale(1.03); }

/* ── Creative page banners (shared) ── */
.page-banner {
  position: relative;
  overflow: hidden;
  background: #fff;
}
.page-banner-ambient {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.page-banner-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #CBD5E1 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 15%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 15%, transparent 70%);
}
.page-banner-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  animation: pageBannerOrb 16s ease-in-out infinite;
}
.page-banner-orb--1 { width: 24rem; height: 24rem; top: -12%; right: -8%; background: rgba(37, 99, 235, 0.11); }
.page-banner-orb--2 { width: 18rem; height: 18rem; bottom: -8%; left: 5%; background: rgba(147, 197, 253, 0.14); animation-delay: -6s; }
.page-banner-orb--3 { width: 12rem; height: 12rem; top: 40%; left: 45%; background: rgba(37, 99, 235, 0.07); animation-delay: -10s; }
@keyframes pageBannerOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-14px, 10px) scale(1.05); }
}
.page-banner-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.875rem;
  border-radius: 9999px;
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.12);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2563EB;
  margin-bottom: 1.25rem;
}
.page-banner-kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2563EB;
  animation: pageBannerPulse 2s ease-in-out infinite;
}
@keyframes pageBannerPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}
.page-banner-accent {
  position: relative;
  display: inline-block;
}
.page-banner-accent::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.15em;
  height: 0.35em;
  background: rgba(37, 99, 235, 0.15);
  border-radius: 2px;
  z-index: -1;
}
.page-banner-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.page-banner-stat {
  padding: 0.625rem 1rem;
  border-radius: 0.875rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid #E2E8F0;
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.06);
}
.page-banner-stat strong {
  display: block;
  font-size: 1.125rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.2;
}
.page-banner-stat span {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748B;
}
.page-banner-visual {
  position: relative;
  min-height: 280px;
}
.page-banner-float {
  position: absolute;
  border-radius: 1rem;
  border: 1px solid #E2E8F0;
  background: #fff;
  box-shadow: 0 12px 32px -8px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.page-banner-float:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.18);
}
.page-banner-float-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
}
.page-banner-float-dot { width: 7px; height: 7px; border-radius: 50%; background: #CBD5E1; }
.page-banner-float--main { width: 72%; top: 8%; right: 0; z-index: 3; animation: pageBannerFloatA 7s ease-in-out infinite; }
.page-banner-float--a { width: 48%; top: 42%; left: 0; z-index: 2; animation: pageBannerFloatB 8s ease-in-out infinite; }
.page-banner-float--b { width: 42%; bottom: 4%; right: 12%; z-index: 1; animation: pageBannerFloatC 9s ease-in-out infinite; }
@keyframes pageBannerFloatA {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes pageBannerFloatB {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
@keyframes pageBannerFloatC {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.page-banner-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  aspect-ratio: 1;
  border: 1px dashed rgba(37, 99, 235, 0.15);
  border-radius: 50%;
  pointer-events: none;
}
.page-banner-phases {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 2rem;
}
.page-banner-phase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.page-banner-phase-num {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.2);
}
.page-banner-phase-line {
  width: 3rem;
  height: 2px;
  background: linear-gradient(90deg, #CBD5E1, #2563EB, #CBD5E1);
  opacity: 0.5;
}
.page-banner-section {
  position: relative;
  overflow: hidden;
}
.page-banner-section-ambient {
  pointer-events: none;
  position: absolute;
  inset: 0;
}
.page-banner-section-ambient .page-banner-orb { filter: blur(80px); opacity: 0.7; }
.contact-banner-panel .page-banner-orb--1 { top: -20%; right: -15%; }
.contact-banner-panel .page-banner-orb--2 { bottom: 10%; left: -10%; }
.contact-deco-card {
  position: absolute;
  padding: 0.75rem 1rem;
  border-radius: 0.875rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid #E2E8F0;
  box-shadow: 0 8px 24px -6px rgba(15, 23, 42, 0.1);
  font-size: 0.75rem;
  font-weight: 600;
  color: #0F172A;
  animation: pageBannerFloatA 6s ease-in-out infinite;
}
.contact-deco-card--a { top: 12%; right: 8%; animation-delay: -2s; }
.contact-deco-card--b { bottom: 18%; right: 5%; animation-delay: -4s; }
@media (prefers-reduced-motion: reduce) {
  .page-banner-orb,
  .page-banner-float,
  .contact-deco-card { animation: none !important; }
}

/* Bottom CTA band — blue gradient (all pages) */
.section-cta-light {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
  background: transparent !important;
  border-top: none !important;
}
.section-cta-light::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 45%, #0f172a 100%);
  z-index: 0;
}
.section-cta-light::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
}
.section-cta-light > div {
  position: relative;
  z-index: 2;
}
.section-cta-light h2 {
  color: #fff !important;
}
.section-cta-light p {
  color: rgba(226, 232, 240, 0.85) !important;
}
.section-cta-light .portfolio-cta-btn,
.section-cta-light a[href*="contact"] {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 9999px;
  background: #2563eb;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 32px -4px rgba(37, 99, 235, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.section-cta-light .portfolio-cta-btn:hover,
.section-cta-light a[href*="contact"]:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -6px rgba(37, 99, 235, 0.65);
}
