/* MAKIV marketing; extends Bootstrap 5 */
html {
  font-size: 112.5%;
}

:root {
  --makiv-primary: #2f55d4;
  --makiv-primary-dark: #2443ac;
  --bs-primary: #2f55d4;
  --bs-primary-rgb: 47, 85, 212;
  --makiv-muted: #8492a6;
  --makiv-bg-soft: #f8f9fc;
  --makiv-logo-filter: hue-rotate(-44deg) saturate(1.2) brightness(1.06) contrast(1.02);
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #3c4858;
}

.text-muted-makiv {
  color: var(--makiv-muted) !important;
}

.navbar {
  box-shadow: 0 0 3px rgba(60, 72, 88, 0.15);
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #2f55d4 !important;
}

.navbar-brand-img {
  height: 44px;
  width: auto;
  max-width: min(200px, 50vw);
  object-fit: contain;
  filter: var(--makiv-logo-filter);
}

.footer-logo {
  height: 44px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  filter: var(--makiv-logo-filter);
}

section {
  scroll-margin-top: 5rem;
}

.hero-section {
  position: relative;
  overflow: hidden;
  --hero-shift-x: 0px;
  --hero-shift-y: 0px;
  background:
    radial-gradient(circle at 12% 18%, rgba(62, 114, 255, 0.34) 0%, transparent 42%),
    radial-gradient(circle at 86% 20%, rgba(0, 180, 255, 0.27) 0%, transparent 48%),
    radial-gradient(circle at 70% 82%, rgba(25, 78, 220, 0.28) 0%, transparent 54%),
    linear-gradient(135deg, #0f1f52 0%, #17337b 38%, #1d5cab 72%, #2a83c8 100%);
  padding-top: 4.75rem;
  padding-bottom: 4.5rem;
}

.hero-section::before,
.hero-section::after {
  content: "";
  position: absolute;
  inset: -18%;
  pointer-events: none;
  z-index: 0;
}

.hero-section::before {
  background: conic-gradient(
    from 180deg at 50% 50%,
    rgba(105, 152, 255, 0.08),
    rgba(0, 195, 255, 0.11),
    rgba(116, 95, 255, 0.08),
    rgba(105, 152, 255, 0.08)
  );
  filter: blur(34px);
  transform: translate3d(var(--hero-shift-x), var(--hero-shift-y), 0) rotate(0deg);
  animation: heroSpin 28s linear infinite;
}

.hero-section::after {
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0) 18%,
    rgba(255, 255, 255, 0.08) 42%,
    rgba(255, 255, 255, 0) 64%
  );
  transform: translateX(-45%);
  animation: heroSweep 10s ease-in-out infinite;
}

@media (min-width: 992px) {
  .hero-section {
    padding-top: 0rem;
    padding-bottom: 5rem;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    padding-top: 4.1rem;
  }
}

.hero-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.15;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 0.7px, transparent 0.7px);
  background-size: 16px 16px;
}

.hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(38px);
  opacity: 0.45;
  animation: heroFloat 15s ease-in-out infinite;
}

.hero-orb-a {
  width: 20rem;
  height: 20rem;
  background: rgba(18, 96, 240, 0.2);
  left: -6%;
  top: 8%;
}

.hero-orb-b {
  width: 15rem;
  height: 15rem;
  background: rgba(0, 196, 255, 0.2);
  right: 10%;
  top: 4%;
  animation-delay: -4s;
}

.hero-orb-c {
  width: 13rem;
  height: 13rem;
  background: rgba(8, 88, 214, 0.18);
  right: 18%;
  bottom: 6%;
  animation-delay: -8s;
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -20px, 0) scale(1.05);
  }
}

@keyframes heroSpin {
  0% {
    transform: translate3d(var(--hero-shift-x), var(--hero-shift-y), 0) rotate(0deg);
  }
  100% {
    transform: translate3d(var(--hero-shift-x), var(--hero-shift-y), 0) rotate(360deg);
  }
}

@keyframes heroSweep {
  0%,
  100% {
    transform: translateX(-48%);
    opacity: 0;
  }
  50% {
    transform: translateX(42%);
    opacity: 1;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: 2.8rem;
  }
}

.hero-content {
  max-width: 56rem;
  position: relative;
  z-index: 3;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(47, 85, 212, 0.22);
  background: rgba(255, 255, 255, 0.75);
  color: var(--makiv-primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-headline {
  font-size: clamp(2.1rem, 5.2vw, 3.55rem);
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #f4f8ff;
  background: linear-gradient(110deg, #f7fbff 12%, #9bd4ff 48%, #f2f8ff 76%);
  background-size: 180% 180%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: heroTextShift 8s ease-in-out infinite;
  text-shadow: 0 10px 35px rgba(8, 17, 54, 0.22);
  max-width: 24ch;
}

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

.hero-subcopy {
  max-width: 36rem;
  font-size: clamp(1.03rem, 1.2vw, 1.16rem);
  color: rgba(233, 242, 255, 0.9);
}

.hero-cta-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
}

.hero-proof-item {
  color: rgba(229, 239, 255, 0.92);
  font-size: 0.94rem;
  font-weight: 500;
}

.hero-proof-item i {
  color: #2eca8b;
  margin-right: 0.3rem;
}

.hero-headline,
.hero-subcopy,
.hero-cta-wrap,
.hero-proof {
  will-change: transform;
}

.hero-visual-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-visual {
  width: min(132%, 52rem);
  aspect-ratio: 1 / 1;
  border-radius: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  box-shadow: none;
  background: transparent;
  transform-style: preserve-3d;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: min(88vw, 36rem);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 1px solid rgba(201, 230, 255, 0.28);
  box-shadow:
    inset 0 0 70px rgba(194, 236, 255, 0.12),
    0 0 80px rgba(109, 183, 255, 0.24);
  filter: blur(0.2px);
  z-index: 1;
  animation: heroRingPulse 6.5s ease-in-out infinite;
}

@keyframes heroRingPulse {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.02);
    opacity: 0.85;
  }
}

.hero-image-stack {
  width: min(126%, 50rem);
  position: relative;
  z-index: 2;
}

.hero-image-stack::after {
  content: "";
  position: absolute;
  top: 6%;
  bottom: 10%;
  left: 14%;
  width: 16%;
  transform: skewX(-16deg) translateX(-350%);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.24) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  filter: blur(1.5px);
  pointer-events: none;
  animation: heroImageShine 7.5s ease-in-out infinite;
}

@keyframes heroImageShine {
  0%,
  62% {
    transform: skewX(-16deg) translateX(-350%);
    opacity: 0;
  }
  75% {
    opacity: 0.75;
  }
  100% {
    transform: skewX(-16deg) translateX(760%);
    opacity: 0;
  }
}

.hero-glow {
  position: absolute;
  filter: blur(22px);
  border-radius: 50%;
  z-index: 1;
}

.hero-glow-1 {
  width: 9rem;
  height: 9rem;
  background: rgba(47, 85, 212, 0.24);
  top: 10%;
  right: 12%;
}

.hero-glow-2 {
  width: 8rem;
  height: 8rem;
  background: rgba(120, 82, 255, 0.26);
  bottom: 14%;
  left: 9%;
}

.hero-float-card {
  position: absolute;
  z-index: 3;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(47, 85, 212, 0.24);
  border-radius: 0.95rem;
  box-shadow: 0 0.8rem 2.5rem rgba(30, 45, 95, 0.16);
  padding: 0.75rem 0.9rem;
  min-width: 9.5rem;
  max-width: 12rem;
}

.hero-float-card-top {
  top: 11%;
  left: -4%;
}

.hero-float-card-bottom {
  right: -5%;
  bottom: 10%;
}

.hero-float-title {
  color: #6a7389;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.hero-float-value {
  color: #15192b;
  font-weight: 700;
  font-size: 0.96rem;
  line-height: 1.3;
}

.hero-metrics {
  margin-top: 2.2rem;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0.85rem;
}

@media (min-width: 768px) {
  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.hero-metric-card {
  border-radius: 0.9rem;
  border: 1px solid rgba(60, 72, 88, 0.1);
  background: rgba(255, 255, 255, 0.85);
  padding: 1rem 1.1rem;
}

.hero-metric-num {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: #1a2b76;
  letter-spacing: -0.02em;
}

.hero-metric-label {
  font-size: 0.88rem;
  color: #687289;
  margin-top: 0.35rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.2, 0.65, 0.2, 1),
    filter 0.8s ease;
  transition-delay: var(--reveal-delay, 0ms);
  filter: blur(4px);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.section-title {
  font-size: 1.9375rem;
  font-weight: 600;
  color: #1a1a2e;
}

.feature-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: rgba(47, 85, 212, 0.1);
  color: var(--makiv-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.pricing-card {
  border: 1px solid rgba(60, 72, 88, 0.12);
  border-radius: 0.5rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  height: 100%;
}

.pricing-card:hover {
  box-shadow: 0 0.5rem 1.5rem rgba(47, 85, 212, 0.12);
}

.pricing-card.featured {
  border-color: var(--makiv-primary);
  box-shadow: 0 0.35rem 1rem rgba(47, 85, 212, 0.15);
}

.pricing-card .price-num {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--makiv-primary);
  line-height: 1;
}

.portfolio-card {
  border: 1px solid rgba(60, 72, 88, 0.1);
  border-radius: 0.5rem;
  overflow: hidden;
  height: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.portfolio-card:hover {
  border-color: rgba(47, 85, 212, 0.35);
  box-shadow: 0 0.5rem 1.25rem rgba(47, 85, 212, 0.1);
}

.portfolio-card .card-body {
  padding: 1.25rem 1.5rem;
}

.contact-card {
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 1rem rgba(60, 72, 88, 0.08);
}

.footer-main {
  background: var(--makiv-bg-soft);
}

.footer-bar {
  background: #f1f3f9;
  font-size: 0.875rem;
}

.list-check {
  padding-left: 0;
  list-style: none;
}

.list-check li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--makiv-muted);
  font-size: 1.0625rem;
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #2eca8b;
}

.hero-illustration {
  z-index: 2;
  position: relative;
}

.hero-main-shot {
  width: 100%;
  height: 100%;
  max-height: 680px;
  border-radius: 0;
  object-fit: contain;
  box-shadow: none;
  opacity: 0.97;
  filter: drop-shadow(0 26px 42px rgba(14, 51, 146, 0.16)) saturate(1.02);
  -webkit-mask-image: radial-gradient(
      ellipse at 66% 56%,
      rgba(0, 0, 0, 1) 53%,
      rgba(0, 0, 0, 0.86) 67%,
      rgba(0, 0, 0, 0.38) 84%,
      transparent 100%
    ),
    linear-gradient(to left, rgba(0, 0, 0, 1) 66%, rgba(0, 0, 0, 0.2) 90%, transparent 100%);
  mask-image: radial-gradient(
      ellipse at 66% 56%,
      rgba(0, 0, 0, 1) 53%,
      rgba(0, 0, 0, 0.86) 67%,
      rgba(0, 0, 0, 0.38) 84%,
      transparent 100%
    ),
    linear-gradient(to left, rgba(0, 0, 0, 1) 66%, rgba(0, 0, 0, 0.2) 90%, transparent 100%);
}

@media (max-width: 991.98px) {
  .hero-image-stack {
    width: min(98%, 29rem);
  }

  .hero-main-shot {
    max-height: 430px;
  }
}

@media (min-width: 992px) {
  .hero-visual-wrap {
    margin-left: -8.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-visual {
    transform: none !important;
  }

  .hero-illustration,
  .hero-float-card {
    transform: none !important;
  }

  .hero-orb {
    animation: none;
  }

  .hero-section::before,
  .hero-section::after,
  .hero-headline,
  .hero-subcopy,
  .hero-cta-wrap,
  .hero-proof,
  .hero-image-stack::after,
  .hero-visual::before {
    animation: none;
    transform: none;
  }
}
