/* CSCAM Hub — apex landing page */
:root {
  --navy: #0d1e3d;
  --navy-2: #0a1730;
  --blue: #1e5aa8;
  --blue-dark: #154078;
  --blue-bright: #2196f3;
  --blue-sky: #7fd3ff;
  --blue-050: #eaf3fc;
  --blue-100: #cce0f5;
  --ink: #212121;
  --muted: #757575;
  --border: #e2e6ec;
  --bg-alt: #fafbfc;
  --bg-alt2: #f2f5f9;
  --container: 1320px;
  --header-h: 68px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", "Noto Sans KR", -apple-system, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }

/* Family bar */
.family-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 101; background: #05080d; border-bottom: 1px solid rgba(255,255,255,.06); }
.family-bar-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 32px; height: 32px;
  display: flex; align-items: center; justify-content: flex-end; gap: 2px;
  overflow-x: auto; scrollbar-width: none;
}
.family-bar-inner::-webkit-scrollbar { display: none; }
.family-bar-label { font-family: "JetBrains Mono", monospace; font-size: 9.5px; font-weight: 700; letter-spacing: .14em; color: #5b6b85; margin-right: auto; white-space: nowrap; }
.family-bar-nav { display: flex; gap: 2px; white-space: nowrap; }
.family-bar-nav a, .family-bar-nav span {
  font-family: "JetBrains Mono", monospace; font-size: 10px; font-weight: 600; letter-spacing: .02em;
  padding: 6px 12px; border-radius: 4px; color: #8b9bb5; transition: all .2s;
}
.family-bar-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.family-bar-nav a.active { color: #fff; background: var(--blue); }

/* Header */
.site-header {
  position: fixed; top: 32px; left: 0; right: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.site-header .container {
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.logo { display: block; line-height: 1.25; }
.logo small {
  display: block; font-family: "Inter", "Noto Sans KR", sans-serif; font-size: 10px; font-weight: 500;
  color: var(--muted); letter-spacing: .04em; margin-bottom: 2px;
}
.logo .logo-title {
  font-family: "Space Grotesk", sans-serif; font-size: 19px; font-weight: 700; color: var(--blue); letter-spacing: -.01em;
}
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  font-family: "Inter", "Noto Sans KR", sans-serif; font-weight: 600; font-size: 13.5px; color: var(--ink);
  padding: 8px 13px; border-radius: 6px; white-space: nowrap; transition: color .2s, background .2s;
}
.site-nav a:hover { color: var(--blue); background: var(--blue-050); }
@media (max-width: 900px) { .site-nav { display: none; } }
.header-right { display: flex; align-items: center; gap: 14px; }
.header-utility { display: flex; align-items: center; gap: 10px; }
.brand-wordmark { display: flex; align-items: baseline; font-family: Verdana, "Noto Sans KR", sans-serif; font-size: 23px; color: var(--blue); }
.brand-wordmark b { font-weight: 700; }
.brand-wordmark span { font-weight: 400; }
.brand-divider { width: 1px; height: 36px; background: var(--border); margin: 0 4px; }
.lang-switch { font-family: "JetBrains Mono", monospace; font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.lang-switch a { color: var(--muted); }
.lang-switch a.active { color: var(--blue); }
.lang-switch .lang-sep { color: var(--border); }
.header-spacer { height: calc(var(--header-h) + 32px); }

/* Hero */
.hub-hero {
  position: relative; overflow: hidden;
  padding: 16px 0 18px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  text-align: center;
}
.hub-hero::before {
  content: ""; position: absolute; inset: -40px; z-index: 0; opacity: .3;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
                     linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 46px 46px;
}
.hub-hero .container { position: relative; z-index: 1; }
.hub-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "JetBrains Mono", monospace; font-size: 11px; font-weight: 700; letter-spacing: .2em;
  color: #cfe8ff; text-transform: uppercase; margin-bottom: 10px;
  padding: 4px 14px; border: 1px solid rgba(127,196,255,.4); border-radius: 999px; background: rgba(127,196,255,.08);
}
.hub-hero h1 {
  font-family: "Space Grotesk", "Noto Sans KR", sans-serif; font-size: clamp(26px, 4.6vw, 50px); font-weight: 700;
  line-height: 1.2; color: var(--white, #fff); margin-bottom: 10px; letter-spacing: -.02em;
}
.hub-hero h1 em { font-style: normal; color: var(--blue-sky); }
.hub-hero h1 .nowrap { white-space: nowrap; }
.hub-hero p {
  font-size: 15px; color: #b8c4d9; max-width: 640px; margin: 0 auto; line-height: 1.75;
}

/* Division cards */
.division-grid {
  padding: 10px 0 100px;
}
.division-grid .grid {
  display: grid; grid-template-columns: 1fr; row-gap: 18px;
}

.division-card {
  display: block; border-radius: 14px; overflow: hidden; position: relative;
  border: 1px solid var(--border); background: #fff; width: 100%;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.division-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(30,90,168,.16);
  border-color: var(--blue-100);
}
.division-card .thumb {
  position: relative; aspect-ratio: 2.4/1; overflow: hidden; background: var(--navy);
}
.division-card .thumb img {
  width: 100%; height: 100%; object-fit: cover; transform-origin: left center;
  transition: transform .5s ease;
}
.division-card:hover .thumb img { transform: scale(1.04); }
.division-card .thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,20,35,0) 40%, rgba(10,20,35,.72) 100%);
}
.division-card .thumb .code {
  position: absolute; top: 14px; left: 16px; z-index: 2;
  font-family: "JetBrains Mono", monospace; font-size: 11px; font-weight: 700; letter-spacing: .1em;
  color: #cfe4ff; background: rgba(10,25,45,.55); border: 1px solid rgba(255,255,255,.25);
  padding: 4px 9px; border-radius: 999px; backdrop-filter: blur(4px);
}
.division-card .thumb .tag-row {
  position: absolute; bottom: 14px; left: 16px; right: 16px; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.division-card .thumb .tag {
  color: #fff; font-family: "Space Grotesk", sans-serif; font-size: 20px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.division-card .body { padding: 12px 22px 10px; }
.division-card .body p {
  font-size: 13.5px; color: var(--muted); line-height: 1.6; margin-bottom: 0; min-height: 44px;
}
.division-card .thumb .cta {
  display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
  font-size: 12px; font-weight: 700; color: #fff; white-space: nowrap;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.32);
  padding: 6px 11px; border-radius: 999px; backdrop-filter: blur(4px);
  transition: background .2s ease;
}
.division-card:hover .thumb .cta { background: rgba(255,255,255,.28); }
.division-card .thumb .cta .arrow { transition: transform .2s ease; }
.division-card:hover .thumb .cta .arrow { transform: translateX(3px); }

/* About strip (legacy brief blurb — superseded by .about-mega, kept for stat-card reuse) */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat-card {
  background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 20px 16px; text-align: center;
}
.stat-card b {
  display: block; font-family: "Space Grotesk", sans-serif; font-size: 26px; font-weight: 700; color: var(--blue); margin-bottom: 4px;
}
.stat-card span { font-size: 12px; color: var(--muted); }

/* ---------------- 회사소개 mega-section (single-scroll company profile) ---------------- */
.about-mega { padding: 64px 0; border-bottom: 1px solid var(--border); }
.about-mega.alt { background: var(--bg-alt2); }
.about-mega.dark { background: var(--navy); color: #fff; border-bottom: none; }
.about-mega.ceo-blue { background: var(--blue-050); }
.about-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "JetBrains Mono", monospace; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue);
}
.about-mega.dark .about-eyebrow { color: var(--blue-sky); }
.about-eyebrow .line { flex-shrink: 0; width: 24px; height: 1px; background: var(--blue); }
.about-mega.dark .about-eyebrow .line { background: var(--blue-sky); }
.about-h2 {
  font-family: "Space Grotesk", "Noto Sans KR", sans-serif; font-weight: 700;
  font-size: clamp(24px, 3vw, 34px); line-height: 1.25; letter-spacing: -.01em; margin: 12px 0 18px;
}
.about-lede { color: var(--muted); font-size: 14.5px; line-height: 1.8; max-width: 820px; }
.about-mega.dark .about-lede { color: #b8c4d9; }
.about-mega p + p { margin-top: 14px; }
.about-strong { color: var(--ink); font-weight: 700; }
.about-mega.dark .about-strong { color: #fff; }
.about-goals { margin-top: 24px; display: grid; gap: 10px; }
.about-goals li {
  display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--ink); line-height: 1.6;
  padding: 12px 16px; background: #fff; border: 1px solid var(--border); border-radius: 8px;
}
.about-goals li .dot { flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); margin-top: 5px; }

/* CEO greeting quote block */
.ceo-quote {
  margin-top: 20px; padding: 28px 30px; border-radius: 12px;
  background: #fff; border: 1px solid var(--blue-100);
  font-family: "Space Grotesk", "Noto Sans KR", sans-serif; font-style: italic; font-weight: 600; font-size: 17px; color: var(--blue);
  line-height: 1.55;
}
.ceo-sign { margin-top: 22px; font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: .06em; color: var(--muted); }

/* History timeline (vertical, year-left style) */
.history-timeline { margin-top: 28px; position: relative; }
.history-timeline::before {
  content: ""; position: absolute; top: 14px; bottom: 26px; left: 110px; width: 2px; background: var(--border); z-index: 1;
}
.history-row {
  position: relative; display: grid; grid-template-columns: 92px 1fr; column-gap: 36px;
  padding: 16px 0; align-items: start;
}
.history-row:first-child { padding-top: 0; }
.history-row:last-child { padding-bottom: 0; }
.history-row::before {
  content: ""; position: absolute; top: 16px; left: 110px; transform: translateX(-50%);
  width: 14px; height: 14px; border-radius: 50%; background: var(--blue); border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--blue-100); z-index: 2;
}
.history-row:first-child::before { top: 0; }
.history-row::after {
  content: ""; position: absolute; top: 16px; left: 128px; right: 0; height: 1px;
  border-top: 1px dashed var(--border); z-index: 0;
}
.history-row:first-child::after { top: 0; }
.history-year {
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 21px; color: var(--muted); letter-spacing: -.01em;
}
.history-content { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.history-content li {
  position: relative; padding-left: 15px; font-size: 14px; color: var(--ink); line-height: 1.55;
}
.history-content li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--blue);
}

/* Partner badge grid */
.partner-grid { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.partner-badge {
  font-family: "Inter", "Noto Sans KR", sans-serif; font-size: 12.5px; font-weight: 600; color: var(--ink);
  background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px;
}

/* Location cards */
.location-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.location-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.location-map { position: relative; width: 100%; height: 220px; background: var(--bg-alt2); }
.location-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.location-body { padding: 22px 24px; }
.location-card h3 { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 16px; color: var(--blue); margin-bottom: 12px; }
.location-card p { font-size: 13px; color: var(--muted); line-height: 1.9; }
.location-card p b { color: var(--ink); font-weight: 600; }

/* Footer */
.site-footer { background: var(--navy-2); color: #cfd6e2; padding: 44px 0 26px; }
.foot-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 20px; }
.foot-logo { font-family: "Space Grotesk", sans-serif; font-size: 18px; font-weight: 700; color: #fff; }
.foot-logo span { color: var(--blue-sky); font-weight: 400; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { font-size: 13px; color: #aeb8c8; }
.foot-links a:hover { color: #fff; }
.foot-contact p { font-size: 12.5px; color: #98a2b3; line-height: 1.9; }
.foot-contact .sep { margin: 0 6px; color: #4a5568; }
.foot-biz { margin-top: 4px; }
.foot-copy { margin-top: 18px; font-size: 12px; color: #6b7688; }
.foot-copy .credit { margin-left: 8px; opacity: .7; }
