/* Meridian Media — site styles
   Hand-written, self-contained. System fonts only. */

:root {
  --ink: #10151c;
  --ink-soft: #3d4753;
  --ink-muted: #6b7784;
  --paper: #ffffff;
  --paper-alt: #f4f6f9;
  --line: #e2e7ee;
  --brand: #1f5f8b;
  --brand-strong: #164a6d;
  --brand-tint: #e8f1f8;
  --ok: #1d7a4f;
  --warn: #9a6a12;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(16, 21, 28, .05), 0 8px 24px -12px rgba(16, 21, 28, .18);
  --wrap: 1080px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
a { color: var(--brand); }
ul { margin: 0; padding: 0; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand); color: #fff; padding: 10px 16px; z-index: 20;
}
.skip-link:focus { left: 12px; top: 12px; border-radius: 0 0 var(--radius-sm) 0; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 72px;
}

.brand {
  display: flex; align-items: center; gap: 12px;
  color: inherit; text-decoration: none;
}
.brand-mark { color: var(--brand); display: flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.02rem; letter-spacing: -.01em; }
.brand-text small { color: var(--ink-muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .09em; }

.site-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; }
.site-nav a {
  display: block; padding: 8px 12px; border-radius: var(--radius-sm);
  color: var(--ink-soft); text-decoration: none; font-size: .94rem;
}
.site-nav a:hover, .site-nav a:focus-visible { background: var(--brand-tint); color: var(--brand-strong); }

.nav-toggle {
  display: none;
  font: inherit; font-size: .92rem; color: var(--ink-soft);
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 8px 14px; cursor: pointer;
}
.nav-toggle:hover { border-color: var(--brand); color: var(--brand-strong); }

/* ---------- hero ---------- */

.hero {
  background:
    radial-gradient(1100px 420px at 82% -8%, var(--brand-tint), transparent 62%),
    linear-gradient(180deg, var(--paper-alt), var(--paper));
  border-bottom: 1px solid var(--line);
}
.hero-inner { padding: 76px 24px 64px; max-width: 860px; }

.eyebrow {
  display: inline-block; margin: 0 0 18px;
  font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-strong); background: var(--brand-tint);
  border: 1px solid #d3e3f0; border-radius: 999px; padding: 5px 13px;
}
.lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 60ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 40px; }

.btn {
  display: inline-block; padding: 12px 22px; border-radius: var(--radius-sm);
  font-size: .95rem; font-weight: 600; text-decoration: none; border: 1px solid transparent;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--brand-strong); }
.btn-ghost { background: var(--paper); color: var(--brand-strong); border-color: #cfdbe6; }
.btn-ghost:hover { border-color: var(--brand); background: var(--brand-tint); }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px; margin: 0; padding: 22px 0 0; border-top: 1px solid var(--line);
}
.hero-stats div { min-width: 0; }
.hero-stats dt { color: var(--ink-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; }
.hero-stats dd { margin: 4px 0 0; font-size: 1.5rem; font-weight: 650; letter-spacing: -.02em; }

/* ---------- sections ---------- */

.section { padding: 68px 0; }
.section-alt { background: var(--paper-alt); border-block: 1px solid var(--line); }
.section-lede { color: var(--ink-soft); max-width: 58ch; }

.grid { display: grid; gap: 20px; }
.cards { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 30px; }

.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow);
}
.card h3 { color: var(--brand-strong); }
.card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

.platform { display: grid; grid-template-columns: 1.35fr 1fr; gap: 44px; align-items: start; }

.checks { list-style: none; display: grid; gap: 10px; margin-top: 18px; }
.checks li { position: relative; padding-left: 28px; color: var(--ink-soft); font-size: .95rem; }
.checks li::before {
  content: ""; position: absolute; left: 4px; top: .52em;
  width: 7px; height: 12px; border: solid var(--ok); border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.platform-panel {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.panel-row {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 13px 18px; font-size: .88rem; border-bottom: 1px solid var(--line);
}
.panel-row:last-child { border-bottom: 0; }
.panel-row span:first-child { color: var(--ink-soft); }
.panel-row .ok { color: var(--ok); font-weight: 600; }
.panel-row .warn { color: var(--warn); font-weight: 600; font-size: .82rem; text-align: right; }

.about { max-width: 760px; }
.about p { color: var(--ink-soft); }

/* ---------- footer ---------- */

.site-footer { background: #0d1219; color: #c7d1dc; margin-top: 0; }
.footer-inner {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px; padding-top: 52px; padding-bottom: 40px;
}
.footer-title {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .11em;
  color: #7f8f9f; margin-bottom: 12px;
}
.footer-col p { margin: 0 0 6px; font-size: .92rem; }
.site-footer a { color: #9fc6e4; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.muted { color: #7f8f9f; font-size: .85rem; }

.dot {
  display: inline-block; width: 9px; height: 9px; margin-right: 8px;
  border-radius: 50%; background: #35c37d; vertical-align: middle;
}

.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  padding-top: 20px; padding-bottom: 30px; border-top: 1px solid #1c2632;
}
.footer-bottom p { margin: 0; font-size: .85rem; }

/* ---------- 404 ---------- */

.error-page { display: flex; min-height: 100vh; flex-direction: column; }
.error-main { flex: 1; display: flex; align-items: center; padding: 72px 0; }
.error-panel { max-width: 620px; }
.error-code {
  font-size: clamp(3.6rem, 2rem + 8vw, 6rem); font-weight: 700; letter-spacing: -.04em;
  line-height: 1; margin: 0 0 8px;
  background: linear-gradient(120deg, var(--brand), #4a93c4);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .platform { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav ul {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 10px 16px 16px; box-shadow: var(--shadow);
  }
  .site-nav ul.is-open { display: flex; }
  .site-nav a { padding: 11px 12px; }

  .hero-inner { padding: 54px 24px 46px; }
  .hero-stats { grid-template-columns: 1fr; gap: 14px; }
  .section { padding: 52px 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
}
