/* WebTrain 맞춤 웹사이트 — 네 서비스(Tenvio · AI 자동화 · 컨설팅 · 웹 개발)를 '노선' 색 넷으로 나눈다. */
:root {
  --bg: #f6f7fb; --card: #ffffff; --ink: #0c1322; --soft: #4a5468; --line: #e2e6ef;
  --brand: #1d4ed8; --brand-ink: #ffffff; --band: #0c1322; --band-ink: #f3f5fa; --band-soft: #a9b3c7;
  --l1: #1d4ed8; --l2: #7c3aed; --l3: #0d9488; --l4: #d97706;
  --t1: #e8eefc; --t2: #f1e9fe; --t3: #e0f5f2; --t4: #fdf0dc;
  --radius: 18px; --shadow: 0 1px 2px rgba(12, 19, 34, .05), 0 12px 32px -18px rgba(12, 19, 34, .25);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0f1a; --card: #121a2a; --ink: #eef1f7; --soft: #a3adc2; --line: #232d42;
    --brand: #5b8cff; --brand-ink: #071022; --band: #060a12; --band-ink: #eef1f7; --band-soft: #96a1b8;
    --l1: #6f9bff; --l2: #a988ff; --l3: #3fc7b8; --l4: #f2a941;
    --t1: #16264d; --t2: #2a1d4f; --t3: #0f3531; --t4: #3d2a0c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.7 Inter, "Noto Sans KR", system-ui, -apple-system, "Segoe UI", sans-serif;
  word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* 머리줄 */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.head-in { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; text-decoration: none; }
.mark { display: inline-grid; grid-template-columns: repeat(2, 9px); gap: 3px; }
.mark i { width: 9px; height: 9px; border-radius: 3px; background: var(--l1); }
.mark i:nth-child(2) { background: var(--l2); } .mark i:nth-child(3) { background: var(--l3); } .mark i:nth-child(4) { background: var(--l4); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 10px; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--soft); }
.nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.nav .lang { border: 1px solid var(--line); color: var(--ink); margin-left: 6px; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; margin-inline: auto; position: relative; content: ""; }
.menu-btn span::before { position: absolute; top: -6px; } .menu-btn span::after { position: absolute; top: 6px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 14px; font-weight: 700; font-size: 16px; text-decoration: none; border: 1px solid transparent; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 10px 24px -12px var(--brand); }
.btn-ghost { background: var(--card); border-color: var(--line); color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 12px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; }

/* 첫 화면 */
.hero { padding: 72px 0 56px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
h1 { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.14; letter-spacing: -.035em; font-weight: 800; text-wrap: balance; }
h1 em { font-style: normal; color: var(--brand); }
.lead { margin-top: 20px; font-size: clamp(17px, 1.6vw, 19px); color: var(--soft); max-width: 34em; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.note { margin-top: 16px; font-size: 14px; color: var(--soft); }

/* 노선도 — 네 서비스 */
.route { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 26px 24px; box-shadow: var(--shadow); }
.route-title { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); margin-bottom: 14px; }
.route li { position: relative; }
.route li + li::before { content: ""; position: absolute; left: 21px; top: -10px; height: 20px; border-left: 2px dashed var(--line); }
.route a { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 10px; margin: 0 -10px; border-radius: 14px; text-decoration: none; }
.route a:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.stop { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 15px; background: var(--tint); color: var(--tone); }
.route b { display: block; font-size: 16px; letter-spacing: -.01em; }
.route small { display: block; font-size: 14px; color: var(--soft); line-height: 1.45; }
.route .go { color: var(--soft); font-size: 18px; }
.c1 { --tone: var(--l1); --tint: var(--t1); } .c2 { --tone: var(--l2); --tint: var(--t2); }
.c3 { --tone: var(--l3); --tint: var(--t3); } .c4 { --tone: var(--l4); --tint: var(--t4); }

/* 절 공통 */
.block { padding: 72px 0; }
.block.alt { background: var(--card); border-block: 1px solid var(--line); }
.head { max-width: 720px; margin-bottom: 36px; }
h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.22; letter-spacing: -.03em; font-weight: 800; text-wrap: balance; }
.head p { margin-top: 12px; color: var(--soft); font-size: 17px; }

/* 서비스 카드 넷 — 같은 무게 */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.svc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border-top: 4px solid var(--tone); display: flex; flex-direction: column; }
.block.alt .svc, .block.alt .step, .block.alt .why li { background: var(--bg); }
.svc .tag { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--tint); color: var(--tone); }
.svc h3 { margin-top: 14px; font-size: 22px; letter-spacing: -.02em; line-height: 1.3; }
.svc > p { margin-top: 8px; color: var(--soft); }
.svc ul { margin-top: 16px; display: grid; gap: 8px; }
.svc li { position: relative; padding-left: 22px; font-size: 15px; }
.svc li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 8px; height: 8px; border-radius: 3px; background: var(--tone); }
.svc .more { margin-top: auto; padding-top: 20px; font-weight: 700; color: var(--tone); text-decoration: none; }
.svc .more:hover { text-decoration: underline; }

/* Tenvio 산업 */
.verticals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.vert { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; text-decoration: none; }
.vert:hover { border-color: var(--brand); }
.vert b { display: block; font-size: 17px; }
.vert span { display: block; margin-top: 6px; font-size: 14px; color: var(--soft); line-height: 1.5; }
.vert i { display: block; margin-top: 12px; font-style: normal; font-size: 13px; font-weight: 700; color: var(--brand); }

/* 자동화 예시 */
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.case { border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: var(--card); }
.case .from { font-size: 14px; color: var(--soft); }
.case .to { margin-top: 8px; font-weight: 700; font-size: 16px; line-height: 1.45; }
.case .to::before { content: "→ "; color: var(--l2); }
.fine { margin-top: 18px; font-size: 14px; color: var(--soft); }

/* 진행 방식 */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: s; }
.step { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.step::before { content: counter(s, decimal-leading-zero); display: block; font-weight: 800; font-size: 14px; color: var(--brand); letter-spacing: .04em; margin-bottom: 10px; }
.step b { display: block; font-size: 17px; }
.step p { margin-top: 6px; font-size: 15px; color: var(--soft); }

.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.why li { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.why b { display: block; font-size: 17px; }
.why p { margin-top: 6px; font-size: 15px; color: var(--soft); }

/* 자주 묻는 질문 */
.faq { max-width: 800px; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.faq summary { cursor: pointer; padding: 16px 28px 16px 0; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; translate: 0 -50%; font-size: 22px; font-weight: 400; color: var(--soft); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 18px; color: var(--soft); }

/* 문의 띠 */
.band { background: var(--band); color: var(--band-ink); padding: 72px 0; }
.band-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: center; }
.band p { margin-top: 12px; color: var(--band-soft); font-size: 17px; max-width: 32em; }
.band .btn-primary { background: #fff; color: #0c1322; box-shadow: none; }
.contact { display: grid; gap: 10px; }
.contact a.row { display: flex; align-items: baseline; gap: 12px; padding: 14px 16px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; text-decoration: none; font-weight: 600; }
.contact a.row:hover { border-color: rgba(255, 255, 255, .4); }
.contact small { min-width: 4.5em; font-size: 13px; font-weight: 500; color: var(--band-soft); }

.site-foot { background: var(--band); color: var(--band-soft); border-top: 1px solid rgba(255, 255, 255, .1); padding: 24px 0 96px; font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; }
.site-foot a { color: var(--band-ink); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* 폰 바닥 띠 */
.dock { display: none; }

.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 0; }
.lost p { margin: 14px 0 26px; color: var(--soft); }

@media (max-width: 900px) {
  .hero { padding: 40px 0 36px; }
  .hero-in, .band-in { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .verticals, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cases, .why { grid-template-columns: minmax(0, 1fr); }
  .block, .band { padding: 52px 0; }
  .menu-btn { display: block; }
  .head-cta { display: none; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line); margin: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 8px; font-size: 16px; }
  .nav .lang { margin: 8px 0 0; text-align: center; }
  .dock { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .dock .btn { width: 100%; }
}
@media (max-width: 640px) {
  .services { grid-template-columns: minmax(0, 1fr); }
  .svc { padding: 22px; }
  .ctas .btn { flex: 1 1 100%; }
}
@media (max-width: 420px) {
  .verticals, .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
@media print { .site-head, .dock, .menu-btn { display: none; } .band, .site-foot { background: none; color: #000; } }

/* 상담 신청 창 */
.ask { width: min(560px, 100% - 24px); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--line); border-radius: 22px; background: var(--card); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45); overflow: auto; }
.ask::backdrop { background: rgba(8, 12, 22, .55); backdrop-filter: blur(3px); }
.ask-form, .ask-done { position: relative; display: grid; gap: 14px; padding: 28px; }
.ask h2 { font-size: 24px; padding-right: 36px; }
.ask-lead { color: var(--soft); margin-top: -6px; }
.ask label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.ask input, .ask select, .ask textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; font-weight: 400; }
.ask textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
.ask input:focus, .ask select:focus, .ask textarea:focus { outline: 3px solid color-mix(in srgb, var(--brand) 40%, transparent); border-color: var(--brand); }
.ask [aria-invalid="true"] { border-color: #dc2626; }
.ask-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ask-hint { font-size: 13px; color: var(--soft); margin-top: -6px; }
.ask-err { padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, #dc2626 12%, var(--card)); color: color-mix(in srgb, #dc2626 80%, var(--ink)); font-size: 14px; font-weight: 600; }
.ask-alt { font-size: 14px; font-weight: 600; margin-top: -6px; }
.ask-alt a { color: var(--brand); }
.ask-x { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border: 0; border-radius: 12px; background: transparent; color: var(--soft); font-size: 26px; line-height: 1; cursor: pointer; }
.ask-x:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); }
.ask-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ask .btn { width: 100%; cursor: pointer; font-family: inherit; }
.ask .btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.ask-done { text-align: center; padding-block: 40px; }
.ask-done h2 { padding: 0; }
.ask-done p { color: var(--soft); }
@media (max-width: 480px) { .ask-two { grid-template-columns: minmax(0, 1fr); } .ask-form, .ask-done { padding: 22px 18px; } }

/* 직접 만들어 운영하는 서비스 — Tenvio · 우동마켓 */
.prod { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.prod + .prod { margin-top: 20px; }
.prod-head { max-width: 760px; margin-bottom: 20px; }
.prod .tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--tint); color: var(--tone); }
.prod h3 { margin-top: 12px; font-size: 24px; letter-spacing: -.02em; }
.prod-head p { margin-top: 8px; color: var(--soft); }
.prod .vert { background: var(--bg); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chips li { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-size: 14px; font-weight: 500; }
.prod .more { font-weight: 700; color: var(--tone); text-decoration: none; }
.prod .more:hover { text-decoration: underline; }
.svc .proof { margin-top: 16px; align-self: flex-start; padding: 8px 14px; border-radius: 12px; background: var(--tint); color: var(--tone); font-size: 14px; font-weight: 700; text-decoration: none; }
.svc .proof:hover { text-decoration: underline; }
.svc .proof + .more { padding-top: 16px; }
@media (max-width: 640px) { .prod { padding: 22px 18px; } }
.svc > p.live, .prod-head .live { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--ink); font-size: 15px; font-weight: 600; }
.svc > p.live::before, .prod-head .live::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 4px color-mix(in srgb, #16a34a 22%, transparent); }

/* [맨 위로] 알약 — 폰에서는 바닥 띠(.dock) 위로 비킨다 */
.totop { position: fixed; right: 20px; bottom: 20px; z-index: 14; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow), 0 6px 18px -8px rgba(12, 19, 34, .35); font-size: 20px; line-height: 1; font-weight: 700; text-decoration: none; }
.totop:hover { border-color: var(--brand); color: var(--brand); }
@media (max-width: 900px) { .totop { right: 16px; bottom: calc(80px + env(safe-area-inset-bottom)); } }
@media print { .totop { display: none; } }
