/* ==========================================================================
   QuickMetrix — Design tokens
   ========================================================================== */
:root {
  --red: #EC1C19;
  --red-dark: #B5130F;
  --blue: #0066B3;
  --blue-dark: #004B85;
  --blue-50: #EAF3FB;
  --blue-100: #D3E7F7;

  --ink: #12161F;
  --gray-800: #2B303B;
  --gray-600: #565C6B;
  --gray-400: #8A8F9C;
  --gray-200: #E3E6EC;
  --gray-100: #F2F4F8;
  --white: #FFFFFF;

  --navy-900: #0A0F1C;
  --navy-800: #121A2E;
  --navy-700: #1B2540;

  --font-head: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --container: 1200px;
  --shadow-card: 0 4px 24px rgba(18, 22, 31, 0.06);
  --shadow-card-hover: 0 10px 32px rgba(18, 22, 31, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.18;
  margin: 0 0 0.6em;
  color: var(--ink);
}
h1 { font-weight: 700; }
p { margin: 0 0 1em; color: var(--gray-600); }
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.text-center { text-align: center; }
.section-head { max-width: 640px; margin: 0 auto 56px; }
.section-head p { font-size: 18px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-dark); box-shadow: 0 8px 20px rgba(236,28,25,0.28); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--gray-200); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.35); }
.btn--ghost-light:hover { border-color: var(--white); }
.btn--block { width: 100%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}
.site-header .logo img { height: 64px; width: auto; }
.nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav a.nav-link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--gray-800);
  position: relative;
  padding: 6px 0;
}
.nav a.nav-link:hover { color: var(--blue); }
.header-cta { display: flex; align-items: center; gap: 18px; }

/* Mobile nav toggle (hamburger) — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: 8px;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink, #14213D);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.dropdown { position: relative; }
.dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card-hover);
  padding: 10px;
  min-width: 280px;
  display: none;
  grid-template-columns: 1fr;
}
/* Invisible bridge so the cursor doesn't lose hover while moving from the
   nav link down into the panel across the 14px visual gap above. */
.dropdown-panel::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}
.dropdown:hover .dropdown-panel,
.dropdown:focus-within .dropdown-panel { display: grid; }
.dropdown-panel a {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-800);
}
.dropdown-panel a:hover { background: var(--blue-50); color: var(--blue); }
.dropdown-panel a span {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--gray-400);
  margin-top: 2px;
}

/* Hero */
.hero {
  position: relative;
  padding: 88px 0 0;
  overflow: hidden;
  background: linear-gradient(180deg, var(--blue-50) 0%, var(--white) 65%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { font-size: 50px; letter-spacing: -0.01em; }
.hero h1 span { color: var(--blue); }
.hero .lead { font-size: 19px; max-width: 500px; }
.hero-actions { display: flex; gap: 14px; margin: 32px 0 40px; flex-wrap: wrap; }
.hero-trustline { font-size: 13px; color: var(--gray-400); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-trustline b { color: var(--gray-800); }
.hero-visual {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card-hover);
  padding: 28px;
}
.hero-stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.hero-stat-card {
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 20px;
}
.hero-stat-card .num { font-family: var(--font-head); font-size: 30px; font-weight: 700; color: var(--ink); }
.hero-stat-card .label { font-size: 13px; color: var(--gray-600); margin-top: 2px; }
.hero-stat-card.accent { background: var(--blue); }
.hero-stat-card.accent .num, .hero-stat-card.accent .label { color: var(--white); }
.hero-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gray-100); border-radius: 999px; padding: 8px 14px;
  font-size: 13px; font-weight: 500; color: var(--gray-800);
}
.hero-band {
  border-top: 1px solid var(--gray-200);
  margin-top: 72px;
  padding: 22px 0;
}
.hero-band .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.hero-band-label { font-size: 12.5px; color: var(--gray-400); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.hero-band-items { display: flex; gap: 30px; flex-wrap: wrap; font-size: 14px; color: var(--gray-600); font-weight: 500; }

/* Why band */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.why-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }
.why-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-50); color: var(--blue);
  margin-bottom: 20px;
  font-family: var(--font-head); font-weight: 700; font-size: 18px;
}
.why-card h3 { font-size: 18px; }
.why-card p { font-size: 14.5px; margin: 0; }

/* Product grid */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card {
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 26px;
  border: 1px solid transparent;
}
.product-card:hover { border-color: var(--blue); background: var(--white); box-shadow: var(--shadow-card); }
.product-card .tag {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--red); margin-bottom: 12px; display: block;
}
.product-card h3 { font-size: 17px; margin-bottom: 8px; }
.product-card p { font-size: 13.5px; margin-bottom: 0; }
.product-card--wide { grid-column: span 2; background: var(--navy-900); }
.product-card--wide .tag { color: #7FD1FF; }
.product-card--wide h3, .product-card--wide p { color: var(--white); }
.product-card--wide p { color: rgba(255,255,255,0.7); }

/* Case study */
.case-study {
  background: var(--navy-900);
  border-radius: var(--radius-lg);
  padding: 64px;
  color: var(--white);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.case-study .eyebrow { color: #7FD1FF; }
.case-study h2 { color: var(--white); font-size: 34px; }
.case-study p { color: rgba(255,255,255,0.72); font-size: 16px; }
.case-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.case-stat {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 22px;
}
.case-stat .num { font-family: var(--font-head); font-weight: 700; font-size: 26px; color: var(--white); }
.case-stat .label { font-size: 13px; color: rgba(255,255,255,0.65); margin-top: 4px; }

/* Trust strip */
.trust-strip {
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 32px 0;
}
.trust-strip .container {
  display: flex; align-items: center; justify-content: center; gap: 44px; flex-wrap: wrap;
}
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--gray-800); }
.trust-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }

/* Review badges */
.review-badges {
  display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap;
  padding: 28px 0;
}
.review-badge {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: box-shadow .15s ease, transform .15s ease;
  background: var(--white);
}
.review-badge:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.review-badge .stars { color: #F5A623; font-size: 13px; letter-spacing: 1px; }
.review-badge .score { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--ink); }
.review-badge .meta { display: flex; flex-direction: column; line-height: 1.3; }
.review-badge .platform { font-size: 12.5px; font-weight: 700; color: var(--gray-800); }
.review-badge .count { font-size: 11.5px; color: var(--gray-400); }

/* Industries strip */
.industry-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; }
.industry-chip {
  border: 1px solid var(--gray-200); border-radius: var(--radius-md);
  padding: 18px 12px; text-align: center; font-size: 13px; font-weight: 600; color: var(--gray-800);
}
.industry-chip:hover { border-color: var(--blue); color: var(--blue); }

/* Final CTA */
.final-cta {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 72px;
  text-align: center;
  color: var(--white);
}
.final-cta h2 { color: var(--white); font-size: 32px; }
.final-cta p { color: rgba(255,255,255,0.85); font-size: 17px; max-width: 520px; margin-left: auto; margin-right: auto; }
.final-cta .hero-actions { justify-content: center; }
.final-cta .btn--ghost-light:hover { background: rgba(255,255,255,0.1); }

/* Footer */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.7); padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 56px; }
.footer-grid h4 { color: var(--white); font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 18px; }
.footer-grid a { display: block; font-size: 14px; color: rgba(255,255,255,0.62); margin-bottom: 12px; }
.footer-grid a:hover { color: var(--white); }
.footer-brand img { height: 46px; margin-bottom: 16px; }
.footer-legal-row { display: flex; gap: 22px; font-size: 13px; color: rgba(255,255,255,0.5); }
.footer-legal-row a:hover { color: var(--white); }
.made-in-india { font-size: 12.5px; color: rgba(255,255,255,0.4); margin-top: 14px; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.5); max-width: 280px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: rgba(255,255,255,0.45);
}
.social-row { display: flex; gap: 14px; }
.social-row a {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: rgba(255,255,255,0.7);
}

/* Legal pages */
.legal-hero { background: var(--gray-100); padding: 64px 0 48px; text-align: center; }
.legal-hero h1 { font-size: 34px; margin-bottom: 8px; }
.legal-hero p { font-size: 14px; color: var(--gray-400); margin: 0; }
.legal-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 60px; padding: 64px 0 100px; align-items: start; }
.legal-toc { position: sticky; top: 110px; }
.legal-toc h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-400); margin-bottom: 14px; }
.legal-toc a { display: block; font-size: 13.5px; color: var(--gray-600); padding: 7px 0; border-left: 2px solid var(--gray-200); padding-left: 14px; }
.legal-toc a:hover { color: var(--blue); border-left-color: var(--blue); }
.legal-body h2 { font-size: 20px; margin-top: 2.2em; padding-top: 0.2em; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { font-size: 15px; color: var(--gray-800); line-height: 1.75; }
.legal-body strong { color: var(--ink); }
.legal-body table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 14px; }
.legal-body table td, .legal-body table th { border: 1px solid var(--gray-200); padding: 12px; text-align: left; }
.legal-body table th { background: var(--gray-100); }
.legal-note { background: var(--blue-50); border-radius: var(--radius-md); padding: 20px 24px; font-size: 14px; color: var(--gray-800); margin-bottom: 40px; }

@media (max-width: 980px) {
  .legal-wrap { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .hero-grid { grid-template-columns: 1fr; }
  .why-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card--wide { grid-column: span 2; }
  .case-study { grid-template-columns: 1fr; padding: 40px; }
  .industry-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }

  .nav-toggle { display: flex; order: 3; }
  .site-header .container { flex-wrap: wrap; height: auto; padding-top: 18px; padding-bottom: 18px; }
  .header-cta { order: 2; }

  .nav {
    display: none;
    width: 100%;
    order: 4;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 0 8px;
    margin-top: 16px;
    border-top: 1px solid var(--gray-200);
  }
  .nav.is-open { display: flex; }
  .nav a.nav-link { padding: 13px 4px; }

  .dropdown { width: 100%; }
  .dropdown > a.nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  .dropdown > a.nav-link::after {
    content: "+";
    font-size: 18px;
    color: var(--gray-400);
    font-weight: 400;
  }
  .dropdown.is-open > a.nav-link::after { content: "\2212"; }

  .dropdown-panel {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--gray-100);
    width: 100%;
    min-width: 0;
    margin: 2px 0 10px;
  }
  .dropdown-panel::before { content: none; }
  .dropdown:hover .dropdown-panel,
  .dropdown:focus-within .dropdown-panel { display: none; }
  .dropdown.is-open .dropdown-panel { display: grid; }
}

/* Demo / lead form */
.demo-layout { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 40px; max-width: 1040px; margin: 0 auto; align-items: start; }
.form-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-card); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--gray-800); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15px; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  background: var(--white); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.field.has-error input, .field.has-error textarea { border-color: var(--red); }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-consent { font-size: 12.5px; color: var(--gray-400); margin: 18px 0 16px; }
.form-consent a { color: var(--blue); text-decoration: underline; }
.form-status { margin: 14px 0 0; font-size: 14.5px; min-height: 20px; }
.form-status.is-success { color: #1a7f4b; font-weight: 600; }
.form-status.is-error { color: var(--red); font-weight: 600; }
.demo-side h3 { font-size: 20px; margin-bottom: 18px; }
.demo-steps { list-style: none; margin: 0 0 28px; padding: 0; }
.demo-steps li { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--gray-200); }
.demo-steps li:first-child { border-top: none; padding-top: 0; }
.demo-steps li > span { flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--blue-50); color: var(--blue); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.demo-steps p { margin: 2px 0 0; font-size: 13.5px; color: var(--gray-600); }
.demo-side-note { background: var(--gray-100); border-radius: var(--radius-md); padding: 18px 20px; font-size: 14px; }
.demo-side-note p { margin: 6px 0 0; font-size: 13.5px; }
.demo-side-note a { color: var(--blue); }
@media (max-width: 860px) {
  .demo-layout { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
}

/* Multi-select checkboxes and fieldset */
.field--checks { border: 0; padding: 0; margin: 0; min-width: 0; }
.field--checks legend { font-size: 13.5px; font-weight: 600; color: var(--gray-800); padding: 0; margin-bottom: 8px; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.check { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--gray-200, #dfe3ea); border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer; background: #fff; }
.check input { width: 16px; height: 16px; margin: 0; accent-color: var(--blue); flex: none; }
.check:has(input:checked) { border-color: var(--blue); background: rgba(0, 102, 179, 0.06); }
@media (max-width: 560px) { .check-grid { grid-template-columns: 1fr; } }
