:root {
  --bg: #0f1418;
  --panel: #151c22;
  --line: #27323b;
  --text: #e6eaed;
  --muted: #94a1ab;
  --accent: #6cb4e8;
  --max: 1120px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
  background: var(--bg); color: var(--text);
  line-height: 1.75; font-size: 17px; word-break: keep-all;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(15,20,24,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; flex-wrap: wrap; gap: 6px 24px; }
.brand { font-weight: 800; font-size: 20px; text-decoration: none; letter-spacing: .02em; }
.nav { display: flex; gap: 30px; list-style: none; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--muted); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }

/* hero: blueprint grid with dimension lines */
.hero {
  position: relative; padding: 140px 0 120px; overflow: hidden;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
}
.hero::after { /* fade grid into background */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(15,20,24,.55) 0%, var(--bg) 85%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(38px, 7vw, 80px); line-height: 1.18; font-weight: 800; letter-spacing: -0.04em; max-width: 12em; }
.hero p { margin-top: 28px; max-width: 32em; color: var(--muted); font-size: 19px; }
.dim { display: flex; align-items: center; gap: 12px; margin-top: 44px; max-width: 520px; color: var(--accent); font-size: 14px; }
.dim::before, .dim::after { content: ""; flex: 1; height: 9px; border-left: 1px solid var(--accent); border-right: 0; background: linear-gradient(var(--accent), var(--accent)) center/100% 1px no-repeat; }
.dim::after { border-left: 0; border-right: 1px solid var(--accent); }
.btn { display: inline-block; margin-top: 36px; padding: 14px 30px; background: var(--accent); color: #07131c; text-decoration: none; font-weight: 700; border-radius: 2px; }
.btn:hover { background: #8cc6ef; }

/* sections */
.section { padding: 88px 0; border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(26px, 4vw, 38px); letter-spacing: -0.03em; line-height: 1.3; margin-bottom: 24px; }
.section p { max-width: 38em; color: var(--muted); }
.section p + p { margin-top: 16px; }
.split { display: grid; grid-template-columns: 1fr 2fr; gap: 56px; }
.page-title { padding: 96px 0 56px; border-bottom: 1px solid var(--line); }
.page-title h1 { font-size: clamp(34px, 6vw, 56px); letter-spacing: -0.04em; line-height: 1.25; }
.page-title p { margin-top: 18px; color: var(--muted); max-width: 34em; }

/* fields */
.fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.fields > div { background: var(--panel); padding: 32px 28px; }
.fields h3 { font-size: 20px; margin-bottom: 10px; letter-spacing: -0.02em; }
.fields p { font-size: 16px; color: var(--muted); }

/* wide text column (greeting stays on one line per sentence) */
.split.wide { grid-template-columns: 8em 1fr; }
.split.wide p { max-width: none; }

.page-title p.wide { max-width: none; }

/* product */
.product { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line); }
.product > tbody > tr > th { width: 8em; text-align: left; font-weight: 500; color: var(--muted); padding: 22px 16px 22px 0; vertical-align: top; border-bottom: 1px solid var(--line); }
.product > tbody > tr > td { padding: 22px 0; border-bottom: 1px solid var(--line); }
.product td.name { font-size: 24px; font-weight: 800; letter-spacing: .02em; }
.spec { width: 100%; border-collapse: collapse; }
.table .spec th, .table .spec td { padding: 12px 16px; border: 1px solid var(--line); text-align: left; vertical-align: middle; white-space: nowrap; }
.table .spec th { color: var(--muted); font-weight: 500; font-size: 13px; background: none; letter-spacing: .02em; }
.table .product-row > td { vertical-align: middle; }
.table td.img { padding-top: 12px; padding-bottom: 12px; }
.table td.img img { display: block; height: 150px; width: auto; cursor: zoom-in; }
.table td.img img:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

/* image popup */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(5,8,10,.78); }
.lightbox.open { display: flex; }
.lightbox-box { position: relative; max-width: min(92vw, 720px); padding: 40px 48px 28px; border-radius: 4px; text-align: center;
  background: radial-gradient(ellipse at 50% 45%, #55656f 0%, #38454e 45%, #232d34 100%); box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lightbox-box img { display: block; margin: 0 auto; max-width: 100%; max-height: 70vh; width: auto; height: auto; filter: drop-shadow(0 12px 12px rgba(0,0,0,.45)); }
.lightbox-title { margin-top: 20px; font-weight: 700; letter-spacing: .02em; color: #fff; }
.lightbox-close { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border: 0; background: none; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.lightbox-close:hover { color: var(--accent); }
.table .spec td { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 16px; color: var(--muted); }
.table .spec td .u { font-size: 14px; font-weight: 400; color: var(--muted); margin-left: 3px; }
.table .product-row > td { color: var(--muted); white-space: nowrap; }
@media (max-width: 760px) {
  .product > tbody > tr > th { width: 5.5em; }
  .spec { display: block; overflow-x: auto; }
}

/* business items */
.section h2 small { display: block; margin-top: 6px; font-size: 15px; font-weight: 500; color: var(--accent); letter-spacing: 0; }
.items { list-style: none; }
.items li { padding: 24px 0; border-top: 1px solid var(--line); }
.items li:first-child { padding-top: 0; border-top: 0; }
.items h3 { font-size: 20px; letter-spacing: -0.02em; margin-bottom: 8px; }
.items p { color: var(--muted); max-width: 36em; }

/* tables & timeline */
.timeline span { display: block; color: var(--muted); }
.timeline b { margin-bottom: 2px; }
.timeline li { padding-bottom: 36px; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 18px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 500; font-size: 15px; }
.table td:first-child { font-weight: 700; }
.timeline { list-style: none; border-left: 1px solid var(--line); }
.timeline li { position: relative; padding: 0 0 28px 28px; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 11px; width: 9px; height: 9px; background: var(--accent); }
.timeline b { display: block; color: var(--accent); font-variant-numeric: tabular-nums; }
.info { display: grid; grid-template-columns: 8em 1fr; gap: 14px 20px; }
.info dt { color: var(--muted); }
.info a { color: var(--accent); }
.map { aspect-ratio: 16 / 7; min-height: 280px; background: var(--panel); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.4) invert(.9) hue-rotate(180deg) contrast(.9); }
.map-links { margin-top: 18px; display: flex; gap: 12px; flex-wrap: wrap; }
.map-links a { padding: 10px 20px; border: 1px solid var(--accent); color: var(--accent); border-radius: 2px; text-decoration: none; font-weight: 600; }
.map-links a:hover { background: var(--accent); color: #07131c; }

.site-footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero { padding: 80px 0 72px; }
  .split, .split.wide { grid-template-columns: 1fr; gap: 12px; }
  .fields { grid-template-columns: 1fr; }
  .nav { gap: 18px; }
  .info { grid-template-columns: 1fr; gap: 2px; }
  .info dd { margin-bottom: 14px; }
  .table-wrap { overflow-x: auto; }
  .table-wrap .table { min-width: 720px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.brand { display: flex; align-items: center; gap: 14px; }
.brand span { font-size: 22px; font-weight: 800; letter-spacing: .02em; color: #fff; }
.brand img { height: 64px; width: 64px; display: block; object-fit: contain; }

/* language switch */
.lang { display: flex; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.lang a { padding: 6px 14px; font-size: 14px; font-weight: 600; letter-spacing: .04em; text-decoration: none; color: var(--muted); }
.lang a:hover { color: var(--text); }
.lang a[aria-current="true"] { background: var(--accent); color: #07131c; }
.lang a + a { border-left: 1px solid var(--line); }

/* English pages: Latin-friendly font stack */
html[lang="en"] body { font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; word-break: normal; }
html[lang="en"] .hero h1, html[lang="en"] .page-title h1, html[lang="en"] .section h2 { letter-spacing: -0.02em; }
html[lang="en"] .hero h1 { max-width: 14em; }
@media (max-width: 760px) { .site-header .wrap { padding-top: 10px; padding-bottom: 10px; } }

/* timeline: second line aligned under the first line's text */
.timeline .hang { display: flex; gap: .4em; align-items: flex-start; }
.timeline .hang .who { flex: none; }

/* product category buttons (between the top rule and the table header) */
.section-tight { padding-top: 32px; }
.cats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.cats a { padding: 10px 20px; border: 1px solid var(--accent); border-radius: 2px; color: var(--accent); font-weight: 600; text-decoration: none; }
.cats a:hover { background: rgba(108,180,232,.14); }
.cats a[aria-current="page"] { background: var(--accent); color: #07131c; }
