/* https://www.tokjam.net 첫 화면(앱 소개 + 스토어 이동) 스타일. 앱의 파랑(#1358E2 → #00C3FE 그라데이션)을 그대로 쓴다. */
:root {
  --blue: #1358E2;
  --sky: #00C3FE;
  --ink: #101623;
  --ink-2: #3D4757;
  --ink-3: #6B7484;
  --line: #E6EAF0;
  --card: #FFFFFF;
  --bg: #F7F9FC;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Apple SD Gothic Neo", "Noto Sans KR", "Noto Sans JP", "Noto Sans SC", "Noto Sans TC", "Noto Sans Arabic", "Noto Sans Hebrew", "Noto Sans Devanagari", "Noto Sans Thai", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* 배경의 부드러운 색 덩어리 */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.blob-a { width: 520px; height: 520px; left: -160px; top: -180px; background: radial-gradient(circle, rgba(19,88,226,.55), rgba(19,88,226,0) 70%); }
.blob-b { width: 560px; height: 560px; right: -200px; top: 120px; background: radial-gradient(circle, rgba(0,195,254,.5), rgba(0,195,254,0) 70%); }
.blob-c { width: 480px; height: 480px; left: 30%; bottom: -260px; background: radial-gradient(circle, rgba(111,95,214,.35), rgba(111,95,214,0) 70%); }

/* 상단 */
.top { max-width: 1120px; margin: 0 auto; padding: 22px 24px; display: flex; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 4px 14px rgba(19,88,226,.18); }
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: -.3px; color: var(--ink); }

main { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* 첫 화면 */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; padding: 56px 0 40px; }
.headline {
  font-size: 50px; line-height: 1.12; font-weight: 800; letter-spacing: -1.2px; margin: 0 0 22px;
  background: linear-gradient(100deg, var(--blue), var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 19px; line-height: 1.6; color: var(--ink); margin: 0 0 14px; font-weight: 500; }
.sub { font-size: 16.5px; color: var(--ink-2); margin: 0 0 30px; }

/* 스토어 버튼 */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 20px 12px 16px; border-radius: 16px; min-height: 60px;
  background: var(--ink); color: #fff;
  box-shadow: 0 10px 26px rgba(16,22,35,.18);
  transition: transform .18s ease, box-shadow .18s ease;
}
.store:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(16,22,35,.24); }
.store svg { width: 28px; height: 28px; flex: none; }
.store-ios svg { fill: #fff; }
.store-text { display: flex; flex-direction: column; line-height: 1.15; text-align: start; }
.store-text small { font-size: 11px; opacity: .75; letter-spacing: .2px; }
.store-text strong { font-size: 15px; font-weight: 700; }

/* 폰 그림(CSS 로만) */
.hero-art { position: relative; display: flex; justify-content: center; align-items: center; min-height: 520px; }
.phone {
  width: 260px; height: 520px; border-radius: 44px; padding: 12px;
  background: linear-gradient(160deg, #1b2230, #0d1119);
  box-shadow: 0 30px 70px rgba(16,22,35,.35), inset 0 0 0 2px rgba(255,255,255,.06);
  position: relative; z-index: 2;
  animation: floatY 6s ease-in-out infinite;
}
.phone::before { content: ""; position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 0 0 16px 16px; background: #0d1119; z-index: 3; }
.phone-screen { width: 100%; height: 100%; border-radius: 34px; background: #fff; overflow: hidden; padding: 44px 12px 12px; display: flex; flex-direction: column; }
.ph-top { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.ph-avatar { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--sky)); }
.ph-line { height: 8px; border-radius: 4px; background: #E6EAF0; flex: 1; }
.ph-line.short { width: 55%; flex: none; }
.ph-line-a { width: 110px; flex: none; }
/* 앱의 게시물 블럭과 같은 3열 격자 — 칸은 세로가 조금 긴 1:1.4, 간격은 좁게. */
.ph-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: max-content; gap: 3px; flex: 1; align-content: start; }
.ph-card { aspect-ratio: 1 / 1.4; border-radius: 6px; position: relative; overflow: hidden; }
.ph-card.c1 { background: linear-gradient(160deg, #FFD3A5, #FD6585); }
.ph-card.c2 { background: linear-gradient(160deg, #A1C4FD, #C2E9FB); }
.ph-card.c3 { background: linear-gradient(160deg, #84FAB0, #8FD3F4); }
.ph-card.c4 { background: linear-gradient(160deg, #FBC2EB, #A6C1EE); }
.ph-card.c5 { background: linear-gradient(160deg, #F6D365, #FDA085); }
.ph-card.c6 { background: linear-gradient(160deg, #C471F5, #FA71CD); }
.ph-card.c7 { background: linear-gradient(160deg, #5EE7DF, #B490CA); }
.ph-card.c8 { background: linear-gradient(160deg, #FCCB90, #D57EEB); }
.ph-card.c9 { background: linear-gradient(160deg, #96FBC4, #F9F586); }
.ph-tag { position: absolute; right: 5px; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.ph-tag::after { content: ""; position: absolute; left: 5px; top: 3px; width: 6px; height: 9px; border-radius: 1.5px; background: var(--blue); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%); }
.ph-bar { display: flex; justify-content: center; gap: 8px; padding-top: 12px; }
.ph-dot { width: 6px; height: 6px; border-radius: 50%; background: #D8DEE8; }
.ph-dot.on { background: var(--blue); }

.float {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 16px; background: var(--card);
  box-shadow: 0 14px 34px rgba(16,22,35,.14); width: 190px;
}
.float-a { left: 0; top: 96px; animation: floatY 5s ease-in-out infinite .6s; }
.float-b { right: 0; bottom: 110px; animation: floatY 7s ease-in-out infinite 1.1s; }
.float-lines { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.float-icon, .feature-icon { width: 38px; height: 38px; border-radius: 12px; flex: none; position: relative; }
.i-folder { background: #EAF1FF; }
.i-note { background: #EDEBFB; }
.i-replay { background: #E7F6F1; }
.i-folder::after { content: ""; position: absolute; left: 9px; top: 12px; width: 20px; height: 15px; border-radius: 3px; background: var(--blue); clip-path: polygon(0 0, 40% 0, 50% 20%, 100% 20%, 100% 100%, 0 100%); }
.i-note::after { content: ""; position: absolute; left: 11px; top: 9px; width: 16px; height: 20px; border-radius: 3px; background: #6F5FD6; }
.i-note::before { content: ""; position: absolute; left: 15px; top: 15px; width: 8px; height: 2px; background: #fff; box-shadow: 0 4px 0 #fff, 0 8px 0 #fff; z-index: 1; }
/* 다시 보기 — 초록 동그라미 안의 흰 재생 삼각형 */
.i-replay::after { content: ""; position: absolute; left: 8px; top: 8px; width: 22px; height: 22px; border-radius: 50%; background: #2FA383; }
.i-replay::before { content: ""; position: absolute; left: 17px; top: 14px; width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent #fff; z-index: 1; }

@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* 기능 카드 */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 24px 0 8px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 24px 22px;
  box-shadow: 0 10px 30px rgba(16,22,35,.06);
}
.feature .feature-icon { margin-bottom: 14px; }
.feature h3 { margin: 0 0 8px; font-size: 17.5px; font-weight: 800; letter-spacing: -.2px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* 이야기 */
.story { max-width: 760px; margin: 0 auto; padding: 64px 0 40px; text-align: center; }
.story-main { font-size: 19px; line-height: 1.7; color: var(--ink); margin: 0 0 18px; }
.story-end { font-size: 21px; font-weight: 800; letter-spacing: -.3px; margin: 0; color: var(--blue); }

/* 마지막 다운로드 */
.cta {
  margin: 20px 0 60px; padding: 46px 28px; border-radius: 28px; text-align: center; color: #fff;
  background: linear-gradient(120deg, var(--blue), var(--sky));
  box-shadow: 0 24px 60px rgba(19,88,226,.28);
}
.cta h2 { margin: 0 0 22px; font-size: 30px; font-weight: 800; letter-spacing: -.6px; }
.cta .stores { justify-content: center; }
.cta .store { background: #fff; color: var(--ink); box-shadow: 0 10px 26px rgba(0,0,0,.18); }
.cta .store-ios svg { fill: var(--ink); }

/* 바닥 */
.foot { max-width: 1120px; margin: 0 auto; padding: 10px 24px 40px; color: var(--ink-3); font-size: 13.5px; text-align: center; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 8px; }
.foot-links a:hover { color: var(--blue); }
.copy { margin: 0; }

/* 오른쪽에서 왼쪽으로 쓰는 언어 */
[dir="rtl"] .store { padding: 12px 16px 12px 20px; }
[dir="rtl"] .float-a { left: auto; right: 0; }
[dir="rtl"] .float-b { right: auto; left: 0; }

/* 화면이 좁을 때 */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; text-align: center; }
  .stores { justify-content: center; }
  .headline { font-size: 38px; }
  .hero-art { min-height: 440px; order: 2; }
  .phone { width: 220px; height: 440px; }
  .float { width: 160px; }
  .float-a { left: 0; top: 60px; }
  .float-b { right: 0; bottom: 60px; }
  .features { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .top { padding: 16px 18px; }
  main { padding: 0 18px; }
  .headline { font-size: 31px; letter-spacing: -.8px; }
  .lead { font-size: 17px; }
  .sub { font-size: 15px; }
  .store { width: 100%; justify-content: center; }
  .float { display: none; }
  .story { padding: 44px 0 24px; }
  .story-main { font-size: 17px; }
  .story-end { font-size: 18px; }
  .cta { padding: 34px 20px; border-radius: 22px; }
  .cta h2 { font-size: 24px; }
}
