/* ============================================================
   FlowGen — AI 마케팅 실행 파트너
   디자인 언어: Poppins 디스플레이 + DM Sans 본문(한글은 Pretendard),
   인디고 브랜드 + 라벤더 워시, 필(pill) 버튼, 소프트 카드,
   글래스 스티키 네비, 다크 프로세스 섹션.
   ============================================================ */

:root {
  /* brand */
  --brand:        #3d2fd4;
  --brand-deep:   #322996;
  --brand-dark:   #241a6e;
  --brand-soft:   #f0efff;
  --brand-glow:   rgba(61, 47, 212, .35);

  /* neutrals */
  --ink:      #111827;
  --ink-2:    #374151;
  --muted:    #6b7280;
  --muted-2:  #9ca3af;
  --line:     #e5e7eb;
  --line-2:   #f0f1f4;
  --surface:  #ffffff;
  --surface-2:#f9fafb;
  --surface-3:#f3f4f6;

  /* dark section */
  --dark:      #0a0a0f;
  --dark-line: rgba(255,255,255,.1);
  --dark-text: rgba(255,255,255,.7);

  --green:  #15803d;
  --red:    #c2273b;

  /* type — 라틴은 Poppins/DM Sans, 한글은 Pretendard 계열 폴백 */
  --font-display: "Poppins", "Pretendard Variable", Pretendard, "Malgun Gothic",
                  "Apple SD Gothic Neo", -apple-system, sans-serif;
  --font-body: "DM Sans", "Pretendard Variable", Pretendard, "Malgun Gothic",
               "Apple SD Gothic Neo", -apple-system, sans-serif;

  /* geometry */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 9999px;

  --shadow-sm: 0 1px 2px rgba(17,24,39,.05);
  --shadow-md: 0 6px 24px -8px rgba(17,24,39,.14);
  --shadow-lg: 0 24px 60px -20px rgba(17,24,39,.22);
  --shadow-brand: 0 14px 34px -12px var(--brand-glow);

  --nav-h: 72px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-2);
  background: var(--surface);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  word-break: keep-all;
  overflow-wrap: break-word;
  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; }
ul, ol { margin: 0; padding: 0; }
ul { list-style: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink); font-weight: 700; letter-spacing: -.02em; line-height: 1.22; margin: 0;
}

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

::selection { background: var(--brand); color: #fff; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding: 96px 0; }
.section--tint { background: var(--brand-soft); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand-deep);
  background: var(--brand-soft);
  border: 1px solid rgba(61,47,212,.14);
  padding: 7px 15px; border-radius: var(--r-pill);
}
.section--tint .eyebrow { background: #fff; }
.eyebrow--dark { color: #cfc9ff; background: rgba(255,255,255,.06); border-color: var(--dark-line); }

.h-sec { font-size: clamp(27px, 3.7vw, 40px); }
.lede { color: var(--muted); font-size: 16.5px; max-width: 660px; margin: 0; }
.sec-head { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; margin-bottom: 48px; }

.grad {
  background: linear-gradient(100deg, var(--brand) 0%, #7b5cff 55%, #b06cff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-style: normal;
}

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

/* ---------- buttons: 필 형태, 인디고 + 글로우 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 27px;
  border-radius: var(--r-pill);
  font-weight: 600; font-size: 15px;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-deep); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { background: var(--brand); transform: translateY(-2px); box-shadow: 0 18px 40px -12px var(--brand-glow); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: #cfcbea; color: var(--brand-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 0 32px; font-size: 16px; }
.btn-block { width: 100%; }

/* ============================================================
   NAV — 글래스 스티키
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,.74);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.nav.is-stuck { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(17,24,39,.5); }
.nav__inner { height: var(--nav-h); display: flex; align-items: center; gap: 24px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -.03em; color: var(--ink);
}
.brand__mark {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--brand) 0%, #8a5cff 100%);
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 6px 16px -6px var(--brand-glow);
}

.nav__menu { display: flex; align-items: center; gap: 2px; }
.nav__link {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 13px; border-radius: var(--r-sm);
  color: var(--muted); font-size: 15px; font-weight: 500;
  transition: color .16s ease, background .16s ease;
}
.nav__link:hover { color: var(--ink); background: var(--surface-3); }

.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: var(--r-sm); align-items: center; justify-content: center; }
.nav__toggle:hover { background: var(--surface-3); }

.nav__mobile {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 99;
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 10px 24px 24px;
  display: none; flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.nav__mobile.is-open { display: flex; }
.nav__mobile a { display: flex; align-items: center; min-height: 48px; font-size: 16px; font-weight: 500; color: var(--ink-2); border-bottom: 1px solid var(--line-2); }
.nav__mobile .btn { margin-top: 16px; width: 100%; border-bottom: 0; }

/* ============================================================
   1. HERO — 라디얼 인디고 글로우 + 그리드 마스크
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + 72px) 0 84px;
  background:
    radial-gradient(1100px 520px at 30% -140px, rgba(61,47,212,.15), transparent 62%),
    radial-gradient(760px 420px at 92% 12%, rgba(176,108,255,.13), transparent 60%),
    linear-gradient(180deg, #fbfaff 0%, #ffffff 68%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(17,24,39,.033) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17,24,39,.033) 1px, transparent 1px);
  background-size: 66px 66px;
  mask-image: radial-gradient(720px 440px at 42% 24%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(720px 440px at 42% 24%, #000, transparent 78%);
}
.hero__inner { position: relative; z-index: 1; text-align: center; }

.hero h1 { font-size: clamp(32px, 5.2vw, 58px); line-height: 1.12; margin: 22px auto 0; max-width: 880px; }
.hero__sub { margin: 20px auto 0; font-size: 17.5px; color: var(--muted); max-width: 640px; }
.hero__cta { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero__points { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 26px; justify-content: center; }
.hero__points li { position: relative; padding-left: 26px; font-size: 14px; color: var(--ink-2); }
.hero__points li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--brand-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23322996' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E");
  background-size: 9px; background-position: center; background-repeat: no-repeat;
}
.hero__points b { font-weight: 700; color: var(--ink); }

/* 운영 대시보드 목업 */
.mock {
  position: relative; z-index: 1;
  margin: 56px auto 0; max-width: 1020px;
  border-radius: var(--r-xl);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px -32px rgba(36,26,110,.35), 0 0 0 10px rgba(255,255,255,.6);
  overflow: hidden;
  text-align: left;
}
.mock__bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--line-2); background: var(--surface-2); }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.mock__url {
  margin-left: 10px; flex: 1; min-height: 26px; border-radius: var(--r-pill);
  background: #fff; border: 1px solid var(--line);
  display: flex; align-items: center; padding: 2px 13px;
  font-size: 11px; color: var(--muted-2);
}
.mock__body { display: grid; grid-template-columns: 205px 1fr; min-height: 360px; }
.mock__side { border-right: 1px solid var(--line-2); padding: 18px 14px; background: #fcfcfe; }
.mock__side h5 { font-family: var(--font-body); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 10px 8px; font-weight: 700; }
.mock__nav { display: flex; flex-direction: column; gap: 2px; margin-bottom: 20px; }
.mock__nav span {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 9px; border-radius: var(--r-sm);
  font-size: 13px; color: var(--muted); font-weight: 500;
}
.mock__nav span.on { background: var(--brand-soft); color: var(--brand-deep); font-weight: 600; }
.mock__nav i { width: 6px; height: 6px; border-radius: 2px; background: currentColor; opacity: .45; flex: none; }
.mock__main { padding: 22px; }
.mock__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.mock__row strong { font-family: var(--font-display); font-size: 15px; color: var(--ink); }
.chip { font-size: 11px; font-weight: 600; padding: 5px 11px; border-radius: var(--r-pill); background: var(--surface-3); color: var(--muted); }
.chip--live { background: rgba(34,197,94,.12); color: var(--green); display: inline-flex; align-items: center; gap: 6px; }
.chip--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #22c55e; animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: .35; transform: scale(.75);} }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.kpi { border: 1px solid var(--line); border-radius: var(--r-md); padding: 13px 14px; background: #fff; }
.kpi small { display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; }
.kpi b { display: block; font-family: var(--font-display); font-size: 21px; margin-top: 5px; letter-spacing: -.02em; color: var(--ink); }
.kpi em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--brand-deep); }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tile { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.tile__img { aspect-ratio: 4/4.2; position: relative; }
.tile__img span { position: absolute; left: 8px; top: 8px; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 5px; background: rgba(255,255,255,.92); color: var(--ink); }
.tile__meta { padding: 9px 10px; display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.tile__meta b { color: var(--brand-deep); font-weight: 600; }

.g1 { background: linear-gradient(150deg,#5b4bff,#b06cff); }
.g2 { background: linear-gradient(150deg,#ff8a5b,#ff4d8d); }
.g3 { background: linear-gradient(150deg,#12c2e9,#3d2fd4); }
.g4 { background: linear-gradient(150deg,#22c55e,#0ea5e9); }

/* 콘텐츠 유형 마퀴 */
.logos { padding: 50px 0 44px; border-bottom: 1px solid var(--line-2); }
.logos__label { text-align: center; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--muted-2); margin: 0 0 24px; }
.marquee { position: relative; overflow: hidden; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 110px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, #fff, transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, #fff, transparent); }
.marquee__track { display: flex; width: max-content; animation: slide 30s linear infinite; }
.marquee__track > * { margin-right: 58px; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.logo-item {
  font-family: var(--font-display); font-weight: 700; font-size: 19px;
  color: #a2a8b5; letter-spacing: -.01em; white-space: nowrap;
}

/* 데모 시각 자료 */
.demo-note {
  margin: 0 0 14px; font-size: 12.5px; color: var(--muted);
  background: rgba(255,255,255,.8); border: 1px dashed #d5d0f2;
  padding: 9px 14px; border-radius: var(--r-md);
}
.demo-note b { color: var(--brand-deep); }

.flow-demo { display: grid; grid-template-columns: 128px 64px 1fr; gap: 0; align-items: center; }
.flow-demo__label {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 8px;
}
.src-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 15px 12px; text-align: center; box-shadow: var(--shadow-md);
}
.src-card .prod { width: 56px; margin: 0 auto 8px; }
.src-card b { display: block; font-size: 13px; color: var(--ink); font-family: var(--font-display); }
.src-card small { font-size: 11px; color: var(--muted-2); line-height: 1.4; display: block; margin-top: 3px; }

.flow-demo__arrow { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--brand); padding-top: 22px; }
.flow-demo__arrow span { font-size: 10.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }

.flow-demo__out { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.flow-demo__out .flow-demo__label { grid-column: 1 / -1; }

/* 광고 카드 목업 */
.adcard {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md);
  transition: transform .24s ease, box-shadow .24s ease;
}
.adcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.adcard__badge {
  position: absolute; top: 9px; right: 9px; z-index: 2;
  font-size: 10px; font-weight: 700; color: var(--brand-deep);
  background: rgba(255,255,255,.94); border: 1px solid #ded9f6;
  padding: 3px 9px; border-radius: var(--r-pill);
}
.adcard--feed { grid-row: span 2; }
.adcard__head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.adcard__pf {
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--brand), #8a5cff); color: #fff;
  font-size: 11px; font-weight: 700; display: grid; place-items: center;
}
.adcard__head b { font-size: 12px; color: var(--ink); display: block; line-height: 1.3; }
.adcard__head small { font-size: 10.5px; color: var(--muted-2); }
.adcard__img {
  position: relative; display: grid; place-items: center; text-align: center;
  background: linear-gradient(165deg, #f2f0ff, #e4e0fb);
}
.adcard__img--a { aspect-ratio: 4/4.4; }
.adcard__img--a .prod--sm { width: 52px; position: absolute; left: 16px; bottom: 16px; opacity: .9; }
.adcard__hook { margin: 0; font-size: 14px; line-height: 1.45; color: var(--brand-dark); font-weight: 500; }
.adcard__hook b { font-family: var(--font-display); font-size: 16px; font-weight: 700; display: block; margin-top: 2px; }
.adcard__foot { padding: 10px 12px; border-top: 1px solid var(--line-2); }
.adcard__foot span { font-size: 12px; font-weight: 700; color: var(--brand-deep); }

.adcard--story .adcard__img--b { aspect-ratio: 9/12; background: linear-gradient(180deg, #241a6e, #0a0a0f); }
.adcard__hook--v { color: #cfc9ff; font-size: 12px; }
.adcard__hook--v b { color: #fff; font-size: 13.5px; }
.adcard__play {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.18); color: #fff; font-size: 11px;
  display: grid; place-items: center;
}
.adcard--blog { padding: 12px; }
.adcard__blogrow { display: flex; gap: 10px; align-items: center; }
.adcard__thumb { width: 46px; height: 46px; border-radius: 10px; background: linear-gradient(150deg, #d8d3ff, #b8aef5); flex: none; }
.adcard__blogrow b { display: block; font-size: 12.5px; color: var(--ink); }
.adcard__blogrow small { font-size: 11px; color: var(--muted); line-height: 1.4; }

/* ============================================================
   2. 문제 카드
   ============================================================ */
.pain {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 24px;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.pain:hover { transform: translateY(-4px); border-color: rgba(61,47,212,.22); box-shadow: var(--shadow-lg); }
.pain h3 { font-size: 17px; }
.pain p { margin: 10px 0 0; font-size: 14px; color: var(--muted); }

/* ============================================================
   3. 해결 방식 (라벤더 섹션)
   ============================================================ */
.handoff { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 20px; align-items: stretch; }
.handoff__col {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px 26px;
  transition: transform .24s ease, box-shadow .24s ease;
}
.handoff__col:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.handoff__col--main { border-color: var(--brand); box-shadow: var(--shadow-brand); }
.handoff__col h3 { font-size: 16.5px; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.step-num {
  width: 27px; height: 27px; border-radius: 50%; flex: none;
  background: var(--brand-soft); color: var(--brand-deep);
  font-size: 13px; font-weight: 700; display: grid; place-items: center;
  font-family: var(--font-display);
}
.plainlist { display: flex; flex-direction: column; gap: 9px; }
.plainlist li { position: relative; padding-left: 18px; font-size: 14.5px; }
.plainlist li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: #b6aef0; }
.plainlist--check li { padding-left: 25px; }
.plainlist--check li::before {
  width: 16px; height: 16px; top: 4px; left: 0; border-radius: 5px; background: var(--brand-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23322996' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E");
  background-size: 10px; background-position: center; background-repeat: no-repeat;
}

/* ============================================================
   4. 프로세스 — 다크 섹션 + 인디고 글로우
   ============================================================ */
.section--dark {
  background: var(--dark); position: relative; overflow: hidden;
}
.section--dark::before {
  content: ""; position: absolute; inset: -35% -10% auto -10%; height: 560px;
  background: radial-gradient(600px 320px at 28% 40%, rgba(61,47,212,.45), transparent 70%),
              radial-gradient(520px 300px at 80% 30%, rgba(176,108,255,.28), transparent 70%);
  pointer-events: none;
}
.section--dark > .wrap { position: relative; z-index: 1; }
.section--dark h2 { color: #fff; }
.section--dark .lede { color: var(--dark-text); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; list-style: none; }
.step {
  background: rgba(255,255,255,.04); border: 1px solid var(--dark-line); border-radius: var(--r-lg);
  padding: 26px 24px; display: flex; flex-direction: column;
  transition: background .2s ease, border-color .2s ease, transform .24s ease;
}
.step:hover { background: rgba(255,255,255,.07); border-color: rgba(139,124,255,.45); transform: translateY(-4px); }
.step__num { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: #a99fff; letter-spacing: .08em; }
.step h3 { font-size: 17px; margin: 10px 0 0; color: #fff; }
.step p { margin: 10px 0 0; font-size: 14px; color: var(--dark-text); flex: 1; }
.step__meta {
  margin-top: 18px; font-size: 12px; font-weight: 700; color: #cfc9ff;
  background: rgba(61,47,212,.22); border: 1px solid rgba(139,124,255,.3);
  padding: 6px 12px; border-radius: var(--r-pill); align-self: flex-start;
}

/* ============================================================
   5. 업종별 (라벤더 섹션)
   ============================================================ */
.ind {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px 26px;
  transition: transform .24s ease, box-shadow .24s ease;
}
.ind:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ind h3 { font-size: 18px; }
.ind__pain { margin: 10px 0 16px; font-size: 14px; color: var(--muted); }
.ind__legal {
  margin: 16px 0 0; font-size: 12.5px; color: var(--muted);
  border-left: 3px solid #cfc9ff; padding-left: 12px; line-height: 1.6;
}

/* ============================================================
   6. 신뢰 카드
   ============================================================ */
.trust {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 24px;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.trust:hover { transform: translateY(-4px); border-color: rgba(61,47,212,.22); box-shadow: var(--shadow-lg); }
.trust h3 { font-size: 16px; }
.trust p { margin: 9px 0 0; font-size: 14px; color: var(--muted); }

.casebox {
  margin-top: 34px; border: 1px dashed #cfc9f0; border-radius: var(--r-lg);
  background: var(--brand-soft); padding: 30px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
}
.casebox h3 { font-size: 17px; flex: none; }
.casebox p { margin: 0; font-size: 14px; color: var(--muted); flex: 1 1 380px; }
.casebox p b { color: var(--ink-2); }

/* ============================================================
   7. 가격 (라벤더 섹션)
   ============================================================ */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 26px; display: flex; flex-direction: column;
  transition: transform .24s ease, box-shadow .24s ease;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan--hot { border-color: var(--brand); box-shadow: var(--shadow-brand); position: relative; }
.plan__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand-deep); color: #fff; font-size: 11.5px; font-weight: 700;
  padding: 5px 15px; border-radius: var(--r-pill); white-space: nowrap;
}
.plan h3 { font-size: 19px; }
.plan__desc { font-size: 13.5px; color: var(--muted); margin: 8px 0 18px; min-height: 42px; }
.plan__price { margin: 0 0 20px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan__price b { font-family: var(--font-display); font-size: 36px; font-weight: 700; color: var(--ink); letter-spacing: -.03em; }
.plan__price .unit { font-size: 18px; font-weight: 700; }
.plan__price .cycle { font-size: 13px; color: var(--muted); }
.plan__feats { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; flex: 1; }
.plan__feats li { position: relative; padding-left: 25px; font-size: 14px; color: var(--ink-2); }
.plan__feats li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px;
  border-radius: 5px; background: var(--brand-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23322996' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E");
  background-size: 10px; background-position: center; background-repeat: no-repeat;
}
.plan__note { margin: 26px 0 0; font-size: 13px; color: var(--muted); text-align: center; }

/* ============================================================
   8. FAQ + 상담
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

.faqs { display: flex; flex-direction: column; gap: 10px; }
.faq { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; overflow: hidden; transition: border-color .2s ease; }
.faq:hover { border-color: #cfcbea; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px; min-height: 48px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--ink);
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 20px; font-weight: 400; color: var(--brand-deep); flex: none;
  transition: transform .18s ease;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0; padding: 0 18px 16px; font-size: 14px; color: var(--muted); }
.faq p a { color: var(--brand-deep); text-decoration: underline; }

/* 상담 폼 */
.formcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 32px 30px; box-shadow: var(--shadow-lg);
  position: sticky; top: calc(var(--nav-h) + 20px);
}
.formcard h2 { font-size: 22px; }
.formcard__sub { margin: 10px 0 22px; font-size: 14px; color: var(--muted); }

.field { margin-bottom: 14px; }
.field label, .field--set legend { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.req { color: var(--red); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 14px;
  border: 1.5px solid var(--line); border-radius: var(--r-md);
  font: inherit; font-size: 14.5px; color: var(--ink);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 80px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(61,47,212,.12);
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--red); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.field--set { border: 0; padding: 0; margin: 0 0 14px; }
.chks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.chks label {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  min-height: 34px; cursor: pointer; margin: 0;
}
.chks input, .field--consent input { width: 17px; height: 17px; accent-color: var(--brand); flex: none; }

.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.field--consent label { display: flex; gap: 9px; align-items: flex-start; font-weight: 500; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.field--consent input { margin-top: 2px; }
.field--consent a { color: var(--brand-deep); text-decoration: underline; }

.form-error {
  margin: 0 0 14px; padding: 11px 14px; border-radius: var(--r-md);
  background: #fdf0f2; border: 1px solid #f3c8cf;
  color: var(--red); font-size: 13.5px;
}
.formcard__note { margin: 12px 0 0; font-size: 12px; color: var(--muted-2); text-align: center; }

.form-success { text-align: center; padding: 28px 8px; }
.form-success h3 { font-size: 20px; color: var(--green); }
.form-success p { margin: 10px 0 0; font-size: 14.5px; color: var(--ink-2); }

button[disabled] { opacity: .6; cursor: not-allowed; }

/* ============================================================
   최종 CTA — 그라데이션 배너
   ============================================================ */
#final-cta { padding-top: 0; }
.final {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 55%, #7b5cff 100%);
  border-radius: var(--r-xl);
  padding: 68px 48px;
  text-align: center;
}
.final::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(560px 280px at 20% 0%, rgba(255,255,255,.2), transparent 60%);
  pointer-events: none;
}
.final > * { position: relative; z-index: 1; }
.final h2 { color: #fff; font-size: clamp(26px, 3.8vw, 42px); max-width: 720px; margin-inline: auto; }
.final p { color: rgba(255,255,255,.85); margin: 18px auto 0; max-width: 540px; font-size: 16.5px; }
.final__cta { margin-top: 32px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-dark { background: #fff; color: var(--brand-dark); }
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(0,0,0,.5); }
.btn-outline-dark { border: 1px solid rgba(255,255,255,.28); color: #fff; }
.btn-outline-dark:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); }

/* ============================================================
   FOOTER — 다크
   ============================================================ */
.footer { background: var(--dark); color: var(--dark-text); padding: 64px 0 28px; }
.footer .brand { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer__about p { font-size: 14px; margin: 16px 0 0; max-width: 340px; line-height: 1.7; }
.footer h5 { color: #fff; font-size: 13.5px; margin: 0 0 15px; }
.footer li + li { margin-top: 10px; }
.footer a { font-size: 14px; transition: color .15s ease; }
.footer a:hover { color: #fff; }
.footer__bar {
  margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--dark-line);
  font-size: 12.5px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.footer__bar p { margin: 0; }

/* ============================================================
   MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .mock__body { grid-template-columns: 1fr; }
  .mock__side { display: none; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .handoff { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .formcard { position: static; }
}

@media (max-width: 900px) {
  .nav__menu { display: none; }
  .nav__toggle { display: inline-flex; }
  .grid-3, .plans { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
}

@media (max-width: 640px) {
  .grid-4, .steps { grid-template-columns: 1fr; }
  .hero { padding-top: calc(var(--nav-h) + 48px); }
  .hero__cta .btn { width: 100%; }
  .flow-demo { grid-template-columns: 1fr; gap: 14px; }
  .flow-demo__arrow { flex-direction: row; padding-top: 0; justify-content: center; }
  .flow-demo__arrow svg { transform: rotate(90deg); }
  .src-card { display: flex; align-items: center; gap: 12px; text-align: left; }
  .src-card .prod { width: 40px; margin: 0; }
  .field-row { grid-template-columns: 1fr; }
  .chks { grid-template-columns: 1fr 1fr; }
  .wrap { padding-inline: 18px; }
  .formcard { padding: 26px 18px; border-radius: var(--r-lg); }
  .casebox .btn { width: 100%; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .kpis { grid-template-columns: 1fr; }
  .final { padding: 48px 22px; border-radius: var(--r-lg); }
  .final__cta .btn { width: 100%; }
  .marquee::before, .marquee::after { width: 48px; }
}
