:root {
  --bg: #0f172a;
  --surface: #111827;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #34d399;
  --accent-2: #60a5fa;
  --bg-2: #18233a; /* lighter background for alternating sections */
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  /* Use a solid base to avoid banding between sections */
  background: var(--bg);
  /* reserve space for fixed header */
  padding-top: 64px;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { font-size: 20px; margin: 0; }
.nav a {
  color: var(--text);
  text-decoration: none;
  margin-left: 16px;
  padding: 8px 12px;
  border-radius: 8px;
}
.nav a:hover { background: rgba(255,255,255,0.06); }

.hero {
  padding: 64px 0 32px;
  background-color: var(--bg);
  /* Subtle highlight behind the hero to keep visual interest */
  background-image: radial-gradient(900px 420px at 72% 0%, rgba(96,165,250,0.10), transparent 60%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: center;
}
.hero-text h2 { font-size: 40px; margin: 0 0 12px; }
.tagline { color: var(--muted); font-size: 18px; }

.cta-group { margin-top: 24px; }
.btn {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 10px;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.12);
  text-decoration: none;
  margin-right: 12px;
}
.btn.primary { background: linear-gradient(90deg, var(--accent), var(--accent-2)); border: none; }
.btn:hover { filter: brightness(1.1); }

.hero-art { display: flex; justify-content: center; }
.hero-art img {
  width: 75%; /* shrink homepage image by 25% */
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.section { padding: 40px 0; }
.section.light { background-color: var(--bg-2); }
.section.dark { background-color: var(--bg); }
.site-footer { background-color: var(--bg-2); }
.section-title { font-size: 28px; margin: 0 0 16px; }

.features-section { padding-top: 120px; padding-bottom: 120px; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* two columns, two rows */
  gap: 20px;
}
.feature-card {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 16px;
  width: 88%;            /* make each card narrower */
  max-width: 440px;      /* cap width for consistency */
  margin: 0 auto;        /* center within grid cell */
}
.feature-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.25), rgba(96, 165, 250, 0.25));
  display: grid;
  place-items: center;
  margin-right: 14px;
}
.feature-card .icon svg {
  width: 26px;
  height: 26px;
  fill: #8ae3c3;
}
.feature-text h4 { margin: 0 0 8px; }
.feature-text p { margin: 0; color: var(--muted); }
.feature-card h4 { margin: 0 0 8px; }
.feature-card p { margin: 0; color: var(--muted); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.gallery-grid figure { margin: 0; }
.gallery-item img {
  width: 100%;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  cursor: zoom-in;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.gallery-item:hover img {
  transform: translateY(-4px) scale(1.03);
  filter: saturate(1.05);
  box-shadow: 0 14px 34px rgba(0,0,0,0.45);
}

.site-footer {
  padding: 24px 0 40px;
  color: var(--muted);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
}
.lightbox img {
  max-width: min(90vw, 1000px);
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}
.lightbox[aria-hidden="false"] { display: flex; }
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 28px;
  background: rgba(255,255,255,0.12);
  color: var(--text);
  border: none;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}