/* ═══════════════════════════════════════════════════════════
   MaxAI Solutions — Styled to match maxaiunpacked.com/mis
   Fonts : Arimo (headings) + Open Sans (body)
   Primary : #5864FF  |  Dark : #162447  |  Muted : #5B657E
   ═══════════════════════════════════════════════════════════ */

@import url("https://fonts.googleapis.com/css2?family=Arimo:wght@400;500;600;700&family=Open+Sans:wght@400;500;600&display=swap");

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #5B657E;
  background: #fff;
  overflow-x: hidden;
}
a { color: #5864FF; text-decoration: none; transition: all .3s ease; }
a:hover { color: #5864FF; }
img { max-width: 100%; display: block; vertical-align: middle; }
ul, ol { list-style: none; }
p  { font-family: "Open Sans", sans-serif; font-size: 16px; line-height: 1.7; margin: 0; }
h1, h2, h3, h4, h5, h6 {
  font-family: "Arimo", sans-serif;
  font-weight: 700;
  color: #162447;
  margin: 0;
}

/* ── TOKENS ──────────────────────────────────────────────── */
:root {
  --primary:    #5864FF;
  --primary-dk: #4a55e2;
  --primary-lt: rgba(88,100,255,.10);
  --dark:       #162447;
  --muted:      #5B657E;
  --white:      #ffffff;
  --bg-alt:     rgba(88,100,255,.06);
  --border:     #e5e7eb;
  --shadow:     0 0 59px rgba(214,214,214,.45);
  --radius:     5px;
  --nav-h:      72px;
}

/* ── LAYOUT ──────────────────────────────────────────────── */
.container   { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section     { padding: 90px 0; }
.section-sm  { padding: 60px 0; }
.text-center { text-align: center; }
.text-center .sec-desc { margin: 0 auto; }

/* ── HEADER ──────────────────────────────────────────────── */
header {
  position: fixed; top: 0; left: 0; width: 100%;
  height: var(--nav-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
  z-index: 1000;
  display: flex; align-items: center;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.logo {
  font-family: "Arimo", sans-serif; font-weight: 700; font-size: 1.3rem;
  color: var(--dark); display: flex; align-items: center; gap: 8px;
}
.logo-icon {
  width: 34px; height: 34px; border-radius: var(--radius);
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; font-weight: 900; color: #fff;
}
.logo span { color: var(--primary); }
nav ul { display: flex; gap: 32px; align-items: center; }
nav a  { font-size: 16px; font-weight: 400; color: var(--muted); transition: color .2s; }
nav a:hover { color: var(--primary); }
.nav-cta {
  background: var(--primary) !important; color: #fff !important;
  padding: 10px 24px; border-radius: var(--radius);
  font-weight: 700 !important; font-size: 15px !important;
  transition: background .2s !important;
}
.nav-cta:hover { background: var(--primary-dk) !important; color: #fff !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--dark); border-radius: 2px; }

/* ── BTN ─────────────────────────────────────────────────── */
.btn-primary-fill {
  display: inline-block; font-family: "Arimo", sans-serif;
  font-weight: 700; font-size: 16px;
  background: var(--primary); color: #fff;
  padding: 14px 36px; border-radius: var(--radius);
  border: 2px solid var(--primary);
  transition: all .3s ease;
}
.btn-primary-fill:hover { background: var(--primary-dk); border-color: var(--primary-dk); color: #fff; }
.btn-outline-fill {
  display: inline-block; font-family: "Arimo", sans-serif;
  font-weight: 700; font-size: 16px;
  background: transparent; color: var(--primary);
  padding: 14px 36px; border-radius: var(--radius);
  border: 2px solid var(--primary);
  transition: all .3s ease;
}
.btn-outline-fill:hover { background: var(--primary); color: #fff; }

/* ── HERO ────────────────────────────────────────────────── */
#hero-section {
  padding-top: calc(var(--nav-h) + 72px);
  padding-bottom: 72px;
  background: linear-gradient(150deg, #eef0ff 0%, #f8f9ff 50%, #fff 100%);
  position: relative; overflow: hidden;
}
#hero-section::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(88,100,255,.12) 1px, transparent 1px);
  background-size: 30px 30px; opacity: .6;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center; position: relative;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(88,100,255,.1); border: 1px solid rgba(88,100,255,.25);
  color: var(--primary); font-size: .78rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 14px; border-radius: var(--radius); margin-bottom: 18px;
}
.hero-badge::before {
  content: ''; width: 7px; height: 7px;
  background: var(--primary); border-radius: 50%;
  animation: blink 2s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.2} }
h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.15;
  margin-bottom: 18px; color: var(--dark);
}
h1 em { font-style: normal; color: var(--primary); }
.hero-sub { font-size: 1rem; color: var(--muted); max-width: 490px; margin-bottom: 32px; line-height: 1.75; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero Visual Card */
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-card-wrap { position: relative; width: 100%; }
.hero-main-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow);
}
.hmc-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.hmc-icon {
  width: 40px; height: 40px; border-radius: var(--radius);
  background: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.hmc-title { font-family: "Arimo", sans-serif; font-weight: 700; color: var(--dark); font-size: .95rem; }
.hmc-sub   { color: var(--muted); font-size: .76rem; }
.hmc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.hmc-stat  {
  background: var(--bg-alt); border: 1px solid rgba(88,100,255,.15);
  border-radius: var(--radius); padding: 14px;
}
.hmc-stat-val { font-family: "Arimo", sans-serif; font-size: 1.4rem; font-weight: 700; color: var(--primary); }
.hmc-stat-lbl { font-size: .72rem; color: var(--muted); margin-top: 2px; }
.hmc-bar-label { display: flex; justify-content: space-between; font-size: .74rem; color: var(--muted); margin-bottom: 5px; }
.bar-track { background: #e9ecef; border-radius: var(--radius); height: 6px; margin-bottom: 10px; }
.bar-fill  { height: 100%; border-radius: var(--radius); background: var(--primary); transition: width 1.2s ease; }
.float-badge {
  position: absolute; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 14px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,.1); font-size: .8rem;
}
.float-badge strong { color: var(--dark); font-size: .82rem; display: block; }
.float-badge small  { color: var(--muted); font-size: .72rem; }
.fb-1 { bottom: -16px; left: -20px; }
.fb-2 { top: -16px; right: -20px; }

/* ── SECTION HEADINGS ────────────────────────────────────── */
.sec-label {
  display: inline-block; color: var(--primary);
  font-family: "Arimo", sans-serif; font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px;
}
h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.5rem); line-height: 1.2; margin-bottom: 14px;
}
h2 em { font-style: normal; color: var(--primary); }
.sec-desc { color: var(--muted); max-width: 570px; font-size: .97rem; line-height: 1.75; }
.section-head { margin-bottom: 52px; }

/* ── WHAT WE DO ──────────────────────────────────────────── */
#about { background: #fff; }
.about-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.about-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.about-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(88,100,255,.15); }
.acard-icon {
  width: 70px; height: 70px; border-radius: 50%;
  background: var(--primary-lt);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; margin: 0 auto 22px;
}
.about-card h3  { font-size: 1.1rem; margin-bottom: 12px; text-align: center; }
.about-card p   { font-size: .9rem; color: var(--muted); line-height: 1.7; text-align: center; }

/* ── STATS (dark band) ───────────────────────────────────── */
#stats { background: var(--dark); }
.stats-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1px; background: rgba(255,255,255,.08);
}
.stat-item { background: var(--dark); padding: 48px 28px; text-align: center; }
.stat-num  {
  font-family: "Arimo", sans-serif;
  font-size: clamp(2.2rem,4vw,3rem); font-weight: 700;
  color: #fff; line-height: 1; margin-bottom: 8px;
}
.stat-lbl  { color: rgba(255,255,255,.6); font-size: .9rem; font-weight: 500; }
.stat-sub  { color: rgba(255,255,255,.35); font-size: .76rem; margin-top: 4px; }

/* ── SERVICES ────────────────────────────────────────────── */
#services  { background: var(--bg-alt); }
.services-intro {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 52px; align-items: start; margin-bottom: 48px;
}
.services-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.svc-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.svc-card:hover { transform: translateY(-3px); box-shadow: 0 10px 36px rgba(88,100,255,.14); }
.svc-card-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--primary-lt);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--primary); margin-bottom: 16px;
}
.svc-card h3 { font-size: 1rem; margin-bottom: 8px; }
.svc-card p  { font-size: .87rem; color: var(--muted); line-height: 1.65; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.tag {
  background: var(--primary-lt); color: var(--primary);
  font-size: .72rem; font-weight: 700;
  padding: 3px 10px; border-radius: var(--radius);
  border: 1px solid rgba(88,100,255,.2);
}

/* ── SECTORS ─────────────────────────────────────────────── */
#sectors { background: #fff; }
.sectors-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 24px;
}
.sector-card {
  background: #fff; border: 1px solid var(--border);
  border-bottom: 5px solid var(--primary);
  border-radius: var(--radius); padding: 40px 22px; text-align: center;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.sector-card:hover { transform: translateY(-5px); box-shadow: 0 14px 40px rgba(88,100,255,.16); }
.sector-icon { font-size: 3rem; margin-bottom: 18px; display: block; }
.sector-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.sector-card p  { font-size: .87rem; color: var(--muted); line-height: 1.65; }

/* ── HOW IT WORKS ────────────────────────────────────────── */
#how { background: var(--bg-alt); }
.steps-wrap {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 0; position: relative;
}
.steps-wrap::before {
  content: ''; position: absolute;
  top: 38px; left: calc(12.5% + 20px); right: calc(12.5% + 20px);
  height: 2px; background: var(--primary); opacity: .2;
}
.step { padding: 0 18px; text-align: center; }
.step-num {
  width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 50%;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-family: "Arimo", sans-serif; font-size: 1.5rem; font-weight: 700;
  color: #fff; position: relative; z-index: 1;
  box-shadow: 0 14px 15px rgba(88,100,255,.26);
}
.step h3 { font-size: 1.05rem; margin-bottom: 10px; }
.step p  { font-size: .88rem; color: var(--muted); }

/* ── TECH STACK ──────────────────────────────────────────── */
#tech { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.tech-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 36px; }
.tech-pill {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 11px 20px;
  font-size: .88rem; font-weight: 600; color: var(--muted);
  font-family: "Arimo", sans-serif;
  transition: border-color .2s, color .2s;
}
.tech-pill:hover { border-color: var(--primary); color: var(--primary); }
.tech-pill span { font-size: 1.1rem; }

/* ── CONTACT ─────────────────────────────────────────────── */
#contact { background: var(--bg-alt); }
.contact-wrap {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: start;
}
.contact-form {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: .82rem; color: var(--dark);
  margin-bottom: 6px; font-weight: 600; font-family: "Arimo", sans-serif;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; background: #f8f9ff;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 11px 14px; color: var(--dark);
  font-family: "Open Sans", sans-serif; font-size: .9rem;
  transition: border-color .2s, box-shadow .2s; outline: none; resize: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(88,100,255,.12); background: #fff;
}
.form-group select option { background: #fff; }
.btn-submit {
  width: 100%; background: var(--primary); color: #fff;
  font-family: "Arimo", sans-serif; font-weight: 700; font-size: 16px;
  padding: 14px; border-radius: var(--radius); border: none; cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-submit:hover { background: var(--primary-dk); transform: translateY(-2px); }
.contact-info h2 { margin-bottom: 14px; }
.contact-info .sec-desc { margin-bottom: 32px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.info-icon {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: var(--radius);
  background: var(--primary-lt); border: 1px solid rgba(88,100,255,.2);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.info-text strong { display: block; color: var(--dark); font-size: .9rem; margin-bottom: 2px; font-weight: 700; }
.info-text span   { color: var(--muted); font-size: .85rem; }

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  background: var(--primary);
  padding: 60px 0 28px;
}
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 48px; margin-bottom: 40px;
}
.footer-brand .logo { color: #fff; font-size: 1.2rem; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.footer-brand .logo span { color: #fdd446; }
.footer-brand .logo-icon { background: rgba(255,255,255,.2); }
.footer-brand p { font-size: .88rem; color: rgba(255,255,255,.7); max-width: 300px; line-height: 1.7; }
.footer-col h4 {
  font-family: "Arimo", sans-serif; font-size: .85rem; font-weight: 700;
  color: #fff; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a  { font-size: .88rem; color: rgba(255,255,255,.7); transition: color .2s, padding-left .2s; }
.footer-col a:hover { color: #fff; padding-left: 6px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 24px; display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom p { font-size: .82rem; color: rgba(255,255,255,.6); }
.footer-bottom a { color: #fdd446; }

/* ── SCROLL-TO-TOP ───────────────────────────────────────── */
#scrolltop {
  position: fixed; bottom: 28px; right: 28px;
  width: 45px; height: 45px;
  background: var(--primary); color: #fff;
  border-radius: var(--radius); display: none;
  align-items: center; justify-content: center;
  font-size: 1rem; cursor: pointer; border: none;
  box-shadow: 0 0 10px rgba(0,0,0,.1); z-index: 999;
  transition: background .2s;
}
#scrolltop.show { display: flex; }
#scrolltop:hover { background: rgba(88,100,255,.8); }

/* ── ANIMATIONS ──────────────────────────────────────────── */
.fade-up {
  opacity: 0; transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}
.fade-up.visible { opacity: 1; transform: none; }
.fade-up:nth-child(2) { transition-delay: .1s; }
.fade-up:nth-child(3) { transition-delay: .2s; }
.fade-up:nth-child(4) { transition-delay: .3s; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 991px) {
  .hero-inner      { grid-template-columns: 1fr; }
  .hero-visual     { display: none; }
  .about-grid      { grid-template-columns: 1fr 1fr; }
  .stats-grid      { grid-template-columns: 1fr 1fr; }
  .services-intro  { grid-template-columns: 1fr; gap: 24px; }
  .sectors-grid    { grid-template-columns: 1fr 1fr; }
  .steps-wrap      { grid-template-columns: 1fr 1fr; gap: 32px; }
  .steps-wrap::before { display: none; }
  .contact-wrap    { grid-template-columns: 1fr; }
  .footer-inner    { grid-template-columns: 1fr; gap: 28px; }
  nav ul           { display: none; }
  .hamburger       { display: flex; }
}
@media (max-width: 600px) {
  .about-grid    { grid-template-columns: 1fr; }
  .stats-grid    { grid-template-columns: 1fr 1fr; }
  .sectors-grid  { grid-template-columns: 1fr 1fr; }
  .steps-wrap    { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row      { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  h1             { font-size: 2rem; }
}
