/* ============================================
   WrzDJ Website — Dark Theme, Native CSS
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0a0a0a;
  --bg-card: #141414;
  --bg-card-hover: #1a1a1a;
  --border: #222;
  --text: #ededed;
  --text-muted: #d9d9d9;
  --accent: #22d3ee;
  --accent-dim: rgba(34, 211, 238, 0.12);
  --green: #4ade80;
  --purple: #a78bfa;
  --orange: #fb923c;
  --pink: #f472b6;
  --radius: 12px;
  --radius-sm: 8px;
  --max-w: 1120px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}
a:hover { opacity: 0.8; }

img { max-width: 100%; height: auto; display: block; }

/* ---- Layout ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
}

.nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); opacity: 1; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

/* ---- Hero ---- */
.hero {
  padding: 160px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-mascot {
  width: 140px;
  height: 140px;
  border-radius: 28px;
  margin: 0 auto 32px;
  box-shadow: 0 0 60px rgba(34, 211, 238, 0.15);
  position: relative;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero h1 .accent { color: var(--accent); }

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px); opacity: 1; }

.btn-primary {
  background: var(--accent);
  color: #000;
}
.btn-primary:hover {
  box-shadow: 0 4px 20px rgba(34, 211, 238, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.text-dim {
  color: #888;
}

/* ---- Screenshot ---- */
.screenshot-section {
  padding: 0 0 80px;
  text-align: center;
}

.screenshot-wrapper {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.screenshot-wrapper img {
  width: 100%;
}

.screenshot-caption {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 16px;
}

/* ---- Section Headers ---- */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ---- How It Works ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step {
  text-align: center;
  padding: 32px 24px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---- Feature Cards ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.2s, background 0.2s;
}
.feature-card:hover {
  border-color: #333;
  background: var(--bg-card-hover);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.feature-card ul {
  list-style: none;
  margin-top: 12px;
}

.feature-card ul li {
  color: var(--text-muted);
  font-size: 0.88rem;
  padding: 4px 0;
  padding-left: 18px;
  position: relative;
}
.feature-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

/* ---- Equipment Section ---- */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.equipment-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}

.equipment-card .badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.badge-cyan { background: rgba(34, 211, 238, 0.15); color: var(--accent); }
.badge-purple { background: rgba(167, 139, 250, 0.15); color: var(--purple); }
.badge-orange { background: rgba(251, 146, 60, 0.15); color: var(--orange); }
.badge-pink { background: rgba(244, 114, 182, 0.15); color: var(--pink); }

.equipment-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.equipment-card .models {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.7;
}

/* ---- Download Section ---- */
.download-section {
  background: linear-gradient(180deg, transparent, rgba(34, 211, 238, 0.03), transparent);
}

.download-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.download-box h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.download-box p {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 1rem;
}

.download-server-note {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 32px;
  padding: 12px 20px;
  background: rgba(251, 146, 60, 0.06);
  border: 1px solid rgba(251, 146, 60, 0.15);
  border-radius: var(--radius-sm);
  line-height: 1.6;
}

.download-server-note a,
.download-note a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.download-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s;
}
.btn-download:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  opacity: 1;
}

.btn-download svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.download-note {
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.download-note code {
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-family: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas, monospace;
}

/* ---- Tech Stack ---- */
.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.tech-pill {
  display: inline-block;
  padding: 6px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---- Open Source CTA ---- */
.oss-section {
  text-align: center;
}

.oss-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.oss-section p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto 32px;
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

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

.footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-left img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.footer-links a:hover { color: var(--text); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .equipment-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 60px 0; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(16px);
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .nav-toggle { display: block; }

  .hero { padding: 120px 0 60px; }
  .hero-mascot { width: 100px; height: 100px; border-radius: 20px; margin-bottom: 24px; }

  .steps { grid-template-columns: 1fr; gap: 16px; }
  .features-grid { grid-template-columns: 1fr; }
  .equipment-grid { grid-template-columns: 1fr; }

  .download-box { padding: 32px 20px; }
  .download-buttons { flex-direction: column; align-items: center; }

  .footer .container { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .hero p { font-size: 1rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
}
/* ---- Screenshot Carousel ---- */
.carousel {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  touch-action: pan-y;
}

.carousel-track-wrapper {
  overflow: hidden;
  border-radius: var(--radius);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 8px;
}

.carousel-img-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 520px;
}

.carousel-img-wrapper picture {
  display: contents;
}

.carousel-img-wrapper img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.carousel-caption {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 20px;
  text-align: center;
  min-height: 2.4em;
  padding: 0 12px;
}

/* Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-70%);
  z-index: 10;
  background: rgba(20, 20, 20, 0.8);
  border: 1px solid var(--border);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.carousel-arrow:hover {
  background: rgba(34, 211, 238, 0.15);
  border-color: var(--accent);
}

.carousel-prev { left: -56px; }
.carousel-next { right: -56px; }

/* Dots — lives outside .carousel to avoid overflow:hidden clipping */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  padding: 4px 0;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.carousel-dot:hover {
  background: var(--text-muted);
}
.carousel-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

/* Lightbox */
.carousel-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  padding: 24px;
  cursor: zoom-out;
}
.carousel-lightbox.open {
  display: flex;
}
.carousel-lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
}
.carousel-lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 8px;
  transition: color 0.2s;
}
.carousel-lightbox-close:hover {
  color: var(--text);
}

@media (max-width: 1060px) {
  .carousel-prev { left: 8px; }
  .carousel-next { right: 8px; }
  .carousel-arrow {
    background: rgba(20, 20, 20, 0.9);
  }
}

@media (max-width: 768px) {
  .carousel-img-wrapper {
    height: 60vw;
    min-height: 280px;
    max-height: 440px;
  }
  .carousel-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }
  .carousel-prev { left: 4px; }
  .carousel-next { right: 4px; }
  .carousel-dot {
    width: 12px;
    height: 12px;
  }
}

@media (max-width: 480px) {
  .carousel-img-wrapper {
    height: 70vw;
    min-height: 240px;
    max-height: 380px;
  }
}

/* ---- Error Pages ---- */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 32px;
}

.error-page img {
  border-radius: 24px;
  margin-bottom: 24px;
}

.error-page h1 {
  font-size: 4rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
}

.error-page p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 32px;
}
