/*
 * dartmos.com 회사 랜딩 스타일.
 * 브랜드: 따뜻한 오프화이트 + 오렌지 액센트(앱·페이월과 통일). 모바일 우선 반응형.
 */

/* ── 디자인 토큰 ── */
:root {
    --bg: #fcfaf6;          /* 페이지 배경(따뜻한 오프화이트) */
    --surface: #ffffff;     /* 카드 면 */
    --surface-2: #f3efe8;   /* 보조 면 */
    --ink: #201c1a;         /* 본문 텍스트 */
    --muted: #7a736e;       /* 보조 텍스트 */
    --accent: #e8552d;      /* 브랜드 오렌지 */
    --accent-ink: #c8431f;  /* 오렌지 진한 톤(호버) */
    --border: #e8e4dc;      /* 경계선 */
    --radius: 18px;
    --maxw: 960px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
img { max-width: 100%; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard",
        "Malgun Gothic", "맑은 고딕", system-ui, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ── 상단 바 ── */
.topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 22px; padding-bottom: 22px; flex-wrap: wrap; row-gap: 6px;
}
.topbar nav { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; row-gap: 4px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); display: inline-block; }
.topbar nav a { color: var(--muted); font-size: 15px; margin-left: 20px; transition: color .15s; white-space: nowrap; }
.topbar nav a:hover { color: var(--ink); }
/* 언어 셀렉트 — lang.js가 hreflang 목록으로 옵션을 채운다. */
.topbar nav select.langsel {
    margin-left: 20px; font-size: 14px; color: var(--muted); flex-shrink: 0;
    background: transparent; border: 1px solid #ddd5cc; border-radius: 8px;
    padding: 4px 8px; font-family: inherit; cursor: pointer;
}
.topbar nav select.langsel:hover { color: var(--ink); border-color: var(--muted); }
/* 모바일 — 메뉴가 잘리지 않게 간격·크기 축소(넘치면 다음 줄로 랩) */
@media (max-width: 640px) {
    .topbar { padding-top: 14px; padding-bottom: 14px; }
    .topbar nav a { margin-left: 14px; font-size: 14px; }
    .topbar nav select.langsel { margin-left: 14px; font-size: 13px; padding: 3px 6px; }
}
/* 좁은 폰 — 2줄 고정: 1행 브랜드(좌)+언어 셀렉트(우), 2행 메뉴 링크(좌) */
@media (max-width: 560px) {
    .topbar { position: relative; }
    .topbar nav select.langsel { position: absolute; top: 12px; right: 24px; margin-left: 0; }
    .topbar nav { width: 100%; justify-content: flex-start; margin-top: 6px; }
    .topbar nav a { margin-left: 0; margin-right: 16px; }
    .topbar nav a:last-of-type { margin-right: 0; }
}

/* ── 히어로 ── */
.hero { text-align: center; padding: 64px 0 48px; }
.hero h1 { font-size: clamp(32px, 6vw, 52px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.hero .accent { color: var(--accent); }
.hero p { margin-top: 18px; font-size: clamp(16px, 2.6vw, 19px); color: var(--muted); max-width: 560px; margin-left: auto; margin-right: auto; }

/* ── 소개 ── */
.about {
    max-width: 640px; margin: 0 auto 28px; text-align: center;
    font-size: 16px; line-height: 1.85; color: var(--muted);
}
.about strong { color: var(--ink); }

/* ── 앱 섹션 ── */
.section-label { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); text-align: center; margin: 24px 0 18px; }

.apps { display: grid; grid-template-columns: 1fr; gap: 18px; padding-bottom: 24px; }
@media (min-width: 640px) { .apps { grid-template-columns: 1fr 1fr; } }

.app-card {
    display: flex; align-items: center; gap: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.app-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(32, 28, 26, 0.08); border-color: var(--accent); }
.app-card .icon {
    width: 56px; height: 56px; flex: 0 0 56px; border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), #f0794f);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800; font-size: 24px;
}
.app-card .meta h3 { font-size: 18px; font-weight: 700; }
.app-card .meta p { font-size: 14px; color: var(--muted); margin-top: 2px; }

/* 준비 중 카드(비활성) */
.app-card.soon { opacity: 0.55; pointer-events: none; }
.app-card.soon .icon { background: var(--surface-2); color: var(--muted); }

/* ── 푸터 ── */
footer { border-top: 1px solid var(--border); margin-top: 56px; padding: 32px 0 48px; }
footer .cols { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
footer .biz { font-size: 13px; color: var(--muted); line-height: 1.9; }
footer .biz strong { color: var(--ink); font-weight: 700; }
footer .links a { font-size: 14px; color: var(--muted); margin-right: 16px; }
footer .links a:hover { color: var(--accent); }
footer .copyright { margin-top: 20px; font-size: 12px; color: var(--muted); }
