/* ============================================================
   ErpLinked — erplinked.com
   Healthcare ERP for MENA clinics
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ---------- Tokens ---------- */
:root {
  --ink:        #1b2230;
  --ink-2:      #2a3140;
  --blue:       #2f66b0;
  --blue-600:   #27568f;
  --blue-700:   #1f4775;
  --blue-50:    #ecf2fa;
  --blue-100:   #d8e6f5;

  --slate-50:   #f6f8fb;
  --slate-100:  #eef2f7;
  --line:       #e3e8ef;
  --line-soft:  #edf1f6;
  --muted:      #5b6677;
  --muted-2:    #7c8696;
  --white:      #ffffff;

  --teal:       #1f9b8e;
  --amber:      #d98a2b;

  --font:       'Manrope', system-ui, -apple-system, sans-serif;
  --mono:       'IBM Plex Mono', ui-monospace, monospace; /* @kind font */

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(27,34,48,.06), 0 1px 3px rgba(27,34,48,.05);
  --shadow:    0 4px 16px rgba(27,34,48,.07), 0 2px 6px rgba(27,34,48,.05);
  --shadow-lg: 0 24px 60px -18px rgba(27,34,48,.22), 0 8px 24px -10px rgba(27,34,48,.12);

  --maxw: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1); /* @kind other */
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding: 104px 0; }
.section--tight { padding: 72px 0; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1.5px;
  background: var(--blue);
  display: inline-block;
}
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.1;
  letter-spacing: -.02em;
  font-weight: 800;
  margin-top: 18px;
  text-wrap: balance;
}
.section-head p {
  margin-top: 18px;
  font-size: 18px;
  color: var(--muted);
  max-width: 600px;
  text-wrap: pretty;
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.lede { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 15.5px;
  padding: 13px 22px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  transition: transform .18s var(--ease), background .18s, box-shadow .18s, border-color .18s, color .18s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 1px 2px rgba(31,71,117,.3); }
.btn-primary:hover { background: var(--blue-600); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary:active { transform: translateY(0); background: var(--blue-700); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-1px); }
.btn-light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.22); }
.btn-light:hover { background: rgba(255,255,255,.18); transform: translateY(-1px); }
.btn-lg { padding: 16px 28px; font-size: 16px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.header.scrolled { border-color: var(--line-soft); box-shadow: 0 1px 0 rgba(27,34,48,.03); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand img { height: 30px; width: auto; }
.brand .erp { color: var(--ink); }
.brand .linked { color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 15px; font-weight: 500; color: var(--muted);
  padding: 8px 14px; border-radius: var(--r-sm); transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--ink); background: var(--slate-100); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--ink); }
.menu-toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 480px at 78% -8%, var(--blue-50), transparent 62%),
    linear-gradient(180deg, var(--slate-50), #fff 70%);
  z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: 56px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line);
  padding: 7px 13px 7px 9px; border-radius: 100px;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px rgba(31,155,142,.18); }
.hero h1 {
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.04;
  letter-spacing: -.03em;
  font-weight: 800;
  margin: 22px 0 0;
  text-wrap: balance;
}
.hero h1 .accent { color: var(--blue); }
.hero .sub { margin-top: 22px; font-size: 19px; color: var(--muted); max-width: 520px; text-wrap: pretty; }
.hero-actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { margin-top: 30px; display: flex; gap: 26px; flex-wrap: wrap; }
.hero-meta .item { display: flex; align-items: center; gap: 9px; font-size: 14.5px; color: var(--muted); font-weight: 500; }
.hero-meta .item svg { width: 18px; height: 18px; color: var(--blue); flex: none; }

/* ---------- Hero product mock ---------- */
.mock {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: perspective(1600px) rotateY(-7deg) rotateX(2deg);
  transition: transform .5s var(--ease);
}
.mock:hover { transform: perspective(1600px) rotateY(-3deg) rotateX(1deg); }
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--slate-50); border-bottom: 1px solid var(--line-soft); }
.mock-bar .dots { display: flex; gap: 6px; }
.mock-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: #d4dbe5; display: block; }
.mock-bar .title { font-size: 12.5px; color: var(--muted-2); font-weight: 600; margin-left: 6px; }
.mock-bar .live { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--teal); display: flex; align-items: center; gap: 6px; }
.mock-bar .live i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); display: block; animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.mock-body { padding: 18px; display: grid; gap: 14px; background: linear-gradient(180deg,#fff,var(--slate-50)); }
.mock-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mock-row h4 { font-size: 13px; font-weight: 700; color: var(--ink); }
.mock-filter { display: flex; gap: 6px; }
.mock-filter span { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 100px; background: #fff; border: 1px solid var(--line); color: var(--muted); }
.mock-filter span.on { background: var(--blue); color: #fff; border-color: var(--blue); }

.appt {
  display: grid; grid-template-columns: auto 1fr auto; gap: 13px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--blue);
  border-radius: var(--r-sm); padding: 13px 15px; box-shadow: var(--shadow-sm);
}
.appt .time { font-family: var(--mono); font-size: 12px; color: var(--blue); font-weight: 500; text-align: center; line-height: 1.3; }
.appt .time b { display: block; font-size: 15px; color: var(--ink); }
.appt .who .name { font-weight: 700; font-size: 14px; }
.appt .who .svc { font-size: 12px; color: var(--muted-2); margin-top: 1px; }
.chip { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 100px; }
.chip.green { background: #e6f5ee; color: #1b7a52; }
.chip.amber { background: #fdf0db; color: #9a6512; }
.chip.blue  { background: var(--blue-50); color: var(--blue-600); }
.appt.alt { border-left-color: var(--teal); }
.appt.alt2 { border-left-color: var(--amber); }

.mock-flow { display: flex; align-items: center; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px; box-shadow: var(--shadow-sm); }
.mock-flow .step { flex: 1; text-align: center; font-size: 10.5px; font-weight: 700; color: var(--muted-2); position: relative; }
.mock-flow .step .ic { width: 30px; height: 30px; margin: 0 auto 5px; border-radius: 8px; background: var(--slate-100); display: grid; place-items: center; color: var(--muted); }
.mock-flow .step.done .ic { background: var(--blue); color: #fff; }
.mock-flow .step.done { color: var(--ink); }
.mock-flow .step .ic svg { width: 16px; height: 16px; }
.mock-flow .step::after { content: ""; position: absolute; top: 15px; right: -6px; width: 12px; height: 2px; background: var(--line); }
.mock-flow .step:last-child::after { display: none; }
.mock-flow .step.done::after { background: var(--blue); }

/* ---------- Logos / trust strip ---------- */
.strip { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: var(--slate-50); }
.strip-inner { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line-soft); border-radius: var(--r); overflow: hidden; }
.strip-cell { background: var(--slate-50); padding: 26px 22px; }
.strip-cell .k { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.strip-cell .k svg { width: 20px; height: 20px; color: var(--blue); }
.strip-cell p { font-size: 13px; color: var(--muted); margin-top: 7px; }

/* ---------- Generic grid / cards ---------- */
.grid { display: grid; gap: 22px; }
.g-2 { grid-template-columns: repeat(2,1fr); }
.g-3 { grid-template-columns: repeat(3,1fr); }
.g-4 { grid-template-columns: repeat(4,1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s, border-color .22s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.card .ic {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue); margin-bottom: 18px;
}
.card .ic svg { width: 23px; height: 23px; }
.card h3 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.card p { color: var(--muted); margin-top: 9px; font-size: 15px; text-wrap: pretty; }

/* ---------- Problem ---------- */
.problem { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.problem::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 360px at 12% 0%, rgba(47,102,176,.28), transparent 60%);
}
.problem .wrap { position: relative; }
.problem .eyebrow { color: #7fb0e6; }
.problem .eyebrow::before { background: #7fb0e6; }
.problem .section-head h2 { color: #fff; }
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.quote {
  font-size: clamp(22px, 2.6vw, 30px); line-height: 1.35; font-weight: 700;
  letter-spacing: -.02em; color: #fff; text-wrap: balance;
}
.quote .mk { color: var(--blue); }
.quote-by { margin-top: 18px; font-size: 14px; color: #9fb0c6; font-family: var(--mono); }
.pain-list { display: grid; gap: 2px; }
.pain {
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
  padding: 20px 4px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.pain:last-child { border-bottom: 0; }
.pain .n { font-family: var(--mono); font-size: 13px; color: var(--blue); padding-top: 2px; }
.pain h4 { font-size: 16px; font-weight: 700; color: #fff; }
.pain p { font-size: 14.5px; color: #aab8c9; margin-top: 4px; }

/* ---------- Workflow ---------- */
.flow { display: grid; grid-template-columns: repeat(6,1fr); gap: 14px; position: relative; }
.flow::before { content: ""; position: absolute; top: 28px; left: 7%; right: 7%; height: 2px; background: linear-gradient(90deg, var(--blue-100), var(--blue), var(--blue-100)); z-index: 0; }
.flow-step { position: relative; z-index: 1; text-align: center; }
.flow-step .num {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 16px;
  background: #fff; border: 1px solid var(--line); display: grid; place-items: center;
  color: var(--blue); box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s;
}
.flow-step:hover .num { transform: translateY(-3px); box-shadow: var(--shadow); }
.flow-step .num svg { width: 24px; height: 24px; }
.flow-step .k { font-family: var(--mono); font-size: 11px; color: var(--muted-2); letter-spacing: .08em; }
.flow-step h4 { font-size: 16px; font-weight: 700; margin-top: 4px; }
.flow-step p { font-size: 13.5px; color: var(--muted); margin-top: 5px; }

.roles { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 56px; }

/* ---------- Solution split ---------- */
.solution { background: var(--slate-50); }
.sol-card { position: relative; overflow: hidden; }
.sol-card .tag { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--blue); text-transform: uppercase; }
.promise {
  margin-top: 40px; background: var(--ink); color: #fff; border-radius: var(--r-lg);
  padding: 38px 42px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.promise svg { width: 40px; height: 40px; color: #7fb0e6; flex: none; }
.promise p { font-size: 20px; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; flex: 1; min-width: 280px; }
.promise .em { color: #7fb0e6; }

/* ---------- Modules ---------- */
.mod {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}
.mod:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.mod .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; margin-bottom: 14px; }
.mod .ic svg { width: 20px; height: 20px; }
.mod h4 { font-size: 15.5px; font-weight: 700; }
.mod p { font-size: 13.5px; color: var(--muted); margin-top: 6px; line-height: 1.5; }

/* ---------- Differentiation + table ---------- */
.diff { background: var(--slate-50); }
.diff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.diff-list { display: grid; gap: 8px; }
.diff-item { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); transition: border-color .2s, box-shadow .2s; }
.diff-item:hover { border-color: var(--blue-100); box-shadow: var(--shadow-sm); }
.diff-item .n { width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.diff-item h4 { font-size: 16px; font-weight: 700; }
.diff-item p { font-size: 14px; color: var(--muted); margin-top: 3px; }

.cmp { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); font-size: 14px; }
.cmp th, .cmp td { padding: 14px 16px; text-align: left; }
.cmp thead th { background: var(--slate-100); font-size: 12px; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--line); }
.cmp tbody td { border-bottom: 1px solid var(--line-soft); }
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp tbody th { font-weight: 700; border-bottom: 1px solid var(--line-soft); }
.cmp tr.us { background: var(--blue-50); }
.cmp tr.us th, .cmp tr.us td { color: var(--blue-700); font-weight: 700; }
.lvl { font-weight: 600; font-size: 12.5px; }
.lvl.s { color: #1b7a52; }
.lvl.m { color: var(--amber); }
.lvl.l { color: #b04a4a; }

/* ---------- Market ---------- */
.stat { text-align: left; }
.stat .v { font-size: clamp(34px, 4vw, 50px); font-weight: 800; letter-spacing: -.03em; color: var(--blue); line-height: 1; }
.stat .l { margin-top: 12px; font-size: 15px; color: var(--ink-2); font-weight: 600; }
.stat .src { margin-top: 8px; font-family: var(--mono); font-size: 11px; color: var(--muted-2); }
.market-note { margin-top: 40px; display: grid; gap: 12px; }
.market-note .row { display: flex; gap: 12px; align-items: start; font-size: 15.5px; color: var(--muted); }
.market-note .row svg { width: 20px; height: 20px; color: var(--blue); flex: none; margin-top: 2px; }
.market-note .row b { color: var(--ink); font-weight: 600; }

/* ---------- Roadmap ---------- */
.roadmap { background: var(--ink); color: #fff; }
.roadmap .eyebrow { color: #7fb0e6; }
.roadmap .eyebrow::before { background: #7fb0e6; }
.roadmap .section-head h2 { color: #fff; }
.roadmap .section-head p { color: #aab8c9; }
.rm-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.rm {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r); padding: 26px; position: relative;
}
.rm .ph { font-family: var(--mono); font-size: 12px; color: #7fb0e6; letter-spacing: .08em; }
.rm h4 { font-size: 19px; font-weight: 700; margin: 8px 0 14px; }
.rm li { font-size: 14px; color: #c2cdda; padding: 7px 0 7px 26px; position: relative; border-bottom: 1px solid rgba(255,255,255,.06); }
.rm li:last-child { border-bottom: 0; }
.rm li::before { content: ""; position: absolute; left: 4px; top: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.rm.now { border-color: rgba(47,102,176,.5); background: rgba(47,102,176,.1); }
.rm-status { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; font-family: var(--mono); padding: 4px 10px; border-radius: 100px; background: rgba(31,155,142,.16); color: #6fdac9; margin-bottom: 16px; }
.rm-status i { width: 6px; height: 6px; border-radius: 50%; background: #6fdac9; }

/* ---------- Contact / CTA ---------- */
.contact { background: linear-gradient(180deg, var(--slate-50), #fff); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.08; letter-spacing: -.02em; font-weight: 800; text-wrap: balance; }
.contact .lede { margin-top: 18px; font-size: 18px; }
.ask-list { margin-top: 28px; display: grid; gap: 14px; }
.ask { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.ask .ic { width: 40px; height: 40px; border-radius: 10px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--blue); flex: none; }
.ask .ic svg { width: 20px; height: 20px; }
.ask h4 { font-size: 15.5px; font-weight: 700; }
.ask p { font-size: 14px; color: var(--muted); margin-top: 2px; }

.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow); }
.contact-card h3 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.contact-card .note { font-size: 14px; color: var(--muted); margin-top: 6px; margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--slate-50); transition: border-color .15s, box-shadow .15s, background .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(47,102,176,.13);
}
.field textarea { resize: vertical; min-height: 96px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-submit { width: 100%; justify-content: center; margin-top: 6px; }
.form-msg { margin-top: 14px; font-size: 14px; font-weight: 600; padding: 12px 14px; border-radius: var(--r-sm); display: none; }
.form-msg.ok { display: block; background: #e6f5ee; color: #1b7a52; }
.direct { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line-soft); display: grid; gap: 12px; }
.direct a { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; color: var(--ink); transition: color .15s; }
.direct a:hover { color: var(--blue); }
.direct a svg { width: 20px; height: 20px; color: var(--blue); flex: none; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #aab8c9; padding: 56px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer .brand .erp { color: #fff; }
.footer .brand .linked { color: #7fb0e6; }
.footer .about { font-size: 14.5px; max-width: 320px; color: #93a2b6; }
.footer h5 { color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer-col a, .footer-col span { display: block; font-size: 14.5px; color: #aab8c9; padding: 5px 0; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bot { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; font-size: 13px; gap: 14px; flex-wrap: wrap; }
.footer-bot .tag { font-family: var(--mono); color: #7fb0e6; }

/* ---------- Reveal anim (only hides when JS is active, so content never strands) ---------- */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .mock { transform: none; }
}

/* ---------- Mobile menu panel ---------- */
.mobile-panel {
  display: none; position: fixed; inset: 72px 0 auto 0; z-index: 49;
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 16px 24px 24px; box-shadow: var(--shadow-lg);
}
.mobile-panel.open { display: block; }
.mobile-panel a { display: block; padding: 13px 4px; font-size: 16px; font-weight: 600; border-bottom: 1px solid var(--line-soft); color: var(--ink); }
.mobile-panel .btn { margin-top: 16px; width: 100%; justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .problem-grid, .diff-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .mock { transform: none; max-width: 520px; }
  .g-4 { grid-template-columns: repeat(2,1fr); }
  .flow { grid-template-columns: repeat(3,1fr); gap: 28px 14px; }
  .flow::before { display: none; }
  .roles { grid-template-columns: 1fr; }
  .rm-grid { grid-template-columns: 1fr; }
  .diff-grid { gap: 36px; }
}
@media (max-width: 760px) {
  .section { padding: 72px 0; }
  .nav-links, .nav-cta .btn { display: none; }
  .menu-toggle { display: block; }
  .strip-inner { grid-template-columns: 1fr 1fr; }
  .g-3, .g-2 { grid-template-columns: 1fr; }
  .stat { text-align: center; }
  .market-note { max-width: 480px; margin-inline: auto; }
  .promise { padding: 28px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .cmp { font-size: 12.5px; }
  .cmp th, .cmp td { padding: 10px 9px; }
}
@media (max-width: 460px) {
  .flow { grid-template-columns: repeat(2,1fr); }
  body { font-size: 16px; }
}
