/* ==========================================================================
   MirrorCam — landing page
   Dark "TV screen" theme · pixel-careful spacing · responsive two-column
   ========================================================================== */

:root {
  --bg-0: #060b16;
  --bg-1: #0a1322;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-border: rgba(148, 184, 255, 0.13);
  --panel-strong: rgba(255, 255, 255, 0.06);

  --text-hi: #eef4ff;
  --text-mid: #b6c4da;
  --text-low: #7f91ac;

  --cyan: #2fd4f0;
  --cyan-hi: #7de9ff;
  --cyan-deep: #0e2e3d;

  --amber: #f2b04c;
  --amber-hi: #ffd489;
  --amber-deep: #33240f;

  --green: #43d48e;

  --radius-lg: 20px;
  --radius-md: 13px;
  --radius-sm: 9px;

  --shadow-card: 0 24px 70px -30px rgba(0, 0, 0, 0.75);
  --shadow-btn: 0 14px 32px -12px rgba(47, 212, 240, 0.55);
  --shadow-btn-amber: 0 14px 30px -12px rgba(242, 176, 76, 0.42);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text-mid);
  background:
    radial-gradient(1100px 620px at 12% -10%, rgba(47, 212, 240, 0.12), transparent 60%),
    radial-gradient(900px 600px at 105% 15%, rgba(64, 122, 255, 0.1), transparent 55%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0) 46%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* faint pixel-grid texture over the backdrop */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(120, 160, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 78%);
}

/* ---------- layout ---------- */
.shell {
  position: relative;
  z-index: 1;
  width: min(1180px, 100% - 40px);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) 0 40px;
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: clamp(22px, 3vw, 36px);
  align-items: start;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(8px);
}

/* ---------- LEFT SIDE ---------- */
.side {
  padding: 26px;
  position: sticky;
  top: 26px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  background:
    linear-gradient(180deg, rgba(47, 212, 240, 0.05), transparent 40%),
    var(--panel);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--cyan-hi);
  background: linear-gradient(145deg, rgba(47, 212, 240, 0.2), rgba(47, 212, 240, 0.05));
  border: 1px solid rgba(47, 212, 240, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.brand-name {
  margin: 0;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: 0.2px;
  color: var(--text-hi);
}

.brand-ver {
  margin: 1px 0 0;
  font-size: 12px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-low);
}

.side-inner {
  display: flex;
  flex-direction: column;
}

.side-lead {
  margin: 2px 0 18px;
  font-size: 15.5px;
  color: var(--text-mid);
}

/* download button */
.btn-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 18px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #05222c;
  text-decoration: none;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--cyan-hi), var(--cyan) 55%);
  border: 1px solid rgba(160, 240, 255, 0.7);
  box-shadow: var(--shadow-btn), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: transform 0.16s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-download:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 20px 40px -12px rgba(47, 212, 240, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.btn-download:active { transform: translateY(0); }

.btn-download:focus-visible,
.btn-donate:focus-visible {
  outline: 2px solid var(--cyan-hi);
  outline-offset: 3px;
}

.file-meta {
  margin: 9px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-low);
  font-variant-numeric: tabular-nums;
}

/* trust badge */
.badge {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #c9f5df;
  background: rgba(67, 212, 142, 0.09);
  border: 1px solid rgba(67, 212, 142, 0.32);
  border-radius: 999px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(67, 212, 142, 0.55);
  animation: pulse 2.4s infinite;
  flex: none;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(67, 212, 142, 0.5); }
  70%  { box-shadow: 0 0 0 7px rgba(67, 212, 142, 0); }
  100% { box-shadow: 0 0 0 0 rgba(67, 212, 142, 0); }
}

/* donate zone */
.donate-zone {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px dashed rgba(148, 184, 255, 0.18);
}

.donate-note {
  margin: 0 0 15px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-mid);
  font-style: italic;
}

.donate-note::before {
  content: "\201C";
  font-size: 22px;
  line-height: 0;
  vertical-align: -6px;
  color: var(--amber-hi);
  font-style: normal;
  margin-right: 1px;
}

.btn-donate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 13px 18px;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #2a1c06;
  text-decoration: none;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--amber-hi), var(--amber) 60%);
  border: 1px solid rgba(255, 220, 150, 0.65);
  box-shadow: var(--shadow-btn-amber), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.16s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-donate:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 18px 34px -12px rgba(242, 176, 76, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-donate:active { transform: translateY(0); }

/* ---------- RIGHT SIDE ---------- */
.content { padding: clamp(26px, 4vw, 44px); }

.prose h1 {
  margin: 0 0 8px;
  font-size: clamp(25px, 3.2vw, 34px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.3px;
  color: var(--text-hi);
}

.prose h2 {
  margin: 30px 0 10px;
  padding-left: 13px;
  border-left: 3px solid var(--cyan);
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.1px;
  color: var(--text-hi);
  line-height: 1.3;
}

.prose p {
  margin: 0;
  font-size: 15.5px;
  color: var(--text-mid);
}

.prose strong { color: var(--text-hi); font-weight: 650; }

/* FAQ */
.faq {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(148, 184, 255, 0.16);
}

.faq-title {
  margin: 0 0 16px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: var(--text-hi);
}

.qa {
  border: 1px solid rgba(148, 184, 255, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.028);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.qa[open] {
  border-color: rgba(47, 212, 240, 0.35);
  background: rgba(47, 212, 240, 0.045);
}

.qa summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
  font-size: 15px;
  font-weight: 650;
  color: var(--text-hi);
  transition: color 0.18s ease;
}

.qa summary::-webkit-details-marker { display: none; }

.qa summary::after {
  content: "+";
  flex: none;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  font-size: 16px;
  font-weight: 700;
  color: var(--cyan-hi);
  background: rgba(47, 212, 240, 0.1);
  border: 1px solid rgba(47, 212, 240, 0.28);
  transition: transform 0.22s ease, background 0.2s ease;
}

.qa[open] summary::after {
  transform: rotate(45deg);
  background: rgba(47, 212, 240, 0.22);
}

.qa summary:hover { color: var(--cyan-hi); }

.qa summary:focus-visible {
  outline: 2px solid var(--cyan-hi);
  outline-offset: -2px;
  border-radius: var(--radius-md);
}

.qa-body {
  padding: 0 18px 16px;
  font-size: 14.5px;
  color: var(--text-mid);
  animation: qaIn 0.22s ease;
}

.qa-body p { margin: 0; }

.qa-body strong { color: var(--text-hi); }

@keyframes qaIn {
  from { opacity: 0; transform: translateY(-3px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- footer ---------- */
.foot {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 8px 20px 46px;
  font-size: 13px;
  color: var(--text-low);
}

.foot a {
  color: var(--cyan-hi);
  text-decoration: none;
  border-bottom: 1px solid rgba(125, 233, 255, 0.35);
}

.foot a:hover { color: var(--cyan-hi); border-bottom-color: var(--cyan-hi); }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .shell {
    grid-template-columns: 1fr;
    width: min(680px, 100% - 28px);
    padding-top: 22px;
  }

  .side {
    position: static;
    order: -1;
  }
}

@media (max-width: 480px) {
  .panel { border-radius: 16px; }
  .side, .content { padding: 20px; }
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .badge-dot { animation: none; }
  .qa-body { animation: none; }
  .btn-download, .btn-donate { transition: none; }
}
