/* Mad Block Crush - Ludens homepage */
/* 네온 퍼즐 게임 감성에 맞춘 다크 테마 */

:root {
  --bg: #0a0a1a;
  --bg-2: #13132a;
  --bg-3: #1b1b36;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f5f5ff;
  --text-mute: #9a9ab8;
  --neon-cyan: #00e5ff;
  --neon-magenta: #ff2bd6;
  --neon-green: #3bff8a;
  --neon-orange: #ffb347;
  --accent: var(--neon-magenta);
  --max: 1200px;
  --radius: 14px;
  --radius-lg: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI",
               "Noto Sans KR", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  background-image:
    radial-gradient(1000px 600px at 10% -10%, rgba(255, 43, 214, 0.18), transparent 60%),
    radial-gradient(800px 500px at 110% 10%, rgba(0, 229, 255, 0.15), transparent 60%),
    radial-gradient(700px 500px at 50% 110%, rgba(59, 255, 138, 0.1), transparent 60%);
  background-attachment: fixed;
}

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

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: rgba(10, 10, 26, 0.65);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 0 18px rgba(255, 43, 214, 0.45);
}
.brand span { font-size: 16px; }

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav a {
  color: var(--text-mute);
  font-size: 14px;
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--text); }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  background: var(--surface);
}
.lang-switch a {
  padding: 5px 12px;
  font-size: 12px;
  border-radius: 999px;
  color: var(--text-mute);
}
.lang-switch a.active {
  background: var(--neon-magenta);
  color: #fff;
  box-shadow: 0 0 14px rgba(255, 43, 214, 0.55);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero-copy h1 .accent {
  background: linear-gradient(90deg, var(--neon-orange), var(--neon-magenta), var(--neon-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy .subtitle {
  margin-top: 18px;
  color: var(--text-mute);
  font-size: clamp(16px, 1.6vw, 18px);
  max-width: 540px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12px;
  color: var(--text-mute);
}
.chip .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 10px var(--neon-green);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--neon-magenta), #8a1fff);
  color: #fff;
  box-shadow: 0 10px 30px rgba(138, 31, 255, 0.35), 0 0 18px rgba(255, 43, 214, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn svg { width: 18px; height: 18px; }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-visual .frame {
  width: 100%;
  max-width: 560px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 43, 214, 0.25) inset,
    0 0 60px rgba(0, 229, 255, 0.18);
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
}
.hero-visual .frame img { width: 100%; display: block; }

/* ===== Sections ===== */
section { padding: 80px 0; }
.section-head {
  text-align: center;
  margin-bottom: 48px;
}
.section-head .eyebrow {
  display: inline-block;
  color: var(--neon-cyan);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.section-head p {
  margin-top: 14px;
  color: var(--text-mute);
  max-width: 640px;
  margin-inline: auto;
}

/* ===== Features ===== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 43, 214, 0.35);
}
.feature .ico {
  width: 44px; height: 44px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(255, 43, 214, 0.12);
  color: var(--neon-magenta);
  margin-bottom: 16px;
}
.feature:nth-child(2) .ico { background: rgba(0, 229, 255, 0.12); color: var(--neon-cyan); }
.feature:nth-child(3) .ico { background: rgba(59, 255, 138, 0.12); color: var(--neon-green); }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--text-mute); font-size: 14px; }

/* ===== Screenshots ===== */
.screenshots-section { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02), transparent); }
.screens {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.screen {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-2);
  aspect-ratio: 9 / 16;
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.screen:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 229, 255, 0.2);
}
.screen img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Download ===== */
.download-section {
  text-align: center;
}
.download-inner {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 28px;
  background:
    radial-gradient(500px 300px at 50% -20%, rgba(255, 43, 214, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}
.download-inner h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; }
.download-inner p { color: var(--text-mute); margin: 14px auto 28px; max-width: 520px; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  background: #fff;
  color: #111;
  border-radius: 12px;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.store-badge:hover { transform: translateY(-2px); }
.store-badge .label { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.store-badge .label small { font-size: 11px; color: #666; margin-bottom: 2px; font-weight: 400; }
.store-badge .label strong { font-size: 16px; }

/* ===== About / Contact ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}
.info-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--surface);
}
.info-card h3 { font-size: 18px; margin-bottom: 16px; }
.info-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
}
.info-row:last-child { border-bottom: none; }
.info-row .k { color: var(--text-mute); }
.info-row .v { color: var(--text); word-break: break-word; }
.info-row a:hover { color: var(--neon-cyan); }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  color: var(--text-mute);
  font-size: 13px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 0 60px rgba(0, 229, 255, 0.25);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero { padding: 56px 0 40px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual .frame { transform: none; max-width: 480px; margin: 0 auto; }
  .features { grid-template-columns: 1fr; }
  .screens { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  section { padding: 60px 0; }

  .nav { display: none; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 20px;
    background: rgba(10, 10, 26, 0.95);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
  }
  .nav.open a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav.open .lang-switch { margin-top: 12px; align-self: flex-start; }
  .menu-toggle { display: inline-grid; place-items: center; }
}

@media (max-width: 520px) {
  .screens { grid-template-columns: 1fr 1fr; }
  .info-row { grid-template-columns: 80px 1fr; }
  .cta-row .btn { flex: 1; justify-content: center; }
}
