/* NEXTGEN 홈페이지 공통 디자인. 사이트별 색은 각 사이트 site.css 의 :root 변수만 바꾼다. */
:root {
  --brand: #2962ff;
  --brand-ink: #1647d6;
  --brand-soft: #eaf0ff;
  --brand-light: #82a8ff;
  --brand-rgb: 41, 98, 255;
  --accent-rgb: 124, 92, 255;
  --hero-1: #0a1430;
  --hero-2: #0b1a3c;
  --hero-3: #080f24;

  --bg: #fff;
  --bg-soft: #f6f8fb;
  --ink: #0b1324;
  --ink-2: #475467;
  --ink-3: #8a94a6;
  --line: #e7ebf2;
  --good: #12b76a;
  --warn: #f04438;

  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04), 0 2px 6px -1px rgba(16, 24, 40, .06);
  --shadow-md: 0 6px 16px -6px rgba(16, 24, 40, .1), 0 14px 36px -10px rgba(16, 24, 40, .12);
  --shadow-lg: 0 30px 70px -16px rgba(16, 24, 40, .22);
  --maxw: 1160px;
  --nav-h: 68px;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); overscroll-behavior-x: none; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; word-break: keep-all; overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { letter-spacing: -.03em; line-height: 1.2; margin: 0; font-weight: 800; }
p { margin: 0; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--brand-light); outline-offset: 2px; border-radius: 6px; }

/* ---- 진행바 · 커서 ---- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 120; background: linear-gradient(90deg, var(--brand), rgb(var(--accent-rgb))); }
.cursor-fx { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 90; }
.cursor-glow, .cursor-dot { position: absolute; top: 0; left: 0; border-radius: 50%; opacity: 0; will-change: transform; }
.cursor-glow { width: 460px; height: 460px; margin: -230px 0 0 -230px; transition: opacity .35s ease, transform .12s ease-out; background: radial-gradient(circle, rgba(9, 14, 30, .09), transparent 62%); }
.cursor-glow.on-dark { background: radial-gradient(circle, rgba(var(--brand-rgb), .26), transparent 62%); }
.cursor-dot { width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; background: var(--brand); transition: opacity .35s ease, transform .06s linear, background .2s ease; }
.cursor-dot.on-dark { background: #fff; }
.cursor-fx.active .cursor-glow { opacity: 1; }
.cursor-fx.active .cursor-dot { opacity: .9; }

/* ---- 내비게이션 ---- */
.nav { position: sticky; top: 0; z-index: 100; height: var(--nav-h); color: #fff; background: rgba(8, 15, 36, .55); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, .07); transition: background .25s ease; }
.nav.scrolled { background: rgba(8, 15, 36, .92); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; letter-spacing: -.03em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 600; color: #d5dcea; }
.nav-links a:not(.btn):hover { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 26px; padding: 4px 8px; }

/* ---- 버튼 ---- */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font-size: 15px; font-weight: 700; white-space: nowrap; transition: background .2s ease, box-shadow .2s ease, transform .18s var(--ease), border-color .2s ease; }
.btn-lg { height: 56px; padding: 0 30px; font-size: 16.5px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(var(--brand-rgb), .3); }
.btn-primary:hover { background: var(--brand-ink); box-shadow: 0 10px 26px rgba(var(--brand-rgb), .38); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-primary::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; transform: skewX(-22deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .34), transparent); transition: left .6s ease; }
.btn-primary:hover::after { left: 130%; }

/* ---- 히어로 ---- */
.hero { position: relative; margin-top: calc(-1 * var(--nav-h)); padding: 150px 0 56px; overflow: hidden; color: #e7ecf5; background: radial-gradient(940px 520px at 80% 16%, rgba(var(--brand-rgb), .32), transparent 58%), radial-gradient(620px 420px at 6% 26%, rgba(var(--accent-rgb), .14), transparent 60%), linear-gradient(162deg, var(--hero-1), var(--hero-2) 45%, var(--hero-3)); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 26px 26px; -webkit-mask-image: linear-gradient(100deg, #000, rgba(0, 0, 0, .22) 42%, transparent 62%); mask-image: linear-gradient(100deg, #000, rgba(0, 0, 0, .22) 42%, transparent 62%); }
.hero > .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: #cdd7ea; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(6px); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px rgba(18, 183, 106, .22); }
.hero h1 { color: #fff; font-size: clamp(34px, 4.6vw, 58px); line-height: 1.12; margin: 22px 0 20px; }
.hero h1 .hl { color: var(--brand-light); }
.hw { display: inline-block; }
.js .hw-anim .hw { opacity: 0; transform: translateY(16px); animation: hwIn .6s var(--ease) forwards; animation-delay: var(--d, 0ms); }
@keyframes hwIn { to { opacity: 1; transform: none; } }
.lead { font-size: 18.5px; color: #aeb8d0; max-width: 540px; margin-bottom: 30px; }
.lead b { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-ghost { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .18); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .32); }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; color: #8a94ad; }
.hero-note i { color: var(--good); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 26px; max-width: 540px; }
.stat { padding: 14px 14px 12px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); }
.stat b { display: block; font-size: 22px; line-height: 1.2; color: #fff; font-weight: 800; letter-spacing: -.02em; }
.stat span { display: block; margin-top: 3px; font-size: 13px; color: #cdd7ea; font-weight: 600; }
.stat small { display: block; margin-top: 2px; font-size: 11.5px; color: #7f8aa5; }
.hero-visual { position: relative; }
.hero-visual::before { content: ""; position: absolute; inset: -6% -4% 0; background: radial-gradient(58% 46% at 52% 38%, rgba(var(--brand-rgb), .5), rgba(var(--accent-rgb), .14) 58%, transparent 72%); filter: blur(34px); pointer-events: none; }
.hero-visual > * { position: relative; }
.tilt { transition: transform .35s var(--ease); transform-style: preserve-3d; }
.phone { width: min(300px, 100%); margin: 0 auto; padding: 10px; border-radius: 34px; background: #05070f; border: 1px solid rgba(255, 255, 255, .16); box-shadow: var(--shadow-lg); }
.phone img { width: 100%; border-radius: 24px; }
.browser { border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: #f1f4f9; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d7dde8; }
.browser-bar span { margin-left: 8px; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: var(--shadow-md); font-size: 13px; font-weight: 700; animation: floaty 5s ease-in-out infinite; }
.chip small { display: block; font-weight: 600; color: var(--ink-3); font-size: 11.5px; }
.chip i { font-size: 20px; color: var(--brand); }
.chip.b { animation-delay: -2.4s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.scroll-cue { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 34px; font-size: 11px; font-weight: 700; letter-spacing: .24em; color: #8a94ad; transition: opacity .3s ease; }
.scroll-cue i { animation: cueBob 1.6s ease-in-out infinite; }
.scroll-cue.gone { opacity: 0; }
@keyframes cueBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---- 흐르는 띠 ---- */
.marquee { overflow: hidden; margin-top: 30px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 44px; width: max-content; animation: marquee 34s linear infinite; font-size: 17px; font-weight: 700; color: #7f8aa5; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- 섹션 ---- */
.section { position: relative; padding: 104px 0; }
.section.soft { background: var(--bg-soft); }
.section.dark { color: #e7ecf5; background: radial-gradient(800px 460px at 86% 8%, rgba(var(--brand-rgb), .24), transparent 60%), linear-gradient(170deg, var(--hero-1), var(--hero-3)); }
.eyebrow { display: inline-block; margin-bottom: 12px; font-size: 13px; font-weight: 800; letter-spacing: .14em; color: var(--brand); text-transform: uppercase; }
.dark .eyebrow { color: var(--brand-light); }
.sec-head { max-width: 760px; margin-bottom: 52px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2 { font-size: clamp(28px, 3.5vw, 42px); }
.sec-head p { margin-top: 14px; font-size: 18px; color: var(--ink-2); }
.dark .sec-head h2 { color: #fff; }
.dark .sec-head p { color: #aeb8d0; }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---- 카드 ---- */
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .28s var(--ease), box-shadow .28s ease, border-color .28s ease; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(var(--brand-rgb), .4); }
.card .ico { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 16px; border-radius: 12px; font-size: 22px; color: var(--brand); background: var(--brand-soft); }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { font-size: 15.5px; color: var(--ink-2); }
.dark .card { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); box-shadow: none; }
.dark .card h3 { color: #fff; }
.dark .card p { color: #aeb8d0; }
.num { display: block; margin-bottom: 12px; font-size: 14px; font-weight: 800; letter-spacing: .08em; color: var(--brand-light); }

/* 숫자 막대 */
.bars { display: grid; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 150px 1fr 64px; gap: 12px; align-items: center; font-size: 15px; font-weight: 700; }
.bar { height: 12px; border-radius: 999px; background: rgba(127, 138, 165, .2); overflow: hidden; }
.bar i { display: block; width: var(--w, 0%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), rgb(var(--accent-rgb))); }

/* 화면 시연 (글 + 캡처 번갈아) */
.show { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; margin-bottom: 88px; }
.show:last-child { margin-bottom: 0; }
.show.flip > :first-child { order: 2; }
.show h3 { font-size: clamp(23px, 2.6vw, 31px); margin-bottom: 12px; }
.show p { font-size: 17px; color: var(--ink-2); }
.dark .show p { color: #aeb8d0; }
.dark .show h3 { color: #fff; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; font-size: 15.5px; font-weight: 600; }
.checks li { display: flex; gap: 8px; }
.checks i { color: var(--good); }
figure { margin: 0; }
figcaption { margin-top: 10px; font-size: 13px; color: var(--ink-3); text-align: center; }

/* 단계 */
.steps { counter-reset: s; }
.step { position: relative; padding-top: 58px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 22px; left: 26px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: 14px; font-weight: 800; color: #fff; background: var(--brand); }

/* 비교표 */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
caption { caption-side: bottom; padding: 12px; font-size: 13px; color: var(--ink-3); text-align: left; }
th, td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; }
thead th { background: var(--bg-soft); font-weight: 800; }
tbody th { font-weight: 700; }
td.hl { color: var(--brand); font-weight: 800; }

/* 요금 */
.plan { display: flex; flex-direction: column; padding: 30px 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); transition: transform .28s var(--ease), box-shadow .28s ease; }
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.plan.best { border: 2px solid var(--brand); box-shadow: 0 14px 30px rgba(var(--brand-rgb), .16); }
.plan h3 { font-size: 18px; }
.plan .price { margin: 12px 0 4px; font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.plan .price small { font-size: 15px; font-weight: 600; color: var(--ink-3); }
.plan .sub { font-size: 14px; color: var(--ink-2); }
.plan .checks { flex: 1; }
.plan .btn { margin-top: 22px; }
.calc { margin-top: 28px; padding: 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.calc input[type=range] { width: 100%; accent-color: var(--brand); }
.calc output { display: block; margin-top: 10px; font-size: 26px; font-weight: 800; color: var(--brand); }

/* 자주 묻는 질문: JS 없이 details 로 열리므로 검색·AI 크롤러도 본문을 그대로 읽는다 */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); transition: border-color .2s ease; }
.faq details[open] { border-color: rgba(var(--brand-rgb), .45); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 20px; font-size: 16.5px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 22px; line-height: 1; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 20px 18px; font-size: 15.5px; color: var(--ink-2); }

/* 마지막 행동 유도 */
.cta-final { padding: 92px 0; text-align: center; color: #fff; background: radial-gradient(700px 360px at 50% 0, rgba(var(--brand-rgb), .42), transparent 66%), linear-gradient(170deg, var(--hero-2), var(--hero-3)); }
.cta-final h2 { font-size: clamp(28px, 3.6vw, 44px); }
.cta-final p { margin: 14px auto 28px; max-width: 620px; font-size: 18px; color: #aeb8d0; }
.cta-final .hero-actions { justify-content: center; }
.cta-final .btn-ghost { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .18); }

/* 하단 */
.footer { padding: 54px 0 36px; font-size: 14px; color: #8a94ad; background: #070c1c; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
.footer h4 { margin: 0 0 12px; font-size: 14px; color: #e7ecf5; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.footer a:hover { color: #fff; }
.footer .copy { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; }

/* 고정 요소 */
nav.side-nav { position: fixed; left: 18px; top: 50%; z-index: 80; display: none; flex-direction: column; align-items: flex-start; gap: 12px; transform: translateY(-50%); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.side-nav.show { opacity: 1; pointer-events: auto; }
.side-nav a { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.side-nav a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .5; transition: transform .2s ease, opacity .2s ease; }
.side-nav a span { opacity: 0; transform: translateX(-6px); transition: opacity .2s ease, transform .2s ease; white-space: nowrap; }
.side-nav:hover a span, .side-nav a.on span { opacity: 1; transform: none; }
.side-nav a.on { color: var(--brand); }
.side-nav a.on::before { opacity: 1; transform: scale(1.4); }
.side-nav.on-dark a { color: #cdd7ea; }
.side-nav.on-dark a.on { color: #fff; }
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 85; width: 46px; height: 46px; border: 0; border-radius: 50%; color: #fff; background: var(--ink); box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.mobile-cta { display: none; }

@media (min-width: 1360px) { nav.side-nav { display: flex; } }
@media (max-width: 960px) {
  .hero { padding: 116px 0 44px; }
  .hero-grid, .show, .g2, .g3, .g4, .footer-grid { grid-template-columns: 1fr; }
  .g4, .g2.keep { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .show { gap: 28px; margin-bottom: 60px; }
  .show.flip > :first-child { order: 0; }
  .section { padding: 72px 0; }
  .chip { display: none; }
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: var(--nav-h); left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 14px; padding: 18px 24px 22px; background: rgba(8, 15, 36, .97); }
  .nav-links.open { display: flex; }
  .bar-row { grid-template-columns: 96px 1fr 52px; font-size: 14px; }
  .mobile-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 86; display: flex; height: 52px; box-shadow: var(--shadow-lg); }
  .to-top { bottom: 76px; }
  .footer { padding-bottom: 86px; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:last-child { grid-column: 1 / -1; }
  .g4 { grid-template-columns: 1fr; }
  .btn-lg { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .hw-anim .hw { opacity: 1; transform: none; }
  .cursor-fx { display: none; }
}

/* 유튜브: 누르기 전에는 표지 그림만 받는다 */
.yt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.yt-grid.one { grid-template-columns: minmax(0, 820px); justify-content: center; }
.yt { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--radius); background: #05070f; box-shadow: var(--shadow-md); }
.yt img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.yt:hover img { transform: scale(1.03); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; font-size: 36px; color: #fff; background: var(--brand); box-shadow: 0 10px 26px rgba(var(--brand-rgb), .45); transition: transform .25s var(--ease); }
.yt:hover .yt-play { transform: scale(1.1); }
@media (max-width: 960px) { .yt-grid { grid-template-columns: minmax(0, 1fr); } }
