/* =====================================================================
   Pravasi Koottayma  --  public.css
   Standalone public-website styling + an "app-like" animation system.
   Pure CSS/JS, no libraries. Dark default; light via html[data-theme=light].
   ===================================================================== */

:root {
  --bg:        #0a0e14;
  --bg-2:      #0f141c;
  --bg-3:      #161d28;
  --panel:     #10151d;
  --border:    #20293580;
  --text:      #e9eef5;
  --text-dim:  #9aa7b4;
  --muted:     #66707d;
  --primary:   #14b8a6;
  --primary-2: #0d9488;
  --accent:    #f59e0b;
  --accent-2:  #fb7185;
  --radius:    18px;
  --radius-sm: 12px;
  --maxw:      1140px;
  --nav-h:     68px;
  --ease:      cubic-bezier(.22,1,.36,1);
}
html[data-theme="light"] {
  --bg:        #f6f8fb;
  --bg-2:      #ffffff;
  --bg-3:      #eef2f7;
  --panel:     #ffffff;
  --border:    #e4e9f0;
  --text:      #0d1620;
  --text-dim:  #475569;
  --muted:     #94a3b8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.2rem; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .6rem; font-weight: 800; }
.eyebrow {
  display: inline-block; font-size: .76rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--primary);
  padding: .35rem .7rem; border: 1px solid var(--border); border-radius: 30px;
  background: rgba(20,184,166,.08); margin-bottom: 1rem;
}
.text-dim { color: var(--text-dim); }

/* page load */
body { opacity: 0; transform: translateY(8px); }
body.ready { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }

/* ---- Buttons ---- */
.pbtn {
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  padding: .8rem 1.4rem; border-radius: 40px; font-weight: 700; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .2s var(--ease), filter .2s, box-shadow .2s;
}
.pbtn:hover { transform: translateY(-2px); }
.pbtn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #042722; box-shadow: 0 10px 30px -8px rgba(20,184,166,.6); }
.pbtn-primary:hover { box-shadow: 0 14px 36px -8px rgba(20,184,166,.75); }
.pbtn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.pbtn-ghost:hover { background: var(--bg-3); }
.pbtn-lg { padding: 1rem 1.8rem; font-size: 1.02rem; }

/* ---- Nav ---- */
.pubnav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 100;
  display: flex; align-items: center;
  transition: background .3s, border-color .3s, backdrop-filter .3s, box-shadow .3s;
  border-bottom: 1px solid transparent;
}
.pubnav.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--border);
  box-shadow: 0 6px 30px -18px rgba(0,0,0,.8);
}
.pubnav .wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.2rem; display: flex; align-items: center; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.05rem; }
.brand .logo {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  font-weight: 900; color: #042722; background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 8px 20px -6px rgba(20,184,166,.6);
}
.navlinks { display: flex; align-items: center; gap: .3rem; margin-left: auto; }
.navlinks a.lnk { padding: .5rem .8rem; border-radius: 10px; color: var(--text-dim); font-weight: 600; font-size: .92rem; transition: color .2s, background .2s; }
.navlinks a.lnk:hover, .navlinks a.lnk.active { color: var(--text); background: var(--bg-3); }
.nav-tools { display: flex; align-items: center; gap: .5rem; margin-left: .4rem; }
.icon-toggle { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--border); background: var(--bg-3); color: var(--text-dim); cursor: pointer; display: grid; place-items: center; font-size: 1.1rem; }
.hamburger { display: none; width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--border); background: var(--bg-3); cursor: pointer; }
.hamburger span, .hamburger span:before, .hamburger span:after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--text); margin: 0 auto; position: relative; transition: .25s var(--ease);
}
.hamburger span:before { position: absolute; top: -6px; }
.hamburger span:after { position: absolute; top: 6px; }

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 110; display: none; }
.drawer.open { display: block; }
.drawer .scrim { position: absolute; inset: 0; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .3s; }
.drawer.open .scrim { opacity: 1; }
.drawer .sheet {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(80vw, 320px);
  background: var(--bg-2); border-left: 1px solid var(--border); padding: 1.2rem;
  transform: translateX(100%); transition: transform .32s var(--ease); display: flex; flex-direction: column; gap: .3rem;
}
.drawer.open .sheet { transform: none; }
.drawer .sheet a { padding: .9rem 1rem; border-radius: 12px; font-weight: 700; color: var(--text); }
.drawer .sheet a:hover { background: var(--bg-3); }

/* ---- Hero ---- */
.hero { position: relative; padding: calc(var(--nav-h) + 4rem) 0 4.5rem; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; animation: float 14s ease-in-out infinite; }
.blob.b1 { width: 460px; height: 460px; background: radial-gradient(circle at 30% 30%, #14b8a6, transparent 70%); top: -120px; left: -80px; }
.blob.b2 { width: 420px; height: 420px; background: radial-gradient(circle at 60% 40%, #f59e0b, transparent 70%); top: 40px; right: -120px; animation-delay: -4s; }
.blob.b3 { width: 360px; height: 360px; background: radial-gradient(circle at 50% 50%, #fb7185, transparent 70%); bottom: -140px; left: 35%; animation-delay: -8s; opacity: .35; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.hero h1 .grad { background: linear-gradient(120deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.12rem; color: var(--text-dim); max-width: 34rem; margin: .4rem 0 1.6rem; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.trust { display: flex; gap: 1.4rem; margin-top: 1.8rem; flex-wrap: wrap; }
.trust .ti { font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: .4rem; }
.trust .ti b { color: var(--text); font-size: 1.05rem; }

/* phone mockup */
.phone-wrap { display: grid; place-items: center; }
.phone {
  width: 270px; height: 552px; border-radius: 40px; padding: 12px;
  background: linear-gradient(160deg, #1c2734, #0c1118); border: 1px solid var(--border);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), inset 0 0 0 2px rgba(255,255,255,.03);
  position: relative; animation: float 7s ease-in-out infinite;
}
.phone:before { content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 110px; height: 22px; background: #05080c; border-radius: 0 0 14px 14px; z-index: 3; }
.phone-screen { width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: linear-gradient(180deg, var(--bg-2), var(--bg)); position: relative; }
.ps-top { padding: 2.4rem 1.1rem 1rem; background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #042722; }
.ps-top .small { font-size: .7rem; opacity: .8; }
.ps-card { margin: -1.2rem .9rem 0; background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 1rem; box-shadow: 0 18px 40px -22px rgba(0,0,0,.9); }
.ps-no { font-weight: 800; letter-spacing: .04em; }
.ps-rows { padding: .9rem; display: grid; gap: .55rem; }
.ps-row { display: flex; justify-content: space-between; align-items: center; padding: .6rem .7rem; background: var(--bg-3); border-radius: 11px; font-size: .78rem; }
.ps-pill { font-size: .62rem; font-weight: 800; padding: .2rem .5rem; border-radius: 20px; background: rgba(34,197,94,.18); color: #4ade80; }
.qr-mini { width: 46px; height: 46px; border-radius: 8px; background:
  conic-gradient(#000 0 25%, #fff 0 50%, #000 0 75%, #fff 0) 0 0 / 12px 12px, #fff; }

/* ---- Sections ---- */
.section { padding: 4.2rem 0; position: relative; }
.section.alt { background: var(--bg-2); }
.sec-head { max-width: 40rem; margin: 0 auto 2.4rem; text-align: center; }
.sec-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.sec-head p { color: var(--text-dim); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem 1.2rem; text-align: center; }
.stat-card .num { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; background: linear-gradient(120deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-card .lab { color: var(--text-dim); font-size: .9rem; margin-top: .2rem; }

/* features */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.feature { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.feature:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--primary) 50%, var(--border)); box-shadow: 0 26px 50px -30px rgba(0,0,0,.8); }
.feature .fic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 1rem; background: rgba(20,184,166,.12); color: var(--primary); }
.feature:nth-child(3n-1) .fic { background: rgba(245,158,11,.14); color: var(--accent); }
.feature:nth-child(3n) .fic { background: rgba(251,113,133,.14); color: var(--accent-2); }
.feature h3 { font-size: 1.12rem; }
.feature p { color: var(--text-dim); font-size: .92rem; margin: 0; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; counter-reset: step; }
.step { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; position: relative; }
.step:before { counter-increment: step; content: counter(step); position: absolute; top: -16px; left: 1.4rem; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 900; color: #042722; background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: 0 10px 24px -10px rgba(20,184,166,.7); }
.step h3 { margin-top: .8rem; font-size: 1.08rem; }
.step p { color: var(--text-dim); font-size: .92rem; margin: 0; }

/* notices */
.notice-card { display: block; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; transition: transform .3s var(--ease), border-color .3s; }
.notice-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--primary) 50%, var(--border)); }
.notice-card .cat { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.notice-card .date { font-size: .8rem; color: var(--muted); }
.notice-card h3 { font-size: 1.1rem; margin: .4rem 0; }
.notice-card p { color: var(--text-dim); font-size: .92rem; margin: 0; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; }
.gimg { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 1/1; border: 1px solid var(--border); background: var(--bg-3); }
.gimg img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gimg:hover img { transform: scale(1.08); }
.gimg .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: .7rem; font-size: .78rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.gph { width: 100%; height: 100%; background: linear-gradient(135deg, var(--primary-2), var(--accent)); opacity: .25; }

/* cta band */
.cta-band { position: relative; overflow: hidden; border-radius: 26px; padding: 3rem 2rem; text-align: center; background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #042722; }
.cta-band h2 { color: #042722; font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
.cta-band p { color: #053b34; opacity: .85; max-width: 34rem; margin: 0 auto 1.4rem; }
.cta-band .pbtn-primary { background: #042722; color: #b6f3e8; box-shadow: none; }
.cta-band .blob { opacity: .35; }

/* generic cards / prose */
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; }
.prose p { color: var(--text-dim); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }

/* forms */
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .35rem; color: var(--text-dim); }
.field input, .field textarea {
  width: 100%; padding: .8rem .9rem; border-radius: 12px; background: var(--bg-3);
  border: 1px solid var(--border); color: var(--text); font: inherit;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(20,184,166,.18); }
.hp { position: absolute; left: -9999px; }

.note { padding: .9rem 1.1rem; border-radius: 12px; margin-bottom: 1rem; border: 1px solid transparent; }
.note.ok { background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.3); color: #86efac; }
.note.err { background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.3); color: #fca5a5; }

/* footer */
.pubfooter { background: var(--bg-2); border-top: 1px solid var(--border); padding: 3rem 0 2rem; margin-top: 2rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.pubfooter h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .9rem; }
.pubfooter a.fl { display: block; color: var(--text-dim); padding: .25rem 0; }
.pubfooter a.fl:hover { color: var(--primary); }
.socials { display: flex; gap: .6rem; margin-top: .8rem; }
.socials a { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--bg-3); border: 1px solid var(--border); color: var(--text-dim); font-weight: 800; }
.socials a:hover { color: var(--primary); border-color: var(--primary); }
.foot-bottom { border-top: 1px solid var(--border); margin-top: 2rem; padding-top: 1.4rem; color: var(--muted); font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; }

/* ---- Reveal animation ---- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.reveal.zoom { transform: scale(.94); }
.reveal.zoom.in { transform: none; }

@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-18px) } }

/* ---- Responsive ---- */
@media (max-width: 920px) {
  .hero-inner, .split { grid-template-columns: 1fr; }
  .phone-wrap { order: -1; margin-bottom: 1rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr; }
  .navlinks { display: none; }
  .hamburger { display: grid; place-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, body { transition: none !important; }
  .blob, .phone { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  body { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* WhatsApp share button (public) */
.wa-btn { background: #25D366 !important; color: #04210f !important; border-color: #25D366 !important; box-shadow: none !important; }
.wa-btn:hover { filter: brightness(1.05); }
.share-row { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .8rem; }
.share-mini { display: inline-flex; align-items: center; gap: .3rem; padding: .42rem .8rem; border-radius: 30px; font-size: .8rem; font-weight: 700; background: #25D366; color: #04210f; }
