:root {
  --navy: #12235a;
  --purple: #6d4cff;
  --purple-soft: #ece7ff;
  --green: #0aa35b;
  --green-soft: #dbf8e8;
  --orange: #ff6a00;
  --orange-soft: #fff0e3;
  --text: #14234d;
  --muted: #52617b;
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Pretendard, "Noto Sans KR", Arial, sans-serif;
  background:
    radial-gradient(circle at 17% 10%, rgba(174, 182, 255, .34), transparent 20%),
    radial-gradient(circle at 88% 92%, rgba(130, 158, 255, .32), transparent 24%),
    linear-gradient(145deg, #fff 0%, #fbfcff 42%, #f2f6ff 100%);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
.background { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }

.blob {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 46% 54% 65% 35% / 55% 40% 60% 45%;
  filter: blur(1px);
  opacity: .42;
}
.blob-a {
  left: -135px; top: -130px;
  background: linear-gradient(140deg, rgba(122,140,255,.45), rgba(255,177,225,.15));
  transform: rotate(14deg);
}
.blob-b {
  right: -150px; bottom: -170px;
  background: linear-gradient(140deg, rgba(119,142,255,.28), rgba(132,199,255,.18));
  transform: rotate(-18deg);
}

.dot-grid {
  position: absolute;
  width: 125px; height: 145px;
  opacity: .22;
  background-image: radial-gradient(circle, #7d79ff 2.1px, transparent 2.3px);
  background-size: 18px 18px;
}
.dot-grid-a { top: 16px; right: 18px; }
.dot-grid-b { bottom: 40px; left: -8px; }

.spark {
  position: absolute;
  font-size: 34px;
  opacity: .5;
  color: #8d75ff;
}
.spark-a { top: 105px; left: 5%; }
.spark-b { top: 255px; right: 8%; color: #ff85b4; }
.spark-c { bottom: 120px; right: 4%; color: #ffbd39; }

.ring {
  position: absolute;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 4px solid rgba(58,183,231,.55);
}
.ring-a { top: 190px; left: 8%; }
.ring-b { top: 160px; right: 13%; }

.page-shell {
  position: relative;
  z-index: 1;
  width: min(100% - 36px, 950px);
  margin: 0 auto;
  padding: 70px 0 30px;
}

.hero { text-align: center; }
.hero h1 {
  margin: 0;
  color: #112657;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 800;
}
.hero p {
  margin: 22px 0 48px;
  color: #425170;
  font-size: clamp(18px, 2vw, 25px);
  letter-spacing: -0.025em;
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.service-card {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 42px rgba(49,67,126,.14), 0 4px 12px rgba(49,67,126,.08);
  transition: transform .22s ease, box-shadow .22s ease;
  border-radius: 34px;
}
.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 24px 55px rgba(49,67,126,.2), 0 6px 16px rgba(49,67,126,.1);
}
.service-card:focus-visible { outline: 4px solid rgba(92,82,255,.22); outline-offset: 4px; }

/* FP Card (Full width) */
.fp-card {
  grid-column: 1 / -1;
  min-height: 200px;
  border: 3px solid #b8a9ff;
  display: grid;
  grid-template-columns: 250px 1fr 110px;
  align-items: center;
  padding: 40px 52px;
}

.fp-avatar-wrap {
  position: relative;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 3px solid #6d4cff;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.fp-avatar {
  width: 90%;
  height: 90%;
  object-fit: cover;
  border-radius: 50%;
}

/* Customer Card */
.customer-card {
  grid-column: 1 / -1;
  min-height: 200px;
  border: 3px solid #58cf8e;
  display: grid;
  grid-template-columns: 250px 1fr 110px;
  align-items: center;
  padding: 40px 52px;
}
.icon-wrap {
  width: 150px;
  height: 150px;
  background: #f1f8f4;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.card-icon {
  width: 90px;
}

.card-copy, .sub-copy { position: relative; z-index: 2; }
.card-copy h2,
.sub-copy h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.card-copy h2 { color: #102663; font-size: clamp(34px, 4vw, 48px); }
.card-copy p, .sub-copy p {
  margin: 22px 0 0;
  font-size: clamp(22px, 2.6vw, 31px);
  line-height: 1.42;
  color: #23375c;
}
.sub-copy h2 { color: var(--green); font-size: clamp(34px, 4vw, 48px); }


.arrow-button {
  position: relative;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 24px rgba(63,67,135,.18);
  transition: transform .2s ease;
}
.service-card:hover .arrow-button { transform: scale(1.06); }
.arrow-button svg {
  width: 47px; height: 47px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.purple { color: #6f4cff; justify-self: end; }
.green { color: var(--green); justify-self: end; }

.wave {
  position: absolute;
  left: -6%;
  width: 112%;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  pointer-events: none;
}
.fp-card .wave-one, .customer-card .wave-one { height: 140px; bottom: -60px; transform: rotate(4deg); }
.fp-card .wave-two, .customer-card .wave-two { height: 110px; bottom: -70px; transform: rotate(-5deg); opacity: .62; }

.wave-purple { background: linear-gradient(90deg, rgba(205,193,255,.85), rgba(240,223,255,.72)); }
.wave-mint { background: linear-gradient(90deg, rgba(184,244,210,.86), rgba(231,252,228,.9)); }

.mini-spark { position: absolute; z-index: 5; font-size: 25px; opacity: .82; }
.ms-1 { top: 34px; left: 34px; color: #fff; }
.ms-2 { top: 60px; right: 55px; color: #ffb51a; }
.ms-3 { top: 28px; left: 48px; color: #53cd93; }
.ms-4 { top: 90px; right: 46px; color: #ff8dad; }

footer {
  text-align: center;
  padding: 42px 0 10px;
  color: #5f6d85;
  font-size: 16px;
}

@media (max-width: 760px) {
  .page-shell { width: min(100% - 24px, 650px); padding-top: 28px; }
  .hero h1 { font-size: 26px; }
  .hero p { margin: 8px 0 18px; font-size: 14px; }
  .menu-grid { grid-template-columns: 1fr; gap: 14px; }
  .fp-card, .customer-card {
    grid-column: 1 / -1;
    min-height: auto;
    grid-template-columns: 80px 1fr 44px;
    text-align: left;
    padding: 24px 20px;
    gap: 15px;
    border-radius: 24px;
  }
  .fp-avatar-wrap { width: 80px; height: 80px; }
  .icon-wrap { width: 80px; height: 80px; }
  .card-icon { width: 50px; }
  
  .card-copy h2, .sub-copy h2 { font-size: 20px; }
  .card-copy p, .sub-copy p { font-size: 14px; margin-top: 6px; }
  .arrow-button { width: 44px; height: 44px; justify-self: end; align-self: center; }
  .arrow-button svg { width: 24px; height: 24px; }
  .wave-one { height: 100px; bottom: -50px; }
  .wave-two { height: 80px; bottom: -55px; }
  .mini-spark { font-size: 16px; }
  footer { padding-top: 20px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
