/* =============================================================
   Mitra360 — FX layer 2 (flagship polish)
   Adds: hero floor shadow + aurora + grain
         stats strip with count-up
         brand-essence pillars (Trust/Clean/Caring/Efficient)
         "Voices from your block" testimonials
         floating sticky WhatsApp orb
         animated section dividers
         premium scrollbar + selection
   ============================================================= */

/* =============== Brand selection + scrollbar polish =============== */
::selection { background: #1976D2; color: #fff; }
::-moz-selection { background: #1976D2; color: #fff; }

html { scrollbar-width: thin; scrollbar-color: #1976D2 #E3F2FD; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #E3F2FD; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #1976D2, #0D47A1);
  border-radius: 999px;
  border: 2px solid #E3F2FD;
}

/* Smooth focus ring (visible only with keyboard nav) */
:focus-visible {
  outline: 2px solid #1976D2;
  outline-offset: 3px;
  border-radius: 6px;
}

/* =============== HERO: aurora band + grain + floor =============== */
.fx-aurora {
  position: absolute;
  inset: -15%;
  background:
    conic-gradient(from 200deg at 50% 40%,
      rgba(25,118,210,0)   0deg,
      rgba(25,118,210,.35) 60deg,
      rgba(187,222,251,.5) 120deg,
      rgba(25,118,210,.25) 200deg,
      rgba(13,71,161,.3)   280deg,
      rgba(25,118,210,0)   360deg);
  filter: blur(60px) saturate(150%);
  opacity: .55;
  animation: fxAuroraSpin 38s linear infinite;
  mix-blend-mode: screen;
}
@keyframes fxAuroraSpin {
  to { transform: rotate(360deg); }
}

.fx-grain {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(13,27,42,.06) 1px, transparent 1.4px);
  background-size: 3px 3px;
  mix-blend-mode: multiply;
  opacity: .35;
  pointer-events: none;
}

/* Floor shadow under the tilted phone */
.phone { position: relative; }
.phone__floor {
  position: absolute;
  left: 50%;
  bottom: -28px;
  width: 78%;
  height: 36px;
  margin-left: -39%;
  background: radial-gradient(50% 50% at 50% 50%,
    rgba(13, 71, 161, .45) 0%,
    rgba(13, 71, 161, .25) 35%,
    transparent 75%);
  filter: blur(14px);
  border-radius: 50%;
  z-index: -2;
  animation: fxFloorBreathe 5s ease-in-out infinite;
}
@keyframes fxFloorBreathe {
  0%,100% { transform: scaleX(1) translateY(0); opacity: .9; }
  50%     { transform: scaleX(.92) translateY(2px); opacity: .65; }
}

/* =============== Animated section divider (dashed wire) =============== */
.fx-divider {
  display: block;
  position: absolute;
  left: 50%; top: 0;
  transform: translate(-50%, -50%);
  width: clamp(140px, 22vw, 280px);
  height: 1px;
  background: transparent;
  border-top: 1px dashed rgba(25, 118, 210, .35);
}
.fx-divider::before,
.fx-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #1976D2;
  box-shadow: 0 0 0 4px rgba(25, 118, 210, .18), 0 0 12px rgba(25, 118, 210, .6);
  transform: translateY(-50%);
}
.fx-divider::before { left: -8px; }
.fx-divider::after  { right: -8px; background: #BBDEFB; box-shadow: 0 0 0 4px rgba(187,222,251,.4), 0 0 10px rgba(187,222,251,.7); }

/* =============== STATS STRIP =============== */
.section--stats {
  padding-block: clamp(36px, 5vw, 64px) !important;
  background:
    linear-gradient(180deg, transparent, rgba(25,118,210,.04) 60%, transparent),
    #fff;
  position: relative;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid #E4E7EB;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(13,27,42,.03), 0 30px 60px -40px rgba(25,118,210,.35);
  overflow: hidden;
}
@media (max-width: 880px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }

.stat {
  padding: 28px 28px;
  text-align: center;
  position: relative;
  display: flex; flex-direction: column; gap: 6px;
  align-items: center; justify-content: center;
  border-right: 1px solid #ECEFF3;
}
.stat:last-child { border-right: 0; }
@media (max-width: 880px) {
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid #ECEFF3; }
}
@media (max-width: 480px) {
  .stat { border-right: 0; border-bottom: 1px solid #ECEFF3; }
  .stat:last-child { border-bottom: 0; }
}

.stat__num {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 4.6vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(180deg, #0D47A1 0%, #1976D2 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: #6B7480;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 6px;
}

/* =============== BRAND ESSENCE PILLARS =============== */
.section--essence {
  position: relative;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(187,222,251,.45) 0%, transparent 60%),
    #fff;
  padding-block: clamp(72px, 9vw, 120px);
}
.essence {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 8px;
}
@media (max-width: 980px) { .essence { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .essence { grid-template-columns: 1fr; } }

.essence__pillar {
  position: relative;
  background: #fff;
  border: 1px solid #E4E7EB;
  border-radius: 24px;
  padding: 32px 26px 28px;
  display: flex; flex-direction: column; gap: 10px;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.7,.2,1),
              box-shadow .35s ease,
              border-color .35s ease;
}
.essence__pillar::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, #1976D2, #BBDEFB);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.essence__pillar:hover {
  transform: translateY(-6px);
  border-color: #BBDEFB;
  box-shadow: 0 26px 60px -28px rgba(25,118,210,.5);
}
.essence__pillar:hover::after { transform: scaleX(1); }
.essence__pillar:hover .essence__glyph {
  transform: scale(1.06) rotate(-4deg);
  box-shadow: 0 14px 30px -10px rgba(25,118,210,.55);
}

.essence__glyph {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
  color: #0D47A1;
  margin-bottom: 6px;
  transition: transform .4s cubic-bezier(.2,.9,.25,1.2), box-shadow .35s ease;
  position: relative;
}
.essence__glyph::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 22px;
  border: 1px dashed rgba(25,118,210,.25);
  opacity: 0;
  transition: opacity .35s ease;
}
.essence__pillar:hover .essence__glyph::before { opacity: 1; animation: fxSpin 14s linear infinite; }
.essence__glyph svg { width: 30px; height: 30px; }

.essence__pillar h3 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 4px 0 0;
  color: #212529;
}
.essence__pillar p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: #3A444E;
  text-wrap: pretty;
}

/* =============== VOICES (Testimonials) =============== */
.section--voices {
  position: relative;
  background: #F1F3F5;
}
.voices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 8px;
}
@media (max-width: 980px) { .voices { grid-template-columns: 1fr; } }

.voice {
  position: relative;
  background: #fff;
  border: 1px solid #E4E7EB;
  border-radius: 24px;
  padding: 34px 28px 28px;
  display: flex; flex-direction: column; gap: 18px;
  transition: transform .35s cubic-bezier(.2,.7,.2,1),
              box-shadow .35s ease,
              border-color .35s ease;
  overflow: hidden;
}
.voice::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(187,222,251,.5) 0%, transparent 50%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.voice:hover {
  transform: translateY(-4px);
  border-color: #BBDEFB;
  box-shadow: 0 24px 56px -26px rgba(25,118,210,.45);
}
.voice:hover::before { opacity: 1; }

.voice__quote {
  position: absolute;
  top: -12px;
  left: 18px;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 110px;
  line-height: 1;
  color: #1976D2;
  opacity: .18;
  letter-spacing: -0.05em;
  z-index: 0;
  pointer-events: none;
}
.voice__body {
  position: relative; z-index: 1;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.55;
  color: #212529;
  margin: 0;
  text-wrap: pretty;
}
.voice__by {
  position: relative; z-index: 1;
  margin-top: auto;
  display: flex; align-items: center; gap: 12px;
  border-top: 1px solid #ECEFF3;
  padding-top: 16px;
}
.voice__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1976D2, #0D47A1);
  color: #fff;
  display: grid; place-items: center;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 6px 16px -6px rgba(25,118,210,.55);
  flex: 0 0 auto;
}
.voice__by > span:last-child {
  display: flex; flex-direction: column; line-height: 1.25;
}
.voice__by strong {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #212529;
}
.voice__by em {
  font-style: normal;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: .06em;
  color: #6B7480;
  text-transform: uppercase;
  margin-top: 2px;
}

/* =============== FLOATING WHATSAPP ORB =============== */
.fx-float-cta {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px 14px 14px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(135deg, #1976D2, #0D47A1);
  border-radius: 999px;
  box-shadow:
    0 14px 40px -10px rgba(25, 118, 210, .65),
    0 6px 16px -6px rgba(13, 71, 161, .55);
  transform: translateY(20px) scale(.9);
  opacity: 0;
  pointer-events: none;
  transition: transform .45s cubic-bezier(.2,.9,.25,1.2),
              opacity .45s ease,
              box-shadow .3s ease,
              padding .3s ease;
}
.fx-float-cta.is-on {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.fx-float-cta:hover {
  box-shadow:
    0 22px 52px -10px rgba(25, 118, 210, .8),
    0 10px 20px -6px rgba(13, 71, 161, .65);
  transform: translateY(-2px);
}
.fx-float-cta svg {
  width: 22px; height: 22px;
  flex: 0 0 auto;
}
.fx-float-cta__label {
  white-space: nowrap;
}
@media (max-width: 540px) {
  .fx-float-cta { padding: 14px; }
  .fx-float-cta__label { display: none; }
}
.fx-float-cta__ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid rgba(25, 118, 210, .5);
  animation: fxFloatPing 2.4s ease-out infinite;
  pointer-events: none;
}
.fx-float-cta__ring--2 { animation-delay: 1.2s; }
@keyframes fxFloatPing {
  0%   { transform: scale(1);    opacity: .7; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* =============== Section head — eyebrow icon shimmer carries =============== */
.section--essence .section__head .display em,
.section--voices  .section__head .display em {
  background: linear-gradient(120deg, #1976D2, #0D47A1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =============== Small polish: nav scroll state =============== */
.nav.is-scrolled {
  height: 64px;
  box-shadow: 0 10px 30px -22px rgba(13, 27, 42, .35);
}
.nav.is-scrolled .nav__wrap { height: 64px; }

/* =============== Bigger hero copy max width on flagship =============== */
.section--cta .display em {
  background: linear-gradient(120deg, #1976D2, #0D47A1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Reduced motion override */
@media (prefers-reduced-motion: reduce) {
  .fx-aurora,
  .phone__floor,
  .fx-float-cta__ring { animation: none !important; }
}
