/* MS Station 홈페이지 — Station 앱과 같은 팔레트(깊은 남색 + 인디고) */
:root {
  --bg: #0C0E13;
  --bg2: #0F1218;
  --surface: #13161D;
  --field: #1A1E27;
  --line: #222733;
  --line2: #2C3240;
  --text: #EEF0F4;
  --sub: #B6BDCA;
  --muted: #8790A1;
  --accent: #8E9BFF;
  --grad: linear-gradient(135deg, #6470FF, #8B5CF6);
  --radius: 18px;
  --wrap: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Pretendard Variable", Pretendard, "Malgun Gothic", system-ui, sans-serif;
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .9em; background: var(--field); padding: 1px 6px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  height: 44px; padding: 0 20px; border-radius: 12px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; transition: transform .12s, filter .15s, background .15s;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 24px -6px rgba(100,112,255,.6); }
.btn-ghost { background: var(--field); border-color: var(--line2); color: var(--text); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 16px; border-radius: 14px; }
.btn.disabled { opacity: .55; pointer-events: none; }

/* 머리줄 */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(12,14,19,.72); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.05); }
.nav-in { display: flex; align-items: center; height: 64px; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.brand img { width: 30px; height: 30px; }
.links { display: flex; gap: 22px; margin-left: auto; font-size: 15px; color: var(--sub); }
.links a:hover { color: var(--text); }

/* 첫 화면 */
.hero { position: relative; overflow: hidden; padding: 88px 0 72px; }
.glow { position: absolute; inset: -40% -10% auto auto; width: 900px; height: 900px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(100,112,255,.22), rgba(139,92,246,.10) 45%, transparent 70%); }
.hero-in { position: relative; display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
/* 그리드 칸이 큰 그림 때문에 화면보다 넓어지지 않게 */
.hero-in > *, .apps > *, .steps > *, .bims > *, .crafts > *, .about > * { min-width: 0; }
body { overflow-x: hidden; }
.eyebrow { margin: 0 0 14px; color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: .02em; }
h1 { margin: 0; font-size: clamp(38px, 5.2vw, 60px); line-height: 1.16; letter-spacing: -.03em; font-weight: 800; }
.lead { margin: 22px 0 0; font-size: 18px; color: var(--sub); }
.lead b { color: var(--text); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.meta { margin: 14px 0 0; font-size: 13px; color: var(--muted); }

.window { border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--line2);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.02); }
.window-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #0A0C10; border-bottom: 1px solid var(--line); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line2); }
.window-bar span { margin-left: 10px; font-size: 12px; color: var(--muted); }
.hero-shot { transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transition: transform .6s; }
.hero-shot:hover { transform: none; }

/* 숫자 띠 */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg2); }
.strip-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-in div { padding: 26px 0; text-align: center; border-left: 1px solid var(--line); }
.strip-in div:first-child { border-left: 0; }
.strip-in b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.strip-in span { color: var(--muted); font-size: 14px; }

/* 구역 */
.section { padding: 104px 0; }
.section-alt { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { margin: 0; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.25; letter-spacing: -.025em; font-weight: 800; }
.sub { margin: 16px 0 0; color: var(--sub); font-size: 17px; max-width: 680px; }
h3 { margin: 0; font-size: 19px; letter-spacing: -.01em; }

/* 앱 카드 */
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.app { position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: border-color .2s, transform .2s; }
.app::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--c); opacity: .9; }
.app:hover { border-color: var(--line2); transform: translateY(-3px); }
.app-icon { width: 56px; height: 56px; border-radius: 14px; margin-bottom: 18px; }
.app-desc { margin: 6px 0 0; color: var(--sub); font-size: 15px; }
.app ul { margin: 18px 0 22px; padding: 0; list-style: none; font-size: 14.5px; color: var(--sub); }
.app li { position: relative; padding-left: 18px; margin: 7px 0; }
.app li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.vers { margin-top: auto; border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 6px; }
.ver { display: flex; justify-content: space-between; font-size: 13.5px; }
.ver b { font-weight: 600; }
.ver span { color: var(--muted); font-variant-numeric: tabular-nums; }

/* 시작하기 */
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.steps p { margin: 8px 0 0; color: var(--sub); font-size: 15px; }
.steps b { color: var(--text); }
.num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; margin-bottom: 16px;
  background: var(--grad); color: #fff; font-weight: 800; }
.smartscreen { margin-top: 16px; padding: 14px 16px; border-radius: 10px; background: #0E3A6B; color: #fff; font-size: 12.5px; line-height: 1.5; }
.ss-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.ss-body { opacity: .85; }
.ss-link { margin-top: 8px; text-decoration: underline; font-weight: 600; }
.ss-link em { font-style: normal; text-decoration: none; display: inline-block; margin-left: 6px; color: #FFD666; }
.ss-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.ss-btns span { padding: 4px 14px; border: 1px solid rgba(255,255,255,.5); }
.ss-btns .on { outline: 2px solid #FFD666; outline-offset: 2px; }

/* BIM */
.bim-feature { margin-top: 48px; }
.window-wide img { width: 100%; }
.flow { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; font-weight: 600; font-size: 15px; }
.flow span { padding: 8px 16px; border-radius: 999px; background: var(--field); border: 1px solid var(--line2); }
.flow i { width: 28px; height: 2px; background: var(--grad); border-radius: 2px; }
.bims { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.bim { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.bim p { margin: 10px 0 0; color: var(--sub); font-size: 14.5px; }
.bim-tag { display: inline-block; margin-bottom: 12px; padding: 3px 10px; border-radius: 7px; font-size: 12px; font-weight: 600;
  color: var(--accent); background: #1D2246; }
.note { margin: 24px 0 0; color: var(--muted); font-size: 14px; text-align: center; }

/* 만드는 방식 */
.crafts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.craft { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), transparent); }
.craft p { margin: 10px 0 0; color: var(--sub); font-size: 14.5px; }
.stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.stack span { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line2); color: var(--sub); font-size: 13.5px; }

/* 소개 */
.about { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; }
.about-badge { width: 120px; height: 120px; border-radius: 30px; display: grid; place-items: center; font-size: 44px; font-weight: 800;
  background: var(--grad); box-shadow: 0 20px 60px -20px rgba(100,112,255,.7); }

/* 바닥 */
.foot { border-top: 1px solid var(--line); padding: 28px 0; font-size: 13px; color: var(--sub); }
.foot-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* 좁은 화면 */
@media (max-width: 1000px) {
  .hero-in { grid-template-columns: 1fr; gap: 48px; }
  .hero-shot { transform: none; }
  .apps, .steps { grid-template-columns: 1fr; }
  .bims, .crafts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .links { display: none; }
  .nav-in { justify-content: space-between; }
  .hero { padding: 56px 0 48px; }
  .lead { font-size: 16px; }
  .lead br { display: none; }
  .section { padding: 72px 0; }
  .strip-in { grid-template-columns: 1fr 1fr; }
  .strip-in div:nth-child(3) { border-left: 0; }
  .strip-in div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .bims, .crafts { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 24px; }
  .about-badge { width: 84px; height: 84px; font-size: 30px; border-radius: 22px; }
  .btn-lg { width: 100%; }
}
