/* 한스브릿지 데모 — 공유 디자인 시스템(토큰·공통 컴포넌트) — 2026.07.23 */
/* 다크(기본) / 라이트(화이트·진블루) 테마 토큰 + 버튼·섹션·푸터·reveal 공통 */

/* ============ THEME TOKENS ============ */
:root {
  --navy:#0D1B2A; --navy-mid:#12243A; --navy-hi:#1A2D42;
  --text:#F5F7FA; --text-2:#B8C8D8; --text-3:#8A9BB0;
  --accent:#E8610A; --accent-2:#F07E35; --accent-on:#FFFFFF;
  --line:rgba(140,168,196,0.16); --line-2:rgba(140,168,196,0.28);
  --glass:rgba(13,27,42,0.72); --glass-line:rgba(140,168,196,0.16);
  --card:rgba(255,255,255,0.015); --card-2:rgba(255,255,255,0.03);
  --shadow:0 10px 40px rgba(0,0,0,0.35);
  --glow:rgba(232,97,10,0.14);
  --grid:rgba(72,100,128,0.08);
}
:root[data-theme="light"] {
  --navy:#FFFFFF; --navy-mid:#F5F8FC; --navy-hi:#EAF1F8;
  --text:#0D1B2A; --text-2:#41576F; --text-3:#71859B;
  --accent:#1B3A6B; --accent-2:#274B85; --accent-on:#FFFFFF;
  --line:rgba(27,58,107,0.12); --line-2:rgba(27,58,107,0.20);
  --glass:rgba(255,255,255,0.78); --glass-line:rgba(27,58,107,0.10);
  --card:rgba(27,58,107,0.02); --card-2:rgba(27,58,107,0.035);
  --shadow:0 10px 40px rgba(20,44,90,0.10);
  --glow:rgba(27,58,107,0.10);
  --grid:rgba(27,58,107,0.05);
}

/* ============ RESET / BASE ============ */
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  background:var(--navy); color:var(--text);
  font-family:'Pretendard Variable',Pretendard,'Noto Sans KR',system-ui,sans-serif;
  font-weight:400; line-height:1.6; -webkit-font-smoothing:antialiased;
  transition:background .4s ease, color .4s ease; overflow-x:hidden;
}
a { color:inherit; }
img { max-width:100%; }
.wrap { max-width:1240px; margin:0 auto; padding:0 40px; }
.serif { font-family:'Noto Serif KR',serif; }
.accent { color:var(--accent); }

/* ============ BUTTONS ============ */
.btn-primary {
  background:var(--accent); color:var(--accent-on); text-decoration:none;
  padding:16px 34px; border-radius:10px; font-size:16px; font-weight:700; letter-spacing:.3px;
  display:inline-flex; align-items:center; justify-content:center; text-align:center; gap:8px;
  transition:transform .2s, box-shadow .2s, background .2s; cursor:pointer; border:none;
}
.btn-primary:hover { background:var(--accent-2); transform:translateY(-2px); box-shadow:0 12px 30px var(--glow); }
.btn-ghost {
  color:var(--text-2); text-decoration:none; font-size:15px; font-weight:500;
  padding:15px 10px; border-bottom:1px solid var(--line-2);
  transition:color .2s, border-color .2s; display:inline-block; text-align:center;
}
.btn-ghost:hover { color:var(--text); border-color:var(--accent); }

/* ============ SECTION BASE ============ */
section { padding:110px 0; position:relative; }
.band { background:var(--navy-mid); }
.sec-label { font-size:12px; color:var(--accent); letter-spacing:3.5px; font-weight:700; text-transform:uppercase; display:inline-block; margin-bottom:14px; }
.sec-title { font-family:'Noto Serif KR',serif; font-weight:700; font-size:clamp(30px,4vw,50px); line-height:1.32; letter-spacing:-.5px; margin-bottom:16px; word-break:keep-all; }
.sec-sub { font-size:18px; color:var(--text-2); line-height:1.8; max-width:640px; word-break:keep-all; }

/* ============ CARD (generic double-bezel) ============ */
.card {
  background:var(--card); border:1px solid var(--line); border-radius:16px; padding:6px;
  transition:border-color .25s, transform .25s, box-shadow .25s;
}
.card:hover { border-color:var(--accent); transform:translateY(-5px); box-shadow:var(--shadow); }
.card-inner { border:1px solid var(--line); border-radius:12px; padding:28px 24px; height:100%; display:flex; flex-direction:column; position:relative; overflow:hidden; }
.card-inner::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background:linear-gradient(90deg,var(--accent),var(--accent-2)); transform:scaleX(0); transform-origin:left; transition:transform .3s; }
.card:hover .card-inner::before { transform:scaleX(1); }

/* ============ FOOTER ============ */
footer { background:var(--navy-mid); border-top:1px solid var(--line); padding:44px 0; }
.foot-inner { display:flex; justify-content:space-between; align-items:center; gap:24px; flex-wrap:wrap; }
.foot-logo { font-family:'Bebas Neue',sans-serif; font-size:22px; letter-spacing:3px; }
.foot-logo span { color:var(--accent); }
.foot-info { font-size:13.5px; color:var(--text-3); line-height:1.9; text-align:right; }
.foot-info strong { color:var(--text-2); }
.foot-info a { color:inherit; text-decoration:none; }
.foot-info a:hover { color:var(--accent); }

/* ============ REVEAL (JS 있을 때만 숨김) ============ */
.has-js .reveal { opacity:0; transform:translateY(24px); transition:opacity .7s ease, transform .7s ease; }
.has-js .reveal.in { opacity:1; transform:none; }

/* ============ RESPONSIVE BASE ============ */
@media (max-width:768px){
  .wrap { padding:0 20px; }
  section { padding:72px 0; }
  .foot-inner { flex-direction:column; align-items:flex-start; }
  .foot-info { text-align:left; }
}
@media (prefers-reduced-motion:reduce){
  .has-js .reveal { transition:none; opacity:1; transform:none; }
  html { scroll-behavior:auto; }
}
