/* ============================================================
   MKSAAS — Software & AI Company
   Global stylesheet (shared by all pages)
   Dark hero + light content, Atos-inspired enterprise style
   ============================================================ */

:root {
  /* Brand palette */
  --navy-900: #070b1d;
  --navy-800: #0a0f24;
  --navy-700: #0e1533;
  --navy-600: #16204a;
  --accent: #19c2b8;          /* teal-cyan */
  --accent-bright: #2ee6d6;
  --accent-blue: #3f7df6;
  --accent-orange: #f6a03f;

  /* Light content area */
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --border: #e4e9f2;
  --ink: #0f1b33;
  --ink-soft: #44506b;
  --ink-muted: #7a86a3;

  /* Dark area text */
  --on-dark: #f2f5fc;
  --on-dark-muted: #a9b4d0;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 51, .05);
  --shadow-md: 0 10px 30px rgba(15, 27, 51, .08);
  --shadow-lg: 0 24px 60px rgba(15, 27, 51, .14);
  --container: 1180px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 72px 0; }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.18; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.25rem; }
p { color: var(--ink-soft); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px; background: var(--accent); display: inline-block;
}
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head .lead { font-size: 1.12rem; margin-top: 16px; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary {
  background: linear-gradient(120deg, var(--accent) 0%, #0fa79e 100%);
  color: #04211f;
  box-shadow: 0 8px 24px rgba(25, 194, 184, .35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(25, 194, 184, .45); }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; background: rgba(255, 255, 255, .06); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .14); transform: translateY(-2px); }
.btn--dark { background: var(--navy-800); color: #fff; }
.btn--dark:hover { background: var(--navy-700); transform: translateY(-2px); }
.btn--outline-dark { border-color: var(--border); color: var(--ink); }
.btn--outline-dark:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-header.scrolled {
  background: rgba(8, 12, 30, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .28);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand-text { line-height: 1.05; }
.brand-text .name { color: #fff; font-weight: 800; font-size: 1.22rem; letter-spacing: .04em; }
.brand-text .name span { color: var(--accent-bright); }
.brand-text .tag { color: var(--on-dark-muted); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a {
  color: var(--on-dark); font-weight: 500; font-size: .95rem;
  position: relative; padding: 6px 0; opacity: .85; transition: opacity .2s ease;
}
.main-nav a:hover { opacity: 1; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--accent); transition: width .25s ease; border-radius: 2px;
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a.active { opacity: 1; }
.nav-cta { margin-left: 8px; padding: 10px 22px; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s ease, opacity .3s 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); }

/* ---------- Hero (dark) ---------- */
.hero {
  position: relative; color: var(--on-dark);
  padding: 190px 0 120px;
  background-color: var(--navy-800);
  overflow: hidden;
}
.hero--home { min-height: 92vh; display: flex; align-items: center; }
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center right;
  transform: scale(1.04);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7, 11, 29, .96) 0%, rgba(9, 14, 36, .82) 42%, rgba(9, 14, 36, .35) 100%);
}
.hero__bg::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, rgba(7, 11, 29, .9) 0%, rgba(7, 11, 29, 0) 34%);
}
.hero .container { position: relative; z-index: 2; }
.hero__content { max-width: 760px; }
.hero .eyebrow { color: var(--accent-bright); }
.hero p { color: var(--on-dark-muted); font-size: 1.15rem; max-width: 640px; margin: 22px 0 36px; }
.hero h1 { color: #fff; }
.hero h1 .grad {
  background: linear-gradient(100deg, var(--accent-bright) 10%, var(--accent-blue) 90%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero__meta { margin-top: 64px; display: flex; flex-wrap: wrap; gap: 40px; }
.hero__meta .item { border-left: 2px solid rgba(46, 230, 214, .5); padding-left: 16px; }
.hero__meta .num { font-size: 1.7rem; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.hero__meta .lbl { font-size: .85rem; color: var(--on-dark-muted); }

/* Page hero (inner pages, shorter) */
.hero--page { padding: 168px 0 84px; }
.breadcrumb { font-size: .85rem; color: var(--on-dark-muted); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--accent-bright); }
.breadcrumb span { margin: 0 8px; opacity: .5; }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(25, 194, 184, .4); }
.card__icon {
  width: 54px; height: 54px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(25, 194, 184, .14), rgba(63, 125, 246, .14));
  color: var(--accent); margin-bottom: 22px;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 12px; }
.card p { font-size: .96rem; }
.card__link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px; font-weight: 600; font-size: .92rem; color: var(--accent);
}
.card__link svg { width: 16px; height: 16px; transition: transform .2s ease; }
.card:hover .card__link svg { transform: translateX(4px); }

/* Numbered service rows (services page) */
.svc-list { display: grid; gap: 24px; }
.svc {
  display: grid; grid-template-columns: 84px 1fr; gap: 28px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px 38px; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(25, 194, 184, .45); }
.svc__num {
  font-size: 2rem; font-weight: 800; letter-spacing: -.03em;
  color: transparent; -webkit-text-stroke: 1.4px var(--accent);
  line-height: 1; padding-top: 4px;
}
.svc h3 { font-size: 1.3rem; margin-bottom: 10px; }
.svc p { max-width: 780px; }
.svc__tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.svc__tags span {
  font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  color: var(--ink-soft); background: var(--bg-soft);
  border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px;
}

/* ---------- Split feature (home preview) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split__media {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
  position: relative;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(25, 194, 184, .12), rgba(10, 15, 36, .45));
}
.check-list { margin-top: 26px; display: grid; gap: 16px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; }
.check-list .tick {
  flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(25, 194, 184, .15); color: var(--accent);
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.check-list .tick svg { width: 13px; height: 13px; }
.check-list strong { display: block; color: var(--ink); font-weight: 600; }
.check-list span { color: var(--ink-soft); font-size: .94rem; }

/* ---------- Value / benefit cards ---------- */
.value-card { padding: 38px 32px; }
.value-card .step {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--navy-800); color: var(--accent-bright);
  font-weight: 700; font-size: .95rem; margin-bottom: 20px;
}

/* ---------- Dark CTA band ---------- */
.cta-band {
  position: relative; color: var(--on-dark);
  background: radial-gradient(1200px 500px at 15% 0%, rgba(63, 125, 246, .22), transparent 60%),
              radial-gradient(900px 420px at 90% 110%, rgba(25, 194, 184, .18), transparent 55%),
              var(--navy-800);
  padding: 96px 0; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; opacity: .16;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
}
.cta-band .container { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; max-width: 560px; }
.cta-band p { color: var(--on-dark-muted); margin-top: 14px; max-width: 520px; }
.cta-band .actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: var(--on-dark-muted); padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 56px; }
.footer-brand img { width: 52px; height: 52px; margin-bottom: 18px; }
.footer-brand .name { color: #fff; font-weight: 800; font-size: 1.2rem; letter-spacing: .04em; }
.footer-brand .name span { color: var(--accent-bright); }
.footer-brand p { color: var(--on-dark-muted); font-size: .92rem; margin-top: 12px; max-width: 320px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 18px; letter-spacing: .02em; }
.site-footer li { margin-bottom: 12px; }
.site-footer li a { font-size: .92rem; transition: color .2s ease; }
.site-footer li a:hover { color: var(--accent-bright); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .85rem; color: #6f7b9c;
}

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { gap: 40px; }
}
@media (max-width: 860px) {
  .section { padding: 72px 0; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; top: 76px; right: 0; bottom: 0; width: min(320px, 84vw);
    flex-direction: column; align-items: flex-start; gap: 8px;
    background: rgba(8, 12, 30, .97); backdrop-filter: blur(16px);
    padding: 32px 28px; transform: translateX(100%);
    transition: transform .35s ease; border-left: 1px solid rgba(255, 255, 255, .08);
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { font-size: 1.05rem; padding: 10px 0; width: 100%; }
  .nav-cta { margin: 12px 0 0; }
  .hero--home { min-height: auto; }
  .hero { padding: 150px 0 84px; }
  .split { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 1fr; gap: 14px; padding: 30px 26px; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero__meta { gap: 24px; }
  .btn { width: 100%; justify-content: center; }
  .hero__actions, .cta-band .actions { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
