:root {
  --primary: #1f108e;
  --primary-strong: #170a6e;
  --on-primary: #ffffff;
  --primary-soft: #ece8f7;
  --primary-line: #d9d1f5;
  --bg: #faf8f4;
  --surface: #ffffff;
  --surface-soft: #f5f2fb;
  --surface-warm: #f0ece5;
  --text: #19191d;
  --text-muted: #4a4a52;
  --text-faint: #7a7a82;
  --line: #e8e4dd;
  --line-strong: #dcd8d0;
  --success: #0f7b52;
  --success-soft: #e2f3eb;
  --amber: #b45309;
  --amber-soft: #fdf0e0;
  --danger: #b3261e;
  --danger-soft: #fdeae8;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --container: 1080px;
  --shadow-sm: 0 1px 2px rgba(25, 25, 29, 0.04);
  --shadow-md: 0 10px 30px -12px rgba(31, 16, 142, 0.14);
  --shadow-lg: 0 30px 70px -30px rgba(31, 16, 142, 0.22);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* themed scrollbar */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-line) var(--surface-soft);
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--surface-soft); }
::-webkit-scrollbar-thumb { background: var(--primary-line); border: 2px solid var(--surface-soft); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }
body {
  font-family: 'Inter', 'Mukta', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: 'Geist', 'Inter', 'Mukta', sans-serif; letter-spacing: -0.02em; color: var(--text); }
a { color: inherit; text-decoration: none; }
::selection { background: var(--primary); color: var(--on-primary); }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.mono { font-family: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace; }

/* nav */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(250, 248, 244, 0.9); backdrop-filter: blur(14px) saturate(150%); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; flex-direction: row; align-items: center; gap: 11px; line-height: 1; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; flex: none; filter: drop-shadow(0 2px 8px rgba(79,70,229,0.2)); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-word { font-family: 'Geist', 'Mukta', sans-serif; font-size: 20px; font-weight: 800; letter-spacing: -0.025em; color: var(--text); }
.brand-word .hindi { color: var(--primary); font-family: 'Mukta', sans-serif; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 9px 16px; border-radius: 10px; font-size: 14.5px; font-weight: 500; color: var(--text-muted); transition: all .16s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: var(--primary-soft); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 12px 22px; border-radius: var(--radius); font-family: 'Inter', sans-serif; font-size: 14.5px; font-weight: 600; cursor: pointer; border: 1px solid transparent; transition: all .16s ease; white-space: nowrap; }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--primary-strong); transform: translateY(-1px); }
.btn-outline { background: var(--surface); color: var(--primary); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--primary); background: var(--primary-soft); }
.btn-sm { min-height: 42px; padding: 10px 18px; font-size: 14px; border-radius: 11px; }

/* page hero */
.page-hero { padding: 88px 0 56px; border-bottom: 1px solid var(--line); }
.breadcrumb { font-size: 13px; color: var(--text-faint); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--primary); }
.page-hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.06; font-weight: 800; letter-spacing: -0.035em; margin-bottom: 18px; }
.page-hero .lead { font-size: 18px; color: var(--text-muted); max-width: 680px; line-height: 1.7; }
.kicker { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--primary); margin-bottom: 14px; }

/* content */
.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-alt { background: var(--surface-soft); }
.section-head { margin-bottom: 36px; }
.section-head h2 { font-size: clamp(26px, 3.5vw, 36px); line-height: 1.12; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 12px; }
.section-head p { font-size: 16px; color: var(--text-muted); max-width: 640px; }

/* cards */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.card h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--text-muted); line-height: 1.65; }
.card-icon { width: 46px; height: 46px; border-radius: 13px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin-bottom: 18px; }
.card-icon svg { width: 22px; height: 22px; }

/* list / prose */
.prose { font-size: 16px; color: var(--text-muted); line-height: 1.75; }
.prose p + p { margin-top: 14px; }
.prose h3 { font-size: 20px; font-weight: 600; margin: 28px 0 10px; }
.prose ul { margin: 12px 0 12px 20px; }
.prose li { margin: 8px 0; }
.check-list { list-style: none; margin-left: 0; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; position: relative; padding-left: 26px; }
.check-list li::before { content: ''; width: 18px; height: 18px; flex: none; margin-top: 3px; background: var(--success-soft); border-radius: 50%; position: absolute; left: 0; }
.check-list li::after { content: '✓'; position: absolute; left: 3px; top: 3px; color: var(--success); font-size: 12px; font-weight: 700; }

/* callout */
.callout { background: var(--primary-soft); border: 1px solid var(--primary-line); border-radius: var(--radius-lg); padding: 24px 26px; }
.callout h4 { color: var(--primary); font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.callout p { font-size: 14.5px; color: var(--text-muted); }

/* table */
.table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 14px; }
.table th, .table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.table th { background: var(--surface-soft); font-weight: 600; color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.table tr:last-child td { border-bottom: 0; }
.table td { color: var(--text-muted); }

/* footer */
footer { border-top: 1px solid var(--line); padding: 56px 0 32px; background: var(--surface-soft); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 44px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: 'Geist', 'Mukta', sans-serif; font-weight: 700; font-size: 19px; color: var(--primary); letter-spacing: 0.02em; margin-bottom: 14px; }
.footer-about { font-size: 13.5px; color: var(--text-faint); max-width: 280px; line-height: 1.6; }
.footer-col h4 { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 13.5px; color: var(--text-faint); padding: 5px 0; transition: color .16s; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-faint); }
.footer-bottom .mono { color: var(--text-muted); }

@media (max-width: 860px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 64px 0 40px; }
}

.nav .container,
footer .container { padding-left: 12px; padding-right: 12px; }
