/* ============================================================
   MM Systems – Stylesheet
   Primary: #EA580C (orange)
   Font: Inter (Google Fonts)
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --orange: #2B7FE0;
  --orange-dark: #1A65C0;
  --orange-light: #EFF6FF;
  --navy: #0F1E36;
  --navy-mid: #1A2F4E;
  --text: #1E293B;
  --text-muted: #64748B;
  --bg: #FFFFFF;
  --bg-alt: #F5F8FF;
  --border: #E2E8F0;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 40px rgba(43,127,224,0.22);
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

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

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}
.btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.8);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--orange);
  border-color: var(--orange);
}
.btn-outline-dark:hover {
  background: var(--orange);
  color: #fff;
  transform: translateY(-2px);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.navbar.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
  padding: 10px 0;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
}

.nav-logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

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

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all var(--transition);
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,0.12);
}

.nav-links a.active {
  color: #7EC8FF;
  background: rgba(43,127,224,0.18);
}

.nav-links a.nav-login {
  color: #fff;
  background: var(--orange);
  border-radius: 50px;
  padding: 8px 20px;
  font-weight: 600;
  margin-left: 8px;
}

.nav-links a.nav-login:hover {
  background: var(--orange-dark);
  opacity: 1;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition);
}

.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); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
  background-image: url('images/banner.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 75%;
  background-color: #0F1E36;
}

.hero-bg-img {
  display: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15,30,54,0.45) 0%,
    rgba(15,30,54,0.20) 50%,
    rgba(43,127,224,0.10) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 24px;
  max-width: 700px;
}

.hero-content h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
  line-height: 1.1;
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 500;
  opacity: 0.95;
  margin-bottom: 8px;
}

.hero-sub {
  font-size: 1rem;
  opacity: 0.75;
  margin-bottom: 36px;
  letter-spacing: 0.5px;
}

.hero-content .btn {
  margin: 8px;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
  color: var(--navy);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, #2B7FE0, #6BBF3E);
  border-radius: 2px;
  margin: 14px auto 0;
}

/* ============================================================
   INTRO
   ============================================================ */
.intro {
  background: var(--bg-alt);
  padding: 60px 0;
}

.intro-text {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.15rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.8;
}

/* ============================================================
   APPS GRID
   ============================================================ */
.apps-section {
  background: var(--bg);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-bottom: 48px;
}

.app-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

.app-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: #2B7FE0;
}

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  overflow: hidden;
}

.app-icon svg {
  width: 32px;
  height: 32px;
}

.app-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--navy);
}

.app-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.app-features {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.app-features li {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.mm-blue  { color: #2563EB; }
.mm-green { color: #16A34A; }
.mm-purple{ color: #7C3AED; }
.mm-orange{ color: #EA580C; }

.center-btn {
  text-align: center;
}

/* ============================================================
   WHY SECTION
   ============================================================ */
.why-section {
  background: linear-gradient(135deg, #0F1E36 0%, #1A3A5C 100%);
  color: #fff;
}

.why-section .section-title {
  color: #fff;
}

.why-section .section-title::after {
  background: var(--orange);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.why-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 0.97rem;
  font-weight: 500;
  transition: background var(--transition);
}

.why-item:hover {
  background: rgba(43,127,224,0.18);
  border-color: rgba(43,127,224,0.45);
}

.why-check {
  font-size: 1.1rem;
  color: var(--orange);
  flex-shrink: 0;
}

/* ============================================================
   CONTACT CTA
   ============================================================ */
.contact-cta {
  background: linear-gradient(135deg, #1A65C0 0%, #0F1E36 100%);
  color: #fff;
  text-align: center;
}

.contact-cta h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.contact-cta p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 28px;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 32px;
}

.contact-link {
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.95;
  transition: opacity var(--transition);
}

.contact-link:hover {
  opacity: 1;
  text-decoration: underline;
}

.contact-cta .btn-primary {
  background: #fff;
  color: var(--orange-dark);
  border-color: #fff;
}
.contact-cta .btn-primary:hover {
  background: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.9);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 32px;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-logo img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.footer-logo span {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.footer-tagline {
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: center;
  margin-bottom: 24px;
}

.footer-nav a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: #5BA8F5;
}

.footer-copy {
  font-size: 0.82rem;
  opacity: 0.5;
}

/* ============================================================
   PAGE HEADER (inner pages)
   ============================================================ */
.page-header {
  background: linear-gradient(135deg, #0F1E36 0%, #1A2F4E 100%);
  color: #fff;
  padding: 140px 0 80px;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.page-header p {
  font-size: 1.1rem;
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================================
   PRODUCTS PAGE
   ============================================================ */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

.product-detail:last-child {
  border-bottom: none;
}

.product-detail.reverse {
  direction: rtl;
}

.product-detail.reverse > * {
  direction: ltr;
}

.product-icon-large {
  width: 100px;
  height: 100px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  overflow: hidden;
}

.product-icon-large svg {
  width: 52px;
  height: 52px;
}

.product-text h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--navy);
}

.product-text p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.product-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text);
}

.product-features li::before {
  content: '✅';
  flex-shrink: 0;
}

.product-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-visual-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  width: 100%;
  max-width: 340px;
}

.product-visual-card .big-icon {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  overflow: hidden;
}

.product-visual-card .big-icon svg {
  width: 64px;
  height: 64px;
}

.product-visual-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-intro {
  background: var(--bg-alt);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-visual {
  display: flex;
  justify-content: center;
}

.about-logo-card {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 360px;
}

.about-logo-card img {
  height: 80px;
  width: auto;
  object-fit: contain;
}

.about-logo-card span {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
}

.about-logo-card p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  text-align: center;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.value-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: all var(--transition);
}

.value-card:hover {
  border-color: #2B7FE0;
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.value-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.value-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.value-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-section {
  background: var(--bg);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

.contact-info-block h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

.contact-info-block p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-detail-icon {
  width: 48px;
  height: 48px;
  background: var(--orange-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  border: 1px solid #BFDBFE;
}

.contact-detail-text strong {
  display: block;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 2px;
}

.contact-detail-text a {
  color: var(--orange);
  font-size: 0.95rem;
  transition: opacity var(--transition);
}

.contact-detail-text a:hover {
  opacity: 0.8;
}

/* FORM */
.contact-form-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.contact-form-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(234,88,12,0.12);
}

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

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

.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 8px;
}

.form-submit:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.form-success {
  display: none;
  background: #F0FDF4;
  border: 1px solid #86EFAC;
  border-radius: var(--radius);
  padding: 16px 20px;
  color: #166534;
  font-size: 0.95rem;
  margin-top: 16px;
  text-align: center;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb-inner a {
  color: #2B7FE0;
}

.breadcrumb-inner a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  opacity: 0.4;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .product-detail.reverse {
    direction: ltr;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 4px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 12px 16px;
    width: 100%;
  }
  .nav-toggle {
    display: flex;
  }
  .hero-content h1 {
    font-size: 2.6rem;
  }
  .section {
    padding: 56px 0;
  }
  .apps-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .contact-form-card {
    padding: 28px 20px;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content .btn {
    display: block;
    width: 100%;
    margin: 8px 0;
  }
  .contact-info {
    flex-direction: column;
    align-items: center;
  }
}
