@font-face {
  font-family: "Pretendard Variable";
  font-style: normal;
  font-weight: 45 920;
  font-display: swap;
  src: url("assets/fonts/PretendardVariable.woff2") format("woff2-variations");
}

@font-face {
  font-family: "MemomentKkukkukk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:
    url("assets/fonts/MemomentKkukkukk.ttf") format("truetype"),
    local("MemomentKkukkukk"),
    local("Memoment Kkukkkuk"),
    local("MemomentKkukkkuk"),
    local("메모먼트 꾹꾹체");
}

:root {
  --ink: #2a2050;
  --muted: #6b6580;
  --lavender: #eeeaff;
  --pippin: #f0eff5;
  --purple: #8157d4;
  --yellow: #f8d77b;
  --white: #fff;
  --shadow: 0 16px 18px rgba(42, 32, 80, 0.18);
  --display: "MemomentKkukkukk", "Arial Rounded MT Bold", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  --body: "Pretendard Variable", Pretendard, "Noto Sans KR", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: var(--display); font-synthesis: none; background: #fff; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, h4, p { margin-top: 0; }

/* 피그마 원본: 랜딩 카피는 꾹꾹체, 앱 UI 미리보기만 Pretendard */
.mock-panel,
.mock-panel *,
.resident-panel,
.resident-panel *,
.image-panel,
.image-panel * {
  font-family: var(--body);
}

.site-header {
  position: fixed; z-index: 100; top: 0; left: 0; right: 0; height: 64px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 24px;
  color: white; background: rgba(204, 204, 204, .2); backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 8px; font: 400 18px var(--display); }
.brand-character { width: 52px; height: 32px; border-radius: 16px; overflow: hidden; }
.brand-character img { width: 100%; height: 100%; object-fit: cover; }
.header-cta { padding: 10px 18px; border-radius: 10px; color: var(--ink); background: var(--yellow); font-weight: 400; font-size: 12px; box-shadow: 0 4px 7px rgba(248,215,123,.2); }

.hero {
  min-height: 898px; color: white; position: relative;
  background: #07175e url("assets/hero_starfield_background.png") center/cover no-repeat;
}
.hero-inner { width: min(1262px, calc(100% - 56px)); min-height: 898px; margin: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; padding-top: 64px; }
.hero-copy { justify-self: end; width: min(100%, 511px); }
.eyebrow { font: 400 25px var(--display); letter-spacing: .6px; margin-bottom: 8px; }
.hero-title-wrap { position: relative; width: max-content; }
.hero h1 { font: 400 100px/1 var(--display); letter-spacing: -4px; margin: 0 0 22px; }
.hero-star { position: absolute; width: 123px; height: 111px; object-fit: cover; top: -38px; right: -106px; filter: drop-shadow(0 0 16px #ffeeb3); }
.hero-description { color: #f0eff5; font-size: 15px; line-height: 1.7; margin-bottom: 10px; }
.store-buttons { display: flex; gap: 16px; flex-wrap: wrap; padding: 16px 0; }
.store-buttons a, .store-buttons img { width: 194px; height: 58px; }
.phone-stage { position: relative; height: 658px; display: flex; justify-content: center; align-items: center; }
.phone { position: relative; height: 658px; width: 323px; }
.phone-body { position: absolute; inset: 0; width: 100%; height: 100%; }
.phone-screen { position: absolute; width: 291px; height: 629px; left: 16px; top: 14px; object-fit: cover; border-radius: 36px; }
.phone-body.inner { inset: 3px 5px; width: calc(100% - 10px); height: calc(100% - 6px); pointer-events: none; }
.peek-character { position: absolute; width: 126px; left: calc(50% - 244px); z-index: 2; }

.section-pad { padding: 100px 28px; }
.narrow { width: min(1080px, 100%); margin: 0 auto; }
.section-title { font: 400 48px/1.32 var(--display); letter-spacing: -.5px; text-align: center; margin-bottom: 14px; }
.section-title.light { color: var(--pippin); }
.section-subtitle { text-align: center; color: var(--muted); font-size: 18px; line-height: 1.6; margin-bottom: 54px; }

.problem { min-height: 681px; display: flex; align-items: center; background: linear-gradient(#21269e, #7296e3 64%, #81abf0); }
.problem .narrow { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.problem .section-title { font-size: 56px; margin: 0; }
.comparison { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 0 180px; }
.compare-card { display: flex; align-items: center; gap: 9px; min-width: 310px; margin: 0; padding: 21px 24px; background: var(--pippin); border-radius: 16px; }
.compare-card img { width: 48px; height: 48px; object-fit: cover; border-radius: 50%; }
.compare-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.compare-card strong { color: var(--ink); font: 400 24px var(--display); }
.therefore { color: var(--pippin); font: 400 22px var(--display); margin: 0; }
.answer-card { width: min(720px, 100%); min-height: 148px; position: relative; text-align: center; padding: 24px 120px 24px; background: white; border-radius: 16px; box-shadow: 0 15px 8px rgba(42,32,80,.3); }
.answer-card > span { color: #8775c5; font-weight: 400; }
.answer-card p { font: 400 26px/1.35 var(--display); margin: 12px 0 0; }
.answer-card em { color: var(--purple); font-style: normal; }
.answer-card img { position: absolute; width: 146px; right: -15px; bottom: -21px; }

.how { min-height: 791px; display: flex; align-items: center; background: #9cc2f7 url("assets/how_sky_background.png") center/cover no-repeat; }
.two-tone { color: white; }
.two-tone span { color: #34246f; }
.how-grid { margin-top: 52px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 100px; text-align: center; }
.how-item { position: relative; }
.number { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; color: #806dcc; background: white; margin-bottom: 6px; }
.how-icon { width: 150px; height: 150px; margin: 0 auto 16px; display: grid; place-items: center; background: rgba(255,255,255,.4); border-radius: 50%; }
.how-icon img { width: 100px; height: 100px; object-fit: contain; }
.how-item h3 { font: 400 20px var(--display); margin-bottom: 12px; }
.how-item p { font-size: 14px; line-height: 1.55; color: #46405f; }

.meet { background: linear-gradient(#f4f2ff, #fff); }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.feature-card { position: relative; min-height: 635px; padding: 32px; background: white; border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.step-pill { display: inline-block; padding: 6px 10px; color: #806dcc; background: #f2effd; border-radius: 6px; font-size: 12px; font-weight: 400; }
.feature-card h3 { font: 400 28px/1.35 var(--display); margin: 14px 0 10px; }
.feature-card > p { color: var(--muted); font-size: 14px; line-height: 1.55; margin-bottom: 16px; }
.mock-panel { min-height: 385px; padding: 34px; background: #f6f6f7; border-radius: 10px; }
.form-panel h4 { font: 700 18px var(--body); margin-bottom: 4px; }
.form-panel small { color: #aaa; }
.form-panel label { display: block; margin-top: 22px; font-size: 12px; }
.form-panel label > span:first-of-type { color: var(--purple); }
.fake-input { display: flex; justify-content: space-between; margin-top: 6px; padding: 14px; color: #bbb !important; background: white; border-radius: 8px; }
.gender-row { display: flex; gap: 8px; margin-top: 6px; }
.gender-row i { flex: 1; text-align: center; padding: 13px; font-style: normal; border: 1px solid #ddd; border-radius: 8px; }
.gender-row i:first-child { border-color: #6954ff; color: #6954ff; }
.resident-panel { text-align: center; }
.resident-panel h4 { font: 700 18px var(--body); }
.resident-card { width: 205px; margin: 12px auto 0; position: relative; }
.resident-card img { width: 205px; height: 328px; object-fit: cover; border-radius: 14px; }
.resident-card div { position: absolute; left: 0; right: 0; bottom: 24px; display: flex; flex-direction: column; gap: 6px; }
.resident-card b { font: 700 22px var(--body); }
.resident-card small { font-size: 8px; }
.resident-card span { color: #f26b5d; font-size: 8px; }

.village {
  --village-ink: #1f5a4a;
  --village-active: rgba(168,216,197,.8);
  --village-card: rgba(226,255,236,.72);
  --village-border: rgba(85,170,120,.2);
  min-height: 943px;
  color: var(--village-ink);
  background-color: #d7ffe0;
  background-image: url("assets/village_green_forest_background.png");
  background-position: center bottom;
  background-size: cover;
  background-repeat: no-repeat;
  transition: color .45s ease, background-color .45s ease, background-image .2s ease;
}
.village.village-forest {
  background-image: url("assets/village_green_forest_background.png");
}
.village.village-sun {
  --village-ink: #873f3a;
  --village-active: rgba(244,155,145,.72);
  --village-card: rgba(255,232,226,.76);
  --village-border: rgba(185,96,86,.22);
  background-color: #ffd8cf;
  background-image: url("assets/village_red_sun_background.png");
}
.village.village-field {
  --village-ink: #745d18;
  --village-active: rgba(235,200,96,.72);
  --village-card: rgba(255,246,208,.76);
  --village-border: rgba(166,133,35,.22);
  background-color: #fff0b8;
  background-image: url("assets/village_yellow_field_background.png");
}
.village.village-rock {
  --village-ink: #5e5960;
  --village-active: rgba(188,183,187,.72);
  --village-card: rgba(240,237,235,.78);
  --village-border: rgba(101,96,103,.2);
  background-color: #e9e6e4;
  background-image: url("assets/village_white_rock_background.png");
}
.village.village-lake {
  --village-ink: #f0efff;
  --village-active: rgba(91,104,173,.78);
  --village-card: rgba(20,37,102,.74);
  --village-border: rgba(209,215,255,.2);
  background-color: #7b829f;
  background-image: url("assets/village_black_lake_background.png");
}
.village > .narrow > .section-title,
.village > .narrow > .section-subtitle {
  position: relative;
  z-index: 1;
}
.village:not(.village-lake) > .narrow > .section-title { color: #2a2050; }
.village:not(.village-lake) > .narrow > .section-subtitle { color: #6b6580; }
.village.village-lake > .narrow > .section-title {
  color: #fff;
  text-shadow: 0 2px 14px rgba(24, 29, 63, .45);
}
.village.village-lake > .narrow > .section-subtitle {
  color: rgba(255,255,255,.88);
  text-shadow: 0 1px 10px rgba(24, 29, 63, .4);
}
.village-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; width: min(720px,100%); margin: 0 auto 28px; }
.village-tabs button { border: 1px solid rgba(42,32,80,.08); padding: 12px 6px; color: inherit; background: rgba(255,255,255,.3); opacity: .62; border-radius: 16px; cursor: pointer; transition: .3s ease; }
.village-tabs button.active { background: var(--village-active); opacity: 1; transform: translateY(-3px); }
.village-tabs img { width: 42px; height: 42px; object-fit: cover; border-radius: 50%; margin: 0 auto 6px; }
.village-card { width: min(720px,100%); margin: auto; padding: 28px 34px; color: var(--village-ink); background: var(--village-card); border: 1px solid rgba(255,255,255,.65); border-radius: 16px; box-shadow: 0 20px 40px rgba(42,32,80,.12); backdrop-filter: blur(10px); transition: color .35s ease, background .35s ease; }
.village-heading { display: flex; align-items: center; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--village-border); }
.village-heading img { width: 52px; height: 52px; object-fit: cover; border-radius: 50%; }
.village-heading h3 { font: 400 24px var(--display); color: inherit; margin-bottom: 5px; }
.village-heading p, .village-card > p { margin: 0; font-size: 13px; line-height: 1.7; }
.village-card > p { padding: 18px 0; }
.trait-list { display: grid; gap: 8px; }
.trait-list p { margin: 0; display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 12px 16px; background: rgba(255,255,255,.7); border-radius: 10px; font-size: 13px; }
.trait-list b { color: inherit; }

.letters { background: linear-gradient(#fff, #e7e5ff); }
.letters .feature-grid { margin-top: 58px; }
.image-panel { min-height: 265px; padding: 20px; display: grid; place-items: center; overflow: hidden; }
.image-panel img { width: 100%; max-height: 225px; object-fit: contain; }
.image-panel.tall { min-height: 425px; }
.image-panel.tall img { max-height: 387px; }
.story-card { overflow: visible; }
.letter-character { position: absolute; width: 190px; right: 18px; top: 0; transform: translateY(-32%); }

.forecast { min-height: 844px; background: #e0ddfa url("assets/forecast_background.png") center/cover no-repeat; }
.forecast-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 52px; }
.forecast-card { min-height: 210px; padding: 26px; background: rgba(255,255,255,.9); border-radius: 14px; box-shadow: var(--shadow); }
.forecast-card.purple { background: rgba(218,207,255,.92); }
.forecast-card span { color: #5d4ba4; font-size: 13px; }
.forecast-card h3 { font: 400 18px var(--display); margin: 22px 0 12px; }
.forecast-card p { margin: 0; font-size: 13px; line-height: 1.65; }
.weather-answer { width: min(720px,100%); min-height: 156px; position: relative; margin: 58px auto 0; padding: 28px 160px 24px 36px; text-align: center; background: white; border-radius: 16px; box-shadow: var(--shadow); }
.weather-answer p { font: 400 23px/1.45 var(--display); margin: 0 0 6px; }
.weather-answer small { color: #6d5bbb; }
.weather-answer img { position: absolute; right: -8px; bottom: 0; width: 146px; }

.starmail { min-height: 1041px; color: white; background: #071453 url("assets/starlight_mail_background.png") center/cover no-repeat; }
.star-inner .section-title { margin-bottom: 70px; }
.star-layout { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 34px; }
.star-copy { display: grid; gap: 28px; }
.glass-card { padding: 28px; border: 1px solid rgba(255,255,255,.25); border-radius: 16px; background: rgba(80,96,166,.25); backdrop-filter: blur(10px); }
.glass-card span { color: #ffe681; font-size: 13px; }
.glass-card h3 { font: 400 24px/1.4 var(--display); margin: 12px 0; }
.glass-card p { color: #dfe4ff; font-size: 14px; line-height: 1.65; margin: 0; }
.star-phones { display: flex; justify-content: center; gap: 16px; }
.star-phones img { width: 245px; height: 532px; object-fit: cover; border: 8px solid #0a0a10; border-radius: 42px; }

.bridge { min-height: 228px; display: grid; place-items: center; text-align: center; padding: 40px 24px; color: white; background: linear-gradient(180deg, #00184e 0%, #000214 100%); }
.bridge h2 { font: 400 46px var(--display); margin: 0; }
.download { min-height: 839px; display: grid; place-items: center; color: white; background: #02091f url("assets/download_starfield_background.png") center/cover no-repeat; }
.download-inner { text-align: center; }
.download-character { width: 210px; height: 164px; object-fit: cover; object-position: 50% 22%; margin: 0 auto 12px; }
.download-title { position: relative; display: inline-block; }
.download-title > img { position: absolute; width: 70px; left: -58px; top: 10px; }
.download h2 { font: 400 48px/1.35 var(--display); margin-bottom: 26px; }
.download p { color: #f0eff5; }
.store-buttons.centered { justify-content: center; }
footer { min-height: 150px; padding: 38px 24px; color: rgba(255,255,255,.65); text-align: center; background: #09245f url("assets/footer_starfield_background.png") center bottom/cover no-repeat; font-size: 12px; }
footer nav { display: flex; justify-content: center; gap: 12px; margin-bottom: 20px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .24s; }

@media (max-width: 900px) {
  .hero { min-height: 920px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding: 130px 0 70px; }
  .hero-copy { justify-self: center; }
  .hero-title-wrap { margin: auto; }
  .hero-star { width: 82px; height: 76px; right: -70px; }
  .store-buttons { justify-content: center; }
  .phone-stage { height: 500px; }
  .phone { transform: scale(.76); }
  .peek-character { left: calc(50% - 190px); width: 100px; }
  .comparison { padding: 0; }
  .how-grid { gap: 28px; }
  .star-layout { grid-template-columns: 1fr; }
  .star-copy { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .site-header { height: 54px; padding: 0 16px; }
  .brand { font-size: 16px; }
  .brand-character { width: 44px; height: 27px; }
  .header-cta { padding: 8px 12px; }
  .section-pad { padding: 80px 20px; }
  .section-title, .problem .section-title { font-size: 34px; letter-spacing: -1px; }
  .section-subtitle { font-size: 15px; margin-bottom: 38px; }
  .hero { min-height: 1030px; }
  .hero-inner { width: calc(100% - 40px); min-height: auto; padding-top: 120px; }
  .eyebrow { font-size: 18px; }
  .hero h1 { font-size: 68px; }
  .hero-description { font-size: 13px; }
  .store-buttons { gap: 10px; }
  .store-buttons a, .store-buttons img { width: 145px; height: auto; }
  .phone-stage { height: 455px; }
  .phone { transform: scale(.68); }
  .peek-character { display: none; }
  .comparison, .feature-grid, .forecast-grid { grid-template-columns: 1fr; }
  .compare-card { min-width: 0; }
  .answer-card { padding: 22px 28px 96px; }
  .answer-card p { font-size: 21px; }
  .answer-card img { right: 50%; transform: translateX(50%); width: 120px; }
  .how-grid { grid-template-columns: 1fr; gap: 42px; }
  .how { background-position: center; }
  .how-icon { width: 130px; height: 130px; }
  .feature-card { min-height: auto; padding: 28px; }
  .feature-card h3 { font-size: 24px; }
  .mock-panel { padding: 22px; min-height: 340px; }
  .village-tabs { grid-template-columns: repeat(5, minmax(70px,1fr)); overflow-x: auto; justify-content: start; }
  .village-tabs button { font-size: 11px; }
  .village-card { padding: 22px; }
  .trait-list p { grid-template-columns: 90px 1fr; }
  .letter-character { width: 130px; }
  .weather-answer { padding: 26px 28px 112px; }
  .weather-answer img { width: 125px; right: 50%; transform: translateX(50%); }
  .star-inner .section-title { margin-bottom: 44px; }
  .star-copy { grid-template-columns: 1fr; }
  .star-phones { gap: 8px; }
  .star-phones img { width: 44%; height: auto; border-width: 5px; border-radius: 28px; }
  .bridge h2 { font-size: 30px; }
  .download { min-height: 720px; }
  .download h2 { font-size: 36px; }
  .download-character { width: 170px; height: 132px; }
  .download-title > img { width: 52px; left: -36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
