/* 메인 히어로 (home-preview 이식 · #hero-x 스코프 · v3) */
#hero-x{--bg:#070b14;--panel:#101827;--line:rgba(148,163,184,.16);--text:#f8fafc;--muted:#9ba9bd;--cyan:#38d9ff;--blue:#3b82f6;--violet:#8b5cf6;--gold:#facc15;--green:#34d399}
#hero-x *{box-sizing:border-box}
#hero-x{scroll-behavior:smooth}
#hero-x{margin:0;background:var(--bg);color:var(--text);font-family:Inter,"Noto Sans KR",sans-serif;word-break:keep-all}
#hero-x .wrap{width:min(1180px,calc(100% - 40px));margin:auto}
#hero-x .btn{display:inline-flex;align-items:center;justify-content:center;padding:15px 23px;border:1px solid var(--line);border-radius:999px;text-decoration:none;font-weight:900}
#hero-x{position:relative;min-height:820px;padding:105px 0 80px;overflow:hidden;background:#070b14}
#hero-x:before{content:"";position:absolute;inset:0;background:linear-gradient(115deg,rgba(8,15,29,.98),rgba(6,12,24,.9) 52%,rgba(7,30,45,.84));opacity:1}
#hero-x:after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 72% 25%,rgba(56,189,248,.18),transparent 30%),linear-gradient(rgba(56,189,248,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(56,189,248,.025) 1px,transparent 1px);background-size:auto,52px 52px,52px 52px;pointer-events:none}
#hero-x .wrap{position:relative;z-index:2}
#hero-x-grid{display:grid;grid-template-columns:1.02fr .98fr;gap:62px;align-items:center}
#hero-x .eyebrow{color:#67e8f9;font-size:11px;font-weight:900;letter-spacing:.17em}
#hero-x h1{font-size:clamp(54px,6.2vw,80px);line-height:1.06;letter-spacing:-.065em;margin:22px 0}
#hero-x .grad{background:linear-gradient(90deg,#67e8f9,#60a5fa,#c084fc);-webkit-background-clip:text;color:transparent}
#hero-x p{max-width:620px;color:#bdc8d8;font-size:18px;line-height:1.85}
#hero-x p b{color:#fff}
#hero-x .actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:29px}
#hero-x .micro{display:flex;gap:24px;flex-wrap:wrap;margin-top:28px;color:#7f8da2;font-size:11px;font-weight:700}
#hero-x .micro span:before{content:"✓";color:var(--green);margin-right:7px}
#hero-x .live{display:flex;align-items:center;gap:7px;color:#67e8f9;font-weight:900}
#hero-x .live:before{content:"";width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:0 0 0 5px rgba(52,211,153,.12);animation:pulse 2s infinite}
@keyframes pulse{50%{box-shadow:0 0 0 9px rgba(52,211,153,.03)}}
@keyframes float{50%{transform:translateY(-6px)}}
#hero-x .trust{display:grid;grid-template-columns:repeat(4,1fr);margin-top:56px;border:1px solid var(--line);border-radius:18px;overflow:hidden}
#hero-x .trust div{padding:18px;background:rgba(255,255,255,.025);border-right:1px solid var(--line)}
#hero-x .trust div:last-child{border:0}
#hero-x .trust b{display:block;font-size:14px}
#hero-x .trust span{display:block;margin-top:4px;color:#77869b;font-size:11px}
@media(max-width:800px){#hero-x, #hero-x{overflow-x:hidden}
#hero-x .wrap{width:calc(100% - 32px)}
#hero-x{min-height:auto;padding:72px 0}
#hero-x-grid{grid-template-columns:minmax(0,1fr)}
#hero-x-grid>*{min-width:0}
#hero-x h1{font-size:43px}
#hero-x p{font-size:15px}
#hero-x .trust{grid-template-columns:1fr 1fr}
#hero-x .trust div:nth-child(2){border-right:0}
#hero-x .trust div:nth-child(-n+2){border-bottom:1px solid var(--line)}
#hero-x .actions{display:grid}
#hero-x .actions .btn{width:100%}
#hero-x{padding-bottom:72px}}
#hero-x .secretary-stage{min-width:0; padding:12px; border:1px solid rgba(56,217,255,.28); border-radius:29px; background:linear-gradient(145deg,rgba(15,23,42,.86),rgba(8,15,27,.94)); box-shadow:0 40px 110px rgba(0,0,0,.52);}
#hero-x .secretary-label{display:flex; align-items:center; justify-content:space-between; gap:15px; min-height:47px; padding:0 9px;}
#hero-x .secretary-label b{color:#d8e4f2; font-size:12px;}
#hero-x .secretary-stage .live{font-size:9px;}
#hero-x .secretary-stage .kb-dock{min-height:600px; max-width:none;}
#hero-x .secretary-stage .kb-dock-skeleton{height:600px; border-color:rgba(103,232,249,.25);}
#hero-x .secretary-stage .chat-widget.kb-docked{height:600px; max-width:none; border-radius:20px; overflow:hidden;}
#hero-x .secretary-stage .chat-head{padding:16px 18px;}
#hero-x .secretary-stage .chat-body{padding:18px;}
#hero-x .secretary-stage .chat-body{padding-right:38%; background:linear-gradient(90deg,rgba(238,244,252,.18) 0%,rgba(238,244,252,.08) 60%,transparent 100%);}
#hero-x .secretary-stage .chat-body .msg{width:100%; max-width:100%;}
#hero-x .secretary-stage .chat-body .msg-user{margin-left:0;}
#hero-x .secretary-stage .chat-quick{padding:10px 14px;}
#hero-x .secretary-stage .chat-handoff-btn{margin:0 14px 9px; width:calc(100% - 28px);}
#hero-x .secretary-stage .chat-form{padding:11px 14px 14px;}
@media(max-width:800px){#hero-x .secretary-stage{margin-top:18px;padding:8px}
#hero-x .secretary-label{align-items:flex-start;flex-direction:column;padding:8px 7px 13px}
#hero-x .secretary-stage .kb-dock{min-height:540px}
#hero-x .secretary-stage .chat-widget.kb-docked, #hero-x .secretary-stage .kb-dock-skeleton{height:540px}
#hero-x .secretary-stage .chat-body{padding-right:34%;padding-left:12px}
#hero-x .secretary-stage .chat-body .msg{font-size:12px;line-height:1.55}}
#hero-x .secretary-stage{position:relative}
#hero-x .secretary-intro{position:absolute;z-index:12;inset:59px 12px 12px;border-radius:20px;overflow:hidden;background:linear-gradient(180deg,rgba(7,14,26,.06),rgba(7,14,26,.82));transition:opacity .45s,transform .45s}
#hero-x .secretary-intro.done{opacity:0;transform:translateY(-10px);pointer-events:none}
#hero-x .si-photo{position:absolute;inset:0;background:url('/images/secretary/hello.jpg') 68% 14%/cover no-repeat}
#hero-x .si-photo:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(5,12,24,.02) 28%,rgba(5,12,24,.92) 82%)}
#hero-x .si-content{position:absolute;z-index:2;left:24px;right:24px;bottom:24px}
#hero-x .si-who{display:flex;align-items:center;gap:10px;margin-bottom:12px}
#hero-x .si-avatar{width:38px;height:38px;border-radius:50%;background:url('/images/secretary/hello.jpg') 62% 15%/220%;border:2px solid #fff}
#hero-x .si-who b{display:block}
#hero-x .si-who small{display:block;color:#8fa2b9;font-size:10px;margin-top:2px}
#hero-x .si-bubble{min-height:104px;padding:17px 18px;border:1px solid rgba(255,255,255,.13);border-radius:5px 18px 18px;background:rgba(255,255,255,.94);color:#172033;font-size:16px;line-height:1.7;font-weight:700;box-shadow:0 18px 50px rgba(0,0,0,.32)}
#hero-x .si-bubble strong{color:#2563eb}
#hero-x .si-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:11px}
#hero-x .si-actions button{padding:12px;border-radius:12px;border:1px solid rgba(255,255,255,.16);font-family:inherit;font-weight:900;cursor:pointer}
#hero-x .si-next{background:linear-gradient(90deg,#67e8f9,#38bdf8);color:#07202a}
#hero-x .si-skip{background:rgba(9,17,31,.82);color:#e2e8f0}
#hero-x .si-progress{display:flex;gap:6px;margin-top:12px}
#hero-x .si-progress i{height:4px;flex:1;border-radius:5px;background:rgba(255,255,255,.18);transition:background .25s}
#hero-x .si-progress i.on{background:#67e8f9}
#hero-x .si-top-skip{position:absolute;z-index:3;right:16px;top:15px;padding:8px 11px;border:1px solid rgba(255,255,255,.2);border-radius:99px;background:rgba(7,14,26,.72);color:#fff;font-family:inherit;font-size:10px;font-weight:900;cursor:pointer;backdrop-filter:blur(8px)}
@media(max-width:800px){#hero-x .secretary-intro{inset:76px 8px 8px}
#hero-x .si-content{left:14px;right:14px;bottom:15px}
#hero-x .si-bubble{font-size:14px;min-height:98px;padding:14px}
#hero-x .si-actions{grid-template-columns:1fr}
#hero-x .si-photo{background-position:66% 12%}}
#hero-x .kb-dock{margin:0}

#hero-x .hx-pull{position:relative;display:block;width:min(100%,590px);margin-top:25px;padding:19px 22px;text-align:left;font-family:inherit;color:#fff;background:linear-gradient(115deg,rgba(56,189,248,.1),rgba(139,92,246,.08));border:1px solid rgba(103,232,249,.28);border-radius:17px;cursor:pointer;overflow:hidden;transition:transform .2s,border-color .2s,background .2s}
#hero-x .hx-pull:after{content:"→";position:absolute;right:19px;top:19px;color:#67e8f9;font-size:20px;font-weight:900}
#hero-x .hx-pull:hover{transform:translateY(-2px);border-color:rgba(103,232,249,.58);background:linear-gradient(115deg,rgba(56,189,248,.16),rgba(139,92,246,.12))}
#hero-x .hx-pull:focus-visible{outline:3px solid rgba(56,189,248,.3);outline-offset:3px}
#hero-x .hx-pull span{display:block;margin-bottom:7px;color:#67e8f9;font-size:12px;font-weight:900;letter-spacing:.02em}
#hero-x .hx-pull b{display:block;padding-right:24px;color:#f8fafc;font-size:17px;line-height:1.55;letter-spacing:-.02em}
#hero-x .hx-pull em{display:block;margin-top:10px;color:#93a8c0;font-size:11px;font-style:normal;font-weight:800}
@media(max-width:800px){#hero-x .hx-pull{padding:17px 18px}#hero-x .hx-pull b{font-size:15px}#hero-x .hx-pull b br{display:none}}

/* 가독성·프레이밍 보정 */
@media (min-width:1101px){#hero-x .hero-grid{grid-template-columns:minmax(0,1fr) 560px}}
#hero-x .secretary-stage .chat-form input{background:#fff;border:1.5px solid rgba(15,23,42,.14);color:#16202c}
#hero-x .secretary-stage .chat-form input::placeholder{color:#8b98a8}
/* 도킹 대폭 확장 — 헤드라인 옆까지 */
@media (min-width:1101px){
  #hero-x .hero-grid{grid-template-columns:minmax(0,1fr) min(760px,52vw);gap:34px;align-items:start}
  #hero-x .secretary-stage .kb-dock,#hero-x .secretary-stage .kb-dock-skeleton,#hero-x .secretary-stage .chat-widget.kb-docked{min-height:640px;height:640px}
}
@media (min-width:1101px){
  #hero-x .wrap{width:min(94%,1460px);max-width:1460px}
}
/* 모바일: 김비서 먼저 */
@media (max-width:1100px){
  /* 김비서(secretary-stage)를 헤드라인 위로 — 첫 화면에서 바로 소개·채팅되게 */
  #hero-x .hero-grid{display:flex;flex-direction:column}
  #hero-x .secretary-stage{order:-1;margin-top:6px;margin-bottom:26px}
}
