:root {
  --line: rgba(255, 255, 255, 0.14);
  --glass: rgba(255, 255, 255, 0.065);
}

html {
  scroll-behavior: smooth;
}

body.mesh-bg {
  min-height: 100vh;
  color: #f8fafc;
  background:
    radial-gradient(circle at 12% 8%, rgba(99, 102, 241, 0.34), transparent 34%),
    radial-gradient(circle at 88% 6%, rgba(14, 165, 233, 0.22), transparent 30%),
    radial-gradient(circle at 50% 105%, rgba(168, 85, 247, 0.18), transparent 40%),
    linear-gradient(180deg, #050816 0%, #070a1f 55%, #03050f 100%);
  background-attachment: fixed;
}

header.site-head {
  background: rgba(5, 8, 22, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 28px 64px -32px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.logo-orb {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.5625rem;
  line-height: 1;
  letter-spacing: 0.06em;
  font-weight: 900;
  color: #070a1f;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(180, 190, 255, 0.72) 35%, rgba(80, 95, 180, 0.55) 70%, rgba(255, 255, 255, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 0 34px rgba(99, 102, 241, 0.45);
  animation: breathe 4.8s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% {
    transform: translateY(0) scale(1);
    filter: brightness(1);
  }
  50% {
    transform: translateY(-4px) scale(1.035);
    filter: brightness(1.12);
  }
}

.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.metal-card {
  position: relative;
  overflow: hidden;
  border-radius: inherit;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.035) 42%, rgba(99, 102, 241, 0.08)),
    rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 18px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.metal-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 0%, transparent 32%, rgba(255, 255, 255, 0.22) 45%, rgba(160, 180, 255, 0.18) 50%, transparent 62%, transparent 100%);
  transform: translateX(-120%);
  transition: transform 0.9s ease;
  pointer-events: none;
}

.metal-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.12), transparent 30%),
    radial-gradient(circle at 85% 15%, rgba(99, 102, 241, 0.13), transparent 34%);
  pointer-events: none;
}

.metal-card:hover {
  transform: translateY(-5px);
  border-color: rgba(180, 190, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 24px 80px rgba(35, 45, 130, 0.36),
    0 0 42px rgba(99, 102, 241, 0.22);
}

.metal-card:hover::before {
  transform: translateX(120%);
}

.metal-card > * {
  position: relative;
  z-index: 1;
}

.metal-card-content {
  position: relative;
  z-index: 1;
  border-radius: inherit;
}

.glow-accent.glow-accent {
  box-shadow:
    0 0 70px rgba(99, 102, 241, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 60px rgba(0, 0, 0, 0.28);
}

.premium-link {
  position: relative;
  display: inline-block;
}

.premium-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #c7d2fe, #7dd3fc);
  transition: width 0.25s ease;
}

.premium-link:hover::after {
  width: 100%;
}

.cta-primary {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, background-color 0.25s ease;
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px -14px rgba(255, 255, 255, 0.25);
}

.cta-secondary {
  transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.cta-secondary:hover {
  transform: translateY(-2px);
}

nav a:not(.cta-header) {
  transition: color 0.35s ease, opacity 0.35s ease;
}

.checklist li {
  position: relative;
  padding-left: 1.25rem;
  margin: 0.5rem 0;
  color: rgba(248, 250, 252, 0.78);
  line-height: 1.55;
  font-size: 0.9rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(129, 140, 248, 0.9);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .logo-orb {
    animation: none;
  }

  .metal-card,
  .metal-card:hover {
    transition: none;
    transform: none !important;
  }

  .metal-card::before,
  .metal-card:hover::before {
    transition: none !important;
    transform: translateX(-120%) !important;
  }

  .premium-link::after {
    transition: none;
  }

  .cta-primary:hover,
  .cta-secondary:hover {
    transform: none;
  }
}

@media (max-width: 767px) {
  .metal-card:hover {
    transform: none;
  }

  .metal-card:hover::before {
    transform: translateX(-120%);
  }
}

/* ContractBot mark in header + consulting legal strip */
.cb-consult-brand-img {
  flex-shrink: 0;
  border-radius: 6px;
}

.cb-consult-legal-ft {
  border-top: 1px solid var(--line);
  background: rgb(0 0 0 / 0.42);
}

.cb-consult-legal-ft a:hover {
  color: #fff;
}
