/* 충남 앵커 · 사업 1 「AI 스마트글라스 코딩」 랜딩 (외국인 유학생, 4개 국어)
   사업 2(homepage/assets/lp.css)의 뼈대를 그대로 쓰고, 테마만 짙은 남색 + 시안으로 바꿨다. */

:root {
  --radius: 18px;
  --maxw: 1080px;
  --display: 'Black Han Sans', 'Pretendard', sans-serif;
  --display-w: 400;
  --body: 'Pretendard', 'Noto Sans KR', -apple-system, sans-serif;

  --hero-bg: #0A1A2F; --hero-fg: #EAF6FF;
  --bg: #0A1A2F; --bg2: #0E2340; --fg: #EAF2FA; --muted: #A4B8CC;
  --card: #122B4A; --line: #24426A;
  --accent: #4DE1FF; --on-accent: #06202E; --accent-text: #4DE1FF;
  --input-bg: #0A1A2F;
}
/* 언어별 글꼴: 한국어 = Black Han Sans, 영어·베트남어 = Be Vietnam Pro, 중국어 = Noto Sans SC */
html[lang="en"], html[lang="vi"] {
  --display: 'Be Vietnam Pro', 'Pretendard', sans-serif; --display-w: 800;
  --body: 'Be Vietnam Pro', 'Pretendard', -apple-system, sans-serif;
}
html[lang="zh-Hans"] {
  --display: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif; --display-w: 900;
  --body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Pretendard', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 17px; line-height: 1.6; word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
html[lang="zh-Hans"] body { word-break: normal; line-break: strict; }
img { max-width: 100%; display: block; }
a { color: var(--accent-text); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- 공통 타이포 ---------- */
.eyebrow { display: inline-block; font-size: 14px; font-weight: 800; letter-spacing: .5px; color: var(--accent-text); margin-bottom: 12px; }
.h2 { font-family: var(--display); font-weight: var(--display-w); font-size: clamp(32px, 5.4vw, 52px); line-height: 1.15; margin: 0 0 18px; letter-spacing: -.5px; }
html[lang="en"] .h2, html[lang="vi"] .h2 { font-size: clamp(27px, 4.4vw, 44px); line-height: 1.22; letter-spacing: -.8px; }
html[lang="zh-Hans"] .h2 { font-size: clamp(29px, 4.8vw, 46px); line-height: 1.25; letter-spacing: 0; }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); margin: 0 0 36px; }
.hl { background: var(--accent); color: var(--on-accent); padding: 0 .25em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.h2, .hero h1, .hero .kicker, .quote, .faq summary, .card h3, .day h3, .perk b { text-wrap: balance; }
.lead, .card p, .faq details p, .alert { text-wrap: pretty; }
section { padding: 96px 0; }
.sec { background: var(--bg); }
.sec-alt { background: var(--bg2); }
.center { text-align: center; }

/* ---------- 상단 바 + 언어 버튼 ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(10,26,47,.94); backdrop-filter: blur(8px); color: var(--hero-fg); border-bottom: 1px solid rgba(77,225,255,.22); }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 56px; }
.topbar b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.topbar .right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.topbar .btn { padding: 9px 16px; font-size: 14px; min-height: 38px; }
.langs { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: rgba(18,43,74,.7); }
.langs button { appearance: none; border: 0; background: transparent; color: var(--muted); font: inherit; font-family: 'Pretendard', 'Be Vietnam Pro', 'Noto Sans SC', sans-serif; font-size: 13px; font-weight: 700; padding: 6px 11px; min-height: 32px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.langs button:hover { color: var(--fg); }
.langs button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }

/* ---------- 버튼 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 14px 26px; border-radius: 12px; border: 0; font: inherit; font-weight: 900; font-size: 18px; text-decoration: none; cursor: pointer; background: var(--accent); color: var(--on-accent); transition: transform .15s ease; text-align: center; }
html[lang="en"] .btn, html[lang="vi"] .btn { font-weight: 800; }
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, input:focus-visible, select:focus-visible, .langs button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn-lg { font-size: 20px; padding: 18px 34px; }

/* ---------- 히어로 ---------- */
.hero { background: radial-gradient(1200px 520px at 82% 30%, rgba(77,225,255,.13), transparent 62%), var(--hero-bg); color: var(--hero-fg); padding: 56px 0 80px; overflow: hidden; }
.hero .cols { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip { font-size: 14px; font-weight: 700; padding: 6px 14px; border-radius: 999px; border: 1.5px solid currentColor; opacity: .9; }
.chip.solid { background: var(--accent); color: var(--on-accent); border-color: var(--accent); opacity: 1; }
.hero .kicker { font-size: clamp(18px, 2.4vw, 24px); font-weight: 800; margin: 0; color: var(--accent-text); line-height: 1.4; }
.hero h1 { font-family: var(--display); font-weight: var(--display-w); font-size: clamp(44px, 4.9vw, 66px); line-height: 1.1; margin: 12px 0 18px; letter-spacing: -1.5px; }
html[lang="en"] .hero h1 { font-size: clamp(33px, 3.9vw, 44px); line-height: 1.1; letter-spacing: -1.8px; }
html[lang="vi"] .hero h1 { font-size: clamp(33px, 3.9vw, 44px); line-height: 1.16; letter-spacing: -1.6px; }
html[lang="zh-Hans"] .hero h1 { font-size: clamp(40px, 4.9vw, 66px); line-height: 1.16; letter-spacing: 0; }
.hero .sub { font-size: clamp(18px, 2.2vw, 23px); font-weight: 700; margin: 0 0 30px; line-height: 1.5; }
.hero .sub em { font-style: normal; color: var(--accent-text); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 36px 0 30px; }
.fact { border: 1.5px solid rgba(164,184,204,.35); border-radius: 14px; padding: 14px 16px; background: rgba(18,43,74,.45); }
.fact small { display: block; font-size: 13px; font-weight: 700; opacity: .75; }
.fact b { font-size: 17px; line-height: 1.35; display: block; }
.hero .note { font-size: 14px; opacity: .8; margin: 14px 0 0; }

/* 렌즈 HUD 목업 (코드로 그린 것 — 실제 제품 이미지·로고 아님) */
.lens-box { max-width: 520px; margin: 0 auto; width: 100%; }
.lens { position: relative; aspect-ratio: 560 / 370; }
.lens svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hud { position: absolute; inset: 18% 15% 27% 15%; color: var(--accent); font-size: clamp(12px, 3.3vw, 15px); line-height: 1.4; text-shadow: 0 0 12px rgba(77,225,255,.55); }
.hud-panel { position: absolute; inset: 0; display: flex; flex-direction: column; opacity: 0; animation: hudCycle 12s linear infinite; }
.hud-panel.p2 { animation-delay: 4s; }
.hud-panel.p3 { animation-delay: 8s; }
@keyframes hudCycle { 0% { opacity: 0; transform: translateY(6px); } 3% { opacity: 1; transform: none; } 30% { opacity: 1; } 33.3% { opacity: 0; } 100% { opacity: 0; } }
.hud-tag { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: .82em; font-weight: 800; letter-spacing: .6px; padding: 2px 9px; border: 1px solid rgba(77,225,255,.7); border-radius: 6px; }
.hud-tag i { width: 7px; height: 7px; border-radius: 50%; background: #FF6B6B; box-shadow: 0 0 8px #FF6B6B; }
.hud-body { margin-top: auto; }
.hud-src { font-family: 'Pretendard', 'Noto Sans KR', sans-serif; color: rgba(234,246,255,.62); font-size: .86em; text-shadow: none; margin: 0 0 4px; }
.hud-out { font-size: 1.32em; font-weight: 800; color: #EAFBFF; margin: 0; line-height: 1.3; }
.hud-rows { margin: auto 0 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.hud-rows li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: baseline; }
.hud-rows b { font-family: 'Pretendard', 'Noto Sans KR', sans-serif; color: rgba(234,246,255,.7); font-weight: 600; text-shadow: none; white-space: nowrap; }
.hud-rows span { font-weight: 800; color: #EAFBFF; }
.hud-nav { margin-top: auto; display: flex; align-items: center; gap: 14px; }
.hud-arrow { flex-shrink: 0; width: 2.6em; height: 2.6em; }
.hud-nav p { margin: 0; }
.hud-nav small { display: block; font-size: .86em; color: rgba(234,246,255,.7); text-shadow: none; font-weight: 600; margin-top: 2px; }
.hud-note { margin: 10px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
@media (prefers-reduced-motion: reduce) {
  .hud-panel { animation: none; } .hud-panel.p1 { opacity: 1; }
  html { scroll-behavior: auto; } .btn { transition: none; }
}

/* ---------- 카드/그리드 ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.4; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card p.quote { font-size: 21px; font-weight: 800; line-height: 1.45; color: var(--fg); }
.quote::before { content: "“"; color: var(--accent-text); font-family: Georgia, serif; font-size: 44px; line-height: 0; vertical-align: -14px; margin-right: 6px; }

/* 비교 */
.vs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.vs .card ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.vs .card li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; }
.vs .old { opacity: .85; }
.vs .old li::before { content: "—"; color: var(--muted); }
.vs .new { border: 2px solid var(--accent); }
.vs .new li::before { content: "✓"; color: var(--accent-text); font-weight: 900; }
.tag { display: inline-block; font-size: 13px; font-weight: 800; padding: 4px 10px; border-radius: 6px; background: var(--line); }
.vs .new .tag { background: var(--accent); color: var(--on-accent); }

/* 커리큘럼 */
.days { display: grid; gap: 16px; }
.day { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.day .when b { display: block; font-family: var(--display); font-weight: var(--display-w); font-size: 34px; line-height: 1.15; color: var(--accent-text); }
html[lang="en"] .day .when b, html[lang="vi"] .day .when b { font-size: 28px; letter-spacing: -.5px; }
.day .when span { font-size: 15px; color: var(--muted); }
.day h3 { margin: 0 0 12px; font-size: 22px; line-height: 1.35; }
.day ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--muted); }
.day ol li::marker { color: var(--accent-text); font-weight: 900; }
.fine { margin: 16px 0 0; font-size: 14px; color: var(--muted); }

/* 결과물 */
.outcome { display: flex; gap: 16px; align-items: flex-start; }
.outcome .num { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-family: 'Black Han Sans', 'Be Vietnam Pro', sans-serif; font-size: 22px; font-weight: 800; }

/* 혜택 */
.perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.perk { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.perk b { display: block; font-size: 19px; line-height: 1.35; margin-bottom: 6px; }
.perk span { font-size: 15px; color: var(--muted); }
.perk.hot { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.perk.hot span { color: var(--on-accent); opacity: .85; }

/* 상세 정보 */
.info { display: grid; grid-template-columns: 150px minmax(0, 1fr); border-top: 1px solid var(--line); }
.info > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.info .k { font-weight: 800; padding-right: 12px; }
.info .v { color: var(--muted); }
.unis { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; font-family: 'Pretendard', 'Noto Sans KR', sans-serif; word-break: keep-all; }
.unis span { font-size: 14px; padding: 5px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--fg); }
.alert { margin-top: 22px; padding: 18px 20px; border-radius: 14px; border: 2px solid var(--accent); font-weight: 700; background: rgba(77,225,255,.07); }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; }
.faq summary { cursor: pointer; padding: 20px 0; font-weight: 800; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-text); font-size: 24px; line-height: 1; flex-shrink: 0; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 20px; color: var(--muted); }

/* ---------- 신청 폼 ---------- */
.apply { background: radial-gradient(900px 420px at 50% 0%, rgba(77,225,255,.12), transparent 65%), var(--hero-bg); color: var(--hero-fg); }
.apply .lead { color: var(--hero-fg); opacity: .85; }
.formbox { background: var(--bg2); color: var(--fg); border: 1px solid var(--line); border-radius: 22px; padding: 36px; max-width: 760px; margin: 0 auto; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 800; font-size: 15px; }
.field label .req, .field legend .req { color: var(--accent-text); }
.field input[type=text], .field input[type=tel], .field input[type=email], .field select { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--input-bg); color: var(--fg); font: inherit; font-size: 16px; }
.field input::placeholder { color: #6F86A0; }
.field select { appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; }
.field select#f-uni { font-family: 'Pretendard', 'Noto Sans KR', sans-serif; }
.field .hint { font-size: 13px; color: var(--muted); }
.field .err { font-size: 13px; color: #FF9A9A; font-weight: 700; min-height: 0; }
fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.field legend { padding: 0; margin-bottom: 6px; }
.seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.seg label { display: flex; align-items: center; justify-content: center; text-align: center; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 8px; min-height: 50px; cursor: pointer; font-weight: 800; background: var(--input-bg); position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.checks { display: grid; gap: 10px; margin-top: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 500 !important; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.privacy { font-size: 13px; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-top: 4px; }
.privacy summary { cursor: pointer; font-weight: 700; }
.blocked { display: none; padding: 14px 16px; border-radius: 10px; background: rgba(229,72,77,.14); color: inherit; font-size: 14px; font-weight: 700; border: 1.5px solid #E5484D; }
.blocked.show { display: block; }
.submit { width: 100%; margin-top: 24px; font-size: 20px; min-height: 60px; }
.submit[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.done { display: none; text-align: center; padding: 30px 10px; }
.done.show { display: block; }
.done b { font-family: var(--display); font-weight: var(--display-w); font-size: 40px; line-height: 1.2; display: block; margin-bottom: 10px; color: var(--accent); }

/* ---------- 하단 고정 CTA (모바일) ---------- */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--hero-bg); border-top: 1px solid rgba(77,225,255,.3); display: none; gap: 10px; align-items: center; transform: translateY(110%); transition: transform .25s ease; }
.sticky-cta.on { transform: none; }
.sticky-cta .txt { flex: 1; min-width: 0; color: var(--hero-fg); font-size: 13px; line-height: 1.35; }
.sticky-cta .txt b { font-size: 15px; display: block; }
.sticky-cta .btn { flex-shrink: 0; padding: 12px 18px; font-size: 16px; }

footer { padding: 40px 0 120px; font-size: 13px; color: var(--muted); background: var(--bg); border-top: 1px solid var(--line); }

/* ---------- 반응형 ---------- */
@media (max-width: 960px) {
  .hero .cols { grid-template-columns: 1fr; gap: 28px; }
  .lens-box { max-width: 460px; }
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  section { padding: 72px 0; }
  .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .day { grid-template-columns: 1fr; gap: 10px; }
  .topbar b { display: none; }
  .topbar .wrap { justify-content: space-between; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .grid3, .grid2, .vs, .fgrid { grid-template-columns: 1fr; }
  .perks { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; margin-top: 28px; }
  .info { grid-template-columns: 1fr; }
  .info > div:nth-child(odd) { padding-bottom: 0; border-bottom: 0; }
  .formbox { padding: 24px 18px; }
  .seg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sticky-cta { display: flex; }
  .topbar .btn { display: none; }
  .topbar .wrap { padding: 0 12px; }
  .topbar .right, .langs { width: 100%; }
  .langs button { flex: 1; padding: 6px 4px; }
  .hero { padding: 36px 0 56px; }
  .btn-lg { width: 100%; font-size: 19px; padding: 16px 20px; }
  .card p.quote { font-size: 19px; }
}
