:root {
  --bg: #070a12;
  --panel: rgba(18, 24, 38, 0.92);
  --border: rgba(139, 92, 246, 0.35);
  --text: #e6e8ef;
  --muted: rgba(230, 232, 239, 0.7);
  --accent: #22d3ee;
  --accent2: #fb7185;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(900px 400px at 10% 10%, rgba(34, 211, 238, 0.12), transparent 60%),
    radial-gradient(800px 400px at 90% 0%, rgba(251, 113, 133, 0.12), transparent 60%),
    var(--bg);
  color: var(--text);
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(7, 10, 18, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 0 6px rgba(34, 211, 238, 0.12);
}

.brand-title { font-weight: 800; letter-spacing: 0.2px; }
.brand-sub { font-size: 12px; color: var(--muted); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
.btn:hover { border-color: rgba(255, 255, 255, 0.22); }
.btn-secondary { opacity: 0.92; }

.segmented {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}
.segmented-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 10px 12px;
  cursor: pointer;
  font-size: 13px;
}
.segmented-btn[aria-pressed="true"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.10);
}

.hero {
  padding: 28px 0 18px;
}
.hero-title {
  margin: 12px 0 8px;
  font-size: 34px;
  letter-spacing: -0.2px;
}
.hero-sub {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.6;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}
.card-title { font-weight: 700; margin-bottom: 8px; }
.card-desc { color: var(--muted); font-size: 13px; line-height: 1.6; margin-bottom: 10px; }

.section { padding: 22px 0; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
h2 { margin: 0 0 10px; font-size: 20px; }

.steps details {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.steps summary {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style: none;
}
.steps summary::-webkit-details-marker { display: none; }
.step-index {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.14);
  border: 1px solid rgba(34, 211, 238, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}
.step-body { margin-top: 10px; }
.muted { color: var(--muted); }

.list { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.6; font-size: 13px; }
.highlight {
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(251, 113, 133, 0.12);
  border: 1px solid rgba(251, 113, 133, 0.35);
  color: rgba(255, 255, 255, 0.9);
}

.placeholder {
  border: 1px dashed rgba(255, 255, 255, 0.20);
  border-radius: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
}
.placeholder-inner { color: var(--muted); font-size: 13px; line-height: 1.6; }

.video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.35);
}
.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.gallery-empty {
  border: 1px dashed rgba(255, 255, 255, 0.20);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.gallery-item {
  display: block;
}
.gallery-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.02);
}

/* Lightbox for fullscreen image preview */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.88);
  padding: 16px;
}
.lightbox-inner {
  position: relative;
  max-width: min(1200px, 96vw);
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  border: 0;
  background: rgba(15, 23, 42, 0.8);
  color: #e5e7eb;
  border-radius: 999px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox-close {
  top: -12px;
  right: -12px;
}
.lightbox-prev {
  left: -48px;
}
.lightbox-next {
  right: -48px;
}
.lightbox-prev[disabled],
.lightbox-next[disabled] {
  opacity: 0.3;
  cursor: default;
}

.hidden { display: none; }

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0 28px;
  margin-top: 18px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 28px; }
  .gallery {
    grid-template-columns: 1fr;
  }
  .lightbox-inner {
    max-width: 100%;
  }
  .lightbox-prev {
    left: 8px;
  }
  .lightbox-next {
    right: 8px;
  }
}
