/* ============================================================
   MESa — shared stylesheet
   ============================================================ */
:root {
  --ink: #0b1220;
  --ink-soft: #3d4759;
  --ink-mute: #6b7488;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-deep: #0b1220;
  --line: #e6e9f0;
  --accent: #2d7dd2;
  --accent-dark: #1e5fa8;
  --accent-soft: #eaf3fc;
  --mick: #7c5cff;
  --eva: #2d7dd2;
  --sally: #0ea87e;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 18, 32, 0.04), 0 8px 24px rgba(11, 18, 32, 0.06);
  --shadow-lg: 0 2px 4px rgba(11, 18, 32, 0.05), 0 20px 48px rgba(11, 18, 32, 0.12);
  --font: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, 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;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.nav-logo-img {
  height: 40px;
  width: auto;
  display: block;
}
.nav-logo .dot { color: var(--accent); }
.nav-logo .tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--accent); }
.btn-nav {
  background: var(--ink);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.15s ease;
}
.btn-nav:hover { background: #1e2a42; }
.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15.5px;
  transition: all 0.15s ease;
  cursor: pointer;
  border: none;
  font-family: var(--font);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(45, 125, 210, 0.35);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink-mute); background: var(--bg-soft); }
.btn-light {
  background: #fff;
  color: var(--ink);
}
.btn-light:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -300px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(45, 125, 210, 0.10) 0%, transparent 65%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero-badge .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sally);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(14, 168, 126, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(14, 168, 126, 0); }
}
.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  max-width: 880px;
  margin: 0 auto 24px;
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--accent) 0%, var(--mick) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .sub {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--ink-soft);
  max-width: 660px;
  margin: 0 auto 40px;
  line-height: 1.65;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 20px; font-size: 13.5px; color: var(--ink-mute); }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
section.soft { background: var(--bg-soft); }
section.deep { background: var(--bg-deep); color: #fff; }
.kicker {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 14px;
}
.deep .kicker { color: #7ab8e8; }
h2.title {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  max-width: 720px;
  margin-bottom: 18px;
}
.section-lead {
  font-size: 17.5px;
  color: var(--ink-soft);
  max-width: 640px;
  line-height: 1.7;
}
.deep .section-lead { color: #b9c2d4; }
.center { text-align: center; }
.center h2.title, .center .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- Cards / grids ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 52px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 52px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.card p { color: var(--ink-soft); font-size: 15px; line-height: 1.65; }

/* Agent cards */
.agent-card { position: relative; overflow: hidden; padding-top: 36px; }
.agent-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}
.agent-card.mick::before { background: var(--mick); }
.agent-card.eva::before { background: var(--eva); }
.agent-card.sally::before { background: var(--sally); }
.agent-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 21px;
  color: #fff;
  margin-bottom: 18px;
}
.mick .agent-avatar { background: linear-gradient(135deg, #9d85ff, var(--mick)); }
.eva .agent-avatar { background: linear-gradient(135deg, #5ba3e8, var(--eva)); }
.sally .agent-avatar { background: linear-gradient(135deg, #3cc9a0, var(--sally)); }
.agent-role {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 4px;
}
.mick .agent-role { color: var(--mick); }
.eva .agent-role { color: var(--eva); }
.sally .agent-role { color: var(--sally); }
.agent-card h3 { font-size: 24px; margin-bottom: 12px; }
.agent-card ul { margin-top: 16px; }
.agent-card ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 9px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.agent-card ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--ink-mute);
}

/* ---------- Stats band ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.stat {
  text-align: center;
  padding: 28px 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
}
.stat .num {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(100deg, #7ab8e8, #b5a0ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat .lbl { font-size: 14px; color: #b9c2d4; margin-top: 6px; }

/* ---------- Steps ---------- */
.steps { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { position: relative; padding: 0 8px; }
.step .n {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 17px;
}
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.step p { color: var(--ink-soft); font-size: 15px; }

/* ---------- Feature rows ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 72px;
}
.feature-row:first-of-type { margin-top: 56px; }
.feature-row .visual {
  background: linear-gradient(145deg, var(--bg-soft), #eef2f8);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.feature-row h3 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.feature-row p { color: var(--ink-soft); font-size: 16px; }
.feature-row ul { margin-top: 18px; }
.feature-row ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: 15px;
}
.feature-row ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--sally);
  font-weight: 700;
}

/* ---------- Checklist / compliance ---------- */
.check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 48px;
}
.check-item {
  display: flex;
  gap: 16px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--line);
}
.deep .check-item {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.09);
}
.check-item .ic {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.deep .check-item .ic { background: rgba(122, 184, 232, 0.15); color: #7ab8e8; }
.check-item h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.check-item p { font-size: 14px; color: var(--ink-soft); }
.deep .check-item p { color: #b9c2d4; }

/* ---------- Quote ---------- */
.quote-band { text-align: center; }
.quote-band blockquote {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.45;
  max-width: 820px;
  margin: 0 auto;
  color: var(--ink);
}
.quote-band .attribution { margin-top: 24px; font-size: 15px; color: var(--ink-mute); }
.quote-band .attribution strong { color: var(--ink); font-weight: 600; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 52px; }
.team-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow);
}
.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 24px;
  color: #fff;
  background: linear-gradient(135deg, #5ba3e8, var(--accent-dark));
}
.team-card h4 { font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; }
.team-card .role { font-size: 13px; color: var(--accent); font-weight: 600; margin: 3px 0 10px; }
.team-card p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; }

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  padding: 96px 0;
}
.cta-band h2 {
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 720px;
  margin: 0 auto 18px;
}
.cta-band p { color: #b9c2d4; font-size: 17.5px; max-width: 560px; margin: 0 auto 36px; }

/* ---------- Dashboard mock ---------- */
.dash {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-size: 12px;
}
.dash-top {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.dash-top .d { width: 9px; height: 9px; border-radius: 50%; }
.dash-top .d:nth-child(1) { background: #f87171; }
.dash-top .d:nth-child(2) { background: #fbbf24; }
.dash-top .d:nth-child(3) { background: #34d399; }
.dash-top .t { margin-left: 10px; color: var(--ink-mute); font-weight: 600; }
.dash-body { padding: 18px; display: grid; gap: 12px; }
.dash-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dash-kpi {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}
.dash-kpi .k { color: var(--ink-mute); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.dash-kpi .v { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; margin-top: 2px; }
.dash-kpi .v.up { color: var(--sally); }
.dash-bar-wrap { border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.dash-bar-wrap .k { color: var(--ink-mute); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; margin-bottom: 10px; }
.dash-bars { display: flex; align-items: flex-end; gap: 8px; height: 70px; }
.dash-bars span { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #5ba3e8, var(--accent)); }

/* ---------- Footer ---------- */
footer {
  background: var(--bg-deep);
  color: #8e99ad;
  padding: 56px 0 40px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-logo { font-weight: 800; font-size: 20px; color: #fff; letter-spacing: -0.02em; }
.footer-logo .dot { color: var(--accent); }
.footer-grid p { margin-top: 12px; max-width: 300px; line-height: 1.6; }
.footer-grid h5 {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.footer-grid ul li { margin-bottom: 9px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

/* ---------- Page hero (subpages) ---------- */
.page-hero { padding: 80px 0 56px; }
.page-hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 800px;
  margin-bottom: 20px;
}
.page-hero .sub { font-size: 18px; color: var(--ink-soft); max-width: 640px; line-height: 1.7; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .steps, .stats { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  section { padding: 64px 0; }
  .hero { padding: 64px 0 56px; }
  .grid-3, .grid-2, .steps, .stats, .check-grid, .team-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 20px 24px;
    gap: 18px;
    align-items: flex-start;
  }
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--ink);
  }
}
