/* ============================================================
   MEC Campaigns — marketing site
   Direction: authoritative / institutional.
   Palette mirrored from the product UI: navy #1B2A4A, blue
   #2E75B6, accent orange #E67E22. Serif display (Source Serif 4)
   + Inter body, self-hosted.
   ============================================================ */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family:'Inter'; font-style:normal; font-weight:400; font-display:swap; src:url('fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-style:normal; font-weight:500; font-display:swap; src:url('fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-style:normal; font-weight:600; font-display:swap; src:url('fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-style:normal; font-weight:700; font-display:swap; src:url('fonts/inter-700.woff2') format('woff2'); }
@font-face { font-family:'Source Serif 4'; font-style:normal; font-weight:600; font-display:swap; src:url('fonts/sourceserif-600.woff2') format('woff2'); }
@font-face { font-family:'Source Serif 4'; font-style:normal; font-weight:700; font-display:swap; src:url('fonts/sourceserif-700.woff2') format('woff2'); }

:root {
  --navy: #1B2A4A;
  --navy-700: #16223c;
  --blue: #2E75B6;
  --blue-ink: #245e94;
  --accent: #E67E22;
  --ink: #1f2733;
  --muted: #5b6472;
  --faint: #8b93a1;
  --line: #e7eaef;
  --line-soft: #eef1f6;
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --bg-tint: #eef3fb;
  --green: #22c55e;

  --hero-gradient: linear-gradient(135deg, #1B2A4A 0%, #2E75B6 100%);
  --shadow-sm: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.10);
  --shadow-md: 0 12px 28px rgba(16,24,40,.10), 0 2px 6px rgba(16,24,40,.06);
  --shadow-lg: 0 30px 60px -12px rgba(16,24,40,.22), 0 8px 24px rgba(16,24,40,.10);
  --radius: 12px;
  --radius-lg: 18px;
  --maxw: 1120px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body {
  font-family:var(--font-sans);
  color:var(--ink);
  background:var(--bg);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:clip; /* safety net: never let the page scroll sideways (keeps sticky header working) */
}
a { color:inherit; text-decoration:none; }
img { max-width:100%; display:block; }

h1, h2, h3, .quote { font-family:var(--font-serif); }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline:3px solid var(--accent);
  outline-offset:2px;
  border-radius:4px;
}

.container { width:100%; max-width:var(--maxw); margin:0 auto; padding:0 24px; }

.visually-hidden {
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}
.skip-link {
  position:absolute; left:16px; top:-56px;
  background:var(--navy); color:#fff; padding:10px 16px;
  border-radius:8px; z-index:1100; transition:top 150ms ease;
}
.skip-link:focus { top:16px; }

/* thin institutional accent bar */
.topbar { height:4px; background:linear-gradient(90deg, var(--navy) 0%, var(--blue) 55%, var(--accent) 100%); }

/* ---------- Buttons ---------- */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:12px 22px; font-size:15px; font-weight:600; font-family:inherit;
  border:1.5px solid transparent; border-radius:10px; cursor:pointer;
  transition:transform 150ms ease, box-shadow 150ms ease, background 150ms ease, border-color 150ms ease;
  white-space:nowrap; letter-spacing:.005em;
}
.btn-lg { padding:15px 28px; font-size:16px; }
.btn-sm { padding:9px 18px; font-size:14px; }
.btn-primary { background:var(--accent); color:#fff; box-shadow:0 6px 16px rgba(230,126,34,.28); }
.btn-primary:hover { transform:translateY(-2px); box-shadow:0 10px 24px rgba(230,126,34,.36); }
.btn-outline { background:transparent; color:var(--navy); border-color:var(--line); }
.btn-outline:hover { border-color:var(--navy); background:#fff; transform:translateY(-2px); box-shadow:var(--shadow-sm); }
.hero .btn-outline { color:var(--navy); border-color:#cfd8e6; background:rgba(255,255,255,.7); }
.section-navy .btn-primary, .final-cta .btn-primary { box-shadow:0 8px 22px rgba(0,0,0,.22); }

/* ---------- Header ---------- */
.site-header {
  position:sticky; top:0; z-index:1000;
  background:rgba(255,255,255,.85);
  backdrop-filter:saturate(180%) blur(12px);
  -webkit-backdrop-filter:saturate(180%) blur(12px);
  border-bottom:1px solid var(--line);
}
.site-header .container { display:flex; align-items:center; justify-content:space-between; height:66px; }
.brand { display:flex; align-items:center; gap:11px; font-weight:700; font-size:18px; color:var(--navy); letter-spacing:-.01em; }
.brand-name { font-family:var(--font-serif); }
.brand-mark {
  width:32px; height:32px; border-radius:8px; background:var(--hero-gradient);
  display:grid; place-items:center; color:#fff; font-size:16px; font-weight:700;
  font-family:var(--font-serif); box-shadow:inset 0 0 0 1px rgba(255,255,255,.12);
}
.nav-links { display:flex; align-items:center; gap:30px; }
.nav-links a { font-size:15px; font-weight:500; color:var(--muted); transition:color 150ms ease; }
.nav-links a:hover { color:var(--navy); }
.nav-cta { display:flex; align-items:center; gap:14px; }

/* ---------- Hero ---------- */
.hero { position:relative; background:var(--bg-soft); padding:78px 0 0; overflow:hidden; }
.hero-bg { position:absolute; inset:0; pointer-events:none;
  background-image:
    radial-gradient(circle at 50% -8%, rgba(46,117,182,.10), transparent 42%),
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size:100% 100%, 44px 44px, 44px 44px;
  mask-image:linear-gradient(180deg, #000 0%, #000 55%, transparent 92%);
  -webkit-mask-image:linear-gradient(180deg, #000 0%, #000 55%, transparent 92%);
}
.hero-content { position:relative; max-width:820px; margin:0 auto; text-align:center; }
.eyebrow {
  display:inline-block; font-size:12.5px; font-weight:600; letter-spacing:.09em;
  text-transform:uppercase; color:var(--blue-ink); background:#fff;
  border:1px solid var(--line); padding:7px 15px; border-radius:50px;
  margin-bottom:24px; box-shadow:var(--shadow-sm);
}
.hero h1 { font-size:clamp(36px, 6vw, 60px); font-weight:700; line-height:1.06; letter-spacing:-.02em; color:var(--navy); margin-bottom:22px; }
.hero .subhead { font-size:clamp(17px, 2.2vw, 20px); color:var(--muted); line-height:1.6; max-width:640px; margin:0 auto 34px; }
.hero-actions { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }
.hero-note { margin-top:22px; font-size:13px; color:var(--faint); font-weight:500; }

/* ---------- Product mockup ---------- */
.product-shot { position:relative; margin:56px auto 0; max-width:960px; }
.product-shot::before {
  content:""; position:absolute; left:50%; top:8%; transform:translateX(-50%);
  width:80%; height:80%; background:radial-gradient(ellipse at center, rgba(46,117,182,.18), transparent 70%);
  filter:blur(30px); z-index:0;
}
.window {
  position:relative; z-index:1; border-radius:14px; overflow:hidden;
  background:#fff; border:1px solid var(--line); box-shadow:var(--shadow-lg);
}
.window-bar { display:flex; align-items:center; gap:7px; padding:11px 14px; background:#f3f5f9; border-bottom:1px solid var(--line); }
.window-bar .dot { width:11px; height:11px; border-radius:50%; }
.dot-r{ background:#f87171; } .dot-y{ background:#fbbf24; } .dot-g{ background:#34d399; }
.window-url { margin-left:12px; font-size:12px; color:var(--faint); background:#fff; border:1px solid var(--line); border-radius:6px; padding:4px 12px; }
.window-body { display:flex; min-height:340px; background:#fbfcfe; text-align:left; }
.app-rail { width:56px; background:var(--navy); display:flex; flex-direction:column; align-items:center; gap:16px; padding:16px 0; }
.rail-brand { margin-bottom:6px; }
.rail-mark { width:30px; height:30px; border-radius:7px; background:var(--hero-gradient); display:grid; place-items:center; color:#fff; font-weight:700; font-family:var(--font-serif); font-size:15px; }
.rail-ico { width:22px; height:22px; border-radius:6px; background:rgba(255,255,255,.12); }
.rail-ico.is-active { background:var(--accent); }
.app-main { flex:1; padding:20px 22px; min-width:0; }
.app-top { display:flex; align-items:flex-start; justify-content:space-between; margin-bottom:18px; }
.app-title { font-family:var(--font-serif); font-weight:700; font-size:17px; color:var(--navy); }
.app-sub { font-size:12px; color:var(--faint); margin-top:2px; }
.app-live { display:inline-flex; align-items:center; gap:7px; font-size:12px; font-weight:600; color:var(--blue-ink); background:var(--bg-tint); border:1px solid #dbe6f6; padding:5px 11px; border-radius:50px; }
.live-dot { width:7px; height:7px; border-radius:50%; background:var(--green); box-shadow:0 0 0 3px rgba(34,197,94,.18); }

.kpi-row { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:16px; }
.kpi { min-width:0; background:#fff; border:1px solid var(--line); border-radius:10px; padding:12px 14px; }
.kpi-label { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.kpi-label { font-size:11px; color:var(--faint); font-weight:500; text-transform:uppercase; letter-spacing:.04em; }
.kpi-val { font-size:22px; font-weight:700; color:var(--navy); font-family:var(--font-serif); margin:2px 0; }
.kpi-trend { font-size:11px; font-weight:600; color:var(--faint); }
.kpi-trend.up { color:#12a150; }

.panel-row { display:grid; grid-template-columns:1.5fr 1fr; gap:12px; }
.panel { min-width:0; background:#fff; border:1px solid var(--line); border-radius:10px; padding:14px; }
.panel-head { display:flex; align-items:center; justify-content:space-between; font-size:13px; font-weight:600; color:var(--navy); margin-bottom:12px; }
.panel-tag { font-size:11px; font-weight:500; color:var(--faint); background:var(--bg-soft); border:1px solid var(--line); border-radius:20px; padding:2px 9px; }
.chart { display:flex; align-items:flex-end; gap:6px; height:120px; }
.chart span { flex:1; background:linear-gradient(180deg, #6aa3d8, var(--blue)); border-radius:4px 4px 0 0; min-width:0; }
.chart span.is-today { background:linear-gradient(180deg, #f0a35a, var(--accent)); }
.mini-list { list-style:none; display:flex; flex-direction:column; gap:9px; }
.mini-list li { display:flex; align-items:center; justify-content:space-between; font-size:13px; }
.ml-name { color:var(--ink); font-weight:500; }
.ml-pill { font-size:11px; font-weight:600; padding:2px 9px; border-radius:20px; }
.ml-pill.ok { color:#12a150; background:#e7f7ee; }
.ml-pill.wait { color:var(--blue-ink); background:var(--bg-tint); }
.ml-pill.mute { color:var(--faint); background:var(--bg-soft); }

.shot-caption { text-align:center; font-size:12px; color:var(--faint); margin:16px 0 0; padding-bottom:64px; }

/* ---------- Trust band ---------- */
.trust-band { border-top:1px solid var(--line); border-bottom:1px solid var(--line); background:#fff; }
.trust-inner { display:grid; grid-template-columns:repeat(4,1fr); gap:0; }
.trust-item { padding:26px 24px; text-align:center; border-left:1px solid var(--line-soft); }
.trust-item:first-child { border-left:0; }
.trust-item strong { display:block; font-size:15px; color:var(--navy); font-weight:700; margin-bottom:3px; }
.trust-item span { font-size:13px; color:var(--muted); }

/* ---------- Section scaffolding ---------- */
.section { padding:86px 0; }
.section-tint { background:var(--bg-soft); }
.section-head { text-align:center; max-width:660px; margin:0 auto 54px; }
.kicker { font-size:12.5px; font-weight:700; letter-spacing:.09em; text-transform:uppercase; color:var(--blue); margin-bottom:14px; }
.kicker.on-dark { color:#8fb8e0; }
.section-head h2 { font-size:clamp(28px, 4vw, 38px); font-weight:700; color:var(--navy); letter-spacing:-.015em; line-height:1.15; margin-bottom:16px; }
.section-head p { font-size:17px; color:var(--muted); }

/* ---------- What it does ---------- */
.intro-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:30px; }
.intro-item { text-align:left; padding:26px; background:#fff; border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow-sm); }
.intro-item .num { font-family:var(--font-serif); font-size:20px; font-weight:700; color:var(--accent); margin-bottom:10px; }
.intro-item h3 { font-size:19px; color:var(--navy); margin-bottom:8px; font-weight:600; }
.intro-item p { font-size:15px; color:var(--muted); }

/* ---------- Features ---------- */
.feature-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.feature-card {
  background:var(--bg); border:1px solid var(--line); border-radius:var(--radius);
  padding:28px; box-shadow:var(--shadow-sm); transition:transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.feature-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-md); border-color:#d7deea; }
.feature-icon { width:48px; height:48px; border-radius:11px; background:var(--bg-tint); color:var(--blue); display:grid; place-items:center; margin-bottom:18px; border:1px solid #dbe6f6; }
.feature-icon svg { width:24px; height:24px; }
.feature-card h3 { font-size:18px; color:var(--navy); margin-bottom:8px; font-weight:600; }
.feature-card p { font-size:14.5px; color:var(--muted); line-height:1.65; }

/* ---------- How it works ---------- */
.steps { display:grid; grid-template-columns:repeat(3,1fr); gap:30px; position:relative; }
.step { position:relative; padding:4px; }
.step-num { width:46px; height:46px; border-radius:12px; background:var(--hero-gradient); color:#fff; font-weight:700; font-size:19px; font-family:var(--font-serif); display:grid; place-items:center; margin-bottom:18px; box-shadow:var(--shadow-sm); }
.step h3 { font-size:19px; color:var(--navy); margin-bottom:8px; font-weight:600; }
.step p { font-size:15px; color:var(--muted); }

/* ---------- Security & compliance (navy) ---------- */
.section-navy { background:var(--navy); color:rgba(255,255,255,.86); position:relative; overflow:hidden; }
.section-navy::after { content:""; position:absolute; inset:0; background:radial-gradient(circle at 85% -10%, rgba(46,117,182,.35), transparent 45%); pointer-events:none; }
.trust-grid { position:relative; display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center; }
.trust-copy h2 { font-size:clamp(26px,3.4vw,34px); color:#fff; letter-spacing:-.015em; line-height:1.18; margin-bottom:16px; font-weight:700; }
.trust-copy p { color:rgba(255,255,255,.72); font-size:16px; margin-bottom:28px; }
.trust-points { list-style:none; display:flex; flex-direction:column; gap:16px; }
.trust-points li { display:flex; gap:14px; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.12); border-radius:12px; padding:16px 18px; }
.tp-ico { flex:none; width:26px; height:26px; border-radius:50%; background:var(--accent); color:#fff; display:grid; place-items:center; font-size:14px; font-weight:700; }
.trust-points strong { display:block; color:#fff; font-size:15.5px; font-weight:600; margin-bottom:3px; }
.trust-points div { font-size:14px; color:rgba(255,255,255,.68); line-height:1.55; }

/* ---------- Why / proof ---------- */
.proof { text-align:center; }
.quote { max-width:800px; margin:0 auto 8px; font-size:clamp(22px,3vw,30px); font-weight:600; line-height:1.42; color:var(--navy); letter-spacing:-.01em; }
.quote .accent { color:var(--blue); }
.stats-row { display:flex; justify-content:center; gap:64px; flex-wrap:wrap; margin-top:52px; }
.stat .figure { font-family:var(--font-serif); font-size:30px; font-weight:700; color:var(--navy); }
.stat .label { font-size:14px; color:var(--muted); margin-top:4px; }

/* ---------- Final CTA ---------- */
.final-cta { background:var(--hero-gradient); color:#fff; text-align:center; padding:90px 0; position:relative; overflow:hidden; }
.final-cta::after { content:""; position:absolute; inset:0; background:radial-gradient(circle at 50% 130%, rgba(230,126,34,.28), transparent 55%); pointer-events:none; }
.final-cta .inner { position:relative; max-width:600px; margin:0 auto; }
.final-cta h2 { font-size:clamp(28px,4vw,40px); font-weight:700; letter-spacing:-.015em; margin-bottom:14px; }
.final-cta > .inner > p { font-size:17px; opacity:.9; margin-bottom:32px; }
.email-form { display:flex; gap:12px; max-width:500px; margin:0 auto; }
.email-form input[type="email"] {
  flex:1; padding:15px 18px; font-size:16px; font-family:inherit;
  border:1.5px solid rgba(255,255,255,.4); border-radius:10px; background:rgba(255,255,255,.97); color:var(--ink);
}
.email-form input::placeholder { color:var(--faint); }
.form-note { margin-top:16px; font-size:13px; opacity:.75; }
.form-success { margin-top:18px; font-size:16px; font-weight:600; color:#fff; background:rgba(34,197,94,.22); border:1px solid rgba(34,197,94,.5); border-radius:10px; padding:14px 18px; display:none; }
.form-success.show { display:block; }

/* ---------- Footer ---------- */
.site-footer { background:var(--navy-700); color:rgba(255,255,255,.7); padding:52px 0 34px; }
.footer-top { display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:28px; padding-bottom:30px; border-bottom:1px solid rgba(255,255,255,.1); }
.footer-brand { display:flex; flex-direction:column; gap:12px; max-width:320px; }
.footer-brand .brand { color:#fff; }
.footer-brand p { font-size:14px; color:rgba(255,255,255,.55); }
.footer-cols { display:flex; gap:64px; flex-wrap:wrap; }
.footer-col h4 { font-size:12.5px; text-transform:uppercase; letter-spacing:.07em; color:rgba(255,255,255,.5); margin-bottom:14px; }
.footer-col a { display:block; font-size:14px; color:rgba(255,255,255,.78); margin-bottom:10px; transition:color 150ms ease; }
.footer-col a:hover { color:#fff; }
.footer-bottom { margin-top:26px; font-size:13px; color:rgba(255,255,255,.45); text-align:center; }

/* ---------- Responsive ---------- */
@media (max-width:900px) {
  .trust-grid { grid-template-columns:1fr; gap:36px; }
  .panel-row { grid-template-columns:1fr; }
}
@media (max-width:860px) {
  .intro-grid, .feature-grid, .steps { grid-template-columns:1fr 1fr; }
  .nav-links { display:none; }
  .trust-inner { grid-template-columns:1fr 1fr; }
  .trust-item:nth-child(3) { border-left:0; }
  .trust-item { border-top:1px solid var(--line-soft); }
  .trust-item:nth-child(1), .trust-item:nth-child(2) { border-top:0; }
  .kpi-row { grid-template-columns:1fr 1fr; }
}
@media (max-width:600px) {
  .section { padding:60px 0; }
  .hero { padding:56px 0 0; }
  .intro-grid, .feature-grid, .steps { grid-template-columns:1fr; }
  .hero-actions { flex-direction:column; }
  .hero-actions .btn { width:100%; }
  .email-form { flex-direction:column; }
  .email-form .btn { width:100%; }
  .stats-row { gap:32px; }
  .trust-inner { grid-template-columns:1fr; }
  .trust-item { border-left:0 !important; border-top:1px solid var(--line-soft); }
  .trust-item:first-child { border-top:0; }
  .footer-top { flex-direction:column; }
  .app-rail { display:none; }
  .window-body { min-height:0; }
  .app-main { padding:14px; }
  .kpi-row { grid-template-columns:1fr 1fr; gap:8px; }
  .kpi { padding:10px 11px; }
  .kpi-val { font-size:19px; }
  .kpi-label { font-size:10px; }
  .chart { height:96px; }
  .product-shot { margin-top:40px; }
}
@media (prefers-reduced-motion:reduce) {
  * { scroll-behavior:auto !important; transition:none !important; }
}
