/* ============================================================================
   일잘러 AI — 기본 스타일
   ----------------------------------------------------------------------------
   1. 색·글꼴 변수
   2. 기본 초기화
   3. 공통 부품 (버튼 / 제목 / 목록)
   4. 각 섹션
   5. 화면 크기별 조정
   ※ 움직임(애니메이션)은 animation.css 에 따로 있습니다.
   ============================================================================ */

/* ══ 1. 변수 ══════════════════════════════════════════════════════════════ */
:root {
  /* 배경 */
  --bg:        #05060a;
  --bg-soft:   #0a0c14;
  --bg-card:   rgba(255, 255, 255, .035);
  --bg-card-2: rgba(255, 255, 255, .06);

  /* 글자 */
  --ink:       #ffffff;
  --ink-2:     rgba(255, 255, 255, .72);
  --ink-3:     rgba(255, 255, 255, .45);
  --ink-4:     rgba(255, 255, 255, .26);

  /* 선 */
  --line:      rgba(255, 255, 255, .10);
  --line-2:    rgba(255, 255, 255, .18);

  /* 네온 */
  --n1:        #7c5cff;   /* 보라 */
  --n2:        #22d3ee;   /* 청록 */
  --n3:        #f472b6;   /* 분홍 */
  --warn:      #ff5c7a;   /* 경고(300만 원) */
  --grad:      linear-gradient(100deg, var(--n1), var(--n2));
  --grad-3:    linear-gradient(100deg, var(--n1), var(--n3) 45%, var(--n2));

  /* 간격 */
  --pad:       clamp(20px, 5vw, 80px);
  --sec:       clamp(90px, 13vw, 200px);
  --wrap:      1280px;

  /* 효과 */
  --blur:      130px;              /* 배경 덩어리 흐림 정도 */
  --r:         20px;               /* 모서리 둥글기 */
  --ease:      cubic-bezier(.22, 1, .36, 1);

  color-scheme: dark;
}

/* ══ 2. 초기화 ════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
/* 부드러운 스크롤을 JS(Lenis)가 맡으면 브라우저 기본 동작은 끕니다 */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
               'Malgun Gothic', '맑은 고딕', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -.02em;
  overflow-x: hidden;
  word-break: keep-all;   /* 한글이 단어 중간에서 잘리지 않게 */
}

img, svg { max-width: 100%; display: block; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: normal; }
b, strong { font-weight: 500; }

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

/* 키보드로 이동할 때만 표시되는 초점 테두리 */
:focus-visible { outline: 2px solid var(--n2); outline-offset: 4px; border-radius: 6px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ══ 3. 공통 부품 ═════════════════════════════════════════════════════════ */

/* 큰 제목 */
.h2 {
  font-size: clamp(30px, 5.6vw, 68px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.045em;
}
.h2 em { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* 섹션 위 작은 글씨 */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 18px; font-weight: 500; letter-spacing: .02em;
  color: var(--n2);
  margin-bottom: 18px;
}

.lead { color: var(--ink-2); font-size: clamp(15px, 1.5vw, 18px); margin-top: 20px; }

.sec-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 84px); }

/* 체크 목록 */
.ticks { display: grid; gap: 12px; margin-top: 26px; }
.ticks li {
  position: relative; padding-left: 30px;
  color: var(--ink-2); font-size: 15px;
}
/* 체크 표시 모양으로 그라데이션을 오려 냅니다 */
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 18px; height: 18px;
  background: var(--grad);
  -webkit-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4 10-10'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
          mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4 10-10'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}

/* 버튼 */
.btn {
  --bh: 56px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--bh); padding: 0 28px;
  border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -.01em;
  white-space: nowrap;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease),
              background-color .3s, border-color .3s, color .3s;
}
.btn svg { width: 18px; height: 18px; stroke-width: 2; }

.btn--primary {
  background: var(--grad); color: #05060a;
  box-shadow: 0 8px 30px -8px rgba(124, 92, 255, .7);
}
.btn--primary:hover { box-shadow: 0 14px 44px -8px rgba(34, 211, 238, .75); }

.btn--ghost { border: 1px solid var(--line-2); color: var(--ink); background: rgba(255,255,255,.02); }
.btn--ghost:hover { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.07); }

.btn--sm  { --bh: 46px; padding: 0 22px; font-size: 16px; }
.btn--lg  { --bh: 64px; padding: 0 36px; font-size: 17px; }
.btn--full { width: 100%; margin-top: 28px; }
.btn b { font-weight: 500; }

/* 커서 (PC 전용) */
.cursor, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 9999;
  pointer-events: none; border-radius: 50%;
  translate: -50% -50%;
  display: none;
}
.cursor      { width: 6px;  height: 6px;  background: var(--n2); }
.cursor-ring { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.35); }

/* 스크롤 진행 막대 */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 900;
  background: rgba(255,255,255,.07);
}
.progress i {
  display: block; height: 100%; width: 0%;
  background: var(--grad-3);
}

/* 배경 네온 덩어리 */
.blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.blob {
  position: absolute; display: block; border-radius: 50%;
  filter: blur(var(--blur));
  opacity: .55;
}
.blob--1 { width: 46vw; height: 46vw; background: var(--n1); top: -12%; left: -8%; }
.blob--2 { width: 40vw; height: 40vw; background: var(--n2); bottom: -18%; right: -6%; opacity: .38; }
.blob--3 { width: 28vw; height: 28vw; background: var(--n3); top: 42%; left: 45%; opacity: .22; }

/* 격자 배경 */
.grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 20%, transparent 78%);
}


/* ══ 인트로 로더 ══════════════════════════════════════════════════════════ */
.loader { position: fixed; inset: 0; z-index: 10000; }
.loader__panel { position: absolute; left: 0; width: 100%; height: 50.5%; background: #05060a; }
.loader__panel--top    { top: 0; }
.loader__panel--bottom { bottom: 0; }

.loader__inner {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
}
.loader__word {
  font-size: clamp(22px, 4vw, 44px); font-weight: 800; letter-spacing: .1em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.loader__bar { width: min(240px, 50vw); height: 2px; background: rgba(255,255,255,.12); overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 0%; background: var(--grad); }
.loader__num { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

body.is-loading { overflow: hidden; }


/* ══ 상단 메뉴 ════════════════════════════════════════════════════════════ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 800;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 16px var(--pad);
  transition: transform .5s var(--ease), background-color .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(5, 6, 10, .72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.nav.is-hidden { transform: translateY(-110%); }

.nav__logo { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 17px; }
/* 로고 마크는 인라인 SVG 입니다. 배경 대신 그림자만 걸어 네온 느낌을 유지합니다. */
.nav__mark {
  width: 24px; height: 24px; flex: none; display: block;
  border-radius: 7px;
  filter: drop-shadow(0 0 14px rgba(124, 92, 255, .75));
}
.nav__menu { display: flex; gap: 30px; font-size: 16.5px; color: var(--ink-2); }
.nav__menu a { position: relative; padding: 6px 0; transition: color .3s; }
.nav__menu a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: var(--grad); transition: width .4s var(--ease);
}
.nav__menu a:hover { color: var(--ink); }
.nav__menu a:hover::after { width: 100%; }


/* ══ 4-1. 히어로 ══════════════════════════════════════════════════════════ */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 130px var(--pad) 120px;   /* 아래 여백은 흐르는 글자 띠 자리 */
}
.hero__inner { position: relative; z-index: 2; max-width: var(--wrap); margin-inline: auto; width: 100%; }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.03);
  font-size: 13px; color: var(--ink-2); font-weight: 500;
}
.hero__eyebrow .dot,
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--n2); box-shadow: 0 0 12px var(--n2); }

.hero__title {
  margin: 26px 0 0;
  font-size: clamp(46px, 11.5vw, 168px);
  font-weight: 800; line-height: .97; letter-spacing: -.055em;
}
.hero__title .line { display: block; }
.hero__title em {
  background: var(--grad-3); -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero__desc { margin-top: 30px; font-size: clamp(16px, 2vw, 21px); color: var(--ink-2); line-height: 1.65; }
.hero__desc b { color: var(--ink); }

.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 42px; }

.hero__chips { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 46px; font-size: 14px; color: var(--ink-3); }
.hero__chips li { display: flex; align-items: center; gap: 7px; }
.hero__chips li::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--n2); }
.hero__chips b { color: var(--ink); font-weight: 500; }

/* ── 히어로 오른쪽 시각 요소 ──────────────────────────────────────────────
   AI 코어(회전 링 + 스파크)와 그 주위에서 처리되는 업무 칩들.
   실측 결과 900px 미만에서는 버튼이 전체 폭을 쓰므로 남는 자리가 없어 숨깁니다.
   폭 여유: 900px→417px, 1024px→472px, 1440px→649px */
.hero__visual {
  display: none;
  position: absolute;
  right: 0; top: 50%; translate: 0 -50%;
  width: clamp(330px, 30vw, 560px);
  aspect-ratio: 1;
  pointer-events: none;   /* 커서·클릭을 절대 가로채지 않습니다 */
}
@media (min-width: 900px) {
  .hero__visual { display: block; }
}

/* 76행의 전역 규칙 svg{stroke:currentColor;stroke-width:1.6} 은 아이콘용입니다.
   장식용 도형에까지 상속되면 헤일로·코어에 흰 테두리가 그려지므로 여기서 끊습니다.
   (각 도형이 직접 지정한 stroke 속성은 상속보다 우선하므로 그대로 살아 있습니다) */
.hv__stage {
  display: block; width: 100%; height: 100%; overflow: visible;
  stroke: none;
}
.hv__orb   { filter: drop-shadow(0 0 42px rgba(124, 92, 255, .55)); }
.hv__spark { filter: drop-shadow(0 0 9px rgba(255, 255, 255, .85)); }

/* 처리 중인 업무 칩 */
.hv__task {
  position: absolute;
  left: var(--x); top: var(--y);
  translate: -50% -50%;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: rgba(10, 12, 20, .74);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .9);
  font-size: 13px; font-weight: 500; letter-spacing: -.01em;
  color: var(--ink-2); white-space: nowrap;
}
.hv__task svg {
  width: 15px; height: 15px; flex: none;
  fill: none; stroke: var(--n2); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
/* 좌표는 SVG 의 연결선 끝점(400 단위)과 같은 지점입니다 */
.hv__task--1 { --x: 50%;   --y: 10%;   }
.hv__task--2 { --x: 80%;   --y: 25%;   }
.hv__task--3 { --x: 90%;   --y: 50%;   }
.hv__task--4 { --x: 80%;   --y: 75%;   }
.hv__task--5 { --x: 50%;   --y: 90%;   }
.hv__task--6 { --x: 20%;   --y: 75%;   }

/* 완료 표시 — 기본을 '보이는 상태'로 두어 모션 최소화 설정에서도 남아 있게 합니다 */
.hv__ok {
  position: relative; flex: none;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--grad);
  opacity: 1; scale: 1;
}
.hv__ok::after {
  content: '';
  position: absolute; left: 5.5px; top: 3.5px;
  width: 4px; height: 7.5px;
  border: solid #05060a; border-width: 0 1.9px 1.9px 0;
  rotate: 45deg;
}

/* 흐르는 글자 띠 — 화면 맨 아래에 고정해 둡니다 */
.marquee {
  position: absolute; left: 0; bottom: 0; width: 100%; z-index: 3;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  overflow: hidden;
  background: rgba(5, 6, 10, .35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.marquee__track { display: flex; width: max-content; }
.marquee span {
  font-size: clamp(13px, 1.4vw, 16px); font-weight: 500; letter-spacing: .06em;
  color: var(--ink-4); white-space: nowrap;
}

.hero__scroll {
  position: absolute; left: 50%; bottom: 84px; translate: -50% 0; z-index: 4;
  width: 26px; height: 42px; border: 1px solid var(--line-2); border-radius: 999px;
  display: grid; place-items: start center; padding-top: 8px;
}
.hero__scroll span { width: 3px; height: 8px; border-radius: 2px; background: var(--n2); }


/* ══ 4-2. 문제 제기 ═══════════════════════════════════════════════════════ */
.problem { position: relative; background: var(--bg-soft); }
.problem__stage {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 34px; padding: var(--sec) var(--pad);
  text-align: center;
}
/* 바로 아래 제목이 clamp(26px, 5.4vw, 66px) 라 14px 로는 너무 묻혔습니다.
   아주 좁은 화면에서는 제목이 26px 까지 줄어들어 아이브로가 더 커지므로
   그때만 낮춥니다(아래 560px 미디어쿼리). */
.problem__eyebrow {
  font-size: 27px;
  color: var(--n3); font-weight: 500; letter-spacing: .02em;
}

.problem__lines { position: relative; width: 100%; max-width: 1000px; }
.problem__line {
  font-size: clamp(26px, 5.4vw, 66px);
  font-weight: 800; line-height: 1.25; letter-spacing: -.045em;
}
.problem__line em { color: var(--n3); }
.problem__line--turn { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.cost { display: inline-block; color: var(--warn); font-variant-numeric: tabular-nums; }
.cost i { font-style: normal; }

.problem__bar { width: min(420px, 70vw); height: 2px; background: rgba(255,255,255,.1); }
.problem__bar i { display: block; height: 100%; width: 0%; background: var(--grad-3); }


/* ══ 4-3. 해결 / 채팅 ═════════════════════════════════════════════════════ */
.solution { position: relative; padding: var(--sec) 0; }
.solution__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center;
}
.solution__text .h2 span { display: block; }

/* 채팅 상자 */
.chat {
  border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
  backdrop-filter: blur(10px);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.02) inset;
  overflow: hidden;
}
.chat__bar {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.chat__dots { display: flex; gap: 6px; }
.chat__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.16); }
.chat__name { font-size: 13.5px; font-weight: 500; }
.chat__live {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--n2);
}
.chat__live::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--n2);
  box-shadow: 0 0 10px var(--n2);
}

.chat__body {
  height: clamp(340px, 46vh, 430px);
  padding: 22px 18px;
  /* 아래쪽부터 채워야 새 대화가 항상 보입니다 */
  display: flex; flex-direction: column; justify-content: flex-end; gap: 14px;
  overflow: hidden;
  font-size: 14.5px;
}

/* 사장님 말풍선 */
.chat__ask {
  align-self: flex-end; max-width: 82%;
  padding: 12px 16px; border-radius: 16px 16px 4px 16px;
  background: var(--grad); color: #05060a; font-weight: 500;
  line-height: 1.55;
}
/* AI 답변 */
.chat__reply {
  align-self: flex-start; max-width: 92%;
  padding: 14px 16px; border-radius: 16px 16px 16px 4px;
  background: rgba(255,255,255,.055); border: 1px solid var(--line);
  line-height: 1.7; color: var(--ink-2);
}
.chat__tag {
  display: inline-block; margin-bottom: 9px; padding: 3px 9px; border-radius: 6px;
  font-size: 11px; font-weight: 500; letter-spacing: .02em;
  background: rgba(34,211,238,.14); color: var(--n2);
}
.chat__reply h4 { margin: 0 0 8px; font-size: 14.5px; font-weight: 500; color: var(--ink); }
.chat__reply .ln { display: block; }

/* 생각 중 점 세 개 */
.chat__think {
  align-self: flex-start;
  display: flex; gap: 5px; padding: 14px 16px;
  border-radius: 16px 16px 16px 4px;
  background: rgba(255,255,255,.055); border: 1px solid var(--line);
}
.chat__think i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }

.chat__input {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 14px 14px 18px; border-top: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  font-size: 14px; color: var(--ink-4);
}
.chat__input span { flex: 1; }
.chat__send {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: #05060a;
}
.chat__send svg { width: 17px; height: 17px; stroke-width: 2.2; }


/* ══ 4-4. 기능 카드 ═══════════════════════════════════════════════════════ */
.features { position: relative; padding: var(--sec) 0; background: var(--bg-soft); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.card {
  position: relative; isolation: isolate;
  padding: 34px 28px 32px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color .45s var(--ease), background-color .45s var(--ease);
}
.card::before {   /* 마우스를 따라다니는 빛 */
  content: ''; position: absolute; inset: -1px; z-index: -1;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%),
              rgba(124,92,255,.30), transparent 62%);
  opacity: 0; transition: opacity .45s;
}
.card:hover { border-color: var(--line-2); background: var(--bg-card-2); }
.card:hover::before { opacity: 1; }

.card__no {
  position: absolute; top: 22px; right: 24px;
  font-size: 12px; font-weight: 500; color: var(--ink-4); letter-spacing: .06em;
}
.card__ico {
  display: grid; place-items: center;
  width: 50px; height: 50px; margin-bottom: 22px;
  border-radius: 14px; border: 1px solid var(--line-2);
  background: rgba(255,255,255,.04);
  color: var(--n2);
}
.card__ico svg { width: 23px; height: 23px; }
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; letter-spacing: -.03em; }
.card p { font-size: 15.5px; color: var(--ink-3); line-height: 1.65; }


/* ══ 4-5. 하나 쓰면 다섯 개 ═══════════════════════════════════════════════ */
.flow { position: relative; padding: var(--sec) 0; }
.flow__stage {
  display: grid; grid-template-columns: minmax(240px, 1fr) minmax(120px, .7fr) minmax(280px, 1.1fr);
  align-items: center; gap: 0;
}
.flow__label { font-size: 12px; color: var(--n2); font-weight: 500; letter-spacing: .05em; }
.flow__in {
  padding: 30px 28px; border: 1px solid var(--line-2); border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
}
.flow__prompt { margin-top: 12px; font-size: clamp(18px, 2.3vw, 26px); font-weight: 700; line-height: 1.45; }

.flow__wires { width: 100%; height: 420px; }
.flow__wires path { stroke: rgba(124,92,255,.6); stroke-width: 1.4; }

.flow__out { display: grid; gap: 12px; }
.flow__out li {
  display: flex; flex-direction: column; gap: 3px;
  padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--bg-card);
  transition: border-color .4s, transform .4s var(--ease);
}
.flow__out li:hover { border-color: var(--line-2); transform: translateX(6px); }
.flow__out b { font-size: 16.5px; font-weight: 500; }
.flow__out span { font-size: 14px; color: var(--ink-3); }


/* ══ 4-6. AI 팀 (옆으로 흐름) ═════════════════════════════════════════════ */
.teams { position: relative; background: var(--bg-soft); }
/* PC 에서는 화면 높이에 딱 맞아야 고정(pin)이 어긋나지 않습니다 */
.teams__pin {
  height: 100svh;
  display: flex; flex-direction: column; justify-content: center; gap: clamp(30px, 5vw, 60px);
  overflow: hidden;
}
.teams__head { max-width: 900px; }
.teams__hint { margin-top: 16px; font-size: 13px; color: var(--ink-4); }

.teams__track {
  display: flex; gap: 18px;
  padding-inline: var(--pad);
  width: max-content;
  will-change: transform;
}

.team {
  flex: 0 0 auto; width: clamp(260px, 30vw, 330px);
  min-height: 340px;
  padding: 32px 28px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--bg-card);
  display: flex; flex-direction: column;
  transition: border-color .4s, background-color .4s, transform .5s var(--ease);
}
.team:hover { border-color: var(--line-2); background: var(--bg-card-2); transform: translateY(-6px); }
.team__no { font-size: 12px; font-weight: 500; color: var(--n2); letter-spacing: .08em; }
.team h3 { margin: 14px 0 6px; font-size: 24px; font-weight: 800; letter-spacing: -.035em; }
.team__for {
  display: inline-block; align-self: flex-start;
  padding: 4px 10px; border-radius: 7px; margin-bottom: 20px;
  font-size: 14px; color: var(--ink-3);
  background: rgba(255,255,255,.05); border: 1px solid var(--line);
}
.team ul { display: grid; gap: 9px; }
.team li {
  position: relative; padding-left: 16px;
  font-size: 14.5px; color: var(--ink-2);
}
.team li::before {
  content: ''; position: absolute; left: 0; top: 11px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--n1);
}
.team__note { margin-top: auto; padding-top: 18px; font-size: 12px; color: var(--ink-4); line-height: 1.6; }

.team--end {
  background: linear-gradient(160deg, rgba(124,92,255,.18), rgba(34,211,238,.08));
  border-color: var(--line-2);
  justify-content: center;
}
.team--end h3 { font-size: 26px; line-height: 1.35; }
.team--end .btn { margin-top: 24px; align-self: flex-start; }


/* ══ 4-7. 요금 ════════════════════════════════════════════════════════════ */
.pricing { position: relative; padding: var(--sec) 0; }
.price__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }

.price__card {
  position: relative; isolation: isolate;
  padding: 40px 36px;
  border-radius: 26px; border: 1px solid transparent;
  background:
    linear-gradient(var(--bg-soft), var(--bg-soft)) padding-box,
    var(--grad-3) border-box;
  box-shadow: 0 40px 90px -50px rgba(124,92,255,.9);
}
.price__badge {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 500; color: #05060a; background: var(--grad);
}
.price__card h3 { margin: 20px 0 8px; font-size: 21px; font-weight: 700; }
.price__num {
  display: flex; align-items: baseline; gap: 6px;
  font-size: clamp(42px, 6vw, 66px); font-weight: 800; letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
}
.price__num i { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price__num span { font-size: 17px; font-weight: 500; color: var(--ink-3); letter-spacing: -.02em; }
.price__sub { margin-top: 10px; font-size: 14.5px; color: var(--ink-3); }

.calc {
  padding: 36px 32px; border: 1px solid var(--line); border-radius: 26px;
  background: var(--bg-card);
}
.calc__title { font-size: 21px; font-weight: 700; }
.calc__sub { margin-top: 8px; font-size: 14.5px; color: var(--ink-3); }
.calc__sub b { color: var(--n2); }

.calc__list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 24px 0; }
.calc__list label {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  font-size: 14px; color: var(--ink-2); cursor: pointer;
  transition: border-color .3s, background-color .3s, color .3s;
}
.calc__list label:hover { border-color: var(--line-2); background: rgba(255,255,255,.04); }
.calc__list input { position: absolute; opacity: 0; width: 0; height: 0; }
.calc__list span { position: relative; padding-left: 26px; }
.calc__list span::before {
  content: ''; position: absolute; left: 0; top: 50%; translate: 0 -50%;
  width: 18px; height: 18px; border-radius: 6px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.03);
  transition: background .25s, border-color .25s;
}
.calc__list span::after {
  content: ''; position: absolute; left: 5px; top: 50%; translate: 0 -50%;
  width: 9px; height: 5px; border-left: 2px solid #05060a; border-bottom: 2px solid #05060a;
  rotate: -45deg; opacity: 0; transition: opacity .2s;
}
.calc__list input:checked + span::before { background: var(--grad); border-color: transparent; }
.calc__list input:checked + span::after  { opacity: 1; }
.calc__list label:has(input:checked) { border-color: rgba(124,92,255,.55); background: rgba(124,92,255,.10); color: var(--ink); }
.calc__list input:focus-visible + span::before { outline: 2px solid var(--n2); outline-offset: 3px; }

.calc__total {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding-top: 22px; border-top: 1px solid var(--line);
}
.calc__total span { font-size: 14px; color: var(--ink-3); }
.calc__total strong {
  font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.calc__note { margin-top: 10px; font-size: 13px; color: var(--ink-4); }


/* ══ 4-8. 비교 ════════════════════════════════════════════════════════════ */
.compare { position: relative; padding: var(--sec) 0; background: var(--bg-soft); }

.bars { display: grid; gap: 22px; margin-bottom: clamp(50px, 7vw, 90px); }
.bar-row { display: grid; grid-template-columns: 160px 1fr; gap: 20px; align-items: center; }
.bar-row__label { font-size: 14.5px; color: var(--ink-2); }
.bar { position: relative; height: 46px; }
.bar i {
  display: block; height: 100%; width: var(--w, 0%); border-radius: 8px;
  transform-origin: left center;
}
.bar--human i { background: rgba(255,92,122,.28); border: 1px solid rgba(255,92,122,.5); }
.bar--ai    i { background: var(--grad); box-shadow: 0 0 26px -4px rgba(34,211,238,.8); min-width: 10px; }
.bar b {
  position: absolute; top: 50%; translate: 0 -50%;
  left: calc(var(--w, 0%) + 16px);
  font-size: 15px; font-weight: 500; white-space: nowrap;
}
.bar--human b { color: var(--warn); }
.bar--ai    b { color: var(--n2); }

.table { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.table__row {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 10px;
  padding: 18px 26px; border-bottom: 1px solid var(--line);
  font-size: 15px; align-items: center;
}
.table__row:last-child { border-bottom: 0; }
.table__row--head { background: rgba(255,255,255,.04); font-size: 13px; color: var(--ink-3); font-weight: 500; }
.table__row span:first-child { color: var(--ink-2); }
.table__row span:nth-child(2) { color: var(--ink-3); }
.table__row b { color: var(--n2); font-weight: 500; }
.table__row--head span:last-child { color: var(--n2); }

.compare__note {
  margin-top: 34px; padding: 22px 26px;
  border-left: 2px solid var(--n1); border-radius: 0 12px 12px 0;
  background: rgba(124,92,255,.07);
  font-size: 15px; color: var(--ink-2); line-height: 1.75;
}


/* ══ 4-9. 자주 묻는 질문 ══════════════════════════════════════════════════ */
.faq { position: relative; padding: var(--sec) 0; }
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.faq__head { position: sticky; top: 120px; }

.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  width: 100%; padding: 26px 0; text-align: left;
  font-size: clamp(18px, 1.9vw, 19px); font-weight: 700; letter-spacing: -.03em;
  transition: color .3s;
}
.faq__q:hover { color: var(--n2); }
.faq__sign { position: relative; flex: 0 0 auto; width: 18px; height: 18px; }
.faq__sign::before, .faq__sign::after {
  content: ''; position: absolute; top: 50%; left: 50%; translate: -50% -50%;
  background: currentColor; border-radius: 2px;
  transition: rotate .4s var(--ease), opacity .3s;
}
.faq__sign::before { width: 16px; height: 2px; }
.faq__sign::after  { width: 2px; height: 16px; }
.faq__item.is-open .faq__sign::after { rotate: 90deg; opacity: 0; }
.faq__item.is-open .faq__q { color: var(--n2); }

.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a > div > * , .faq__a > div {
  font-size: 15px; color: var(--ink-2); line-height: 1.8;
}
.faq__item.is-open .faq__a > div { padding-bottom: 26px; }


/* ══ 4-10. 마지막 안내 ════════════════════════════════════════════════════ */
.cta { position: relative; overflow: hidden; padding: clamp(110px, 15vw, 200px) 0; text-align: center; }
.blobs--cta .blob--1 { top: -30%; left: 15%; opacity: .40; }
.blobs--cta .blob--2 { bottom: -40%; right: 10%; opacity: .30; }

.cta__inner { position: relative; z-index: 2; }
.cta__title {
  font-size: clamp(32px, 6.5vw, 84px); font-weight: 800; line-height: 1.1; letter-spacing: -.05em;
}
.cta__title span { display: block; }
.cta__title em { background: var(--grad-3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta__desc { margin-top: 24px; font-size: clamp(15px, 1.8vw, 18px); color: var(--ink-2); }
.cta__btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 42px; }
.cta__kakao { margin-top: 26px; font-size: 14px; color: var(--ink-3); }
.cta__kakao b { color: var(--n2); }


/* ══ 푸터 ═════════════════════════════════════════════════════════════════ */
.foot { border-top: 1px solid var(--line); padding: 56px 0 44px; background: var(--bg-soft); }
/* 마크(SVG) + 워드마크(그라데이션 글자). background-clip:text 는 글자 쪽에만 겁니다. */
.foot__logo { display: flex; align-items: center; gap: 11px; }
.foot__mark {
  width: 26px; height: 26px; flex: none; display: block;
  filter: drop-shadow(0 0 14px rgba(124, 92, 255, .6));
}
.foot__word {
  font-size: 18px; font-weight: 800; letter-spacing: .1em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.foot__info {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  margin: 22px 0 18px; font-size: 13px; color: var(--ink-3);
}
.foot__copy { font-size: 12.5px; color: var(--ink-4); }


/* ══ 5. 화면 크기별 조정 ══════════════════════════════════════════════════ */

/* 태블릿 */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .solution__grid { grid-template-columns: 1fr; }
  .price__grid { grid-template-columns: 1fr; }
  .faq__grid { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .nav__menu { display: none; }
}

/* 모바일 */
@media (max-width: 768px) {
  :root { --blur: 80px; }

  .hero { padding-top: 110px; }
  .hero__scroll { display: none; }

  .cards { grid-template-columns: 1fr; }

  /* 연결선은 숨기고 세로로 쌓습니다 */
  .flow__stage { grid-template-columns: 1fr; gap: 22px; }
  .flow__wires { display: none; }

  /* AI 팀: 화면 고정 대신 손가락으로 밀어서 넘기는 방식 */
  .teams__pin { height: auto; padding: var(--sec) 0; }
  .teams__track {
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 6px;
    transform: none !important;   /* JS 가로 이동을 끕니다 */
  }
  .teams__track::-webkit-scrollbar { display: none; }
  .team { scroll-snap-align: center; width: min(78vw, 320px); min-height: 320px; }

  .calc__list { grid-template-columns: 1fr; }
  .calc, .price__card { padding: 28px 22px; }

  .bar-row { grid-template-columns: 1fr; gap: 8px; }
  .bar { height: 38px; }
  /* 좁은 화면에서는 '300만 원' 글씨가 화면 밖으로 나가므로 막대 안쪽에 넣습니다 */
  .bar--human b { left: auto; right: 14px; }

  .table__row { grid-template-columns: 1fr; gap: 4px; padding: 16px 18px; }
  .table__row--head { display: none; }
  .table__row span:nth-child(2)::before { content: '직원 한 명 · '; color: var(--ink-4); }
  .table__row b::before { content: 'AI · '; color: var(--ink-4); font-weight: 400; }

  .btn { --bh: 52px; width: 100%; }
  .btn--sm { --bh: 40px; width: auto; }
  .hero__btns, .cta__btns { flex-direction: column; }
}

/* 아주 작은 화면 */
@media (max-width: 380px) {
  .team { width: 84vw; }
}


/* ══ 작은 글자 굵기 제한 예외 ═══════════════════════════════════════════════
   규칙: 17px 이하 텍스트는 font-weight 500 을 넘지 않는다.
   .hero__desc 는 clamp(16px, 2vw, 21px) 라 좁은 화면에서 16px 까지 줄어든다.
   그래서 기본은 500 으로 두고, 18px 이상이 보장되는 폭에서만 강조를 되살린다. */
@media (min-width: 900px) {
  .hero__desc b { font-weight: 700; }
}


/* ══ 신청 폼 (모달) ════════════════════════════════════════════════════════
   <dialog> 를 씁니다. 브라우저가 포커스 가둠·ESC 닫기를 알아서 처리합니다.
   글자 크기가 17px 이하인 요소는 굵기를 500 이하로 유지합니다. */
.apply {
  width: min(680px, calc(100vw - 32px));
  max-height: min(88svh, 900px);
  padding: 0; border: 0; background: none; overflow: visible;
  color: var(--ink);
}
.apply::backdrop {
  background: rgba(3, 4, 8, .72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.apply__card {
  position: relative;
  max-height: min(88svh, 900px);
  overflow-y: auto;
  /* contain : 끝까지 내려도 뒤 배경으로 스크롤이 넘어가지 않게
     pan-y   : 세로 스크롤을 브라우저가 직접 처리하게 해 스크립트가 막지 못하게
     (모바일에서 부드러운 스크롤 라이브러리가 터치를 가로채는 것을 막습니다.
      데스크톱 휠은 form 의 data-lenis-prevent 속성이 담당합니다) */
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: clamp(26px, 4vw, 40px);
  border-radius: 24px;
  border: 1px solid var(--line-2);
  background:
    radial-gradient(120% 80% at 8% 0%, rgba(124, 92, 255, .20), transparent 58%),
    radial-gradient(90% 70% at 100% 100%, rgba(34, 211, 238, .16), transparent 60%),
    #0a0c14;
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .95);
}
.apply__card::before {
  content: ''; position: absolute; inset: 0; border-radius: 24px; padding: 1px;
  background: var(--grad-3);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .5; pointer-events: none;
}

.apply__x {
  position: absolute; top: 16px; right: 16px;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--ink-3);
  transition: color .3s, border-color .3s, background-color .3s;
}
.apply__x:hover { color: var(--ink); border-color: var(--line-2); background: rgba(255,255,255,.05); }
.apply__x svg { width: 16px; height: 16px; }

.apply__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; letter-spacing: .04em; color: var(--n2);
}
.apply__eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--n2); box-shadow: 0 0 12px var(--n2);
}
.apply__title {
  margin: 14px 0 8px;
  font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; letter-spacing: -.04em;
}
.apply__sub { font-size: 15px; font-weight: 500; color: var(--ink-2); line-height: 1.6; }
.apply__sub b { color: var(--ink); font-weight: 500; }

.apply__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin-top: 26px;
}

.field { display: block; }
.field + .field { margin-top: 14px; }
/* 그리드 바로 뒤에 오는 칸은 간격을 조금 더 줍니다 */
.field--gap { margin-top: 20px; }
/* 그리드 안에서는 gap 이 간격을 맡습니다.
   위 인접 규칙을 그대로 두면 2·3·4번째 칸만 아래로 밀려 첫 줄이 어긋납니다. */
.apply__grid > .field + .field { margin-top: 0; }
.field__label {
  display: block; margin-bottom: 8px;
  font-size: 13px; font-weight: 500; letter-spacing: -.01em; color: var(--ink-2);
}
.field__label i  { font-style: normal; color: var(--n3); }
.field__label em { font-style: normal; color: var(--ink-4); }

.field__input {
  width: 100%; height: 50px; padding: 0 15px;
  border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04); color: var(--ink);
  font: inherit; font-size: 15px; font-weight: 500;
  transition: border-color .25s, background-color .25s, box-shadow .25s;
}
.field__input--area { height: auto; padding: 14px 15px; line-height: 1.6; resize: vertical; min-height: 92px; }
.field__input::placeholder { color: var(--ink-4); }
.field__input:hover { border-color: var(--line-2); }
.field__input:focus {
  outline: none; border-color: var(--n2);
  background: rgba(255, 255, 255, .06);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .14);
}
.field__input[aria-invalid="true"] {
  border-color: var(--warn);
  box-shadow: 0 0 0 3px rgba(255, 92, 122, .14);
}

.apply__agree {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 20px; padding: 14px 16px;
  border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .025);
  font-size: 13px; font-weight: 500; line-height: 1.6; color: var(--ink-3);
  cursor: pointer;
}
.apply__agree b { color: var(--ink-2); font-weight: 500; }
.apply__agree input { margin-top: 2px; width: 17px; height: 17px; flex: none; accent-color: #7c5cff; }

/* 자동 입력 방지용 — 화면에서 완전히 숨깁니다 */
.apply__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.apply__msg {
  margin-top: 16px; font-size: 13.5px; font-weight: 500; line-height: 1.6;
  min-height: 0; color: var(--ink-3);
}
.apply__msg.is-err { color: var(--warn); }
.apply__msg.is-ok  { color: var(--n2); }

.apply__btns { margin-top: 20px; }
.apply__tel {
  margin-top: 14px; text-align: center;
  font-size: 13px; font-weight: 500; color: var(--ink-4);
}
.apply__tel a { color: var(--n2); }
.apply__tel b { font-weight: 500; }

/* 신청 완료 화면 */
.apply__done { text-align: center; padding: 12px 0 4px; }
.apply__done-ico {
  width: 66px; height: 66px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--grad); display: grid; place-items: center;
  box-shadow: 0 0 46px -8px rgba(124, 92, 255, .9);
}
.apply__done-ico svg { width: 30px; height: 30px; stroke: #05060a; stroke-width: 2.6; }
.apply__done h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 800; letter-spacing: -.04em; }
.apply__done p  { margin-top: 12px; font-size: 15px; font-weight: 500; color: var(--ink-2); line-height: 1.65; }
.apply__done .btn { margin-top: 28px; }

@media (max-width: 620px) {
  .apply__grid { grid-template-columns: 1fr; }
  .apply__card { border-radius: 20px; }
  .apply__card::before { border-radius: 20px; }
}


/* ══ 나라장터 입찰 알림 ════════════════════════════════════════════════════
   왼쪽은 카카오톡 알림처럼 보이는 예시 화면, 오른쪽은 기능 설명입니다.
   17px 이하 글자는 굵기 500 을 넘기지 않습니다. */
.bid { padding: var(--sec) 0; position: relative; }
.bid__site { color: var(--n2); border-bottom: 1px solid rgba(34, 211, 238, .4); }
.bid__site:hover { border-bottom-color: var(--n2); }

.bid__stage {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 60px); align-items: start;
}

/* ── 알림 화면 ─────────────────────────────────────────────────────────── */
.bid__feed {
  border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.9);
  padding: 16px;
}
.bid__feed-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 4px 6px 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px;
}
.bid__feed-name {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 500; color: var(--ink-2);
}
.bid__feed-name .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--n2); box-shadow: 0 0 12px var(--n2);
}
.bid__feed-time { font-size: 12px; font-weight: 500; color: var(--ink-4); }

.bid__item {
  padding: 15px 16px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(255,255,255,.035);
  transition: border-color .3s, background-color .3s;
}
.bid__item + .bid__item { margin-top: 10px; }
.bid__item:hover { border-color: var(--line-2); background: rgba(255,255,255,.055); }
.bid__item--soon { border-color: rgba(255, 92, 122, .3); }

.bid__top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 9px; }
.bid__org {
  padding: 3px 10px; border-radius: 999px;
  background: var(--grad); color: #05060a;
  font-size: 11.5px; font-weight: 500; letter-spacing: -.01em;
}
.bid__tag {
  padding: 3px 9px; border-radius: 999px; border: 1px solid transparent;
  font-size: 11.5px; font-weight: 500;
}
.bid__tag--new  { color: var(--n2);  background: rgba(34,211,238,.13);  border-color: rgba(34,211,238,.32); }
.bid__tag--fit  { color: var(--n3);  background: rgba(244,114,182,.13); border-color: rgba(244,114,182,.32); }
.bid__tag--soon { color: var(--warn); background: rgba(255,92,122,.13);  border-color: rgba(255,92,122,.34); }
.bid__due { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.bid__name { font-size: 15.5px; font-weight: 500; line-height: 1.5; color: var(--ink); letter-spacing: -.02em; }

.bid__meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 10px; }
.bid__meta > div { display: flex; align-items: baseline; gap: 7px; }
.bid__meta dt { font-size: 11.5px; font-weight: 500; color: var(--ink-4); }
.bid__meta dd { margin: 0; font-size: 13px; font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.bid__go {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 12px;
  font-size: 12.5px; font-weight: 500; color: var(--n2);
}
.bid__go svg { width: 13px; height: 13px; stroke-width: 2.2; }

.bid__note { margin-top: 14px; text-align: right; font-size: 11.5px; font-weight: 500; color: var(--ink-4); }

/* ── 기능 설명 ─────────────────────────────────────────────────────────── */
.bid__points { display: grid; gap: 14px; }
.bid__points li {
  display: grid; grid-template-columns: 42px 1fr; grid-template-rows: auto auto;
  column-gap: 15px; row-gap: 5px;
  padding: 18px 20px; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--bg-card);
  transition: border-color .3s, background-color .3s;
}
.bid__points li:hover { border-color: var(--line-2); background: var(--bg-card-2); }
.bid__ico {
  grid-row: 1 / 3; width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--n2);
}
.bid__ico svg { width: 19px; height: 19px; }
.bid__points b { font-size: 16px; font-weight: 500; color: var(--ink); letter-spacing: -.025em; }
.bid__points li > span:last-child { font-size: 13.5px; font-weight: 500; color: var(--ink-3); line-height: 1.6; }

@media (max-width: 900px) {
  .bid__stage { grid-template-columns: 1fr; }
}


/* 아주 좁은 화면에서는 제목(.problem__line)이 26px 까지 줄어듭니다.
   아이브로 27px 을 그대로 두면 제목보다 커져 위계가 뒤집히므로 여기서만 낮춥니다. */
@media (max-width: 560px) {
  .problem__eyebrow { font-size: 20px; }
}


/* ══ 상단 '상담 신청' 버튼 ═════════════════════════════════════════════════
   기본 .btn 은 배경이 없어 글자만 떠 있는 모양이라 눈에 띄지 않았습니다.
   그라데이션 테두리 + 유리 배경 + 상담 가능 표시등으로 꾸몄습니다. */
.btn--nav {
  position: relative; overflow: hidden;
  color: var(--ink);
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 24px -12px rgba(124, 92, 255, .9);
}

/* 1px 그라데이션 테두리 — 안쪽을 도려내 테두리만 남깁니다 */
.btn--nav::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  padding: 1.4px; background: var(--grad-3);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}

/* 가끔 지나가는 빛줄기 (움직임은 animation.css) */
.btn--nav::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 42%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent);
  transform: translateX(-180%) skewX(-18deg);
  pointer-events: none;
}

.btn--nav .btn__dot {
  position: relative; z-index: 1;
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--n2); box-shadow: 0 0 10px var(--n2);
}
.btn--nav .btn__txt { position: relative; z-index: 1; }
.btn--nav svg {
  position: relative; z-index: 1;
  width: 15px; height: 15px; color: var(--n2);
  transition: transform .35s var(--ease);
}

.btn--nav:hover {
  background: rgba(255, 255, 255, .09);
  box-shadow: 0 10px 32px -10px rgba(34, 211, 238, .8);
}
.btn--nav:hover svg { transform: translateX(3px); }
