/* Prodex MES marketing site — design system (light default, .dark overrides) */
:root {
  --bg: #f5f7fc;
  --bg-soft: #eceff7;
  --panel: rgba(255, 255, 255, 0.66);
  --panel-strong: rgba(255, 255, 255, 0.95);
  --line: rgba(15, 23, 42, 0.10);
  --text: #0f172a;
  --muted: #526078;
  --link: #2563eb;
  --eyebrow-text: #1d4ed8;
  --header-bg: rgba(245, 247, 252, 0.6);
  --header-bg-scrolled: rgba(245, 247, 252, 0.85);
  --shot-shadow: 0 26px 70px rgba(15, 23, 42, 0.20);
  --bar-bg: rgba(15, 23, 42, 0.04);
  --bar-dot: rgba(15, 23, 42, 0.14);
  --chat-bg: #ffffff;
  --bubble-bot: rgba(15, 23, 42, 0.06);
  --grid-line: rgba(15, 23, 42, 0.05);
  --orb-opacity: 0.28;
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --violet: #8b5cf6;
  --green: #16a34a;
  --amber: #f59e0b;
  --grad: linear-gradient(92deg, #2563eb 0%, #3b82f6 45%, #0891b2 100%);
  --radius: 18px;
  --nav-h: 72px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
html.dark {
  --bg: #070b14;
  --bg-soft: #0b1120;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --text: #e8edf7;
  --muted: #9aa7bd;
  --link: #7fb2ff;
  --eyebrow-text: #7fb2ff;
  --header-bg: rgba(7, 11, 20, 0.55);
  --header-bg-scrolled: rgba(7, 11, 20, 0.82);
  --shot-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  --bar-bg: rgba(255, 255, 255, 0.05);
  --bar-dot: rgba(255, 255, 255, 0.16);
  --chat-bg: #0d1420;
  --bubble-bot: rgba(255, 255, 255, 0.07);
  --grid-line: rgba(255, 255, 255, 0.035);
  --orb-opacity: 0.5;
  --green: #22c55e;
  --grad: linear-gradient(92deg, #60a5fa 0%, #3b82f6 45%, #06b6d4 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .3s, color .3s;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, 92vw); margin: 0 auto; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  background: var(--header-bg);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); background: var(--header-bg-scrolled); }
.nav { display: flex; align-items: center; gap: 22px; width: min(1280px, 94vw); margin: 0 auto; }
.brand { display: flex; align-items: center; }
.brand-logo { height: 38px; width: auto; display: block; }
.brand-logo-light { display: none; }
html.dark .brand-logo-dark { display: none; }
html.dark .brand-logo-light { display: block; }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a {
  padding: 8px 14px; border-radius: 10px; font-size: 14.5px; font-weight: 500; color: var(--muted);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: var(--panel-strong); }
.nav-links a.active { color: var(--text); background: var(--panel-strong); }
.lang-switch { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.lang-switch button {
  border: 0; background: transparent; color: var(--muted); font: 600 12px var(--font);
  padding: 5px 9px; border-radius: 7px; cursor: pointer; transition: all .2s;
}
.lang-switch button.on { background: var(--panel-strong); color: var(--text); }
.theme-toggle {
  border: 1px solid var(--line); background: transparent; color: var(--text);
  width: 36px; height: 36px; border-radius: 10px; cursor: pointer; font-size: 16px;
  display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.theme-toggle:hover { background: var(--panel-strong); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 12px; font: 600 15px var(--font);
  cursor: pointer; border: 1px solid transparent; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 28px rgba(59, 130, 246, .35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(59, 130, 246, .45); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--panel); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: var(--panel-strong); transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 13.5px; border-radius: 10px; }
.nav-cta { margin-left: 4px; }
.nav-burger { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ---------- Sections ---------- */
section { position: relative; padding: 96px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font: 600 12.5px var(--font);
  letter-spacing: .14em; text-transform: uppercase; color: var(--eyebrow-text);
  background: rgba(59, 130, 246, .12); border: 1px solid rgba(59, 130, 246, .25);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; }
.h-display { font-size: clamp(38px, 6vw, 66px); font-weight: 800; }
.h-section { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: 14px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lead { font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin: 0 auto; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: transform .3s, border-color .3s, background .3s;
}
.card:hover { transform: translateY(-5px); border-color: rgba(59, 130, 246, .4); background: var(--panel-strong); }
.card .icon {
  width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  font-size: 21px; margin-bottom: 16px; background: rgba(59, 130, 246, .12); border: 1px solid rgba(59, 130, 246, .25);
}
.card h3 { font-size: 18.5px; margin-bottom: 8px; font-weight: 700; }
.card p { font-size: 14.5px; color: var(--muted); }
.card .more { display: inline-block; margin-top: 14px; font: 600 13.5px var(--font); color: var(--link); }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line); font: 500 13.5px var(--font); color: var(--muted);
  white-space: nowrap;
}
.check-list { list-style: none; display: grid; gap: 12px; }
/* Block + absolute tick, not flex: a flex li turns the leading <b> into its own
   flex item, so bold labels wrapped into a ragged column instead of reading as
   one sentence. */
.check-list li { display: block; position: relative; padding-left: 34px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.check-list li::before {
  content: '✓'; position: absolute; left: 0; top: 2px; width: 22px; height: 22px;
  border-radius: 7px; display: flex; align-items: center; justify-content: center;
  background: rgba(34, 197, 94, .15); color: var(--green); font-size: 12px; font-weight: 800;
}
.check-list b { color: var(--text); font-weight: 600; }

/* ---------- Screenshot frames ---------- */
.shot {
  border-radius: 16px; overflow: hidden; border: 1px solid var(--line);
  background: var(--bg-soft); box-shadow: var(--shot-shadow);
}
.shot .bar { display: flex; gap: 6px; padding: 11px 14px; background: var(--bar-bg); border-bottom: 1px solid var(--line); }
.shot .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--bar-dot); }
.shot .bar i:first-child { background: #f87171; } .shot .bar i:nth-child(2) { background: #fbbf24; } .shot .bar i:nth-child(3) { background: #34d399; }

/* ---------- Split feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.split.rev { grid-template-columns: 1.15fr 1fr; }
.split .lead { font-size: 16px; margin: 14px 0 22px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { text-align: center; padding: 30px 16px; }
.stat .num { font-size: clamp(32px, 4.5vw, 50px); font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat .lbl { font-size: 13.5px; color: var(--muted); margin-top: 4px; }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: 26px; padding: clamp(40px, 6vw, 72px); text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(59, 130, 246, .16), rgba(6, 182, 212, .08) 55%, rgba(139, 92, 246, .12));
  border: 1px solid rgba(59, 130, 246, .3);
}
.cta-band h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; margin-bottom: 12px; }
.cta-band p { color: var(--muted); max-width: 560px; margin: 0 auto 28px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 60px 0 36px; background: var(--bg-soft); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 40px; }
.footer-logo-chip { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; display: inline-block; margin-bottom: 14px; }
.footer-logo-chip img { height: 30px; }
.site-footer h4 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 9px; }
.site-footer ul a { color: var(--muted); font-size: 14px; transition: color .2s; }
.site-footer ul a:hover { color: var(--text); }
.footer-note { font-size: 13.5px; color: var(--muted); max-width: 300px; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }

/* ---------- Page hero (subpages) ---------- */
.page-hero { padding: calc(var(--nav-h) + 84px) 0 60px; }
.page-hero .lead { margin-top: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .split.rev { grid-template-columns: 1fr; gap: 30px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--header-bg-scrolled); backdrop-filter: blur(18px);
    padding: 18px; border-bottom: 1px solid var(--line); gap: 4px;
  }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}
