/* ===========================================
   OEMup — Shared Stylesheet
   Manufacturing ERP for Indian SMEs
=========================================== */

/* ---------- RESET & VARIABLES ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #3fa1e7;
  --primary-dark: #2880c4;
  --primary-light: #e8f4fd;
  --secondary: #1e235f;
  --secondary-light: #2d3480;
  --accent: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --bg: #f8fafc;
  --bg-white: #fff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12);
  --radius: 12px;
  --radius-lg: 20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ---------- UTILITY ---------- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 640px;
}

.text-center .section-desc { margin: 0 auto; }

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .2s ease;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 14px rgba(63,161,231,.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(63,161,231,.4); }

.btn-secondary {
  background: var(--bg-white);
  color: var(--secondary);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.45);
}
.btn-outline-white:hover { background: rgba(255,255,255,.1); border-color: #fff; }

.btn-lg { padding: 15px 32px; font-size: 15px; border-radius: 12px; }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 8px; }

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #d97706);
  color: #fff;
  box-shadow: 0 4px 14px rgba(245,158,11,.3);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,158,11,.4); }

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226,232,240,.5);
  transition: box-shadow .3s;
}

.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.07); }

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--secondary);
}

.logo img {
  height: 38px;
  width: auto;
  display: block;
}

.logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  align-self: stretch;  /* stretch the ul to full navbar height so li can do the same */
}

.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 7px 12px;
  border-radius: 8px;
  transition: all .2s;
  position: relative;
}

.nav-links a:hover {
  color: var(--primary);
  background: var(--primary-light);
}

/* Active nav link: just color + weight, no background box */
.nav-links a.active {
  color: var(--primary);
  font-weight: 700;
  background: transparent;
}

/* Active underline indicator */
.nav-links li a.active::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.nav-links .has-dropdown {
  position: relative;
  align-self: stretch;   /* fills full navbar height — closes the hover gap */
  display: flex;
  align-items: center;
}

.nav-links .has-dropdown > a {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 100%;
}

.nav-links .has-dropdown > a::after {
  content: '';
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  display: inline-block;
  margin-top: 1px;
  flex-shrink: 0;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .2s ease;
  z-index: 1000;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.dropdown a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.dropdown-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.nav-cta { display: flex; align-items: center; gap: 8px; }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
}

/* ---------- BREADCRUMB ---------- */
.breadcrumb {
  padding: 16px 0;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; }

/* ---------- PAGE HEADER ---------- */
.page-header {
  padding: 100px 0 50px;
  background: linear-gradient(160deg, #f0f7ff 0%, #fff 45%, #f5f3ff 100%);
}

.page-header .section-title { max-width: 700px; }
.page-header .section-desc { max-width: 560px; }

/* ---------- FORM STYLES ---------- */
.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-white);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(63,161,231,.12);
}

.form-textarea { resize: vertical; min-height: 100px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}

.form-checkbox input {
  width: 16px; height: 16px;
  accent-color: var(--primary);
  margin-top: 2px;
  flex-shrink: 0;
}

.form-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ---------- CARDS ---------- */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all .3s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.card-icon {
  width: 50px; height: 50px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---------- FEATURE LIST ITEMS ---------- */
.feature-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 6px;
}

.feature-check::before {
  content: '✓';
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 10px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ---------- STATS (light, card-grid look) ---------- */
.stats-bar {
  background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 50%, #f5f3ff 100%);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.stats-bar::before {
  content: '';
  position: absolute; top: -160px; left: -120px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(63,161,231,.14) 0%, transparent 65%);
  border-radius: 50%; pointer-events: none;
}
.stats-bar::after {
  content: '';
  position: absolute; bottom: -160px; right: -120px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(167,139,250,.14) 0%, transparent 65%);
  border-radius: 50%; pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative; z-index: 1;
}

.stat-item {
  text-align: center;
  padding: 30px 20px;
  background: #fff;
  border: 1px solid rgba(63,161,231,.12);
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, .04);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  position: relative;
  overflow: hidden;
}
.stat-item::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), #a78bfa);
  opacity: 0; transition: opacity .3s ease;
}
.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(63,161,231, .14);
  border-color: rgba(63,161,231,.35);
}
.stat-item:hover::before { opacity: 1; }

.stat-number {
  font-size: 44px; font-weight: 900; line-height: 1; margin-bottom: 8px;
  letter-spacing: -.03em;
  background: linear-gradient(135deg, var(--primary) 0%, #6366f1 60%, #a78bfa 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: .08em;
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-number { font-size: 36px; }
}

/* ---------- TESTIMONIALS ---------- */
.testi-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.testi-stars { color: var(--accent); font-size: 16px; margin-bottom: 14px; letter-spacing: 2px; }

.testi-quote {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 20px;
}

.testi-author { display: flex; align-items: center; gap: 12px; }

.testi-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.testi-name { font-size: 14px; font-weight: 700; }
.testi-role { font-size: 12px; color: var(--text-muted); }

/* ---------- CTA BANNER (richer mesh gradient + animated glows) ---------- */
.cta-banner {
  padding: 96px 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(99,102,241,.32) 0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 90% 100%, rgba(63,161,231,.30) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(167,139,250,.18) 0%, transparent 60%),
    linear-gradient(135deg, #06091e 0%, #0d1247 40%, #14195a 70%, #1a3a6b 100%);
  position: relative;
  overflow: hidden;
}

/* dot grid texture */
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1.5px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* animated floating orb */
.cta-banner::after {
  content: '';
  position: absolute;
  top: -160px; right: -160px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(63,161,231,.30) 0%, rgba(167,139,250,.14) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: cta-float 9s ease-in-out infinite;
}
@keyframes cta-float {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: .9; }
  50%      { transform: translate(-30px, 20px) scale(1.08); opacity: 1; }
}

.cta-banner .cta-inner { position: relative; z-index: 1; text-align: center; }

.cta-banner h2 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 900; color: #fff;
  margin-bottom: 14px; line-height: 1.15;
  letter-spacing: -.025em;
  text-shadow: 0 2px 30px rgba(99,102,241,.28);
}
.cta-banner p { font-size: 16px; color: rgba(255,255,255,.7); max-width: 520px; margin: 0 auto 32px; line-height: 1.7; }

.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* gradient-ring effect on the right-hand price card */
.cta-banner .cta-inner > div:nth-child(2) {
  position: relative;
}
.cta-banner .cta-inner > div:nth-child(2)::before {
  content: '';
  position: absolute; inset: -1.5px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(96,165,250,.55), rgba(167,139,250,.35), rgba(96,165,250,0));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  padding: 1.5px; pointer-events: none;
}

/* ---------- FOOTER ---------- */
.footer {
  background: #080b1f;
  padding: 72px 0 28px;
  color: rgba(255,255,255,.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand-desc { font-size: 13.5px; line-height: 1.75; color: rgba(255,255,255,.45); margin-top: 12px; max-width: 260px; }

.footer-col-title { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.85); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }

.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 13.5px; color: rgba(255,255,255,.45); transition: color .2s; }
.footer-links a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
}

.footer-badges { display: flex; gap: 8px; }
.footer-badge { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 6px; padding: 4px 10px; font-size: 11px; font-weight: 600; color: rgba(255,255,255,.45); }

/* ---------- ANIMATIONS ---------- */
.will-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
.will-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeInUp .6s ease both; }
.fade-in-d1 { animation-delay: .1s; }
.fade-in-d2 { animation-delay: .2s; }
.fade-in-d3 { animation-delay: .3s; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-banner .cta-inner { grid-template-columns: 1fr !important; }
}

@media (max-width: 768px) {
  .cta-banner .cta-inner { text-align: center !important; }
  .cta-banner .cta-inner > div:first-child p { margin: 0 auto 32px !important; }
  .cta-banner .cta-inner > div:first-child > div:nth-child(4) { justify-content: center; }
  .cta-banner .cta-inner > div:first-child > div:nth-child(5) { justify-content: center; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ---------- SUBSCRIBE SUCCESS STATE ---------- */
.subscribe-success {
  padding: 20px 0;
  text-align: center;
  color: #fff;
  animation: fadeInUp .4s ease both;
}
.sub-success-icon {
  font-size: 48px;
  margin-bottom: 12px;
  display: block;
}
.subscribe-success h4 {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.subscribe-success p {
  font-size: 14px;
  color: rgba(255,255,255,.7);
  line-height: 1.65;
  margin-bottom: 16px;
}
.sub-success-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.sub-success-badges span {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.85);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
}

/* ---------- HOMEPAGE BLOG GRID RESPONSIVE ---------- */
@media (max-width: 900px) {
  .index-blog-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 600px) {
  .index-blog-grid { grid-template-columns: 1fr !important; }
}

/* ============================================================
   COOKIE CONSENT BANNER  (id: #oemup-cookie-banner)
   ============================================================ */
#oemup-cookie-banner {
  position: fixed;
  z-index: 9999;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 22px 50px rgba(15, 23, 42, .18), 0 6px 18px rgba(15, 23, 42, .08);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px 16px;
  align-items: start;
  font-family: 'Inter', sans-serif;
  transform: translateY(20px);
  opacity: 0;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .35s;
}
#oemup-cookie-banner.show { transform: translateY(0); opacity: 1; }
#oemup-cookie-banner .ock-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #fef3c7, #fcd34d);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
#oemup-cookie-banner .ock-body strong {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: -.01em;
}
#oemup-cookie-banner .ock-body p {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}
#oemup-cookie-banner .ock-body a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(63, 161, 231, .35);
}
#oemup-cookie-banner .ock-body a:hover { border-bottom-color: var(--primary); }
#oemup-cookie-banner .ock-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
#oemup-cookie-banner .ock-actions button {
  flex: 1;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
#oemup-cookie-banner .ock-reject {
  background: #f1f5f9;
  color: var(--text-primary);
}
#oemup-cookie-banner .ock-reject:hover {
  background: #e2e8f0;
}
#oemup-cookie-banner .ock-accept {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 6px 18px rgba(63, 161, 231, .32);
}
#oemup-cookie-banner .ock-accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(63, 161, 231, .42);
}
@media (max-width: 480px) {
  #oemup-cookie-banner { padding: 14px 16px; bottom: 12px; left: 12px; right: 12px; border-radius: 14px; }
  #oemup-cookie-banner .ock-actions { flex-direction: column; }
}
