/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1E293B;
  background: #fff;
  line-height: 1.6;
  word-break: keep-all;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ─── Variables ─── */
:root {
  --primary:       #4338CA;
  --primary-dark:  #312E81;
  --primary-light: #6366F1;
  --accent-teal:   #0D9488;
  --accent-sky:    #0EA5E9;
  --accent-purple: #7C3AED;
  --bg:            #F8F9FF;
  --bg-dark:       #0F172A;
  --text:          #1E293B;
  --muted:         #64748B;
  --light:         #94A3B8;
  --border:        #E2E8F0;
  --white:         #FFFFFF;
  --max-w:         1200px;
  --radius:        14px;
  --shadow-sm:     0 1px 4px rgba(0,0,0,.07);
  --shadow-md:     0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:     0 12px 36px rgba(67,56,202,.14);
}

/* ─── Layout ─── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
section { padding: 6rem 0; }

/* ─── Section labels ─── */
.tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .6rem;
}
.sec-title {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: .9rem;
}
.sec-sub {
  font-size: .97rem;
  color: var(--muted);
  line-height: 1.85;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: .85rem 1.75rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: .95rem;
  transition: all .2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(67,56,202,.32);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 6px 22px rgba(67,56,202,.42); }
.btn-outline {
  background: #fff;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-white {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 20px rgba(0,0,0,.18);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,.26); }
.btn-ghost-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.32);
}
.btn-ghost-white:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.55); }

/* ─── Scroll fade-up ─── */
.fu { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.fu.vis { opacity: 1; transform: none; }

/* ══════════════════════════════════════
   HEADER
══════════════════════════════════════ */
#hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
#hdr.stuck { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-txt {
  font-size: 1.3rem; font-weight: 700;
  color: var(--primary-dark); letter-spacing: -.02em;
}
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: .88rem; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--primary); }
.nav-cta {
  background: var(--primary) !important; color: #fff !important;
  padding: .5rem 1.2rem; border-radius: 8px;
  font-weight: 600 !important;
  transition: background .2s !important;
}
.nav-cta:hover { background: var(--primary-dark) !important; }
.nav-partner {
  border: 1.5px solid var(--primary) !important; color: var(--primary) !important;
  padding: .45rem 1.1rem; border-radius: 8px;
  font-weight: 600 !important; font-size: .88rem;
  transition: background .2s, color .2s !important;
}
.nav-partner:hover { background: var(--primary) !important; color: #fff !important; }

/* hamburger */
.hbg { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hbg span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all .3s; }

/* mobile nav */
.mob-nav {
  display: none; position: fixed; top: 72px; left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem; z-index: 199;
  box-shadow: var(--shadow-md);
  flex-direction: column; gap: .9rem;
}
.mob-nav.open { display: flex; }
.mob-nav a { font-size: .97rem; font-weight: 500; color: var(--text); padding: .45rem 0; border-bottom: 1px solid var(--border); }
.mob-nav a:last-child { border: none; }
.mob-cta {
  display: block; background: var(--primary); color: #fff !important;
  padding: .8rem 1.5rem; border-radius: 8px;
  text-align: center; font-weight: 700 !important;
  margin-top: .4rem; border: none !important;
}
.mob-partner {
  display: block; border: 1.5px solid var(--primary) !important; color: var(--primary) !important;
  padding: .75rem 1.5rem; border-radius: 8px;
  text-align: center; font-weight: 600 !important;
  margin-top: .2rem;
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
#hero {
  min-height: 100vh; padding-top: 72px;
  background: linear-gradient(150deg, #F8F9FF 0%, #EDEEFF 55%, #EEF7FF 100%);
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero-blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: .28; pointer-events: none;
}
.hb1 { width: 700px; height: 700px; background: radial-gradient(circle, #6366F1, transparent); top: -260px; right: -120px; }
.hb2 { width: 450px; height: 450px; background: radial-gradient(circle, #0EA5E9, transparent); bottom: -130px; left: -80px; }

.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3.5rem; align-items: center; width: 100%;
}
.hero-content { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(67,56,202,.08); color: var(--primary);
  padding: .38rem .9rem; border-radius: 100px;
  font-size: .75rem; font-weight: 700;
  border: 1px solid rgba(67,56,202,.16);
  margin-bottom: 1.4rem;
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary);
  animation: dot-pulse 2.2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .4; transform: scale(.75); }
}

.hero-h1 {
  font-size: clamp(1.85rem, 3.8vw, 2.9rem);
  font-weight: 900; line-height: 1.28;
  letter-spacing: -.035em; color: var(--text);
  margin-bottom: 1.4rem;
}
.hero-h1 em { font-style: normal; color: var(--primary); }

.hero-p {
  font-size: .97rem; color: var(--muted);
  line-height: 1.85; margin-bottom: 2.4rem;
  max-width: 470px;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* hero visual */
.hero-visual { position: relative; z-index: 1; display: flex; justify-content: center; }
.hero-svg-wrap { width: 100%; max-width: 490px; filter: drop-shadow(0 20px 60px rgba(67,56,202,.13)); }

/* floating cards on SVG */
.fc {
  position: absolute;
  background: #fff; border-radius: 12px;
  padding: .7rem 1rem;
  box-shadow: 0 8px 28px rgba(0,0,0,.1);
  display: flex; align-items: center; gap: .6rem;
  white-space: nowrap;
}
.fc-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.fc-label { font-size: .68rem; color: var(--muted); font-weight: 500; }
.fc-val   { font-size: .82rem; font-weight: 700; color: var(--text); }
.fc1 { top: 6%; right: -4%; animation: float-y 4s ease-in-out infinite; }
.fc2 { bottom: 28%; left: -6%; animation: float-y 4s ease-in-out infinite .8s; }
.fc3 { bottom: 5%; right: 2%; animation: float-y 4s ease-in-out infinite 2s; }
@keyframes float-y {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-9px); }
}

/* ══════════════════════════════════════
   CORE VALUES
══════════════════════════════════════ */
#values { background: var(--bg); }
.val-hd { text-align: center; margin-bottom: 3.8rem; }
.val-hd .sec-sub { margin: 0 auto; max-width: 540px; }

.val-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1.5rem;
}
.val-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2.5rem 2.2rem;
  transition: all .3s; position: relative; overflow: hidden;
}
.val-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent-sky));
  transform: scaleX(0); transform-origin: left; transition: transform .35s;
}
.val-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); border-color: rgba(67,56,202,.15); }
.val-card:hover::before { transform: scaleX(1); }

.val-num { font-size: .7rem; font-weight: 700; color: var(--primary); letter-spacing: .16em; margin-bottom: .9rem; }
.val-ico {
  width: 50px; height: 50px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.4rem;
}
.val-title { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: .8rem; line-height: 1.4; }
.val-desc  { font-size: .86rem; color: var(--muted); line-height: 1.82; }
.val-more  {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 1.4rem; font-size: .82rem; font-weight: 700;
}

/* ══════════════════════════════════════
   SERVICES
══════════════════════════════════════ */
#services { background: #fff; }
.svc-layout {
  display: grid; grid-template-columns: 1fr 1.65fr;
  gap: 5rem; align-items: start;
}
.svc-sticky { position: sticky; top: 96px; }
.svc-sticky .btn { margin-top: 2rem; }

.svc-list { display: flex; flex-direction: column; gap: 1rem; }
.svc-item {
  display: flex; align-items: center; gap: 1.2rem;
  padding: 1.5rem 1.4rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: #fff;
  transition: all .22s; cursor: default;
}
.svc-item:hover {
  border-color: var(--primary);
  background: rgba(67,56,202,.025);
  box-shadow: var(--shadow-md);
}
.svc-item:hover .svc-arr { transform: translateX(4px); color: var(--primary); }
.svc-ico {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.svc-ico-1 { background: rgba(67,56,202,.09); }
.svc-ico-2 { background: rgba(14,165,233,.09); }
.svc-ico-3 { background: rgba(13,148,136,.09); }
.svc-ico-4 { background: rgba(124,58,237,.09); }
.svc-ico-5 { background: rgba(234,88,12,.09); }
.svc-body  { flex: 1; min-width: 0; }
.svc-name  { font-size: .94rem; font-weight: 700; color: var(--text); margin-bottom: .25rem; }
.svc-desc  { font-size: .82rem; color: var(--muted); line-height: 1.65; }
.svc-arr   { color: var(--light); flex-shrink: 0; transition: all .22s; }

/* ══════════════════════════════════════
   HIGHLIGHT (dark)
══════════════════════════════════════ */
#highlight {
  background: var(--bg-dark); padding: 7rem 0;
}
.hl-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
.hl-tag { color: #A5B4FC !important; }
.hl-title {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 800; color: #fff;
  line-height: 1.35; letter-spacing: -.03em;
  margin-bottom: 1.4rem;
}
.hl-title em { font-style: normal; color: #818CF8; }
.hl-desc { font-size: .94rem; color: #94A3B8; line-height: 1.85; margin-bottom: 2.4rem; }

.hl-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.stat-card {
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius); padding: 1.8rem 1.6rem;
}
.stat-num {
  font-size: 1.9rem; font-weight: 900;
  color: #fff; letter-spacing: -.04em; margin-bottom: .45rem;
}
.stat-num span { color: #818CF8; }
.stat-lbl { font-size: .82rem; color: #64748B; line-height: 1.55; }

/* ══════════════════════════════════════
   PROCESS
══════════════════════════════════════ */
#process { background: var(--bg); }
.proc-hd { text-align: center; margin-bottom: 4rem; }
.proc-hd .sec-sub { margin: 0 auto; max-width: 500px; }

.proc-steps {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 0; position: relative;
}
.proc-steps::before {
  content: ''; position: absolute;
  top: 31px; left: 12.5%; right: 12.5%;
  height: 1px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent-sky) 100%);
  z-index: 0;
}
.proc-step {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 0 1.2rem; position: relative; z-index: 1;
}
.step-ring {
  width: 62px; height: 62px; border-radius: 50%;
  background: #fff; border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem; transition: all .3s;
}
.proc-step:hover .step-ring { background: var(--primary); border-color: var(--primary); }
.step-n { font-size: 1.05rem; font-weight: 800; color: var(--primary); transition: color .3s; }
.proc-step:hover .step-n { color: #fff; }
.proc-step-body { display: flex; flex-direction: column; }
.step-ttl { font-size: .93rem; font-weight: 700; color: var(--text); margin-bottom: .6rem; }
.step-dsc { font-size: .8rem; color: var(--muted); line-height: 1.72; }

/* ══════════════════════════════════════
   CTA
══════════════════════════════════════ */
#cta {
  background: linear-gradient(145deg, #4338CA 0%, #312E81 100%);
  padding: 7.5rem 0;
}
.cta-inner { text-align: center; max-width: 720px; margin: 0 auto; }
.cta-chip {
  display: inline-block;
  background: rgba(255,255,255,.1); color: #A5B4FC;
  padding: .38rem 1rem; border-radius: 100px;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.cta-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800; color: #fff;
  line-height: 1.35; letter-spacing: -.03em;
  margin-bottom: 1.3rem;
}
.cta-desc {
  font-size: .97rem; color: rgba(255,255,255,.6);
  line-height: 1.88; margin-bottom: 2.8rem;
}
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
footer { background: var(--bg-dark); color: #94A3B8; padding: 3.5rem 0 2rem; }
.ftr-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 3rem; padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
  margin-bottom: 1.6rem;
}
.ftr-brand { display: flex; flex-direction: column; gap: .8rem; }
.ftr-tagline { font-size: .82rem; color: #475569; line-height: 1.7; }
.ftr-nav {
  display: flex; gap: 2rem; align-items: center; flex-wrap: wrap;
}
.ftr-nav a { font-size: .84rem; color: #475569; transition: color .2s; white-space: nowrap; }
.ftr-nav a:hover { color: #fff; }
.ftr-contact { display: flex; flex-direction: column; gap: .5rem; text-align: right; }
.ftr-contact a,
.ftr-contact span { font-size: .82rem; color: #475569; line-height: 1.6; transition: color .2s; }
.ftr-contact a:hover { color: #fff; }
.ftr-btm {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: .75rem;
}
.ftr-copy { font-size: .75rem; color: #2D3748; }
.ftr-biz  { font-size: .75rem; color: #2D3748; }
.ftr-legal { display: flex; align-items: center; gap: .5rem; }
.ftr-legal a { font-size: .75rem; color: #2D3748; transition: color .2s; }
.ftr-legal a:hover { color: #94A3B8; }
.ftr-legal-sep { font-size: .7rem; color: #2D3748; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */

/* ── 태블릿 (1024px 이하) ── */
@media (max-width: 1024px) {
  .val-grid { grid-template-columns: 1fr 1fr; }

  .svc-layout { grid-template-columns: 1fr; gap: 3rem; }
  .svc-sticky { position: static; }

  .hl-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hl-stats { grid-template-columns: repeat(4, 1fr); }
}

/* ── 모바일 가로 / 소형 태블릿 (768px 이하) ── */
@media (max-width: 768px) {
  section { padding: 3.5rem 0; }
  #highlight { padding: 4.5rem 0; }
  #cta { padding: 4.5rem 0; }

  /* 헤더 */
  .nav-links { display: none; }
  .hbg { display: flex; }

  /* 히어로 */
  #hero { min-height: auto; padding: calc(72px + 3.5rem) 0 3.5rem; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 0; }
  .hero-p { margin-left: auto; margin-right: auto; max-width: 100%; }
  .hero-btns { justify-content: center; }
  .hero-visual { display: none; }

  /* 핵심 가치 */
  .val-grid { grid-template-columns: 1fr; }

  /* 서비스 */
  .svc-layout { gap: 2.5rem; }

  /* 하이라이트 */
  .hl-stats { grid-template-columns: 1fr 1fr; }

  /* 프로세스 */
  .proc-steps { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .proc-steps::before { display: none; }

  /* 푸터 */
  .ftr-top { flex-direction: column; gap: 2rem; }
  .ftr-contact { text-align: left; }
  .ftr-nav { gap: 1.2rem; }
}

/* ── 모바일 세로 (480px 이하) ── */
@media (max-width: 480px) {
  .container { padding: 0 1.2rem; }
  section { padding: 3rem 0; }
  #highlight { padding: 3.5rem 0; }
  #cta { padding: 3.5rem 0; }

  /* 히어로 */
  #hero { padding: calc(72px + 2.5rem) 0 3rem; }
  .hero-h1 { font-size: 1.7rem; letter-spacing: -.025em; }
  .hero-badge { font-size: .7rem; padding: .32rem .8rem; }
  .hero-p { font-size: .9rem; }
  .hero-btns { flex-direction: column; align-items: stretch; }
  .hero-btns .btn { justify-content: center; }

  /* 핵심 가치 */
  .val-card { padding: 1.8rem 1.5rem; }
  .val-ico { width: 44px; height: 44px; }

  /* 서비스 */
  .svc-item { padding: 1.1rem 1rem; gap: 1rem; }
  .svc-ico { width: 42px; height: 42px; border-radius: 10px; }
  .svc-name { font-size: .88rem; }
  .svc-desc { font-size: .78rem; }

  /* 하이라이트 */
  .hl-stats { grid-template-columns: 1fr 1fr; gap: .9rem; }
  .stat-card { padding: 1.4rem 1.2rem; }
  .stat-num { font-size: 1.6rem; }

  /* 프로세스 */
  .proc-steps { grid-template-columns: 1fr; gap: 2rem; }
  .proc-step { flex-direction: row; text-align: left; gap: 1.2rem; align-items: flex-start; padding: 0; }
  .step-ring { width: 48px; height: 48px; flex-shrink: 0; margin-bottom: 0; }
  .step-n { font-size: .9rem; }
  .proc-step-body { display: flex; flex-direction: column; gap: .3rem; padding-top: .6rem; }

  /* CTA */
  .cta-title { font-size: 1.4rem; }
  .cta-desc { font-size: .88rem; }
  .cta-btns { flex-direction: column; align-items: stretch; }
  .cta-btns .btn { justify-content: center; }

  /* 푸터 */
  .ftr-nav { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .ftr-btm { flex-direction: column; align-items: flex-start; gap: .35rem; }
}
