/* 코랄픽 웹사이트 공통 모양. 색은 로고(코랄·남색)와 Ghostick 종이색에서 가져왔다. */
@font-face { font-family: "PretendardSub"; font-weight: 400; font-display: swap; src: url("/assets/fonts/pretendard-400.woff2") format("woff2"); }
@font-face { font-family: "PretendardSub"; font-weight: 600; font-display: swap; src: url("/assets/fonts/pretendard-600.woff2") format("woff2"); }

:root {
  --paper: #F6F2EB;
  --card: #FFFDF9;
  --ink: #15233F;
  --ink-2: #2B3954;
  --muted: #646B78;
  --coral: #EE6A4F;
  --coral-soft: #F48A61;
  --line: rgba(21, 35, 63, .11);
  --shadow: 0 1px 2px rgba(21, 35, 63, .04), 0 12px 32px -12px rgba(21, 35, 63, .16);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "PretendardSub", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", "Malgun Gothic", sans-serif;
  font-size: 17px; line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { width: min(1120px, 100% - 48px); margin: 0 auto; }

/* 머리 */
.top { position: sticky; top: 0; z-index: 10; background: rgba(246, 242, 235, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 34px; width: auto; }
.brand b { font-weight: 600; font-size: 19px; letter-spacing: -.03em; }
.brand span { color: var(--muted); font-size: 14px; letter-spacing: 0; margin-left: 2px; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--coral); }
.nav .lang { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; letter-spacing: .02em; }
.nav .lang:hover { border-color: var(--coral); }

/* 첫 화면 */
.hero { position: relative; padding: 112px 0 104px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 48px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); letter-spacing: .02em; margin: 0 0 28px; }
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--coral); }
h1 { font-size: clamp(40px, 6.2vw, 76px); line-height: 1.12; letter-spacing: -.045em; font-weight: 600; margin: 0 0 28px; }
h1 em { font-style: normal; color: var(--coral); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 34em; margin: 0; }
.hero-mark { position: relative; justify-self: center; width: min(340px, 80%); }
.hero-mark::before { content: ""; position: absolute; inset: -18% -22%; background: radial-gradient(closest-side, rgba(244, 138, 97, .30), rgba(244, 138, 97, 0) 70%); z-index: -1; }
.hero-mark img { width: 100%; height: auto; filter: drop-shadow(0 24px 40px rgba(21, 35, 63, .18)); }

/* 구역 공통 */
section { padding: 96px 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 40px; border-top: 1px solid var(--line); padding-top: 28px; }
h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.035em; line-height: 1.25; font-weight: 600; margin: 0; }
.sec-head p { margin: 0; color: var(--muted); font-size: 15px; }

/* 앱 카드 */
.apps { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.app { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 36px; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.app:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(21, 35, 63, .05), 0 24px 48px -16px rgba(21, 35, 63, .22); }
.app-top { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.app-top img { width: 72px; height: 72px; border-radius: 17px; box-shadow: 0 8px 20px -8px rgba(21, 35, 63, .35); }
.app h3 { font-size: 26px; letter-spacing: -.035em; line-height: 1.2; margin: 0 0 4px; font-weight: 600; }
.app .tag { color: var(--coral); font-size: 15px; margin: 0; }
.app .desc { color: var(--ink-2); margin: 0 0 28px; flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { font-size: 13px; padding: 5px 12px; border-radius: 999px; background: rgba(21, 35, 63, .06); color: var(--ink-2); }
.links { display: flex; flex-wrap: wrap; gap: 6px 20px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; }
.links a { text-decoration: none; color: var(--ink); }
.links a::after { content: " →"; color: var(--coral); transition: margin .3s var(--ease); }
.links a:hover { color: var(--coral); }
.links .soon { color: var(--muted); }

/* 회사 정보 */
.info { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; margin: 0; }
.info div { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info dt { color: var(--muted); font-size: 15px; }
.info dd { margin: 0; font-size: 16px; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact a.box { display: block; text-decoration: none; background: var(--ink); color: #F6F2EB; border-radius: 24px; padding: 32px 36px; transition: transform .5s var(--ease); }
.contact a.box:hover { transform: translateY(-3px); }
.contact a.box.light { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.contact small { display: block; font-size: 14px; opacity: .72; margin-bottom: 8px; }
.contact strong { font-size: clamp(18px, 2vw, 22px); font-weight: 600; letter-spacing: -.02em; }

/* 바닥 */
footer { padding: 40px 0 56px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--coral); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* 처음 나올 때 차례로 올라오기(0.8초, 80ms 간격) */
.rise { opacity: 0; transform: translateY(18px); animation: rise .8s var(--ease) forwards; }
.d1 { animation-delay: .08s; } .d2 { animation-delay: .16s; } .d3 { animation-delay: .24s; } .d4 { animation-delay: .32s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rise, .js .reveal { animation: none; opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* 좁은 화면 */
@media (max-width: 860px) {
  .hero { padding: 64px 0 72px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-mark { width: 180px; justify-self: start; order: -1; }
  .apps, .contact, .info { grid-template-columns: 1fr; }
  section { padding: 72px 0; }
  .app { padding: 28px; border-radius: 24px; }
  .nav { gap: 18px; }
  .nav .hide-sm { display: none; }
}
@media (max-width: 420px) {
  .wrap { width: calc(100% - 36px); }
  .brand span { display: none; }
  .info div { grid-template-columns: 1fr; gap: 2px; }
  .sec-head { flex-direction: column; gap: 8px; }
}
