:root {
  --night: #0F1B3D;
  --cream-light: #F4EBD0;
  --star-gold: #F5C542;
  --cream: #F3E9DC;
  --ink: #1F2A44;
  --star-orange: #E4572E;
  --max-width: 1040px;
  --gutter: 20px;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  word-break: keep-all;
  overflow-wrap: break-word;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* 상단 바 */
.topbar {
  background: var(--night);
  color: var(--cream-light);
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

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

.brand-link img {
  height: 44px;
  width: auto;
}

.lang-switch {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.lang-switch a {
  text-decoration: none;
  padding: 4px 6px;
  border-radius: 4px;
  color: var(--cream-light);
  opacity: 0.7;
}

.lang-switch a:hover,
.lang-switch a:focus-visible {
  opacity: 1;
}

.lang-switch [aria-current="page"] {
  padding: 4px 6px;
  color: var(--star-gold);
  opacity: 1;
}

.lang-switch .sep {
  opacity: 0.5;
}

/* 첫 화면 */
.hero {
  position: relative;
  background: var(--night);
  color: var(--cream-light);
  overflow: hidden;
  padding: 40px 0 72px;
  text-align: center;
}

.sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sky span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--cream-light);
  opacity: 0.55;
}

.sky span.gold {
  background: var(--star-gold);
  opacity: 0.8;
}

.sky span.big {
  width: 4px;
  height: 4px;
}

.hero .container {
  position: relative;
}

.hero-logo {
  width: min(360px, 80%);
  margin: 0 auto 28px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(26px, 5vw, 40px);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero p {
  margin: 0 auto;
  max-width: 560px;
  font-size: clamp(16px, 2.2vw, 18px);
  opacity: 0.9;
}

/* 크림 섹션 공통 */
.section {
  padding: 64px 0;
}

.section h2 {
  margin: 0 0 28px;
  font-size: clamp(22px, 3.5vw, 28px);
  line-height: 1.3;
  font-weight: 700;
}

/* 앱 카드 */
.apps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 720px) {
  .apps-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.app-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  background: var(--cream-light);
  border: 1px solid rgba(31, 42, 68, 0.12);
  border-radius: 16px;
  min-width: 0;
}

.app-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  flex: none;
}

.app-name {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
}

.app-name a {
  text-decoration: none;
}

.app-name a:hover,
.app-name a:focus-visible {
  text-decoration: underline;
}

.badge {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--star-orange);
  color: var(--cream-light);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.app-desc {
  margin: 0;
}

.more-link {
  align-self: flex-start;
  color: var(--star-orange);
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
}

.more-link:hover,
.more-link:focus-visible {
  text-decoration: underline;
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.store-links a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.store-links a:hover,
.store-links a:focus-visible {
  background: var(--night);
}

/* 문의 */
.contact {
  padding-top: 0;
}

.contact p {
  margin: 0 0 8px;
}

.contact-mail {
  color: var(--star-orange);
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-mail:hover,
.contact-mail:focus-visible {
  text-decoration: underline;
}

/* 하단 */
.footer {
  border-top: 1px solid rgba(31, 42, 68, 0.15);
  padding: 28px 0 40px;
  font-size: 14px;
}

.footer ul {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.footer p {
  margin: 0;
}

/* 404 */
.notfound {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px var(--gutter);
}

.notfound h1 {
  margin: 0 0 16px;
  font-size: 56px;
  line-height: 1;
  color: var(--star-orange);
}

.notfound p {
  margin: 0 0 6px;
  font-size: 18px;
}

.notfound a {
  font-weight: 700;
}
