/* =========================================================
   PuruVision — Design System
   Brand: clarity, insight, vision.
   Products: KundliDarpan (astrology) · School ERP (education)
   ========================================================= */

:root {
  /* Brand palette */
  --violet-50:  #f4f1ff;
  --violet-100: #e9e3ff;
  --violet-200: #d6c9ff;
  --violet-300: #b8a1ff;
  --violet-400: #9a76ff;
  --violet-500: #7c4dff;
  --violet-600: #6a2ff0;
  --violet-700: #5a1fd0;
  --violet-800: #431a9e;
  --violet-900: #2c0f6b;

  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;

  --sky-400: #38bdf8;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;

  /* Neutrals */
  --ink-900: #0d0b1f;
  --ink-800: #191533;
  --ink-700: #2a2450;
  --slate-600: #4b5563;
  --slate-500: #6b7280;
  --slate-400: #9ca3af;
  --slate-200: #e5e7eb;
  --slate-100: #f1f2f6;
  --paper:     #ffffff;
  --paper-2:   #faf9fc;

  /* Semantic */
  --bg: #ffffff;
  --bg-soft: #f7f6fb;
  --text: #1f1b3a;
  --text-soft: #56526f;
  --border: #ece9f5;
  --primary: var(--violet-600);
  --primary-strong: var(--violet-700);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(20, 14, 60, .06), 0 1px 3px rgba(20, 14, 60, .05);
  --shadow-md: 0 10px 30px -12px rgba(43, 15, 107, .18);
  --shadow-lg: 0 30px 60px -20px rgba(43, 15, 107, .28);
  --shadow-glow: 0 0 0 1px rgba(124, 77, 255, .15), 0 20px 50px -20px rgba(124, 77, 255, .45);

  --container: 1160px;
  --gutter: clamp(20px, 5vw, 48px);

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Sora", var(--font-sans);

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--violet-400); outline-offset: 3px; border-radius: 6px; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--soft { background: var(--bg-soft); }
.section--ink {
  background: radial-gradient(1200px 600px at 15% -10%, rgba(124,77,255,.35), transparent 60%),
              radial-gradient(900px 500px at 110% 10%, rgba(14,165,233,.22), transparent 55%),
              var(--ink-900);
  color: #ece9ff;
}
.section--ink .eyebrow { color: var(--violet-300); }
.section--ink .section-head p { color: #b8b2d8; }

.grid { display: grid; gap: clamp(20px, 3vw, 32px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; color: var(--text); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #ffffff; }
h1 { font-size: clamp(2.4rem, 5.4vw, 3.75rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); }
p { color: var(--text-soft); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--text-soft); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-weight: 600; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--primary);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head h2 { margin: 14px 0 12px; }

.text-gradient {
  background: linear-gradient(100deg, var(--violet-500), var(--sky-500) 55%, var(--amber-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--primary);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn:active { transform: translateY(0); }
.btn--primary { background: linear-gradient(120deg, var(--violet-600), var(--violet-500)); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--violet-300); box-shadow: var(--shadow-md); }
.btn--light { background: #fff; color: var(--violet-700); }
.btn--on-ink { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.22); backdrop-filter: blur(6px); }
.btn--on-ink:hover { background: rgba(255,255,255,.16); }
.btn--lg { padding: 16px 30px; font-size: 1.05rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  transition: background .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 30px -20px rgba(43,15,107,.4);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.brand .mark { width: 34px; height: 34px; flex: none; }
.brand b { color: var(--violet-700); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 14px; border-radius: 999px;
  font-weight: 500; font-size: .95rem; color: var(--text-soft);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: var(--bg-soft); }
.nav-links a.active { color: var(--violet-700); background: var(--violet-50); }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 12px; background: #fff; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }

.nav-menu { display: none; }

@media (max-width: 900px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: fixed; inset: 74px 0 auto 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 18px var(--gutter) 26px;
    display: grid; gap: 6px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .25s, transform .25s;
    box-shadow: var(--shadow-lg);
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-menu a { padding: 12px 14px; border-radius: 12px; font-weight: 500; color: var(--text); }
  .nav-menu a:hover { background: var(--bg-soft); }
  .nav-menu .btn { display: inline-flex; margin-top: 8px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 10% -5%, rgba(124,77,255,.28), transparent 60%),
    radial-gradient(760px 460px at 100% 0%, rgba(14,165,233,.20), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f7f6fb 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; padding-block: clamp(56px, 8vw, 104px); }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; text-align: center; } }

.badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px 7px 8px; border-radius: 999px;
  background: #fff; border: 1px solid var(--border);
  font-size: .85rem; font-weight: 500; color: var(--text-soft);
  box-shadow: var(--shadow-sm);
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber-500); box-shadow: 0 0 0 4px rgba(245,158,11,.18); }

.hero h1 { margin: 22px 0 18px; }
.hero .lead { max-width: 30ch; }
@media (max-width: 940px) { .hero .lead { max-width: none; margin-inline: auto; } }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
@media (max-width: 940px) { .hero-actions { justify-content: center; } }

.hero-meta { display: flex; gap: 28px; margin-top: 34px; flex-wrap: wrap; }
@media (max-width: 940px) { .hero-meta { justify-content: center; } }
.hero-meta div { text-align: left; }
@media (max-width: 940px) { .hero-meta div { text-align: center; } }
.hero-meta b { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--text); }
.hero-meta span { font-size: .88rem; color: var(--slate-500); }

/* Hero visual — stacked product cards */
.hero-visual { position: relative; min-height: 420px; }
.float-card {
  position: absolute; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 20px;
}
.float-card .fc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.float-card .fc-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.float-card .fc-ic svg { width: 22px; height: 22px; }
.float-card h4 { font-size: 1rem; }
.float-card p { font-size: .84rem; margin-top: 2px; }
.fc-kundli { top: 0; left: 0; width: 62%; z-index: 2; animation: floaty 7s var(--ease) infinite; }
.fc-kundli .fc-ic { background: linear-gradient(140deg, var(--amber-500), var(--amber-600)); }
.fc-erp { bottom: 6%; right: 0; width: 60%; z-index: 3; animation: floaty 7s var(--ease) infinite reverse; animation-delay: -2s; }
.fc-erp .fc-ic { background: linear-gradient(140deg, var(--sky-500), var(--sky-600)); }
.fc-orbit {
  position: absolute; inset: 8% 12%; border-radius: 50%;
  background: conic-gradient(from 90deg, rgba(124,77,255,.16), rgba(14,165,233,.12), rgba(245,158,11,.14), rgba(124,77,255,.16));
  filter: blur(6px); z-index: 1;
  animation: spin 26s linear infinite;
}
.mini-bars { display: flex; align-items: end; gap: 7px; height: 62px; margin-top: 6px; }
.mini-bars i { flex: 1; background: linear-gradient(180deg, var(--sky-400), var(--sky-600)); border-radius: 5px 5px 3px 3px; opacity: .9; }
.mini-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.mini-chips span { font-size: .72rem; padding: 4px 9px; border-radius: 999px; background: var(--amber-50, #fff7e6); color: var(--amber-600); border: 1px solid #ffe9c2; }

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .fc-kundli, .fc-erp, .fc-orbit { animation: none !important; }
  html { scroll-behavior: auto; }
}
@media (max-width: 940px) { .hero-visual { min-height: 360px; max-width: 460px; margin: 10px auto 0; } }
@media (max-width: 640px) {
  .hero-visual { min-height: 0; max-width: 380px; display: grid; gap: 14px; margin-top: 4px; }
  .fc-orbit { display: none; }
  .float-card { position: static; width: 100%; animation: none !important; }
  .float-card p { font-size: .8rem; }
}

/* Marquee / trust strip */
.trust { border-block: 1px solid var(--border); background: #fff; }
.trust .container { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; justify-content: center; padding-block: 22px; }
.trust span { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--slate-400); font-weight: 600; }
.trust ul { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; }
.trust li { font-family: var(--font-display); font-weight: 600; color: var(--slate-500); }

/* ---------- Cards ---------- */
.card {
  position: relative; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--violet-500), var(--sky-500), var(--amber-500));
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::after { transform: scaleX(1); }

.feature-ic {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--violet-50); color: var(--violet-600); margin-bottom: 16px;
}
.feature-ic svg { width: 26px; height: 26px; }
.feature-ic.amber { background: #fff7e6; color: var(--amber-600); }
.feature-ic.sky { background: #e6f6fe; color: var(--sky-600); }
.card h3 { margin-bottom: 8px; }
.card p { font-size: .95rem; }

/* Product spotlight cards */
.product-card {
  display: grid; grid-template-columns: 1fr; gap: 22px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-md);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-card .pc-tag {
  display: inline-flex; align-items: center; gap: 8px; align-self: start; justify-self: start;
  padding: 6px 12px; border-radius: 999px; font-size: .78rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
}
.pc-tag.astro { background: #fff7e6; color: var(--amber-600); }
.pc-tag.edu { background: #e6f6fe; color: var(--sky-600); }
.product-card h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.product-card ul.ticks { display: grid; gap: 10px; margin: 6px 0 4px; }
.ticks li { display: flex; gap: 10px; font-size: .95rem; color: var(--text-soft); }
.ticks li svg { width: 20px; height: 20px; flex: none; color: var(--violet-500); margin-top: 2px; }
.product-card .pc-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }

/* ---------- Split feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split + .split { margin-top: clamp(48px, 7vw, 96px); }
.split.reverse .split-media { order: 2; }
@media (max-width: 860px) { .split, .split.reverse { grid-template-columns: 1fr; } .split.reverse .split-media { order: 0; } }
.split-media {
  border-radius: var(--radius-xl); padding: 28px; border: 1px solid var(--border);
  background: linear-gradient(160deg, #fff, var(--bg-soft));
  box-shadow: var(--shadow-md);
}
.split h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 12px; }
.split ul.ticks { margin-top: 18px; }

/* Mock UI panel */
.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.panel-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.panel-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--slate-200); }
.panel-body { padding: 18px; display: grid; gap: 12px; }
.row { display: flex; align-items: center; gap: 12px; }
.row .avatar { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(140deg, var(--violet-400), var(--sky-400)); flex: none; }
.row .bar { height: 10px; border-radius: 6px; background: var(--slate-100); flex: 1; }
.row .bar.short { max-width: 90px; }
.donut { width: 120px; height: 120px; border-radius: 50%; margin-inline: auto;
  background: conic-gradient(var(--violet-500) 0 62%, var(--sky-400) 62% 82%, var(--slate-100) 82% 100%); }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat b { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); display: block; color: #fff; }
.stat span { color: #b8b2d8; font-size: .9rem; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 20px; }
.step { position: relative; padding-left: 62px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700;
  background: var(--violet-50); color: var(--violet-700); border: 1px solid var(--violet-100);
}
.step h4 { font-size: 1.05rem; margin-bottom: 4px; }
.step p { font-size: .93rem; }

/* ---------- Testimonials ---------- */
.quote { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.quote p { color: var(--text); font-size: 1rem; }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.quote .who .avatar { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(140deg, var(--violet-400), var(--amber-400)); }
.quote .who b { font-family: var(--font-display); font-size: .95rem; display: block; }
.quote .who span { font-size: .82rem; color: var(--slate-500); }
.stars { display: flex; gap: 3px; color: var(--amber-500); margin-bottom: 12px; }
.stars svg { width: 16px; height: 16px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq details {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 4px 20px; transition: box-shadow .25s, border-color .25s;
}
.faq details[open] { box-shadow: var(--shadow-md); border-color: var(--violet-100); }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 0;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { width: 22px; height: 22px; flex: none; transition: transform .25s; color: var(--violet-500); }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq details p { padding: 0 0 18px; font-size: .95rem; }

/* ---------- CTA ---------- */
.cta-band {
  position: relative; overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(124,77,255,.5), transparent 60%),
    radial-gradient(600px 300px at 100% 100%, rgba(14,165,233,.4), transparent 60%),
    linear-gradient(120deg, var(--violet-700), var(--violet-800));
  color: #fff; padding: clamp(36px, 6vw, 68px); text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #d8d3ff; max-width: 56ch; margin: 12px auto 26px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info .info-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.contact-info .info-item:last-child { border-bottom: 0; }
.contact-info .info-item svg { width: 22px; height: 22px; color: var(--violet-500); flex: none; margin-top: 3px; }
.contact-info .info-item b { font-family: var(--font-display); display: block; font-size: .95rem; }
.contact-info .info-item span, .contact-info .info-item a { color: var(--text-soft); font-size: .95rem; }

form.card { padding: clamp(24px, 4vw, 36px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 7px; font-family: var(--font-display); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--bg-soft);
  font: inherit; color: var(--text); transition: border-color .2s, background .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--violet-400); background: #fff;
  box-shadow: 0 0 0 4px rgba(124,77,255,.14);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: .82rem; color: var(--slate-500); margin-top: 6px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background:
    radial-gradient(700px 380px at 12% -20%, rgba(124,77,255,.22), transparent 60%),
    radial-gradient(600px 340px at 100% -10%, rgba(14,165,233,.16), transparent 55%),
    var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.page-hero .container { padding-block: clamp(48px, 8vw, 96px); }
.page-hero .breadcrumb { font-size: .85rem; color: var(--slate-500); margin-bottom: 14px; }
.page-hero .breadcrumb a:hover { color: var(--violet-600); }
.page-hero h1 { max-width: 20ch; }
.page-hero p { max-width: 62ch; margin-top: 16px; }
.page-hero .hero-actions { margin-top: 26px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: #c9c4e6; padding-block: clamp(48px, 7vw, 80px) 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand b { color: var(--violet-300); }
.site-footer p { color: #9c96c4; font-size: .92rem; max-width: 36ch; }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col a { display: block; padding: 6px 0; color: #a9a3d0; font-size: .93rem; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.footer-social a:hover { background: rgba(255,255,255,.14); }
.footer-social svg { width: 18px; height: 18px; color: #d7d3f0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.09); font-size: .86rem; color: #8b85b4; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Tabs (feature explorer) ---------- */
.tabs { max-width: 960px; margin-inline: auto; }
.tablist {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
  border: 1px solid var(--border); background: #fff; padding: 8px; border-radius: 22px;
  box-shadow: var(--shadow-sm);
}
.tab {
  padding: 10px 18px; border-radius: 999px; border: 0; background: transparent;
  font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: var(--text-soft);
  transition: background .2s, color .2s; white-space: nowrap;
}
.tab[aria-selected="true"] { background: linear-gradient(120deg, var(--violet-600), var(--violet-500)); color: #fff; box-shadow: var(--shadow-md); }
.tab:hover:not([aria-selected="true"]) { background: var(--bg-soft); color: var(--text); }
.tabpanels { margin-top: 26px; }
.tabpanel { display: none; }
.tabpanel.active { display: block; animation: tabfade .35s var(--ease); }
@keyframes tabfade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tabpanel.active { animation: none; } }

.feature-cols { columns: 2; column-gap: 44px; margin-top: 8px; }
@media (max-width: 620px) { .feature-cols { columns: 1; } }
.feature-cols li { break-inside: avoid; display: flex; gap: 10px; padding: 8px 0; font-size: .95rem; color: var(--text-soft); }
.feature-cols li svg { width: 18px; height: 18px; color: var(--violet-500); flex: none; margin-top: 3px; }

/* ---------- Data table (Guna Milan) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
table.koota { width: 100%; border-collapse: collapse; min-width: 560px; background: #fff; }
table.koota th, table.koota td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--border); font-size: .94rem; }
table.koota thead th { background: var(--bg-soft); font-family: var(--font-display); font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; color: var(--text-soft); }
table.koota tbody tr:last-child td { border-bottom: 0; }
table.koota td:last-child, table.koota th:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
table.koota tfoot td { font-family: var(--font-display); font-weight: 700; background: var(--violet-50); color: var(--violet-800); border-bottom: 0; }

/* ---------- Chip grid (muhurat) ---------- */
.chip-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-grid span {
  padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--border);
  font-size: .9rem; font-weight: 500; color: var(--text); box-shadow: var(--shadow-sm);
}

/* ---------- Panchang card ---------- */
.panchang-card { background: linear-gradient(160deg, #fff, var(--bg-soft)); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 8px 24px; box-shadow: var(--shadow-md); }
.panchang-card .pc-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--border); font-size: .95rem; }
.panchang-card .pc-row:last-child { border-bottom: 0; }
.panchang-card .pc-row b { font-family: var(--font-display); color: var(--text); font-weight: 600; }
.panchang-card .pc-row span { color: var(--text-soft); text-align: right; }

/* ---------- Geo-fence map mock ---------- */
.geo-map {
  position: relative; border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--bg-soft); box-shadow: var(--shadow-md);
}
.geo-map svg { width: 100%; height: auto; display: block; }
.geo-tag {
  position: absolute; left: 14px; bottom: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 13px; border-radius: 999px;
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  font-size: .82rem; font-weight: 600; color: var(--text);
}
.geo-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 4px rgba(22,163,74,.18); }

/* ---------- Chat widget ---------- */
.pv-chat { position: fixed; right: clamp(16px, 4vw, 28px); bottom: clamp(16px, 4vw, 28px); z-index: 200; font-family: var(--font-sans); }
.pv-chat__launch {
  width: 60px; height: 60px; border-radius: 50%; border: 0;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--violet-600), var(--violet-500));
  box-shadow: var(--shadow-lg); transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.pv-chat__launch:hover { transform: translateY(-2px) scale(1.04); box-shadow: var(--shadow-glow); }
.pv-chat__launch svg { width: 26px; height: 26px; }
.pv-chat__ic-close { display: none; }
.pv-chat.is-open .pv-chat__ic-open { display: none; }
.pv-chat.is-open .pv-chat__ic-close { display: block; }

.pv-chat__panel {
  position: absolute; right: 0; bottom: 74px;
  width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px));
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
  animation: pv-pop .28s var(--ease);
}
.pv-chat__panel[hidden] { display: none; }
@keyframes pv-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pv-chat__panel { animation: none; } }

.pv-chat__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; color: #fff;
  background: linear-gradient(120deg, var(--violet-700), var(--violet-600));
}
.pv-chat__title { display: flex; align-items: center; gap: 10px; }
.pv-chat__avatar { width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: conic-gradient(from 120deg, var(--violet-300), var(--sky-400), var(--amber-400), var(--violet-300)); }
.pv-chat__title b { font-family: var(--font-display); font-size: .98rem; display: block; line-height: 1.2; }
.pv-chat__title span { font-size: .78rem; color: rgba(255,255,255,.8); }
.pv-chat__x { background: rgba(255,255,255,.14); border: 0; color: #fff; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; }
.pv-chat__x:hover { background: rgba(255,255,255,.26); }
.pv-chat__x svg { width: 18px; height: 18px; }

.pv-chat__log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-soft); }
.pv-msg { max-width: 84%; padding: 10px 13px; border-radius: 14px; font-size: .92rem; line-height: 1.5; white-space: normal; word-wrap: break-word; }
.pv-msg--bot { align-self: flex-start; background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 5px; color: var(--text); }
.pv-msg--user { align-self: flex-end; background: linear-gradient(120deg, var(--violet-600), var(--violet-500)); color: #fff; border-bottom-right-radius: 5px; }
.pv-msg--typing { display: flex; gap: 4px; align-items: center; }
.pv-msg--typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--slate-400); animation: pv-blink 1.2s infinite ease-in-out; }
.pv-msg--typing span:nth-child(2) { animation-delay: .2s; }
.pv-msg--typing span:nth-child(3) { animation-delay: .4s; }
@keyframes pv-blink { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.pv-chat__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); background: #fff; }
.pv-chat__input {
  flex: 1; resize: none; border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 12px; font: inherit; font-size: .92rem; color: var(--text); background: var(--bg-soft);
  max-height: 120px; transition: border-color .2s, box-shadow .2s, background .2s;
}
.pv-chat__input:focus { outline: none; border-color: var(--violet-400); background: #fff; box-shadow: 0 0 0 3px rgba(124,77,255,.14); }
.pv-chat__send { flex: none; width: 42px; border: 0; border-radius: 12px; color: #fff; display: grid; place-items: center;
  background: linear-gradient(120deg, var(--violet-600), var(--violet-500)); transition: transform .15s var(--ease); }
.pv-chat__send:hover { transform: translateY(-1px); }
.pv-chat__send svg { width: 18px; height: 18px; }
.pv-chat__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 12px 11px; background: #fff; }
.pv-chat__mail {
  border: 0; background: none; padding: 4px 0; cursor: pointer;
  font-size: .78rem; font-weight: 600; color: var(--violet-700); text-decoration: underline;
}
.pv-chat__mail:hover { color: var(--violet-600); }
.pv-chat__note { font-size: .72rem; color: var(--slate-500); }

@media (max-width: 480px) {
  .pv-chat { right: 14px; bottom: 14px; }
  .pv-chat__launch { width: 52px; height: 52px; }
  .pv-chat__launch svg { width: 22px; height: 22px; }
  .pv-chat__panel { bottom: 66px; height: min(72vh, calc(100vh - 96px)); }
}

/* ---------- In-place page swap ---------- */
body.pv-loading { cursor: progress; }
.pv-swap-in { animation: pv-swap-in .28s var(--ease); }
@keyframes pv-swap-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pv-swap-in { animation: none; } }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.muted { color: var(--slate-500); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--violet-50); color: var(--violet-700); font-size: .82rem; font-weight: 600; }
.divider { height: 1px; background: var(--border); border: 0; margin-block: 0; }
