/* ==========================================================
   (주)태스콘 홈페이지 — 시안 A "태스콘 레드" 테마
   Claude 작업: 2026-10 리뉴얼 신규 작성
   Claude 작업: 2026-10-19 다크 테크(시안 C) → 태스콘 레드(시안 A)로 전체 변경
   ========================================================== */
:root {
  --bg: #FFFFFF;          /* 바탕 */
  --surface: #FBF4F5;     /* 연분홍 띠/카드 */
  --surface-2: #F3ECED;   /* 안쪽 칸 */
  --line: #EBDDDF;        /* 테두리 */
  --line-soft: #F2E8E9;
  --text: #1E1A1B;
  --muted: #5E5254;
  --faint: #8A7D7F;
  --accent: #D7192E;      /* 태스콘 레드 */
  --accent-deep: #A80F20;
  --accent-ink: #FFFFFF;  /* 레드 위 글자 */
  --ink: #1E1A1B;         /* 진한 띠 · 푸터 */
  --ink-text: #CFC4C6;
  --ok: #1F9D55;
  --plate: #F6F7F9;       /* 제품 사진 받침 */
  --display: 'Black Han Sans', 'IBM Plex Sans KR', sans-serif;
  --font: 'IBM Plex Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --mono: 'Archivo', 'IBM Plex Sans KR', sans-serif;
  --wrap: 1240px;
  --gutter: max(16px, 5vw);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.25; text-wrap: balance; margin: 0; }
p { margin: 0; }
.mono { font-family: var(--mono); }
.wrap { max-width: var(--wrap); margin: 0 auto; }
.band { padding-inline: var(--gutter); }

/* ---------- 헤더 ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding-inline: var(--gutter); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.logo-chip { display: inline-flex; }
.logo-chip img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.nav > li { list-style: none; position: relative; }
.nav > li > a { display: block; padding: 26px 18px; font-size: 16px; font-weight: 500; }
.nav > li > a.current { color: var(--accent); box-shadow: inset 0 -3px 0 var(--accent); }
.dropdown { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px; padding: 12px; min-width: 200px; display: none; box-shadow: 0 18px 40px rgba(60,10,16,0.12); }
.dropdown a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--muted); }
.dropdown a:hover { background: var(--surface); color: var(--accent); }
.nav > li:hover > .dropdown, .nav > li:focus-within > .dropdown { display: block; }
.dropdown.mega { display: none; grid-template-columns: repeat(4, minmax(170px, 1fr)); gap: 8px 20px; padding: 20px; min-width: 760px; }
.nav > li:hover > .dropdown.mega, .nav > li:focus-within > .dropdown.mega { display: grid; }
.mega h4 { margin: 0 0 6px; padding: 0 12px 6px; font-size: 14px; font-weight: 700; color: var(--accent); border-bottom: 2px solid var(--accent); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: #FFFFFF; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; max-height: calc(100vh - 76px); overflow-y: auto; box-shadow: 0 18px 40px rgba(60,10,16,0.12); }
  .nav.open { display: flex; }
  .nav > li > a { padding: 14px 4px; border-bottom: 1px solid var(--line-soft); }
  .nav > li > a.current { box-shadow: none; }
  .dropdown, .dropdown.mega, .nav > li:hover > .dropdown, .nav > li:hover > .dropdown.mega { display: block; position: static; transform: none; border: 0; box-shadow: none; background: transparent; min-width: 0; padding: 4px 0 8px 8px; }
  .mega h4 { margin-top: 10px; border-bottom: 0; }
}

/* ---------- 버튼 ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; padding: 15px 28px; border-radius: 999px; border: 2px solid transparent; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-deep); color: var(--accent-ink); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-white { background: #FFFFFF; color: var(--accent); }
.btn-white:hover { color: var(--accent-deep); }
.btn-outline-white { border-color: #FFFFFF; color: #FFFFFF; }
.btn-outline-white:hover { background: rgba(255,255,255,0.12); color: #FFFFFF; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 공통 섹션 ---------- */
.section { padding-block: 80px; padding-inline: var(--gutter); }
.section.tight { padding-block: 56px; }
.section.alt { background: var(--surface); }
@media (max-width: 600px) { .section { padding-block: 52px; } .section.tight { padding-block: 40px; } }
.eyebrow { font-family: var(--mono); font-weight: 800; font-size: 13px; color: var(--accent); letter-spacing: 0.14em; text-transform: uppercase; }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 36px; }
.sec-head h2 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 3.6vw, 44px); }
.sec-head p { color: var(--muted); }
.lead { font-size: 18px; color: var(--muted); max-width: 40em; }
.grid-bg { background: linear-gradient(180deg, var(--surface) 0%, #FFFFFF 100%); }

/* ---------- 메인 히어로 (레드 밴드) ---------- */
.hero { background: var(--accent); color: #FFFFFF; padding: 80px var(--gutter) 0; overflow: hidden; }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-end; }
.hero-text { flex: 1 1 460px; min-width: 0; padding-bottom: 80px; display: flex; flex-direction: column; gap: 24px; }
.hero-text .eyebrow { color: #FFFFFF; opacity: 0.85; }
.hero-text h1 { font-family: var(--display); font-weight: 400; font-size: clamp(48px, 7vw, 96px); line-height: 1.05; }
.hero-text .lead { color: #FFFFFF; opacity: 0.92; }
.hero-side { flex: 1 1 520px; min-width: 0; position: relative; }
.hero-panel { background: #FFFFFF; border-radius: 28px 28px 0 0; padding: 32px 32px 0; box-shadow: 0 -24px 60px rgba(60,0,8,0.35); }
.hero-panel img { width: 100%; }
.hero-tag { position: absolute; top: 24px; right: 0; background: var(--ink); color: #FFFFFF; padding: 12px 18px; border-radius: 12px; font-family: var(--mono); font-weight: 800; font-size: 15px; letter-spacing: 0.05em; }
@media (max-width: 600px) { .hero { padding-top: 52px; } .hero-text { padding-bottom: 40px; } .hero-panel { padding: 18px 18px 0; } }

.strip { background: var(--ink); color: #FFFFFF; padding: 26px var(--gutter); }
.strip .wrap { display: flex; flex-wrap: wrap; gap: 14px 48px; font-size: 15px; }
.strip span { display: inline-flex; gap: 10px; align-items: center; }
.strip span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }

/* ---------- 계기 화면 패널 (오시는 길 등) ---------- */
.readout { background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 12px 40px rgba(215,25,46,0.08); }
.readout-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 13px; color: var(--faint); }
.readout-big { font-family: var(--mono); font-weight: 800; font-size: clamp(40px, 5vw, 62px); color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1.15; }
.readout-note { font-size: 13px; color: var(--faint); }

/* ---------- 데이터 흐름 ---------- */
.flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; }
.flow-node { flex: 1 1 180px; min-width: 0; border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 4px; background: #FFFFFF; transition: border-color .2s; }
.flow-node:hover { border-color: var(--accent); color: var(--text); }
.flow-node b { font-size: 19px; }
.flow-node span { color: var(--muted); font-size: 14px; }
.flow-node .tag { font-family: var(--mono); font-weight: 800; color: var(--accent); font-size: 13px; letter-spacing: 0.06em; }
.flow-link { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px 10px; font-family: var(--mono); font-weight: 600; font-size: 12px; color: var(--faint); min-width: 88px; }
.flow-link::after { content: ""; display: block; width: 100%; height: 3px; margin-top: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--line), var(--accent)); }
@media (max-width: 900px) { .flow { flex-direction: column; } .flow-node { flex: 0 0 auto; } .flow-link { flex-direction: row; gap: 10px; min-height: 40px; } .flow-link::after { width: 3px; height: 20px; margin: 0; background: linear-gradient(var(--line), var(--accent)); } }

/* ---------- 카드 ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; }
.card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 16px 40px rgba(60,10,16,0.12); transform: translateY(-3px); color: var(--text); }
.card img { width: 100%; height: 220px; object-fit: cover; background: var(--plate); }
.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 6px; border-top: 4px solid var(--accent); }
.card-body b { font-size: 20px; }
.card-body span { color: var(--muted); font-size: 15px; }
.card-body .more { margin-top: 6px; font-weight: 700; font-size: 14px; color: var(--accent); }

/* ---------- 서브 페이지 머리 ---------- */
.page-head { padding: 56px var(--gutter) 44px; background: var(--accent); color: #FFFFFF; }
.page-head .crumbs, .page-head .crumbs a { color: rgba(255,255,255,0.8); }
.page-head .crumbs span::before { color: rgba(255,255,255,0.5); }
.page-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 4.6vw, 56px); }
.page-head .lead { margin-top: 12px; color: #FFFFFF; opacity: 0.9; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: 13px; color: var(--faint); margin-bottom: 14px; }
.crumbs a:hover { color: var(--accent); }
.page-head .crumbs a:hover { color: #FFFFFF; }
.crumbs span::before { content: "/"; margin-right: 8px; color: var(--line); }

/* ---------- 제품 상세 ---------- */
.p-hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.p-hero-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.p-hero-text h1 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 4.4vw, 52px); }
.p-en { color: var(--muted); font-size: 16px; }
.p-model { display: inline-flex; align-self: flex-start; font-family: var(--mono); font-size: 18px; font-weight: 800; color: #FFFFFF; background: var(--ink); padding: 8px 16px; border-radius: 10px; letter-spacing: 0.03em; }
.p-points { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.p-points li { position: relative; padding-left: 22px; color: var(--muted); }
.p-points li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.plate { flex: 1 1 460px; min-width: 0; background: var(--plate); border-radius: 24px; padding: 20px; border: 1px solid var(--line); }
.plate img { width: 100%; border-radius: 14px; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.feature { background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.section.alt .feature { background: #FFFFFF; }
.feature b { font-size: 17px; }
.feature ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
.feature li::marker { color: var(--accent); }
.feature p { color: var(--muted); font-size: 15px; }

.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #FFFFFF; }
table.spec { width: 100%; border-collapse: collapse; min-width: 520px; font-size: 15px; }
table.spec th, table.spec td { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
table.spec thead th { background: var(--ink); font-size: 14px; color: #FFFFFF; font-weight: 700; }
table.spec tbody th { color: var(--muted); font-weight: 500; width: 30%; white-space: nowrap; background: var(--surface); }
table.spec td { font-variant-numeric: tabular-nums; }
table.spec tr:last-child th, table.spec tr:last-child td { border-bottom: 0; }
table.spec.center td, table.spec.center thead th { text-align: center; }
.note { font-size: 14px; color: var(--faint); margin-top: 10px; }
.notes { margin: 0; padding-left: 18px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.notes li::marker { color: var(--accent); }

.figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.fig { margin: 0; background: #FFFFFF; border-radius: 16px; padding: 16px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.fig img { width: 100%; border-radius: 6px; cursor: zoom-in; }
.fig figcaption { color: var(--muted); font-size: 13px; font-weight: 500; }
.fig.wide { grid-column: 1 / -1; }

.long-img { display: flex; flex-direction: column; gap: 0; max-width: 960px; margin: 0 auto; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.long-img img { width: 100%; }

.cta-band { background: var(--ink); color: #FFFFFF; border-radius: 20px; padding: 28px 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.cta-band p { color: var(--ink-text); }
.cta-band .btn-ghost { border-color: #4A3F41; color: #FFFFFF; }
.cta-band .btn-ghost:hover { border-color: #FFFFFF; color: #FFFFFF; }
.cta-band .mono { color: #FF8A96 !important; }

.side-list { display: flex; flex-wrap: wrap; gap: 8px; }
.side-list a { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 14px; color: var(--muted); background: #FFFFFF; }
.side-list a.on { border-color: var(--accent); background: var(--accent); color: #FFFFFF; }

/* ---------- 자료실 ---------- */
.dl-list { display: flex; flex-direction: column; gap: 10px; }
.dl { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 20px 24px; border-radius: 14px; background: var(--surface-2); transition: background .2s; }
.dl:hover { background: var(--ink); color: #FFFFFF; }
.dl:hover .dl-meta { color: var(--ink-text); }
.dl-title { font-weight: 500; }
.dl-meta { font-family: var(--mono); font-size: 13px; color: var(--faint); display: flex; gap: 14px; align-items: center; }
.dl-meta .go { color: var(--accent); font-weight: 800; }
.dl:hover .dl-meta .go { color: #FF8A96; }
.dl-group h3 { font-size: 18px; font-weight: 700; margin: 32px 0 12px; padding-left: 12px; border-left: 4px solid var(--accent); }

/* ---------- 회사소개 ---------- */
.two-col { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.two-col > * { flex: 1 1 420px; min-width: 0; }
.prose { display: flex; flex-direction: column; gap: 18px; color: var(--muted); font-size: 17px; line-height: 1.85; max-width: 42em; }
.prose h2 { font-family: var(--display); font-weight: 400; color: var(--text); }
.prose strong { color: var(--text); }
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.tl { background: #FFFFFF; border-radius: 16px; border-top: 5px solid var(--accent); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.tl .yr { font-family: var(--mono); font-size: 22px; font-weight: 800; color: var(--accent); }
.tl ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 15px; }
.tl li b { color: var(--text); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { background: #FFFFFF; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 14px; color: var(--muted); }
.info-rows { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin: 0; }
.info-rows div { display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); background: #FFFFFF; }
.info-rows div:last-child { border-bottom: 0; }
.info-rows dt { width: 90px; color: var(--accent); font-weight: 700; font-size: 14px; padding-top: 2px; }
.info-rows dd { margin: 0; flex: 1 1 240px; min-width: 0; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; padding: 0 24px; }
.faq details[open] { border-color: var(--accent); }
.faq summary { cursor: pointer; padding: 20px 0; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-weight: 800; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq .ans { padding-bottom: 22px; color: var(--muted); display: flex; flex-direction: column; gap: 12px; }
.formula { font-family: var(--mono); font-weight: 600; background: var(--surface); border-left: 4px solid var(--accent); border-radius: 8px; padding: 14px 16px; color: var(--text); overflow-x: auto; }

/* ---------- 이미지 확대 ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(20,12,14,0.9); display: none; align-items: center; justify-content: center; z-index: 100; padding: 24px; cursor: zoom-out; }
.lightbox.on { display: flex; }
.lightbox img { max-height: 92vh; width: auto; background: #FFFFFF; border-radius: 8px; }

/* ---------- 푸터 ---------- */
.site-footer { background: var(--ink); color: var(--ink-text); padding: 48px var(--gutter); font-size: 14px; line-height: 1.9; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer b { color: #FFFFFF; font-size: 16px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a:hover { color: #FF8A96; }
