/* ChartChart 랜딩 — Claude Design 핸드오프(ChartChart Landing.dc.html) 이식본.
   수치는 원본 프로토타입 값을 그대로 옮겼습니다. 값을 바꾸면 디자인과 어긋납니다. */

:root {
  --ink:          #14141B;
  --ink-body:     #23232E;
  --muted:        #63636F;
  --muted-2:      #9A9AA8;
  --dim:          #A4A4B5;
  --dim-2:        #C4C4D0;

  --violet:       #6D28D9;
  --violet-deep:  #4C1D95;
  --violet-soft:  #CDB6F2;

  --red:          #FF3B5C;
  --blue:         #2D6FF0;

  --bg:           #F2F2F7;
  --surface:      #FFFFFF;

  --ease:         cubic-bezier(.32, .72, 0, 1);

  --font-display: 'Bricolage Grotesque', 'Noto Sans KR', sans-serif;
  --font-body:    'Noto Sans KR', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* 카드 이너 코어 공통 그림자 (더블베젤의 안쪽 면) */
  --shadow-core:  0 1px 1px rgba(255,255,255,.9) inset,
                  0 0 0 1px rgba(22,22,31,.045),
                  0 26px 50px -28px rgba(22,22,31,.22);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-body);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  line-break: strict;
}

a { color: var(--violet); text-decoration: none; }
a:hover { color: var(--violet-deep); }

/* ── 등장 모션 ─────────────────────────────────────────── */
@keyframes cc-rise {
  from { opacity: 0; transform: translateY(56px); filter: blur(10px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
/* 숨김은 .js-reveal 이 붙었을 때만 건다. 스크립트가 죽거나 못 받아지면 클래스가
   없어 아무것도 감춰지지 않는다 — 빈 페이지가 되는 사고를 구조로 막는다.
   클래스는 <head> 인라인 스크립트가 그리기 전에 붙인다(깜빡임 방지). */
.js-reveal [data-reveal] { opacity: 0; }
.js-reveal [data-reveal].in { animation: cc-rise .9s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-reveal [data-reveal] { opacity: 1; }
  .js-reveal [data-reveal].in { animation: none; }
  * { transition-duration: .01ms !important; }
}

/* ── 종이 질감 그레인 ──────────────────────────────────── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}

/* ── 플로팅 글래스 내비 ────────────────────────────────── */
.nav-dock {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  padding: 22px 16px 0;
  pointer-events: none;
}

.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  padding: 8px 8px 8px 22px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  box-shadow: 0 1px 0 0 rgba(255,255,255,.9) inset,
              0 18px 40px -18px rgba(22,22,31,.24),
              0 0 0 1px rgba(22,22,31,.06);
  transition: transform .7s var(--ease), opacity .7s var(--ease);
}
.nav.is-hidden { transform: translateY(-140%); opacity: 0; }

.wordmark { display: flex; align-items: center; gap: 5px; }
.wordmark__text {
  font-weight: 900;
  font-size: 17px;
  letter-spacing: -.5px;
  color: var(--ink);
}
.wordmark__candle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  transform: translateY(1px);
}
.wordmark__wick { width: 2px; height: 3px; background: var(--red); }
.wordmark__wick--short { height: 2px; }
.wordmark__body { width: 5px; height: 7px; border-radius: 2px; background: var(--violet); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 6px 0 18px;
  height: 40px;
  border-radius: 999px;
  background: var(--ink);
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -.01em;
  transition: transform .5s var(--ease), background .5s var(--ease);
}
.nav__cta:hover { background: #2B2B36; color: #FFFFFF; transform: translateY(-1px); }
.nav__cta:active { transform: scale(.975); }
.nav__cta-icon {
  width: 28px; height: 28px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  line-height: 1;
  color: #FFFFFF;
}

/* ── 레이아웃 ──────────────────────────────────────────── */
.shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
}

.section { padding: clamp(88px, 11vw, 150px) 0; }
.section--cta { padding: clamp(64px, 9vw, 120px) 0; scroll-margin-top: 96px; }

.section__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: clamp(44px, 6vw, 72px);
}
.section__head .eyebrow { align-self: flex-start; }

.section__title {
  margin: 24px 0 clamp(44px, 6vw, 72px);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(29px, 4.2vw, 54px);
  line-height: 1.16;
  letter-spacing: -.035em;
  color: var(--ink);
  text-wrap: balance;
}
.section__title--narrow { max-width: 20ch; }
.section__title--wide   { max-width: 22ch; margin-bottom: clamp(48px, 7vw, 80px); }
.section__title--tight  { margin: 12px 0 0; }

.eyebrow {
  display: inline-block;
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(22,22,31,.045);
  box-shadow: 0 0 0 1px rgba(22,22,31,.06);
}
.eyebrow--violet {
  color: var(--violet-deep);
  background: rgba(109,40,217,.07);
  box-shadow: 0 0 0 1px rgba(109,40,217,.12);
}
.eyebrow--onDark {
  align-self: flex-start;
  color: var(--violet-soft);
  background: rgba(255,255,255,.07);
  box-shadow: 0 0 0 1px rgba(255,255,255,.12);
}

.grid { display: grid; gap: clamp(18px, 2.2vw, 26px); }
.grid--300 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--260 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }

/* ── 히어로 ────────────────────────────────────────────── */
/* 히어로는 첫 화면을 온전히 차지한다. 높이를 콘텐츠에 맡기면 창 높이에 따라
   다음 섹션의 '문제' 칩이 접힘선에 반쯤 걸쳐 잘려 보인다. svh 는 모바일에서
   주소창이 펼쳐진 상태의 높이라, 그 상태에서도 다음 섹션이 넘어오지 않는다.
   패딩은 최소 여백으로 남아, 콘텐츠가 길어지면 높이는 그만큼 늘어난다. */
.hero {
  padding: clamp(140px, 17vw, 210px) 0 clamp(96px, 11vw, 140px);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(36px, 5vw, 64px);
  align-items: end;
}

.hero__title {
  margin: 26px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 1.02;
  letter-spacing: -.04em;
  color: var(--ink);
  text-wrap: balance;
}

/* 히어로가 2단이 되는 순간(989px, 실측) 텍스트 칼럼은 512px 에서 멈춘다. 그런데 88px
   제목은 "3초면 시작하고," 한 줄에만 600px 가까이 필요해서, 2단 구간 내내 마크업의
   <br> 을 무시하고 4줄로 깨진다(1024~1920px 실측). 그래서 2단에서만 상한을 낮춘다.
   1단 구간은 칼럼이 넓어 7vw 로도 2줄이라 원본 값을 그대로 둔다. */
@media (min-width: 989px) {
  .hero__title { font-size: clamp(56px, 5.6vw, 72px); }
}

.hero__lede {
  margin: 30px 0 0;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.8;
  color: var(--muted);
  max-width: 34ch;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 44px;
}

/* ── 버튼 ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 60px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -.02em;
}

.btn__icon {
  width: 40px; height: 40px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  line-height: 1;
  color: #FFFFFF;
}

.btn--violet {
  padding: 0 8px 0 26px;
  background: var(--violet);
  color: #FFFFFF;
  box-shadow: 0 1px 0 0 rgba(255,255,255,.24) inset,
              0 22px 44px -18px rgba(109,40,217,.65);
  transition: transform .55s var(--ease), box-shadow .55s var(--ease);
}
.btn--violet:hover {
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 1px 0 0 rgba(255,255,255,.24) inset,
              0 30px 56px -18px rgba(109,40,217,.7);
}
.btn--violet:active { transform: scale(.98); }

.btn--disabled {
  gap: 11px;
  padding: 0 28px;
  background: rgba(22,22,31,.04);
  color: var(--muted-2);
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 0 0 1px rgba(22,22,31,.06);
  cursor: not-allowed;
}

.btn--white {
  height: 62px;
  padding: 0 8px 0 28px;
  background: #FFFFFF;
  color: var(--ink);
  box-shadow: 0 20px 44px -18px rgba(0,0,0,.6);
  transition: transform .55s var(--ease);
}
.btn--white:hover { color: var(--ink); transform: translateY(-2px); }
.btn--white:active { transform: scale(.98); }
.btn--white .btn__icon {
  width: 42px; height: 42px;
  background: rgba(20,20,27,.08);
  color: var(--ink);
}

.btn--disabled-dark {
  gap: 11px;
  height: 62px;
  padding: 0 28px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.5);
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12);
  cursor: not-allowed;
}

/* ── 히어로 차트 카드 ──────────────────────────────────── */
.chart-shell {
  padding: 9px;
  border-radius: 38px;
  background: rgba(22,22,31,.045);
  box-shadow: 0 0 0 1px rgba(22,22,31,.05);
  transform: rotate(-1.2deg);
}
/* 등장 애니메이션이 transform 을 덮으므로, 끝난 뒤 기울기를 되돌려 준다 */
.js-reveal .chart-shell[data-reveal].in { animation-name: cc-rise-tilt; }
@keyframes cc-rise-tilt {
  from { opacity: 0; transform: translateY(56px) rotate(-1.2deg); filter: blur(10px); }
  to   { opacity: 1; transform: rotate(-1.2deg); filter: blur(0); }
}

.chart-card {
  border-radius: 29px;
  background: var(--surface);
  padding: 24px clamp(18px, 3vw, 30px) 22px;
  box-shadow: 0 1px 1px rgba(255,255,255,.9) inset,
              0 0 0 1px rgba(22,22,31,.05),
              0 40px 80px -32px rgba(22,22,31,.3);
}

.chart-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}
.chart-card__meta {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--dim);
}
.chart-card__prompt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--violet);
}

.chart { position: relative; height: clamp(170px, 22vw, 250px); }

.chart__grid {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.chart__grid span { height: 1px; background: rgba(164,164,181,.24); }

.chart__candles {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: stretch;
  gap: clamp(3px, .7vw, 8px);
}

.candle { position: relative; flex: 1; }
.candle::before {
  content: "";
  position: absolute;
  left: 50%;
  translate: -50% 0;
  width: 2px;
  top: var(--wt);
  bottom: var(--wb);
  background: currentColor;
}
.candle::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: var(--bt);
  bottom: var(--bb);
  background: currentColor;
  border-radius: 1px;
}
.candle--red   { color: var(--red); }
.candle--blue  { color: var(--blue); }
.candle--ghost { color: var(--ink); }
.candle--ghost::before { display: none; }

.chart__veil {
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 28%;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.92) 45%, #FFFFFF 100%);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.chart__veil span {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 54px);
  color: var(--violet-soft);
}

/* ── 더블베젤 카드 ─────────────────────────────────────── */
.bezel {
  padding: 8px;
  border-radius: 34px;
  background: rgba(22,22,31,.04);
  box-shadow: 0 0 0 1px rgba(22,22,31,.05);
}
.bezel--cta {
  padding: 9px;
  border-radius: 44px;
  background: rgba(22,22,31,.05);
}

.card {
  height: 100%;
  border-radius: 26px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-core);
  transition: transform .6s var(--ease);
}
.card:hover { transform: translateY(-4px); }

.card--problem  { padding: clamp(26px, 3vw, 38px); gap: 20px; }
.card--solution { padding: clamp(28px, 3vw, 40px); gap: 18px; }

.card__num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--dim-2);
}

.card__quote {
  margin: 0;
  font-size: clamp(18px, 1.9vw, 23px);
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  letter-spacing: -.025em;
}

.card__rule { width: 26px; height: 2px; border-radius: 2px; background: var(--red); }

.card__body {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
  text-wrap: pretty;
}
.card__body--lg { font-size: clamp(15px, 1.4vw, 17px); }

.card__chip {
  width: 38px; height: 38px;
  border-radius: 999px;
  background: rgba(109,40,217,.08);
  box-shadow: 0 0 0 1px rgba(109,40,217,.12);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--violet);
}

.card__headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 2.8vw, 34px);
  letter-spacing: -.035em;
  color: var(--ink);
  line-height: 1.15;
}

/* ── 앱 화면(폰 목업) ──────────────────────────────────── */
.phones {
  display: grid;
  grid-template-columns: repeat(auto-fit, 272px);
  justify-content: center;
  gap: clamp(30px, 3.6vw, 52px);
}

.phone {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.phone__body {
  position: relative;
  width: 272px;
  transform: rotate(var(--tilt));
  transition: transform .7s var(--ease);
}
.phone__body:hover { transform: rotate(0deg) translateY(-6px); }

.phone__btn {
  position: absolute;
  width: 3px;
  background: linear-gradient(90deg, #3A3A44, #7C7C88);
}
.phone__btn--mute     { left: -3px; top: 96px;  height: 20px; border-radius: 2px 0 0 2px; }
.phone__btn--vol-up   { left: -3px; top: 138px; height: 38px; border-radius: 2px 0 0 2px; }
.phone__btn--vol-down { left: -3px; top: 186px; height: 38px; border-radius: 2px 0 0 2px; }
.phone__btn--power    { right: -3px; top: 160px; height: 62px; border-radius: 0 2px 2px 0;
                        background: linear-gradient(270deg, #3A3A44, #7C7C88); }

.phone__bezel {
  position: relative;
  padding: 7px;
  border-radius: 39px;
  background: linear-gradient(152deg, #8C8C97 0%, #33333C 26%, #5A5A66 52%, #26262E 78%, #7A7A85 100%);
  box-shadow: 0 36px 64px -26px rgba(22,22,31,.4),
              inset 0 0 0 1px rgba(255,255,255,.18);
}

.phone__screen {
  position: relative;
  width: 258px;
  height: 559px;
  border-radius: 32px;
  overflow: hidden;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.35);
}

.phone__notch {
  position: absolute;
  z-index: 2;
  top: 7px;
  left: 50%;
  translate: -50% 0;
  width: 82px;
  height: 24px;
  border-radius: 999px;
  background: #08080B;
}

.phone__label {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.02em;
}

/* 스크린샷 자리. <img> 를 넣으면 플레이스홀더는 자동으로 사라진다. */
.shot {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--bg);
}
.shot::before {
  content: "";
  width: 30px;
  height: 26px;
  border: 2px solid var(--dim-2);
  border-radius: 5px;
  background:
    radial-gradient(circle at 9px 8px, var(--dim-2) 2.5px, transparent 3px),
    linear-gradient(135deg, transparent 55%, var(--dim-2) 55%, var(--dim-2) 72%, transparent 72%);
}
.shot::after {
  content: attr(data-placeholder);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted-2);
  letter-spacing: -.01em;
}
.shot:has(img)::before,
.shot:has(img)::after { content: none; }
.shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── 마감 CTA ──────────────────────────────────────────── */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: 35px;
  background: var(--ink);
  padding: clamp(44px, 7vw, 88px) clamp(28px, 5vw, 72px);
  box-shadow: 0 1px 1px rgba(255,255,255,.12) inset,
              0 40px 80px -34px rgba(22,22,31,.55);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.cta__glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 999px;
}
.cta__glow--violet {
  top: -160px; right: -80px;
  background: radial-gradient(circle, rgba(109,40,217,.55) 0%, rgba(109,40,217,0) 68%);
}
.cta__glow--red {
  bottom: -200px; left: -120px;
  background: radial-gradient(circle, rgba(255,59,92,.28) 0%, rgba(255,59,92,0) 68%);
}

.cta__copy {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cta__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(27px, 3.8vw, 48px);
  letter-spacing: -.035em;
  color: #FFFFFF;
  max-width: 19ch;
  line-height: 1.16;
  text-wrap: balance;
}

.cta__actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

/* ── 푸터 ──────────────────────────────────────────────── */
.footer {
  padding: clamp(48px, 6vw, 72px) 0 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__brand {
  margin: 0;
  font-weight: 900;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -.02em;
}
.footer__link { font-size: 14px; color: var(--muted); }
.footer__copy {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--dim);
}
