@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700;900&display=swap');

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

:root {
  --blue: #3D6EF5;
  --blue2: #5B87FF;
  --navy: #1A2341;
  --dark: #141B2D;
  --gray: #6B7280;
  --gray-light: #F4F6FB;
  --white: #FFFFFF;
  --border: #E8ECF4;
  --radius: 18px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans KR', sans-serif; color: var(--navy); background: var(--white); line-height: 1.7; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 32px; }

/* ── 네비 ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 40px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  transition: box-shadow .3s;
}
nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.08); }
.nav-logo { font-size: 20px; font-weight: 900; color: var(--navy); text-decoration: none; }
.nav-logo span { color: var(--blue); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { font-size: 14px; color: var(--gray); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--blue); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-tel { font-size: 14px; font-weight: 700; color: var(--navy); text-decoration: none; }
.nav-cta {
  background: var(--blue); color: var(--white);
  font-size: 13px; font-weight: 700;
  padding: 9px 20px; border-radius: 8px;
  text-decoration: none; transition: background .2s;
}
.nav-cta:hover { background: #2a56e0; }

/* ── HERO ── */
#hero {
  background: linear-gradient(135deg, #2B4FD0 0%, #3D6EF5 50%, #5B87FF 100%);
  padding: 130px 0 80px;
  position: relative; overflow: visible;
}
#hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='800' height='400' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='700' cy='100' r='300' fill='rgba(255,255,255,0.04)'/%3E%3Ccircle cx='100' cy='350' r='200' fill='rgba(255,255,255,0.03)'/%3E%3C/svg%3E") no-repeat center;
  background-size: cover;
}
.hero-eyebrow { font-size: 13px; font-weight: 500; color: rgba(255,255,255,.7); letter-spacing: .1em; margin-bottom: 16px; }
#hero h1 { font-size: clamp(30px, 4.5vw, 52px); font-weight: 900; color: var(--white); line-height: 1.25; margin-bottom: 20px; }
.hero-sub { font-size: 17px; color: rgba(255,255,255,.75); margin-bottom: 40px; max-width: 480px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-white {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); color: var(--blue);
  font-size: 15px; font-weight: 700;
  padding: 14px 28px; border-radius: 10px;
  text-decoration: none; transition: transform .15s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.2); }
.btn-outline-white {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--white);
  font-size: 15px; font-weight: 700;
  padding: 14px 28px; border-radius: 10px;
  text-decoration: none; border: 1.5px solid rgba(255,255,255,.5);
  transition: background .2s;
}
.btn-outline-white:hover { background: rgba(255,255,255,.1); }

/* 히어로 플로팅 카드 */
.hero-cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  max-width: 1100px; margin: 56px auto 0;
  padding: 0 32px;
  position: relative; z-index: 2;
}
.hero-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 20px;
  box-shadow: 0 8px 40px rgba(30,50,120,.18);
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.hero-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(30,50,120,.22); }
.hero-card-icon { font-size: 36px; margin-bottom: 12px; display: block; }
.hero-card h3 { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.hero-card p { font-size: 12px; color: var(--gray); line-height: 1.6; }
.hero-card-arrow { display: block; margin-top: 14px; color: var(--blue); font-size: 18px; }

/* wave 구분선 */
.wave-white { display: block; margin-bottom: -2px; }
.wave-dark { display: block; margin-bottom: -2px; }

/* ── PROCESS ── */
#process { background: var(--white); padding: 80px 0 120px; position: relative; overflow: visible; }
.process-top { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 64px; }
.process-top .left .eyebrow { font-size: 12px; font-weight: 700; color: var(--blue); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.process-top .left h2 { font-size: clamp(24px, 3.5vw, 38px); font-weight: 900; line-height: 1.3; }
.process-top .left p { font-size: 15px; color: var(--gray); margin-top: 12px; max-width: 380px; }
.process-btns { display: flex; gap: 10px; }
.btn-primary {
  background: var(--blue); color: var(--white);
  font-size: 14px; font-weight: 700;
  padding: 11px 22px; border-radius: 8px;
  text-decoration: none; transition: background .2s;
}
.btn-primary:hover { background: #2a56e0; }
.btn-secondary {
  background: var(--gray-light); color: var(--navy);
  font-size: 14px; font-weight: 700;
  padding: 11px 22px; border-radius: 8px;
  text-decoration: none; transition: background .2s;
}
.btn-secondary:hover { background: #e8ecf4; }

.steps { display: flex; align-items: flex-start; position: relative; gap: 0; }
.steps::before {
  content: '';
  position: absolute; top: 36px; left: 80px; right: 80px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--blue) 0, var(--blue) 8px, transparent 8px, transparent 16px);
}
.step { flex: 1; text-align: center; padding: 0 20px; position: relative; z-index: 1; }
.step-bubble {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--blue); color: var(--white);
  font-size: 13px; font-weight: 700;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 20px rgba(61,110,245,.4);
  line-height: 1.2;
}
.step-bubble .num { font-size: 10px; opacity: .7; }
.step h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 13px; color: var(--gray); line-height: 1.65; }

/* ── DARK SECTION ── */
#partner-section {
  background: var(--dark);
  padding: 96px 0;
  position: relative;
}
.partner-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.partner-left .eyebrow { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.4); letter-spacing: .1em; margin-bottom: 16px; }
.partner-left h2 { font-size: clamp(22px, 3vw, 36px); font-weight: 900; color: var(--white); line-height: 1.35; margin-bottom: 24px; }
.partner-tabs { display: flex; gap: 8px; margin-bottom: 28px; }
.tab {
  padding: 8px 20px; border-radius: 8px;
  font-size: 13px; font-weight: 700;
  border: none; cursor: pointer; transition: .2s;
}
.tab.active { background: var(--blue); color: var(--white); }
.tab.inactive { background: rgba(255,255,255,.08); color: rgba(255,255,255,.5); }
.partner-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.partner-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: rgba(255,255,255,.75);
}
.partner-features li::before { content: '✓'; color: #60A5FA; font-weight: 700; }
.link-more { color: rgba(255,255,255,.5); font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.link-more:hover { color: var(--white); }
.partner-visual {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  font-size: 96px;
}

/* ── STORY ── */
#story { background: var(--gray-light); padding: 96px 0; }
.story-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; }
.story-header .eyebrow { font-size: 12px; font-weight: 700; color: var(--blue); letter-spacing: .1em; margin-bottom: 10px; }
.story-header h2 { font-size: clamp(22px, 3vw, 36px); font-weight: 900; line-height: 1.35; }
.story-header p { font-size: 14px; color: var(--gray); margin-top: 10px; max-width: 360px; }
.story-arrows { display: flex; gap: 8px; }
.arrow-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--border); background: var(--white);
  cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center;
  transition: .2s;
}
.arrow-btn:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }
.story-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.story-card {
  background: var(--white); border-radius: var(--radius);
  padding: 28px; border: 1px solid var(--border);
}
.story-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.story-logo { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.story-meta { font-size: 11px; color: var(--gray); }
.story-meta strong { display: block; font-size: 14px; color: var(--navy); font-weight: 700; }
.story-card p { font-size: 13px; color: var(--gray); line-height: 1.75; }

/* 파트너 로고 슬라이더 */
#logos { background: var(--white); padding: 48px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; }
.logos-track { display: flex; gap: 64px; align-items: center; animation: scroll 20s linear infinite; width: max-content; }
.logos-track:hover { animation-play-state: paused; }
.logo-item { font-size: 15px; font-weight: 700; color: #CBD5E1; white-space: nowrap; letter-spacing: .05em; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── FINAL CTA ── */
#final-cta { background: var(--gray-light); padding: 80px 0; }
.cta-card {
  background: linear-gradient(135deg, #3D6EF5 0%, #5B87FF 100%);
  border-radius: 24px;
  padding: 64px;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px; border-radius: 50%;
  background: rgba(255,255,255,.05);
  top: -150px; right: -100px;
}
.cta-card::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255,255,255,.04);
  bottom: -120px; left: -80px;
}
.cta-card h2 { font-size: clamp(22px, 3.5vw, 36px); font-weight: 900; color: var(--white); line-height: 1.3; margin-bottom: 12px; position: relative; z-index: 1; }
.cta-card p { font-size: 16px; color: rgba(255,255,255,.8); margin-bottom: 32px; position: relative; z-index: 1; }
.cta-card .btn-white { position: relative; z-index: 1; }

/* ── CONTACT FORM ── */
#contact { background: var(--white); padding: 96px 0; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-left .eyebrow { font-size: 12px; font-weight: 700; color: var(--blue); letter-spacing: .1em; margin-bottom: 14px; }
.contact-left h2 { font-size: clamp(22px, 3vw, 36px); font-weight: 900; line-height: 1.35; margin-bottom: 16px; }
.contact-left p { font-size: 15px; color: var(--gray); line-height: 1.75; margin-bottom: 32px; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-info-item { display: flex; align-items: center; gap: 14px; }
.contact-info-icon { width: 44px; height: 44px; border-radius: 10px; background: #EEF2FF; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.contact-info-text strong { display: block; font-size: 15px; font-weight: 700; }
.contact-info-text span { font-size: 13px; color: var(--gray); }

.form-box { background: var(--gray-light); border-radius: var(--radius); padding: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.form-group label { font-size: 13px; font-weight: 700; color: var(--navy); }
.form-group input, .form-group textarea, .form-group select {
  padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 14px; font-family: inherit; background: var(--white);
  color: var(--navy); outline: none; transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--blue); }
.form-group textarea { min-height: 110px; resize: vertical; }
.form-submit {
  width: 100%; padding: 15px; border: none; border-radius: 10px;
  background: var(--blue); color: var(--white);
  font-size: 15px; font-weight: 700; font-family: inherit;
  cursor: pointer; transition: background .2s, transform .15s;
}
.form-submit:hover { background: #2a56e0; transform: translateY(-1px); }
.form-success { display: none; text-align: center; padding: 40px 20px; }
.form-success .icon { font-size: 48px; margin-bottom: 12px; }
.form-success h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; color: #16A34A; }
.form-success p { font-size: 14px; color: var(--gray); }

/* ── FAQ ── */
#faq { background: var(--gray-light); padding: 96px 0; }
.faq-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 80px; align-items: start; }
.faq-left .eyebrow { font-size: 12px; font-weight: 700; color: var(--blue); letter-spacing: .1em; margin-bottom: 14px; }
.faq-left h2 { font-size: clamp(22px, 3vw, 36px); font-weight: 900; line-height: 1.35; }
.faq-left p { font-size: 15px; color: var(--gray); margin-top: 14px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--white); border-radius: 12px; border: 1px solid var(--border); overflow: hidden; }
.faq-q { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; cursor: pointer; font-size: 15px; font-weight: 700; user-select: none; }
.faq-q .arrow { color: var(--blue); transition: transform .3s; font-size: 16px; }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .3s; padding: 0 22px; font-size: 14px; color: var(--gray); line-height: 1.8; }
.faq-item.open .faq-a { max-height: 200px; padding: 0 22px 20px; }

/* ── FOOTER ── */
footer { background: var(--dark); padding: 56px 0 32px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo { font-size: 18px; font-weight: 900; color: var(--white); margin-bottom: 12px; display: block; }
.footer-brand .logo span { color: var(--blue2); }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,.4); line-height: 1.75; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.6); margin-bottom: 16px; letter-spacing: .05em; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 13px; color: rgba(255,255,255,.35); text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding-top: 24px; display: flex; justify-content: space-between; }
.footer-bottom span { font-size: 12px; color: rgba(255,255,255,.25); }

/* ── 플로팅 사이드 메뉴 ── */
.floating-menu {
  position: fixed;
  right: 24px;
  bottom: 40px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.floating-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.floating-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
  transition: transform .2s, box-shadow .2s;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.floating-item a:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 28px rgba(0,0,0,.28);
}

.floating-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* 라벨: 버튼 왼쪽에 절대 위치 */
.floating-label {
  position: absolute;
  right: 62px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Noto Sans KR', sans-serif;
  padding: 7px 14px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity .2s, transform .2s;
  pointer-events: none;
}

/* 말풍선 꼬리 */
.floating-label::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right: none;
  border-left-color: var(--navy);
}

.floating-item:hover .floating-label {
  opacity: 1;
  transform: translateX(0);
}

/* 카카오 */
.floating-item.kakao a {
  background: #FEE500;
  color: #3A1D1D;
}

/* 전화 */
.floating-item.phone a {
  background: var(--blue);
  color: #fff;
}

@media (max-width: 600px) {
  .floating-menu { right: 16px; bottom: 24px; }
  .floating-label { display: none; }
}

/* 기능 카드 3열 그리드 */
.feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 64px;
}

/* ── 반응형 ── */
@media (max-width: 1024px) {
  .hero-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  #hero { padding: 110px 0 160px; }
  .hero-cards { grid-template-columns: repeat(2, 1fr); }
  /* 프로세스: 중앙 정렬 */
  .process-top { flex-direction: column; align-items: flex-start; gap: 20px; }
  .steps { flex-direction: column; gap: 28px; align-items: center; }
  .steps::before { display: none; }
  .step { width: 100%; max-width: 320px; text-align: center; }
  /* 파트너 카드 1열 */
  .feature-cards-grid { grid-template-columns: 1fr; }
  .partner-inner { grid-template-columns: 1fr; }
  .partner-visual { display: none; }
  .story-cards { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr; }
  .cta-card { padding: 40px 24px; }
}
@media (max-width: 480px) {
  .hero-cards { grid-template-columns: 1fr 1fr; padding: 0 16px; }
  .form-row { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
}
