/* ==========================================================================
   Janta Nivesh — Motion layer
   Loaded after styles.css. Every effect here is decorative: delete this file
   and the site still works and reads correctly, just without animation.
   All motion is disabled under prefers-reduced-motion (see the bottom).
   ========================================================================== */

/* ---------- 1. Hero aurora background --------------------------------- */
.hero { isolation: isolate; }
.hero-aurora {
  position: absolute; inset: -20% -10%; z-index: 0; pointer-events: none;
  filter: blur(60px); opacity: .55;
}
.hero-aurora span {
  position: absolute; display: block; border-radius: 50%;
  will-change: transform;
}
.hero-aurora .a1 {
  width: 46%; padding-bottom: 46%; left: 4%; top: 6%;
  background: radial-gradient(circle, rgba(0,174,239,.55), rgba(0,174,239,0) 70%);
  animation: drift1 26s ease-in-out infinite;
}
.hero-aurora .a2 {
  width: 40%; padding-bottom: 40%; right: 8%; top: 30%;
  background: radial-gradient(circle, rgba(214,181,133,.34), rgba(214,181,133,0) 70%);
  animation: drift2 32s ease-in-out infinite;
}
.hero-aurora .a3 {
  width: 52%; padding-bottom: 52%; left: 26%; bottom: -14%;
  background: radial-gradient(circle, rgba(66,120,255,.42), rgba(66,120,255,0) 70%);
  animation: drift3 38s ease-in-out infinite;
}
@keyframes drift1 {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  50%     { transform: translate3d(8%,10%,0) scale(1.14); }
}
@keyframes drift2 {
  0%,100% { transform: translate3d(0,0,0) scale(1.06); }
  50%     { transform: translate3d(-10%,8%,0) scale(.92); }
}
@keyframes drift3 {
  0%,100% { transform: translate3d(0,0,0) scale(.96); }
  50%     { transform: translate3d(6%,-10%,0) scale(1.1); }
}

/* Thin animated sheen along the bottom edge of the hero */
.hero-edge {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 2;
  background: linear-gradient(90deg,
    transparent, rgba(0,174,239,.9), rgba(255,255,255,.7), rgba(0,174,239,.9), transparent);
  background-size: 220% 100%;
  animation: sheen 7s linear infinite;
}
@keyframes sheen { from { background-position: 220% 0; } to { background-position: -20% 0; } }

/* ---------- 2. Entrance reveals + stagger ----------------------------- */
/* .reveal itself lives in styles.css; these are the directional variants.
   All share one easing curve so the whole page feels like one hand made it. */
.reveal-l { opacity: 0; transform: translate3d(-32px,0,0);  transition: opacity .75s var(--ease), transform .75s var(--ease); }
.reveal-r { opacity: 0; transform: translate3d(32px,0,0);   transition: opacity .75s var(--ease), transform .75s var(--ease); }
.reveal-s { opacity: 0; transform: scale(.93);              transition: opacity .75s var(--ease), transform .75s var(--ease); }
.reveal-u { opacity: 0; transform: translate3d(0,34px,0);   transition: opacity .75s var(--ease), transform .75s var(--ease); }
.reveal-l.in, .reveal-r.in, .reveal-s.in, .reveal-u.in { opacity: 1; transform: none; }
.reveal, .reveal-l, .reveal-r, .reveal-s, .reveal-u { will-change: opacity, transform; }
.reveal.in, .reveal-l.in, .reveal-r.in, .reveal-s.in, .reveal-u.in { will-change: auto; }

/* Hero copy comes in on load, top to bottom */
.hero-in > * { opacity: 0; transform: translateY(16px); animation: heroIn .8s cubic-bezier(.22,1,.36,1) forwards; }
.hero-in > *:nth-child(1) { animation-delay: .05s; }
.hero-in > *:nth-child(2) { animation-delay: .15s; }
.hero-in > *:nth-child(3) { animation-delay: .25s; }
.hero-in > *:nth-child(4) { animation-delay: .35s; }
.hero-in > *:nth-child(5) { animation-delay: .45s; }
.hero-in > *:nth-child(6) { animation-delay: .55s; }
.hero-in > *:nth-child(7) { animation-delay: .65s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* ---------- 3. Counting numbers --------------------------------------- */
.count { font-variant-numeric: tabular-nums; }

/* ---------- 4. Hero photo float --------------------------------------- */
.hero-figure { animation: floaty 9s ease-in-out infinite; will-change: transform; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- 5. Card + icon micro-interactions ------------------------- */
.card-hover { position: relative; overflow: hidden; }
.card-hover::before {
  content: ''; position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx,50%) var(--my,0%), rgba(0,174,239,.09), transparent 62%);
  transition: opacity .35s;
}
.card-hover:hover::before { opacity: 1; }

.card-icon { transition: transform .35s cubic-bezier(.34,1.56,.64,1), background-color .3s; }
.card:hover .card-icon { transform: translateY(-3px) rotate(-5deg); background: #E3F5FD; }
.card-icon svg path, .card-icon svg circle, .card-icon svg rect, .card-icon svg polyline {
  stroke-dasharray: 120; stroke-dashoffset: 120;
  transition: stroke-dashoffset 1s cubic-bezier(.22,1,.36,1);
}
.in .card-icon svg path, .in .card-icon svg circle, .in .card-icon svg rect, .in .card-icon svg polyline,
.card-icon.drawn svg path, .card-icon.drawn svg circle, .card-icon.drawn svg rect, .card-icon.drawn svg polyline {
  stroke-dashoffset: 0;
}

.card-num { transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.card:hover .card-num { transform: scale(1.09); }

/* ---------- 6. Buttons ------------------------------------------------ */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ''; position: absolute; top: 0; left: -140%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.32), transparent);
  transform: skewX(-18deg); transition: left .6s cubic-bezier(.22,1,.36,1);
}
.btn:hover::after { left: 150%; }
.btn-ghost::after { background: linear-gradient(100deg, transparent, rgba(35,51,110,.09), transparent); }

/* Gentle pulse ring on the main launch CTA */
.btn-pulse { position: relative; }
.btn-pulse::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(0,174,239,.55); animation: pulse 2.8s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,174,239,.5); }
  70%  { box-shadow: 0 0 0 14px rgba(0,174,239,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,174,239,0); }
}

/* ---------- 7. Nav underline ------------------------------------------ */
.nav a { position: relative; }
.nav a::after {
  content: ''; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px;
  background: var(--sky); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .28s cubic-bezier(.22,1,.36,1);
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
@media (max-width: 1040px) { .nav a::after { display: none; } }

/* ---------- 8. Language chips ----------------------------------------- */
.lang-chip { transition: transform .25s cubic-bezier(.34,1.56,.64,1), background-color .2s, border-color .2s, color .2s; }
.lang-chip:hover { transform: translateY(-2px); }
.lang-chip[aria-pressed="true"] { animation: chipPop .38s cubic-bezier(.34,1.56,.64,1); }
@keyframes chipPop { 0% { transform: scale(1); } 45% { transform: scale(1.1); } 100% { transform: scale(1); } }

/* ---------- 9. Phone mockup ------------------------------------------- */
.phone-wrap { display: flex; justify-content: center; perspective: 1400px; }
.phone {
  position: relative; width: 100%; max-width: 290px;
  animation: floaty 10s ease-in-out infinite;
}
.phone-frame {
  position: relative; border-radius: 38px; padding: 11px;
  background: linear-gradient(160deg, #2B3A6B 0%, #131C42 100%);
  box-shadow: 0 30px 70px rgba(10,18,48,.45), 0 0 0 1px rgba(255,255,255,.09) inset;
}
.phone-notch {
  position: absolute; top: 17px; left: 50%; transform: translateX(-50%);
  width: 78px; height: 20px; background: #0D1533; border-radius: 0 0 12px 12px; z-index: 4;
}
.phone-screen {
  position: relative; border-radius: 28px; overflow: hidden; background: #fff;
  aspect-ratio: 9/18.5;
}
.phone-slide {
  position: absolute; inset: 0; padding: 40px 16px 16px;
  display: flex; flex-direction: column; gap: 10px;
  opacity: 0; transform: translateY(16px) scale(.98); pointer-events: none;
  transition: opacity .55s cubic-bezier(.22,1,.36,1), transform .55s cubic-bezier(.22,1,.36,1);
  background: linear-gradient(180deg, #F7FAFF 0%, #FFFFFF 42%);
  overflow: hidden;
}
.phone-slide.on { opacity: 1; transform: none; pointer-events: auto; }
.phone-slide h4 { font-size: .8125rem; margin: 0 0 2px; color: var(--ink); line-height: 1.35; }
.phone-slide .ps-sub { font-size: .625rem; color: var(--muted); margin: 0 0 6px; line-height: 1.4; }
.phone-bar {
  height: 22px; border-radius: 6px; background: var(--navy); color: #fff;
  display: flex; align-items: center; padding: 0 8px; font-size: .5625rem; font-weight: 600;
  letter-spacing: .02em; flex-shrink: 0;
}
.ps-opt {
  border: 1.5px solid var(--line); border-radius: 9px; padding: 7px 9px;
  font-size: .6875rem; font-weight: 600; color: var(--ink); background: #fff;
  display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
  transition: border-color .3s, background-color .3s, color .3s, transform .3s;
}
.ps-opt .tick { opacity: 0; color: var(--sky); font-size: .75rem; transition: opacity .3s; }
.ps-opt.sel { border-color: var(--sky); background: var(--sky-light); transform: translateX(3px); }
.ps-opt.sel .tick { opacity: 1; }
.ps-card {
  border: 1px solid var(--line); border-radius: 11px; padding: 9px 10px; background: #fff; flex-shrink: 0;
}
.ps-row { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.ps-row + .ps-row { margin-top: 5px; }
.ps-lbl { font-size: .5625rem; color: var(--muted); }
.ps-val { font-size: .75rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.ps-val.up { color: var(--success); }
.ps-mini { display: flex; align-items: flex-end; gap: 3px; height: 40px; margin-top: 8px; }
.ps-mini i {
  flex: 1; background: linear-gradient(180deg, var(--sky) 0%, #7FD9FF 100%);
  border-radius: 3px 3px 0 0; height: 12%; transform-origin: bottom;
  animation: barGrow 1.1s cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes barGrow { from { height: 6%; } }
.ps-btn {
  margin-top: auto; background: var(--sky); color: #fff; border-radius: 999px;
  text-align: center; padding: 8px; font-size: .6875rem; font-weight: 700; flex-shrink: 0;
}
.ps-note { font-size: .5rem; color: var(--muted); text-align: center; margin: 5px 0 0; line-height: 1.4; }
.ps-amount {
  font-size: 1.25rem; font-weight: 800; color: var(--navy); text-align: center;
  padding: 10px 0 4px; font-variant-numeric: tabular-nums;
}
.phone-dots { display: flex; gap: 6px; justify-content: center; margin-top: 16px; }
.phone-dots button {
  width: 7px; height: 7px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: rgba(35,51,110,.22); transition: all .3s;
}
.phone-dots button.on { background: var(--sky); width: 20px; border-radius: 4px; }
.phone-dots.on-dark button { background: rgba(255,255,255,.28); }
.phone-dots.on-dark button.on { background: var(--sky); }

/* ---------- 10. Journey timeline -------------------------------------- */
.timeline { position: relative; padding-left: 46px; }
.timeline::before {
  content: ''; position: absolute; left: 18px; top: 8px; bottom: 8px; width: 2px;
  background: var(--line);
}
.timeline-fill {
  position: absolute; left: 18px; top: 8px; width: 2px; height: 0;
  background: linear-gradient(180deg, var(--sky), var(--navy));
  border-radius: 2px; transition: height .18s linear;
}
.tl-step { position: relative; margin-bottom: 16px; }
.tl-step::before {
  content: ''; position: absolute; left: -37px; top: 26px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 2px solid var(--line);
  transition: border-color .4s, background-color .4s, transform .4s cubic-bezier(.34,1.56,.64,1);
  z-index: 1;
}
.tl-step.lit::before { border-color: var(--sky); background: var(--sky); transform: scale(1.25); }
@media (max-width: 620px) {
  .timeline { padding-left: 34px; }
  .timeline::before, .timeline-fill { left: 12px; }
  .tl-step::before { left: -28px; }
}

/* ---------- 11. SIP illustration -------------------------------------- */
.calc-grid { display: grid; grid-template-columns: 320px 1fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .calc-grid { grid-template-columns: 1fr; gap: 24px; } }

.calc-ctrl + .calc-ctrl { margin-top: 22px; }
.calc-ctrl .top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 9px; }
.calc-ctrl label { font-size: .875rem; font-weight: 600; color: var(--ink); }
.calc-ctrl output {
  font-size: 1rem; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums;
  background: var(--navy-light); padding: 3px 11px; border-radius: 999px; white-space: nowrap;
}
input[type="range"].calc-range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, var(--sky) 0%, var(--sky) var(--pct,40%), var(--line) var(--pct,40%), var(--line) 100%);
  outline: none; cursor: pointer; margin: 0;
}
input[type="range"].calc-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; border: 3px solid var(--sky); cursor: grab;
  box-shadow: 0 2px 8px rgba(22,32,63,.2); transition: transform .2s, box-shadow .2s;
}
input[type="range"].calc-range::-webkit-slider-thumb:hover { transform: scale(1.14); }
input[type="range"].calc-range:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.2); box-shadow: 0 0 0 8px rgba(0,174,239,.16); }
input[type="range"].calc-range::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--sky);
  cursor: grab; box-shadow: 0 2px 8px rgba(22,32,63,.2);
}
input[type="range"].calc-range::-moz-range-track { height: 6px; border-radius: 999px; background: transparent; }

.calc-out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
@media (max-width: 520px) { .calc-out { grid-template-columns: 1fr; } }
.calc-out .box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
}
.calc-out .box .k { font-size: .75rem; color: var(--muted); display: block; margin-bottom: 4px; line-height: 1.35; }
.calc-out .box .v { font-size: 1.25rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; display: block; }
.calc-out .box .vx {
  display: block; font-size: .75rem; color: var(--muted); margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.calc-out .box.accent { border-color: rgba(0,174,239,.4); background: var(--sky-light); }
.calc-out .box.accent .v { color: var(--sky-dark); }

.calc-chart { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.calc-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.calc-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 12px; font-size: .8125rem; color: var(--body); }
.calc-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; margin-right: 7px; vertical-align: -1px; }
.calc-legend .li { background: #C9D3EA; }
.calc-legend .lv { background: var(--sky); }

/* ---------- 12. Growth band coin stack -------------------------------- */
.coins { display: flex; align-items: flex-end; gap: 10px; height: 130px; }
.coins .stack { flex: 1; display: flex; flex-direction: column-reverse; gap: 3px; align-items: center; }
.coins .stack b {
  display: block; width: 100%; height: 9px; border-radius: 3px;
  background: linear-gradient(180deg, #E9C892, #D6B585);
  opacity: 0; transform: translateY(8px);
  transition: opacity .4s ease, transform .4s cubic-bezier(.34,1.56,.64,1);
}
.coins.in .stack b { opacity: 1; transform: none; }
.coins .stack span { font-size: .625rem; color: var(--muted); margin-top: 6px; }

/* ---------- 13. Smooth accordion -------------------------------------- */
.acc-panel { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .32s cubic-bezier(.22,1,.36,1); }
.acc-panel > .acc-inner { overflow: hidden; }
.acc-panel[hidden] {
  display: grid !important; grid-template-rows: 0fr;
  padding-top: 0; padding-bottom: 0; visibility: hidden;
}
.acc-item { transition: border-color .25s, box-shadow .25s; }
.acc-item:has(.acc-btn[aria-expanded="true"]) { border-color: rgba(0,174,239,.45); box-shadow: var(--shadow-sm); }

/* ---------- 14. Scroll progress bar ----------------------------------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 300;
  background: linear-gradient(90deg, var(--sky), var(--navy)); transition: width .1s linear;
}

/* ---------- 15. Section heading underline ----------------------------- */
.section-head h2 { position: relative; display: inline-block; }
.section-head h2::after {
  content: ''; position: absolute; left: 0; bottom: -8px; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--sky), transparent); border-radius: 3px;
  transition: width .8s cubic-bezier(.22,1,.36,1) .2s;
}
.section-head.in h2::after, .in .section-head h2::after { width: 68px; }

/* ---------- 17. Marquee ---------------------------------------------- */
.marquee-track { animation: marquee 46s linear infinite; }
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }
.mq-card { transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.mq-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: var(--shadow-lg); }

/* ---------- 18. Hero parallax ---------------------------------------- */
[data-parallax] { will-change: transform; transition: transform .12s linear; }

/* ---------- 19. Product tabs ----------------------------------------- */
.tab-panel { animation: panelIn .45s var(--ease) both; }
@keyframes panelIn {
  from { opacity: 0; transform: translate3d(0,10px,0) scale(.995); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 20. Magnetic buttons ------------------------------------- */
.magnetic { transition: transform .25s var(--ease), box-shadow .3s var(--ease); }

/* ---------- 21. Trust bar items -------------------------------------- */
.trust-item { opacity: 0; transform: translateY(10px); animation: trustIn .6s var(--ease) forwards; }
.trust-item:nth-child(1) { animation-delay: .1s; }
.trust-item:nth-child(2) { animation-delay: .2s; }
.trust-item:nth-child(3) { animation-delay: .3s; }
.trust-item:nth-child(4) { animation-delay: .4s; }
@keyframes trustIn { to { opacity: 1; transform: none; } }

/* ---------- 22. Tick lists animate in -------------------------------- */
.tick-list li { transition: transform .3s var(--ease); }
.tick-list li::before { transition: transform .35s var(--ease-back); }
.split-panel:hover .tick-list li::before { transform: scale(1.12); }
.split-panel { transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.split-panel:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* ---------- 23. Stepper connector fills on reveal --------------------- */
.stepper { position: relative; }
.stepper::after {
  content: ''; position: absolute; left: 8%; top: 20px; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--sky), var(--navy));
  transition: width 1.4s var(--ease) .25s; z-index: 0;
}
.stepper.in::after { width: 84%; }
@media (max-width: 900px) { .stepper::after { display: none; } }
.step .card-num { transition: transform .4s var(--ease-back), box-shadow .4s var(--ease); }
.step:hover .card-num { transform: translateY(-4px) scale(1.06); box-shadow: 0 8px 20px rgba(35,51,110,.3); }

/* ---------- 24. Hero brandline shimmer -------------------------------- */
.hero-brandline {
  background: linear-gradient(90deg, var(--gold) 0%, #F3DFC0 30%, var(--gold) 60%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { from { background-position: 220% 0; } to { background-position: -20% 0; } }

/* ---------- 16. Respect the user's preference ------------------------- */
@media (prefers-reduced-motion: reduce) {
  .hero-aurora, .hero-edge { animation: none !important; }
  .hero-figure, .phone { animation: none !important; }
  .hero-in > * { opacity: 1 !important; transform: none !important; animation: none !important; }
  .reveal-l, .reveal-r, .reveal-s, .reveal-u { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none !important; }
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  [data-parallax] { transform: none !important; }
  .tab-panel { animation: none !important; }
  .trust-item { opacity: 1 !important; transform: none !important; animation: none !important; }
  .stepper::after { width: 84% !important; transition: none !important; }
  .hero-brandline { animation: none !important; -webkit-text-fill-color: var(--gold); color: var(--gold); }
  .sticky-cta { transition: none !important; }
  .btn::after, .btn-pulse::before { display: none !important; }
  .phone-slide { transition: none !important; }
  .acc-panel { transition: none !important; }
  .coins .stack b { opacity: 1 !important; transform: none !important; }
  .card-icon svg path, .card-icon svg circle, .card-icon svg rect, .card-icon svg polyline {
    stroke-dashoffset: 0 !important; transition: none !important;
  }
  .section-head h2::after { width: 68px !important; transition: none !important; }
  .timeline-fill, .scroll-progress { transition: none !important; }
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
