/*
 * 클로즈베타 대기 명단 — 앱 온보딩(쇼핑몰 연결 도우미)의 어두운 무대와 같은 말을 쓴다:
 * 아이리스 기운 숯색 무대(#16171d) · 카드(#1f2027) · 1px 흰 테 · 아이리스 단추(눌리는 키 — 앱 globals.css 의 --btn-* 그대로) ·
 * Pretendard · 위에서부터 차례로 떠오르기(rise-in) · 숨 쉬는 단계 점.
 * 여기서만 더 화려하게 (2026-10-13 사용자: "Mysterious, futuristic, 3d 화려해도돼"): 궤도에서 본 3D 지구(scene.js) ·
 * 번짐으로 떠오르는 제목 · 테두리를 도는 빛 · 고정폭 HUD 글자 · 신청하면 카드가 뒤집혀 출입증이 된다.
 */

@property --spin {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

:root {
  --accent: #7e82df;
  --accent-light: color-mix(in srgb, var(--accent) 52%, white);
  --stage-bg: #16171d;
  --stage-card: #1f2027;
  --stage-raised: #282932;
  --stage-inset: #121318;
  --ink: #f3f3f8;
  --ink-2: #a6a8b8;
  --ink-3: #6f7181;
  --line: rgb(255 255 255 / 0.085);
  --danger: oklch(74% 0.11 20);
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, 'JetBrains Mono', Menlo, Consolas, monospace;
  --btn-bg: linear-gradient(180deg, color-mix(in oklab, var(--accent) 84%, white) 0%, var(--accent) 100%);
  --btn-bg-hover: linear-gradient(180deg, var(--accent) 0%, color-mix(in oklab, var(--accent) 88%, black) 100%);
  --btn-edge: color-mix(in oklab, var(--accent) 70%, black);
  --btn-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3), inset 0 -2px 0 rgb(18 18 60 / 0.14), 0 1px 2px rgb(0 0 0 / 0.35),
    0 10px 26px -12px color-mix(in srgb, var(--accent) 85%, black);
  --btn-shadow-down: inset 0 1px 0 rgb(255 255 255 / 0.16), inset 0 2px 4px rgb(18 18 60 / 0.22);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  background: #0f1015;
}

body {
  margin: 0;
  min-height: 100svh;
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo', sans-serif;
  color: var(--ink);
  /* WebGL 이 없을 때의 무대 — 위는 깊고 아래는 무대색 */
  background: radial-gradient(120% 70% at 50% 110%, #1d1e27 0%, #16171d 45%, #0d0e13 100%) fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-break: keep-all;
  overflow-wrap: break-word;
  overflow-x: clip;
}

.mono {
  font-family: var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ── 배경 층 ── */
#scene {
  position: fixed;
  inset: 0 0 auto 0;
  width: 100%;
  height: 100lvh;
  display: block;
  z-index: 0;
  transition: opacity 1.2s ease;
}
.labels {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.labels span {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 11.5px;
  font-weight: 500;
  color: rgb(255 255 255 / 0.42);
  white-space: nowrap;
  opacity: 0;
  will-change: transform, opacity;
}
/* 필름 입자 — 아주 옅게 (어두운 그라데이션의 계단도 숨긴다) */
.grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

/* ── 페이지 ── */
.page {
  position: relative;
  z-index: 3;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.top {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #e9e9f6;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.mark ellipse {
  stroke: var(--accent);
}
.mark-name:empty {
  display: none;
}
.hud {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 10.5px;
  color: rgb(255 255 255 / 0.4);
  font-variant-numeric: tabular-nums;
}
.hud-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
  animation: blink 2.4s ease-in-out infinite;
}

.hero {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(28px, 6.5vh, 80px) 20px 0;
  text-align: center;
}

/* 단계 알약 (온보딩 Stepper 의 "지금" 알약과 같은 칠) */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 7px 15px 7px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent);
  color: var(--accent-light);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.pill .mono {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}
.pill-sep {
  width: 1px;
  height: 12px;
  background: color-mix(in srgb, var(--accent-light) 45%, transparent);
}
.pill-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-light);
  flex: none;
}
.pill-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent-light);
  animation: halo 1.9s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.title {
  margin: 22px 0 0;
  font-size: clamp(42px, 6.6vw, 80px);
  line-height: 1.04;
  font-weight: 760;
  letter-spacing: -0.048em;
}
.title .line {
  display: block;
  padding: 0 0.04em 0.08em;
  background: linear-gradient(180deg, #ffffff 28%, #b7b9d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent-light) 0%, #ffffff 38%, var(--accent) 56%, var(--accent-light) 78%, #ffffff 100%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 26px color-mix(in srgb, var(--accent) 55%, transparent));
  animation: sheen 7s linear infinite;
}

.lead {
  max-width: 38em;
  margin: 20px auto 0;
  text-wrap: balance;
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.75;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}

/* ── 카드 (온보딩 카드 + 테두리를 도는 빛) ── */
.card {
  position: relative;
  max-width: 680px;
  margin: 30px auto 0;
  padding: 18px;
  border-radius: 22px;
  text-align: left;
  background: linear-gradient(180deg, rgb(37 38 47 / 0.78), rgb(25 26 33 / 0.82));
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px -40px rgb(0 0 0 / 0.9), 0 0 0 1px rgb(0 0 0 / 0.25), inset 0 1px 0 rgb(255 255 255 / 0.06);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
  isolation: isolate;
}
.card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--spin), transparent 0deg, transparent 250deg, color-mix(in srgb, var(--accent-light) 70%, transparent) 310deg, #fff 330deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: spin 7s linear infinite;
  pointer-events: none;
  opacity: 0.85;
}
/* 마우스를 따라가는 옅은 빛 */
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -40%), rgb(126 130 223 / 0.11), transparent 62%);
  pointer-events: none;
  z-index: -1;
}

/* 카드 머리 — 무슨 칸인지 바로 (Waitlist) */
.join-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 2px 14px;
}
.join-title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-light);
}
.join-note {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-3);
}

.fields {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr) auto;
  gap: 10px;
  align-items: end;
}
.field {
  display: block;
  min-width: 0;
}
.field-label {
  display: block;
  margin: 0 0 8px 2px;
  font-size: 10.5px;
  color: var(--ink-3);
}
.field input {
  display: block;
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgb(255 255 255 / 0.08);
  background: var(--stage-inset);
  color: #fff;
  font: inherit;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.field input::placeholder {
  color: #4f5160;
}
.field input:hover {
  border-color: rgb(255 255 255 / 0.14);
}
.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 0 0 5px color-mix(in srgb, var(--accent) 16%, transparent);
  background: #14151b;
}
.field input[aria-invalid='true'] {
  border-color: color-mix(in oklab, var(--danger) 70%, transparent);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--danger) 55%, transparent);
}

/* 봇 함정 — 사람 눈에도 화면 낭독기에도 안 보인다 */
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* 기본 단추 — 앱의 아이리스 단추 그대로 (눌리는 키: 진한 테 · 위 빛 1px · 아래 그늘 2px · 누르면 1px 내려간다) */
.btn {
  position: relative;
  height: 52px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid var(--btn-edge);
  background: var(--btn-bg);
  box-shadow: var(--btn-shadow);
  color: #fff;
  font: inherit;
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 0 rgb(18 18 60 / 0.18);
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover {
  background: var(--btn-bg-hover);
}
.btn:active {
  transform: translateY(1px);
  box-shadow: var(--btn-shadow-down);
}
.btn-arrow {
  transition: transform 0.2s var(--ease-out);
}
.btn:hover .btn-arrow {
  transform: translateX(3px);
}
.btn-busy {
  display: none;
}
.btn[aria-busy='true'] {
  cursor: progress;
}
.btn[aria-busy='true'] .btn-label,
.btn[aria-busy='true'] .btn-arrow {
  visibility: hidden;
}
.btn[aria-busy='true'] .btn-busy {
  display: inline-flex;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
}
.dots > span {
  display: inline-block;
  animation: dots 1.2s ease-in-out infinite;
}
.dots > span:nth-child(2) {
  animation-delay: 0.15s;
}
.dots > span:nth-child(3) {
  animation-delay: 0.3s;
}

:where(a, button, summary, input[type='checkbox']):focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 75%, white);
  outline-offset: 2px;
}

.consent-row {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 0 2px;
}
.consent {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
  user-select: none;
}
.consent input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border-radius: 5px;
  border: 1.5px solid rgb(255 255 255 / 0.24);
  background: var(--stage-inset) center / 12px 12px no-repeat;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.consent input:checked {
  background-color: var(--accent);
  border-color: var(--btn-edge);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><path d='M3.5 8.5l3 3 6-7'/></svg>");
}
.consent input[aria-invalid='true'] {
  border-color: var(--danger);
}
.muted {
  color: var(--ink-3);
}

.privacy {
  font-size: 12.5px;
  color: var(--ink-3);
}
.privacy summary {
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgb(255 255 255 / 0.18);
  text-underline-offset: 3px;
  border-radius: 4px;
}
.privacy summary:hover {
  color: var(--ink-2);
}
.privacy dl {
  margin: 12px 0 2px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgb(0 0 0 / 0.22);
  border: 1px solid var(--line);
  display: grid;
  gap: 8px;
}
.privacy dl > div {
  display: grid;
  grid-template-columns: 4.2em 1fr;
  gap: 10px;
}
.privacy dt {
  color: var(--ink-2);
  font-weight: 600;
}
.privacy dd {
  margin: 0;
  color: var(--ink-3);
  line-height: 1.55;
}
.privacy a {
  color: var(--accent-light);
}
.consent-row:has(.privacy[open]) {
  display: block;
}
.consent-row:has(.privacy[open]) .privacy {
  margin-top: 10px;
}

.status {
  min-height: 0;
  margin: 0;
  font-size: 13px;
  color: var(--danger);
  padding: 0 2px;
}
.status:not(:empty) {
  margin-top: 12px;
}

.meta {
  text-shadow: 0 1px 10px rgb(10 11 16 / 0.9), 0 0 2px rgb(10 11 16 / 0.8);
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 12.5px;
  color: rgb(255 255 255 / 0.42);
}
.meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.meta li::before {
  content: '';
  width: 5px;
  height: 5px;
  transform: rotate(45deg);
  background: var(--accent-light);
  opacity: 0.8;
}

/* ── 대시보드 미리보기 — 아주 살짝: 뒤로 누운 화면, 아래로 갈수록 어둠에 잠기고, 내리면 조금 일어선다 (--p: app.js 가 0→1) ── */
.peek {
  --p: 0;
  position: relative;
  width: 100%;
  max-width: 1120px;
  margin: 40px auto 0;
  padding: 0 24px;
  text-align: center;
}
.peek-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--ink-2);
  text-shadow: 0 1px 10px rgb(10 11 16 / 0.9);
}
.peek-label .mono {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--accent-light);
}
.peek-sep {
  width: 1px;
  height: 11px;
  background: rgb(255 255 255 / 0.22);
}
.peek-stage {
  perspective: 1400px;
  perspective-origin: 50% 20%;
}
.peek-frame {
  position: relative;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #f7f7fc;
  transform-origin: 50% 0;
  transform: rotateX(calc(36deg - 26deg * var(--p)));
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.16), 0 -30px 90px -36px color-mix(in srgb, var(--accent) 80%, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 calc(30% + 32% * var(--p)), rgb(0 0 0 / 0.35) calc(55% + 29% * var(--p)), transparent calc(80% + 20% * var(--p)));
  mask-image: linear-gradient(180deg, #000 0%, #000 calc(30% + 32% * var(--p)), rgb(0 0 0 / 0.35) calc(55% + 29% * var(--p)), transparent calc(80% + 20% * var(--p)));
}
.peek-frame img {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(0.9) saturate(1.05);
}
/* 위 가장자리에 아이리스 빛 · 전체를 살짝 어둡게 (화면이 무대보다 튀지 않게) */
.peek-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 16%), rgb(16 17 23 / 0.16);
  pointer-events: none;
}
/* 화면을 훑고 지나가는 빛 */
.peek-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 24%;
  background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--accent) 20%, transparent) 80%, rgb(255 255 255 / 0.7) 100%);
  mix-blend-mode: soft-light;
  opacity: 0;
  pointer-events: none;
  animation: peek-scan 7s cubic-bezier(0.45, 0, 0.25, 1) 1.8s infinite;
}
.peek-note {
  position: relative;
  margin: -2% 0 0;
  font-size: 12px;
  color: rgb(255 255 255 / 0.36);
  text-shadow: 0 1px 10px rgb(10 11 16 / 0.9);
}

/* ── 기능 (FEATURES) — 카드마다 작은 움직이는 그림 · 숫자는 가상의 예시 ── */
.features {
  position: relative;
  width: 100%;
  max-width: 1120px;
  margin: 110px auto 0;
  padding: 0 24px;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 13px;
  color: var(--ink-2);
  text-shadow: 0 1px 10px rgb(10 11 16 / 0.9);
}
.eyebrow .mono {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--accent-light);
}
.features-title,
.final-title {
  filter: drop-shadow(0 2px 14px rgb(10 11 16 / 0.85));
  margin: 16px 0 0;
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.12;
  font-weight: 740;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #ffffff 30%, #b7b9d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.features-lead {
  max-width: 34em;
  margin: 16px auto 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-2);
  text-wrap: balance;
  text-shadow: 0 1px 10px rgb(10 11 16 / 0.9);
}
.feature-grid {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  text-align: left;
}
.feature {
  position: relative;
  padding: 12px 12px 22px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgb(35 36 45 / 0.8), rgb(23 24 31 / 0.86));
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px -40px rgb(0 0 0 / 0.9), inset 0 1px 0 rgb(255 255 255 / 0.05);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  isolation: isolate;
  overflow: hidden;
  transition: border-color 0.25s ease;
}
.feature:hover {
  border-color: rgb(255 255 255 / 0.16);
}
.feature::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, -30%), rgb(126 130 223 / 0.12), transparent 62%);
  pointer-events: none;
  z-index: -1;
}
.feature-no {
  margin: 18px 8px 0;
  font-size: 10px;
  font-weight: 600;
  color: var(--accent-light);
}
.feature h3 {
  margin: 7px 8px 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #fff;
}
.feature-desc {
  margin: 8px 8px 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-2);
}

/* 카드 위 그림 칸 */
.fv {
  position: relative;
  height: 158px;
  padding: 16px;
  border-radius: 14px;
  background: radial-gradient(120% 90% at 50% 0%, rgb(126 130 223 / 0.14), transparent 62%), #14151b;
  border: 1px solid rgb(255 255 255 / 0.06);
  overflow: hidden;
}
.fv-tag {
  position: absolute;
  top: 9px;
  right: 11px;
  font-size: 9px;
  color: var(--ink-3);
}
.ch {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
}
.ch-naver { background: #03c75a; }
.ch-meta { background: #0866ff; }
.ch-dim { background: #3a3c4a; color: #c9cbe0; }
.ch-kakao { background: #fee500; color: #191919; }
.ch-insta { background: linear-gradient(45deg, #f9a03f, #e1306c 55%, #833ab4); }
.ch-ai { background: var(--accent); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 6px;
  border-radius: 999px;
  font-size: 11.5px;
  color: var(--ink-2);
  background: rgb(255 255 255 / 0.045);
  border: 1px solid rgb(255 255 255 / 0.08);
  white-space: nowrap;
}
.chip:not(:has(.ch)) {
  padding-left: 10px;
}
.chip-iris {
  color: var(--accent-light);
  background: rgb(126 130 223 / 0.13);
  border-color: rgb(126 130 223 / 0.35);
}

/* 01 채널 막대 */
.fv-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.bar-row {
  display: grid;
  grid-template-columns: 96px 1fr 40px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-2);
}
.bar-name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.bar {
  height: 8px;
  border-radius: 99px;
  background: rgb(255 255 255 / 0.06);
  overflow: hidden;
}
.bar b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1.2s var(--ease-out);
}
.w100 { --w: 1; }
.w94 { --w: 0.94; }
.w72 { --w: 0.72; }
.w55 { --w: 0.55; }
.feature.in .bar b {
  transform: scaleX(var(--w));
}
.bar-row:nth-child(3) b { transition-delay: 0.1s; }
.bar-row:nth-child(4) b { transition-delay: 0.2s; }
.bar-row:nth-child(5) b { transition-delay: 0.3s; }
.bar-val {
  text-align: right;
  font-weight: 650;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

/* 02 결제 */
.fv-pay {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding-top: 30px;
}
.pay-event {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 11px;
  background: rgb(255 255 255 / 0.04);
  border: 1px solid rgb(255 255 255 / 0.07);
  font-size: 12.5px;
  color: #fff;
  white-space: nowrap;
}
.pay-event b {
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.pay-kind {
  font-size: 9px;
  color: #6bccb4;
  letter-spacing: 0.12em;
}
.pay-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
  background: #6bccb4;
  box-shadow: 0 0 0 4px rgb(107 204 180 / 0.15);
  animation: blink 2s ease-in-out infinite;
}
.is-refund .pay-dot {
  background: #eba66d;
  box-shadow: 0 0 0 4px rgb(235 166 109 / 0.15);
  animation-delay: 1s;
}
.is-refund .pay-kind {
  color: #eba66d;
}
.pay-arrow {
  color: var(--ink-3);
}
.pay-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}
.pay-chips .chip {
  font-size: 10.5px;
  padding: 3px 8px;
}

/* 03 실시간 레이더 */
.fv-live {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  gap: 14px;
}
.radar {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 1px solid rgb(126 130 223 / 0.32);
  background:
    radial-gradient(circle, transparent 0 31%, rgb(126 130 223 / 0.2) 31.5% 32.5%, transparent 33% 64%, rgb(126 130 223 / 0.2) 64.5% 65.5%, transparent 66%),
    radial-gradient(circle, rgb(126 130 223 / 0.12), transparent 70%);
  overflow: hidden;
}
.radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg 285deg, rgb(126 130 223 / 0.55) 360deg);
  animation: sweep 3.6s linear infinite;
}
.blip {
  position: absolute;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px var(--accent-light);
  animation: blip 3.6s ease-out infinite;
}
.b1 { left: 64%; top: 28%; animation-delay: 0.45s; }
.b2 { left: 74%; top: 62%; animation-delay: 1.3s; }
.b3 { left: 34%; top: 72%; animation-delay: 2.2s; }
.b4 { left: 26%; top: 36%; animation-delay: 3s; }
.live-meta {
  min-width: 0;
}
.live-count {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--ink-2);
}
.live-count b {
  font-size: 22px;
  font-weight: 750;
  color: #fff;
  letter-spacing: -0.02em;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6bccb4;
  box-shadow: 0 0 0 4px rgb(107 204 180 / 0.16);
  animation: blink 1.6s ease-in-out infinite;
}
.live-person {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  border-radius: 11px;
  background: rgb(255 255 255 / 0.04);
  border: 1px solid rgb(255 255 255 / 0.07);
}
.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #b4233f;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
.live-who {
  min-width: 0;
  flex: 1;
}
.live-person b {
  display: block;
  font-size: 12px;
  font-weight: 650;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.live-person small {
  display: block;
  margin-top: 1px;
  font-size: 10.5px;
  color: var(--ink-3);
  white-space: nowrap;
}
.live-pct {
  font-style: normal;
  font-size: 11px;
  font-weight: 750;
  color: #eba66d;
  font-variant-numeric: tabular-nums;
}
.live-caption {
  margin: 7px 0 0 2px;
  font-size: 10px;
  color: var(--ink-3);
}

/* 04 구매 경로 */
.fv-path {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.path-who {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}
.path-who span {
  font-weight: 400;
  color: var(--ink-3);
}
.path {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.path::before {
  content: '';
  position: absolute;
  left: 12.5%;
  right: 12.5%;
  top: 8px;
  height: 1px;
  background: linear-gradient(90deg, rgb(126 130 223 / 0.25), rgb(126 130 223 / 0.8));
}
.path li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  color: var(--ink-2);
  text-align: center;
}
.path li small {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--accent-light);
}
.node {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #14151b;
  border: 1.5px solid var(--accent-light);
  box-shadow: 0 0 0 4px rgb(126 130 223 / 0.12);
}
.path li.is-paid {
  color: #fff;
  font-weight: 650;
}
.path li.is-paid .node {
  background: var(--accent);
  border-color: #fff;
  box-shadow: 0 0 0 4px rgb(126 130 223 / 0.25), 0 0 16px var(--accent);
}
.path::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 12.5%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px 2px var(--accent-light);
  animation: travel 3.4s cubic-bezier(0.55, 0, 0.35, 1) infinite;
}

/* 05 채널 나누기 */
.fv-split {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 8px;
}
.fv-split .chip {
  animation: float 5s ease-in-out infinite;
}
.fv-split .chip:nth-child(2) { animation-delay: -1s; }
.fv-split .chip:nth-child(3) { animation-delay: -2s; }
.fv-split .chip:nth-child(4) { animation-delay: -3s; }
.fv-split .chip:nth-child(5) { animation-delay: -4s; }

/* 06 설치 */
.fv-code {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.code {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  background: #0d0e12;
  border: 1px solid rgb(255 255 255 / 0.07);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.6;
  color: #c9cbe0;
  white-space: nowrap;
  overflow: hidden;
}
.c-tag { color: var(--accent-light); }
.c-attr { color: #6bccb4; }
.c-str { color: #eba66d; }
.caret {
  display: inline-block;
  width: 7px;
  height: 14px;
  margin-left: 3px;
  vertical-align: -2px;
  background: var(--accent-light);
  animation: caret 1s steps(1) infinite;
}

/* ── 마지막 등록 유도 ── */
.final {
  position: relative;
  max-width: 760px;
  margin: 120px auto 0;
  padding: 0 20px;
  text-align: center;
}
.final-btn {
  margin-top: 28px;
  text-decoration: none;
}
.final-note {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--ink-3);
  text-shadow: 0 1px 10px rgb(10 11 16 / 0.9);
}

/* 내리면 나타나기 (자바스크립트가 있을 때만 숨겨 둔다 — 없으면 그냥 보인다) */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(8px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), filter 0.9s var(--ease-out);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
  filter: none;
}
.feature-grid .feature:nth-child(3n + 2) { transition-delay: 0.08s; }
.feature-grid .feature:nth-child(3n) { transition-delay: 0.16s; }

.foot {
  text-shadow: 0 1px 10px rgb(10 11 16 / 0.9), 0 0 2px rgb(10 11 16 / 0.8);
  margin-top: auto;
  padding: 56px 20px 26px;
  display: flex;
  justify-content: center;
  gap: 14px;
  font-size: 12px;
  color: rgb(255 255 255 / 0.34);
}
.foot a {
  color: inherit;
  text-decoration: none;
}
.foot a:hover {
  color: rgb(255 255 255 / 0.6);
}

/* ── 출입증 (신청 뒤) ── */
.ticket {
  position: relative;
  padding: 10px 10px 4px;
  overflow: hidden;
}
.ticket[hidden] {
  display: none;
}
.ticket-ghost {
  position: absolute;
  right: -6px;
  top: 18px;
  font-size: 128px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgb(255 255 255 / 0.07);
  pointer-events: none;
  user-select: none;
}
.ticket-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 10.5px;
  color: var(--accent-light);
}
.ticket-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.ticket-no {
  color: var(--ink-3);
}
.ticket-no b {
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  text-shadow: 0 0 18px color-mix(in srgb, var(--accent) 80%, transparent);
}
.ticket-title {
  position: relative;
  margin: 18px 0 0;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 720;
  letter-spacing: -0.035em;
  line-height: 1.3;
}
.ticket-body {
  position: relative;
  margin: 10px 0 0;
  max-width: 34em;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-2);
}
.ticket-fields {
  position: relative;
  margin: 20px 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 10px;
}
.ticket-fields > div {
  min-width: 0;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgb(0 0 0 / 0.24);
  border: 1px solid var(--line);
}
.ticket-fields dt {
  font-size: 10px;
  color: var(--ink-3);
}
.ticket-fields dd {
  margin: 5px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.perforation {
  margin: 20px -28px 0;
  border-top: 1px dashed rgb(255 255 255 / 0.16);
}
.ticket-stub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 20px;
  padding: 16px 0 6px;
}
.barcode {
  display: flex;
  align-items: stretch;
  gap: 2px;
  height: 34px;
}
.barcode i {
  display: block;
  background: rgb(255 255 255 / 0.62);
  border-radius: 0.5px;
}
.ticket-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.btn-ghost {
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-bottom-color: rgb(255 255 255 / 0.06);
  background: rgb(255 255 255 / 0.05);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06);
  color: #fff;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.btn-ghost:hover {
  background: rgb(255 255 255 / 0.09);
  border-color: rgb(255 255 255 / 0.2);
}
.btn-ghost:active {
  transform: translateY(1px);
}
.link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-3);
  font: inherit;
  font-size: 12.5px;
  text-decoration: underline;
  text-decoration-color: rgb(255 255 255 / 0.18);
  text-underline-offset: 3px;
  cursor: pointer;
}
.link:hover {
  color: var(--ink-2);
}

/* 카드가 뒤집혀 출입증이 된다 */
.card.is-flipping .join {
  animation: flip-out 0.42s cubic-bezier(0.55, 0, 0.75, 0.2) forwards;
}
.ticket.is-entering {
  transform-origin: 50% 0;
  animation: flip-in 0.95s cubic-bezier(0.18, 0.9, 0.24, 1) both;
}
.ticket.is-entering::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--accent-light) 22%, transparent) 48%, transparent 52%, transparent 100%);
  background-size: 100% 260%;
  animation: scan 1.3s 0.25s var(--ease-out) both;
  pointer-events: none;
}
.card.is-done::before {
  animation-duration: 2.2s;
  opacity: 1;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 12px;
  background: #24252e;
  border: 1px solid rgb(255 255 255 / 0.1);
  box-shadow: 0 18px 40px -18px rgb(0 0 0 / 0.8);
  font-size: 13.5px;
  color: #fff;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.35s var(--ease-out);
}
.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ── 들어올 때 차례로 떠오르기 (온보딩 rise-in + 번짐) ── */
.rise {
  animation: rise 1.05s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 95ms + 120ms);
}
.i1 { --i: 1; }
.i2 { --i: 2; }
.i3 { --i: 3; }
.i4 { --i: 4; }
.i5 { --i: 5; }
.i6 { --i: 6; }
.i7 { --i: 7; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}
@keyframes halo {
  0% { transform: scale(0.75); opacity: 0.75; }
  100% { transform: scale(2.4); opacity: 0; }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@keyframes sheen {
  from { background-position: 0% 0; }
  to { background-position: -240% 0; }
}
@keyframes spin {
  to { --spin: 360deg; }
}
@keyframes dots {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-3px); opacity: 1; }
}
@keyframes flip-out {
  to {
    opacity: 0;
    transform: perspective(900px) rotateX(58deg) translateY(-8px);
    filter: blur(5px);
  }
}
@keyframes flip-in {
  from {
    opacity: 0;
    transform: perspective(900px) rotateX(-72deg) translateY(14px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}
@keyframes sweep {
  to { transform: rotate(360deg); }
}
@keyframes blip {
  0%, 100% { opacity: 0.2; transform: scale(0.7); }
  8% { opacity: 1; transform: scale(1.35); }
  40% { opacity: 0.55; transform: scale(1); }
}
@keyframes travel {
  0% { left: 12.5%; opacity: 0; }
  10% { opacity: 1; }
  85% { left: 87.5%; opacity: 1; }
  100% { left: 87.5%; opacity: 0; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes caret {
  50% { opacity: 0; }
}
@keyframes peek-scan {
  0% { transform: translateY(-100%); opacity: 0; }
  10% { opacity: 1; }
  60% { transform: translateY(300%); opacity: 0; }
  100% { transform: translateY(300%); opacity: 0; }
}
@keyframes scan {
  from { background-position: 0 100%; }
  to { background-position: 0 0%; }
}

/* ── 좁은 화면 ── */
@media (max-width: 980px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .features {
    margin-top: 84px;
    padding: 0 16px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
    margin-top: 32px;
  }
  .final {
    margin-top: 90px;
  }
  .final-btn {
    width: 100%;
  }
  .top {
    padding: 16px 18px 0;
  }
  .hud {
    display: none;
  }
  .hero {
    padding-top: 34px;
  }
  .title {
    margin-top: 22px;
  }
  .lead {
    margin-top: 18px;
  }
  .card {
    margin-top: 28px;
    padding: 14px;
    border-radius: 20px;
  }
  .fields {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .btn {
    width: 100%;
  }
  .consent-row {
    display: block;
  }
  .privacy {
    margin-top: 10px;
  }
  .ticket-fields {
    grid-template-columns: 1fr 1fr;
  }
  .ticket-fields > div:first-child {
    grid-column: 1 / -1;
  }
  .ticket-ghost {
    font-size: 96px;
  }
  .meta {
    gap: 8px 16px;
  }
  .join-note {
    display: none;
  }
  .peek {
    margin-top: 56px;
    padding: 0 16px;
  }
  .peek-frame {
    border-radius: 12px;
    transform: rotateX(calc(28deg - 20deg * var(--p)));
  }
}

/* 링크 미리보기 이미지 (?og — scripts/og.mjs 가 1200×630 으로 찍는다) */
.og .card,
.og .meta,
.og .peek,
.og .features,
.og .final,
.og .foot,
.og .hud,
.og .lead,
.og .labels {
  display: none;
}
.og .rise {
  animation: none;
}
.og .hero {
  padding-top: 64px;
}
.og .title {
  margin-top: 30px;
  font-size: 92px;
}
.og .pill {
  font-size: 17px;
  padding: 9px 20px 9px 15px;
}
.og .pill .mono {
  font-size: 14px;
}
.og .top {
  position: absolute;
  padding: 30px 36px 0;
}
.og .grain {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .rise,
  .pill-dot::after,
  .hud-dot,
  .title em,
  .card::before,
  .dots > span,
  .card.is-flipping .join,
  .ticket.is-entering,
  .ticket.is-entering::after,
  .peek-scan,
  .radar-sweep,
  .blip,
  .path::after,
  .fv-split .chip,
  .caret,
  .pay-dot,
  .live-dot {
    animation: none !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
  .bar b {
    transform: scaleX(var(--w));
    transition: none;
  }
  .peek-frame {
    transform: rotateX(14deg);
  }
  .card.is-flipping .join {
    opacity: 0;
  }
}
