/* 소개(홍보) 페이지 공통 스타일. 앱(web/src/app/styles.css)과 같은 색을 쓴다. 움직임은 CSS만 (보안 정책상 인라인 스크립트 없음). */
:root {
  color-scheme: dark;
  --bg: #0c0e13;
  --panel: #151821;
  --panel-2: #1b1f2a;
  --line: #272c39;
  --text: #e8ebf2;
  --dim: #a3aabb;
  --faint: #6f7689;
  --accent: #4cc2ff;
  --accent-ink: #06121c;
  --warm: #ffb347;
  --good: #7dffb0;
  --radius: 14px;
  --wide: 1160px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.7 'Pretendard Variable', 'Pretendard', 'Malgun Gothic', 'Apple SD Gothic Neo', system-ui, sans-serif;
  word-break: keep-all; overflow-wrap: anywhere;
}
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.3; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
em { font-style: normal; background: linear-gradient(90deg, var(--accent), #8fd9ff 60%, var(--warm)); -webkit-background-clip: text; background-clip: text; color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ── 머리띠 ── */
.top {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 18px;
  padding: 12px max(16px, calc((100vw - var(--wide)) / 2)); background: rgba(12, 14, 19, .88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.logo { font-weight: 800; font-size: 21px; color: var(--text); text-decoration: none; letter-spacing: -0.03em; }
.logo i { font-style: normal; color: var(--accent); }
.top nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.top nav::-webkit-scrollbar { display: none; }
.top nav a { color: var(--dim); text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: 14.5px; white-space: nowrap; }
.top nav a:hover, .top nav a[aria-current='page'] { color: var(--text); background: var(--panel-2); }
.top .go { flex: none; background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; padding: 8px 16px; border-radius: 999px; font-size: 14.5px; }

main { overflow: hidden; }
main > section, main > aside { padding: 0 max(16px, calc((100vw - var(--wide)) / 2)); }
section + section, section + aside, aside + section { margin-top: 96px; }
h2 { font-size: clamp(24px, 3.2vw, 34px); }

/* ── 히어로 ── */
.hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center;
  padding-top: 72px !important; padding-bottom: 24px !important;
}
.hero::before {
  content: ''; position: absolute; inset: -120px 0 auto; height: 620px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 320px at 15% 30%, rgba(76, 194, 255, .16), transparent 70%),
    radial-gradient(520px 300px at 85% 20%, rgba(255, 179, 71, .10), transparent 70%);
}
.hero-copy { position: relative; z-index: 1; }
.eyebrow { display: inline-block; color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: .02em; padding: 5px 12px; border: 1px solid rgba(76, 194, 255, .35); border-radius: 999px; background: rgba(76, 194, 255, .08); }
.hero h1 { margin-top: 18px; font-size: clamp(32px, 5vw, 56px); font-weight: 800; letter-spacing: -0.035em; }
.lead { margin-top: 20px; color: var(--dim); font-size: clamp(16px, 1.7vw, 19px); max-width: 36em; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 17px; text-decoration: none;
  box-shadow: 0 10px 30px rgba(76, 194, 255, .28); transition: transform .15s, box-shadow .15s;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(76, 194, 255, .38); }
.cta.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.cta.ghost:hover { border-color: var(--accent); }
.cta.big { min-height: 60px; padding: 0 36px; font-size: 19px; }
.fine { margin-top: 14px; color: var(--faint); font-size: 14px; }

/* 히어로 뒤로 단어가 떨어진다 (장식) */
.rain { position: absolute; inset: 0 0 auto; height: 560px; z-index: 0; pointer-events: none; overflow: hidden; -webkit-mask-image: linear-gradient(#000 50%, transparent); mask-image: linear-gradient(#000 50%, transparent); }
.rain span {
  position: absolute; top: -40px; left: var(--x); padding: 4px 10px; border-radius: 8px; font-weight: 700; font-size: 15px;
  /* 제목·글 뒤로 지나가므로 상자 없이 아주 옅게 (글을 가리지 않는 바탕 무늬) */
  color: rgba(232, 235, 242, .16); background: transparent; border: 1px solid rgba(255, 255, 255, .04);
  animation: fall var(--s) linear var(--d) infinite;
}
.rain span:nth-child(3n) { color: rgba(76, 194, 255, .24); }
.rain span:nth-child(4n) { color: rgba(125, 255, 176, .2); }
@keyframes fall { from { transform: translateY(0); opacity: 0; } 12% { opacity: 1; } 85% { opacity: 1; } to { transform: translateY(600px); opacity: 0; } }

/* ── 스크린샷 ── */
.shot { margin: 0; position: relative; }
.shot img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .03); }
.hero-shot { z-index: 1; }
.shot figcaption { margin-top: 14px; text-align: center; color: var(--faint); font-size: 14px; }
.hero-shot::after { content: ''; position: absolute; inset: 12% -6% -8% 8%; z-index: -1; background: radial-gradient(closest-side, rgba(76, 194, 255, .22), transparent); filter: blur(10px); }
.shot.phone { justify-self: center; max-width: 320px; }
.hero-shot.phone { max-width: 300px; }
.hero-shot.phone::after { inset: 10% -30% -6% -30%; }
.shot.phone img { border-radius: 28px; border: 6px solid #232836; }

/* ── 기능 카드 ── */
.features h2, .steps h2, .audience h2, .faq h2 { text-align: center; }
.grid { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { background: linear-gradient(180deg, var(--panel), var(--bg)); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; transition: border-color .2s, transform .2s; }
.card:hover { border-color: rgba(76, 194, 255, .45); transform: translateY(-3px); }
.card h3 { font-size: 17.5px; margin-top: 14px; }
.card p { margin-top: 8px; color: var(--dim); font-size: 15px; }
.icon {
  display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 8px; border-radius: 12px;
  background: rgba(76, 194, 255, .1); color: var(--accent); font-weight: 800; font-size: 17px; border: 1px solid rgba(76, 194, 255, .25);
}

/* ── 미리 알림 ── */
.notice { }
.notice b { display: block; color: var(--warm); margin-bottom: 6px; }
.notice p { color: var(--dim); }
main > .notice > * { max-width: 860px; }
main > .notice { margin-top: 40px; }
main > .notice b, main > .notice p { padding-left: 18px; border-left: 3px solid var(--warm); }

/* ── 기능을 그림과 함께 ── */
.showcase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 56px; align-items: center; }
.showcase.flip .copy { order: 2; }
.showcase .copy p { margin-top: 14px; color: var(--dim); font-size: 17px; }
.showcase .copy h2 { font-size: clamp(22px, 2.8vw, 30px); }
.more { font-weight: 700; text-decoration: none; }

/* ── 단계 ── */
.steps ol { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.steps li { position: relative; padding: 26px 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.steps .num { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; align-items: center; justify-content: center; background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.steps h3 { margin-top: 14px; font-size: 18px; }
.steps p { margin-top: 6px; color: var(--dim); font-size: 15px; }

/* ── 대상별 카드 ── */
.audience ul { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.audience.compact ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.audience a {
  display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 22px 20px; border-radius: var(--radius); text-decoration: none; color: var(--text);
  background: linear-gradient(160deg, rgba(76, 194, 255, .09), rgba(255, 179, 71, .04) 70%), var(--panel); border: 1px solid var(--line); transition: border-color .2s, transform .2s;
}
.audience a:hover { border-color: var(--accent); transform: translateY(-3px); }
.audience a .icon { align-self: flex-start; }
.audience a b { font-size: 18px; }
.audience a span:last-child { color: var(--dim); font-size: 15px; }
.audience a span:last-child::after { content: ' →'; color: var(--accent); }

/* ── 요금 ── */
.price { text-align: center; }
.price p { margin: 14px auto 0; max-width: 46em; color: var(--dim); }

/* ── 자주 묻는 질문 ── */
.faq { max-width: 860px; margin-left: auto; margin-right: auto; }
.faq h2 { margin-bottom: 24px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 700; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-size: 24px; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--dim); }

/* ── 마무리 ── */
.closing { text-align: center; padding-top: 64px !important; padding-bottom: 64px !important; position: relative; }
.closing::before { content: ''; position: absolute; inset: 0 max(16px, calc((100vw - var(--wide)) / 2)); z-index: -1; border-radius: 24px; background: radial-gradient(500px 220px at 50% 0%, rgba(76, 194, 255, .18), transparent 70%), var(--panel); border: 1px solid var(--line); }
.closing p { margin: 12px 0 28px; color: var(--dim); }

/* ── 바닥 ── */
.foot { margin-top: 96px; padding: 32px max(16px, calc((100vw - var(--wide)) / 2)) 48px; border-top: 1px solid var(--line); color: var(--faint); font-size: 14.5px; }
.foot p + p { margin-top: 10px; }
.foot a { color: var(--dim); }
.foot .small { font-size: 13px; }

/* ── 좁은 화면 ── */
@media (max-width: 960px) {
  .hero, .showcase { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .showcase.flip .copy { order: 0; }
  .grid, .audience ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .audience.compact ul { grid-template-columns: minmax(0, 1fr); }
  .steps ol { grid-template-columns: minmax(0, 1fr); }
  section + section, section + aside, aside + section { margin-top: 72px; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .top { gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .top nav { display: none; }
  .top .go { margin-left: auto; }
  .hero { padding-top: 40px !important; }
  .grid, .audience ul { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 18px; }
  .cta { width: 100%; }
  .ctas { flex-direction: column; }
  .cta.big { width: auto; max-width: 100%; }
  .shot.phone { max-width: 260px; }
  /* 좁은 화면에서는 떨어지는 장식 글자가 제목에 겹친다 */
  .rain { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rain span { animation: none; opacity: .5; top: auto; bottom: calc(var(--x) * 3); }
  .card, .audience a, .cta { transition: none; }
}
