/* ============================================================
   MEC Campaigns — marketing site
   Design tokens mirrored from the campaign product UI
   (style-ref/frontend): navy #1B2A4A, blue #2E75B6,
   accent orange #E67E22, system font stack, soft cards.
   ============================================================ */

:root {
  --navy: #1B2A4A;
  --blue: #2E75B6;
  --accent: #E67E22;
  --ink: #333;
  --muted: #666;
  --faint: #999;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-tint: #f0f4ff;
  --green: #22c55e;

  --hero-gradient: linear-gradient(135deg, #1B2A4A 0%, #2E75B6 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.12);
  --radius: 12px;
  --radius-lg: 16px;
  --maxw: 1100px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

/* Accessible focus ring across interactive elements */
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 but available to screen readers */
.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: -48px;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 1100;
  transition: top 150ms ease;
}
.skip-link:focus { top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  border: 2px solid transparent;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(230, 126, 34, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(230, 126, 34, 0.45); }
.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.btn-ghost {
  background: var(--navy);
  color: #fff;
}
.btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--hero-gradient);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.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: 16px; }

/* ---------- Hero ---------- */
.hero {
  background: var(--hero-gradient);
  color: #fff;
  text-align: center;
  padding: 96px 0 104px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% -10%, rgba(255,255,255,0.14), transparent 55%);
  pointer-events: none;
}
.hero-content { max-width: 760px; margin: 0 auto; position: relative; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 54px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.hero .subhead {
  font-size: clamp(17px, 2.4vw, 20px);
  font-weight: 300;
  opacity: 0.92;
  line-height: 1.6;
  max-width: 620px;
  margin: 0 auto 32px;
}
.hero-divider {
  width: 60px; height: 3px;
  background: var(--accent);
  margin: 0 auto 32px;
  border-radius: 3px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 22px;
  font-size: 13px;
  opacity: 0.75;
}

/* ---------- Section scaffolding ---------- */
.section { padding: 80px 0; }
.section-tint { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head.tight { margin-bottom: 36px; }
.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.section-head p {
  font-size: 17px;
  color: var(--muted);
}

/* ---------- What it does ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.intro-item { text-align: center; padding: 8px; }
.intro-item .num {
  font-size: 15px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
}
.intro-item h3 { font-size: 18px; color: var(--navy); margin-bottom: 8px; }
.intro-item p { font-size: 15px; color: var(--muted); }

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

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: step;
  position: relative;
}
.step { position: relative; padding: 8px 4px; }
.step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--hero-gradient);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.step h3 { font-size: 18px; color: var(--navy); margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--muted); }

/* ---------- Social proof ---------- */
.proof { text-align: center; }
.quote {
  max-width: 760px;
  margin: 0 auto 48px;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 600;
  line-height: 1.5;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.quote .accent { color: var(--blue); }
.quote-attr {
  display: block;
  margin-top: 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}
.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px;
}
.logo-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--faint);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.logo-chip .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--line);
}
.stats-row {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
  margin-top: 56px;
}
.stat .figure { font-size: 38px; font-weight: 800; color: var(--navy); }
.stat .label { font-size: 14px; color: var(--muted); }

/* ---------- Final CTA ---------- */
.final-cta {
  background: var(--hero-gradient);
  color: #fff;
  text-align: center;
  padding: 84px 0;
  position: relative;
  overflow: hidden;
}
.final-cta::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(230,126,34,0.22), transparent 55%);
  pointer-events: none;
}
.final-cta .inner { position: relative; max-width: 600px; margin: 0 auto; }
.final-cta h2 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.final-cta p { font-size: 17px; opacity: 0.9; margin-bottom: 32px; }

.email-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}
.email-form input[type="email"] {
  flex: 1;
  padding: 15px 18px;
  font-size: 16px;
  font-family: inherit;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
}
.email-form input::placeholder { color: var(--faint); }
.email-form .btn-primary { box-shadow: 0 4px 16px rgba(0,0,0,0.18); }
.form-note { margin-top: 16px; font-size: 13px; opacity: 0.75; }
.form-success {
  margin-top: 18px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: rgba(34, 197, 94, 0.22);
  border: 1px solid rgba(34, 197, 94, 0.5);
  border-radius: 10px;
  padding: 14px 18px;
  display: none;
}
.form-success.show { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 48px 0 32px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand { display: flex; flex-direction: column; gap: 10px; max-width: 320px; }
.footer-brand .brand { color: #fff; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.6); }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 10px;
  transition: color 150ms ease;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .intro-grid, .feature-grid, .steps { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .section { padding: 60px 0; }
  .hero { padding: 72px 0 80px; }
  .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; }
  .footer-top { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
