:root {
  --bg: #0a0718;
  --text: rgba(242, 244, 255, 0.94);
  --text-soft: rgba(236, 240, 255, 0.64);
  --text-dim: rgba(236, 240, 255, 0.42);
  --panel: rgba(18, 22, 42, 0.56);
  --panel-strong: rgba(18, 22, 42, 0.72);
  --border: rgba(236, 240, 255, 0.14);
  --accent: #e3c9ff;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── Lume 앱과 동일한 4겹 배경 레이어 ─────────────── */

.bg-canvas,
.bg-veil,
.bg-vignette {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.bg-canvas { display: block; }
.bg-canvas--glow { z-index: 0; }
.bg-canvas--sparks { z-index: 2; }

.is-flat .bg-canvas--sparks { z-index: 0; }

.bg-veil {
  z-index: 1;
  background: var(--bg);
  opacity: 0.96;
  transition: opacity 2.6s ease;
}

.is-ready .bg-veil {
  opacity: 0.48;
}

.is-sound-on .bg-veil {
  opacity: 0.36;
}

.bg-vignette {
  z-index: 3;
  background:
    radial-gradient(ellipse at center, transparent 45%, rgba(6, 3, 16, 0.56) 100%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0.34 0 0 0 -0.1'/></filter><rect width='100%25' height='100%25' filter='url(%23g)'/></svg>");
}

.page {
  position: relative;
  z-index: 4;
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 24px 64px;
}

/* ── Header ───────────────────────────────────────── */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.04em;
}

.brand__icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: block;
  box-shadow: 0 4px 14px rgba(10, 6, 28, 0.55);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}

.nav__links a {
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav__links a:hover { color: var(--text); }

/* ── Sound Toggle Controls ────────────────────────── */

.sound-icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.sound-icon--on { display: none; }
.is-sound-on .sound-icon--off { display: none; }
.is-sound-on .sound-icon--on { display: block; }

.sound-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-soft);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.3s ease;
}

.sound-pill:hover {
  color: var(--text);
  background: rgba(236, 240, 255, 0.12);
  border-color: rgba(236, 240, 255, 0.28);
}

.sound-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(236, 240, 255, 0.28);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.is-sound-on .sound-pill {
  color: var(--text);
  border-color: rgba(227, 201, 255, 0.42);
  background: rgba(111, 79, 224, 0.22);
  box-shadow: 0 0 24px rgba(227, 201, 255, 0.18);
}

.is-sound-on .sound-pill__dot {
  background: #ffd9c2;
  box-shadow: 0 0 10px rgba(255, 217, 194, 0.9);
  animation: pulse-dot 2.8s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.65; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.25); }
}

/* ── Hero ─────────────────────────────────────────── */

.hero {
  text-align: center;
  padding: 56px 0 40px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 20px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.hero__title {
  margin: 0;
  font-size: clamp(36px, 6.2vw, 60px);
  font-weight: 300;
  line-height: 1.24;
  letter-spacing: -0.01em;
  text-shadow: 0 0 28px rgba(10, 7, 24, 0.65);
}

.hero__desc {
  max-width: 540px;
  margin: 22px auto 0;
  color: var(--text-soft);
  font-size: clamp(15px, 1.9vw, 17px);
  line-height: 1.75;
  font-weight: 300;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.3s ease;
}

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

.btn--primary {
  border: 0;
  background: rgba(242, 232, 255, 0.94);
  color: #130b2d;
  box-shadow: 0 8px 32px rgba(227, 201, 255, 0.24);
}

.btn--primary:hover { background: #fff; }

.btn--primary.is-disabled {
  opacity: 0.6;
  pointer-events: none;
}

.btn--ghost {
  border: 1px solid var(--border);
  background: var(--panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text);
}

.btn--ghost:hover {
  background: rgba(236, 240, 255, 0.12);
  border-color: rgba(236, 240, 255, 0.28);
}

.is-sound-on .btn--ghost[data-sound-toggle] {
  border-color: rgba(227, 201, 255, 0.42);
  background: rgba(111, 79, 224, 0.24);
  box-shadow: 0 0 28px rgba(227, 201, 255, 0.18);
}

.btn__icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero__meta {
  margin: 16px 0 0;
  color: var(--text-dim);
  font-size: 13px;
  letter-spacing: 0.02em;
}

/* ── Live Preview Window Mockup ──────────────────── */

.preview {
  position: relative;
  max-width: 720px;
  margin: 52px auto 0;
  padding: 18px 24px 22px;
  border: 1px solid rgba(236, 240, 255, 0.16);
  border-radius: 20px;
  background: linear-gradient(155deg, rgba(20, 16, 44, 0.56), rgba(12, 9, 30, 0.68));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 70px rgba(4, 2, 14, 0.48);
}

.preview__chrome {
  display: flex;
  align-items: center;
  height: 16px;
}

.preview__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
  opacity: 0.85;
}

.preview__body {
  padding: 54px 12px 48px;
  transition: opacity 0.6s ease;
}

.preview__body.is-fading {
  opacity: 0.12;
}

.preview__sentence {
  margin: 0;
  font-size: clamp(20px, 3vw, 29px);
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1.7;
  min-height: 1.7em;
}

.preview__sentence .c-done { color: rgba(255, 255, 255, 0.97); }
.preview__sentence .c-wait { color: rgba(236, 240, 255, 0.34); }
.preview__sentence .c-caret {
  box-shadow: -2px 0 0 -0.5px rgba(255, 255, 255, 0.88);
}

.preview__trans {
  display: grid;
  gap: 4px;
  margin: 16px 0 0;
  color: rgba(236, 240, 255, 0.62);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.05em;
}

.preview__pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(18, 24, 44, 0.56);
  color: var(--text-soft);
  font-size: 12px;
}

.preview__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.preview__btn:hover {
  background: rgba(236, 240, 255, 0.14);
  color: var(--text);
}

.is-sound-on .preview__btn {
  color: var(--accent);
}

.preview__volume {
  -webkit-appearance: none;
  appearance: none;
  width: 76px;
  height: 4px;
  margin: 0 2px;
  border-radius: 999px;
  background: rgba(236, 240, 255, 0.22);
  outline: none;
  cursor: pointer;
}

.preview__volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(242, 232, 255, 0.92);
  box-shadow: 0 0 10px rgba(227, 201, 255, 0.45);
  cursor: pointer;
}

.preview__volume::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: rgba(242, 232, 255, 0.92);
  cursor: pointer;
}

.preview__tag {
  padding: 3px 6px;
  border-radius: 999px;
  user-select: none;
}

.preview__tag.is-on {
  padding: 3px 8px;
  background: rgba(236, 240, 255, 0.14);
  color: var(--text);
}

/* ── Feature Cards ───────────────────────────────── */

.section {
  padding: 40px 0 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.card__tag {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card__title {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 500;
}

.card__body {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
  font-weight: 300;
}

/* ── Install Card ────────────────────────────────── */

.install-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--panel-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.install-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.install-card__head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

.badge {
  padding: 4px 10px;
  border: 1px solid rgba(227, 201, 255, 0.35);
  border-radius: 999px;
  color: var(--accent);
  font-size: 12px;
}

.steps {
  margin: 0;
  padding-left: 20px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.8;
}

.steps li + li { margin-top: 6px; }

.steps code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(236, 240, 255, 0.1);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

.codebox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(10, 7, 24, 0.72);
}

.codebox code {
  overflow-x: auto;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

.codebox__copy {
  flex-shrink: 0;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(236, 240, 255, 0.08);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.codebox__copy:hover { background: rgba(236, 240, 255, 0.18); }

.install-card__checksum {
  margin: 14px 0 0;
  color: var(--text-dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  word-break: break-all;
}

/* ── Shortcuts & Footer ──────────────────────────── */

.shortcuts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.shortcut {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-soft);
  font-size: 12.5px;
  text-align: center;
}

kbd {
  display: inline-block;
  padding: 3px 7px;
  border: 1px solid rgba(236, 240, 255, 0.22);
  border-radius: 6px;
  background: rgba(236, 240, 255, 0.08);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(236, 240, 255, 0.09);
  color: var(--text-dim);
  font-size: 13px;
}

@media (max-width: 780px) {
  .grid { grid-template-columns: 1fr; }
  .shortcuts { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-top: 32px; }
  .preview__body { padding: 36px 4px 32px; }
  .nav__links { gap: 14px; }
}
