/* ==========================================================================
   CastPlan — castplan.net
   조직 허브. 제품 사이트(castfi.castplan.net)와 같은 토큰을 쓰되, 강조색은
   중립(흰색)으로 둔다 — 색은 제품이 갖고, 허브는 배경이 된다.
   ========================================================================== */

:root {
  --bg:        #08080A;
  --canvas:    #0A0A0B;
  --surface:   #111114;
  --elevated:  #16161A;
  --overlay:   #202026;
  --line:      rgba(255,255,255,.08);
  --line-soft: rgba(255,255,255,.05);

  --text:  rgba(255,255,255,.96);
  --text2: rgba(255,255,255,.64);
  --text3: rgba(255,255,255,.42);
  --text4: rgba(255,255,255,.26);

  /* 제품별 색 — 카드에서만 쓴다 */
  --castfi-1: #7B67F2;
  --castfi-2: #4889E5;
  --castfi-3: #16ABD8;
  --castfi: linear-gradient(135deg, var(--castfi-1) 0%, var(--castfi-2) 52%, var(--castfi-3) 100%);

  --wrap: 1040px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
          "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.7; letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: inherit; }

/* 두 언어를 모두 싣고 CSS 가 한쪽만 보여준다 — JS 가 꺼져도 한국어가 렌더된다 */
html[data-lang="ko"] [data-l="en"],
html[data-lang="en"] [data-l="ko"] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }

/* ---- nav --------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8,8,10,.72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line-soft);
}
.nav__in { display: flex; align-items: center; gap: 20px; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 700; letter-spacing: -.02em; }
.brand img { width: 26px; height: 26px; border-radius: 8px; display: block; }
.brand span { font-size: 17px; }
.nav__links { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav__links a { color: var(--text2); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .18s; }
.nav__links a:hover { color: var(--text); }

.lang { display: inline-flex; padding: 3px; gap: 2px; background: var(--elevated); border: 1px solid var(--line); border-radius: 999px; }
.lang button {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  color: var(--text3); font: inherit; font-size: 12px; font-weight: 600;
  padding: 4px 11px; border-radius: 999px; transition: background .18s, color .18s;
}
.lang button:hover { color: var(--text2); }
html[data-lang="ko"] .lang button[value="ko"],
html[data-lang="en"] .lang button[value="en"] { background: var(--overlay); color: var(--text); }
@media (max-width: 640px) { .nav__links a { display: none; } }

/* ---- buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 20px; border-radius: 12px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .16s ease, opacity .16s ease, background .16s ease, border-color .16s ease;
}
.btn:active { transform: translateY(1px); }
.btn--light { background: #fff; color: #0A0A0B; }
.btn--light:hover { opacity: .9; }
.btn--ghost { background: var(--elevated); border-color: var(--line); color: var(--text); }
.btn--ghost:hover { background: var(--overlay); border-color: rgba(255,255,255,.14); }
.btn--sm { padding: 9px 16px; font-size: 14px; }

/* ---- hero -------------------------------------------------------------- */
.hero { position: relative; padding: 104px 0 84px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto -20%; height: 640px; z-index: 0;
  background: radial-gradient(50% 46% at 30% 6%, rgba(255,255,255,.07), transparent 70%);
  pointer-events: none;
}
/* 제목의 줄바꿈은 <br> 이 정한다 — 폭으로 강제하면 고아 음절이 생긴다. */
.hero__in { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text3); background: var(--elevated);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; margin: 0 0 24px;
}
h1 { margin: 0 0 22px; font-size: clamp(34px, 5.4vw, 58px); line-height: 1.12; font-weight: 800; letter-spacing: -.035em; }
.lede { margin: 0; font-size: clamp(16px, 1.8vw, 19px); color: var(--text2); max-width: 52ch; line-height: 1.7; }
@media (max-width: 900px) { .hero { padding: 68px 0 56px; } }

/* ---- sections ---------------------------------------------------------- */
section { padding: 76px 0; border-top: 1px solid var(--line-soft); }
.head { max-width: 60ch; margin-bottom: 38px; }
.kicker { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text3); margin-bottom: 14px; }
.head h2 { margin: 0 0 12px; font-size: clamp(24px, 3.1vw, 32px); font-weight: 800; letter-spacing: -.03em; line-height: 1.22; }
.head p { margin: 0; color: var(--text2); font-size: 16.5px; }

/* ---- product ----------------------------------------------------------- */
.product {
  display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: 30px 32px; text-decoration: none;
  transition: border-color .2s, background .2s, transform .2s;
}
.product:hover { border-color: rgba(255,255,255,.16); background: var(--elevated); transform: translateY(-2px); }
.product__mark { width: 58px; height: 58px; border-radius: 15px; display: block; }
.product__body h3 { margin: 0 0 7px; font-size: 20px; font-weight: 750; letter-spacing: -.025em; }
.product__body p { margin: 0 0 12px; color: var(--text2); font-size: 15px; line-height: 1.65; }
.product__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: var(--text3);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; line-height: 1.5;
}
.product__go { color: var(--text3); font-size: 22px; line-height: 1; }
.product:hover .product__go { color: var(--text); }
@media (max-width: 720px) {
  .product { grid-template-columns: auto 1fr; padding: 24px; gap: 18px; }
  .product__go { display: none; }
}

/* ---- about grid -------------------------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px 24px; }
.card h3 { margin: 0 0 9px; font-size: 16.5px; font-weight: 700; letter-spacing: -.02em; }
.card p { margin: 0; font-size: 14.5px; color: var(--text2); line-height: 1.68; }

/* ---- contact ----------------------------------------------------------- */
.contact { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: baseline; }
.contact dt { font-size: 13px; color: var(--text3); letter-spacing: .02em; margin-bottom: 4px; }
.contact dd { margin: 0; font-size: 16px; font-weight: 600; }
.contact dd a { color: inherit; text-underline-offset: 4px; }
.contact > div { min-width: 200px; }

/* ---- footer ------------------------------------------------------------ */
footer { border-top: 1px solid var(--line-soft); padding: 46px 0 60px; }
.foot { display: flex; flex-wrap: wrap; gap: 26px; justify-content: space-between; align-items: center; }
.foot__links { display: flex; flex-wrap: wrap; gap: 24px; }
.foot__links a { color: var(--text2); text-decoration: none; font-size: 14px; transition: color .18s; }
.foot__links a:hover { color: var(--text); }
.foot__legal { margin: 24px 0 0; color: var(--text4); font-size: 12.5px; line-height: 1.7; max-width: 76ch; }

/* 히어로는 최상단이라 구분선을 두지 않는다 */
.hero { border-top: 0; }

/* ---- 사업자 정보 ------------------------------------------------------- */
.bizinfo {
  display: flex; flex-wrap: wrap; gap: 10px 34px;
  margin: 26px 0 0; padding-top: 22px; border-top: 1px solid var(--line-soft);
}
.bizinfo > div { min-width: 150px; }
.bizinfo dt { font-size: 11.5px; color: var(--text4); letter-spacing: .03em; margin-bottom: 3px; }
.bizinfo dd { margin: 0; font-size: 13px; color: var(--text2); }
.bizinfo dd a { color: inherit; text-underline-offset: 3px; }
.bizinfo__wide { min-width: 340px; flex: 1 1 340px; }
@media (max-width: 620px) { .bizinfo__wide { min-width: 0; } }
