/* ─── TOKENS ─── */
:root {
  --red:    #d42b2b;
  --red-h:  #b82020;
  --ink:    #09090b;
  --ink2:   #27272a;
  --sub:    #52525b;
  --muted:  #a1a1aa;
  --border: #e4e4e7;
  --bg:     #fafafa;
  --white:  #ffffff;
  --gym:    #4d7c0f;
  --eat:    #c2410c;
  --udh:    #1d4ed8;
  --kun:    #A33C08;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { display: block; }

/* ─── NAV ─── */
.nav {
  position: sticky; top: 0; z-index: 200;
  height: 62px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  max-width: 1120px; margin: 0 auto;
  height: 100%; padding: 0 24px;
  display: flex; align-items: center;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { width: 28px; height: 28px; object-fit: contain; }
.nav-logo-text { font-size: 0.95rem; font-weight: 800; color: var(--ink); letter-spacing: -0.2px; }
.nav-cta {
  margin-left: auto;
  font-size: 0.82rem; font-weight: 700;
  color: var(--white); background: var(--ink);
  padding: 8px 18px; border-radius: 8px;
  transition: background .18s;
}
.nav-cta:hover { background: var(--ink2); }

/* ─── HERO ─── */
.hero {
  background: var(--white);
  position: relative; overflow: hidden;
  padding: 100px 24px 90px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: '';
  position: absolute; pointer-events: none;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 15% 30%,  rgba(212,43,43,.07)  0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 85% 70%,  rgba(29,78,216,.06)  0%, transparent 70%),
    radial-gradient(ellipse 40% 35% at 60% 10%,  rgba(77,124,15,.05)  0%, transparent 70%);
}
.hero-inner { max-width: 720px; margin: 0 auto; position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border);
  border-radius: 100px; padding: 6px 16px;
  font-size: 0.73rem; font-weight: 600; color: var(--sub);
  margin-bottom: 28px;
  background: var(--white);
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(212,43,43,.18);
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 900;
  letter-spacing: -2.5px;
  line-height: 1.06;
  color: var(--ink);
  margin-bottom: 20px;
}
.hero-title .highlight {
  position: relative; display: inline-block;
  color: var(--red);
}
.hero-title .highlight::after {
  content: '';
  position: absolute; left: 0; bottom: -2px; right: 0;
  height: 3px; border-radius: 2px;
  background: var(--red);
  opacity: .25;
}

.hero-sub {
  font-size: 1.05rem; color: var(--sub);
  line-height: 1.75; max-width: 520px;
  margin: 0 auto 40px;
}

.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-solid {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: var(--white);
  font-size: .9rem; font-weight: 700;
  padding: 13px 28px; border-radius: 10px;
  box-shadow: 0 4px 20px rgba(212,43,43,.3);
  transition: background .18s, transform .15s, box-shadow .18s;
}
.btn-solid:hover { background: var(--red-h); transform: translateY(-2px); box-shadow: 0 6px 28px rgba(212,43,43,.35); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--border);
  color: var(--ink2);
  font-size: .9rem; font-weight: 600;
  padding: 13px 28px; border-radius: 10px;
  background: var(--white);
  transition: border-color .18s, color .18s;
}
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }

.hero-scroll {
  margin-top: 56px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--muted); font-size: .76rem; font-weight: 500;
}
.scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, var(--border), transparent);
}

/* ─── SECTION HELPERS ─── */
.section-label {
  font-size: .7rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--red); margin-bottom: 10px;
  display: block;
}
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800; letter-spacing: -1px;
  color: var(--ink); line-height: 1.18;
}
.section-body {
  font-size: .93rem; color: var(--sub);
  line-height: 1.75; margin-top: 12px;
  max-width: 440px;
}

/* ─── STATS ─── */
.stats {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 52px 24px;
}
.stats-inner {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat {
  text-align: center; padding: 12px 0;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat-val {
  font-size: 2.2rem; font-weight: 900;
  letter-spacing: -1.2px; color: var(--ink);
  margin-bottom: 4px; line-height: 1;
}
.stat-val sup { font-size: 1.1rem; vertical-align: super; color: var(--red); }
.stat-lbl { font-size: .79rem; color: var(--muted); font-weight: 500; }

/* ─── APPS ─── */
.apps {
  padding: 88px 24px;
  background: var(--bg);
}
.apps-head {
  max-width: 1120px; margin: 0 auto 52px;
  display: flex; justify-content: space-between;
  align-items: flex-end; flex-wrap: wrap; gap: 24px;
}
.apps-grid {
  max-width: 1120px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.app-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .22s, transform .22s, border-color .22s;
  cursor: pointer;
}
.app-card:hover {
  box-shadow: 0 12px 48px rgba(0,0,0,.1);
  transform: translateY(-5px);
  border-color: #d4d4d8;
}

.card-splash {
  height: 140px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.card-splash.gym { background: linear-gradient(145deg, #1c3906, #2d5c0a); }
.card-splash.eat { background: linear-gradient(145deg, #032525, #0a4040); }
.card-splash.udh { background: linear-gradient(145deg, #0c1f5e, #1a3a9c); }
.card-splash.wem { background: linear-gradient(145deg, #6b1535, #C44A76); }
.card-splash.kun { background-image: url('/images/kundli/splash.jpg'); background-size: cover; background-position: center; }
.card-splash::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,.08) 0%, transparent 60%);
}
.card-splash::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 18px 18px;
}
.app-icon-wrap {
  position: relative; z-index: 2;
  width: 84px; height: 84px;
  border-radius: 20px;
  background: var(--white);
  padding: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,.35), 0 2px 8px rgba(0,0,0,.2);
}
.app-icon-wrap img {
  width: 100%; height: 100%;
  border-radius: 14px;
  object-fit: cover;
}

.card-content { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.card-name { font-size: 1.2rem; font-weight: 800; letter-spacing: -.4px; color: var(--ink); }
.card-cat {
  font-size: .68rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 6px;
}
.cat-gym { background: #f0fce4; color: var(--gym); border: 1px solid #bbf7d0; }
.cat-eat { background: #f0fdfb; color: #0a6b6b; border: 1px solid #99e0e0; }
.cat-udh { background: #eff6ff; color: var(--udh); border: 1px solid #bfdbfe; }
.cat-kun { background: #fff7ed; color: var(--kun); border: 1px solid #fed7aa; }
.cat-wem { background: rgba(224,92,138,.1); color: #C44A76; border: 1px solid rgba(224,92,138,.3); }

.card-desc { font-size: .86rem; color: var(--sub); line-height: 1.7; margin-bottom: 18px; }

.card-feats {
  list-style: none; display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 24px;
}
.card-feats li {
  display: flex; align-items: center; gap: 10px;
  font-size: .83rem; color: var(--ink2); font-weight: 500;
}
.feat-icon {
  width: 18px; height: 18px; border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; color: var(--white); font-weight: 800;
}
.fi-gym { background: var(--gym); }
.fi-eat { background: #0a6b6b; }
.fi-udh { background: var(--udh); }
.fi-wem { background: #C44A76; }
.fi-kun { background: var(--kun); }

.card-cta {
  display: flex; align-items: center; justify-content: center;
  gap: 7px; border-radius: 10px; padding: 12px;
  font-size: .86rem; font-weight: 700; color: var(--white);
  margin-top: auto;
  transition: filter .18s, transform .15s;
}
.card-cta:hover { filter: brightness(1.12); transform: translateY(-1px); }
.cta-gym { background: var(--gym); }
.cta-eat { background: #0a6b6b; }
.cta-udh { background: var(--udh); }
.cta-wem { background: #C44A76; }
.cta-kun { background: var(--kun); }

/* ─── FEATURE GRID ─── */
.features {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 88px 24px;
}
.features-wrap { max-width: 1120px; margin: 0 auto; }
.features-head { margin-bottom: 52px; }
.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}
.feat-block {
  padding: 36px 28px;
  background: var(--white);
  transition: background .18s;
}
.feat-block:hover { background: var(--bg); }
.feat-emoji { font-size: 1.8rem; margin-bottom: 16px; display: block; }
.feat-block h4 { font-size: .98rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.feat-block p  { font-size: .83rem; color: var(--sub); line-height: 1.7; }

/* ─── CTA BAND ─── */
.cta-band {
  background: var(--ink);
  padding: 80px 24px;
  text-align: center;
}
.cta-band-inner { max-width: 600px; margin: 0 auto; }
.cta-band h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 900; letter-spacing: -1.5px;
  color: var(--white); margin-bottom: 14px;
}
.cta-band h2 span { color: var(--red); }
.cta-band p { font-size: .96rem; color: #a1a1aa; line-height: 1.75; margin-bottom: 36px; }
.btn-solid-light {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); color: var(--ink);
  font-size: .9rem; font-weight: 700;
  padding: 13px 28px; border-radius: 10px;
  transition: background .18s, transform .15s;
}
.btn-solid-light:hover { background: #e4e4e7; transform: translateY(-2px); }

/* ─── FOOTER ─── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 40px 24px 28px;
}
.footer-wrap {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 20px;
}
.footer-logo { display: flex; align-items: center; gap: 9px; }
.footer-logo img { width: 26px; height: 26px; object-fit: contain; }
.footer-logo span { font-size: .88rem; font-weight: 800; color: var(--ink); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: .8rem; color: var(--muted); transition: color .15s; }
.footer-links a:hover { color: var(--ink); }
.footer-copy {
  width: 100%; margin-top: 24px; padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center; font-size: .74rem; color: var(--muted);
}

/* Center a lone last card in a 3-col grid (e.g. 4th card) */
@media (min-width: 1000px) {
  .apps-grid .app-card:last-child:nth-child(3n+1) {
    grid-column: 2;
  }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 860px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--border); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(3) { border-bottom: none; }
  .apps-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .hero { padding: 72px 20px 64px; }
  .hero-title { letter-spacing: -1.5px; }
  .apps-grid { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-wrap { flex-direction: column; align-items: center; text-align: center; }
  .footer-links { justify-content: center; }
}
@media (max-width: 420px) {
  .feat-grid { grid-template-columns: 1fr; }
}
