/* =========================================================
   NEXTAX — 공통 스타일
   ========================================================= */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

:root {
  --navy-900: #070b1f;
  --navy-800: #0d1430;
  --navy-700: #141d45;
  --navy-600: #1e2a5e;
  --blue: #3b6cff;
  --blue-600: #2b55e0;
  --violet: #7b5cff;
  --cyan: #22d3ee;
  --green: #16b47a;
  --orange: #ff8a3d;
  --red: #ef4b5f;

  --bg: #ffffff;
  --bg-soft: #f5f7fc;
  --bg-softer: #eef2fb;
  --line: #e3e8f3;
  --text: #0f1530;
  --text-2: #4a5373;
  --text-3: #7c84a3;

  --grad: linear-gradient(120deg, #3b6cff 0%, #7b5cff 55%, #22d3ee 100%);
  --grad-soft: linear-gradient(135deg, rgba(59,108,255,.10), rgba(123,92,255,.10));
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(15, 21, 48, .08);
  --shadow-lg: 0 24px 60px rgba(15, 21, 48, .14);
  --container: 1200px;
  --header-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  word-break: keep-all;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 110px 0; }
.section.soft { background: var(--bg-soft); }
.section.dark { background: var(--navy-900); color: #fff; }
.section.dark .sec-desc, .section.dark p { color: rgba(255,255,255,.72); }
.section-sm { padding: 70px 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--grad); border-radius: 2px; }
.section.dark .eyebrow { color: var(--cyan); }
.sec-title { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; line-height: 1.3; letter-spacing: -.02em; }
.sec-desc { margin-top: 16px; font-size: 18px; color: var(--text-2); max-width: 720px; }
.sec-head { margin-bottom: 56px; }
.sec-head.center { text-align: center; }
.sec-head.center .sec-desc { margin-left: auto; margin-right: auto; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 700; font-size: 16px; transition: .2s ease; white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(59,108,255,.32); }
.btn-primary:hover { background: var(--blue-600); transform: translateY(-2px); }
.btn-grad { background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgba(123,92,255,.35); }
.btn-grad:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-outline { border: 1.5px solid var(--line); background: #fff; color: var(--text); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost-light { border: 1.5px solid rgba(255,255,255,.3); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: .25s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(15,21,48,.05); }
.site-header.on-dark:not(.scrolled) { background: transparent; color: #fff; }
.site-header.on-dark:not(.scrolled) .logo-text small { color: rgba(255,255,255,.6); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px; background: var(--grad);
  display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 15px; letter-spacing: -.04em;
}
.logo-text { font-weight: 900; font-size: 20px; letter-spacing: -.02em; line-height: 1.05; }
.logo-text small { display: block; font-size: 10.5px; font-weight: 600; color: var(--text-3); letter-spacing: .04em; }

.gnb { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.gnb > li { position: relative; }
.gnb > li > a {
  display: block; padding: 10px 14px; font-weight: 600; font-size: 15.5px; border-radius: 10px; transition: .15s; white-space: nowrap;
}
.header-inner { gap: 24px; }
.header-cta .btn { white-space: nowrap; }
@media (max-width: 1320px) { .gnb > li > a { padding: 10px 9px; font-size: 15px; } .gnb { gap: 0; } }
.gnb > li > a:hover, .gnb > li > a.active { color: var(--blue); }
.site-header.on-dark:not(.scrolled) .gnb > li > a:hover,
.site-header.on-dark:not(.scrolled) .gnb > li > a.active { color: var(--cyan); }
.gnb .sub {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 8px);
  min-width: 220px; padding: 10px; background: #fff; color: var(--text);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: .18s;
}
.gnb > li:hover .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.gnb .sub a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14.5px; color: var(--text-2); }
.gnb .sub a:hover { background: var(--bg-soft); color: var(--blue); }
.header-cta { display: flex; gap: 8px; align-items: center; }
.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; margin-left: auto; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: currentColor; margin: 5px auto; transition: .2s; border-radius: 2px; }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; background: #fff; z-index: 99;
  padding: 16px 24px 40px; overflow-y: auto; transform: translateX(100%); transition: .28s ease;
}
.mobile-nav.open { transform: none; }
.mobile-nav details { border-bottom: 1px solid var(--line); }
.mobile-nav summary { list-style: none; padding: 16px 4px; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; cursor: pointer; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary::after { content: "+"; color: var(--text-3); }
.mobile-nav details[open] summary::after { content: "–"; }
.mobile-nav details a { display: block; padding: 10px 14px; color: var(--text-2); }
.mobile-nav .m-link { display: block; padding: 16px 4px; font-weight: 700; font-size: 17px; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 20px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(123,92,255,.45), transparent 60%),
              radial-gradient(900px 500px at -10% 110%, rgba(34,211,238,.25), transparent 60%),
              var(--navy-900);
  padding: calc(var(--header-h) + 90px) 0 110px;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-bg canvas, .hero-bg video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,11,31,.55) 0%, rgba(7,11,31,.2) 45%, rgba(7,11,31,0) 70%),
              linear-gradient(0deg, rgba(7,11,31,.6) 0%, rgba(7,11,31,0) 25%);
}
/* 상단 이미지 (관리자 > 상단 이미지) — 모션은 바깥 틀(.hero-img-pic)에 걸려 이미지를 바꿔도 그대로 유지 */
.hero-img { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity 1.4s ease; }
.hero-img.loaded { opacity: 1; }
.hero-img-pic {
  position: absolute; inset: -8%; background-size: cover; background-repeat: no-repeat; background-position: center;
  will-change: transform; transform-origin: 60% 40%;
}
.hero-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(59,108,255,.22), rgba(123,92,255,.12) 50%, rgba(34,211,238,.10)),
              rgba(7,11,31,var(--hero-dim, .45));
}
.hero-m-kenburns .hero-img-pic { animation: heroKenburns 26s ease-in-out infinite alternate; }
.hero-m-zoom .hero-img-pic { animation: heroZoom 18s ease-in-out infinite alternate; }
.hero-m-pan .hero-img-pic { animation: heroPan 30s ease-in-out infinite alternate; }
.hero-m-drift .hero-img-pic { animation: heroDrift 14s ease-in-out infinite; }
@keyframes heroKenburns { from { transform: scale(1) translate3d(0,0,0); } to { transform: scale(1.14) translate3d(-3%,-2%,0); } }
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.12); } }
@keyframes heroPan { from { transform: scale(1.04) translate3d(-4%,0,0); } to { transform: scale(1.04) translate3d(4%,0,0); } }
@keyframes heroDrift {
  0%, 100% { transform: scale(1.06) translate3d(0,0,0) rotate(0deg); }
  33% { transform: scale(1.08) translate3d(1.5%,-1.2%,0) rotate(.4deg); }
  66% { transform: scale(1.07) translate3d(-1.2%,1%,0) rotate(-.3deg); }
}
.hero-no-net .hero-bg canvas { display: none; }
@media (prefers-reduced-motion: reduce) { .hero-img-pic { animation: none !important; } }

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: 14px; font-weight: 600;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(34,211,238,.25); }
.hero h1 { margin-top: 22px; font-size: clamp(36px, 5.4vw, 64px); line-height: 1.18; font-weight: 900; letter-spacing: -.03em; }
.hero .lead { margin-top: 22px; font-size: clamp(17px, 1.6vw, 20px); color: rgba(255,255,255,.75); max-width: 580px; }
.hero .btn-row { margin-top: 36px; }
.hero-stats { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 36px; }
.hero-stats strong { display: block; font-size: 30px; font-weight: 800; }
.hero-stats span { font-size: 14px; color: rgba(255,255,255,.6); }

.hero-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px; padding: 28px; backdrop-filter: blur(10px);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.hero-card h3 { font-size: 18px; display: flex; align-items: center; gap: 8px; }
.hero-card .hc-sub { font-size: 14px; color: rgba(255,255,255,.6); margin-top: 4px; }
.flow { margin-top: 22px; display: grid; gap: 10px; }
.flow-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
}
.flow-item .num {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--grad); font-weight: 800; font-size: 14px; flex-shrink: 0;
}
.flow-item b { font-size: 15.5px; }
.flow-item small { display: block; font-size: 13px; color: rgba(255,255,255,.55); }
.flow-item .tag { margin-left: auto; font-size: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(34,211,238,.15); color: var(--cyan); white-space: nowrap; }

/* Page hero (sub pages) */
.page-hero {
  position: relative; overflow: hidden; color: #fff; background: var(--navy-900);
  padding: calc(var(--header-h) + 70px) 0 80px;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(800px 400px at 85% 0%, rgba(123,92,255,.45), transparent 60%),
              radial-gradient(700px 400px at 0% 100%, rgba(59,108,255,.35), transparent 60%);
}
.page-hero .container { position: relative; }
.breadcrumb { font-size: 14px; color: rgba(255,255,255,.55); margin-bottom: 18px; }
.breadcrumb a:hover { color: #fff; }
.page-hero h1 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 900; letter-spacing: -.03em; line-height: 1.22; }
.page-hero p { margin-top: 16px; font-size: 18px; color: rgba(255,255,255,.72); max-width: 680px; }
.page-hero .btn-row { margin-top: 30px; }

.subnav { position: sticky; top: var(--header-h); z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.subnav .container { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.subnav .container::-webkit-scrollbar { display: none; }
.subnav a { padding: 16px 14px; font-weight: 600; color: var(--text-2); white-space: nowrap; border-bottom: 2px solid transparent; }
.subnav a:hover, .subnav a.active { color: var(--blue); border-bottom-color: var(--blue); }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 24px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: .22s ease; position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card h3 { font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.card p { margin-top: 10px; color: var(--text-2); font-size: 15.5px; }
.card .more { margin-top: 18px; display: inline-flex; gap: 6px; font-weight: 700; color: var(--blue); font-size: 15px; }
.card .more::after { content: "→"; transition: .2s; }
.card:hover .more::after { transform: translateX(4px); }
.icon-box {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center;
  background: var(--grad-soft); color: var(--blue); margin-bottom: 20px;
}
.icon-box svg { width: 28px; height: 28px; }
.list-check { margin-top: 16px; display: grid; gap: 8px; }
.list-check li { position: relative; padding-left: 26px; font-size: 15px; color: var(--text-2); }
.list-check li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/10px no-repeat;
}
.section.dark .list-check li { color: rgba(255,255,255,.75); }

.pillar {
  border-radius: 24px; padding: 36px; color: #fff; position: relative; overflow: hidden; min-height: 100%;
  display: flex; flex-direction: column;
}
.pillar::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.08); }
.pillar.p1 { background: linear-gradient(150deg, #2b55e0, #1b2f88); }
.pillar.p2 { background: linear-gradient(150deg, #6a4cf0, #3a2398); }
.pillar.p3 { background: linear-gradient(150deg, #0ea5c6, #0b5d86); }
.pillar .p-num { font-size: 13px; font-weight: 700; letter-spacing: .1em; opacity: .75; }
.pillar h3 { font-size: 26px; font-weight: 800; margin-top: 8px; }
.pillar p { margin-top: 12px; color: rgba(255,255,255,.8); }
.pillar ul { margin-top: 20px; display: grid; gap: 8px; flex: 1; }
.pillar li { padding: 10px 14px; background: rgba(255,255,255,.1); border-radius: 10px; font-size: 15px; }
.pillar .btn { margin-top: 24px; align-self: flex-start; background: #fff; color: var(--navy-800); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 26px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-size: 34px; font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h4 { margin-top: 10px; font-size: 18px; font-weight: 800; }
.step p { margin-top: 6px; font-size: 14.5px; color: var(--text-2); }
.section.dark .step { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.section.dark .step p { color: rgba(255,255,255,.65); }

/* Stats band */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.stat { background: #fff; padding: 34px 24px; text-align: center; }
.stat strong { font-size: 42px; font-weight: 900; letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 4px; color: var(--text-2); font-size: 15px; }

[hidden] { display: none !important; }

/* Logos / Trust */
.trust-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.trust-chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line); font-weight: 700; color: var(--text-2); font-size: 15px;
}
.trust-chip i { width: 10px; height: 10px; border-radius: 3px; background: var(--grad); }

/* Case cards */
.case-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.case-top { padding: 26px 28px 0; }
.case-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  display: inline-block; font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px;
  background: var(--bg-softer); color: var(--blue);
}
.tag.violet { color: var(--violet); background: rgba(123,92,255,.1); }
.tag.green { color: var(--green); background: rgba(22,180,122,.1); }
.tag.orange { color: var(--orange); background: rgba(255,138,61,.12); }
.case-card h3 { margin-top: 14px; font-size: 19px; }
.case-card p { font-size: 15px; }
.case-kpi { margin-top: auto; padding: 20px 28px 26px; display: grid; gap: 10px; }
.kpi-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; background: var(--bg-soft); border-radius: 12px; font-size: 14px; }
.kpi-row .lbl { color: var(--text-2); }
.kpi-row .val { font-weight: 800; text-align: right; }
.kpi-row .lbl { flex-shrink: 0; max-width: 55%; }
.case-kpi-cap { font-size: 12.5px; font-weight: 700; color: var(--text-3); letter-spacing: .02em; }
.tag.gray { color: var(--text-2); background: rgba(100,116,139,.12); }
.case-top .case-link { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--blue); }
.kpi-row .val del { color: var(--text-3); font-weight: 500; margin-right: 6px; }
.kpi-row .val em { font-style: normal; color: var(--blue); }

/* Filters / chips */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip {
  padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
  font-weight: 600; font-size: 14.5px; color: var(--text-2); transition: .15s;
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }

/* Course cards */
.course-card { display: flex; flex-direction: column; }
.course-card .c-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.course-card .level { font-size: 12.5px; font-weight: 700; color: var(--text-3); white-space: nowrap; }
.course-card h3 { margin-top: 14px; font-size: 19px; }
.course-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; font-size: 14px; color: var(--text-3); }
.course-meta span { display: inline-flex; align-items: center; gap: 5px; }
.course-foot { margin-top: auto; padding-top: 20px; display: flex; align-items: center; justify-content: space-between; border-top: 1px dashed var(--line); margin-top: 22px; }
.price { font-weight: 800; font-size: 18px; }
.price small { font-weight: 500; color: var(--text-3); font-size: 13px; }

/* Tabs */
.tabs { display: inline-flex; padding: 6px; background: var(--bg-softer); border-radius: 999px; gap: 4px; margin-bottom: 36px; flex-wrap: wrap; }
.tab { padding: 10px 22px; border-radius: 999px; font-weight: 700; color: var(--text-2); font-size: 15px; }
.tab.active { background: #fff; color: var(--blue); box-shadow: 0 4px 12px rgba(15,21,48,.08); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp .35s ease; }

/* Feature split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split + .split { margin-top: 100px; }
.split.reverse .split-media { order: -1; }
.split-media {
  border-radius: 24px; background: var(--grad-soft); padding: 36px; min-height: 340px;
  border: 1px solid var(--line); position: relative; overflow: hidden;
}
.split h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; letter-spacing: -.02em; line-height: 1.35; }
.split p { margin-top: 14px; color: var(--text-2); font-size: 16.5px; }

/* Mock UI blocks */
.mock { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 18px; border: 1px solid var(--line); }
.mock + .mock { margin-top: 14px; }
.mock-title { font-size: 13px; font-weight: 700; color: var(--text-3); margin-bottom: 10px; display: flex; justify-content: space-between; }
.bar { height: 10px; border-radius: 6px; background: var(--bg-softer); overflow: hidden; margin: 8px 0 4px; }
.bar i { display: block; height: 100%; background: var(--grad); border-radius: 6px; }
.mock-row { display: flex; justify-content: space-between; font-size: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mock-row:last-child { border-bottom: 0; }
.chat-bubble { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 14px; margin-bottom: 8px; }
.chat-bubble.user { margin-left: auto; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.chat-bubble.ai { background: var(--bg-soft); border-bottom-left-radius: 4px; }

/* Comparison table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
table.tbl { width: 100%; border-collapse: collapse; min-width: 720px; }
.tbl th, .tbl td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: top; }
.tbl thead th { background: var(--bg-soft); font-weight: 800; font-size: 14.5px; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl td.hl { background: rgba(59,108,255,.05); font-weight: 600; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 880px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; }
.faq summary { list-style: none; padding: 20px 0; font-weight: 700; font-size: 17px; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--blue); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 20px; color: var(--text-2); }

/* CTA band */
.cta-band {
  border-radius: 28px; padding: 64px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(600px 300px at 100% 0%, rgba(34,211,238,.35), transparent 60%), linear-gradient(120deg, #2b55e0, #6a4cf0);
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; line-height: 1.3; letter-spacing: -.02em; }
.cta-band p { margin-top: 10px; color: rgba(255,255,255,.8); font-size: 17px; }
.cta-band .btn-white { background: #fff; color: var(--navy-800); }
.cta-band .btn-white:hover { transform: translateY(-2px); }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 40px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 700; font-size: 14.5px; margin-bottom: 8px; }
.field label .req { color: var(--red); margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%; height: 50px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  transition: .15s; font-size: 15.5px;
}
.field textarea { height: 140px; padding: 14px 16px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(59,108,255,.12); }
.check-group { display: flex; flex-wrap: wrap; gap: 8px; }
.check-group label { margin: 0; }
.check-group input { display: none; }
.check-group span {
  display: inline-block; padding: 10px 16px; border-radius: 10px; border: 1.5px solid var(--line);
  font-weight: 600; font-size: 14.5px; color: var(--text-2); cursor: pointer; transition: .15s;
}
.check-group input:checked + span { border-color: var(--blue); background: rgba(59,108,255,.06); color: var(--blue); }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--text-2); }
.agree input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--blue); }

/* ---------- Diagnosis ---------- */
.diag-wrap { max-width: 860px; margin: 0 auto; }
.diag-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.diag-progress .bar { flex: 1; height: 8px; margin: 0; }
.diag-progress span { font-weight: 700; font-size: 14px; color: var(--text-3); white-space: nowrap; }
.q-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 40px; box-shadow: var(--shadow); }
.q-area { font-size: 13px; font-weight: 800; color: var(--blue); letter-spacing: .08em; }
.q-title { margin-top: 10px; font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; line-height: 1.4; }
.q-help { margin-top: 8px; color: var(--text-3); font-size: 15px; }
.options { margin-top: 26px; display: grid; gap: 10px; }
.option {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; border: 1.5px solid var(--line);
  text-align: left; font-size: 16px; font-weight: 600; transition: .15s; width: 100%; background: #fff;
}
.option:hover { border-color: var(--blue); background: rgba(59,108,255,.04); }
.option.selected { border-color: var(--blue); background: rgba(59,108,255,.08); color: var(--blue); }
.option .o-key {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--bg-softer);
  font-size: 13px; font-weight: 800; color: var(--text-3); flex-shrink: 0;
}
.option.selected .o-key { background: var(--blue); color: #fff; }
.q-nav { display: flex; justify-content: space-between; margin-top: 28px; gap: 12px; }

.result-head { text-align: center; }
.score-ring { width: 200px; height: 200px; margin: 0 auto; position: relative; }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-ring .center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.score-ring strong { font-size: 52px; font-weight: 900; line-height: 1; }
.score-ring small { color: var(--text-3); font-weight: 600; }
.level-badge { display: inline-block; margin-top: 18px; padding: 8px 18px; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 800; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.area-bars .area { margin-bottom: 16px; }
.area-bars .area-top { display: flex; justify-content: space-between; font-weight: 700; font-size: 15px; }
.rx-list { display: grid; gap: 12px; counter-reset: rx; }
.rx-list li { counter-increment: rx; display: flex; gap: 14px; padding: 16px; background: var(--bg-soft); border-radius: 14px; font-size: 15px; }
.rx-list li::before {
  content: counter(rx); width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--navy-800); color: #fff; font-weight: 800; font-size: 13px;
}
.rx-list b { display: block; }
.rx-list span { color: var(--text-2); font-size: 14px; }
.radar { width: 100%; max-width: 360px; margin: 0 auto; }

/* ---------- Estimator ---------- */
.est-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.est-group { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.est-group + .est-group { margin-top: 18px; }
.est-group h3 { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.est-group > p { color: var(--text-3); font-size: 14.5px; margin-bottom: 18px; }
.est-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.est-opt { position: relative; }
.est-opt input { position: absolute; opacity: 0; }
.est-opt label {
  display: block; padding: 16px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; transition: .15s; height: 100%;
}
.est-opt label b { display: block; font-size: 15.5px; }
.est-opt label small { color: var(--text-3); font-size: 13.5px; }
.est-opt label em { display: block; font-style: normal; margin-top: 6px; font-size: 13.5px; font-weight: 700; color: var(--blue); }
.est-opt input:checked + label { border-color: var(--blue); background: rgba(59,108,255,.06); }
.est-opt input:focus-visible + label { box-shadow: 0 0 0 4px rgba(59,108,255,.2); }
.est-summary { position: sticky; top: calc(var(--header-h) + 24px); background: var(--navy-900); color: #fff; border-radius: 24px; padding: 30px; }
.est-summary h3 { font-size: 18px; }
.est-total { margin: 18px 0; padding: 20px; border-radius: 16px; background: rgba(255,255,255,.06); }
.est-total small { color: rgba(255,255,255,.6); font-size: 13.5px; }
.est-total strong { display: block; font-size: 30px; font-weight: 900; margin-top: 4px; }
.est-lines { display: grid; gap: 8px; font-size: 14px; max-height: 240px; overflow-y: auto; }
.est-lines li { display: flex; justify-content: space-between; gap: 12px; color: rgba(255,255,255,.75); }
.est-note { margin-top: 16px; font-size: 12.5px; color: rgba(255,255,255,.5); }
.est-summary .btn { margin-top: 18px; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 28px; }
.tl-item::before { content: ""; position: absolute; left: -28px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--blue); }
.tl-item b { font-size: 15px; color: var(--blue); }
.tl-item h4 { font-size: 18px; margin-top: 2px; }
.tl-item p { color: var(--text-2); font-size: 15px; margin-top: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.7); padding: 80px 0 36px; font-size: 14.5px; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 36px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-top .logo { color: #fff; }
.footer-top .logo-text small { color: rgba(255,255,255,.5); }
.footer-desc { margin-top: 16px; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-col a { display: block; padding: 5px 0; }
.footer-col a:hover { color: #fff; }
.footer-branches { padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-branches h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-branches ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px 28px; }
.footer-branches li { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; line-height: 1.6; }
.footer-branches li b { color: rgba(255,255,255,.9); font-size: 14px; }
.footer-branches li span { color: rgba(255,255,255,.55); }
.footer-branches li a { color: rgba(255,255,255,.7); width: fit-content; }
.footer-branches li a:hover { color: #fff; }
.footer-bottom { padding-top: 28px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13.5px; color: rgba(255,255,255,.5); }
.footer-bottom .links { display: flex; gap: 18px; }
.footer-bottom .links a:hover { color: #fff; }
.footer-bottom .links a.strong { color: rgba(255,255,255,.85); font-weight: 700; }
.footer-info { line-height: 1.9; }

/* ---------- Floating & Chatbot ---------- */
.fab { position: fixed; right: 24px; bottom: 24px; z-index: 120; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.fab-btn {
  width: 60px; height: 60px; border-radius: 50%; background: var(--grad); color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 30px rgba(59,108,255,.45); transition: .2s;
}
.fab-btn:hover { transform: scale(1.06); }
.fab-btn svg { width: 28px; height: 28px; }
.fab-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; background: #fff; color: var(--navy-800);
  font-weight: 800; font-size: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.fab-pill:hover { color: var(--blue); }

.fab-music {
  display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px 10px 14px; border-radius: 999px;
  background: rgba(13,20,48,.88); color: #fff; font-weight: 700; font-size: 13.5px; backdrop-filter: blur(8px);
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.12); transition: .2s;
}
.fab-music:hover { background: var(--navy-700); }
.fab-music .eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.fab-music .eq i { width: 3px; height: 4px; border-radius: 2px; background: var(--cyan); opacity: .6; }
.fab-music.on { background: linear-gradient(120deg, #2b55e0, #6a4cf0); }
.fab-music.on .eq i { opacity: 1; background: #fff; animation: eq 1.6s ease-in-out infinite; }
.fab-music.on .eq i:nth-child(2) { animation-delay: -.4s; }
.fab-music.on .eq i:nth-child(3) { animation-delay: -.9s; }
.fab-music.on .eq i:nth-child(4) { animation-delay: -1.2s; }
.fab-music.waiting .eq i { opacity: 1; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }
@media (prefers-reduced-motion: reduce) { .fab-music.on .eq i { animation: none; height: 10px; } }
@media (max-width: 640px) { .fab-music .lbl { display: none; } .fab-music { padding: 12px; } }

.chatbot {
  position: fixed; right: 24px; bottom: 100px; z-index: 130; width: 370px; max-width: calc(100vw - 32px);
  height: 560px; max-height: calc(100vh - 140px); background: #fff; border-radius: 22px; box-shadow: 0 30px 80px rgba(15,21,48,.28);
  display: flex; flex-direction: column; overflow: hidden; transform: translateY(20px) scale(.97); opacity: 0; visibility: hidden; transition: .22s;
  border: 1px solid var(--line);
}
.chatbot.open { transform: none; opacity: 1; visibility: visible; }
.cb-head { padding: 18px 20px; background: var(--navy-900); color: #fff; display: flex; align-items: center; gap: 12px; }
.cb-head .avatar { width: 38px; height: 38px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; font-weight: 900; font-size: 13px; }
.cb-head b { display: block; font-size: 15.5px; }
.cb-head small { color: rgba(255,255,255,.6); font-size: 12.5px; }
.cb-head .close { margin-left: auto; font-size: 24px; line-height: 1; opacity: .7; padding: 4px 8px; }
.cb-body { flex: 1; overflow-y: auto; padding: 18px; background: var(--bg-soft); }
.cb-body .chat-bubble { background: #fff; box-shadow: 0 2px 6px rgba(15,21,48,.05); }
.cb-body .chat-bubble.user { background: var(--blue); }
.cb-body .chat-bubble a { color: var(--blue); font-weight: 700; text-decoration: underline; }
.cb-quick { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 12px; }
.cb-quick button { padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--text-2); }
.cb-quick button:hover { border-color: var(--blue); color: var(--blue); }
.cb-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.cb-input input { flex: 1; height: 44px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 14px; font-size: 14.5px; }
.cb-input input:focus { outline: none; border-color: var(--blue); }
.cb-input button { width: 44px; height: 44px; border-radius: 12px; background: var(--blue); color: #fff; display: grid; place-items: center; }

/* Toast / Modal */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 30px); z-index: 200; opacity: 0; visibility: hidden;
  background: var(--navy-900); color: #fff; padding: 14px 22px; border-radius: 14px; font-weight: 600; box-shadow: var(--shadow-lg); transition: .25s;
  max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.modal-bg { position: fixed; inset: 0; z-index: 190; background: rgba(7,11,31,.55); display: none; align-items: center; justify-content: center; padding: 16px; }
.modal-bg.open { display: flex; }
.modal { background: #fff; border-radius: 24px; padding: 36px; max-width: 460px; width: 100%; text-align: center; animation: fadeUp .25s ease; }
.modal .ok-icon { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: rgba(22,180,122,.12); color: var(--green); display: grid; place-items: center; }
.modal h3 { font-size: 22px; }
.modal p { margin-top: 10px; color: var(--text-2); }
.modal .btn { margin-top: 24px; }

.notice-sample { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 12px; background: rgba(255,138,61,.1); color: #b2561c; font-size: 14px; font-weight: 600; margin-bottom: 28px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

.mt-0 { margin-top: 0 !important; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }
.text-center { text-align: center; }
.muted { color: var(--text-3); }
.hidden { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .gnb, .header-cta .btn-outline { display: none; }
  .menu-toggle { display: block; }
  .header-cta { margin-left: auto; }
  .menu-toggle { margin-left: 0; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-top > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .section { padding: 80px 0; }
  .hero-grid, .split, .est-layout, .result-grid { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .split { gap: 36px; }
  .g-3, .g-4 { grid-template-columns: 1fr 1fr; }
  .stats-band { grid-template-columns: 1fr 1fr; }
  .est-summary { position: static; }
  .cta-band { padding: 44px 32px; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .sec-head { margin-bottom: 36px; }
  .g-2, .g-3, .g-4, .form-grid, .est-options { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .header-cta .btn { display: none; }
  .hero { padding-top: calc(var(--header-h) + 50px); padding-bottom: 70px; }
  .hero-stats { gap: 24px; }
  .card, .q-card, .form-card { padding: 24px; }
  .pillar { padding: 28px; }
  .cta-band { padding: 36px 24px; border-radius: 20px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .fab { right: 16px; bottom: 16px; }
  .fab-pill { display: none; }
  .chatbot { right: 16px; bottom: 88px; }
  .split-media { padding: 22px; min-height: 0; }
}
