:root {
    --primary: #0b63d6;
    --primary-soft: #e7f0fd;
    --text: #23272f;
    --muted: #5c636e;
    --faint: #8b929c;
    --bg: #f7f8fa;
    --surface: #ffffff;
    --line: #e4e7ec;
    --accent: #fd7e14;
    --maxw: 940px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo",
                 "Noto Sans KR", Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    margin: 0;
    font-size: 16px;
}

a { color: var(--primary); }

/* ---------- header / nav ---------- */

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.brand {
    display: block;
    line-height: 0;
}

.brand img {
    display: block;
    height: 30px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.94em;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: var(--primary);
}

/* ---------- layout ---------- */

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

.page-head { margin-bottom: 40px; }

.page-head h1 {
    font-size: 1.9em;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
    color: #16181d;
}

.page-head .lede {
    color: var(--muted);
    margin: 0;
    font-size: 1.05em;
}

.hero {
    text-align: center;
    padding: 24px 0 8px;
}

.hero h1 {
    font-size: 2.3em;
    margin: 0 0 12px;
    letter-spacing: -0.03em;
    color: #16181d;
}

.hero h1 img {
    display: block;
    width: 240px;
    max-width: 62%;
    height: auto;
    margin: 0 auto;
}

.hero .lede {
    color: var(--muted);
    font-size: 1.1em;
    margin: 0 auto;
    max-width: 620px;
}

.hero .lede-en {
    color: var(--faint);
    font-size: 0.95em;
    margin: 10px auto 0;
    max-width: 620px;
}

section { margin-bottom: 56px; }

h2.section-title {
    font-size: 1.3em;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
    padding-bottom: 6px;
    margin: 0 0 24px;
    letter-spacing: -0.01em;
}

h3 { letter-spacing: -0.01em; }

/* ---------- cards ---------- */

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 26px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
    display: flex;
    flex-direction: column;
}

.card h3 {
    margin: 12px 0 8px;
    font-size: 1.15em;
}

.card h3 a { color: var(--primary); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }

.card p { margin: 0 0 16px; color: var(--muted); font-size: 0.95em; }

.card .card-foot { margin-top: auto; }

.tag {
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.75em;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 700;
    display: inline-block;
    margin-right: 6px;
}

.tag.dev { background: #fff1e3; color: #b45309; }

.store-links a {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.9em;
    display: block;
    margin-top: 6px;
}

.store-links a:hover { color: var(--primary); }

.upcoming {
    background: #fff7ed;
    border-left: 5px solid var(--accent);
    padding: 22px 24px;
    border-radius: 0 10px 10px 0;
}

.upcoming h3 { margin-top: 0; }
.upcoming p { margin-bottom: 0; color: var(--muted); }

/* ---------- prose / info blocks ---------- */

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 28px 30px;
}

.panel + .panel { margin-top: 20px; }

.panel h2 { margin-top: 0; font-size: 1.2em; }
.panel h3 { font-size: 1.02em; margin: 26px 0 8px; }
.panel h3:first-child { margin-top: 0; }
.panel p, .panel li { color: var(--muted); }
.panel ul { padding-left: 20px; }
.panel li { margin-bottom: 6px; }

.info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
}

.info-table th,
.info-table td {
    text-align: left;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.info-table th {
    width: 190px;
    color: var(--faint);
    font-weight: 600;
}

.info-table td { color: var(--text); }
.info-table tr:last-child th,
.info-table tr:last-child td { border-bottom: 0; }

.lang-note {
    font-size: 0.85em;
    color: var(--faint);
    margin: 0 0 28px;
}

.en-block {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px dashed var(--line);
}

.feature-list { padding-left: 20px; }
.feature-list li { margin-bottom: 8px; color: var(--muted); }

.btn-row { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.92em;
    font-weight: 600;
}

.btn:hover { background: #0952b3; }

.btn.secondary {
    background: var(--surface);
    color: var(--primary);
    border: 1px solid var(--line);
}

.btn.secondary:hover { background: var(--primary-soft); }

.back-link {
    display: inline-block;
    margin-top: 36px;
    font-size: 0.92em;
    text-decoration: none;
}

/* ---------- footer ---------- */

.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--line);
    margin-top: 40px;
}

.footer-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 36px 20px 44px;
    font-size: 0.85em;
    color: var(--muted);
}

.footer-inner strong { color: var(--text); }

.footer-cols {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 32px;
}

.footer-inner p { margin: 4px 0; }

.footer-nav { display: flex; flex-direction: column; gap: 7px; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--primary); }

.footer-bottom {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--faint);
}

@media (max-width: 640px) {
    .wrap { padding-top: 34px; }
    .hero h1 { font-size: 1.85em; }
    .footer-cols { grid-template-columns: 1fr; gap: 24px; }
    .info-table th { width: 130px; }
    .nav { gap: 10px; }
    .nav-links { gap: 16px; }
}
