/* ─────────────────────────────────────────────────────────────────
   MizMap landing page — technical & minimal
   Dark theme, HUD-green accent, mono for chrome, system-ui for prose.
   ──────────────────────────────────────────────────────────────── */

:root {
  --bg:        #0a0e14;
  --bg-soft:   #11161e;
  --surface:   #161c25;
  --surface-2: #1d2530;
  --border:    #232c39;
  --border-bright: #2e3a4c;
  --text:      #e6edf3;
  --text-dim:  #9ba8b7;
  --muted:     #6e7c8d;

  --accent:    #7ee787;   /* HUD phosphor green */
  --accent-dim: #4fa45a;
  --accent-warn: #ffb84d; /* amber, for status chip */

  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Cascadia Code",
          "JetBrains Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  --max:    1100px;
  --radius: 6px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.4),
            0 0 0 1px rgba(126, 231, 135, 0.04);
}

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

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(126,231,135,0.06), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(126,231,135,0.04), transparent 60%),
    var(--bg);
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dotted rgba(126, 231, 135, 0.4);
  transition: color 0.15s, border-color 0.15s;
}
a:hover {
  color: #b4f0bb;
  border-bottom-color: rgba(180, 240, 187, 0.7);
}

code, pre {
  font-family: var(--mono);
  font-size: 0.92em;
}
code {
  background: var(--surface);
  padding: 0.08em 0.4em;
  border-radius: 3px;
  border: 1px solid var(--border);
  color: #c8e1cb;
}
pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ── Site header ─────────────────────────────────────────────── */
.site {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(10, 14, 20, 0.82);
  border-bottom: 1px solid var(--border);
}
.site .container { padding-top: 14px; padding-bottom: 14px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  border-bottom: none;
}
.brand:hover { color: var(--accent); }
img.brand-glyph {
  display: block;
  height: 1.65em;
  width: auto;
  flex-shrink: 0;
}
.brand-text { font-size: 1.05rem; }

.nav {
  display: flex;
  gap: 22px;
  font-family: var(--mono);
  font-size: 0.88rem;
}
.nav a {
  color: var(--text-dim);
  border-bottom: none;
}
.nav a:hover { color: var(--accent); }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  padding: 80px 0 40px;
  position: relative;
  overflow: hidden;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-warn);
  background: rgba(255, 184, 77, 0.08);
  border: 1px solid rgba(255, 184, 77, 0.25);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.status-chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-warn);
  box-shadow: 0 0 8px rgba(255, 184, 77, 0.7);
}

.hero h1 {
  font-family: var(--mono);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  line-height: 1.05;
}

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--text-dim);
  max-width: 720px;
  margin: 0 0 28px;
}
.lede strong {
  color: var(--text);
  font-weight: 600;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 18px;
}

.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s, border-color 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: #0a1208;
  border-color: var(--accent);
  box-shadow: 0 0 0 0 rgba(126, 231, 135, 0.5);
}
.btn-primary:hover {
  background: #95ed9d;
  border-color: #95ed9d;
  color: #0a1208;
}
.btn-primary .btn-sub {
  font-weight: 400;
  font-size: 0.72rem;
  opacity: 0.7;
  letter-spacing: 0.04em;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-bright);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-note {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 720px;
}

.hero-shot {
  margin-top: 48px;
}

/* ── Figures / screenshots ──────────────────────────────────── */
.shot {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  background:
    repeating-linear-gradient(
      45deg,
      var(--surface) 0 10px,
      var(--surface-2) 10px 20px
    );
  cursor: zoom-in;
  transition: opacity 0.15s;
}
.shot img:hover {
  opacity: 0.92;
}

/* ── Lightbox ────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 10, 0.92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  cursor: zoom-out;
  padding: 32px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.7);
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: transparent;
  border: 1px solid var(--border-bright);
  color: var(--text);
  font-family: var(--mono);
  font-size: 1.1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
}
.lightbox-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.shot figcaption {
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}
.shot-hero {
  /* hero image — slightly larger frame */
}

/* ── Section headers ───────────────────────────────────────── */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent-dim);
  text-transform: none;
  margin: 0 0 18px;
}

section h2:not(.eyebrow) {
  font-family: var(--mono);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 16px;
}

section h3 {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text);
}

section p {
  color: var(--text-dim);
  margin: 0 0 12px;
}

/* ── Why ────────────────────────────────────────────────────── */
.why {
  padding: 64px 0 24px;
  border-top: 1px solid var(--border);
}
.why-body {
  font-size: 1.05rem;
  max-width: 780px;
  color: var(--text);
}

/* ── Features ──────────────────────────────────────────────── */
.features {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}
.feature {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: center;
  margin: 0 0 56px;
}
.feature.alt {
  grid-template-columns: 1.1fr 1fr;
}
.feature.alt .shot { order: 1; }
.feature.alt .feature-text { order: 2; }
.feature p { font-size: 0.98rem; }

.feature-bullets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 32px;
  list-style: none;
  padding: 28px 0 0;
  margin: 28px 0 0;
  border-top: 1px solid var(--border);
}
.feature-bullets li {
  font-size: 0.95rem;
  color: var(--text-dim);
  padding-left: 18px;
  position: relative;
}
.feature-bullets li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.feature-bullets strong {
  color: var(--text);
  font-weight: 600;
  font-family: var(--mono);
  font-size: 0.92em;
}

/* ── Architecture ──────────────────────────────────────────── */
.architecture {
  padding: 64px 0;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(126,231,135,0.015));
}
.arch-body {
  max-width: 780px;
  margin-bottom: 24px;
}
.arch-diagram {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  overflow-x: auto;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.5;
  box-shadow: var(--shadow);
}

/* ── Quickstart ────────────────────────────────────────────── */
.quickstart {
  padding: 64px 0 80px;
  border-top: 1px solid var(--border);
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.steps li {
  position: relative;
  padding: 22px 22px 22px 60px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  counter-increment: step;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 22px;
  left: 22px;
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.steps li p { font-size: 0.92rem; margin-bottom: 6px; }
.steps li .note {
  font-size: 0.82rem;
  color: var(--muted);
  border-left: 2px solid var(--border-bright);
  padding-left: 10px;
  margin-top: 10px;
}

.from-source {
  margin-top: 32px;
  padding: 22px 24px;
  background: var(--bg-soft);
  border: 1px dashed var(--border-bright);
  border-radius: var(--radius);
}
.from-source h3 { margin-bottom: 6px; }
.from-source p { margin: 0; font-size: 0.93rem; }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 24px 0;
  font-family: var(--mono);
  font-size: 0.82rem;
}
.site-footer .muted { color: var(--muted); }
.site-footer a { color: var(--text-dim); border-bottom-color: rgba(155, 168, 183, 0.3); }
.site-footer a:hover { color: var(--accent); border-bottom-color: rgba(126, 231, 135, 0.5); }
.footer-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 820px) {
  .hero { padding: 48px 0 20px; }
  .nav { gap: 14px; font-size: 0.82rem; }
  .nav a:nth-child(3) { display: none; } /* drop "Architecture" on small screens */

  .feature,
  .feature.alt {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .feature.alt .feature-text,
  .feature.alt .shot { order: initial; }

  .feature-bullets { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }

  .site-footer .row { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; align-items: center; }
}
