/* =====================================================================
   Cinematic hero (canvas day-cycle scene) + scroll effects for the page
   ===================================================================== */

.hero--scene {
  position: relative; height: auto; min-height: min(calc(100vh - 72px), 920px); display: flex; align-items: center;
  padding: 0; overflow: hidden; background: #2b2f5a; color: #fff;
}
.hero--scene .scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5,8,30,.62) 0%, rgba(5,8,30,.3) 36%, rgba(5,8,30,0) 60%),
    linear-gradient(0deg, rgba(5,8,30,.4) 0%, rgba(5,8,30,0) 30%);
}
.hero__inner { position: relative; z-index: 2; padding: 28px 0 150px; }
.hero--scene .hero__copy { max-width: 600px; padding: 0; background: none; box-shadow: none; backdrop-filter: none; }
.hero--scene .kicker { color: var(--sun); }
.hero--scene .kicker::before { background: var(--orange); }
.hero--scene .hero__title { color: #fff; text-shadow: 0 6px 30px rgba(0,0,0,.35); }
.hero--scene .hero__sub { color: rgba(255,255,255,.88); text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.hero--scene .btn--outline { color: #fff; border-color: rgba(255,255,255,.8); }
.hero--scene .btn--outline:hover { background: #fff; color: var(--navy); }
.hero--scene .hero__badges li { color: #d6f0c8; text-shadow: 0 2px 10px rgba(0,0,0,.4); }

/* live reach numbers under the hero copy */
.hero__stats { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 12px 36px; }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1; color: var(--sun); text-shadow: 0 4px 20px rgba(0,0,0,.4); }
.hero__stats span { font-weight: 600; color: rgba(255,255,255,.85); font-size: .95rem; }

/* live weather chip, bottom left */
.hero__weather { position: absolute; left: 24px; bottom: 22px; z-index: 3; display: flex; align-items: center; gap: 10px; }
.hero__weather-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: rgba(1,5,45,.55); backdrop-filter: blur(8px); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .92rem; cursor: pointer; transition: background .2s; }
.hero__weather-btn:hover { background: rgba(243,146,33,.85); }
.hero__weather-btn .ico { width: 18px; height: 18px; color: var(--sun); }
.hero__weather-out { display: none; padding: 10px 16px; border-radius: 999px; background: rgba(1,5,45,.55); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.2); color: #fff; font-weight: 600; font-size: .95rem; }
.hero__weather[data-state="live"] .hero__weather-btn, .hero__weather[data-state="loading"] .hero__weather-btn, .hero__weather[data-state="denied"] .hero__weather-btn { display: none; }
.hero__weather[data-state="live"] .hero__weather-out, .hero__weather[data-state="loading"] .hero__weather-out, .hero__weather[data-state="denied"] .hero__weather-out { display: inline-block; }
.hero__weather[data-state="loading"] .hero__weather-out { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .5; } }

/* day-cycle captions, bottom right */
.hero__caps { position: absolute; right: 24px; bottom: 22px; z-index: 2; max-width: min(520px, calc(100% - 48px)); display: grid; }
.hero__cap {
  grid-area: 1 / 1; margin: 0; padding: 12px 18px; border-radius: 18px;
  background: rgba(1,5,45,.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .95rem; line-height: 1.4;
  opacity: 0; transform: translateY(10px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
  border: 1px solid rgba(255,255,255,.14);
}
.hero__cap::before { content: "✦ "; color: var(--sun); }
.hero__clock { display: inline-block; margin-right: 10px; padding: 2px 10px; border-radius: 999px; background: var(--orange); color: #fff; font-size: .85rem; font-variant-numeric: tabular-nums; }
.hero__clock:empty { display: none; }
.hero__cap.is-on { opacity: 1; transform: none; }

.hero__scroll { position: absolute; left: 50%; bottom: 28px; translate: -50% 0; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 6px; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; opacity: .85; animation: bounce 1.8s ease-in-out infinite; }
.hero__scroll .ico { width: 20px; height: 20px; transform: rotate(90deg); }

/* ---------- how a withdrawal works ---------- */
.how { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.how__phone { width: min(300px, 80%); margin: 0 auto; filter: drop-shadow(0 30px 40px rgba(43,33,23,.25)); }
.how__steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: how; }
.how__step {
  display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; padding: 16px 18px; border-radius: 18px;
  border: 2px solid transparent; background: #fff;
  animation: howStep 14s linear infinite; animation-delay: calc(var(--i) * 3.5s);
}
.how__step::before { content: counter(how); counter-increment: how; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--cream-2); color: var(--terracotta); font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; }
.how__step h3 { font-size: 1.1rem; margin-bottom: 4px; }
.how__step p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.how__step > div, .journey__step > div { min-width: 0; overflow-wrap: anywhere; }
.how__screen { font-family: var(--font-head); }
.how__screen > g { opacity: 0; animation: howScreen 14s linear infinite; animation-delay: calc(var(--i) * 3.5s); }
.how .scan-ring { stroke-dasharray: 1; stroke-dashoffset: 1; animation: scan 14s linear infinite; animation-delay: 7s; }
.how .typed { animation: typed 14s steps(12) infinite; }
.how .typed--bar { animation-delay: 7s; animation-timing-function: linear; }
.how .tick { stroke-dasharray: 1; stroke-dashoffset: 1; animation: tick 14s linear infinite; animation-delay: 10.5s; }

/* ---------- scroll effects ---------- */
.reveal--left { opacity: 0; transform: translateX(-60px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal--right { opacity: 0; transform: translateX(60px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal--zoom { opacity: 0; transform: scale(.88); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal--left.is-in, .reveal--right.is-in, .reveal--zoom.is-in { opacity: 1; transform: none; }
.tilt { transform-style: preserve-3d; transition: transform .25s ease-out; will-change: transform; }
.tilt.is-tilting { transition: none; }
.journey__path .draw { transition: none; }           /* driven by scroll in main.js */
.float { animation: float 6s ease-in-out infinite; }
.float--2 { animation-delay: -2s; animation-duration: 7s; }
.float--3 { animation-delay: -4s; animation-duration: 8s; }
.section-deco { position: absolute; pointer-events: none; opacity: .5; z-index: 0; }
.section { overflow: hidden; }
.section > .wrap { position: relative; z-index: 1; }

@keyframes bounce    { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@keyframes float     { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-18px) rotate(3deg); } }
@keyframes howStep   { 0%, 24% { border-color: var(--orange); transform: translateX(6px); box-shadow: 0 12px 30px rgba(243,146,33,.25); } 27%, 100% { border-color: transparent; transform: none; box-shadow: none; } }
@keyframes howScreen { 0%, 24% { opacity: 1; } 26%, 100% { opacity: 0; } }
@keyframes scan      { 0% { stroke-dashoffset: 1; } 20% { stroke-dashoffset: 0; } 25%, 100% { stroke-dashoffset: 0; } }
@keyframes typed     { 0% { width: 0; } 22% { width: 190px; } 25%, 100% { width: 190px; } }
@keyframes tick      { 0% { stroke-dashoffset: 1; } 8% { stroke-dashoffset: 0; } 25%, 100% { stroke-dashoffset: 0; } }

@media (max-width: 900px) {
  .hero--scene { height: auto; min-height: min(calc(100vh - 76px), 820px); }
  .hero__inner { padding: 40px 0 260px; }
  .hero__caps { right: 16px; left: 16px; bottom: 124px; max-width: none; }
  .hero__weather { left: 16px; right: 16px; bottom: 64px; }
  .hero__weather-btn, .hero__weather-out { width: 100%; justify-content: center; text-align: center; }
  .hero__cap { font-size: .95rem; padding: 12px 16px; }
  .how { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal--left, .reveal--right, .reveal--zoom { opacity: 1; transform: none; }
  .journey__path .draw { stroke-dashoffset: 0 !important; }
}

/* ---------- header: clean white bar, quiet navy nav, one orange accent ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 1000; background: var(--orange); transform: scaleX(var(--p, 0)); transform-origin: left; pointer-events: none; }
.site-header { position: sticky; top: 0; z-index: 900; background: #fff; border-bottom: 1px solid rgba(1,5,45,.08); padding: 0; backdrop-filter: none; transition: box-shadow .3s; }
.site-header::after { display: none; }
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(1,5,45,.08); }
.site-header__row { min-height: 76px; gap: 32px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; backdrop-filter: none; transition: min-height .3s var(--ease); }
.site-header__row::before { display: none; }
.site-header.is-scrolled .site-header__row { min-height: 66px; }
.brand img { height: 34px; width: auto; transition: opacity .2s; }
.brand:hover img { opacity: .85; }
.nav { margin-left: 8px; }
.nav__list { gap: 6px; }
.nav__item > a, .nav__btn { position: relative; color: var(--navy); font-weight: 600; font-size: .95rem; padding: 10px 12px; border-radius: 8px; background: none; letter-spacing: 0; transition: color .2s; }
.nav__item > a::after, .nav__btn::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav__item > a:hover, .nav__btn:hover, .nav__item--sub:hover .nav__btn { color: var(--terracotta); background: none; }
.nav__item > a:hover::after, .nav__btn:hover::after, .nav__item--sub:hover .nav__btn::after, .nav__item.is-active > a::after { transform: scaleX(1); }
.nav__item.is-active > a { color: var(--navy); background: none; }
.nav__btn .ico--chev { width: 14px; height: 14px; opacity: .6; transition: transform .25s var(--ease); }
.nav__item--sub:hover .nav__btn .ico--chev { transform: rotate(90deg); }
.nav__sub { min-width: 560px; padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: #fff; border: 1px solid rgba(1,5,45,.08); border-radius: 16px; box-shadow: 0 24px 60px rgba(1,5,45,.14); transform-origin: top left; }
.nav__sub::before { content: ""; position: absolute; top: -7px; left: 28px; width: 14px; height: 14px; background: #fff; border-left: 1px solid rgba(1,5,45,.08); border-top: 1px solid rgba(1,5,45,.08); transform: rotate(45deg); }
.nav__sub li { list-style: none; }
.nav__sub a { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; color: var(--navy); font-weight: 600; font-size: .93rem; transition: background .2s; }
.nav__sub a .ico { width: 40px; height: 40px; padding: 10px; border-radius: 10px; background: var(--sand); color: var(--terracotta); flex: none; transition: background .2s, color .2s; }
.nav__sub a:hover { background: var(--sand); color: var(--navy); transform: none; }
.nav__sub a:hover .ico { background: var(--orange); color: #fff; transform: none; }
.nav__sub a.is-active { background: rgba(243,146,33,.1); }
.nav__item--sub:nth-child(3) .nav__sub { min-width: 320px; grid-template-columns: 1fr; }
.site-header__tools { gap: 10px; }
.lang__btn { background: #fff; border: 1px solid rgba(1,5,45,.14); color: var(--navy); padding: 8px 14px 8px 11px; border-radius: 10px; font-size: .92rem; font-weight: 600; transition: border-color .2s, background .2s; }
.lang__btn:hover { border-color: rgba(1,5,45,.3); background: var(--sand); }
.lang__btn .ico { color: var(--terracotta); }
.lang__list { background: #fff; border-color: rgba(1,5,45,.08); border-radius: 14px; box-shadow: 0 24px 60px rgba(1,5,45,.14); }
.lang__list a { color: var(--navy); } .lang__list a small { color: var(--ink-soft); }
.lang__list a:hover { background: var(--sand); }
.site-header__cta { background: var(--orange); color: #fff; box-shadow: none; padding: 10px 18px; font-size: .92rem; border-radius: 10px; position: static; overflow: visible; transition: background .2s, transform .2s var(--ease); }
.site-header__cta::after { display: none; }
.site-header__cta:hover { background: #e3851a; box-shadow: 0 8px 20px rgba(243,146,33,.3); transform: translateY(-1px); }
.nav-toggle { color: var(--navy); }
@media (max-width: 1100px) { .site-header { padding-top: 0; } .site-header__row { border-radius: 0; } }
.nav-toggle { color: #fff; }
.hero--scene { margin-top: 0; }
@media (max-width: 1100px) { .nav__item > a, .nav__btn { padding: 10px 10px; font-size: .92rem; } .nav__sub { min-width: 440px; } }
@media (max-width: 900px) {
  .site-header__row { min-height: 72px; }
  .nav { background: rgba(1,5,45,.98); inset: 72px 0 0; }
  .nav__item > a::after, .nav__btn::after { display: none; }
  .nav__sub { min-width: 0; grid-template-columns: 1fr; background: rgba(255,255,255,.05); border: 0; box-shadow: none; border-radius: 12px; }
  .nav__sub::before { display: none; }
  .nav__item--sub:nth-child(3) .nav__sub { min-width: 0; }
}
/* ---------- the DuePe app ---------- */
.app { background: linear-gradient(180deg, #01052d 0%, #0b1050 100%); overflow: hidden; }
.app__row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; align-items: end; margin-top: 10px; }
.phone { margin: 0; text-align: center; transform: translateY(calc((var(--i) - 2.5) * (var(--i) - 2.5) * 6px)); }
.phone__frame { position: relative; border-radius: 26px; padding: 8px; background: #0a0d1f; box-shadow: 0 30px 60px rgba(0,0,0,.45), inset 0 0 0 2px rgba(255,255,255,.12); transition: transform .4s var(--ease), box-shadow .4s; }
.phone__frame::before { content: ""; position: absolute; top: 14px; left: 50%; translate: -50% 0; width: 34%; height: 10px; border-radius: 6px; background: #0a0d1f; z-index: 2; }
.phone__frame img { width: 100%; height: auto; border-radius: 19px; display: block; }
.phone:hover .phone__frame { transform: translateY(-10px) scale(1.03); box-shadow: 0 40px 80px rgba(0,0,0,.55), 0 0 0 2px rgba(243,146,33,.5); }
.phone figcaption { margin-top: 14px; color: rgba(255,255,255,.82); font-size: .9rem; line-height: 1.4; }
.app__note { text-align: center; color: rgba(255,255,255,.5); font-size: .85rem; margin: 28px 0 18px; }
.app__cta { text-align: center; }
@media (max-width: 1500px) { .app__row { grid-template-columns: repeat(3, 1fr); row-gap: 34px; } .phone { transform: none; } }
@media (max-width: 600px) { .app__row { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* ---------- laptops / short viewports: compact hero ---------- */
@media (max-height: 920px) and (min-width: 901px) {
  .hero--scene .hero__title { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: .35em; }
  .hero--scene .hero__sub { font-size: 1.05rem; line-height: 1.55; max-width: 520px; }
  .hero--scene .kicker { margin-bottom: 8px; font-size: .85rem; }
  .hero__actions { margin: 18px 0 10px; gap: 10px; }
  .hero__actions .btn { padding: 11px 20px; font-size: .95rem; }
  .hero__stats { margin-top: 14px; gap: 10px 26px; }
  .hero__stats strong { font-size: 1.45rem; }
  .hero__stats span { font-size: .85rem; }
  .hero__inner { padding: 20px 0 130px; }
  .hero__cap { font-size: .88rem; padding: 10px 14px; }
  .hero__caps { max-width: min(460px, 44%); }
  .hero__weather-btn, .hero__weather-out { font-size: .85rem; padding: 8px 14px; }
}
@media (max-height: 760px) and (min-width: 901px) {
  .hero--scene .hero__title { font-size: clamp(1.8rem, 3.8vw, 2.6rem); }
  .hero--scene .hero__sub { font-size: .98rem; }
  .hero__inner { padding: 14px 0 120px; }
}

/* mobile menu matches the white bar */
@media (max-width: 1100px) {
  .nav { background: #fff !important; border-top: 1px solid rgba(1,5,45,.08); margin: 0 !important; left: 0; right: 0; }
  .nav__list { flex-direction: column; gap: 4px; }
  .nav__item > a, .nav__btn { color: var(--navy) !important; font-size: 1.05rem; padding: 14px 12px; width: 100%; justify-content: space-between; }
  .nav__item.is-active > a { color: var(--terracotta) !important; }
  .nav__sub { position: static; min-width: 0; grid-template-columns: 1fr; background: var(--sand) !important; border: 0; box-shadow: none; border-radius: 14px; padding: 6px; margin: 4px 0 10px; }
  .nav__sub::before { display: none; }
  .nav__sub a { color: var(--navy) !important; }
  .nav__sub a .ico { background: #fff; }
}

/* long Indic nav labels: let the bar compress before it overflows */
.site-header__row { flex-wrap: nowrap; }
.nav__list { flex-wrap: nowrap; }
.nav__item > a, .nav__btn { white-space: nowrap; }
@media (min-width: 1101px) and (max-width: 1500px) { .nav__item > a, .nav__btn { font-size: .88rem; padding: 10px 8px; } .site-header__row { gap: 16px; } .lang__btn span { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .site-header__cta { padding: 9px 14px; font-size: .85rem; white-space: nowrap; } }
