/* landing.css — the choice-first pitch page shown at civilnext.in before the
   store. Self-contained: every class is cx- prefixed so nothing collides with
   the store shell it lives inside. Design language matches the pitch decks:
   deep navy stage, indigo→cyan gradients, floating phone frames, staggered
   reveals. Motion is CSS-only — no libraries, nothing blocks paint. */

#view-landing { background: #0b1120; color: #e2e8f0; overflow-x: hidden; }

/* ── reveal-on-scroll: elements start shifted+faded, .cx-in floats them in ── */
.cx-rv { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.16,1,.3,1); }
.cx-rv.cx-in { opacity: 1; transform: none; }
.cx-rv.cx-d1 { transition-delay: .08s; } .cx-rv.cx-d2 { transition-delay: .16s; }
.cx-rv.cx-d3 { transition-delay: .24s; } .cx-rv.cx-d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .cx-rv { opacity: 1 !important; transform: none !important; transition: none !important; }
  .cx-float, .cx-blob, .cx-pulse { animation: none !important; }
}

/* ── hero ── */
.cx-hero { position: relative; min-height: 92vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 72px 20px 48px; }
.cx-blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .45; pointer-events: none; }
.cx-blob.b1 { width: 480px; height: 480px; background: #4338ca; top: -140px; right: -120px; animation: cxDrift 14s ease-in-out infinite alternate; }
.cx-blob.b2 { width: 380px; height: 380px; background: #0e7490; bottom: -100px; left: -100px; animation: cxDrift 17s ease-in-out infinite alternate-reverse; }
.cx-blob.b3 { width: 260px; height: 260px; background: #b45309; top: 40%; left: 60%; opacity: .22; animation: cxDrift 20s ease-in-out infinite alternate; }
@keyframes cxDrift { from { transform: translate(0,0) scale(1); } to { transform: translate(60px,40px) scale(1.15); } }

.cx-hero .cx-brand { font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; letter-spacing: -1px; color: #fff; }
.cx-hero .cx-brand span { color: #f59e0b; }
.cx-hero h1 { font-size: clamp(1.9rem, 5.4vw, 3.6rem); font-weight: 900; line-height: 1.12;
  letter-spacing: -1px; margin: 18px auto 14px; max-width: 900px; color: #fff; }
.cx-grad { background: linear-gradient(92deg, #818cf8, #22d3ee 55%, #f59e0b); -webkit-background-clip: text;
  background-clip: text; color: transparent; }
.cx-hero p { color: #94a3b8; font-size: clamp(.95rem, 2.2vw, 1.15rem); max-width: 640px; margin: 0 auto; line-height: 1.65; }

/* the two paths */
.cx-paths { display: flex; gap: 18px; margin: 40px auto 0; max-width: 860px; width: 100%; }
.cx-path { flex: 1; text-align: left; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px; padding: 26px 24px; cursor: pointer; transition: transform .25s ease, border-color .25s, background .25s;
  color: inherit; font: inherit; }
.cx-path:hover { transform: translateY(-4px); border-color: #6366f1; background: rgba(99,102,241,.12); }
.cx-path .ic { font-size: 2rem; }
.cx-path h3 { color: #fff; font-size: 1.25rem; margin: 10px 0 6px; font-weight: 800; }
.cx-path p { font-size: .88rem; color: #94a3b8; margin: 0; max-width: none; }
.cx-path .go { display: inline-block; margin-top: 14px; font-weight: 800; color: #22d3ee; font-size: .9rem; }
.cx-store-link { margin-top: 34px; }
.cx-store-link a { color: #94a3b8; font-size: .92rem; text-decoration: none; border-bottom: 1px dashed #475569; padding-bottom: 2px; }
.cx-store-link a:hover { color: #e2e8f0; }
.cx-scroll-hint { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  color: #475569; font-size: 1.4rem; animation: cxBob 1.8s ease-in-out infinite; }
@keyframes cxBob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

/* ── shared section chrome ── */
.cx-sec { max-width: 1140px; margin: 0 auto; padding: 70px 20px; }
.cx-kick { font-size: .75rem; font-weight: 800; letter-spacing: 3px; color: #818cf8; text-transform: uppercase; }
.cx-sec h2 { color: #fff; font-size: clamp(1.5rem, 3.6vw, 2.3rem); font-weight: 900; letter-spacing: -.5px; margin: 8px 0 10px; }
.cx-sec .cx-sub { color: #94a3b8; max-width: 640px; line-height: 1.6; font-size: .98rem; }

/* pitch layout: phone(s) + features */
.cx-split { display: flex; gap: 44px; align-items: center; margin-top: 40px; }
.cx-split > * { min-width: 0; }

/* phone frame + auto carousel */
.cx-phone { flex: 0 0 290px; position: relative; }
.cx-phone .frame { border-radius: 34px; border: 10px solid #1e293b; box-shadow: 0 30px 70px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.06);
  overflow: hidden; background: #0f172a; animation: cxFloat 6s ease-in-out infinite; }
@keyframes cxFloat { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
.cx-phone .frame img { display: block; width: 100%; height: auto; opacity: 0; position: absolute; inset: 0; transition: opacity .8s ease; }
.cx-phone .frame img.on { opacity: 1; position: relative; }
.cx-dots { display: flex; gap: 7px; justify-content: center; margin-top: 16px; }
.cx-dots i { width: 8px; height: 8px; border-radius: 50%; background: #334155; transition: background .3s, transform .3s; }
.cx-dots i.on { background: #22d3ee; transform: scale(1.3); }

/* feature list */
.cx-feats { flex: 1; display: flex; flex-direction: column; gap: 16px; }
.cx-feat { display: flex; gap: 14px; align-items: flex-start; background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 15px 16px; }
.cx-feat .ic { flex: 0 0 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.15rem; background: linear-gradient(135deg, rgba(99,102,241,.25), rgba(34,211,238,.18)); }
.cx-feat b { display: block; color: #fff; font-size: .98rem; margin-bottom: 3px; }
.cx-feat p { color: #94a3b8; font-size: .85rem; line-height: 1.5; margin: 0; }

/* store badges */
.cx-badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; align-items: center; }
.cx-play { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: #0f172a;
  font-weight: 800; padding: 11px 20px; border-radius: 12px; text-decoration: none; font-size: .92rem;
  transition: transform .2s; }
.cx-play:hover { transform: translateY(-2px); }
.cx-play .tri { width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 14px; border-color: transparent transparent transparent #0f172a; }
.cx-soon { display: inline-flex; align-items: center; gap: 8px; border: 1px dashed #475569; color: #94a3b8;
  padding: 10px 18px; border-radius: 12px; font-size: .85rem; font-weight: 700; }
.cx-soon .cx-pulse { width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; animation: cxPulse 1.6s ease-in-out infinite; }
@keyframes cxPulse { 0%,100% { opacity: .4; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.2); } }

/* provider app trio */
.cx-apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.cx-app { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); border-radius: 20px;
  padding: 22px 18px; text-align: center; transition: transform .25s, border-color .25s; }
.cx-app:hover { transform: translateY(-5px); border-color: rgba(99,102,241,.5); }
.cx-app .shot { border-radius: 22px; border: 6px solid #1e293b; overflow: hidden; max-width: 190px; margin: 0 auto 16px; }
.cx-app .shot img { display: block; width: 100%; height: auto; }
.cx-app h3 { color: #fff; font-size: 1.05rem; font-weight: 800; margin: 0 0 4px; }
.cx-app p { color: #94a3b8; font-size: .82rem; line-height: 1.5; margin: 0 0 14px; }

/* dashboard strip */
.cx-strip-wrap { margin-top: 40px; }
.cx-strip { display: flex; gap: 16px; overflow-x: auto; padding: 6px 2px 18px; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; }
.cx-strip::-webkit-scrollbar { height: 6px; }
.cx-strip::-webkit-scrollbar-thumb { background: #334155; border-radius: 3px; }
.cx-shot { flex: 0 0 min(78vw, 520px); scroll-snap-align: start; }
.cx-shot .img { border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.cx-shot .img img { display: block; width: 100%; height: auto; }
.cx-shot .cap { color: #94a3b8; font-size: .8rem; margin-top: 8px; font-weight: 600; }

/* stats band */
.cx-stats { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.cx-stat { flex: 1 1 150px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; padding: 18px 16px; text-align: center; }
.cx-stat b { display: block; font-size: 1.6rem; color: #fff; font-weight: 900; }
.cx-stat b em { font-style: normal; background: linear-gradient(92deg,#818cf8,#22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cx-stat span { color: #64748b; font-size: .72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }

/* pitch panel switching */
.cx-panel { display: none; }
.cx-panel.on { display: block; animation: cxPanel .5s ease; }
@keyframes cxPanel { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.cx-back { background: none; border: 1px solid #334155; color: #94a3b8; border-radius: 999px;
  padding: 8px 18px; font-size: .85rem; font-weight: 700; cursor: pointer; margin-bottom: 8px; }
.cx-back:hover { color: #fff; border-color: #64748b; }

/* final CTA */
.cx-cta { text-align: center; padding: 80px 20px 90px; position: relative; }
.cx-cta h2 { font-size: clamp(1.7rem, 4.4vw, 2.7rem); color: #fff; font-weight: 900; letter-spacing: -.5px; }
.cx-cta p { color: #94a3b8; max-width: 560px; margin: 12px auto 26px; line-height: 1.6; }
.cx-cta .cx-badges { justify-content: center; }
.cx-browse { display: inline-block; margin-top: 26px; background: linear-gradient(92deg,#6366f1,#0891b2);
  color: #fff; font-weight: 800; padding: 14px 34px; border-radius: 14px; text-decoration: none; border: none;
  font-size: 1rem; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.cx-browse:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(99,102,241,.4); }

/* ── responsive ── */
@media (max-width: 760px) {
  .cx-paths { flex-direction: column; }
  .cx-split { flex-direction: column; gap: 30px; }
  .cx-phone { flex: 0 0 auto; width: min(64vw, 250px); }
  .cx-apps { grid-template-columns: 1fr; max-width: 320px; margin-left: auto; margin-right: auto; }
  .cx-sec { padding: 52px 18px; }
  .cx-hero { min-height: 88vh; }
}

/* ── pitch-deck button ── */
.cx-deck-btn { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px;
  background: rgba(99,102,241,.16); border: 1px solid rgba(99,102,241,.45); color: #c7d2fe;
  font-weight: 800; font-size: .92rem; padding: 12px 22px; border-radius: 12px; cursor: pointer;
  transition: transform .2s, background .2s; }
.cx-deck-btn:hover { transform: translateY(-2px); background: rgba(99,102,241,.28); }

/* ── gallery grid ── */
.cx-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 18px; }
.cx-gal a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,.1);
  aspect-ratio: 16/10; background: #0f172a; transition: transform .2s, border-color .2s; }
.cx-gal a:hover { transform: scale(1.04); border-color: #6366f1; }
.cx-gal a img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.cx-gal a.ph img { object-fit: contain; background: #0b1120; }

/* ── lightbox (slides + gallery share it) ── */
#cxLightbox { position: fixed; inset: 0; z-index: 400; background: rgba(4,8,20,.96);
  display: none; align-items: center; justify-content: center; flex-direction: column; }
#cxLightbox.on { display: flex; }
#cxLightbox img { max-width: min(94vw, 1280px); max-height: 80vh; border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6); user-select: none; -webkit-user-drag: none; }
#cxLightbox .bar { display: flex; align-items: center; gap: 18px; margin-top: 16px; color: #94a3b8; }
#cxLightbox .nav { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff;
  width: 46px; height: 46px; border-radius: 50%; font-size: 1.25rem; cursor: pointer; }
#cxLightbox .nav:hover { background: rgba(99,102,241,.4); }
#cxLightbox .cnt { font-weight: 800; font-size: .95rem; min-width: 64px; text-align: center; }
#cxLightbox .fsx { background: none; border: 1px solid #334155; color: #94a3b8; border-radius: 8px;
  padding: 8px 14px; font-size: .8rem; font-weight: 700; cursor: pointer; }
#cxLightbox .fsx:hover { color: #fff; }
#cxLightbox .x { position: absolute; top: 16px; right: 20px; background: none; border: none;
  color: #94a3b8; font-size: 2rem; cursor: pointer; line-height: 1; }
#cxLightbox .x:hover { color: #fff; }
#cxLightbox .cap { color: #cbd5e1; font-size: .85rem; margin-top: 8px; max-width: 80vw; text-align: center; }
#cxLightbox:fullscreen { background: #04081a; }
#cxLightbox:fullscreen img { max-height: 86vh; }

/* header link back to the pitch */
.cx-why { font-weight: 800; color: #6366f1 !important; }

/* ── pitch-deck button ── */
.cx-deck-btn { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px;
  background: rgba(99,102,241,.16); border: 1px solid rgba(99,102,241,.45); color: #c7d2fe;
  font-weight: 800; font-size: .92rem; padding: 12px 22px; border-radius: 12px; cursor: pointer;
  transition: transform .2s, background .2s; }
.cx-deck-btn:hover { transform: translateY(-2px); background: rgba(99,102,241,.28); }

/* ── gallery grid ── */
.cx-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 18px; }
.cx-gal a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,.1);
  aspect-ratio: 16/10; background: #0f172a; transition: transform .2s, border-color .2s; }
.cx-gal a:hover { transform: scale(1.04); border-color: #6366f1; }
.cx-gal a img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.cx-gal a.ph img { object-fit: contain; background: #0b1120; }

/* ── lightbox (slides + gallery share it) ── */
#cxLightbox { position: fixed; inset: 0; z-index: 400; background: rgba(4,8,20,.96);
  display: none; align-items: center; justify-content: center; flex-direction: column; }
#cxLightbox.on { display: flex; }
#cxLightbox img { max-width: min(94vw, 1280px); max-height: 80vh; border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6); user-select: none; -webkit-user-drag: none; }
#cxLightbox .bar { display: flex; align-items: center; gap: 18px; margin-top: 16px; color: #94a3b8; }
#cxLightbox .nav { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff;
  width: 46px; height: 46px; border-radius: 50%; font-size: 1.25rem; cursor: pointer; }
#cxLightbox .nav:hover { background: rgba(99,102,241,.4); }
#cxLightbox .cnt { font-weight: 800; font-size: .95rem; min-width: 64px; text-align: center; }
#cxLightbox .fsx { background: none; border: 1px solid #334155; color: #94a3b8; border-radius: 8px;
  padding: 8px 14px; font-size: .8rem; font-weight: 700; cursor: pointer; }
#cxLightbox .fsx:hover { color: #fff; }
#cxLightbox .x { position: absolute; top: 16px; right: 20px; background: none; border: none;
  color: #94a3b8; font-size: 2rem; cursor: pointer; line-height: 1; }
#cxLightbox .x:hover { color: #fff; }
#cxLightbox .cap { color: #cbd5e1; font-size: .85rem; margin-top: 8px; max-width: 80vw; text-align: center; }
#cxLightbox:fullscreen { background: #04081a; }
#cxLightbox:fullscreen img { max-height: 86vh; }

/* header link back to the pitch */
.cx-why { font-weight: 800; color: #6366f1 !important; }

/* ── hero feature slider ── */
.cx-hs { max-width: 1080px; margin: 46px auto 0; width: 100%; position: relative; }
.cx-hs .slides { position: relative; min-height: 340px; }
.cx-hs .sl { position: absolute; inset: 0; display: flex; gap: 34px; align-items: center;
  opacity: 0; transform: translateX(28px); transition: opacity .7s ease, transform .7s ease; pointer-events: none; }
.cx-hs .sl.on { opacity: 1; transform: none; pointer-events: auto; }
.cx-hs .im { flex: 0 0 46%; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 24px 60px rgba(0,0,0,.45); background: #0f172a; }
.cx-hs .im img { display: block; width: 100%; height: 300px; object-fit: cover; object-position: top; }
.cx-hs .im.ph img { object-fit: contain; height: 320px; }
.cx-hs .tx { flex: 1; text-align: left; }
.cx-hs .tx h3 { color: #fff; font-size: 1.5rem; font-weight: 900; letter-spacing: -.5px; margin-bottom: 12px; }
.cx-hs .tx li { color: #cbd5e1; font-size: .95rem; line-height: 1.5; margin: 8px 0; list-style: none; display: flex; gap: 10px; }
.cx-hs .tx li::before { content: "✦"; color: #22d3ee; font-weight: 900; }
.cx-hs .cx-dots { margin-top: 18px; }
@media (max-width: 760px) {
  .cx-hs .slides { min-height: 520px; }
  .cx-hs .sl { flex-direction: column; gap: 18px; text-align: center; }
  .cx-hs .im { flex: none; width: 100%; }
  .cx-hs .im img { height: 210px; }
  .cx-hs .tx { text-align: left; }
}

/* ── how-it-works step flows ── */
.cx-flowtabs { display: flex; gap: 10px; margin: 22px 0 18px; }
.cx-flowtabs button { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: #cbd5e1;
  border-radius: 999px; padding: 10px 22px; font-weight: 800; font-size: .9rem; cursor: pointer; }
.cx-flowtabs button.on { background: rgba(99,102,241,.25); border-color: #6366f1; color: #fff; }
.cx-flow { display: none; }
.cx-flow.on { display: block; animation: cxPanel .4s ease; }
.cx-flow h4 { color: #a5b4fc; font-size: .82rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; margin: 20px 0 10px; }
.cx-steps { display: flex; gap: 0; overflow-x: auto; padding-bottom: 10px; align-items: stretch; }
.cx-step { flex: 0 0 auto; display: flex; align-items: center; }
.cx-step .b { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 12px;
  padding: 12px 16px; min-width: 130px; max-width: 170px; }
.cx-step .b b { display: block; color: #fff; font-size: .85rem; margin-bottom: 2px; }
.cx-step .b span { color: #94a3b8; font-size: .72rem; line-height: 1.4; }
.cx-step .arr { color: #6366f1; font-size: 1.3rem; font-weight: 900; padding: 0 10px; }

/* ── animated deck thumbnails ── */
.cx-deckthumb { display: flex; gap: 18px; align-items: center; margin-top: 22px; cursor: pointer;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: 16px;
  padding: 14px; max-width: 560px; transition: transform .25s, border-color .25s; }
.cx-deckthumb:hover { transform: translateY(-3px); border-color: #6366f1; }
.cx-deckthumb .frame { position: relative; flex: 0 0 240px; aspect-ratio: 16/9; border-radius: 10px;
  overflow: hidden; border: 1px solid rgba(255,255,255,.15); background: #0f172a; }
.cx-deckthumb .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06); transition: opacity .9s ease, transform 4s linear; }
.cx-deckthumb .frame img.on { opacity: 1; transform: scale(1); }
.cx-deckthumb .frame .play { position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(4,8,20,.25); font-size: 2rem; }
.cx-deckthumb .meta b { display: block; color: #fff; font-size: 1rem; }
.cx-deckthumb .meta span { color: #94a3b8; font-size: .8rem; }
@media (max-width: 560px) { .cx-deckthumb { flex-direction: column; } .cx-deckthumb .frame { flex: none; width: 100%; } }

/* path card kickers */
.cx-path .kick2 { display: block; font-size: .68rem; font-weight: 900; letter-spacing: 2.5px;
  color: #f59e0b; text-transform: uppercase; margin-bottom: 6px; }
