:root {
  --bg: #06080d;
  --bg-elevated: #0c1018;
  --surface: #111827;
  --surface-hover: #161f2e;
  --text: #f1f5fb;
  --muted: #8b9bb8;
  --accent: #4d9fff;
  --accent-2: #7c5cff;
  --accent-glow: rgba(77, 159, 255, 0.35);
  --ok: #34d399;
  --warn: #fbbf24;
  --border: rgba(148, 163, 184, 0.14);
  --radius: 14px;
  --radius-lg: 22px;
  --font: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --container: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #7cb8ff; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(1.2);
  background: rgba(6, 8, 13, 0.88);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
  transition: opacity 0.15s;
}
.brand:hover { opacity: 0.92; }
.brand-logo {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(77,159,255,0.12), rgba(124,92,255,0.08));
  border: 1px solid rgba(77, 159, 255, 0.22);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04) inset, 0 8px 24px rgba(77, 159, 255, 0.12);
}
.brand-logo img,
.brand-logo svg {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.2;
}
.brand-name {
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}
.brand-by {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 9px 16px !important;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 16px var(--accent-glow);
}
.nav-cta:hover { color: #fff !important; filter: brightness(1.08); }
@media (max-width: 720px) {
  .brand-by { display: none; }
  .nav-links { gap: 12px; }
  .nav-links a:not(.nav-cta) { font-size: 0.85rem; }
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(165deg, #0a0f18 0%, var(--bg) 55%, #080b12 100%);
}
.hero-mesh {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(77,159,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77,159,255,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black, transparent);
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero-glow-a {
  width: 420px;
  height: 420px;
  top: -80px;
  right: 10%;
  background: rgba(124, 92, 255, 0.18);
}
.hero-glow-b {
  width: 360px;
  height: 360px;
  bottom: -60px;
  left: -40px;
  background: rgba(77, 159, 255, 0.14);
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  padding: 48px 0 72px;
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding: 40px 0 56px; }
}
.hero-copy {
  position: relative;
  padding: 28px 0;
}
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-shot-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  cursor: zoom-in;
  box-shadow: var(--shadow);
}
.hero-shot {
  width: 100%;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--muted);
}
.badge.accent {
  color: #b8d9ff;
  border-color: rgba(77,159,255,0.35);
  background: rgba(77,159,255,0.1);
}
.badge.accent.live { color: #a7f3d0; border-color: rgba(52,211,153,0.35); background: rgba(52,211,153,0.1); }
.badge.accent.pending { color: #fde68a; border-color: rgba(251,191,36,0.35); background: rgba(251,191,36,0.08); }
.badge.muted { text-transform: none; letter-spacing: 0; }

h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  line-height: 1.08;
  margin: 0 0 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}
h1 em { font-style: normal; color: var(--accent); }
.lead {
  color: #b8c5dc;
  font-size: 1.12rem;
  max-width: 52ch;
  margin: 0 0 28px;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn small { opacity: 0.85; font-weight: 500; font-size: 0.8rem; }
.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 32px var(--accent-glow);
}
.btn.secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn.block { width: 100%; }
.meta-line { color: var(--muted); font-size: 0.88rem; margin: 0; }
.meta-line code {
  font-family: var(--mono);
  font-size: 0.82rem;
  background: rgba(255,255,255,0.05);
  padding: 2px 8px;
  border-radius: 6px;
}

.glass {
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}
.panel-head {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 18px;
  font-weight: 600;
}
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}
.stat-row strong { color: var(--text); font-weight: 600; }
.stat-row strong.ok { color: var(--ok); }
.stat-row strong.warn { color: var(--warn); }
.meter {
  height: 9px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
  margin: 6px 0 18px;
}
.meter-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
}
.panel-note { font-size: 0.78rem; color: var(--muted); margin: 16px 0 0; }

/* Sections */
.section { padding: 80px 0; }
.section-head { margin-bottom: 40px; max-width: 640px; }
.section-head h2 {
  margin: 8px 0 12px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
}
.section-lead { color: var(--muted); margin: 0; font-size: 1.05rem; }
.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0;
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 800px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: rgba(77,159,255,0.3);
  transform: translateY(-3px);
}
.feature-img-btn,
.gallery-btn,
.hero-shot-btn,
.install-img-btn,
.privacy-visual-btn,
.author-visual-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: #0a0e14;
  cursor: zoom-in;
  overflow: hidden;
}
.feature-img-btn img,
.gallery-btn img {
  width: 100%;
  display: block;
  aspect-ratio: 4/3;
  object-fit: contain;
  background: #0a0e14;
}
.zoom-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  background: rgba(6, 8, 13, 0.78);
  border: 1px solid rgba(255,255,255,0.12);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}
.feature-img-btn:hover .zoom-hint,
.gallery-btn:hover .zoom-hint,
.hero-shot-btn:hover .zoom-hint,
.install-img-btn:hover .zoom-hint,
.privacy-visual-btn:hover .zoom-hint,
.author-visual-btn:hover .zoom-hint {
  opacity: 1;
  transform: translateY(0);
}
.feature-body { padding: 22px 24px 26px; }
.feature-body h3 { margin: 0 0 8px; font-size: 1.15rem; }
.feature-body p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Gallery */
.gallery-section { background: var(--bg-elevated); border-block: 1px solid var(--border); }
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .gallery-masonry { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-masonry { grid-template-columns: 1fr; } }
.gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}
.gallery-item.wide { grid-column: span 2; }
@media (max-width: 560px) { .gallery-item.wide { grid-column: span 1; } }
.gallery-btn img {
  width: 100%;
  min-height: 200px;
  max-height: 320px;
  object-fit: contain;
  background: #0a0e14;
  transition: transform 0.35s ease;
}
.gallery-item:hover .gallery-btn img { transform: scale(1.02); }
.gallery-item figcaption {
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: var(--surface);
}

/* Install */
.install-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 900px) { .install-grid { grid-template-columns: 1fr; } }
.install-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.install-card.recommended {
  border-color: rgba(77,159,255,0.35);
  box-shadow: 0 0 0 1px rgba(77,159,255,0.08), 0 16px 48px rgba(0,0,0,0.25);
}
.install-card.visual { padding: 0; overflow: hidden; }
.install-img-btn { height: 100%; min-height: 240px; }
.install-img-btn img { width: 100%; height: 100%; min-height: 240px; object-fit: contain; background: #0a0e14; }
.install-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 10px;
}
.install-card h3 { margin: 0 0 10px; }
.install-card p { color: var(--muted); margin: 0 0 14px; font-size: 0.94rem; }
.code-block {
  background: #080c12;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 0 0 16px;
  overflow-x: auto;
}
.code-block code {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: #c8daf5;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Release */
.release-section {
  background: linear-gradient(180deg, var(--bg-elevated), var(--bg));
  border-block: 1px solid var(--border);
}
.release-flow {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.flow-step {
  flex: 1;
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.flow-step span {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
}
.flow-step p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.flow-arrow { color: var(--muted); font-size: 1.2rem; }
@media (max-width: 700px) { .flow-arrow { display: none; } }
.release-commands {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 800px) { .release-commands { grid-template-columns: 1fr; } }
.cmd-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.cmd-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 10px;
}
.sync-note { color: var(--muted); font-size: 0.85rem; margin-top: 24px; }

/* Privacy */
.privacy-section { padding: 80px 0; }
.privacy-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) { .privacy-inner { grid-template-columns: 1fr; } }
.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  color: var(--muted);
}
.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ok);
  font-weight: 700;
}
.check-list strong { color: var(--text); }
.privacy-visual-btn,
.author-visual-btn {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.privacy-visual,
.author-visual {
  border-radius: var(--radius-lg);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  background: #0a0e14;
  display: block;
}

/* Author */
.author-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  overflow: hidden;
}
@media (max-width: 700px) { .author-card { grid-template-columns: 1fr; } }
.author-visual {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
}
.author-card h2 { margin: 8px 0 10px; font-size: 1.5rem; }
.author-card p { color: var(--muted); margin: 0 0 8px; }
.oss-note { font-size: 0.9rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 48px;
  text-align: center;
}
.footer-inner p { margin: 6px 0; color: var(--muted); font-size: 0.88rem; }
.footer-inner a { color: var(--muted); text-decoration: none; }
.footer-inner a:hover { color: var(--text); }

/* Privacy page */
.page-hero {
  padding: 40px 0 32px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  margin: 8px 0 10px;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: none;
}
.page-hero .lead {
  margin: 0;
  font-size: 1rem;
}
.prose-wrap {
  padding: 48px 0 80px;
}
.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.prose h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
  color: var(--text);
}
.prose h2:first-child { margin-top: 0; }
.prose p,
.prose li { color: var(--muted); margin: 0 0 1rem; }
.prose ul {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}
.prose li { margin-bottom: 0.5rem; }
.prose strong { color: var(--text); }
.prose code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 7px;
  border-radius: 6px;
  color: #c8daf5;
}
.prose a { color: var(--accent); }

/* Legacy alias */
.hero.compact {
  position: relative;
  min-height: auto;
  display: block;
  overflow: visible;
  padding: 48px 0 32px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

/* Lightbox / photo viewer */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
}
.lightbox[hidden] { display: none; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 10, 0.92);
  backdrop-filter: blur(8px);
}
.lightbox-stage {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(96vw, 1200px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.lightbox-stage img {
  max-width: 100%;
  max-height: calc(90vh - 80px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
  background: #0a0e14;
}
.lightbox-stage figcaption {
  color: var(--text);
  font-size: 0.95rem;
  text-align: center;
  max-width: 60ch;
}
.lightbox-counter {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 2;
  border: 1px solid var(--border);
  background: rgba(17, 24, 39, 0.9);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(30, 41, 59, 0.95);
  transform: scale(1.05);
}
.lightbox-close {
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 1.6rem;
  line-height: 1;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
}
.lightbox-nav:hover { transform: translateY(-50%) scale(1.05); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
body.lightbox-open { overflow: hidden; }
@media (max-width: 640px) {
  .lightbox-nav { width: 40px; height: 40px; font-size: 1.5rem; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}
