:root {
  --bg: #050505;
  --bg-elevated: #0c0c0c;
  --border: #1f1f1f;
  --text: #e8e8e8;
  --muted: #8a8a8a;
  --accent: #00ff66;
  --accent-dim: rgba(0, 255, 102, 0.15);
  --accent-glow: rgba(0, 255, 102, 0.35);
  --radius: 12px;
  --font-mono: "Victor Mono", "Source Code Pro", "Courier New", monospace;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Subtle grid + vignette */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% -10%, black 40%, transparent 75%);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  color: var(--accent);
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 11px;
  border-radius: 6px;
  box-shadow: 0 0 24px var(--accent-glow);
}

nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

nav a:not(.btn) {
  color: var(--muted);
  font-size: 13px;
}

nav a:not(.btn):hover,
nav a[aria-current="page"] {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #020202;
  box-shadow: 0 0 32px var(--accent-glow);
}

.btn-primary:hover {
  box-shadow: 0 0 48px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--muted);
  background: var(--bg-elevated);
}

/* Hero */
.hero {
  padding: 72px 0 56px;
  position: relative;
}

.hero--compact {
  padding: 48px 0 36px;
}

.hero--compact .lead {
  max-width: 52ch;
  margin-bottom: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(2rem, 5vw, 2.85rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

h1 em {
  font-style: italic;
  color: var(--accent);
}

.lead {
  margin: 0 0 28px;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 36ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-actions--center {
  justify-content: center;
  margin-bottom: 0;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  font-size: 12px;
  color: var(--muted);
}

.meta-row strong {
  color: var(--text);
  font-weight: 600;
}

/* ASCII preview panel */
.preview-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  overflow: hidden;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.preview-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  color: var(--muted);
}

.preview-dots {
  display: flex;
  gap: 6px;
}

.preview-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #333;
}

.preview-dots span:nth-child(1) { background: #ff5f56; }
.preview-dots span:nth-child(2) { background: #ffbd2e; }
.preview-dots span:nth-child(3) { background: #27c93f; }

.preview-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 260px;
}

@media (max-width: 520px) {
  .preview-body {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}

.preview-pane {
  padding: 20px;
  font-size: 9px;
  line-height: 1.25;
  overflow: hidden;
}

.preview-pane:first-child {
  border-right: 1px solid var(--border);
  color: var(--muted);
}

@media (max-width: 520px) {
  .preview-pane:first-child {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

.preview-pane:last-child {
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-dim);
  background: linear-gradient(160deg, rgba(0, 255, 102, 0.06), transparent 55%);
}

.preview-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  color: var(--muted);
}

.preview-pane:last-child .preview-label {
  color: var(--accent);
}

.preview-pre {
  margin: 0;
  font: inherit;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Sections */
section {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

section h2 {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}

section .section-title {
  margin: 0 0 36px;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.features {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: rgba(0, 255, 102, 0.35);
  box-shadow: 0 0 40px rgba(0, 255, 102, 0.06);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
}

.card p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.split {
  display: grid;
  gap: 32px;
  align-items: start;
}

@media (min-width: 768px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}

.privacy-callout {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 255, 102, 0.25);
  background: linear-gradient(135deg, var(--accent-dim), transparent 60%);
}

.privacy-callout p {
  margin: 0;
  font-size: 14px;
  color: var(--text);
}

.privacy-callout ul {
  margin: 16px 0 0;
  padding-left: 1.2em;
  color: var(--muted);
  font-size: 13px;
}

.privacy-callout li + li {
  margin-top: 8px;
}

.how-text {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  max-width: 52ch;
}

.how-text code {
  font-family: inherit;
  font-size: 12px;
  color: var(--accent);
  background: var(--bg-elevated);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* CTA */
.cta {
  text-align: center;
  padding: 64px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, var(--accent-dim), transparent 55%),
    var(--bg-elevated);
}

.cta h2 {
  margin-bottom: 8px;
}

.cta .section-title {
  margin-bottom: 16px;
}

.cta p {
  margin: 0 auto 28px;
  max-width: 42ch;
  color: var(--muted);
  font-size: 14px;
}

/* Footer */
footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--accent);
}

/* Showcase gallery */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.chip:hover {
  color: var(--text);
  border-color: var(--muted);
}

.chip[aria-pressed="true"] {
  color: var(--accent);
  border-color: rgba(0, 255, 102, 0.45);
  background: var(--accent-dim);
}

.gallery {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.gallery-item {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  padding: 0;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.gallery-item:hover,
.gallery-item:focus-visible {
  border-color: rgba(0, 255, 102, 0.35);
  box-shadow: 0 0 40px rgba(0, 255, 102, 0.06);
  transform: translateY(-2px);
  outline: none;
}

.gallery-item[hidden] {
  display: none;
}

.gallery-item--wide {
  grid-column: span 2;
}

@media (max-width: 640px) {
  .gallery-item--wide {
    grid-column: span 1;
  }
}

.gallery-media {
  position: relative;
  overflow: hidden;
  background: #070707;
  aspect-ratio: 4 / 3;
}

.gallery-item--wide .gallery-media {
  aspect-ratio: 16 / 9;
}

.gallery-item--tall .gallery-media {
  aspect-ratio: 3 / 4;
}

.gallery-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(0, 0, 0, 0.18) 3px
  );
  mix-blend-mode: multiply;
}

.gallery-caption {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--border);
}

.gallery-caption h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
}

.gallery-caption p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.lightbox {
  width: min(960px, calc(100% - 32px));
  max-height: calc(100% - 48px);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--text);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.78);
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  color: var(--muted);
}

.lightbox-close {
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
}

.lightbox-close:hover {
  border-color: var(--muted);
  background: var(--bg);
}

.lightbox img {
  display: block;
  width: 100%;
  max-height: min(70vh, 720px);
  object-fit: contain;
  background: #070707;
}

.lightbox-caption {
  margin: 0;
  padding: 16px 18px 18px;
  border-top: 1px solid var(--border);
}

.lightbox-caption strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.lightbox-caption span {
  font-size: 12px;
  color: var(--muted);
}
