/* ============================================================
   VAKIL SARTHI — Global Stylesheet
   Design System: Deep Navy Judicial + Gold Accent
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500;600&family=Tiro+Devanagari+Hindi&display=swap');

/* ---- Design Tokens ---- */
:root {
  --navy:       #0B1120;
  --navy-mid:   #111827;
  --navy-light: #1A2540;
  --navy-card:  #162035;
  --gold:       #C9A84C;
  --gold-light: #E2C47B;
  --gold-faint: rgba(201,168,76,0.12);
  --gold-glow:  rgba(201,168,76,0.28);
  --white:      #F5F2EC;
  --muted:      #8A95A8;
  --border:     rgba(201,168,76,0.18);
  --glass-bg:   rgba(22, 32, 53, 0.72);
  --glass-blur: blur(18px);
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  24px;
  --shadow-card: 0 8px 40px rgba(0,0,0,0.45);
  --shadow-gold: 0 0 28px rgba(201,168,76,0.22);
  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body:    'DM Sans', system-ui, sans-serif;
  --ff-hindi:   'Tiro Devanagari Hindi', serif;
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--ff-body);
  background: var(--navy);
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }

/* ---- Typography ---- */
h1, h2, h3, h4 { font-family: var(--ff-display); line-height: 1.22; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; }
p  { font-size: 1rem; color: var(--muted); }
.body--hindi { font-family: var(--ff-hindi); }

/* ---- Layout Utilities ---- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 96px 0; }
.section--sm { padding: 64px 0; }
.text-gold { color: var(--gold); }
.text-center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm { gap: 12px; }
.gap-md { gap: 20px; }
.mt-sm { margin-top: 12px; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 40px; }
.tag {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gold-faint);
  margin-bottom: 16px;
}

/* ---- Divider ---- */
.divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 16px 0 28px;
}
.divider--center { margin: 16px auto 28px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--ff-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  letter-spacing: 0.02em;
}
.btn--primary {
  background: linear-gradient(135deg, var(--gold), #A8762A);
  color: var(--navy);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}
.btn--outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--white);
}
.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-faint);
}
.btn--ghost {
  background: transparent;
  color: var(--gold);
  padding: 13px 0;
}
.btn--ghost:hover { text-decoration: underline; }

/* ---- Glass Card ---- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

/* ---- Section Header ---- */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.section-header p { margin-top: 14px; font-size: 1.05rem; }

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  transition: background var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  background: rgba(11,17,32,0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--gold), #A8762A);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
}
.nav__logo-name { font-family: var(--ff-display); font-size: 1.2rem; font-weight: 700; }
.nav__logo-name span { color: var(--gold); }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links a { font-size: 0.92rem; font-weight: 500; color: var(--muted); transition: color var(--transition); }
.nav__links a:hover, .nav__links a.active { color: var(--white); }
.nav__actions { display: flex; align-items: center; gap: 16px; }
.nav__lang {
  background: var(--gold-faint);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--gold);
  font-family: var(--ff-body);
  font-size: 0.85rem;
  padding: 6px 14px;
  cursor: pointer;
  transition: var(--transition);
}
.nav__lang:hover { background: var(--gold-glow); }
.nav__hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav__hamburger span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }
.nav__mobile-menu {
  display: none;
  position: fixed;
  top: 70px; left: 0; right: 0;
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  flex-direction: column;
  gap: 16px;
  z-index: 999;
}
.nav__mobile-menu.open { display: flex; }
.nav__mobile-menu a { font-size: 1rem; font-weight: 500; color: var(--muted); }

/* ---- FOOTER ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
  background: var(--navy-mid);
}
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.footer__brand p { margin-top: 12px; font-size: 0.92rem; line-height: 1.75; max-width: 300px; }
.footer__col h4 { font-size: 0.85rem; font-weight: 600; color: var(--gold); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__col ul a { font-size: 0.9rem; color: var(--muted); transition: color var(--transition); }
.footer__col ul a:hover { color: var(--white); }
.footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.footer__bottom p { font-size: 0.85rem; }
.footer__lang-row { display: flex; gap: 10px; }
.footer__lang-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--ff-body);
  font-size: 0.82rem;
  padding: 5px 14px;
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
}
.footer__lang-btn.active, .footer__lang-btn:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-faint); }

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 70px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 70% 50%, rgba(201,168,76,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 10% 80%, rgba(11,60,120,0.18) 0%, transparent 70%),
    var(--navy);
  z-index: 0;
}
.hero__grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  width: 100%;
}
.hero__eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.hero__eyebrow span { font-size: 0.82rem; font-weight: 600; color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase; }
.hero__eyebrow::before { content: ''; display: block; width: 32px; height: 1px; background: var(--gold); }
.hero__title { letter-spacing: -0.02em; }
.hero__title em { font-style: italic; color: var(--gold); }
.hero__desc { margin-top: 20px; font-size: 1.1rem; max-width: 440px; line-height: 1.8; }
.hero__actions { display: flex; align-items: center; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.hero__trust { display: flex; align-items: center; gap: 20px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border); }
.hero__trust-item { display: flex; flex-direction: column; }
.hero__trust-item strong { font-size: 1.4rem; font-family: var(--ff-display); color: var(--white); }
.hero__trust-item span { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.hero__trust-divider { width: 1px; height: 36px; background: var(--border); }
.hero__visual { position: relative; }
#hero-canvas-wrap {
  position: relative;
  width: 100%;
  height: 480px;
}
#hero-canvas { width: 100%; height: 100%; }
.hero__phone-mockup {
  position: absolute;
  right: 0; bottom: -20px;
  width: 160px;
}

/* ---- FEATURES ---- */
.features { background: var(--navy-mid); }
.feature-card {
  padding: 36px 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--navy-card);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.feature-card:hover { transform: translateY(-6px); border-color: var(--gold-glow); box-shadow: var(--shadow-gold); }
.feature-card:hover::before { opacity: 1; }
.feature-card__icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--gold-faint);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-card__icon svg { width: 24px; height: 24px; stroke: var(--gold); }
.feature-card h3 { font-size: 1.18rem; margin-bottom: 10px; color: var(--white); }
.feature-card p { font-size: 0.93rem; }

/* ---- COURTS ---- */
.courts { background: var(--navy); }
.court-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--navy-card);
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition);
}
.court-badge:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-faint); transform: scale(1.03); }
.court-badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.courts__grid { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 48px; }

/* ---- PRICING ---- */
.pricing { background: var(--navy-mid); }
.pricing__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: start; }
.pricing-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--navy-card);
  padding: 36px 32px;
  transition: transform var(--transition);
  position: relative;
  overflow: hidden;
}
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card--featured {
  border-color: var(--gold);
  background: linear-gradient(160deg, var(--navy-card) 0%, rgba(201,168,76,0.06) 100%);
  box-shadow: var(--shadow-gold);
}
.pricing-card__badge {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.pricing-card__plan { font-size: 0.8rem; font-weight: 600; color: var(--gold); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.pricing-card__name { font-family: var(--ff-display); font-size: 1.5rem; font-weight: 700; color: var(--white); }
.pricing-card__price { margin: 20px 0; }
.pricing-card__price .amount { font-family: var(--ff-display); font-size: 2.8rem; font-weight: 700; color: var(--white); }
.pricing-card__price .currency { font-size: 1.4rem; vertical-align: super; color: var(--gold); }
.pricing-card__price .period { font-size: 0.88rem; color: var(--muted); }
.pricing-card__price .free { font-family: var(--ff-display); font-size: 2rem; font-weight: 700; color: var(--gold); }
.pricing-card__desc { font-size: 0.9rem; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.pricing-card__features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.pricing-card__features li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.92rem; color: var(--white); }
.pricing-card__features li svg { width: 16px; height: 16px; stroke: var(--gold); flex-shrink: 0; margin-top: 3px; }
.pricing-card__features li.disabled { color: var(--muted); }
.pricing-card__features li.disabled svg { stroke: var(--muted); }

/* ---- SECURITY ---- */
.security { background: var(--navy); }
.security__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.security__badges { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.security__badge {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--navy-card);
}
.security__badge-icon { width: 38px; height: 38px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--gold-faint); border-radius: 8px; }
.security__badge-icon svg { width: 20px; height: 20px; stroke: var(--gold); }
.security__badge h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; }
.security__badge p { font-size: 0.82rem; }
.security__visual {
  position: relative;
  height: 420px;
  border-radius: var(--radius-lg);
  background: var(--navy-card);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.security__visual canvas { position: absolute; inset: 0; }
.security__visual-label {
  position: relative;
  z-index: 2;
  text-align: center;
}
.security__visual-label strong { font-size: 1.1rem; display: block; color: var(--gold); }
.security__visual-label span { font-size: 0.85rem; color: var(--muted); }

/* ---- CTA BAND ---- */
.cta-band {
  background: linear-gradient(135deg, var(--navy-card) 0%, rgba(201,168,76,0.08) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
  text-align: center;
}
.cta-band h2 { max-width: 640px; margin: 0 auto 16px; }
.cta-band p { max-width: 480px; margin: 0 auto 36px; }
.cta-band__actions { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }

/* ---- FLOATING MASCOT ---- */
#floating-mascot {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 90px; height: 90px;
  z-index: 900;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  cursor: pointer;
}
#floating-mascot.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
#floating-mascot canvas { width: 100%; height: 100%; }

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ---- SVG FALLBACK MASCOT ---- */
#svg-mascot-wrap { position: relative; }

/* ---- REDUCED MOTION ---- */
@media (prefers-reduced-motion: reduce) {
  #svg-mascot { animation: none !important; }
  .fade-up { transition: none !important; opacity: 1 !important; transform: none !important; }
  .feature-card, .pricing-card, .pillar, .court-badge { transition: none !important; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav__links, .nav__actions { display: none; }
  .nav__hamburger { display: flex; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__eyebrow { justify-content: center; }
  .hero__desc { margin: 20px auto 0; }
  .hero__actions { justify-content: center; }
  .hero__trust { justify-content: center; }
  #hero-canvas-wrap { height: 300px; }
  .grid-2, .grid-3, .pricing__grid { grid-template-columns: 1fr; }
  .security__inner { grid-template-columns: 1fr; }
  .security__visual { height: 280px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 16px; text-align: center; }
}
@media (max-width: 480px) {
  .section { padding: 64px 0; }
  h1 { font-size: 2rem; }
}

/* ---- TECHVEDX PARENT BRAND TOPBAR ---- */
.topbar {
  background: rgba(201,168,76,0.08);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  padding: 7px 0;
  font-size: 0.78rem;
  color: var(--muted);
  position: relative;
  z-index: 1001;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.topbar__left {
  display: flex;
  align-items: center;
  gap: 6px;
}
.topbar__left svg {
  width: 14px; height: 14px;
  stroke: var(--gold);
  flex-shrink: 0;
}
.topbar__left a {
  color: var(--gold);
  font-weight: 600;
  transition: opacity var(--transition);
}
.topbar__left a:hover { opacity: 0.75; }
.topbar__right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.topbar__right a {
  color: var(--muted);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
}
.topbar__right a svg { width: 12px; height: 12px; stroke: currentColor; }
.topbar__right a:hover { color: var(--white); }
/* Offset fixed nav to sit below topbar */
.nav { top: 36px; }
@media (max-width: 600px) {
  .topbar { display: none; }
  .nav { top: 0; }
}
