:root {
  --bg: #0b0c10;
  --card: #12131a;
  --text: #e8e8ef;
  --muted: #b7b7c6;
  --accent: #22c55e;
  --warn: #f97316;
  --border: #26283a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, #0b0c10, #0e1020);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1000px; margin: 0 auto; padding: 24px; }

.nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.nav .brand { font-weight: 700; letter-spacing: .3px; }

.nav .links { display: flex; gap: 14px; flex-wrap: wrap; }

.box, .hero, .card, .shots, .steps {
  border: 1px solid var(--border);
  background: rgba(18, 19, 26, .75);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
}

h1 { margin: 0 0 10px 0; font-size: 26px; }
h2 { margin: 18px 0 10px 0; font-size: 18px; }
p, li { color: var(--muted); line-height: 1.7; }

.pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--border);
  background: #0f1020;
  border-radius: 999px;
  padding: 8px 12px;
  margin-right: 8px;
  margin-bottom: 8px;
}

.dot { width: 10px; height: 10px; border-radius: 999px; background: var(--accent); }
.dot.warn { background: var(--warn); }

.shot {
  border: 1px solid var(--border);
  background: #0f1020;
  border-radius: 14px;
  overflow: hidden;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.shot img {
  display: block;
  width: 50%;
  height: auto;
  margin: 10px auto;
  cursor: zoom-in;
  transition: transform 0.15s ease;
}

.shot img:hover {
  transform: scale(1.01);
}

.cap {
  padding: 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
  text-align: center;
  width: 100%;
}

/* Grid and Side-by-Side Images */
/* --- Screenshot grid --- */
.grid, .shots-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.card { grid-column: span 6; }

figure {
  margin: 0;
  grid-column: span 6;
  border: 1px solid var(--border);
  background: #0f1020;
  border-radius: 12px;
  overflow: hidden;
}

figcaption {
  padding: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

/* Single image inside a figure */
figure > img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
  transition: transform 0.15s ease;
}
figure > img:hover { transform: scale(1.01); }

/* Two images side-by-side */
.figure-row {
  display: flex;
  gap: 10px;
  padding: 10px;
}
.figure-row img {
  width: 50%;
  height: auto;
  border-radius: 8px;
  cursor: zoom-in;
  transition: transform 0.15s ease;
}
.figure-row img:hover { transform: scale(1.01); }

/* --- Modal --- */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(0,0,0,0.88);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.open { display: flex; }

.modal-content {
  max-width: min(1100px, 95vw);
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0f1020;
}

.close-modal {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15,16,32,.8);
  color: white;
  font-size: 28px;
  cursor: pointer;
}

.close-modal:hover { background: rgba(15,16,32,1); }

@media (max-width: 820px) {
  .card, figure { grid-column: span 12; }
  .figure-row { flex-direction: column; }
  .figure-row img { width: 100%; }
}
