/* ============================================================
   Buy MCA Data — Design System
   Palette: deep ink navy + verified-data teal + ledger gold
   Type: Space Grotesk (display) / Inter (body) / IBM Plex Mono (data)
   ============================================================ */

:root {
  --ink: #0B1E3D;
  --ink-2: #12294D;
  --ink-3: #1B3564;
  --teal: #0EA5A0;
  --teal-light: #5FD0CB;
  --gold: #F0A93A;
  --bg: #F6F7FA;
  --surface: #FFFFFF;
  --text: #1E2532;
  --text-muted: #5B6472;
  --border: #E4E7EE;
  --danger: #D64545;
  --success: #1E8E5A;

  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Consolas', monospace;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 3px rgba(11, 30, 61, 0.08);
  --shadow-md: 0 8px 24px rgba(11, 30, 61, 0.12);
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--text); }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--text-muted); }
.mono { font-family: var(--font-mono); }

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

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

.section { padding: 72px 0; }
.section-tight { padding: 40px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-ink { background: var(--ink); color: #E8ECF4; }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-ink p { color: #C4CCDD; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(14, 165, 160, 0.1);
  border: 1px solid rgba(14, 165, 160, 0.3);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.section-ink .eyebrow { color: var(--teal-light); background: rgba(95, 208, 203, 0.12); border-color: rgba(95,208,203,0.35); }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: #0c8d89; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #e0982a; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.35); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.08); }
.btn-outline-dark { background: transparent; border-color: var(--border); color: var(--ink); }
.btn-outline-dark:hover { background: #F0F2F6; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b83737; }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ---------------- Nav ---------------- */
.site-header {
  background: var(--ink);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
}
.brand .brand-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--ink);
  font-size: 0.85rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: #C4CCDD;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a:hover, .nav-links a.active { color: #fff; text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

@media (max-width: 860px) {
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; background: var(--ink); flex-direction: column; align-items: flex-start; padding: 16px 24px; gap: 16px; display: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-actions.desktop-only { display: none; }
}

/* ---------------- Hero ---------------- */
.hero {
  background: radial-gradient(ellipse at top right, #163a6b 0%, var(--ink) 55%);
  color: #fff;
  padding: 76px 0 60px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { color: #fff; }
.hero .lead { color: #C4CCDD; font-size: 1.08rem; max-width: 46ch; }
.hero-cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 28px; margin-top: 36px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: var(--font-mono); font-size: 1.4rem; color: var(--teal-light); }
.hero-stats div span { font-size: 0.82rem; color: #93A0B8; }

/* ---------------- Data feed (signature element) ---------------- */
.data-feed {
  background: #0A1730;
  border: 1px solid rgba(95,208,203,0.25);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.data-feed-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #08122A;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #7C8AA6;
}
.data-feed-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: #33456B; }
.data-feed-bar .pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--teal-light); margin-left: auto; box-shadow: 0 0 0 rgba(95,208,203,0.6); animation: pulse 1.8s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(95,208,203,0.55); }
  70% { box-shadow: 0 0 0 8px rgba(95,208,203,0); }
  100% { box-shadow: 0 0 0 0 rgba(95,208,203,0); }
}
.data-feed table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 0.76rem; }
.data-feed th {
  text-align: left;
  padding: 9px 14px;
  color: #7C8AA6;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.68rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.data-feed td {
  padding: 10px 14px;
  color: #D5DCEA;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  white-space: nowrap;
}
.data-feed tr:last-child td { border-bottom: none; }
.data-feed .tag-new {
  display: inline-block;
  background: rgba(240,169,58,0.15);
  color: var(--gold);
  border: 1px solid rgba(240,169,58,0.4);
  font-size: 0.62rem;
  padding: 1px 6px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}
.data-feed-foot {
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #5B6C8C;
  background: #08122A;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ---------------- Cards / grids ---------------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 10px; }
.icon-box {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(14,165,160,0.1);
  color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 1.2rem;
}

.step {
  display: flex;
  gap: 18px;
}
.step-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--teal);
  border: 1px solid rgba(14,165,160,0.4);
  background: rgba(14,165,160,0.08);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ---------------- Plan / pricing card ---------------- */
.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.plan-card.featured { border-color: var(--teal); box-shadow: var(--shadow-md); }
.plan-card .badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--ink); font-size: 0.72rem; font-weight: 700;
  padding: 4px 14px; border-radius: 100px; letter-spacing: 0.03em;
}
.plan-price {
  font-family: var(--font-mono);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--ink);
  margin: 14px 0 2px;
}
.plan-price span { font-size: 1rem; color: var(--text-muted); font-weight: 500; }
.plan-features { list-style: none; padding: 0; margin: 22px 0; text-align: left; }
.plan-features li { padding: 8px 0; border-bottom: 1px dashed var(--border); display: flex; gap: 10px; font-size: 0.92rem; }
.plan-features li:last-child { border-bottom: none; }
.plan-features li::before { content: "✓"; color: var(--success); font-weight: 700; }

/* ---------------- Forms ---------------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  max-width: 460px;
  margin: 0 auto;
}
label { display: block; font-size: 0.87rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], select, textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
  margin-bottom: 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14,165,160,0.15);
}
textarea { resize: vertical; min-height: 110px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; font-size: 0.86rem; color: var(--text-muted); }
.checkbox-row input { width: auto; margin: 3px 0 0; }
.checkbox-row label { font-weight: 400; margin: 0; color: var(--text-muted); }
.form-foot { text-align: center; font-size: 0.9rem; margin-top: 16px; color: var(--text-muted); }

.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.9rem; margin-bottom: 18px; }
.alert-error { background: #FDECEC; color: #9A2E2E; border: 1px solid #F5C2C2; }
.alert-success { background: #E9F7EF; color: #206B45; border: 1px solid #BEE6CE; }
.alert-info { background: #EAF6F6; color: #106661; border: 1px solid #BFE6E4; }
.field-error { color: var(--danger); font-size: 0.8rem; margin-top: -12px; margin-bottom: 14px; display: block; }

/* ---------------- Tables (dashboard) ---------------- */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
table.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.data-table th {
  text-align: left; padding: 12px 16px; background: #F0F2F7; color: var(--ink);
  font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em;
  border-bottom: 1px solid var(--border);
}
table.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text); }
table.data-table tr:last-child td { border-bottom: none; }
.status-pill { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: 0.75rem; font-weight: 600; }
.status-active { background: #E9F7EF; color: #206B45; }
.status-expired { background: #FDECEC; color: #9A2E2E; }
.status-cancelled { background: #F0F2F6; color: #5B6472; }

/* ---------------- Dashboard layout ---------------- */
.dash-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; }
@media (max-width: 800px) { .dash-layout { grid-template-columns: 1fr; } }
.dash-sidebar { background: var(--ink); border-radius: var(--radius); padding: 20px; height: fit-content; }
.dash-sidebar a {
  display: block; padding: 10px 14px; border-radius: var(--radius-sm); color: #C4CCDD; font-size: 0.9rem; font-weight: 500; margin-bottom: 4px;
}
.dash-sidebar a:hover, .dash-sidebar a.active { background: rgba(255,255,255,0.08); color: #fff; text-decoration: none; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.stat-card .stat-label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; }
.stat-card .stat-value { font-family: var(--font-mono); font-size: 1.7rem; font-weight: 700; color: var(--ink); margin-top: 6px; }

/* ---------------- Footer ---------------- */
.site-footer { background: #08122A; color: #93A0B8; padding: 56px 0 24px; }
.site-footer p { color: #93A0B8; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 14px; font-family: var(--font-body); font-weight: 700; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: #93A0B8; font-size: 0.88rem; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; }

/* ---------------- Misc ---------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.divider { height: 1px; background: var(--border); border: none; margin: 32px 0; }
.legal-content h2 { margin-top: 2em; }
.legal-content ul, .legal-content ol { padding-left: 1.4em; }
.legal-content { max-width: 780px; margin: 0 auto; }
.badge-flat-price { font-family: var(--font-mono); background: rgba(240,169,58,0.12); border: 1px solid rgba(240,169,58,0.4); color: var(--gold); padding: 2px 8px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
