/* ====== TOKENS ====== */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-light: #f6f8fb;
  --bg-dark: #0a1226;
  --bg-dark-2: #0f1c3d;
  --text: #0c1730;
  --text-muted: #5b6478;
  --text-on-dark: #ffffff;
  --text-on-dark-muted: rgba(255, 255, 255, 0.72);
  --accent: #2563eb;
  --accent-2: #6366f1;
  --accent-glow: rgba(99, 102, 241, 0.35);
  --border: rgba(12, 23, 48, 0.08);
  --border-dark: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 2px 8px rgba(12, 23, 48, 0.06);
  --shadow-md: 0 8px 30px rgba(12, 23, 48, 0.08);
  --shadow-lg: 0 24px 60px rgba(12, 23, 48, 0.14);
  --gradient-accent: linear-gradient(135deg, #4f46e5 0%, #2563eb 60%, #06b6d4 100%);
  --gradient-hero: radial-gradient(1200px 600px at 80% -10%, rgba(99, 102, 241, 0.18), transparent 60%),
                   radial-gradient(900px 500px at -10% 20%, rgba(37, 99, 235, 0.14), transparent 60%),
                   linear-gradient(180deg, #ffffff 0%, #f4f7fc 100%);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --container: 1180px;
}

/* ====== RESET ====== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ====== TYPOGRAPHY ====== */
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--accent); margin-bottom: 14px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
}
.eyebrow-light {
  color: #93c5fd;
  background: rgba(147, 197, 253, 0.1);
}
.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ====== BUTTONS ====== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: 10px; font-weight: 600;
  font-size: 0.95rem; transition: transform .18s, box-shadow .18s, background .2s;
  cursor: pointer; border: 1px solid transparent; white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-accent); color: #fff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(37, 99, 235, 0.4); }
.btn-ghost {
  background: transparent; color: var(--text);
  border-color: rgba(12, 23, 48, 0.18);
}
.btn-ghost:hover { background: rgba(12, 23, 48, 0.04); }
.btn-lg { padding: 16px 32px; font-size: 1rem; }

/* ====== NAVBAR ====== */
.navbar {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(20px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 24px rgba(12, 23, 48, 0.06);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 40px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-line { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; color: var(--text); }
.brand-line.accent { color: var(--accent); }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 0.92rem; font-weight: 500; color: var(--text-muted);
  transition: color .15s; padding: 8px 0; position: relative;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta { display: inline-flex; }
.nav-hamburger {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 6px;
}
.nav-hamburger span {
  width: 24px; height: 2px; background: var(--text); border-radius: 2px;
}

/* ====== HERO ====== */
.hero {
  padding: 120px clamp(20px, 4vw, 48px) 56px;
  background: var(--gradient-hero);
  position: relative; overflow: hidden;
}
.hero-grid {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center;
}
.hero-copy h1 { margin: 8px 0 18px; }
.hero-copy .lead { color: var(--text-muted); font-size: 1.1rem; max-width: 540px; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 18px 28px; font-size: 0.88rem; color: var(--text-muted); }
.hero-meta li { display: flex; align-items: center; gap: 8px; }
.hero-meta .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; }
.hero-image {
  position: relative; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-image-glow {
  position: absolute; inset: -40px; pointer-events: none; z-index: -1;
  background: radial-gradient(closest-side, var(--accent-glow), transparent);
}

/* ====== SECTIONS ====== */
.section {
  padding: 64px clamp(20px, 4vw, 48px);
}
/* Tighten the gap between Why MHXP and the contact form */
#why { padding-bottom: 32px; }
#contact { padding-top: 32px; }
.section-light { background: var(--bg-light); }
.section-white { background: var(--bg); }
.section-dark {
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
  color: var(--text-on-dark);
}
/* Light accent-tinted wash — distinct from white/grey, still readable on dark text */
.section-accent {
  background:
    radial-gradient(900px 500px at 90% -10%, rgba(99, 102, 241, 0.18), transparent 60%),
    radial-gradient(700px 400px at -10% 10%, rgba(37, 99, 235, 0.12), transparent 60%),
    linear-gradient(180deg, #eef2ff 0%, #f4f7fc 100%);
}
.section-dark .scenario { color: var(--text-on-dark-muted); }
.section-header {
  max-width: 760px; margin: 0 auto 40px; text-align: center;
}
.section-header h2 { margin-bottom: 14px; }
.section-header .scenario { color: var(--text-muted); font-size: 1.05rem; }
.section-dark h2 { color: var(--text-on-dark); }

/* ====== ABOUT ====== */
.about-grid {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center;
}
.about-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4 / 3; }
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-copy h2 { margin-bottom: 18px; }
.about-copy p { color: var(--text-muted); margin-bottom: 16px; font-size: 1.02rem; }
.about-copy .callout {
  background: rgba(37, 99, 235, 0.06);
  border-left: 3px solid var(--accent);
  padding: 14px 18px; border-radius: 8px;
  color: var(--text); font-weight: 500;
}

/* ====== CARDS ====== */
.cards { max-width: var(--container); margin: 0 auto; display: grid; gap: 28px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); max-width: 880px; }
.cards-1 { grid-template-columns: 1fr; max-width: 980px; }
.card {
  background: #fff; border-radius: var(--radius-md);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  overflow: hidden; transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-img { aspect-ratio: 16 / 10; overflow: hidden; background: #eef1f6; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 22px 22px 26px; }
.card-body h3 { margin-bottom: 8px; }
.card-body p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 14px; }
.tag {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(37, 99, 235, 0.1); color: var(--accent);
  letter-spacing: 0.04em;
}
.card-horizontal { flex-direction: row; }
.card-horizontal .card-img { width: 44%; aspect-ratio: auto; }
.card-horizontal .card-body { flex: 1; padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.section-dark .card { background: rgba(255, 255, 255, 0.04); border-color: var(--border-dark); }
.section-dark .card h3 { color: var(--text-on-dark); }
.section-dark .card p { color: var(--text-on-dark-muted); }
.section-dark .card-img { background: rgba(255,255,255,0.05); }

/* ====== PILLARS (Solutions Overview — Big Square Buttons) ====== */
.pillars {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.pillar {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1 / 1;
  padding: 24px;
  background: var(--gradient-accent);
  color: #fff;
  border-radius: 24px;
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.28),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.pillar::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 24px;
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(255, 255, 255, 0.18), transparent 55%),
    radial-gradient(80% 80% at 0% 100%, rgba(0, 0, 0, 0.15), transparent 55%);
  pointer-events: none;
}
.pillar:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 24px 48px rgba(37, 99, 235, 0.38),
              inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.pillar-name {
  position: relative;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1;
  color: #fff;
  text-shadow: 0 2px 18px rgba(12, 23, 48, 0.18);
}

/* Tooltip — surfaces the tagline on hover (sits below the button) */
.pillar[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute; bottom: -8px; left: 50%;
  transform: translate(-50%, 8px);
  white-space: nowrap;
  padding: 9px 16px; border-radius: 999px;
  background: #0c1730; color: #fff;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em;
  box-shadow: 0 12px 28px rgba(12, 23, 48, 0.28);
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s, bottom .2s;
  z-index: 5;
}
.pillar[data-tooltip]:hover::after,
.pillar[data-tooltip]:focus-visible::after {
  opacity: 1; bottom: -42px; transform: translate(-50%, 0);
}

/* ====== WHY ====== */
.why-grid {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.why-card {
  padding: 32px 24px; border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.15);
  backdrop-filter: blur(6px);
  text-align: left; transition: transform .25s, background .25s, box-shadow .25s;
}
.why-card:hover {
  transform: translateY(-4px);
  background: #fff;
  box-shadow: 0 14px 36px rgba(37, 99, 235, 0.12);
}
.why-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--gradient-accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 8px 18px rgba(99, 102, 241, 0.28);
}
.why-card h3 { color: var(--text); margin-bottom: 8px; font-size: 1.08rem; }
.why-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Stat-style heading: big bold number + label */
.why-stat {
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: 14px; font-weight: 700;
}
.why-stat-num {
  font-size: clamp(2.6rem, 4.2vw, 3.6rem);
  font-weight: 800; line-height: 1; letter-spacing: -0.03em;
  background: var(--gradient-accent);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.why-stat-label {
  font-size: 1.15rem; font-weight: 600;
  color: var(--text); letter-spacing: -0.01em;
}

.multi-device {
  max-width: 760px; margin: 48px auto 0; text-align: center;
  padding: 32px; border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(99, 102, 241, 0.2);
  backdrop-filter: blur(6px);
}
.multi-device h3 { color: var(--text); font-size: 1.4rem; margin-bottom: 10px; }
.multi-device p { color: var(--text-muted); }

/* ====== CUSTOMERS / LOGO CAROUSEL ====== */
.logo-track-wrap {
  max-width: var(--container); margin: 0 auto;
  overflow: hidden; position: relative;
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.logo-track {
  display: flex; gap: 21px; align-items: center;
  width: max-content;
  animation: scroll-logos 40s linear infinite;
}
.logo-track:hover { animation-play-state: paused; }
.logo-item {
  flex-shrink: 0; height: 140px; min-width: 200px;
  display: flex; align-items: center; justify-content: center;
}
.logo-item img {
  max-height: 100%; max-width: 320px; width: auto;
  transition: transform .25s;
}
.logo-item img:hover { transform: scale(1.05); }
/* Logos with their own explicit max sizes (already balanced — don't grow with the default bump) */
.logo-item--sanjeevini img { max-height: 100px; max-width: 280px; }
.logo-item--m3m img        { max-height: 116px; max-width: 286px; }
.logo-item--casagrand img  { max-height: 89px;  max-width: 347px; }
@keyframes scroll-logos {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ====== CONTACT (FORM) ====== */
.contact-grid {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; border-radius: var(--radius-lg); overflow: hidden;
  background: #fff; box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.contact-image-wrap {
  position: relative; overflow: hidden;
  min-height: 480px;
}
.contact-image-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0;
}
.contact-badge {
  position: absolute; left: 22px; bottom: 22px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(12, 23, 48, 0.78);
  backdrop-filter: blur(6px);
  color: #fff; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.contact-badge svg { color: #93c5fd; flex-shrink: 0; }
.contact-form-panel {
  padding: 44px clamp(28px, 4vw, 56px);
  display: flex; flex-direction: column; gap: 18px;
  background: #fff;
}
.contact-form-panel h2 {
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  font-weight: 700; line-height: 1.2; margin-bottom: 8px;
  color: var(--text);
}
.form-label {
  font-size: 1.05rem; font-weight: 600; color: var(--text);
  border-bottom: 1px solid var(--border); padding-bottom: 10px;
  margin-bottom: 4px;
}
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label {
  font-size: 0.9rem; font-weight: 600; color: var(--text);
}
.form-row label .req { color: #d97706; margin-left: 2px; }
.form-row label .opt { color: var(--text-muted); font-weight: 500; font-size: 0.78rem; margin-left: 4px; }
.form-row input {
  font: inherit; font-size: 0.98rem; color: var(--text);
  padding: 10px 0; background: transparent;
  border: none; border-bottom: 1px solid rgba(12, 23, 48, 0.15);
  outline: none; transition: border-color .2s;
}
.form-row input::placeholder { color: rgba(91, 100, 120, 0.55); }
.form-row input:focus { border-bottom-color: var(--accent); }
.form-submit {
  margin-top: 12px; padding: 16px 24px;
  background: #0c1730; color: #fff; border: none;
  border-radius: 10px; cursor: pointer;
  font: inherit; font-size: 0.98rem; font-weight: 600;
  letter-spacing: 0.02em;
  transition: background .2s, transform .15s, box-shadow .15s;
  box-shadow: 0 6px 18px rgba(12, 23, 48, 0.18);
}
.form-submit:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}
/* Success state — after the form is submitted successfully */
.form-submit.sent,
.form-submit.sent:hover {
  background: #16a34a; /* green-600 */
  cursor: default; transform: none;
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.32);
}
.form-note {
  margin-top: 6px; font-size: 0.85rem; color: var(--text-muted);
}
.form-note-error { color: #b91c1c; }
/* Honeypot — visually hidden but still accessible to bots that auto-fill labelled fields */
.form-hp {
  position: absolute; left: -10000px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

/* ====== FOOTER ====== */
.footer {
  background: #fff;
  padding: 48px clamp(20px, 4vw, 48px);
  border-top: 1px solid var(--border);
  text-align: center; color: var(--text-muted);
}
.footer-inner { max-width: var(--container); margin: 0 auto; }
.footer-logo { height: 80px; margin: 0 auto 14px; }
.footer-tagline { font-size: 0.95rem; margin-bottom: 8px; color: var(--text); font-weight: 500; }
.footer-tagline a { color: var(--accent); text-decoration: none; border-bottom: 1px dashed rgba(37, 99, 235, 0.4); transition: color .15s, border-color .15s; }
.footer-tagline a:hover { color: var(--accent-2); border-bottom-color: var(--accent-2); }
.footer-copy { font-size: 0.82rem; color: var(--text-muted); }

/* ====== ANIMATIONS ====== */
.fade { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.fade.in { opacity: 1; transform: translateY(0); }

/* ====== RESPONSIVE ====== */
@media (max-width: 980px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-image-wrap { min-height: 280px; }
  .hero-grid, .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-image { aspect-ratio: 16 / 10; }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; background: #fff;
    padding: 20px; gap: 16px; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .hero { padding-top: 110px; }
  .section { padding: 48px clamp(20px, 4vw, 48px); }
  .cards-3, .cards-2 { grid-template-columns: 1fr; }
  .card-horizontal { flex-direction: column; }
  .card-horizontal .card-img { width: 100%; aspect-ratio: 16 / 10; }
  .why-grid { grid-template-columns: 1fr; }
}
