/* ==========================================================================
   AMR Landing Page — Pure Black (#000000) Laconic Layout
   ========================================================================== */

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

section {
  padding: 80px 0;
  background: #000000;
}

.section-divider {
  height: 1px;
  max-width: var(--max-w);
  margin: 0 auto;
  background: #18181d;
}

.section-head {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-head.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-title {
  margin-top: 12px;
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.section-desc {
  margin-top: 10px;
  font-size: clamp(15px, 1.3vw, 17px);
  color: var(--text-secondary);
  line-height: 1.58;
}

/* Sticky Monochrome Top Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid #18181d;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

.brand-name {
  font-size: 15.5px;
  font-weight: 760;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 7px;
}

.brand-ver-chip {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
  background: #121216;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 560;
  color: var(--text-secondary);
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
  background: #121216;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-nav-download {
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 12.5px;
}

/* Hero Section */
.hero-section {
  padding: 64px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(290px, 0.7fr);
  gap: 36px;
  align-items: center;
}

.hero-title {
  margin-top: 16px;
  font-size: clamp(34px, 4.8vw, 58px);
  font-weight: 840;
  letter-spacing: -0.038em;
  line-height: 1.06;
}

.hero-muted-span {
  color: #8e8e98;
}

.hero-lead {
  margin-top: 16px;
  font-size: clamp(15.5px, 1.35vw, 18px);
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.58;
}

.hero-lead strong {
  color: #ffffff;
  font-weight: 640;
}

.hero-cta-row {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-meta-line {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Hero QR Card */
.hero-qr-dock {
  background: #09090b;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-qr-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hero-qr-body {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.qr-frame-mini {
  width: 112px;
  height: 112px;
  padding: 6px;
  border-radius: 12px;
  background: #ffffff;
}

.qr-frame-mini img {
  width: 100%;
  height: 100%;
}

.hero-qr-copy h2 {
  font-size: 15px;
  font-weight: 720;
}

.hero-qr-copy p {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Compact 4-Metric Strip */
.telemetry-strip {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.telemetry-cell {
  background: #09090b;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 15px 16px;
}

.telemetry-val {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.telemetry-label {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

/* Comparison Table */
.comparison-wrap {
  background: #08080a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  font-size: 13.5px;
}

.comparison-table th,
.comparison-table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid #19191f;
}

.comparison-table thead th {
  background: #0d0d10;
  font-size: 11.5px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.comparison-table thead th.col-amr,
.comparison-table tbody td.col-amr {
  background: #101311;
  border-left: 1px solid rgba(48, 209, 88, 0.25);
  border-right: 1px solid rgba(48, 209, 88, 0.25);
}

.comparison-table thead th.col-amr {
  color: #ffffff;
}

.cmp-yes { color: var(--amr-green); font-weight: 650; }
.cmp-partial { color: var(--amr-amber); }
.cmp-no { color: var(--text-muted); }

/* Download & QR Hub */
.download-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 20px;
}

.download-card,
.qr-showcase-card {
  background: #09090b;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.install-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.install-step {
  background: #0f0f13;
  border: 1px solid #1e1e24;
  border-radius: 11px;
  padding: 13px;
}

.install-step-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--amr-green);
}

.install-step h4 {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
}

.install-step p {
  margin-top: 3px;
  font-size: 12px;
  color: var(--text-secondary);
}

.terminal-block {
  background: #050507;
  border: 1px solid #1d1d24;
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #d6d6e0;
  overflow-x: auto;
}

.copy-chip-btn {
  padding: 4px 9px;
  border-radius: 6px;
  background: #16161b;
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: #ffffff;
}

.qr-showcase-card {
  align-items: center;
  text-align: center;
}

.qr-tabs {
  display: inline-flex;
  padding: 3px;
  border-radius: 9px;
  background: #121216;
  border: 1px solid var(--border-subtle);
  gap: 4px;
}

.qr-tab-btn {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 650;
  color: var(--text-secondary);
}

.qr-tab-btn.active {
  background: #222229;
  color: #ffffff;
}

.qr-large-stage {
  width: 208px;
  height: 208px;
  padding: 11px;
  background: #ffffff;
  border-radius: 20px;
}

.qr-large-stage img {
  width: 100%;
  height: 100%;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 10px;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: #09090b;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.faq-item[open] {
  border-color: var(--border-strong);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 660;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

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

.faq-chevron {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--text-secondary);
  transition: transform 0.18s ease;
}

.faq-item[open] .faq-chevron {
  transform: rotate(45deg);
  color: #ffffff;
}

.faq-answer {
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.62;
}

.faq-answer code {
  background: #15151a;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: #f2f2f7;
}

/* Footer & Modals */
.site-footer {
  border-top: 1px solid #18181d;
  padding: 40px 0 48px;
  background: #000000;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: #ffffff;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop[hidden] {
  display: none !important;
}

.qr-modal-card {
  width: 100%;
  max-width: 380px;
  background: #0d0d10;
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  padding: 24px;
  text-align: center;
}

.qr-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.qr-modal-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #1a1a20;
  font-size: 18px;
  color: var(--text-secondary);
}

/* Lightbox for Real Retina Screenshots */
.lightbox-card {
  max-width: min(1160px, 95vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lightbox-card img {
  max-height: 82vh;
  width: auto;
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.95);
}

@media (max-width: 1040px) {
  .hero-grid,
  .download-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .telemetry-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .container,
  .nav-inner {
    padding: 0 16px;
  }
  .brand-ver-chip,
  .nav-actions a[href*="github.com/1orgar/amr"]:not(.btn-nav-download) {
    display: none;
  }
  .btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
    height: auto;
    min-height: 42px;
    padding: 9px 15px;
  }
  .btn-nav-download,
  .nav-actions .btn-ghost {
    min-height: 32px;
    height: 32px;
    padding: 0 10px;
    font-size: 12px;
    white-space: nowrap;
  }
  section {
    padding: 56px 0;
  }
  .hero-section {
    padding: 36px 0 40px;
  }
  .hero-cta-row .btn {
    width: 100%;
  }
  .hero-qr-body,
  .telemetry-strip,
  .install-steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-qr-body {
    justify-items: center;
    text-align: center;
  }
  .download-card,
  .qr-showcase-card {
    padding: 20px;
  }
}
