/*
  Base styles for Hermes Meta site.
  This file provides a dark, editorial aesthetic with a bright accent color.
  It is shared across all pages to ensure consistency.
*/

:root {
  --bg: #0b0d10;
  --panel: rgba(255,255,255,0.06);
  --panel2: rgba(255,255,255,0.04);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.72);
  --faint: rgba(255,255,255,0.55);
  --line: rgba(255,255,255,0.12);
  --accent: #7c5cff; /* primary accent colour */
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
  --max: 1080px;
  --transition-speed: 0.2s;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

html, body { overflow-x: hidden; }

body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(900px 500px at 20% 10%, rgba(255,255,255,0.10), transparent 60%),
    radial-gradient(800px 420px at 80% 15%, rgba(124,92,255,0.14), transparent 60%),
    radial-gradient(900px 520px at 50% 90%, rgba(255,255,255,0.06), transparent 60%),
    var(--bg);
}

body.noScroll {
  overflow: hidden;
}

a { color: inherit; text-decoration: none; transition: opacity var(--transition-speed) ease; }
a:hover { opacity: 0.92; }

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

/* Sections */
.section {
  padding-top: 26px;
}
.sectionHead {
  margin: 6px 0 12px;
}
.sectionHead .sublead {
  margin-top: 6px;
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(11,13,16,0.55);
  border-bottom: 1px solid var(--line);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  letter-spacing: 0.2px;
}
.logoMark {
  width: 14px;
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(255,255,255,0.85), rgba(124,92,255,0.9));
  box-shadow: 0 6px 18px rgba(124,92,255,0.25);
}

.navLinks {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}
.navLinks a {
  padding: 8px 10px;
  border-radius: 12px;
}
.navLinks a:hover {
  background: rgba(255,255,255,0.06);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(135deg, rgba(124,92,255,0.95), rgba(124,92,255,0.65));
  box-shadow: var(--shadow);
  font-weight: 650;
  transition: transform var(--transition-speed) ease;
}
.btn:hover { transform: translateY(-2px); }
.btnSmall { padding: 10px 12px; font-size: 14px; }
.btnGhost {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: none;
}

/* Hero */
.hero {
  padding: 38px 0 22px;
}

/* Hero grid */
.heroGrid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  margin-top: 14px;
  align-items: start;
}
.zoom {
  display: block;
  cursor: zoom-in;
}
.snapshotLink{display:block;cursor:pointer}
.heroMedia img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.pill {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-size: 12px;
}
h1 {
  margin: 14px 0 8px;
  font-size: 48px;
  letter-spacing: -0.7px;
}
h2 {
  margin: 0 0 14px;
  font-size: 20px;
  color: var(--muted);
  font-weight: 520;
}
.lead {
  font-size: 18px;
  color: var(--text);
  line-height: 1.45;
  max-width: 70ch;
}
.sublead {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 78ch;
}
.ctaRow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.strip {
  margin-top: 20px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.stripItems { color: var(--text); }

/* Layout sections */
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.grid3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}
.card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  padding: 18px;
}
h3 {
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: -0.2px;
}
h4 {
  margin: 0 0 6px;
  font-size: 15px;
}
.stack > div {
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.10);
}
.stack > div:first-child {
  border-top: none;
  padding-top: 0;
}
.bullets {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.65;
}
.bullets strong { color: var(--text); }

.fineprint {
  margin-top: 12px;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.55;
}

.quotes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
blockquote {
  margin: 0;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  line-height: 1.65;
}
cite {
  display: block;
  margin-top: 8px;
  color: rgba(255,255,255,0.72);
  font-style: normal;
  font-size: 12px;
}


/* References (with avatars) */
.refs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.refCard {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255,255,255,0.02);
}

.refTop {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.refAvatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.08);
  filter: grayscale(0.10) saturate(0.85) contrast(1.1) brightness(0.95);
}

.refName {
  font-weight: 800;
  line-height: 1.1;
}

.refMeta {
  color: var(--faint);
  font-size: 12px;
  margin-top: 2px;
}

.refQuote {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.refsFooter {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.refMini {
  display: flex;
  align-items: center;
  gap: 10px;
}

.refAvatarSm {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.08);
  filter: grayscale(0.12) saturate(0.85) contrast(1.1) brightness(0.95);
}

@media (max-width: 720px) {
  .refs { grid-template-columns: 1fr; }
}

/* Footer */
.footer {
  margin-top: 16px;
  padding: 18px 4px 0;
  color: var(--faint);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  border-top: 1px solid rgba(255,255,255,0.10);
}
.footerLinks { display: flex; gap: 12px; }
.footerLinks a { color: var(--faint); }
.footerLinks a:hover { color: var(--text); }

/* Responsive */
@media (max-width: 860px) {
  .grid2 { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: 1fr; }
  .heroGrid { grid-template-columns: 1fr; }
  h1 { font-size: 40px; }
  .navLinks { gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
}

/* Receipts gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

/* Proof gallery sizing: keep screenshots readable without taking over the page */
.gallery .shot img {
  height: 220px;
  object-fit: contain;
  background: rgba(255,255,255,0.04);
}

@media (max-width: 680px) {
  .gallery .shot img { height: 180px; }
}


.shot {
  margin: 0;
}
.shot img {
  display: block;
  width: 100%;
  height: 104px;
  object-fit: contain;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  background: rgba(0,0,0,0.28);
}
.shot figcaption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

@media (max-width: 640px) {
  .shot img { height: 96px; }
}


/* Partner link row */
.faint { color: var(--faint); }

.partnerRow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.partnerRow .partner {
  gap: 8px;
}

.partnerIcon {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 auto;
  border: 1px solid var(--line);
}

.partnerRow a {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  background: var(--panel2);
}

.partnerRow a:hover {
  border-color: var(--accent);
}

.card h4 a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.card h4 a:hover {
  border-bottom-color: var(--accent);
}

/* Lightbox (Receipts gallery) */
.lightbox {
  position: fixed;
  inset: 0;
  padding: 28px 18px;
  background: rgba(11, 13, 16, 0.82);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
  z-index: 9999;
}

.lightbox.isOpen {
  opacity: 1;
  pointer-events: auto;
}

.lightboxPanel {
  width: 100%;
  max-width: min(1120px, 96vw);
}

.lightboxImg {
  width: 100%;
  height: auto;
  max-height: 84vh;
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.60);
  transform: scale(0.985);
  transition: transform 160ms ease;
}

.lightbox.isOpen .lightboxImg {
  transform: scale(1);
}

.lightboxCaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.lightboxClose {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.lightboxClose:hover {
  border-color: var(--accent);
}
