/* Meridian NIP marketing site — single small stylesheet, dark-first,
   matches the portal's aesthetic without sharing any code. */

:root {
  --bg:        #0b0f14;
  --panel:    #121821;
  --border:   #1f2937;
  --text:     #e5e7eb;
  --text-dim: #9ca3af;
  --text-faint: #6b7280;
  --accent:   #20c896;
  --accent-dim:#15a37b;
  --warn:     #f59e0b;
  --danger:   #ef4444;
  --mono:     ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --max:      980px;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

code, pre, .mono { font-family: var(--mono); font-size: 13px; }
pre {
  background: #0a0e13;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  overflow-x: auto;
  font-size: 12px;
  color: var(--text-dim);
}
code { background: rgba(255,255,255,.04); padding: 1px 5px; border-radius: 3px; color: var(--accent); }
pre code { background: transparent; padding: 0; color: inherit; }

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

header.topbar {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #0d131b 0%, #0b0f14 100%);
}
header.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px;
}
a.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
a.brand:hover { text-decoration: none; opacity: .85; }
a.brand img { display: block; height: 32px; width: auto; }
a.brand .brand-stack {
  display: flex; flex-direction: column; line-height: 1.1;
  gap: 2px;
}
a.brand .brand-text {
  font-weight: 600; font-size: 18px; letter-spacing: .01em;
  color: var(--text);
}
a.brand .brand-text::after {
  content: ""; display: inline-block;
}
a.brand .brand-sub {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-faint); font-family: var(--mono); font-weight: 500;
}
@media (max-width: 640px) {
  a.brand .brand-sub { display: none; }
}
.tm {
  font-size: .55em; vertical-align: super; line-height: 0;
  margin-left: 1px; opacity: .7; font-weight: 400;
}

.tag-shell {
  display: inline-block; margin-left: 10px;
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  color: var(--accent); background: rgba(32,200,150,.10);
  padding: 2px 8px; border-radius: 4px;
  letter-spacing: .06em; text-transform: uppercase;
  vertical-align: middle;
}

.cl-entry {
  padding: 28px 0 8px;
  border-bottom: 1px solid var(--border);
}
.cl-entry:last-child { border-bottom: 0; }
.cl-date {
  font-family: var(--mono); font-size: 14px;
  color: var(--text-faint); letter-spacing: .04em;
  margin: 0 0 14px;
  text-transform: uppercase;
}
.cl-entry h3 {
  font-size: 12px; text-transform: uppercase; letter-spacing: .1em;
  margin: 18px 0 8px;
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--mono);
}
.cl-added   { color: var(--accent); background: rgba(32,200,150,.10); }
.cl-changed { color: #60a5fa;       background: rgba(96,165,250,.10); }
.cl-fixed   { color: var(--warn);   background: rgba(245,158,11,.10); }
.cl-infra   { color: var(--text-dim); background: rgba(255,255,255,.04); }
.cl-entry ul {
  margin: 6px 0 4px; padding-left: 22px;
  font-size: 14px; color: var(--text-dim);
}
.cl-entry li { margin-bottom: 4px; }
nav.topnav { display: flex; gap: 22px; font-size: 14px; }
nav.topnav a { color: var(--text-dim); }
nav.topnav a:hover { color: var(--text); }

.hero {
  padding: 70px 0 60px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(900px 400px at 80% 10%, rgba(32,200,150,.10), transparent 60%),
    radial-gradient(700px 350px at 10% 90%, rgba(32,200,150,.06), transparent 60%),
    var(--bg);
}
.hero-grid {
  display: grid; gap: 50px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
}
.hero-copy { min-width: 0; }
.hero-mark img {
  display: block; width: 260px; height: 260px;
  filter: drop-shadow(0 0 28px rgba(32,200,150,.25));
}
.hero-shot {
  position: relative; min-width: 0;
}
.hero-shot img {
  display: block; width: 100%; max-width: 640px; height: auto;
  border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 0 32px rgba(32,200,150,.10);
}
.hero-shot-cap {
  margin-top: 10px; font-family: var(--mono); font-size: 11px;
  color: var(--text-faint); text-transform: uppercase; letter-spacing: .08em;
  text-align: center;
}
.hero h1 {
  font-size: 44px; line-height: 1.1; margin: 0 0 16px;
  letter-spacing: -.025em; color: var(--text);
}
.hero-eyebrow {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 14px;
}
.hero .tag {
  color: var(--text-dim); font-size: 18px; margin: 0 0 24px;
  max-width: 620px;
}
.tag-sm {
  color: var(--text-faint); font-size: 13px; margin: 20px 0 0;
}
.tag-sm a { color: var(--text-dim); border-bottom: 1px dotted var(--text-faint); }
.hero .badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.badge {
  font-family: var(--mono); font-size: 11px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(32,200,150,.08); color: var(--accent);
  border: 1px solid rgba(32,200,150,.25);
}
.badge.alt { background: rgba(245,158,11,.08); color: var(--warn); border-color: rgba(245,158,11,.25); }
.hero .cta { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 9px 16px;
  border-radius: 6px; font-size: 14px; font-weight: 500;
  border: 1px solid var(--border); color: var(--text);
  background: var(--panel);
}
.btn:hover { border-color: var(--accent); text-decoration: none; }
.btn.primary {
  background: var(--accent); border-color: var(--accent); color: #0b0f14;
}
.btn.primary:hover { background: var(--accent-dim); border-color: var(--accent-dim); }

section { padding: 60px 0; border-bottom: 1px solid var(--border); }
section.dark { background: #090d12; }
section h2 { font-size: 28px; margin: 0 0 12px; letter-spacing: -.015em; }
section .sub { color: var(--text-dim); margin: 0 0 28px; max-width: 720px; font-size: 15px; }

.sample-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.shot-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.shot-tile {
  display: block;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  color: var(--text);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.shot-tile:hover {
  border-color: var(--accent);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0,0,0,.45), 0 0 24px rgba(32,200,150,.10);
}
.shot-tile img {
  display: block; width: 100%; height: 220px;
  object-fit: cover; object-position: top center;
  background: #060a10;
}
.shot-cap {
  padding: 12px 14px; font-size: 13px; color: var(--text-dim);
  border-top: 1px solid var(--border);
}
.shot-tag {
  display: inline-block; font-family: var(--mono); font-size: 10px;
  color: var(--accent); background: rgba(32,200,150,.1);
  padding: 2px 6px; border-radius: 4px; margin-right: 8px;
  text-transform: uppercase; letter-spacing: .08em;
  vertical-align: middle;
}
.shot-tag.alt { color: var(--warn); background: rgba(245,158,11,.1); }
.sample-tile {
  display: block;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--text);
  transition: border-color .15s, transform .15s;
}
.sample-tile:hover {
  border-color: var(--accent);
  text-decoration: none;
  transform: translateY(-1px);
}
.sample-tile-hd {
  display: inline-block;
  font-family: var(--mono); font-size: 10px;
  color: var(--accent); background: rgba(32,200,150,.1);
  padding: 2px 7px; border-radius: 4px; margin-bottom: 10px;
  text-transform: uppercase; letter-spacing: .08em;
}
.sample-tile-hd.alt { color: var(--warn); background: rgba(245,158,11,.1); }
.sample-tile-bd { font-size: 14px; line-height: 1.45; }
.sample-tile-bd strong { color: var(--text); }
.sample-tile-bd span { color: var(--text-dim); font-size: 13px; }

.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 18px 16px;
}
.card h3 {
  margin: 0 0 6px; font-size: 15px; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.card .ico {
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  background: rgba(32,200,150,.1); padding: 2px 6px; border-radius: 4px;
}
.card p { margin: 0; color: var(--text-dim); font-size: 13px; line-height: 1.55; }

.steps { counter-reset: step; }
.step {
  position: relative; padding-left: 50px; margin-bottom: 26px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent); color: #0b0f14;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-weight: 700; font-size: 14px;
}
.step h3 { margin: 0 0 6px; font-size: 16px; }
.step p { margin: 0 0 10px; color: var(--text-dim); font-size: 14px; }

footer.site {
  padding: 32px 0; color: var(--text-faint); font-size: 12px;
}
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer.site a { color: var(--text-dim); }
footer.site .copyright .mark { color: var(--text-dim); font-family: var(--mono); }

.callout {
  background: rgba(32,200,150,.04);
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 13px;
  color: var(--text-dim);
  border-radius: 0 6px 6px 0;
}
.callout.warn { background: rgba(245,158,11,.05); border-left-color: var(--warn); }

table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th, table.tbl td {
  text-align: left; padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}
table.tbl th { color: var(--text-dim); font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }

.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(4,8,12,.94);
  padding: 32px 64px;
}
.lightbox[hidden] { display: none; }
body.lb-locked { overflow: hidden; }
.lb-figure {
  margin: 0; display: flex; flex-direction: column; align-items: center;
  gap: 16px; max-width: 100%; max-height: 100%;
}
.lb-img {
  display: block; max-width: 92vw; max-height: 78vh;
  object-fit: contain;
  background: #060a10;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
  cursor: zoom-in;
}
.lb-cap {
  font-size: 14px; color: var(--text-dim);
  text-align: center; max-width: 92vw;
  padding: 8px 14px;
  background: rgba(8,14,22,.7);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.lb-cap .shot-tag { margin-right: 8px; }
.lb-count {
  display: inline-block; margin-left: 10px;
  font-family: var(--mono); font-size: 11px;
  color: var(--text-faint);
  letter-spacing: .05em;
}
.lb-btn {
  position: fixed;
  z-index: 2;
  background: rgba(8,14,22,.78);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 44px; height: 44px;
  font-size: 22px; line-height: 1;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s;
  display: flex; align-items: center; justify-content: center;
}
.lb-btn:hover { border-color: var(--accent); background: rgba(32,200,150,.12); }
.lb-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-close { top: 16px; right: 16px; }
.lb-zoom { top: 16px; right: 72px; }
.lb-zoom[aria-pressed="true"] {
  border-color: var(--accent); background: rgba(32,200,150,.15);
}

.lightbox.zoomed {
  align-items: flex-start; justify-content: flex-start;
  overflow: auto;
  padding: 0;
}
.lightbox.zoomed .lb-figure {
  gap: 0;
  padding: 0 0 80px 0;
  align-items: flex-start;
}
.lightbox.zoomed .lb-img {
  max-width: none; max-height: none;
  width: 100vw; height: auto;
  border-radius: 0; border: 0; box-shadow: none;
  cursor: grab;
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox.zoomed.dragging .lb-img { cursor: grabbing; }
.lightbox.zoomed .lb-cap {
  position: fixed; left: 50%; bottom: 16px;
  transform: translateX(-50%);
  z-index: 2;
}

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-mark, .hero-shot { order: -1; }
  .hero-mark img { width: 160px; height: 160px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 30px; }
  nav.topnav { display: none; }
  .step { padding-left: 0; padding-top: 38px; }
  .step::before { left: 0; top: 0; }
  .lightbox { padding: 16px; }
  .lb-img { max-height: 70vh; }
  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
  .lb-close { top: 6px; right: 6px; }
}
