/* uniblesolution 디자인 시스템 v2 — 자가완결(외부 CDN 없음) */
:root {
  --bg: #05060f; --bg2: #0a0d1c; --panel: rgba(255,255,255,.035);
  --line: rgba(255,255,255,.09); --txt: #e8eaf2; --dim: #9aa1b5;
  --v: #8b7cf6; --c: #22d3ee; --amber: #f5b04c;
  --grad: linear-gradient(100deg, #8b7cf6, #22d3ee 55%, #6ee7b7);
  --r: 18px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--txt);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Pretendard", "Noto Sans KR", sans-serif;
  line-height: 1.65; overflow-x: hidden;
}
::selection { background: rgba(139,124,246,.4); }

/* ── 배경 오로라 ── */
.aurora { position: fixed; inset: 0; z-index: -2; background: var(--bg); }
.aurora::before, .aurora::after {
  content: ""; position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%;
  filter: blur(90px); opacity: .16; animation: drift 26s ease-in-out infinite alternate;
}
.aurora::before { background: #6d5df6; top: -22vmax; left: -12vmax; }
.aurora::after { background: #0ea5b7; bottom: -25vmax; right: -14vmax; animation-delay: -13s; }
@keyframes drift { to { transform: translate(9vmax, 7vmax) scale(1.15); } }
#fireflies { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* ── 내비게이션 ── */
nav {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center;
  justify-content: space-between; padding: 16px min(6vw, 72px);
  background: rgba(5,6,15,.72); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.logo { font-weight: 800; font-size: 1.18rem; letter-spacing: .4px; text-decoration: none;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo small { display: block; font-size: .58rem; letter-spacing: 3.5px; color: var(--dim);
  -webkit-text-fill-color: var(--dim); font-weight: 600; }
nav .links { display: flex; gap: clamp(12px, 2.4vw, 30px); }
nav .links a { color: var(--dim); text-decoration: none; font-size: .92rem; font-weight: 600; transition: color .2s; }
nav .links a:hover, nav .links a.on { color: #fff; }

/* ── 히어로 ── */
.hero { text-align: center; padding: clamp(84px, 14vh, 150px) 6vw clamp(60px, 9vh, 100px); }
.badge {
  display: inline-block; padding: 7px 18px; border: 1px solid var(--line); border-radius: 999px;
  font-size: .8rem; color: var(--dim); background: var(--panel); margin-bottom: 26px; letter-spacing: .5px;
}
.badge b { color: var(--c); font-weight: 700; }
h1.display {
  font-size: clamp(2.3rem, 6.2vw, 4.4rem); line-height: 1.14; font-weight: 800; letter-spacing: -1px;
}
h1.display .g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sub { max-width: 660px; margin: 26px auto 0; color: var(--dim); font-size: clamp(1rem, 1.6vw, 1.15rem); }
.cta-row { margin-top: 40px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  padding: 14px 30px; border-radius: 12px; font-weight: 700; font-size: .95rem;
  text-decoration: none; transition: transform .2s, box-shadow .2s; display: inline-block;
}
.btn.primary { background: var(--grad); color: #04060e; box-shadow: 0 8px 28px rgba(108,99,246,.35); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(34,211,238,.4); }
.btn.ghost { border: 1px solid var(--line); color: var(--txt); background: var(--panel); }
.btn.ghost:hover { border-color: var(--v); transform: translateY(-2px); }

/* ── 지표 스트립 ── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; margin: 0 min(6vw, 72px) 90px; }
.stats div { background: var(--bg2); padding: 30px 22px; text-align: center; }
.stats .n { font-size: 2rem; font-weight: 800; background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats .l { color: var(--dim); font-size: .85rem; margin-top: 6px; }

/* ── 섹션 공통 ── */
section.wrap { padding: 0 min(6vw, 72px) 100px; max-width: 1280px; margin: 0 auto; }
.eyebrow { color: var(--c); font-size: .8rem; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; }
h2.title { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; margin: 10px 0 14px; letter-spacing: -.5px; }
p.lead { color: var(--dim); max-width: 640px; margin-bottom: 48px; }

/* ── 카드 그리드 ── */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.card {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r); padding: 34px 28px; overflow: hidden;
  transition: transform .25s, border-color .25s, background .25s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(139,124,246,.55); background: rgba(255,255,255,.055); }
.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--grad);
  opacity: 0; transition: opacity .25s; }
.card:hover::before { opacity: 1; }
.card .ico { font-size: 1.9rem; width: 58px; height: 58px; display: grid; place-items: center;
  border-radius: 14px; background: rgba(139,124,246,.12); border: 1px solid var(--line); margin-bottom: 20px; }
.card h3 { font-size: 1.22rem; font-weight: 800; margin-bottom: 10px; }
.card p { color: var(--dim); font-size: .93rem; }
.card .tag { display: inline-block; margin-top: 16px; font-size: .74rem; font-weight: 700;
  color: var(--c); border: 1px solid rgba(34,211,238,.35); padding: 4px 12px; border-radius: 999px; }
.card a.more { color: var(--v); font-weight: 700; font-size: .88rem; text-decoration: none; display: inline-block; margin-top: 14px; }

/* ── 루프(작동 방식) ── */
.loop { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); counter-reset: step; }
.loop div { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px 18px; }
.loop div::before { counter-increment: step; content: "0" counter(step);
  font-weight: 800; font-size: .8rem; color: var(--c); display: block; margin-bottom: 8px; letter-spacing: 2px; }
.loop b { display: block; margin-bottom: 5px; font-size: .98rem; }
.loop span { color: var(--dim); font-size: .82rem; }

/* ── 페이지 히어로(서브) ── */
.page-hero { text-align: center; padding: clamp(66px, 10vh, 110px) 6vw 50px; }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 800; letter-spacing: -.5px; }
.page-hero h1 .g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero p { color: var(--dim); margin-top: 14px; }

/* ── 비디오·FAQ·패널 ── */
.video-shell { max-width: 900px; margin: 0 auto 56px; border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 24px 70px rgba(0,0,0,.5); aspect-ratio: 16/9; background: #000; }
.video-shell iframe { width: 100%; height: 100%; border: 0; display: block; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 36px; }
.faq h4 { color: var(--v); margin: 22px 0 6px; font-size: 1.02rem; }
.faq h4:first-child { margin-top: 0; }
.faq p { color: var(--dim); font-size: .93rem; }
.notice { border-left: 3px solid var(--amber); background: rgba(245,176,76,.07);
  padding: 18px 22px; border-radius: 0 12px 12px 0; color: var(--dim); font-size: .88rem; margin-top: 30px; }

/* ── 티어 표 ── */
.tiers { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tier { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 30px 26px; }
.tier h3 { font-size: 1.05rem; color: var(--c); }
.tier .cond { font-size: 1.5rem; font-weight: 800; margin: 10px 0; }
.tier p { color: var(--dim); font-size: .87rem; }

/* ── 푸터 ── */
footer { border-top: 1px solid var(--line); padding: 44px min(6vw, 72px); display: flex;
  justify-content: space-between; flex-wrap: wrap; gap: 18px; color: var(--dim); font-size: .85rem; }
footer a { color: var(--dim); text-decoration: none; margin-left: 18px; }
footer a:hover { color: #fff; }

/* ── 등장 애니메이션 ── */
.rise { opacity: 0; transform: translateY(22px); animation: rise .8s ease forwards; }
.d1 { animation-delay: .12s; } .d2 { animation-delay: .24s; } .d3 { animation-delay: .36s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (max-width: 640px) {
  nav { padding: 14px 5vw; } nav .links { gap: 14px; } nav .links a { font-size: .82rem; }
  footer { flex-direction: column; } footer a { margin: 0 14px 0 0; }
}
