:root {
  --brand: #ffcf00;
  --brand-deep: #f2b900;
  --ink: #17191d;
  --muted: #68707d;
  --line: #e6e8ec;
  --surface: #ffffff;
  --soft: #f6f7f9;
  --danger: #dc2626;
  --blue: #2563eb;
  --shadow: 0 12px 36px rgba(17, 24, 39, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--surface); font-family: "Noto Sans KR", sans-serif; -webkit-font-smoothing: antialiased; }
button, a { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.container { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 14px; border-radius: 8px; background: #111827; color: #fff; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { height: 88px; border-bottom: 1px solid rgba(23, 25, 29, .08); background: rgba(255,255,255,.96); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; }
.brand img { width: 156px; max-height: 64px; object-fit: contain; }
.official-badge { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border: 1px solid #e3b900; border-radius: 999px; background: #fff8d6; font-size: .875rem; font-weight: 700; }

.hero { overflow: hidden; background: linear-gradient(135deg, #ffd91f 0%, var(--brand) 55%, #f7bd00 100%); }
.hero-inner { min-height: 330px; display: flex; align-items: center; padding-block: 64px; }
.hero-copy { max-width: 720px; }
.eyebrow { margin: 0 0 12px; font-size: .78rem; font-weight: 800; letter-spacing: .13em; }
.hero h1 { margin: 0; font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.14; letter-spacing: -.045em; }
.hero h1 strong { font-weight: 800; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.12); }
.hero-copy > p:last-child { max-width: 610px; margin: 24px 0 0; font-size: 1rem; line-height: 1.8; }

.catalog { padding-block: 76px 88px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.04em; }
.section-heading > p { margin: 0 0 4px; color: var(--muted); }
.category-nav { display: flex; gap: 8px; margin-bottom: 28px; overflow-x: auto; scrollbar-width: none; }
.category-nav::-webkit-scrollbar { display: none; }
.category-nav button { flex: 0 0 auto; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: #555d68; font-weight: 700; cursor: pointer; transition: .2s ease; }
.category-nav button:hover { border-color: #c9cdd3; background: var(--soft); }
.category-nav button.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }
.category-nav button:focus-visible, .download-button:focus-visible { outline: 3px solid rgba(37,99,235,.3); outline-offset: 3px; }

.app-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.app-card { min-width: 0; display: grid; grid-template-columns: 108px 1fr; gap: 22px; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 1px 0 rgba(17,24,39,.02); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.app-card:hover { transform: translateY(-3px); border-color: #d7d9de; box-shadow: var(--shadow); }
.app-card[hidden] { display: none; }
.app-icon { width: 108px; height: 108px; padding: 4px; border: 1px solid #eef0f3; border-radius: 24px; background: #fafafa; object-fit: contain; }
.app-content { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.app-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.platform, .version { display: inline-flex; align-items: center; min-height: 26px; padding: 0 9px; border-radius: 999px; font-size: .73rem; font-weight: 700; }
.platform { background: #fff4bf; color: #6d5200; }
.version { background: #eef2ff; color: #3730a3; }
.app-card h3 { margin: 0; font-size: 1.2rem; line-height: 1.4; letter-spacing: -.025em; }
.app-description { flex: 1; margin: 10px 0 20px; color: var(--muted); font-size: .9rem; line-height: 1.65; }
.app-description strong { color: var(--ink); }
.app-alert { display: block; margin-top: 7px; color: var(--danger); font-size: .8rem; font-weight: 600; }
.download-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px; background: var(--ink); color: #fff; font-size: .9rem; font-weight: 700; text-decoration: none; transition: background .2s ease, transform .2s ease; }
.download-button:hover { background: #30343a; }
.download-button::after { content: "↓"; font-size: 1.1rem; }
.download-button.external::after { content: "↗"; }
.app-actions { width: 100%; display: flex; flex-wrap: wrap; gap: 8px; }
.app-actions .download-button { flex: 1 1 auto; }

.notice-section { padding: 0 0 88px; background: linear-gradient(#fff 0 48%, var(--soft) 48% 100%); }
.notice-card { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 30px 34px; border: 1px solid #ead78d; border-radius: 20px; background: #fffdf4; box-shadow: 0 10px 35px rgba(93, 71, 0, .07); }
.notice-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--brand); font-size: 1.25rem; font-weight: 900; }
.notice-card h2 { margin: 1px 0 10px; font-size: 1.18rem; }
.notice-card ul { margin: 0; padding-left: 20px; color: #5c626c; font-size: .9rem; line-height: 1.85; }
.site-footer { padding-block: 36px; background: var(--soft); border-top: 1px solid var(--line); }
.site-footer strong { font-size: .95rem; }
.site-footer p { margin: 7px 0 0; color: #7a818b; font-size: .8rem; }

@media (max-width: 860px) {
  .app-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .container { width: min(100% - 28px, 1120px); }
  .site-header { height: 72px; }
  .brand img { width: 132px; max-height: 54px; }
  .official-badge { min-height: 30px; padding-inline: 10px; font-size: .75rem; }
  .hero-inner { min-height: auto; padding-block: 44px; }
  .hero-copy > p:last-child { font-size: .92rem; line-height: 1.7; }
  .catalog { padding-block: 56px 64px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 10px; font-size: .9rem; }
  .app-card { grid-template-columns: 76px 1fr; gap: 16px; padding: 20px; border-radius: 18px; }
  .app-icon { width: 76px; height: 76px; border-radius: 18px; }
  .app-card h3 { font-size: 1.06rem; }
  .app-description { grid-column: 1 / -1; margin-top: 6px; }
  .download-button { width: 100%; }
  .notice-section { padding-bottom: 64px; }
  .notice-card { grid-template-columns: 1fr; gap: 12px; padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
