:root {
  --indigo-700: #1e36c9;
  --indigo-600: #2e46e6;
  --indigo-500: #3b5bfe;
  --indigo-400: #6d83ff;
  --indigo-100: #dce2ff;
  --indigo-50: #edf0ff;
  --mist-100: #eef0fd;
  --mist-200: #e3e6f7;
  --mist-300: #d2d7ee;
  --ink-900: #151726;
  --ink-700: #2e3250;
  --ink-500: #5d6485;
  --ink-400: #858ba8;
  --white: #ffffff;
  --navy: #13347a;
  --plate-yellow: #f4df77;
  --amber: #eba62e;
  --teal: #2ca0a8;
  --violet: #7a4de0;
  --danger: #c0392b;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 10px rgba(18, 26, 58, 0.06);
  --shadow-md: 0 14px 40px rgba(18, 26, 58, 0.10);
  --shadow-lg: 0 24px 60px rgba(18, 26, 58, 0.16);
  --gutter: 20px;
  --maxw: 1180px;
  --font: "Segoe UI", Roboto, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-900);
  background: var(--mist-100);
  line-height: 1.55;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--indigo-600); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--indigo-600);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--mist-200);
  transition: background .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
body.has-hero .site-header { position: fixed; left: 0; right: 0; }
body.has-hero .site-header:not(.scrolled) {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
}
body.has-hero .site-header:not(.scrolled) .brand-name { color: #fff; }
body.has-hero .site-header:not(.scrolled) .main-nav a { color: rgba(255, 255, 255, 0.9); }
body.has-hero .site-header:not(.scrolled) .main-nav a:hover { background: rgba(255, 255, 255, 0.14); }
body.has-hero .site-header:not(.scrolled) .main-nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.16); }
body.has-hero .site-header:not(.scrolled) .nav-toggle { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.35); }
body.has-hero .site-header:not(.scrolled) .nav-toggle span,
body.has-hero .site-header:not(.scrolled) .nav-toggle span::before,
body.has-hero .site-header:not(.scrolled) .nav-toggle span::after { background: #fff; }
.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 11px;
  box-shadow: var(--shadow-sm);
  display: block;
}
.brand-text { line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 19px; color: var(--ink-900); letter-spacing: -0.3px; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block;
  padding: 9px 14px;
  border-radius: 10px;
  color: var(--ink-700);
  font-weight: 600;
  font-size: 15px;
}
.main-nav a:hover { background: var(--mist-100); text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--indigo-600); background: var(--indigo-50); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: var(--indigo-600);
  color: #fff;
  border-radius: 100px;
  font-weight: 700;
  font-size: 14px;
}
.nav-cta:hover { background: var(--indigo-700); text-decoration: none; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  border: 1px solid var(--mist-300);
  background: #fff;
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block;
  width: 20px; height: 2px; background: var(--ink-900);
  margin: 0 auto; position: relative; border-radius: 2px;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

.hero {
  position: relative;
  background-color: #0b1030;
  background-image:
    linear-gradient(to bottom, rgba(6, 9, 30, 0.58) 0, rgba(6, 9, 30, 0) 200px),
    linear-gradient(105deg, rgba(8, 11, 34, 0.82) 0%, rgba(12, 18, 52, 0.5) 46%, rgba(10, 14, 40, 0.14) 100%),
    url("/assets/hero-bg.jpg");
  background-position: center, center, center;
  background-size: cover, cover, cover;
  background-repeat: no-repeat, no-repeat, no-repeat;
  color: #fff;
  padding: 124px 0 150px;
  overflow: hidden;
}
.hero-grid {
  display: block;
}
.hero-grid > div {
  max-width: 560px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  padding: 7px 14px; border-radius: 100px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.4px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -1.2px;
  margin: 0 0 16px;
  font-weight: 800;
}
.hero p.lede { font-size: 18px; color: rgba(255, 255, 255, 0.86); max-width: 520px; margin: 0 0 24px; }
.hero-badges { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.rating-pill {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  padding: 12px 16px; border-radius: 14px;
}
.rating-pill strong { font-size: 20px; }
.rating-pill span { font-size: 13px; color: rgba(255, 255, 255, 0.82); }
.hero-visual { position: relative; display: grid; place-items: center; }
.hero-visual img { width: min(340px, 80%); filter: drop-shadow(0 30px 50px rgba(0,0,0,0.35)); }
.hero-glow {
  position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(109,131,255,0.55), transparent 65%);
  z-index: 0;
}

.search-wrap { margin-top: -110px; position: relative; z-index: 5; }
.search-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 10px 10px 22px;
  border: 1px solid var(--mist-200);
}
.search-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 8px;
  scrollbar-width: none;
}
.search-tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 20px;
  border-radius: 14px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--ink-500);
  font-weight: 700; font-size: 14px;
  font-family: inherit;
  border-bottom: 3px solid transparent;
}
.tab img { width: 34px; height: 34px; }
.tab:hover { background: var(--mist-100); }
.tab[aria-selected="true"] { color: var(--indigo-600); border-bottom-color: var(--indigo-600); }

.search-row { display: flex; gap: 12px; padding: 14px 14px 0; }
.plate-input {
  flex: 1;
  display: flex; align-items: center;
  background: #fff;
  border: 1.5px solid var(--mist-300);
  border-radius: 100px;
  overflow: hidden;
  transition: border-color 0.15s;
}
.plate-input:focus-within { border-color: var(--indigo-500); }
.plate-ind {
  align-self: stretch;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--navy); color: #fff;
  padding: 0 15px; font-weight: 800; font-size: 14px; letter-spacing: 2px;
}
.plate-ind .emblem {
  width: 9px; height: 13px; border-radius: 2px;
  background: linear-gradient(#ff9933 0 33%, #fff 33% 66%, #138808 66% 100%);
}
.plate-input input {
  flex: 1; border: none; outline: none;
  font-size: 18px; font-weight: 700; letter-spacing: 1px;
  padding: 0 18px; color: var(--ink-900);
  text-transform: uppercase;
  background: transparent;
  min-width: 0;
}
.plate-input input::placeholder { color: var(--ink-400); font-weight: 500; letter-spacing: 0; text-transform: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: 16px;
  border-radius: 100px;
  padding: 0 28px; height: 56px;
  background: var(--indigo-600); color: #fff;
  transition: transform 0.08s, background 0.15s;
  white-space: nowrap;
}
.btn:hover { background: var(--indigo-700); text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn[disabled] { background: var(--mist-300); color: var(--ink-400); cursor: not-allowed; }
.btn-ghost { background: #fff; color: var(--indigo-600); border: 1.5px solid var(--mist-300); }
.btn-ghost:hover { background: var(--mist-100); }
.btn-sm { height: 44px; font-size: 14px; padding: 0 20px; }

.search-hint { padding: 10px 16px 0; font-size: 13px; color: var(--ink-400); }
.search-error { padding: 10px 16px 0; font-size: 14px; color: var(--danger); font-weight: 600; }

section { padding: 56px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.6px; margin: 0 0 10px; }
.section-head p { color: var(--ink-500); font-size: 17px; margin: 0; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--mist-200);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); text-decoration: none; }
.feature-card img { width: 56px; height: 56px; margin-bottom: 16px; }
.feature-card h3 { font-size: 20px; margin: 0 0 8px; color: var(--ink-900); }
.feature-card p { color: var(--ink-500); margin: 0 0 14px; font-size: 15px; }
.feature-card .arrow { color: var(--indigo-600); font-weight: 700; font-size: 15px; }

.stats-band {
  background: linear-gradient(120deg, var(--indigo-600), var(--indigo-700));
  border-radius: var(--radius-lg);
  color: #fff;
  padding: 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  box-shadow: var(--shadow-md);
}
.stat { text-align: center; }
.stat strong { display: block; font-size: 34px; font-weight: 800; letter-spacing: -1px; }
.stat span { font-size: 14px; color: rgba(255, 255, 255, 0.82); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { text-align: center; padding: 10px; }
.step .num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--indigo-50); color: var(--indigo-600);
  display: grid; place-items: center; font-weight: 800; font-size: 20px;
  margin: 0 auto 16px;
}
.step h3 { font-size: 18px; margin: 0 0 6px; }
.step p { color: var(--ink-500); margin: 0; font-size: 15px; }

.trust-strip {
  background: #fff;
  border-top: 1px solid var(--mist-200);
  border-bottom: 1px solid var(--mist-200);
  padding: 28px 0;
}
.trust-strip .container { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; text-align: center; }
.trust-strip p { margin: 0; color: var(--ink-500); font-size: 15px; }
.trust-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--indigo-50); color: var(--indigo-700);
  padding: 8px 16px; border-radius: 100px; font-weight: 700; font-size: 14px;
}

.breadcrumbs { padding: 18px 0 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; font-size: 14px; color: var(--ink-400); }
.breadcrumbs li::after { content: "/"; margin-left: 8px; color: var(--mist-300); }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: var(--ink-500); font-weight: 600; }

.page-hero {
  background: linear-gradient(120deg, var(--indigo-600), var(--indigo-700));
  color: #fff;
  padding: 108px 0 90px;
}
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.8px; margin: 10px 0 10px; }
.page-hero p { color: rgba(255, 255, 255, 0.86); max-width: 560px; font-size: 17px; margin: 0; }
body[data-lookup] .page-hero {
  position: relative;
  background-color: var(--indigo-700);
  background-image:
    linear-gradient(to bottom, rgba(8, 12, 40, 0.45) 0, rgba(8, 12, 40, 0) 170px),
    linear-gradient(100deg, rgba(23, 38, 120, 0.88) 0%, rgba(26, 42, 132, 0.6) 46%, rgba(12, 20, 64, 0.3) 100%),
    var(--hero-img);
  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat;
}
body[data-lookup="rc"] .page-hero { --hero-img: url("/assets/hero-rc.jpg"); }
body[data-lookup="challan"] .page-hero { --hero-img: url("/assets/hero-challan.jpg"); }
body[data-lookup="fastag"] .page-hero { --hero-img: url("/assets/hero-fastag.jpg"); }

.lookup-search { position: relative; z-index: 5; margin-top: -58px; }
.search-tabs .tab, .search-tabs .tab:hover { text-decoration: none; }

.result { margin-top: 28px; }
.result-hero {
  background: linear-gradient(120deg, var(--indigo-600), var(--indigo-700));
  color: #fff; border-radius: var(--radius-lg);
  padding: 26px;
}
.result-hero .eyebrow-dark { font-size: 12px; letter-spacing: 1px; color: rgba(255,255,255,0.78); font-weight: 700; text-transform: uppercase; }
.plate-chip {
  display: inline-flex; align-items: stretch;
  background: var(--plate-yellow); border: 2px solid var(--ink-900);
  border-radius: 10px; overflow: hidden; margin: 10px 0;
  font-family: "Consolas", "Courier New", monospace; font-weight: 800;
}
.plate-chip .ind { background: var(--navy); color: #fff; padding: 8px 10px; font-size: 13px; display: grid; place-items: center; }
.plate-chip .num { padding: 8px 16px; font-size: 22px; letter-spacing: 3px; color: var(--ink-900); }
.result-hero .big { font-size: 40px; font-weight: 800; letter-spacing: -1px; margin: 6px 0 2px; }

.cards-stack { display: grid; gap: 16px; margin-top: 18px; }
.info-card {
  background: #fff; border: 1px solid var(--mist-200);
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  padding: 22px;
}
.info-card h3 { margin: 0 0 4px; font-size: 18px; }
.info-card .sub { color: var(--ink-400); font-size: 12px; text-transform: uppercase; letter-spacing: 0.6px; font-weight: 700; margin-bottom: 14px; }
.data-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--mist-100); }
.data-row:first-of-type { border-top: none; }
.data-row .k { color: var(--ink-500); font-size: 14px; }
.data-row .v { font-weight: 700; text-align: right; color: var(--ink-900); }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 100px; font-size: 13px; font-weight: 700; }
.pill-green { background: #d7f0e2; color: #1e7e52; }
.pill-amber { background: #fbebc6; color: #9a6b12; }
.pill-red { background: #f8dad6; color: #b0392b; }
.pill-neutral { background: var(--mist-200); color: var(--ink-500); }

.loader { text-align: center; padding: 40px 0; color: var(--ink-500); }
.spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid var(--mist-200); border-top-color: var(--indigo-600);
  margin: 0 auto 14px; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty { text-align: center; padding: 40px 20px; color: var(--ink-500); }
.empty .ico { width: 64px; height: 64px; border-radius: 20px; background: var(--mist-100); display: grid; place-items: center; margin: 0 auto 16px; font-size: 28px; }
.empty h3 { margin: 0 0 6px; color: var(--ink-900); }

.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 26px; letter-spacing: -0.4px; margin: 34px 0 12px; }
.prose h3 { font-size: 19px; margin: 24px 0 8px; }
.prose p, .prose li { color: var(--ink-700); font-size: 16px; }
.prose ul { padding-left: 20px; }
.prose a { font-weight: 600; }

.callout {
  background: var(--indigo-50); border: 1px solid var(--indigo-100);
  border-radius: var(--radius-md); padding: 18px 20px; margin: 20px 0;
  color: var(--ink-700); font-size: 15px;
}

.cta-band {
  background: linear-gradient(120deg, var(--indigo-600), var(--indigo-700));
  color: #fff; border-radius: var(--radius-lg); padding: 44px; text-align: center;
  box-shadow: var(--shadow-md);
}
.cta-band h2 { font-size: 30px; margin: 0 0 10px; letter-spacing: -0.5px; }
.cta-band p { color: rgba(255,255,255,0.86); margin: 0 0 22px; }
.cta-band .btn { background: #fff; color: var(--indigo-700); }
.cta-band .btn:hover { background: var(--indigo-50); }

.site-footer { background: var(--ink-900); color: #c7cbe0; padding: 54px 0 28px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-grid h4 { color: #fff; font-size: 15px; margin: 0 0 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: #a6acc9; font-size: 14px; }
.footer-grid a:hover { color: #fff; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { color: #8a90b0; font-size: 14px; max-width: 280px; margin: 14px 0 0; }
.footer-bottom { border-top: 1px solid #262a44; margin-top: 36px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #8a90b0; }

.notfound { text-align: center; padding: 90px 0; }
.notfound .code { font-size: 120px; font-weight: 800; letter-spacing: -4px; background: linear-gradient(120deg, var(--indigo-500), var(--indigo-700)); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.notfound h1 { font-size: 30px; margin: 10px 0; }
.notfound p { color: var(--ink-500); margin: 0 0 26px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-visual img { width: 220px; }
  .feature-grid { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav, .nav-cta { display: none; }
  .main-nav.open {
    display: block; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--mist-200); padding: 10px var(--gutter) 18px;
    box-shadow: var(--shadow-md);
  }
  .main-nav.open ul { flex-direction: column; gap: 2px; }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  .search-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .search-row .plate-input { flex: 0 0 auto; width: 100%; height: 56px; }
  .plate-ind { padding: 0 14px; font-size: 13px; letter-spacing: 1.5px; }
  .plate-input input { font-size: 16px; padding: 0 14px; letter-spacing: .5px; }
  .btn { width: 100%; }
  .stats-band { grid-template-columns: 1fr 1fr; padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .result-hero .big { font-size: 32px; }
  .data-row { flex-direction: column; gap: 2px; }
  .data-row .v { text-align: left; }
}

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .2, 1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }

.hero h1 { animation: heroUp .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero p.lede { animation: heroUp .7s .08s cubic-bezier(.2, .7, .2, 1) both; }
.hero-badges { animation: heroUp .7s .16s cubic-bezier(.2, .7, .2, 1) both; }
.search-card { animation: heroUp .6s .1s cubic-bezier(.2, .7, .2, 1) both; }
.hero-visual img { animation: floatY 4.5s ease-in-out infinite; }

.result-hero { animation: cardIn .45s ease both; }
.info-card { animation: cardIn .45s ease both; }

@keyframes heroUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-visual img { animation: none !important; }
}

.eyebrow .live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #3ddc84; flex: 0 0 auto;
  box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.7);
  animation: livePulse 1.9s ease-out infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6); }
  70% { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}
@media (prefers-reduced-motion: reduce) { .eyebrow .live-dot { animation: none; } }
