/* ===========================================================
   OMS Enterprise — Landing Page Stylesheet
   Adapted structure/spacing from the Fleetscaler 360 marketing
   site, re-themed to the OMS purple/cyan brand.
   Sections: Variables, Buttons, Header/Nav, Hero, Stats,
   Modules, Pricing, CTA, Footer, Responsive.
   =========================================================== */

:root {
  --navy: #12123A;
  --deep: #1B1B4D;
  --primary: #4F46E5;
  --primary-dark: #3730A3;
  --primary-bright: #6D64F0;
  --primary-pale: #EEF2FF;
  --primary-pale-2: #E0E1FC;
  --primary-border: #D6D3FA;
  --secondary: #06B6D4;
  --ink: #0F1B33;
  --ink-soft: #4B5A78;
  --grey-bg: #F7F8FC;
  --white: #FFFFFF;
  --footer-bg: #12123A;
  --footer-text: #B7B9E8;
  --radius-card: 14px;
  --shadow-card: 0 4px 18px rgba(15, 23, 77, 0.07);
  --container-width: 1180px;
}

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

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }

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

h1, h2, h3, h4 { margin: 0; font-weight: 700; color: var(--ink); }
p { margin: 0; }

:focus-visible { outline: 2.5px solid var(--primary-bright); outline-offset: 2px; }

/* ===================== BUTTONS ===================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  font-family: inherit;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: #fff; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-pale); }

.btn-primary-sm, .btn-outline-sm {
  padding: 9px 16px; font-size: 0.85rem; border-radius: 7px;
  font-weight: 600; display: inline-flex; align-items: center; gap: 6px;
}
.btn-outline-sm { border: 1.4px solid var(--primary); color: var(--primary); background: #fff; }
.btn-outline-sm:hover { background: var(--primary-pale); }
.btn-primary-sm { background: var(--primary); color: #fff; }
.btn-primary-sm:hover { background: var(--primary-dark); }

/* ===================== HEADER ===================== */

.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid #EEF0F8; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px 0; }

.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; font-weight: 800; }
.logo-badge {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; font-size: 16px; line-height: 1.25; }
.logo-text small { font-size: 11px; font-weight: 500; color: var(--ink-soft); }

.main-nav { display: flex; align-items: center; gap: 28px; font-size: 0.93rem; font-weight: 500; color: var(--ink); }
.main-nav a { padding: 4px 0; position: relative; background: none; border: none; cursor: pointer; font-size: inherit; color: inherit; font-weight: inherit; }
.main-nav a:hover { color: var(--primary); }
.main-nav a.active { color: var(--primary); font-weight: 600; }
.main-nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -16px; height: 2px; background: var(--primary);
}

.nav-item { position: relative; display: flex; align-items: center; }
.nav-drop-toggle {
  display: inline-flex; align-items: center; gap: 5px; background: none; border: none;
  padding: 4px 0; font: inherit; color: inherit; cursor: pointer;
}
.nav-drop-toggle:hover { color: var(--primary); }
.nav-drop-toggle .chev { transition: transform 0.18s ease; flex-shrink: 0; }

.nav-dropdown {
  display: none; position: absolute; top: calc(100% + 16px); left: -16px; min-width: 240px;
  background: #fff; border-radius: 12px; box-shadow: 0 14px 34px rgba(15, 23, 77, 0.16);
  border: 1px solid #EEF0F8; padding: 10px; flex-direction: column; gap: 2px; z-index: 120;
}
.nav-dropdown a { padding: 9px 12px; border-radius: 8px; font-size: 0.88rem; font-weight: 500; color: var(--ink); }
.nav-dropdown a:hover { background: var(--primary-pale); color: var(--primary); }
.nav-dropdown-viewall {
  margin-top: 4px; border-top: 1px solid #EEF0F8; padding-top: 10px !important;
  color: var(--primary) !important; font-weight: 600 !important;
}

@media (min-width: 901px) {
  .nav-item.has-dropdown:hover .nav-dropdown,
  .nav-item.has-dropdown .nav-drop-toggle[aria-expanded="true"] + .nav-dropdown { display: flex; }
  .nav-item.has-dropdown:hover .chev,
  .nav-drop-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
}

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 38px; height: 38px; padding: 0; border: 1px solid var(--primary-border);
  border-radius: 8px; background: #fff; cursor: pointer; flex-shrink: 0;
}
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 0 auto; background: var(--ink); transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-backdrop { display: none; position: fixed; inset: 0; background: rgba(10, 12, 40, 0.4); z-index: 90; }
body.nav-locked { overflow: hidden; }

/* ===================== HERO ===================== */

.hero { background: linear-gradient(180deg, #F4F5FF 0%, #FFFFFF 100%); padding: 60px 0 20px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; align-items: start; gap: 40px; }
.hero-art { margin-top: 6px; }
.hero h1 { font-size: 2.6rem; line-height: 1.18; letter-spacing: -0.5px; color: var(--ink); }
.hero h1 .accent { color: var(--primary); }
.hero-desc { margin-top: 18px; font-size: 1.02rem; line-height: 1.6; color: var(--ink-soft); max-width: 480px; }
.hero-ctas { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.hero-features { list-style: none; display: flex; gap: 30px; margin: 38px 0 0; padding: 0; flex-wrap: wrap; }
.hero-features li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; font-size: 0.78rem; color: var(--ink-soft); font-weight: 600; line-height: 1.3; max-width: 70px; }
.feature-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--primary-pale); display: flex; align-items: center; justify-content: center; }

.hero-art { position: relative; }
.hero-illustration { width: 100%; height: auto; filter: drop-shadow(0 20px 40px rgba(79, 70, 229, 0.16)); }

/* ===================== STATS BAR ===================== */

.stats-bar {
  background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 60%, var(--secondary) 130%);
  border-radius: 18px; margin: 0 auto -54px; max-width: var(--container-width);
  position: relative; z-index: 5; box-shadow: 0 18px 40px rgba(79, 70, 229, 0.25);
}
.stats-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: 26px 36px; gap: 20px; }
.stat { display: flex; align-items: center; gap: 12px; color: #fff; }
.stat-icon { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.14); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat-text { display: flex; flex-direction: column; line-height: 1.3; }
.stat-text strong { font-size: 1.2rem; font-weight: 700; }
.stat-text small { font-size: 0.76rem; color: #DCE0FF; }

/* ===================== MODULES ===================== */

.products-section { background: var(--grey-bg); padding: 72px 0 10px; }
.section-head { text-align: center; max-width: 560px; margin: 0 auto 46px; }
.eyebrow {
  display: inline-block; background: var(--primary); color: #fff; font-size: 0.7rem;
  font-weight: 700; letter-spacing: 1px; padding: 6px 16px; border-radius: 20px; margin-bottom: 16px;
}
.section-head h2 { font-size: 1.9rem; margin-bottom: 10px; }
.section-head p { color: var(--ink-soft); font-size: 0.96rem; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card { background: #fff; border-radius: var(--radius-card); padding: 20px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; position: relative; }
.product-art.icon-thumb {
  width: 56px; height: 56px; border-radius: 12px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
}
.product-card h3 { font-size: 1.02rem; line-height: 1.3; margin-bottom: 8px; }
.product-card p { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.55; flex-grow: 1; }

.learn-more { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 600; font-size: 0.88rem; margin-top: 16px; background: none; border: none; padding: 0; cursor: pointer; font-family: inherit; }
.learn-more svg { transition: transform 0.15s ease; }
.learn-more:hover svg { transform: translateX(3px); }

.feature-panel {
  grid-column: 1 / -1; background: #fff; border-radius: var(--radius-card); box-shadow: var(--shadow-card);
  display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; padding: 26px 30px; gap: 20px;
}
.feature-item { display: flex; align-items: center; gap: 12px; }
.feature-panel-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--primary-pale); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feature-item span:last-child { display: flex; flex-direction: column; gap: 3px; }
.feature-item strong { font-size: 0.9rem; font-weight: 700; }
.feature-item small { font-size: 0.78rem; color: var(--ink-soft); }

/* ===================== PRICING ===================== */

.pricing-section { padding: 90px 0 20px; }
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.plan-card { background: #fff; border: 1px solid #EEF0F8; border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 28px 24px; display: flex; flex-direction: column; }
.plan-card.featured { border: 2px solid var(--primary); position: relative; transform: translateY(-8px); }
.plan-card.featured::before {
  content: 'Most Popular'; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; padding: 5px 14px; border-radius: 999px;
}
.plan-name { font-weight: 700; font-size: 15px; color: var(--ink-soft); }
.plan-price { font-size: 32px; font-weight: 800; margin: 10px 0 2px; color: var(--ink); }
.plan-price span { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.plan-list { list-style: none; padding: 0; margin: 22px 0; flex: 1; }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-soft); margin-bottom: 12px; }

/* ===================== CTA ===================== */

.cta-section { padding: 70px 0; }
.cta-band {
  background: linear-gradient(120deg, var(--navy), var(--deep)); border-radius: 22px; padding: 52px 46px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; color: #fff; flex-wrap: wrap;
}
.cta-band h2 { font-size: 1.6rem; font-weight: 800; margin: 0 0 8px; color: #fff; }
.cta-band p { color: rgba(255,255,255,.75); margin: 0; font-size: 14.5px; }

/* ===================== MODULE DETAILS MODAL ===================== */

.modal-overlay {
  position: fixed; inset: 0; background: rgba(15, 27, 51, 0.55); z-index: 200;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }

.product-modal {
  background: #fff; border-radius: 18px; max-width: 520px; width: 100%; max-height: 86vh;
  overflow-y: auto; position: relative; box-shadow: 0 30px 70px rgba(15, 23, 66, 0.35);
  animation: modal-in 0.22s ease;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--grey-bg); border: none; cursor: pointer; display: flex; align-items: center;
  justify-content: center; font-size: 1.1rem; color: var(--ink-soft); z-index: 2;
}
.modal-close:hover { background: var(--primary-pale); color: var(--primary); }

.modal-art { background: var(--grey-bg); padding: 30px 30px 10px; border-radius: 18px 18px 0 0; display: flex; align-items: center; justify-content: center; }
.modal-art .icon-thumb-lg {
  width: 84px; height: 84px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
}

.modal-body { padding: 26px 30px 32px; }
.modal-body h3 { font-size: 1.25rem; margin-bottom: 10px; }
.modal-body p.modal-desc { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.6; margin-bottom: 18px; }

.modal-feature-list { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 10px; }
.modal-feature-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; color: var(--ink); }
.modal-feature-list svg { flex-shrink: 0; margin-top: 2px; }

.modal-actions { display: flex; gap: 12px; flex-wrap: wrap; }
body.modal-locked { overflow: hidden; }

/* ===================== PAGE HEADER (sub-pages) ===================== */

.page-header {
  background: linear-gradient(120deg, var(--navy) 0%, var(--primary) 130%);
  padding: 64px 0 56px; color: #fff;
}
.page-header .eyebrow { background: rgba(255,255,255,0.16); }
.page-header h1 { color: #fff; font-size: 2.1rem; margin-top: 14px; }
.page-header p { color: #D9D8FF; margin-top: 12px; max-width: 560px; font-size: 0.98rem; line-height: 1.6; }

/* ===================== PRICING (live) STATES ===================== */

.pricing-loading, .pricing-empty {
  grid-column: 1 / -1; text-align: center; color: var(--ink-soft); font-size: 0.95rem; padding: 40px 0;
}
.pricing-empty a { color: var(--primary); font-weight: 600; }

/* ===================== ABOUT PAGE ===================== */

.about-section { padding: 70px 0; }
.about-columns { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: start; }
.about-columns h2 { font-size: 1.7rem; margin: 12px 0 16px; }
.about-columns p { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.7; margin-bottom: 16px; }
.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.about-stat {
  background: #fff; border: 1px solid #EEF0F8; border-radius: var(--radius-card);
  box-shadow: var(--shadow-card); padding: 24px 20px; text-align: center;
}
.about-stat strong { display: block; font-size: 1.6rem; font-weight: 800; color: var(--primary); }
.about-stat span { display: block; margin-top: 6px; font-size: 0.82rem; color: var(--ink-soft); font-weight: 600; }
.values-grid .product-card { text-align: left; }

/* ===================== FOOTER ===================== */

.site-footer { background: var(--footer-bg); color: var(--footer-text); padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 30px; padding-bottom: 50px; }
.footer-brand p { margin-top: 18px; font-size: 0.86rem; line-height: 1.7; color: #9EA2E0; max-width: 320px; }
.logo-footer { margin-bottom: 4px; }
.social-row { display: flex; gap: 12px; margin-top: 22px; }
.social-row a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: #fff; transition: background 0.18s ease; }
.social-row a:hover { background: var(--primary); }

.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 18px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; font-size: 0.86rem; }
.footer-col a { color: #B7B9E8; cursor: pointer; }
.footer-col a:hover { color: #fff; }
.footer-contact p { display: flex; align-items: flex-start; gap: 8px; color: #B7B9E8; line-height: 1.5; }
.footer-contact a { color: #B7B9E8; }
.footer-contact a:hover { color: #fff; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; text-align: center; font-size: 0.82rem; color: #8285C4; }

/* ===========================================================
   RESPONSIVE
   =========================================================== */

@media (max-width: 1080px) {
  .main-nav { gap: 20px; font-size: 0.88rem; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-panel { grid-column: 1 / -1; grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .about-columns { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-actions { display: none; }
  .nav-toggle { display: flex; }

  .main-nav.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: fixed; top: 0; right: 0; height: 100vh; width: min(78vw, 320px);
    background: #fff; padding: 84px 28px 28px; box-shadow: -12px 0 32px rgba(15, 23, 77, 0.14);
    z-index: 100; font-size: 1rem; overflow-y: auto;
  }
  .main-nav.open a { padding: 14px 0; border-bottom: 1px solid #EEF0F8; }
  .main-nav.open a.active::after { display: none; }

  .nav-item.has-dropdown { flex-direction: column; align-items: stretch; }
  .nav-drop-toggle { width: 100%; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid #EEF0F8; }
  .nav-dropdown { position: static; box-shadow: none; border: none; border-radius: 0; padding: 0 0 6px 14px; min-width: 0; display: none; }
  .nav-dropdown.open { display: flex; }
  .nav-dropdown a { border-bottom: none !important; padding: 10px 12px; }

  body.nav-locked .nav-backdrop { display: block; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 70px; }
  .hero h1 { font-size: 2.15rem; }
  .hero-art { order: -1; max-width: 480px; margin: 0 auto 8px; }

  .stats-inner { justify-content: center; }
  .stat { width: 45%; min-width: 200px; justify-content: center; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .products-section { padding: 90px 0 50px; }
  .product-grid { grid-template-columns: 1fr; gap: 16px; }
  .feature-panel { grid-column: 1 / -1; grid-template-columns: 1fr; padding: 22px; gap: 18px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .plan-card.featured { transform: none; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-brand { grid-column: span 1; }

  .hero-features { gap: 14px; justify-content: center; }
  .hero-features li { max-width: 84px; }

  .stats-bar { border-radius: 14px; margin-bottom: -40px; }
  .stats-inner { padding: 20px; gap: 16px; }
  .stat { width: 100%; min-width: 0; justify-content: flex-start; }

  .cta-band { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.65rem; }
  .hero-desc { font-size: 0.94rem; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .section-head h2 { font-size: 1.5rem; }
  .main-nav.open { width: 86vw; padding: 76px 22px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
