/* ============================================================
   MCV Network — Design System
   Single source of truth for tokens + components.
   Derived from mcv_brand_kit.html v3.0
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

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

:root {
  /* Brand colors (from logo) */
  --mcv-navy: #204898;
  --mcv-teal: #38C0B8;

  /* Extended */
  --mcv-navy-dark: #0D1B2E;
  --mcv-blue-light: #2D6BC4;
  --mcv-teal-light: #6EE4DC;

  /* Neutrals */
  --text-primary: #1A2B4A;
  --text-secondary: #6B7C93;
  --text-muted: #8993A4;
  --bg-light: #F4F6F8;
  --bg-white: #FFFFFF;
  --border-light: #E8ECF0;
  --border: #DFE1E6;

  /* Status */
  --success: #38C0B8;
  --error: #E53935;
  --warning: #FFA726;
  --info: #2D6BC4;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #204898, #38C0B8);
  --gradient-dark: linear-gradient(135deg, #0D1B2E, #204898);
  --gradient-spectrum: linear-gradient(90deg, #204898, #2D6BC4, #38C0B8);

  /* Typography */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  /* Spacing scale (base 4px) */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);

  --maxw: 1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  line-height: 1.6;
  background: var(--bg-white);
  overflow-x: hidden;
}

a { color: var(--mcv-navy); }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 24px; }
.section-inner { max-width: var(--maxw); margin: 0 auto; }
.section.alt { background: var(--bg-light); }
.section.dark { background: var(--mcv-navy-dark); color: rgba(255,255,255,0.85); }
.section.dark .section-header h2 { color: #fff; }
.section.dark .section-header p { color: rgba(255,255,255,0.7); }

.section-header { text-align: center; margin-bottom: 48px; }
.section-header.left { text-align: left; }
.section-header h2 { font-family: var(--font-heading); font-size: 36px; font-weight: 800; color: var(--text-primary); margin-bottom: 12px; line-height: 1.2; }
.section-header p { font-size: 16px; color: var(--text-secondary); max-width: 640px; margin: 0 auto; }
.section-header.left p { margin: 0; }
.section-tag {
  display: inline-block; font-size: 12px; font-weight: 600;
  color: var(--mcv-teal); background: rgba(56,192,184,0.1);
  padding: 4px 12px; border-radius: 100px; margin-bottom: 12px;
  text-transform: uppercase; letter-spacing: 0.05em;
}

/* ---------- Buttons ---------- */
.btn {
  border: none; padding: 14px 28px; border-radius: var(--radius-md);
  font-size: 15px; font-weight: 600; cursor: pointer;
  font-family: var(--font-body); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.2s; line-height: 1;
}
.btn i { font-size: 0.85em; }
.btn-primary { background: var(--mcv-navy); color: #fff; }
.btn-primary:hover { background: var(--mcv-blue-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(32,72,152,0.2); }
.btn-teal { background: var(--mcv-teal); color: #fff; }
.btn-teal:hover { background: var(--mcv-teal-light); color: var(--mcv-navy-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(56,192,184,0.3); }
.btn-gradient { background: var(--gradient-primary); color: #fff; }
.btn-gradient:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(32,72,152,0.25); }
.btn-outline { background: #fff; color: var(--mcv-navy); border: 2px solid var(--mcv-navy); padding: 12px 26px; }
.btn-outline:hover { background: var(--mcv-navy); color: #fff; }
.btn-neutral { background: var(--bg-light); color: var(--text-primary); border: 1px solid var(--border); }
.btn-neutral:hover { background: #e9edf1; }
.btn-dark { background: var(--mcv-navy-dark); color: #fff; }
.btn-dark:hover { background: #16263d; transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 16px; }

/* ---------- Navigation ---------- */
.mcv-nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 200;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light); padding: 14px 0;
}
.mcv-nav .nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { height: 34px; width: auto; display: block; }
.nav-logo-text { font-family: var(--font-heading); font-size: 22px; font-weight: 900; color: var(--mcv-navy); letter-spacing: -0.5px; }
.nav-logo-text span { color: var(--mcv-teal); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--mcv-navy); }
.nav-cta { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.nav-login { font-size: 14px; font-weight: 600; color: var(--mcv-navy); text-decoration: none; white-space: nowrap; }
.btn-nav { white-space: nowrap; }
.btn-nav { background: var(--mcv-navy); color: #fff; padding: 10px 20px; border-radius: var(--radius-md); font-size: 13px; font-weight: 600; text-decoration: none; transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px; }
.btn-nav:hover { background: var(--mcv-blue-light); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(32,72,152,0.25); }
.nav-toggle { display: none; background: none; border: none; font-size: 22px; color: var(--mcv-navy); cursor: pointer; }
body { padding-top: 64px; }

/* ---------- Hero ---------- */
.hero { padding: 80px 24px; background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -200px; right: -200px; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(56,192,184,0.08) 0%, transparent 70%); }
.hero::after { content: ''; position: absolute; bottom: -100px; left: -100px; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(32,72,152,0.06) 0%, transparent 70%); }
.hero-inner { max-width: var(--maxw); margin: 0 auto; position: relative; z-index: 1; }
.hero-split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.hero .eyebrow { display: inline-block; font-size: 12px; font-weight: 600; color: var(--mcv-teal); background: rgba(56,192,184,0.1); padding: 5px 14px; border-radius: 100px; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.05em; }
.hero h1 { font-family: var(--font-heading); font-size: 52px; font-weight: 900; line-height: 1.1; letter-spacing: -1px; color: var(--mcv-navy-dark); margin-bottom: 20px; }
.hero h1 .highlight { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p.lead { font-size: 18px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 32px; max-width: 560px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero.center { text-align: center; }
.hero.center .hero-ctas { justify-content: center; }
.hero.center p.lead { margin-left: auto; margin-right: auto; }
.hero.dark { background: var(--gradient-dark); }
.hero.dark h1 { color: #fff; }
.hero.dark p.lead { color: rgba(255,255,255,0.78); }
.hero.dark .eyebrow { color: var(--mcv-teal-light); background: rgba(56,192,184,0.15); }

.panel { background: #fff; border-radius: var(--radius-xl); padding: 24px; box-shadow: var(--shadow-lg), 0 4px 16px rgba(0,0,0,0.04); border: 1px solid var(--border-light); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.breadcrumb a:hover { color: var(--mcv-navy); }
.breadcrumb span { margin: 0 6px; color: var(--border); }

/* ---------- Stats bar ---------- */
.stats-bar { background: var(--mcv-navy-dark); padding: 48px 24px; }
.stats-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat-item { text-align: center; }
.stat-value { font-family: var(--font-heading); font-size: 36px; font-weight: 800; color: var(--mcv-teal); }
.stat-label { font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 6px; text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- Generic grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Feature card (icon + title + text) */
.card {
  background: #fff; border-radius: var(--radius-xl); padding: 32px;
  border: 1px solid var(--border-light); transition: all 0.3s;
  position: relative; overflow: hidden;
}
.card:hover { border-color: var(--mcv-teal); box-shadow: 0 12px 40px rgba(56,192,184,0.1); transform: translateY(-4px); }
.card .card-icon { width: 48px; height: 48px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; margin-bottom: 16px; background: var(--gradient-primary); }
.card h3 { font-family: var(--font-heading); font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.card .card-num { font-family: var(--font-heading); font-size: 48px; font-weight: 900; color: var(--border-light); margin-bottom: 8px; line-height: 1; }
.card:hover .card-num { color: var(--mcv-teal-light); }

/* Format / compact card (centered) */
.tile { background: #fff; border-radius: var(--radius-lg); padding: 24px; border: 1px solid var(--border-light); transition: all 0.2s; text-align: center; }
.tile:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.06); transform: translateY(-2px); border-color: var(--mcv-teal); }
.tile .tile-icon { font-size: 32px; margin-bottom: 12px; }
.tile h4 { font-family: var(--font-heading); font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.tile p { font-size: 12px; color: var(--text-secondary); }

/* Result metric card */
.metric { background: #fff; border-radius: var(--radius-lg); padding: 28px 20px; text-align: center; border: 1px solid var(--border-light); transition: all 0.2s; }
.metric:hover { border-color: var(--mcv-teal); }
.metric .metric-value { font-family: var(--font-heading); font-size: 32px; font-weight: 800; color: var(--mcv-navy); }
.metric .metric-label { font-size: 12px; color: var(--text-secondary); margin-top: 6px; }

/* ---------- 3-sided marketplace home ---------- */
.market-hero {
  background: #f8fbff;
  padding: 86px 24px 64px;
  position: relative;
  overflow: hidden;
}
.market-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(32,72,152,0.08), transparent 42%),
    radial-gradient(circle at 80% 20%, rgba(56,192,184,0.16), transparent 34%),
    radial-gradient(circle at 18% 88%, rgba(255,167,38,0.12), transparent 30%);
}
.market-hero-inner {
  align-items: center;
  display: grid;
  gap: 54px;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  margin: 0 auto;
  max-width: var(--maxw);
  position: relative;
}
.market-hero-copy .eyebrow {
  align-items: center;
  background: rgba(56,192,184,0.12);
  border-radius: 999px;
  color: #1c8d86;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
  padding: 6px 14px;
  position: relative;
  text-transform: uppercase;
}
.market-hero-copy .eyebrow::before {
  background: #20d489;
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(32,212,137,0.12);
  content: "";
  height: 8px;
  width: 8px;
}
.market-hero-copy .eyebrow::after {
  animation: liveDotRipple 1.8s ease-out infinite;
  border: 1px solid rgba(32,212,137,0.55);
  border-radius: 999px;
  content: "";
  height: 8px;
  left: 14px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%) scale(1);
  width: 8px;
}
.market-hero h1 {
  color: var(--mcv-navy-dark);
  font-family: var(--font-heading);
  font-size: 52px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.08;
  margin-bottom: 20px;
}
.market-hero .lead {
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.72;
  margin-bottom: 28px;
  max-width: 660px;
}
.persona-cta-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.role-cta {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  color: var(--text-primary);
  display: grid;
  gap: 6px;
  min-height: 116px;
  padding: 16px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.role-cta:hover {
  border-color: var(--mcv-teal);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.role-cta i {
  align-items: center;
  border-radius: var(--radius-md);
  color: #fff;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}
.role-cta.advertiser i { background: var(--mcv-navy); }
.role-cta.publisher i { background: var(--mcv-teal); }
.role-cta.agency i { background: var(--warning); color: var(--mcv-navy-dark); }
.role-cta span {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
}
.role-cta strong {
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 15px;
  line-height: 1.25;
}
.market-visual {
  min-width: 0;
}
.market-3d-scene {
  aspect-ratio: 1 / 0.86;
  min-height: 430px;
  perspective: 1100px;
  position: relative;
}
.market-3d-scene::before {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.92), rgba(235,247,255,0.78)),
    repeating-linear-gradient(90deg, rgba(32,72,152,0.08) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(0deg, rgba(32,72,152,0.06) 0 1px, transparent 1px 56px);
  border: 1px solid rgba(32,72,152,0.12);
  border-radius: 34px;
  box-shadow: 0 34px 88px rgba(13,27,46,0.18);
  content: "";
  inset: 56px 20px 36px;
  position: absolute;
  transform: rotateX(62deg) rotateZ(-36deg);
  transform-origin: center;
}
.market-3d-scene::after {
  background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0));
  border-radius: 999px;
  content: "";
  height: 170px;
  left: 50%;
  position: absolute;
  top: 18px;
  transform: translateX(-50%);
  width: 330px;
}
.orbit-ring {
  border: 1px dashed rgba(32,72,152,0.24);
  border-radius: 999px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -46%) rotateX(62deg) rotateZ(-36deg);
  z-index: 1;
}
.orbit-one {
  height: 238px;
  width: 382px;
}
.orbit-two {
  border-color: rgba(56,192,184,0.28);
  height: 164px;
  width: 270px;
}
.trade-flow {
  border-radius: 999px;
  height: 8px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform-origin: left center;
  z-index: 2;
}
.trade-flow::after {
  background: #fff;
  border: 3px solid currentColor;
  border-radius: 999px;
  content: "";
  height: 13px;
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 13px;
}
.flow-advertiser {
  background: linear-gradient(90deg, rgba(32,72,152,0), rgba(32,72,152,0.72));
  color: var(--mcv-navy);
  transform: rotate(-148deg);
  width: 155px;
}
.flow-publisher {
  background: linear-gradient(90deg, rgba(56,192,184,0), rgba(56,192,184,0.76));
  color: var(--mcv-teal);
  transform: rotate(-30deg);
  width: 152px;
}
.flow-agency {
  background: linear-gradient(90deg, rgba(255,167,38,0), rgba(255,167,38,0.78));
  color: var(--warning);
  transform: rotate(94deg);
  width: 142px;
}
.market-core-3d,
.role-pillar,
.floating-chip {
  position: absolute;
  z-index: 4;
}
.market-core-3d {
  align-items: center;
  background: linear-gradient(145deg, #204898, #132a56);
  border: 1px solid rgba(255,255,255,0.34);
  border-radius: 28px;
  box-shadow: 0 24px 44px rgba(13,27,46,0.28), inset 0 1px 0 rgba(255,255,255,0.28);
  color: #fff;
  display: grid;
  gap: 7px;
  left: 50%;
  min-height: 146px;
  padding: 22px;
  text-align: center;
  top: 48%;
  transform: translate(-50%, -50%) rotateX(8deg);
  width: 178px;
}
.market-core-3d::after,
.role-pillar::after {
  background: rgba(13,27,46,0.18);
  border-radius: 999px;
  bottom: -18px;
  content: "";
  filter: blur(6px);
  height: 28px;
  left: 12%;
  position: absolute;
  right: 12%;
  transform: rotateX(62deg);
  z-index: -1;
}
.core-top {
  align-items: center;
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 7px;
  justify-self: center;
  padding: 7px 11px;
}
.market-core-3d strong {
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: 1.08;
}
.market-core-3d small {
  color: rgba(255,255,255,0.74);
  font-size: 12px;
  font-weight: 700;
}
.role-pillar {
  align-items: center;
  background: linear-gradient(180deg, #fff, #f5f8ff);
  border: 1px solid rgba(32,72,152,0.12);
  border-radius: 22px;
  box-shadow: 0 18px 38px rgba(13,27,46,0.15), inset 0 1px 0 #fff;
  display: grid;
  gap: 7px;
  justify-items: center;
  min-height: 128px;
  padding: 18px 16px;
  text-align: center;
  width: 144px;
}
.role-pillar::before {
  background: linear-gradient(180deg, rgba(32,72,152,0.1), rgba(32,72,152,0));
  border-radius: 18px;
  bottom: -18px;
  content: "";
  height: 34px;
  left: 10px;
  position: absolute;
  right: 10px;
  transform: skewX(-18deg);
  z-index: -1;
}
.pillar-icon {
  align-items: center;
  border-radius: 18px;
  color: #fff;
  display: inline-flex;
  height: 48px;
  justify-content: center;
  width: 48px;
}
.role-pillar span {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.role-pillar strong {
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 18px;
}
.pillar-advertiser {
  left: 20px;
  top: 124px;
  transform: rotateZ(-6deg);
}
.pillar-advertiser .pillar-icon { background: var(--mcv-navy); }
.pillar-publisher {
  right: 24px;
  top: 132px;
  transform: rotateZ(6deg);
}
.pillar-publisher .pillar-icon { background: var(--mcv-teal); }
.pillar-agency {
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%) rotateZ(1deg);
}
.pillar-agency .pillar-icon {
  background: var(--warning);
  color: var(--mcv-navy-dark);
}
.floating-chip {
  animation: floatingChipPulse 3s ease-in-out infinite;
  align-items: center;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(32,72,152,0.1);
  border-radius: 999px;
  box-shadow: 0 14px 28px rgba(13,27,46,0.12);
  color: var(--mcv-navy);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  gap: 7px;
  padding: 9px 12px;
  z-index: 5;
}
.floating-chip i {
  color: var(--mcv-teal);
}
.chip-one {
  animation-delay: 0s;
  left: 52px;
  top: 62px;
}
.chip-two {
  animation-delay: 0.5s;
  right: 44px;
  top: 58px;
}
.chip-three {
  animation-delay: 1s;
  bottom: 96px;
  right: 60px;
}
.chip-one,
.chip-two,
.chip-three {
  will-change: transform, box-shadow;
}
@keyframes liveDotRipple {
  0% {
    opacity: 0.9;
    transform: translateY(-50%) scale(1);
  }
  72%,
  100% {
    opacity: 0;
    transform: translateY(-50%) scale(3.2);
  }
}
@keyframes floatingChipPulse {
  0%,
  16%,
  100% {
    box-shadow: 0 14px 28px rgba(13,27,46,0.12);
    color: var(--mcv-navy);
    transform: translateY(0) scale(1);
  }
  8% {
    box-shadow: 0 20px 38px rgba(32,72,152,0.22);
    color: var(--mcv-navy-dark);
    transform: translateY(-12px) scale(1.08);
  }
}
.market-base-shadow {
  background: radial-gradient(ellipse, rgba(13,27,46,0.18), transparent 68%);
  bottom: 10px;
  height: 76px;
  left: 12%;
  position: absolute;
  right: 12%;
  z-index: 0;
}
.persona-section {
  background: #fff;
  padding: 40px 24px 80px;
}
.persona-grid,
.workflow-grid,
.trust-grid,
.safety-grid,
.catalog-grid {
  display: grid;
  gap: 24px;
}
.persona-grid,
.workflow-grid,
.trust-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.persona-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  padding: 28px;
}
.persona-card.advertiser { border-top: 4px solid var(--mcv-navy); }
.persona-card.publisher { border-top: 4px solid var(--mcv-teal); }
.persona-card.agency { border-top: 4px solid var(--warning); }
.persona-card .persona-icon {
  align-items: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  color: #fff;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  margin-bottom: 18px;
  width: 44px;
}
.persona-card.agency .persona-icon { background: var(--warning); color: var(--mcv-navy-dark); }
.persona-card h2 {
  color: var(--mcv-navy);
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.persona-card h3 {
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 1.28;
  margin-bottom: 18px;
}
.persona-card .checklist {
  flex: 1;
  margin-bottom: 22px;
}
.workflow-card,
.trust-card,
.catalog-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 28px;
}
.workflow-card h3,
.trust-card h3,
.catalog-card h3,
.safety-card h3 {
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 18px;
  margin-bottom: 14px;
}
.workflow-card h3 i {
  color: var(--mcv-teal);
  margin-right: 8px;
}
.workflow-card ol {
  counter-reset: step;
  display: grid;
  gap: 12px;
  list-style: none;
}
.workflow-card li {
  color: var(--text-secondary);
  display: grid;
  font-size: 14px;
  gap: 10px;
  grid-template-columns: 26px 1fr;
}
.workflow-card li::before {
  align-items: center;
  background: rgba(56,192,184,0.12);
  border-radius: 999px;
  color: #1c8d86;
  content: counter(step);
  counter-increment: step;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  height: 26px;
  justify-content: center;
}
.marketplace-stats .stats-inner {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stat-role {
  color: rgba(255,255,255,0.56);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.catalog-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.catalog-card {
  min-height: 260px;
}
.catalog-label {
  color: var(--mcv-teal);
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.catalog-label.agency { color: #b9760a; }
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.tag-cloud span {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
}
.trust-card p {
  color: var(--text-secondary);
  font-size: 14px;
}
.logo-strip.compact {
  gap: 18px;
  justify-content: flex-start;
  margin-top: 14px;
}
.logo-strip.compact span {
  font-size: 15px;
}
.safety-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.safety-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-xl);
  padding: 24px;
}
.safety-card i {
  color: var(--mcv-teal-light);
  font-size: 22px;
  margin-bottom: 16px;
}
.safety-card h3 {
  color: #fff;
}
.safety-card p {
  color: rgba(255,255,255,0.72);
  font-size: 14px;
  line-height: 1.65;
}
.marketplace-cta .btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.58);
  color: #fff;
}
.marketplace-cta .btn-outline:hover {
  background: #fff;
  color: var(--mcv-navy);
}

/* Horizontal feature row (icon left) */
.feature-row { display: flex; gap: 16px; align-items: flex-start; background: #fff; padding: 20px; border-radius: var(--radius-lg); border: 1px solid var(--border-light); transition: all 0.2s; }
.feature-row:hover { border-color: var(--mcv-teal); box-shadow: 0 4px 16px rgba(56,192,184,0.08); }
.feature-row .fr-icon { width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--gradient-primary); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; flex-shrink: 0; }
.feature-row h4 { font-family: var(--font-heading); font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.feature-row p { font-size: 13px; color: var(--text-secondary); }

/* Checklist */
.checklist { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.checklist li { font-size: 15px; color: var(--text-primary); display: flex; gap: 10px; align-items: flex-start; }
.checklist li::before { content: '\2713'; color: var(--mcv-teal); font-weight: 800; flex-shrink: 0; }

/* ---------- Tables ---------- */
.table-wrap { background: #fff; border-radius: var(--radius-lg); padding: 8px 20px; box-shadow: var(--shadow-md); overflow-x: auto; }
table.mcv { width: 100%; border-collapse: collapse; font-size: 14px; }
table.mcv th { text-align: left; color: var(--text-muted); font-weight: 600; padding: 12px; border-bottom: 2px solid var(--border-light); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
table.mcv td { padding: 12px; color: var(--text-primary); border-bottom: 1px solid #f0f2f5; }
table.mcv tr:last-child td { border-bottom: none; }
table.mcv .hl { color: var(--mcv-teal); font-weight: 700; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-xl); padding: 32px; display: flex; flex-direction: column; transition: all 0.2s; }
.price-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.price-card.featured { border: 2px solid var(--mcv-teal); position: relative; }
.price-card.featured::before { content: 'POPULAR'; position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--mcv-teal); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; padding: 4px 14px; border-radius: 100px; }
.price-card .plan-name { font-family: var(--font-heading); font-size: 16px; font-weight: 700; color: var(--mcv-navy); }
.price-card .plan-price { font-family: var(--font-heading); font-size: 40px; font-weight: 900; color: var(--text-primary); margin: 12px 0 4px; }
.price-card .plan-price small { font-size: 14px; font-weight: 500; color: var(--text-secondary); }
.price-card .plan-desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 20px; }
.price-card .checklist { flex: 1; margin-bottom: 24px; }
.price-card .checklist li { font-size: 14px; }

/* ---------- Forms ---------- */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-md);
  font-family: var(--font-body); font-size: 14px; color: var(--text-primary); background: #fff; transition: border 0.2s, box-shadow 0.2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--mcv-teal); box-shadow: 0 0 0 3px rgba(56,192,184,0.15); }
.form-card { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-xl); padding: 36px; box-shadow: var(--shadow-md); }
.auth-wrap { min-height: calc(100vh - 64px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: var(--gradient-dark); color: #fff; padding: 64px 56px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-side::after { content: ''; position: absolute; top: -120px; right: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(56,192,184,0.18) 0%, transparent 70%); }
.auth-side h2 { font-family: var(--font-heading); font-size: 32px; font-weight: 800; margin-bottom: 16px; position: relative; }
.auth-side p { color: rgba(255,255,255,0.78); font-size: 15px; position: relative; }
.auth-side .checklist { margin-top: 28px; position: relative; }
.auth-side .checklist li { color: rgba(255,255,255,0.9); }
.auth-side .checklist li::before { color: var(--mcv-teal-light); }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-form-inner { width: 100%; max-width: 380px; }
.auth-form h1 { font-family: var(--font-heading); font-size: 26px; font-weight: 800; color: var(--text-primary); margin-bottom: 6px; }
.auth-form .sub { font-size: 14px; color: var(--text-secondary); margin-bottom: 28px; }
.auth-form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.auth-alt { text-align: center; font-size: 13px; color: var(--text-secondary); margin-top: 20px; }

/* ---------- CTA section ---------- */
.cta-band { background: var(--gradient-dark); padding: 80px 24px; text-align: center; }
.cta-band h2 { font-family: var(--font-heading); font-size: 36px; font-weight: 800; color: #fff; margin-bottom: 16px; }
.cta-band p { font-size: 16px; color: rgba(255,255,255,0.75); margin: 0 auto 32px; max-width: 540px; }

/* ---------- Prose (legal / article) ---------- */
.prose { max-width: 800px; margin: 0 auto; }
.prose h2 { font-family: var(--font-heading); font-size: 24px; font-weight: 700; color: var(--mcv-navy); margin: 36px 0 12px; }
.prose h3 { font-family: var(--font-heading); font-size: 18px; font-weight: 700; margin: 24px 0 8px; }
.prose p { font-size: 15px; color: var(--text-primary); margin-bottom: 14px; }
.prose ul { margin: 0 0 14px 20px; }
.prose li { font-size: 15px; color: var(--text-primary); margin-bottom: 6px; }

/* ---------- Logo strip ---------- */
.logo-strip { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; opacity: 0.55; filter: grayscale(1); }
.logo-strip span { font-family: var(--font-heading); font-size: 20px; font-weight: 800; color: var(--text-primary); }

/* ---------- Badge / pill ---------- */
.pill { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 100px; letter-spacing: 0.03em; }
.pill.teal { background: rgba(56,192,184,0.15); color: #1c8d86; }
.pill.navy { background: rgba(32,72,152,0.1); color: var(--mcv-navy); }
.pill.amber { background: rgba(255,167,38,0.15); color: #b9760a; }

/* ---------- Footer ---------- */
.mcv-footer { background: var(--mcv-navy-dark); padding: 60px 24px 30px; color: rgba(255,255,255,0.6); }
.mcv-footer .footer-inner { max-width: var(--maxw); margin: 0 auto; }
.mcv-footer .footer-grid { display: grid; grid-template-columns: 1.7fr repeat(5, 1fr); gap: 32px; margin-bottom: 40px; }
.footer-brand h3 { font-family: var(--font-heading); font-size: 22px; font-weight: 900; color: #fff; margin-bottom: 12px; }
.footer-brand h3 span { color: var(--mcv-teal); }
.footer-brand p { font-size: 14px; line-height: 1.6; max-width: 280px; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,0.6); text-decoration: none; margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: var(--mcv-teal); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; gap: 16px; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255,255,255,0.6); text-decoration: none; }
.footer-bottom a:hover { color: var(--mcv-teal); }
.footer-social { display: flex; gap: 16px; }
.footer-social a { color: rgba(255,255,255,0.5); font-size: 18px; transition: color 0.2s; }
.footer-social a:hover { color: var(--mcv-teal); }

/* ---------- Utilities ---------- */
.mono { font-family: var(--font-mono); }
.mobile-only { display: none; }
.text-center { text-align: center; }
.mt-sm { margin-top: 12px; } .mt-md { margin-top: 24px; } .mt-lg { margin-top: 40px; }
.muted { color: var(--text-secondary); }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 13px; }
  .market-hero-inner { grid-template-columns: 1fr; }
  .safety-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .mcv-footer .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .persona-grid, .workflow-grid, .trust-grid { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--border-light); padding: 8px 24px 20px; }
  .nav-links.open a { padding: 12px 0; border-bottom: 1px solid var(--border-light); }
  .nav-toggle { display: block; }
  .nav-cta .nav-login { display: none; }
  .nav-links.open .mobile-only { display: block; }
  .hero h1 { font-size: 34px; }
  .hero-split { grid-template-columns: 1fr; gap: 36px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .mcv-footer .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 56px 20px; }
  .section-header h2 { font-size: 28px; }
  .market-hero { padding: 58px 20px 44px; }
  .market-hero h1 { font-size: 34px; letter-spacing: 0; }
  .market-hero .lead { font-size: 16px; }
  .persona-cta-row,
  .marketplace-stats .stats-inner,
  .safety-grid { grid-template-columns: 1fr; }
  .market-3d-scene { min-height: 360px; transform: scale(0.92); transform-origin: center top; }
  .market-3d-scene::before { inset: 68px 6px 50px; }
  .market-core-3d { min-height: 126px; padding: 18px; width: 150px; }
  .market-core-3d strong { font-size: 19px; }
  .role-pillar { min-height: 112px; padding: 14px 12px; width: 122px; }
  .pillar-icon { border-radius: 15px; height: 42px; width: 42px; }
  .pillar-advertiser { left: 0; top: 132px; }
  .pillar-publisher { right: 0; top: 138px; }
  .pillar-agency { bottom: 26px; }
  .floating-chip { font-size: 11px; padding: 8px 10px; }
  .chip-one { left: 14px; top: 58px; }
  .chip-two { right: 10px; top: 58px; }
  .chip-three { bottom: 86px; right: 18px; }
  .orbit-one { width: 306px; }
  .orbit-two { width: 220px; }
}
