/* ==========================================================================
   KR MARKET LAB — Landing Page
   Palette : Bone / Deep Teal / Signal Coral
   Type    : Pretendard (UI) + Gowun Batang (Display) + Space Grotesk (Numerals)
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --bone:        #F5F1E8;
  --bone-2:      #FBF8F2;
  --bone-3:      #EFE9DC;
  --card:        #FFFFFF;

  --ink:         #13201F;
  --ink-2:       #3E4F4C;
  --ink-3:       #7C8A86;

  --teal:        #0E3B3A;
  --teal-2:      #17544F;
  --teal-soft:   #DDE9E4;
  --teal-glow:   rgba(14, 59, 58, .14);

  --coral:       #FF5C39;
  --coral-2:     #E8431F;
  --coral-soft:  #FFE6DE;

  --sand:        #E4D9C6;
  --gold:        #C79A4B;

  --line:        rgba(19, 32, 31, .10);
  --line-2:      rgba(19, 32, 31, .06);

  --ff-ui:       "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
                 system-ui, "Malgun Gothic", sans-serif;
  --ff-display:  "Gowun Batang", "Nanum Myeongjo", serif;
  --ff-num:      "Space Grotesk", "Pretendard Variable", sans-serif;

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --r-pill: 999px;

  --sh-sm: 0 2px 8px rgba(19, 32, 31, .05);
  --sh-md: 0 12px 34px -14px rgba(19, 32, 31, .22);
  --sh-lg: 0 40px 90px -40px rgba(19, 32, 31, .38);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --bar-h: 84px;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  padding-bottom: var(--bar-h);
  font-family: var(--ff-ui);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bone);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.28; font-weight: 700; letter-spacing: -.02em; }
p  { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* Paper grain over the whole page */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9;
  opacity: .28;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.34'/%3E%3C/svg%3E");
}

/* ---------- 3. Layout helpers ---------- */
.wrap { width: min(1180px, 100% - 44px); margin-inline: auto; }
.section { position: relative; padding: 116px 0; }
.section--tight { padding: 84px 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--ff-num);
  font-size: 12px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--teal);
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(6px);
}
.eyebrow i { color: var(--coral); font-size: 11px; }
.eyebrow--solid { background: var(--teal); color: #fff; border-color: transparent; }
.eyebrow--solid i { color: #FFB49E; }

.h-display {
  font-family: var(--ff-display);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.24;
}
.h1 { font-size: clamp(38px, 5.6vw, 70px); }
.h2 { font-size: clamp(30px, 3.9vw, 50px); }
.h3 { font-size: clamp(21px, 2.1vw, 27px); }

.lead { font-size: clamp(15.5px, 1.35vw, 18px); color: var(--ink-2); line-height: 1.85; }
.muted { color: var(--ink-3); }
.accent { color: var(--coral); }

.mark {
  position: relative; display: inline-block; white-space: nowrap;
  color: var(--teal);
}
.mark svg {
  position: absolute; left: -2%; bottom: -.26em; width: 104%; height: .5em;
  overflow: visible;
}
.mark svg path {
  fill: none; stroke: var(--coral); stroke-width: 7; stroke-linecap: round;
  stroke-dasharray: 420; stroke-dashoffset: 420;
}
.in .mark svg path { animation: draw 1.15s var(--ease) .45s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- 4. Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px;
  border-radius: var(--r-pill);
  font-size: 15.5px; font-weight: 700; letter-spacing: -.01em;
  overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .3s;
  white-space: nowrap;
}
.btn i { transition: transform .35s var(--ease); }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.42) 50%, transparent 80%);
  transform: translateX(-140%);
  transition: transform .75s var(--ease);
}
.btn:hover::before { transform: translateX(140%); }
.btn:active { transform: scale(.975); }

.btn--primary { background: var(--coral); color: #fff; box-shadow: 0 14px 30px -12px rgba(255, 92, 57, .75); }
.btn--primary:hover { background: var(--coral-2); transform: translateY(-3px); box-shadow: 0 22px 42px -14px rgba(255, 92, 57, .8); }
.btn--primary:hover i { transform: translateX(4px); }

.btn--dark { background: var(--teal); color: #fff; box-shadow: 0 14px 30px -14px rgba(14, 59, 58, .7); }
.btn--dark:hover { background: var(--teal-2); transform: translateY(-3px); }

.btn--ghost { border: 1px solid var(--line); background: rgba(255,255,255,.65); color: var(--ink); }
.btn--ghost:hover { border-color: var(--teal); background: #fff; transform: translateY(-3px); }

.btn--lg { padding: 19px 38px; font-size: 16.5px; }
.btn--block { display: flex; width: 100%; }

/* pulse ring on the main CTA */
.btn--pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 2px solid var(--coral); z-index: -2;
  animation: ring 2.6s ease-out infinite;
}
@keyframes ring {
  0%   { transform: scale(1);    opacity: .55; }
  70%  { transform: scale(1.17); opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- 5. Logo (footer only) ---------- */
.logo { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.02em; font-size: 17px; }
.logo__mark {
  width: 34px; height: 34px; border-radius: 11px;
  background: var(--teal); color: #fff;
  display: grid; place-items: center; font-size: 14px;
  box-shadow: 0 6px 14px -6px var(--teal-glow);
}
.logo__mark i { animation: tick 3.4s ease-in-out infinite; }
@keyframes tick { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
.logo small { display: block; font-family: var(--ff-num); font-size: 10px; font-weight: 500; letter-spacing: .16em; color: var(--ink-3); }

/* ---------- 6. Hero ---------- */
.hero { position: relative; padding: 96px 0 76px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(70px); opacity: .55;
  animation: drift 18s ease-in-out infinite;
}
.blob--1 { width: 520px; height: 520px; top: -170px; right: -110px; background: #CFE3DC; }
.blob--2 { width: 420px; height: 420px; bottom: -160px; left: -130px; background: #FFDCD1; animation-delay: -6s; }
.blob--3 { width: 300px; height: 300px; top: 44%; left: 42%; background: #EDE3CE; animation-delay: -11s; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(34px, -28px) scale(1.09); }
  66%      { transform: translate(-26px, 22px) scale(.94); }
}
.hero__grid-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 10%, transparent 72%);
  opacity: .7;
}

.hero__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.02fr .98fr; gap: 44px; align-items: center;
}
.hero__copy > * + * { margin-top: 24px; }
.hero h1 { max-width: 15ch; }
.hero .lead { max-width: 46ch; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 13px; align-items: center; }

.trust { display: flex; align-items: center; gap: 15px; padding-top: 8px; }
.avatars { display: flex; }
.avatars span {
  width: 38px; height: 38px; border-radius: 50%;
  border: 2.5px solid var(--bone);
  margin-left: -12px;
  display: grid; place-items: center;
  font-family: var(--ff-num); font-size: 12.5px; font-weight: 700; color: #fff;
  box-shadow: var(--sh-sm);
}
.avatars span:first-child { margin-left: 0; }
.avatars span:nth-child(1) { background: #17544F; }
.avatars span:nth-child(2) { background: #C05C3E; }
.avatars span:nth-child(3) { background: #8A9B7A; }
.avatars span:nth-child(4) { background: #B08A4E; }
.avatars span:nth-child(5) { background: var(--teal); font-size: 11px; }
.trust__txt { font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.trust__txt b { font-family: var(--ff-num); color: var(--ink); }
.stars { color: var(--gold); font-size: 11px; letter-spacing: 1px; }

/* --- Hero visual stage --- */
.stage { position: relative; aspect-ratio: 1 / 1; }
.stage__arch {
  position: absolute; inset: 6% 4% 4% 4%;
  border-radius: 46% 46% 30% 30% / 40% 40% 22% 22%;
  background:
    radial-gradient(120% 90% at 30% 10%, #FFFFFF 0%, #F4EFE4 46%, #E7EDE7 100%);
  box-shadow: var(--sh-lg), inset 0 1px 0 #fff;
  overflow: hidden;
}
.stage__arch::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg, rgba(14,59,58,.035) 0 1px, transparent 1px 13px);
}
.stage__spark { position: absolute; left: 0; right: 0; bottom: 16%; width: 100%; height: 42%; }
.stage__spark path.line {
  fill: none; stroke: var(--teal); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  opacity: .42;
  stroke-dasharray: 900; stroke-dashoffset: 900;
  animation: draw 2.6s var(--ease) .5s forwards;
}
.stage__spark path.area { fill: url(#areaGrad); opacity: 0; animation: fadeIn 1.4s ease 1.6s forwards; }
@keyframes fadeIn { to { opacity: 1; } }

.stage__hero-img {
  position: absolute; inset: 4% 0 0 0; width: 100%; height: auto;
  filter: drop-shadow(0 34px 42px rgba(19,32,31,.18));
  animation: floaty 7s ease-in-out infinite;
  will-change: transform;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-16px) rotate(-1deg); }
}

/* floating glass cards */
.chip {
  position: absolute; z-index: 3;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: var(--sh-md);
  border-radius: 16px;
  padding: 12px 15px;
  animation: floaty 6s ease-in-out infinite;
  will-change: transform;
}
.chip__label { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; font-family: var(--ff-num); font-weight: 600; color: var(--ink-3); }
.chip__val { font-family: var(--ff-num); font-weight: 700; font-size: 20px; letter-spacing: -.02em; line-height: 1.2; }
.chip__val.up { color: var(--coral); }
.chip__row { display: flex; align-items: center; gap: 9px; }
.chip--kospi { top: 7%; left: -4%; animation-delay: -1.4s; }
.chip--alert { top: 40%; right: -6%; animation-delay: -3.1s; }
.chip--report { bottom: 6%; left: 2%; animation-delay: -4.6s; }
.chip__icon {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  font-size: 13px; flex: none;
}
.chip__icon--coral { background: var(--coral-soft); color: var(--coral-2); }
.chip__icon--teal  { background: var(--teal-soft); color: var(--teal); }
.chip small { font-size: 12px; color: var(--ink-2); display: block; line-height: 1.45; }
.chip b { font-size: 13px; }

.live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--coral); flex: none;
  box-shadow: 0 0 0 0 rgba(255,92,57,.6); animation: blip 1.8s infinite;
}
@keyframes blip {
  0%   { box-shadow: 0 0 0 0 rgba(255,92,57,.6); }
  70%  { box-shadow: 0 0 0 9px rgba(255,92,57,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,92,57,0); }
}

/* ---------- 8. Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-md); }
.stat { background: var(--bone-2); padding: 34px 26px; transition: background-color .4s var(--ease); }
.stat:hover { background: #fff; }
.stat__num { font-family: var(--ff-num); font-size: clamp(30px, 3.4vw, 44px); font-weight: 700; letter-spacing: -.035em; color: var(--teal); line-height: 1.1; }
.stat__num sup { font-size: .48em; color: var(--coral); vertical-align: super; margin-left: 2px; }
.stat__lbl { font-size: 13.5px; color: var(--ink-3); margin-top: 7px; font-weight: 500; }

/* ---------- 9. Section head ---------- */
.shead { max-width: 660px; margin-bottom: 56px; }
.shead > * + * { margin-top: 18px; }
.shead--center { margin-inline: auto; text-align: center; }

/* ---------- 10. Benefit cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  position: relative; overflow: hidden;
  background: var(--bone-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 34px 28px 32px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background-color .4s;
}
.card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--coral); transform: scaleX(0); transform-origin: left;
  transition: transform .55s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--sh-md); background: #fff; }
.card:hover::after { transform: scaleX(1); }
.card__icon {
  width: 54px; height: 54px; border-radius: 17px;
  display: grid; place-items: center; font-size: 20px;
  background: var(--teal-soft); color: var(--teal);
  margin-bottom: 20px;
  transition: transform .5s var(--ease), background-color .4s, color .4s;
}
.card:hover .card__icon { transform: rotate(-8deg) scale(1.08); background: var(--teal); color: #fff; }
.card h3 { font-size: 18.5px; margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--ink-2); line-height: 1.75; }
.card__no {
  position: absolute; top: 22px; right: 24px;
  font-family: var(--ff-num); font-size: 12px; font-weight: 600;
  letter-spacing: .1em; color: var(--ink-3); opacity: .55;
}

/* ---------- 11. Split modules (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 68px; align-items: center; }
.split + .split { margin-top: 128px; }
.split__media { position: relative; }
.split--rev .split__media { order: 2; }
.split__copy > * + * { margin-top: 21px; }

.figure {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--sh-lg);
  transform: perspective(1200px) rotateY(0deg);
  transition: transform .7s var(--ease);
}
.figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .7s; }
.figure:hover img { transform: scale(1.06); }
.figure::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,.16), transparent 45%, rgba(14,59,58,.2));
  pointer-events: none;
}
/* sheen sweep */
.figure::before {
  content: ""; position: absolute; top: 0; left: -60%; width: 45%; height: 100%; z-index: 2;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-18deg); transition: left .95s var(--ease);
  pointer-events: none;
}
.figure:hover::before { left: 120%; }

.figure__tag {
  position: absolute; z-index: 3; left: 22px; bottom: 22px;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 16px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.86); backdrop-filter: blur(10px);
  font-size: 13px; font-weight: 700; box-shadow: var(--sh-sm);
}
.figure__float {
  position: absolute; z-index: 4; right: -8%; bottom: -9%; width: 42%;
  filter: drop-shadow(0 24px 34px rgba(19,32,31,.22));
  animation: floaty 6.5s ease-in-out infinite;
  pointer-events: none;
}
.figure__badge {
  position: absolute; z-index: 5; top: -18px; right: -14px;
  background: var(--coral); color: #fff;
  border-radius: 18px; padding: 13px 18px; text-align: center;
  box-shadow: 0 16px 34px -12px rgba(255,92,57,.7);
  animation: floaty 5.5s ease-in-out infinite;
}
.figure__badge b { display: block; font-family: var(--ff-num); font-size: 24px; line-height: 1; letter-spacing: -.03em; }
.figure__badge span { font-size: 11px; opacity: .92; letter-spacing: .06em; }

.ticks { display: grid; gap: 13px; }
.ticks li { display: flex; gap: 13px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.ticks i {
  flex: none; margin-top: 3px;
  width: 23px; height: 23px; border-radius: 8px; display: grid; place-items: center;
  font-size: 10.5px; background: var(--coral-soft); color: var(--coral-2);
}

/* ---------- 12. Voices ---------- */
.voices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.voice {
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  padding: 30px 28px; transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.voice:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
.voice__q { font-family: var(--ff-display); font-size: 30px; color: var(--sand); line-height: 1; }
.voice p { font-size: 14.8px; color: var(--ink-2); line-height: 1.8; margin: 12px 0 20px; }
.voice__who { display: flex; align-items: center; gap: 11px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.voice__av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; font-family: var(--ff-num); flex: none; }
.voice__who b { font-size: 14px; display: block; }
.voice__who small { font-size: 12px; color: var(--ink-3); }

/* ---------- 13. Form ---------- */
.form-sec { position: relative; background: var(--teal); color: #fff; overflow: hidden; }
.form-sec::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 70% at 12% 10%, rgba(255,92,57,.24), transparent 60%),
    radial-gradient(55% 60% at 92% 88%, rgba(214,231,222,.2), transparent 60%);
}
.form-sec::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000, transparent 75%);
}
.form-sec .wrap { position: relative; z-index: 2; }
.form-sec .shead h2 { color: #fff; }
.form-sec .lead { color: rgba(255,255,255,.74); }
.form-sec .eyebrow { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.22); color: #fff; }

.form-shell {
  max-width: 640px; margin-inline: auto;
  background: var(--bone-2); color: var(--ink);
  border-radius: var(--r-xl);
  box-shadow: 0 50px 100px -40px rgba(0,0,0,.55);
  overflow: hidden;
}
.form-top { padding: 26px 34px 0; }
.form-meta { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; font-weight: 600; color: var(--ink-3); font-family: var(--ff-num); letter-spacing: .06em; }
.progress { height: 5px; background: var(--bone-3); border-radius: var(--r-pill); overflow: hidden; margin-top: 12px; }
.progress__bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--coral), #FF8A6B); border-radius: inherit; transition: width .65s var(--ease); }

.form-body { padding: 30px 34px 34px; }
.step { display: none; }
.step.is-active { display: block; animation: stepIn .55s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.step__q { font-family: var(--ff-display); font-size: clamp(21px, 2.4vw, 27px); font-weight: 700; line-height: 1.42; margin-bottom: 6px; }
.step__hint { font-size: 13.5px; color: var(--ink-3); margin-bottom: 22px; }

.opts { display: grid; gap: 12px; }
.opt {
  position: relative; display: flex; align-items: center; gap: 15px; width: 100%; text-align: left;
  padding: 18px 20px;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-md);
  transition: border-color .3s, transform .3s var(--ease), box-shadow .3s, background-color .3s;
}
.opt:hover { border-color: var(--teal); transform: translateX(5px); box-shadow: var(--sh-sm); }
.opt.is-picked { border-color: var(--coral); background: var(--coral-soft); }
.opt__key {
  width: 38px; height: 38px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: var(--teal-soft); color: var(--teal); font-size: 15px;
  transition: background-color .3s, color .3s, transform .4s var(--ease);
}
.opt:hover .opt__key { transform: rotate(-8deg); }
.opt.is-picked .opt__key { background: var(--coral); color: #fff; }
.opt__txt b { display: block; font-size: 16px; letter-spacing: -.01em; }
.opt__txt small { font-size: 12.5px; color: var(--ink-3); }
.opt__go { margin-left: auto; color: var(--ink-3); font-size: 13px; transition: transform .3s var(--ease), color .3s; }
.opt:hover .opt__go { transform: translateX(4px); color: var(--coral); }

.form-note { display: flex; gap: 9px; align-items: flex-start; font-size: 12px; color: var(--ink-3); margin-top: 20px; line-height: 1.6; }
.form-note i { margin-top: 3px; color: var(--teal); }
.form-note a { text-decoration: underline; text-underline-offset: 2px; }

.form-back { margin-top: 16px; font-size: 13px; font-weight: 600; color: var(--ink-3); display: inline-flex; align-items: center; gap: 7px; transition: color .25s; }
.form-back:hover { color: var(--coral); }

/* loading */
.loading { text-align: center; padding: 34px 0 10px; }
.loader { width: 54px; height: 54px; margin: 0 auto 20px; position: relative; }
.loader::before, .loader::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid transparent;
}
.loader::before { border-top-color: var(--coral); animation: spin .9s linear infinite; }
.loader::after  { border-bottom-color: var(--teal); animation: spin 1.5s linear infinite reverse; inset: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading p { font-size: 15px; font-weight: 600; }
.loading small { font-size: 13px; color: var(--ink-3); }

/* done */
.done { text-align: center; }
.done__check {
  width: 78px; height: 78px; margin: 4px auto 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: 30px;
  background: var(--coral-soft); color: var(--coral-2);
  animation: pop .65s var(--ease) both;
}
@keyframes pop { 0% { transform: scale(.3); opacity: 0; } 60% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
.done h3 { font-family: var(--ff-display); font-size: 26px; margin-bottom: 10px; }
.done p { font-size: 15px; color: var(--ink-2); line-height: 1.8; }
.done__box {
  margin: 22px 0; padding: 20px; border-radius: var(--r-md);
  background: #fff; border: 1.5px dashed var(--sand); text-align: left;
}
.done__box .row { display: flex; justify-content: space-between; gap: 14px; font-size: 14px; padding: 7px 0; }
.done__box .row + .row { border-top: 1px solid var(--line-2); }
.done__box .row span { color: var(--ink-3); }
.done__box .row b { color: var(--teal); text-align: right; }
.done__kakao {
  display: flex; align-items: center; gap: 12px; justify-content: center;
  background: #FEE500; color: #191600; border-radius: var(--r-md);
  padding: 14px; font-weight: 700; font-size: 15px; margin-bottom: 12px;
}
.done__kakao b { font-family: var(--ff-num); font-size: 20px; letter-spacing: .04em; }

/* 완료 후 하단 고정 버튼으로 유도 */
.done__hint {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  margin-top: 22px; font-size: 14px; font-weight: 700; color: var(--coral-2);
}
.done__hint i { font-size: 15px; animation: hintDown 1.4s ease-in-out infinite; }
@keyframes hintDown {
  0%, 100% { transform: translateY(0);   opacity: .55; }
  50%      { transform: translateY(6px); opacity: 1; }
}

/* ---------- 14. Fixed bottom bar ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: flex; justify-content: center;
  padding: 13px 20px calc(13px + env(safe-area-inset-bottom));
  background: rgba(245, 241, 232, .84);
  backdrop-filter: blur(16px) saturate(1.4);
  border-top: 1px solid var(--line);
}
.dock__inner {
  width: min(980px, 100%);
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.dock__txt { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dock__ico {
  width: 42px; height: 42px; border-radius: 13px; flex: none;
  background: var(--teal); color: #fff; display: grid; place-items: center; font-size: 15px;
}
.dock__txt b { display: block; font-size: 14.5px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock__txt small { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.dock .btn { flex: none; }

/* --- 유일한 CTA : 점프 + 광택 + 글로우 --- */
.btn--hero {
  padding: 17px 34px; font-size: 16px;
  animation: ctaJump 3.2s cubic-bezier(.28, .84, .42, 1) infinite,
             ctaGlow 2.4s ease-in-out infinite;
  will-change: translate;
}
@keyframes ctaJump {
  0%, 62%, 100% { translate: 0 0;    scale: 1; }
  70%           { translate: 0 -9px; scale: 1.035; }
  78%           { translate: 0 0;    scale: .985; }
  85%           { translate: 0 -4px; scale: 1.012; }
  92%           { translate: 0 0;    scale: 1; }
}
@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 12px 26px -12px rgba(255, 92, 57, .75), 0 0 0 0 rgba(255, 92, 57, .38); }
  50%      { box-shadow: 0 18px 34px -12px rgba(255, 92, 57, .9),  0 0 0 12px rgba(255, 92, 57, 0); }
}
.btn--hero:hover { animation-play-state: paused; }

/* 계속 지나가는 하이라이트 */
.btn__shine {
  position: absolute; top: -20%; left: -60%; width: 38%; height: 140%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .78), transparent);
  transform: skewX(-20deg);
  animation: shineSweep 3.2s ease-in-out infinite;
  pointer-events: none; z-index: 1;
}
@keyframes shineSweep {
  0%, 55%  { left: -60%; }
  85%, 100% { left: 130%; }
}

/* 폼 완료 후 : 더 강한 유도 */
.btn--ready { animation-duration: 1.8s, 1.4s; }
.btn--ready .btn__shine { animation-duration: 1.8s; }

/* ---------- 15. Footer ---------- */
.footer { background: #101B1A; color: rgba(255,255,255,.66); padding: 66px 0 34px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer .logo { color: #fff; }
.footer .logo__mark { background: var(--coral); }
.footer p { font-size: 13.5px; line-height: 1.85; margin-top: 16px; max-width: 46ch; }
.footer__links { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: flex-start; justify-content: flex-end; }
.footer__links button {
  font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.8);
  position: relative; transition: color .25s;
}
.footer__links button::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 0; background: var(--coral); transition: width .3s var(--ease); }
.footer__links button:hover { color: #fff; }
.footer__links button:hover::after { width: 100%; }
.footer__bot { padding-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,.42); }
.footer__disc { margin-top: 22px; padding: 16px 18px; border-radius: var(--r-md); background: rgba(255,255,255,.05); font-size: 12px; line-height: 1.75; color: rgba(255,255,255,.5); }

/* ---------- 16. Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.modal.is-open { display: flex; }
.modal__veil { position: absolute; inset: 0; background: rgba(11, 20, 19, .58); backdrop-filter: blur(5px); animation: fadeIn .3s ease; }
.modal__box {
  position: relative; z-index: 2;
  width: min(680px, 100%); max-height: 82vh;
  background: var(--bone-2); border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  display: flex; flex-direction: column;
  animation: modalIn .45s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(28px) scale(.97); } to { opacity: 1; transform: none; } }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 26px; border-bottom: 1px solid var(--line); }
.modal__head h3 { font-family: var(--ff-display); font-size: 21px; }
.modal__x { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--bone-3); transition: background-color .25s, transform .3s var(--ease); flex: none; }
.modal__x:hover { background: var(--coral); color: #fff; transform: rotate(90deg); }
.modal__body { padding: 24px 26px 30px; overflow-y: auto; font-size: 14px; line-height: 1.85; color: var(--ink-2); }
.modal__body h4 { font-size: 15px; color: var(--ink); margin: 22px 0 8px; }
.modal__body h4:first-child { margin-top: 0; }
.modal__body ul { list-style: none; display: grid; gap: 7px; }
.modal__body li { padding-left: 16px; position: relative; }
.modal__body li::before { content: ""; position: absolute; left: 0; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: var(--coral); }
.modal__body .stamp { margin-top: 24px; font-size: 12px; color: var(--ink-3); }

/* ---------- 17. Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .85s var(--ease), transform .85s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .09s; }
.reveal[data-d="2"] { transition-delay: .18s; }
.reveal[data-d="3"] { transition-delay: .27s; }
.reveal[data-d="4"] { transition-delay: .36s; }

/* ---------- 18. Responsive ---------- */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .split { gap: 44px; }
}
@media (max-width: 900px) {
  :root { --bar-h: 78px; }
  .section { padding: 84px 0; }
  .hero { padding: 64px 0 56px; }
  .hero__inner { grid-template-columns: 1fr; gap: 46px; }
  .hero h1, .hero .lead { max-width: none; }
  .stage { max-width: 470px; margin-inline: auto; width: 100%; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split + .split { margin-top: 84px; }
  .split--rev .split__media { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .voices { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__links { justify-content: flex-start; }
}
@media (max-width: 620px) {
  .wrap { width: min(1180px, 100% - 32px); }
  body { font-size: 15.5px; }
  .cards { grid-template-columns: 1fr; }
  .form-top { padding: 22px 20px 0; }
  .form-body { padding: 24px 20px 28px; }
  .form-shell { border-radius: 26px; }
  .figure__float { width: 48%; right: -4%; }
  .chip--kospi { left: 0; top: 4%; }
  .chip--alert { right: 0; top: 44%; }
  .chip--report { left: 0; bottom: 4%; }
  .chip { padding: 10px 12px; }
  .chip small { font-size: 11px; }
  .chip__val { font-size: 17px; }
  .btn { padding: 15px 24px; font-size: 15px; }
  .dock__inner { gap: 12px; }
  .dock__txt small { display: none; }
  .dock__txt b { font-size: 13.5px; white-space: normal; }
  .dock__ico { display: none; }
  .dock .btn { padding: 15px 22px; font-size: 14.5px; }
  .trust { flex-wrap: wrap; }
}
@media (max-width: 400px) {
  .dock__txt { display: none; }
  .dock__inner { justify-content: center; }
  .dock .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
